Skip to content

Commit

Permalink
Export error wrappers (#2043)
Browse files Browse the repository at this point in the history
Export error wrappers from the SDK to be used in Snaps.

---------

Co-authored-by: MetaMask Bot <[email protected]>
  • Loading branch information
FrederikBolding and metamaskbot authored Dec 15, 2023
1 parent d478d7b commit 25dff24
Show file tree
Hide file tree
Showing 20 changed files with 56 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/examples/packages/bip32/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "caeLbHfeSy43AMJYg8DJuzwgNfQBsDYhSs7Fa1+RJpg=",
"shasum": "98nuLFUn3RfvLc3/HvNvgyf+URySBKaGZPI2Zxu8NVg=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/bip44/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "l299RzPiq3zALuL5iOeVme+7lfA0cnEAz+w4DMJM0Rw=",
"shasum": "i4944JJ3Csl9QdNCAoxLvq3vhoSt/blgMtyPGB8HteQ=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/cronjobs/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "PX7YVTXzXsTT2qnvBj4DAn87yuFJUlW6fHu9A6lLh7I=",
"shasum": "wt/3REPR5JkbI6FYAeDtXR4IGGUK9AaIUoBpnqzbP2o=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/dialogs/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "vUCiymjk/mJ7B43hy2yikoGTltGsQRLbkIjp1FT/eLM=",
"shasum": "wEopN/WV1gxPjspNYeSi3+Ol1dpOwoU3NM1k/Ksv6qw=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/ethers-js/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "STj20RDfb7MnKDa5ONLfBdRv4VawZ3uf0Da7jp5scC4=",
"shasum": "GrxERj7PcIIxZgPqKbbj2YaO0Qmf3gZdrV7VRJHGDcM=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/get-entropy/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "h5MEtNyMAG2rQhGD90im8kCg/ESRCkoVb9/D7AR2tA4=",
"shasum": "QKz/63FYCCdup4rEa2AkgIc3xuZEifDSl1r+cPN+IHs=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/home-page/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "Jn+BqJIA+xxLU9bmG8ZSBPSSNiF83izvgh6qqP+1ZxY=",
"shasum": "hsdyikPrTQ6Ws9JyePXAuxg2VCvq3DsC5CK3wlaxZjc=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/images/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "JPk9eFDwy0m837r8j9uIEJ2c0/zbzBGVJEkqO8nycG8=",
"shasum": "wtZbBHDRW5+LyCNT2uxjIeXhym0NiWgdRM/QySYmVYg=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "ukr1CZCWazIUxgL2A5tuJ+6oXQHVjH0TrO8iPYd++QE=",
"shasum": "yxo56uW7pCpoU6ItZY/8/9tdKDs40Vrp0E+uiTzcXT0=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "NHngSVQOR00sgw+NWSDuBch8IeI+Taz8Im/DeKkqGlo=",
"shasum": "Ws9cjQFXOAuF35OiCT5N2/qsROoQrKg72uRJet/1keg=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/manage-state/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "Y9dJ+4nEhSNmGJ0WtW9ebY88bDtn0QSCM5tRNzKl65s=",
"shasum": "XCvmDQ4kCRUrHgMNRiWcfl1MFHeVqs4RFmgF2ggI01I=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "8//dzvhQYcRdz7kRozmC0FJXGafsAWYWE5V2eSq/TtE=",
"shasum": "TW7TSQ31TYyV0YlN8VZJU2wq6+YXCuz/irkz20jOPDw=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "96+aEAB2bcUTV+9zHyN2NvmZwfWp3siypAq1dth+9/8=",
"shasum": "US+6gU1Z4cJ0WDHWxjv1QPJWHoHTnCpCPvZ+Dsn9tgQ=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,12 @@
"eslint>debug>ms": true
}
},
"external:../snaps-sdk/src/error-wrappers.ts": {
"packages": {
"@metamask/rpc-errors": true,
"external:../snaps-sdk/src/internals/index.ts": true
}
},
"external:../snaps-sdk/src/errors.ts": {
"packages": {
"external:../snaps-sdk/src/internals/index.ts": true
Expand All @@ -248,6 +254,7 @@
"external:../snaps-sdk/src/index.ts": {
"packages": {
"@metamask/utils": true,
"external:../snaps-sdk/src/error-wrappers.ts": true,
"external:../snaps-sdk/src/errors.ts": true,
"external:../snaps-sdk/src/images.ts": true,
"external:../snaps-sdk/src/internals/index.ts": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,12 @@
"util": true
}
},
"external:../snaps-sdk/src/error-wrappers.ts": {
"packages": {
"@metamask/rpc-errors": true,
"external:../snaps-sdk/src/internals/index.ts": true
}
},
"external:../snaps-sdk/src/errors.ts": {
"packages": {
"external:../snaps-sdk/src/internals/index.ts": true
Expand All @@ -305,6 +311,7 @@
"external:../snaps-sdk/src/index.ts": {
"packages": {
"@metamask/utils": true,
"external:../snaps-sdk/src/error-wrappers.ts": true,
"external:../snaps-sdk/src/errors.ts": true,
"external:../snaps-sdk/src/images.ts": true,
"external:../snaps-sdk/src/internals/index.ts": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,12 @@
"util": true
}
},
"external:../snaps-sdk/src/error-wrappers.ts": {
"packages": {
"@metamask/rpc-errors": true,
"external:../snaps-sdk/src/internals/index.ts": true
}
},
"external:../snaps-sdk/src/errors.ts": {
"packages": {
"external:../snaps-sdk/src/internals/index.ts": true
Expand All @@ -305,6 +311,7 @@
"external:../snaps-sdk/src/index.ts": {
"packages": {
"@metamask/utils": true,
"external:../snaps-sdk/src/error-wrappers.ts": true,
"external:../snaps-sdk/src/errors.ts": true,
"external:../snaps-sdk/src/images.ts": true,
"external:../snaps-sdk/src/internals/index.ts": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@
"eslint>debug>ms": true
}
},
"external:../snaps-sdk/src/error-wrappers.ts": {
"packages": {
"@metamask/rpc-errors": true,
"external:../snaps-sdk/src/internals/index.ts": true
}
},
"external:../snaps-sdk/src/errors.ts": {
"packages": {
"external:../snaps-sdk/src/internals/index.ts": true
Expand All @@ -149,6 +155,7 @@
"external:../snaps-sdk/src/index.ts": {
"packages": {
"@metamask/utils": true,
"external:../snaps-sdk/src/error-wrappers.ts": true,
"external:../snaps-sdk/src/errors.ts": true,
"external:../snaps-sdk/src/images.ts": true,
"external:../snaps-sdk/src/internals/index.ts": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,12 @@
"eslint>debug>ms": true
}
},
"external:../snaps-sdk/src/error-wrappers.ts": {
"packages": {
"@metamask/rpc-errors": true,
"external:../snaps-sdk/src/internals/index.ts": true
}
},
"external:../snaps-sdk/src/errors.ts": {
"packages": {
"external:../snaps-sdk/src/internals/index.ts": true
Expand All @@ -248,6 +254,7 @@
"external:../snaps-sdk/src/index.ts": {
"packages": {
"@metamask/utils": true,
"external:../snaps-sdk/src/error-wrappers.ts": true,
"external:../snaps-sdk/src/errors.ts": true,
"external:../snaps-sdk/src/images.ts": true,
"external:../snaps-sdk/src/internals/index.ts": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@
"eslint>debug>ms": true
}
},
"external:../snaps-sdk/src/error-wrappers.ts": {
"packages": {
"@metamask/rpc-errors": true,
"external:../snaps-sdk/src/internals/index.ts": true
}
},
"external:../snaps-sdk/src/errors.ts": {
"packages": {
"external:../snaps-sdk/src/internals/index.ts": true
Expand All @@ -149,6 +155,7 @@
"external:../snaps-sdk/src/index.ts": {
"packages": {
"@metamask/utils": true,
"external:../snaps-sdk/src/error-wrappers.ts": true,
"external:../snaps-sdk/src/errors.ts": true,
"external:../snaps-sdk/src/images.ts": true,
"external:../snaps-sdk/src/internals/index.ts": true,
Expand Down
1 change: 1 addition & 0 deletions packages/snaps-sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export type {
export { assert } from '@metamask/utils';

export * from './errors';
export * from './error-wrappers';
export * from './images';
export * from './types';
export * from './ui';

0 comments on commit 25dff24

Please sign in to comment.