@cartridge/controller 0.7.10 → 0.7.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build$colon$deps.log +49 -51
- package/.turbo/turbo-build.log +45 -47
- package/.turbo/turbo-format.log +39 -0
- package/dist/controller.d.ts +5 -2
- package/dist/index.js +136 -80
- package/dist/index.js.map +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +12 -10
- package/dist/node/index.d.ts +12 -10
- package/dist/node/index.js +1 -1
- package/dist/node/index.js.map +1 -1
- package/dist/{provider-Dr912mPw.js → provider-BN3lM6-S.js} +39 -38
- package/dist/provider-BN3lM6-S.js.map +1 -0
- package/dist/session.js +30 -29
- package/dist/session.js.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/types.d.ts +8 -2
- package/dist/wallets/bridge.d.ts +12 -10
- package/package.json +3 -3
- package/src/account.ts +1 -0
- package/src/controller.ts +12 -4
- package/src/iframe/base.ts +1 -0
- package/src/iframe/keychain.ts +5 -0
- package/src/types.ts +9 -2
- package/src/wallets/bridge.ts +115 -48
- package/dist/provider-Dr912mPw.js.map +0 -1
package/dist/stats.html
CHANGED
|
@@ -4929,7 +4929,7 @@ var drawChart = (function (exports) {
|
|
|
4929
4929
|
</script>
|
|
4930
4930
|
<script>
|
|
4931
4931
|
/*<!--*/
|
|
4932
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src","children":[{"uid":"bb4af0a3-1","name":"account.ts"},{"name":"iframe","children":[{"uid":"bb4af0a3-33","name":"base.ts"},{"uid":"bb4af0a3-43","name":"keychain.ts"},{"uid":"bb4af0a3-45","name":"profile.ts"}]},{"name":"wallets","children":[{"name":"metamask/index.ts","uid":"bb4af0a3-35"},{"name":"phantom/index.ts","uid":"bb4af0a3-37"},{"name":"argent/index.ts","uid":"bb4af0a3-39"},{"uid":"bb4af0a3-41","name":"bridge.ts"}]},{"uid":"bb4af0a3-47","name":"controller.ts"},{"uid":"bb4af0a3-49","name":"lookup.ts"},{"uid":"bb4af0a3-53","name":"index.ts"}]},{"name":"home/runner/work/controller/controller/node_modules/.pnpm","children":[{"name":"@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib","children":[{"uid":"bb4af0a3-3","name":"enums.js"},{"uid":"bb4af0a3-5","name":"createDestructor.js"},{"uid":"bb4af0a3-7","name":"createLogger.js"},{"name":"parent","children":[{"uid":"bb4af0a3-9","name":"getOriginFromSrc.js"},{"uid":"bb4af0a3-21","name":"handleAckMessageFactory.js"},{"uid":"bb4af0a3-23","name":"handleSynMessageFactory.js"},{"uid":"bb4af0a3-25","name":"monitorIframeRemoval.js"},{"uid":"bb4af0a3-29","name":"validateIframeHasSrcOrSrcDoc.js"},{"uid":"bb4af0a3-31","name":"connectToChild.js"}]},{"uid":"bb4af0a3-11","name":"errorSerialization.js"},{"uid":"bb4af0a3-13","name":"connectCallReceiver.js"},{"uid":"bb4af0a3-15","name":"generateId.js"},{"uid":"bb4af0a3-17","name":"methodSerialization.js"},{"uid":"bb4af0a3-19","name":"connectCallSender.js"},{"uid":"bb4af0a3-27","name":"startConnectionTimeout.js"}]},{"name":"@cartridge+presets@https+++codeload.github.com+cartridge-gg+presets+tar.gz+2373780/node_modules/@cartridge/presets/dist/index.js","uid":"bb4af0a3-51"}]}]},{"name":"session.js","children":[{"name":"home/runner/work/controller/controller/packages/account-wasm/pkg-session","children":[{"uid":"bb4af0a3-55","name":"account_wasm_bg.js"},{"uid":"bb4af0a3-57","name":"account_wasm.js"}]},{"name":"src/session","children":[{"uid":"bb4af0a3-59","name":"account.ts"},{"uid":"bb4af0a3-61","name":"provider.ts"},{"uid":"bb4af0a3-63","name":"index.ts"}]}]},{"name":"provider-Dr912mPw.js","children":[{"name":"src","children":[{"uid":"bb4af0a3-65","name":"types.ts"},{"uid":"bb4af0a3-67","name":"utils.ts"},{"uid":"bb4af0a3-69","name":"constants.ts"},{"uid":"bb4af0a3-71","name":"errors.ts"},{"uid":"bb4af0a3-77","name":"icon.ts"},{"uid":"bb4af0a3-79","name":"mutex.ts"},{"uid":"bb4af0a3-81","name":"provider.ts"}]},{"name":"home/runner/work/controller/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/wallet-api/constants.js","uid":"bb4af0a3-73"},{"uid":"bb4af0a3-75","name":"package.json"}]}],"isRoot":true},"nodeParts":{"bb4af0a3-1":{"renderedLength":2560,"gzipLength":871,"brotliLength":711,"metaUid":"bb4af0a3-0"},"bb4af0a3-3":{"renderedLength":953,"gzipLength":315,"brotliLength":275,"metaUid":"bb4af0a3-2"},"bb4af0a3-5":{"renderedLength":507,"gzipLength":231,"brotliLength":188,"metaUid":"bb4af0a3-4"},"bb4af0a3-7":{"renderedLength":239,"gzipLength":171,"brotliLength":148,"metaUid":"bb4af0a3-6"},"bb4af0a3-9":{"renderedLength":1674,"gzipLength":796,"brotliLength":652,"metaUid":"bb4af0a3-8"},"bb4af0a3-11":{"renderedLength":414,"gzipLength":224,"brotliLength":189,"metaUid":"bb4af0a3-10"},"bb4af0a3-13":{"renderedLength":3554,"gzipLength":1132,"brotliLength":922,"metaUid":"bb4af0a3-12"},"bb4af0a3-15":{"renderedLength":107,"gzipLength":114,"brotliLength":85,"metaUid":"bb4af0a3-14"},"bb4af0a3-17":{"renderedLength":2519,"gzipLength":854,"brotliLength":741,"metaUid":"bb4af0a3-16"},"bb4af0a3-19":{"renderedLength":4452,"gzipLength":1440,"brotliLength":1198,"metaUid":"bb4af0a3-18"},"bb4af0a3-21":{"renderedLength":1939,"gzipLength":710,"brotliLength":596,"metaUid":"bb4af0a3-20"},"bb4af0a3-23":{"renderedLength":1033,"gzipLength":511,"brotliLength":406,"metaUid":"bb4af0a3-22"},"bb4af0a3-25":{"renderedLength":885,"gzipLength":442,"brotliLength":338,"metaUid":"bb4af0a3-24"},"bb4af0a3-27":{"renderedLength":534,"gzipLength":277,"brotliLength":219,"metaUid":"bb4af0a3-26"},"bb4af0a3-29":{"renderedLength":250,"gzipLength":177,"brotliLength":149,"metaUid":"bb4af0a3-28"},"bb4af0a3-31":{"renderedLength":2332,"gzipLength":870,"brotliLength":714,"metaUid":"bb4af0a3-30"},"bb4af0a3-33":{"renderedLength":4017,"gzipLength":1186,"brotliLength":964,"metaUid":"bb4af0a3-32"},"bb4af0a3-35":{"renderedLength":5069,"gzipLength":1048,"brotliLength":865,"metaUid":"bb4af0a3-34"},"bb4af0a3-37":{"renderedLength":3224,"gzipLength":818,"brotliLength":704,"metaUid":"bb4af0a3-36"},"bb4af0a3-39":{"renderedLength":2658,"gzipLength":768,"brotliLength":651,"metaUid":"bb4af0a3-38"},"bb4af0a3-41":{"renderedLength":3650,"gzipLength":861,"brotliLength":754,"metaUid":"bb4af0a3-40"},"bb4af0a3-43":{"renderedLength":576,"gzipLength":309,"brotliLength":242,"metaUid":"bb4af0a3-42"},"bb4af0a3-45":{"renderedLength":1215,"gzipLength":474,"brotliLength":381,"metaUid":"bb4af0a3-44"},"bb4af0a3-47":{"renderedLength":8878,"gzipLength":1872,"brotliLength":1614,"metaUid":"bb4af0a3-46"},"bb4af0a3-49":{"renderedLength":1419,"gzipLength":551,"brotliLength":470,"metaUid":"bb4af0a3-48"},"bb4af0a3-51":{"renderedLength":101196,"gzipLength":15161,"brotliLength":12521,"metaUid":"bb4af0a3-50"},"bb4af0a3-53":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"bb4af0a3-52"},"bb4af0a3-55":{"renderedLength":7527,"gzipLength":1819,"brotliLength":1639,"metaUid":"bb4af0a3-54"},"bb4af0a3-57":{"renderedLength":23,"gzipLength":40,"brotliLength":27,"metaUid":"bb4af0a3-56"},"bb4af0a3-59":{"renderedLength":1016,"gzipLength":466,"brotliLength":370,"metaUid":"bb4af0a3-58"},"bb4af0a3-61":{"renderedLength":5866,"gzipLength":1648,"brotliLength":1418,"metaUid":"bb4af0a3-60"},"bb4af0a3-63":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"bb4af0a3-62"},"bb4af0a3-65":{"renderedLength":359,"gzipLength":179,"brotliLength":149,"metaUid":"bb4af0a3-64"},"bb4af0a3-67":{"renderedLength":3607,"gzipLength":1301,"brotliLength":1140,"metaUid":"bb4af0a3-66"},"bb4af0a3-69":{"renderedLength":142,"gzipLength":98,"brotliLength":88,"metaUid":"bb4af0a3-68"},"bb4af0a3-71":{"renderedLength":160,"gzipLength":136,"brotliLength":105,"metaUid":"bb4af0a3-70"},"bb4af0a3-73":{"renderedLength":49,"gzipLength":69,"brotliLength":53,"metaUid":"bb4af0a3-72"},"bb4af0a3-75":{"renderedLength":56,"gzipLength":67,"brotliLength":60,"metaUid":"bb4af0a3-74"},"bb4af0a3-77":{"renderedLength":15450,"gzipLength":10585,"brotliLength":10568,"metaUid":"bb4af0a3-76"},"bb4af0a3-79":{"renderedLength":425,"gzipLength":237,"brotliLength":200,"metaUid":"bb4af0a3-78"},"bb4af0a3-81":{"renderedLength":4433,"gzipLength":1093,"brotliLength":950,"metaUid":"bb4af0a3-80"}},"nodeMetas":{"bb4af0a3-0":{"id":"/src/account.ts","moduleParts":{"index.js":"bb4af0a3-1"},"imported":[{"uid":"bb4af0a3-84"},{"uid":"bb4af0a3-64"},{"uid":"bb4af0a3-66"}],"importedBy":[{"uid":"bb4af0a3-46"}]},"bb4af0a3-2":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/enums.js","moduleParts":{"index.js":"bb4af0a3-3"},"imported":[],"importedBy":[{"uid":"bb4af0a3-91"},{"uid":"bb4af0a3-30"},{"uid":"bb4af0a3-94"},{"uid":"bb4af0a3-22"},{"uid":"bb4af0a3-26"},{"uid":"bb4af0a3-28"},{"uid":"bb4af0a3-105"},{"uid":"bb4af0a3-12"},{"uid":"bb4af0a3-18"}]},"bb4af0a3-4":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/createDestructor.js","moduleParts":{"index.js":"bb4af0a3-5"},"imported":[],"importedBy":[{"uid":"bb4af0a3-30"},{"uid":"bb4af0a3-94"}]},"bb4af0a3-6":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/createLogger.js","moduleParts":{"index.js":"bb4af0a3-7"},"imported":[],"importedBy":[{"uid":"bb4af0a3-30"},{"uid":"bb4af0a3-94"}]},"bb4af0a3-8":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/parent/getOriginFromSrc.js","moduleParts":{"index.js":"bb4af0a3-9"},"imported":[],"importedBy":[{"uid":"bb4af0a3-30"}]},"bb4af0a3-10":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/errorSerialization.js","moduleParts":{"index.js":"bb4af0a3-11"},"imported":[],"importedBy":[{"uid":"bb4af0a3-12"},{"uid":"bb4af0a3-18"}]},"bb4af0a3-12":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/connectCallReceiver.js","moduleParts":{"index.js":"bb4af0a3-13"},"imported":[{"uid":"bb4af0a3-10"},{"uid":"bb4af0a3-2"}],"importedBy":[{"uid":"bb4af0a3-20"},{"uid":"bb4af0a3-105"}]},"bb4af0a3-14":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/generateId.js","moduleParts":{"index.js":"bb4af0a3-15"},"imported":[],"importedBy":[{"uid":"bb4af0a3-18"}]},"bb4af0a3-16":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/methodSerialization.js","moduleParts":{"index.js":"bb4af0a3-17"},"imported":[],"importedBy":[{"uid":"bb4af0a3-30"},{"uid":"bb4af0a3-94"},{"uid":"bb4af0a3-18"}]},"bb4af0a3-18":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/connectCallSender.js","moduleParts":{"index.js":"bb4af0a3-19"},"imported":[{"uid":"bb4af0a3-14"},{"uid":"bb4af0a3-10"},{"uid":"bb4af0a3-16"},{"uid":"bb4af0a3-2"}],"importedBy":[{"uid":"bb4af0a3-20"},{"uid":"bb4af0a3-105"}]},"bb4af0a3-20":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/parent/handleAckMessageFactory.js","moduleParts":{"index.js":"bb4af0a3-21"},"imported":[{"uid":"bb4af0a3-12"},{"uid":"bb4af0a3-18"}],"importedBy":[{"uid":"bb4af0a3-30"}]},"bb4af0a3-22":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/parent/handleSynMessageFactory.js","moduleParts":{"index.js":"bb4af0a3-23"},"imported":[{"uid":"bb4af0a3-2"}],"importedBy":[{"uid":"bb4af0a3-30"}]},"bb4af0a3-24":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/parent/monitorIframeRemoval.js","moduleParts":{"index.js":"bb4af0a3-25"},"imported":[],"importedBy":[{"uid":"bb4af0a3-30"}]},"bb4af0a3-26":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/startConnectionTimeout.js","moduleParts":{"index.js":"bb4af0a3-27"},"imported":[{"uid":"bb4af0a3-2"}],"importedBy":[{"uid":"bb4af0a3-30"},{"uid":"bb4af0a3-94"}]},"bb4af0a3-28":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/parent/validateIframeHasSrcOrSrcDoc.js","moduleParts":{"index.js":"bb4af0a3-29"},"imported":[{"uid":"bb4af0a3-2"}],"importedBy":[{"uid":"bb4af0a3-30"}]},"bb4af0a3-30":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/parent/connectToChild.js","moduleParts":{"index.js":"bb4af0a3-31"},"imported":[{"uid":"bb4af0a3-2"},{"uid":"bb4af0a3-4"},{"uid":"bb4af0a3-6"},{"uid":"bb4af0a3-8"},{"uid":"bb4af0a3-20"},{"uid":"bb4af0a3-22"},{"uid":"bb4af0a3-16"},{"uid":"bb4af0a3-24"},{"uid":"bb4af0a3-26"},{"uid":"bb4af0a3-28"}],"importedBy":[{"uid":"bb4af0a3-91"}]},"bb4af0a3-32":{"id":"/src/iframe/base.ts","moduleParts":{"index.js":"bb4af0a3-33"},"imported":[{"uid":"bb4af0a3-91"}],"importedBy":[{"uid":"bb4af0a3-83"},{"uid":"bb4af0a3-42"},{"uid":"bb4af0a3-44"}]},"bb4af0a3-34":{"id":"/src/wallets/metamask/index.ts","moduleParts":{"index.js":"bb4af0a3-35"},"imported":[{"uid":"bb4af0a3-87"}],"importedBy":[{"uid":"bb4af0a3-82"},{"uid":"bb4af0a3-40"}]},"bb4af0a3-36":{"id":"/src/wallets/phantom/index.ts","moduleParts":{"index.js":"bb4af0a3-37"},"imported":[{"uid":"bb4af0a3-88"}],"importedBy":[{"uid":"bb4af0a3-82"},{"uid":"bb4af0a3-40"}]},"bb4af0a3-38":{"id":"/src/wallets/argent/index.ts","moduleParts":{"index.js":"bb4af0a3-39"},"imported":[{"uid":"bb4af0a3-89"},{"uid":"bb4af0a3-90"}],"importedBy":[{"uid":"bb4af0a3-82"},{"uid":"bb4af0a3-40"}]},"bb4af0a3-40":{"id":"/src/wallets/bridge.ts","moduleParts":{"index.js":"bb4af0a3-41"},"imported":[{"uid":"bb4af0a3-34"},{"uid":"bb4af0a3-36"},{"uid":"bb4af0a3-38"}],"importedBy":[{"uid":"bb4af0a3-82"},{"uid":"bb4af0a3-42"}]},"bb4af0a3-42":{"id":"/src/iframe/keychain.ts","moduleParts":{"index.js":"bb4af0a3-43"},"imported":[{"uid":"bb4af0a3-68"},{"uid":"bb4af0a3-40"},{"uid":"bb4af0a3-32"}],"importedBy":[{"uid":"bb4af0a3-83"}]},"bb4af0a3-44":{"id":"/src/iframe/profile.ts","moduleParts":{"index.js":"bb4af0a3-45"},"imported":[{"uid":"bb4af0a3-68"},{"uid":"bb4af0a3-32"}],"importedBy":[{"uid":"bb4af0a3-83"}]},"bb4af0a3-46":{"id":"/src/controller.ts","moduleParts":{"index.js":"bb4af0a3-47"},"imported":[{"uid":"bb4af0a3-0"},{"uid":"bb4af0a3-83"},{"uid":"bb4af0a3-70"},{"uid":"bb4af0a3-64"},{"uid":"bb4af0a3-80"},{"uid":"bb4af0a3-84"},{"uid":"bb4af0a3-66"}],"importedBy":[{"uid":"bb4af0a3-52"}]},"bb4af0a3-48":{"id":"/src/lookup.ts","moduleParts":{"index.js":"bb4af0a3-49"},"imported":[{"uid":"bb4af0a3-84"},{"uid":"bb4af0a3-68"}],"importedBy":[{"uid":"bb4af0a3-52"}]},"bb4af0a3-50":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@cartridge+presets@https+++codeload.github.com+cartridge-gg+presets+tar.gz+2373780/node_modules/@cartridge/presets/dist/index.js","moduleParts":{"index.js":"bb4af0a3-51"},"imported":[],"importedBy":[{"uid":"bb4af0a3-52"}]},"bb4af0a3-52":{"id":"/src/index.ts","moduleParts":{"index.js":"bb4af0a3-53"},"imported":[{"uid":"bb4af0a3-46"},{"uid":"bb4af0a3-70"},{"uid":"bb4af0a3-64"},{"uid":"bb4af0a3-48"},{"uid":"bb4af0a3-66"},{"uid":"bb4af0a3-82"},{"uid":"bb4af0a3-50"}],"importedBy":[],"isEntry":true},"bb4af0a3-54":{"id":"/home/runner/work/controller/controller/packages/account-wasm/pkg-session/account_wasm_bg.js","moduleParts":{"session.js":"bb4af0a3-55"},"imported":[{"uid":"bb4af0a3-107"}],"importedBy":[{"uid":"bb4af0a3-56"}]},"bb4af0a3-56":{"id":"/home/runner/work/controller/controller/packages/account-wasm/pkg-session/account_wasm.js","moduleParts":{"session.js":"bb4af0a3-57"},"imported":[{"uid":"bb4af0a3-106"},{"uid":"bb4af0a3-54"}],"importedBy":[{"uid":"bb4af0a3-58"}]},"bb4af0a3-58":{"id":"/src/session/account.ts","moduleParts":{"session.js":"bb4af0a3-59"},"imported":[{"uid":"bb4af0a3-56"},{"uid":"bb4af0a3-84"},{"uid":"bb4af0a3-66"},{"uid":"bb4af0a3-70"},{"uid":"bb4af0a3-64"}],"importedBy":[{"uid":"bb4af0a3-60"}]},"bb4af0a3-60":{"id":"/src/session/provider.ts","moduleParts":{"session.js":"bb4af0a3-61"},"imported":[{"uid":"bb4af0a3-84"},{"uid":"bb4af0a3-58"},{"uid":"bb4af0a3-68"},{"uid":"bb4af0a3-80"},{"uid":"bb4af0a3-66"}],"importedBy":[{"uid":"bb4af0a3-62"}]},"bb4af0a3-62":{"id":"/src/session/index.ts","moduleParts":{"session.js":"bb4af0a3-63"},"imported":[{"uid":"bb4af0a3-60"},{"uid":"bb4af0a3-70"},{"uid":"bb4af0a3-64"}],"importedBy":[],"isEntry":true},"bb4af0a3-64":{"id":"/src/types.ts","moduleParts":{"provider-Dr912mPw.js":"bb4af0a3-65"},"imported":[],"importedBy":[{"uid":"bb4af0a3-52"},{"uid":"bb4af0a3-46"},{"uid":"bb4af0a3-0"},{"uid":"bb4af0a3-62"},{"uid":"bb4af0a3-58"}]},"bb4af0a3-66":{"id":"/src/utils.ts","moduleParts":{"provider-Dr912mPw.js":"bb4af0a3-67"},"imported":[{"uid":"bb4af0a3-84"}],"importedBy":[{"uid":"bb4af0a3-52"},{"uid":"bb4af0a3-46"},{"uid":"bb4af0a3-0"},{"uid":"bb4af0a3-60"},{"uid":"bb4af0a3-58"}]},"bb4af0a3-68":{"id":"/src/constants.ts","moduleParts":{"provider-Dr912mPw.js":"bb4af0a3-69"},"imported":[],"importedBy":[{"uid":"bb4af0a3-48"},{"uid":"bb4af0a3-42"},{"uid":"bb4af0a3-44"},{"uid":"bb4af0a3-60"}]},"bb4af0a3-70":{"id":"/src/errors.ts","moduleParts":{"provider-Dr912mPw.js":"bb4af0a3-71"},"imported":[],"importedBy":[{"uid":"bb4af0a3-52"},{"uid":"bb4af0a3-46"},{"uid":"bb4af0a3-62"},{"uid":"bb4af0a3-58"}]},"bb4af0a3-72":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/wallet-api/constants.js","moduleParts":{"provider-Dr912mPw.js":"bb4af0a3-73"},"imported":[],"importedBy":[{"uid":"bb4af0a3-93"}]},"bb4af0a3-74":{"id":"/package.json","moduleParts":{"provider-Dr912mPw.js":"bb4af0a3-75"},"imported":[],"importedBy":[{"uid":"bb4af0a3-80"}]},"bb4af0a3-76":{"id":"/src/icon.ts","moduleParts":{"provider-Dr912mPw.js":"bb4af0a3-77"},"imported":[],"importedBy":[{"uid":"bb4af0a3-80"}]},"bb4af0a3-78":{"id":"/src/mutex.ts","moduleParts":{"provider-Dr912mPw.js":"bb4af0a3-79"},"imported":[],"importedBy":[{"uid":"bb4af0a3-80"}]},"bb4af0a3-80":{"id":"/src/provider.ts","moduleParts":{"provider-Dr912mPw.js":"bb4af0a3-81"},"imported":[{"uid":"bb4af0a3-86"},{"uid":"bb4af0a3-74"},{"uid":"bb4af0a3-76"},{"uid":"bb4af0a3-78"}],"importedBy":[{"uid":"bb4af0a3-46"},{"uid":"bb4af0a3-60"}]},"bb4af0a3-82":{"id":"/src/wallets/index.ts","moduleParts":{},"imported":[{"uid":"bb4af0a3-85"},{"uid":"bb4af0a3-40"},{"uid":"bb4af0a3-34"},{"uid":"bb4af0a3-36"},{"uid":"bb4af0a3-38"}],"importedBy":[{"uid":"bb4af0a3-52"}]},"bb4af0a3-83":{"id":"/src/iframe/index.ts","moduleParts":{},"imported":[{"uid":"bb4af0a3-32"},{"uid":"bb4af0a3-42"},{"uid":"bb4af0a3-44"}],"importedBy":[{"uid":"bb4af0a3-46"}]},"bb4af0a3-84":{"id":"starknet","moduleParts":{},"imported":[],"importedBy":[{"uid":"bb4af0a3-46"},{"uid":"bb4af0a3-48"},{"uid":"bb4af0a3-66"},{"uid":"bb4af0a3-0"},{"uid":"bb4af0a3-60"},{"uid":"bb4af0a3-58"}],"isExternal":true},"bb4af0a3-85":{"id":"/src/wallets/types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"bb4af0a3-82"}]},"bb4af0a3-86":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/index.js","moduleParts":{},"imported":[{"uid":"bb4af0a3-92"},{"uid":"bb4af0a3-93"}],"importedBy":[{"uid":"bb4af0a3-80"}]},"bb4af0a3-87":{"id":"@metamask/sdk","moduleParts":{},"imported":[],"importedBy":[{"uid":"bb4af0a3-34"}],"isExternal":true},"bb4af0a3-88":{"id":"@solana/web3.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"bb4af0a3-36"}],"isExternal":true},"bb4af0a3-89":{"id":"starknetkit","moduleParts":{},"imported":[],"importedBy":[{"uid":"bb4af0a3-38"}],"isExternal":true},"bb4af0a3-90":{"id":"starknetkit/injected","moduleParts":{},"imported":[],"importedBy":[{"uid":"bb4af0a3-38"}],"isExternal":true},"bb4af0a3-91":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/index.js","moduleParts":{},"imported":[{"uid":"bb4af0a3-30"},{"uid":"bb4af0a3-94"},{"uid":"bb4af0a3-2"}],"importedBy":[{"uid":"bb4af0a3-32"}]},"bb4af0a3-92":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/api/index.js","moduleParts":{},"imported":[{"uid":"bb4af0a3-95"},{"uid":"bb4af0a3-96"},{"uid":"bb4af0a3-97"},{"uid":"bb4af0a3-98"}],"importedBy":[{"uid":"bb4af0a3-86"}]},"bb4af0a3-93":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/wallet-api/index.js","moduleParts":{},"imported":[{"uid":"bb4af0a3-72"},{"uid":"bb4af0a3-99"},{"uid":"bb4af0a3-100"},{"uid":"bb4af0a3-101"},{"uid":"bb4af0a3-102"},{"uid":"bb4af0a3-103"},{"uid":"bb4af0a3-104"}],"importedBy":[{"uid":"bb4af0a3-86"}]},"bb4af0a3-94":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/child/connectToParent.js","moduleParts":{},"imported":[{"uid":"bb4af0a3-4"},{"uid":"bb4af0a3-6"},{"uid":"bb4af0a3-2"},{"uid":"bb4af0a3-105"},{"uid":"bb4af0a3-16"},{"uid":"bb4af0a3-26"}],"importedBy":[{"uid":"bb4af0a3-91"}]},"bb4af0a3-95":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/api/contract.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"bb4af0a3-92"}]},"bb4af0a3-96":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/api/errors.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"bb4af0a3-92"}]},"bb4af0a3-97":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/api/components.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"bb4af0a3-92"}]},"bb4af0a3-98":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/api/nonspec.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"bb4af0a3-92"}]},"bb4af0a3-99":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/wallet-api/typedData.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"bb4af0a3-93"}]},"bb4af0a3-100":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/wallet-api/StarknetWindowObject.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"bb4af0a3-93"}]},"bb4af0a3-101":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/wallet-api/components.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"bb4af0a3-93"}]},"bb4af0a3-102":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/wallet-api/methods.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"bb4af0a3-93"}]},"bb4af0a3-103":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/wallet-api/events.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"bb4af0a3-93"}]},"bb4af0a3-104":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/wallet-api/errors.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"bb4af0a3-93"}]},"bb4af0a3-105":{"id":"/home/runner/work/controller/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/child/handleSynAckMessageFactory.js","moduleParts":{},"imported":[{"uid":"bb4af0a3-2"},{"uid":"bb4af0a3-12"},{"uid":"bb4af0a3-18"}],"importedBy":[{"uid":"bb4af0a3-94"}]},"bb4af0a3-106":{"id":"/home/runner/work/controller/controller/packages/account-wasm/pkg-session/account_wasm_bg.wasm","moduleParts":{},"imported":[],"importedBy":[{"uid":"bb4af0a3-56"}],"isExternal":true},"bb4af0a3-107":{"id":"/home/runner/work/controller/controller/packages/account-wasm/pkg-session/snippets/account-wasm-35da9c7350cbc3ae/src/wasm-mutex.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"bb4af0a3-54"}]}},"env":{"rollup":"4.34.6"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
4932
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src","children":[{"uid":"2efb01a5-1","name":"account.ts"},{"name":"iframe","children":[{"uid":"2efb01a5-33","name":"base.ts"},{"uid":"2efb01a5-43","name":"keychain.ts"},{"uid":"2efb01a5-45","name":"profile.ts"}]},{"name":"wallets","children":[{"name":"metamask/index.ts","uid":"2efb01a5-35"},{"name":"phantom/index.ts","uid":"2efb01a5-37"},{"name":"argent/index.ts","uid":"2efb01a5-39"},{"uid":"2efb01a5-41","name":"bridge.ts"}]},{"uid":"2efb01a5-47","name":"controller.ts"},{"uid":"2efb01a5-49","name":"lookup.ts"},{"uid":"2efb01a5-53","name":"index.ts"}]},{"name":"home/broody/development/controller/node_modules/.pnpm","children":[{"name":"@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib","children":[{"uid":"2efb01a5-3","name":"enums.js"},{"uid":"2efb01a5-5","name":"createDestructor.js"},{"uid":"2efb01a5-7","name":"createLogger.js"},{"name":"parent","children":[{"uid":"2efb01a5-9","name":"getOriginFromSrc.js"},{"uid":"2efb01a5-21","name":"handleAckMessageFactory.js"},{"uid":"2efb01a5-23","name":"handleSynMessageFactory.js"},{"uid":"2efb01a5-25","name":"monitorIframeRemoval.js"},{"uid":"2efb01a5-29","name":"validateIframeHasSrcOrSrcDoc.js"},{"uid":"2efb01a5-31","name":"connectToChild.js"}]},{"uid":"2efb01a5-11","name":"errorSerialization.js"},{"uid":"2efb01a5-13","name":"connectCallReceiver.js"},{"uid":"2efb01a5-15","name":"generateId.js"},{"uid":"2efb01a5-17","name":"methodSerialization.js"},{"uid":"2efb01a5-19","name":"connectCallSender.js"},{"uid":"2efb01a5-27","name":"startConnectionTimeout.js"}]},{"name":"@cartridge+presets@https+++codeload.github.com+cartridge-gg+presets+tar.gz+2373780/node_modules/@cartridge/presets/dist/index.js","uid":"2efb01a5-51"}]}]},{"name":"session.js","children":[{"name":"home/broody/development/controller/packages/account-wasm/pkg-session","children":[{"uid":"2efb01a5-55","name":"account_wasm_bg.js"},{"uid":"2efb01a5-57","name":"account_wasm.js"}]},{"name":"src/session","children":[{"uid":"2efb01a5-59","name":"account.ts"},{"uid":"2efb01a5-61","name":"provider.ts"},{"uid":"2efb01a5-63","name":"index.ts"}]}]},{"name":"provider-BN3lM6-S.js","children":[{"name":"src","children":[{"uid":"2efb01a5-65","name":"types.ts"},{"uid":"2efb01a5-67","name":"utils.ts"},{"uid":"2efb01a5-69","name":"constants.ts"},{"uid":"2efb01a5-71","name":"errors.ts"},{"uid":"2efb01a5-77","name":"icon.ts"},{"uid":"2efb01a5-79","name":"mutex.ts"},{"uid":"2efb01a5-81","name":"provider.ts"}]},{"name":"home/broody/development/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/wallet-api/constants.js","uid":"2efb01a5-73"},{"uid":"2efb01a5-75","name":"package.json"}]}],"isRoot":true},"nodeParts":{"2efb01a5-1":{"renderedLength":2593,"gzipLength":881,"brotliLength":716,"metaUid":"2efb01a5-0"},"2efb01a5-3":{"renderedLength":953,"gzipLength":315,"brotliLength":275,"metaUid":"2efb01a5-2"},"2efb01a5-5":{"renderedLength":507,"gzipLength":231,"brotliLength":188,"metaUid":"2efb01a5-4"},"2efb01a5-7":{"renderedLength":239,"gzipLength":171,"brotliLength":148,"metaUid":"2efb01a5-6"},"2efb01a5-9":{"renderedLength":1674,"gzipLength":796,"brotliLength":652,"metaUid":"2efb01a5-8"},"2efb01a5-11":{"renderedLength":414,"gzipLength":224,"brotliLength":189,"metaUid":"2efb01a5-10"},"2efb01a5-13":{"renderedLength":3554,"gzipLength":1132,"brotliLength":922,"metaUid":"2efb01a5-12"},"2efb01a5-15":{"renderedLength":107,"gzipLength":114,"brotliLength":85,"metaUid":"2efb01a5-14"},"2efb01a5-17":{"renderedLength":2519,"gzipLength":854,"brotliLength":741,"metaUid":"2efb01a5-16"},"2efb01a5-19":{"renderedLength":4452,"gzipLength":1440,"brotliLength":1198,"metaUid":"2efb01a5-18"},"2efb01a5-21":{"renderedLength":1939,"gzipLength":710,"brotliLength":596,"metaUid":"2efb01a5-20"},"2efb01a5-23":{"renderedLength":1033,"gzipLength":511,"brotliLength":406,"metaUid":"2efb01a5-22"},"2efb01a5-25":{"renderedLength":885,"gzipLength":442,"brotliLength":338,"metaUid":"2efb01a5-24"},"2efb01a5-27":{"renderedLength":534,"gzipLength":277,"brotliLength":219,"metaUid":"2efb01a5-26"},"2efb01a5-29":{"renderedLength":250,"gzipLength":177,"brotliLength":149,"metaUid":"2efb01a5-28"},"2efb01a5-31":{"renderedLength":2332,"gzipLength":870,"brotliLength":714,"metaUid":"2efb01a5-30"},"2efb01a5-33":{"renderedLength":4061,"gzipLength":1196,"brotliLength":974,"metaUid":"2efb01a5-32"},"2efb01a5-35":{"renderedLength":5069,"gzipLength":1048,"brotliLength":865,"metaUid":"2efb01a5-34"},"2efb01a5-37":{"renderedLength":3224,"gzipLength":818,"brotliLength":704,"metaUid":"2efb01a5-36"},"2efb01a5-39":{"renderedLength":2658,"gzipLength":768,"brotliLength":651,"metaUid":"2efb01a5-38"},"2efb01a5-41":{"renderedLength":5139,"gzipLength":1187,"brotliLength":1031,"metaUid":"2efb01a5-40"},"2efb01a5-43":{"renderedLength":674,"gzipLength":351,"brotliLength":273,"metaUid":"2efb01a5-42"},"2efb01a5-45":{"renderedLength":1215,"gzipLength":474,"brotliLength":381,"metaUid":"2efb01a5-44"},"2efb01a5-47":{"renderedLength":8991,"gzipLength":1916,"brotliLength":1672,"metaUid":"2efb01a5-46"},"2efb01a5-49":{"renderedLength":1419,"gzipLength":551,"brotliLength":470,"metaUid":"2efb01a5-48"},"2efb01a5-51":{"renderedLength":101196,"gzipLength":15161,"brotliLength":12521,"metaUid":"2efb01a5-50"},"2efb01a5-53":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"2efb01a5-52"},"2efb01a5-55":{"renderedLength":7527,"gzipLength":1819,"brotliLength":1639,"metaUid":"2efb01a5-54"},"2efb01a5-57":{"renderedLength":23,"gzipLength":40,"brotliLength":27,"metaUid":"2efb01a5-56"},"2efb01a5-59":{"renderedLength":1016,"gzipLength":466,"brotliLength":370,"metaUid":"2efb01a5-58"},"2efb01a5-61":{"renderedLength":5866,"gzipLength":1648,"brotliLength":1418,"metaUid":"2efb01a5-60"},"2efb01a5-63":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"2efb01a5-62"},"2efb01a5-65":{"renderedLength":530,"gzipLength":231,"brotliLength":203,"metaUid":"2efb01a5-64"},"2efb01a5-67":{"renderedLength":3607,"gzipLength":1301,"brotliLength":1140,"metaUid":"2efb01a5-66"},"2efb01a5-69":{"renderedLength":142,"gzipLength":98,"brotliLength":88,"metaUid":"2efb01a5-68"},"2efb01a5-71":{"renderedLength":160,"gzipLength":136,"brotliLength":105,"metaUid":"2efb01a5-70"},"2efb01a5-73":{"renderedLength":49,"gzipLength":69,"brotliLength":53,"metaUid":"2efb01a5-72"},"2efb01a5-75":{"renderedLength":56,"gzipLength":67,"brotliLength":60,"metaUid":"2efb01a5-74"},"2efb01a5-77":{"renderedLength":15450,"gzipLength":10585,"brotliLength":10568,"metaUid":"2efb01a5-76"},"2efb01a5-79":{"renderedLength":425,"gzipLength":237,"brotliLength":200,"metaUid":"2efb01a5-78"},"2efb01a5-81":{"renderedLength":4433,"gzipLength":1093,"brotliLength":950,"metaUid":"2efb01a5-80"}},"nodeMetas":{"2efb01a5-0":{"id":"/src/account.ts","moduleParts":{"index.js":"2efb01a5-1"},"imported":[{"uid":"2efb01a5-84"},{"uid":"2efb01a5-64"},{"uid":"2efb01a5-66"}],"importedBy":[{"uid":"2efb01a5-46"}]},"2efb01a5-2":{"id":"/home/broody/development/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/enums.js","moduleParts":{"index.js":"2efb01a5-3"},"imported":[],"importedBy":[{"uid":"2efb01a5-91"},{"uid":"2efb01a5-30"},{"uid":"2efb01a5-94"},{"uid":"2efb01a5-22"},{"uid":"2efb01a5-26"},{"uid":"2efb01a5-28"},{"uid":"2efb01a5-105"},{"uid":"2efb01a5-12"},{"uid":"2efb01a5-18"}]},"2efb01a5-4":{"id":"/home/broody/development/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/createDestructor.js","moduleParts":{"index.js":"2efb01a5-5"},"imported":[],"importedBy":[{"uid":"2efb01a5-30"},{"uid":"2efb01a5-94"}]},"2efb01a5-6":{"id":"/home/broody/development/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/createLogger.js","moduleParts":{"index.js":"2efb01a5-7"},"imported":[],"importedBy":[{"uid":"2efb01a5-30"},{"uid":"2efb01a5-94"}]},"2efb01a5-8":{"id":"/home/broody/development/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/parent/getOriginFromSrc.js","moduleParts":{"index.js":"2efb01a5-9"},"imported":[],"importedBy":[{"uid":"2efb01a5-30"}]},"2efb01a5-10":{"id":"/home/broody/development/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/errorSerialization.js","moduleParts":{"index.js":"2efb01a5-11"},"imported":[],"importedBy":[{"uid":"2efb01a5-12"},{"uid":"2efb01a5-18"}]},"2efb01a5-12":{"id":"/home/broody/development/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/connectCallReceiver.js","moduleParts":{"index.js":"2efb01a5-13"},"imported":[{"uid":"2efb01a5-10"},{"uid":"2efb01a5-2"}],"importedBy":[{"uid":"2efb01a5-20"},{"uid":"2efb01a5-105"}]},"2efb01a5-14":{"id":"/home/broody/development/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/generateId.js","moduleParts":{"index.js":"2efb01a5-15"},"imported":[],"importedBy":[{"uid":"2efb01a5-18"}]},"2efb01a5-16":{"id":"/home/broody/development/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/methodSerialization.js","moduleParts":{"index.js":"2efb01a5-17"},"imported":[],"importedBy":[{"uid":"2efb01a5-30"},{"uid":"2efb01a5-94"},{"uid":"2efb01a5-18"}]},"2efb01a5-18":{"id":"/home/broody/development/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/connectCallSender.js","moduleParts":{"index.js":"2efb01a5-19"},"imported":[{"uid":"2efb01a5-14"},{"uid":"2efb01a5-10"},{"uid":"2efb01a5-16"},{"uid":"2efb01a5-2"}],"importedBy":[{"uid":"2efb01a5-20"},{"uid":"2efb01a5-105"}]},"2efb01a5-20":{"id":"/home/broody/development/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/parent/handleAckMessageFactory.js","moduleParts":{"index.js":"2efb01a5-21"},"imported":[{"uid":"2efb01a5-12"},{"uid":"2efb01a5-18"}],"importedBy":[{"uid":"2efb01a5-30"}]},"2efb01a5-22":{"id":"/home/broody/development/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/parent/handleSynMessageFactory.js","moduleParts":{"index.js":"2efb01a5-23"},"imported":[{"uid":"2efb01a5-2"}],"importedBy":[{"uid":"2efb01a5-30"}]},"2efb01a5-24":{"id":"/home/broody/development/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/parent/monitorIframeRemoval.js","moduleParts":{"index.js":"2efb01a5-25"},"imported":[],"importedBy":[{"uid":"2efb01a5-30"}]},"2efb01a5-26":{"id":"/home/broody/development/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/startConnectionTimeout.js","moduleParts":{"index.js":"2efb01a5-27"},"imported":[{"uid":"2efb01a5-2"}],"importedBy":[{"uid":"2efb01a5-30"},{"uid":"2efb01a5-94"}]},"2efb01a5-28":{"id":"/home/broody/development/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/parent/validateIframeHasSrcOrSrcDoc.js","moduleParts":{"index.js":"2efb01a5-29"},"imported":[{"uid":"2efb01a5-2"}],"importedBy":[{"uid":"2efb01a5-30"}]},"2efb01a5-30":{"id":"/home/broody/development/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/parent/connectToChild.js","moduleParts":{"index.js":"2efb01a5-31"},"imported":[{"uid":"2efb01a5-2"},{"uid":"2efb01a5-4"},{"uid":"2efb01a5-6"},{"uid":"2efb01a5-8"},{"uid":"2efb01a5-20"},{"uid":"2efb01a5-22"},{"uid":"2efb01a5-16"},{"uid":"2efb01a5-24"},{"uid":"2efb01a5-26"},{"uid":"2efb01a5-28"}],"importedBy":[{"uid":"2efb01a5-91"}]},"2efb01a5-32":{"id":"/src/iframe/base.ts","moduleParts":{"index.js":"2efb01a5-33"},"imported":[{"uid":"2efb01a5-91"}],"importedBy":[{"uid":"2efb01a5-83"},{"uid":"2efb01a5-42"},{"uid":"2efb01a5-44"}]},"2efb01a5-34":{"id":"/src/wallets/metamask/index.ts","moduleParts":{"index.js":"2efb01a5-35"},"imported":[{"uid":"2efb01a5-87"}],"importedBy":[{"uid":"2efb01a5-82"},{"uid":"2efb01a5-40"}]},"2efb01a5-36":{"id":"/src/wallets/phantom/index.ts","moduleParts":{"index.js":"2efb01a5-37"},"imported":[{"uid":"2efb01a5-88"}],"importedBy":[{"uid":"2efb01a5-82"},{"uid":"2efb01a5-40"}]},"2efb01a5-38":{"id":"/src/wallets/argent/index.ts","moduleParts":{"index.js":"2efb01a5-39"},"imported":[{"uid":"2efb01a5-89"},{"uid":"2efb01a5-90"}],"importedBy":[{"uid":"2efb01a5-82"},{"uid":"2efb01a5-40"}]},"2efb01a5-40":{"id":"/src/wallets/bridge.ts","moduleParts":{"index.js":"2efb01a5-41"},"imported":[{"uid":"2efb01a5-34"},{"uid":"2efb01a5-36"},{"uid":"2efb01a5-38"}],"importedBy":[{"uid":"2efb01a5-82"},{"uid":"2efb01a5-42"}]},"2efb01a5-42":{"id":"/src/iframe/keychain.ts","moduleParts":{"index.js":"2efb01a5-43"},"imported":[{"uid":"2efb01a5-68"},{"uid":"2efb01a5-40"},{"uid":"2efb01a5-32"}],"importedBy":[{"uid":"2efb01a5-83"}]},"2efb01a5-44":{"id":"/src/iframe/profile.ts","moduleParts":{"index.js":"2efb01a5-45"},"imported":[{"uid":"2efb01a5-68"},{"uid":"2efb01a5-32"}],"importedBy":[{"uid":"2efb01a5-83"}]},"2efb01a5-46":{"id":"/src/controller.ts","moduleParts":{"index.js":"2efb01a5-47"},"imported":[{"uid":"2efb01a5-0"},{"uid":"2efb01a5-83"},{"uid":"2efb01a5-70"},{"uid":"2efb01a5-64"},{"uid":"2efb01a5-80"},{"uid":"2efb01a5-84"},{"uid":"2efb01a5-66"}],"importedBy":[{"uid":"2efb01a5-52"}]},"2efb01a5-48":{"id":"/src/lookup.ts","moduleParts":{"index.js":"2efb01a5-49"},"imported":[{"uid":"2efb01a5-84"},{"uid":"2efb01a5-68"}],"importedBy":[{"uid":"2efb01a5-52"}]},"2efb01a5-50":{"id":"/home/broody/development/controller/node_modules/.pnpm/@cartridge+presets@https+++codeload.github.com+cartridge-gg+presets+tar.gz+2373780/node_modules/@cartridge/presets/dist/index.js","moduleParts":{"index.js":"2efb01a5-51"},"imported":[],"importedBy":[{"uid":"2efb01a5-52"}]},"2efb01a5-52":{"id":"/src/index.ts","moduleParts":{"index.js":"2efb01a5-53"},"imported":[{"uid":"2efb01a5-46"},{"uid":"2efb01a5-70"},{"uid":"2efb01a5-64"},{"uid":"2efb01a5-48"},{"uid":"2efb01a5-66"},{"uid":"2efb01a5-82"},{"uid":"2efb01a5-50"}],"importedBy":[],"isEntry":true},"2efb01a5-54":{"id":"/home/broody/development/controller/packages/account-wasm/pkg-session/account_wasm_bg.js","moduleParts":{"session.js":"2efb01a5-55"},"imported":[{"uid":"2efb01a5-107"}],"importedBy":[{"uid":"2efb01a5-56"}]},"2efb01a5-56":{"id":"/home/broody/development/controller/packages/account-wasm/pkg-session/account_wasm.js","moduleParts":{"session.js":"2efb01a5-57"},"imported":[{"uid":"2efb01a5-106"},{"uid":"2efb01a5-54"}],"importedBy":[{"uid":"2efb01a5-58"}]},"2efb01a5-58":{"id":"/src/session/account.ts","moduleParts":{"session.js":"2efb01a5-59"},"imported":[{"uid":"2efb01a5-56"},{"uid":"2efb01a5-84"},{"uid":"2efb01a5-66"},{"uid":"2efb01a5-70"},{"uid":"2efb01a5-64"}],"importedBy":[{"uid":"2efb01a5-60"}]},"2efb01a5-60":{"id":"/src/session/provider.ts","moduleParts":{"session.js":"2efb01a5-61"},"imported":[{"uid":"2efb01a5-84"},{"uid":"2efb01a5-58"},{"uid":"2efb01a5-68"},{"uid":"2efb01a5-80"},{"uid":"2efb01a5-66"}],"importedBy":[{"uid":"2efb01a5-62"}]},"2efb01a5-62":{"id":"/src/session/index.ts","moduleParts":{"session.js":"2efb01a5-63"},"imported":[{"uid":"2efb01a5-60"},{"uid":"2efb01a5-70"},{"uid":"2efb01a5-64"}],"importedBy":[],"isEntry":true},"2efb01a5-64":{"id":"/src/types.ts","moduleParts":{"provider-BN3lM6-S.js":"2efb01a5-65"},"imported":[],"importedBy":[{"uid":"2efb01a5-52"},{"uid":"2efb01a5-46"},{"uid":"2efb01a5-0"},{"uid":"2efb01a5-62"},{"uid":"2efb01a5-58"}]},"2efb01a5-66":{"id":"/src/utils.ts","moduleParts":{"provider-BN3lM6-S.js":"2efb01a5-67"},"imported":[{"uid":"2efb01a5-84"}],"importedBy":[{"uid":"2efb01a5-52"},{"uid":"2efb01a5-46"},{"uid":"2efb01a5-0"},{"uid":"2efb01a5-60"},{"uid":"2efb01a5-58"}]},"2efb01a5-68":{"id":"/src/constants.ts","moduleParts":{"provider-BN3lM6-S.js":"2efb01a5-69"},"imported":[],"importedBy":[{"uid":"2efb01a5-48"},{"uid":"2efb01a5-42"},{"uid":"2efb01a5-44"},{"uid":"2efb01a5-60"}]},"2efb01a5-70":{"id":"/src/errors.ts","moduleParts":{"provider-BN3lM6-S.js":"2efb01a5-71"},"imported":[],"importedBy":[{"uid":"2efb01a5-52"},{"uid":"2efb01a5-46"},{"uid":"2efb01a5-62"},{"uid":"2efb01a5-58"}]},"2efb01a5-72":{"id":"/home/broody/development/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/wallet-api/constants.js","moduleParts":{"provider-BN3lM6-S.js":"2efb01a5-73"},"imported":[],"importedBy":[{"uid":"2efb01a5-93"}]},"2efb01a5-74":{"id":"/package.json","moduleParts":{"provider-BN3lM6-S.js":"2efb01a5-75"},"imported":[],"importedBy":[{"uid":"2efb01a5-80"}]},"2efb01a5-76":{"id":"/src/icon.ts","moduleParts":{"provider-BN3lM6-S.js":"2efb01a5-77"},"imported":[],"importedBy":[{"uid":"2efb01a5-80"}]},"2efb01a5-78":{"id":"/src/mutex.ts","moduleParts":{"provider-BN3lM6-S.js":"2efb01a5-79"},"imported":[],"importedBy":[{"uid":"2efb01a5-80"}]},"2efb01a5-80":{"id":"/src/provider.ts","moduleParts":{"provider-BN3lM6-S.js":"2efb01a5-81"},"imported":[{"uid":"2efb01a5-86"},{"uid":"2efb01a5-74"},{"uid":"2efb01a5-76"},{"uid":"2efb01a5-78"}],"importedBy":[{"uid":"2efb01a5-46"},{"uid":"2efb01a5-60"}]},"2efb01a5-82":{"id":"/src/wallets/index.ts","moduleParts":{},"imported":[{"uid":"2efb01a5-85"},{"uid":"2efb01a5-40"},{"uid":"2efb01a5-34"},{"uid":"2efb01a5-36"},{"uid":"2efb01a5-38"}],"importedBy":[{"uid":"2efb01a5-52"}]},"2efb01a5-83":{"id":"/src/iframe/index.ts","moduleParts":{},"imported":[{"uid":"2efb01a5-32"},{"uid":"2efb01a5-42"},{"uid":"2efb01a5-44"}],"importedBy":[{"uid":"2efb01a5-46"}]},"2efb01a5-84":{"id":"starknet","moduleParts":{},"imported":[],"importedBy":[{"uid":"2efb01a5-46"},{"uid":"2efb01a5-48"},{"uid":"2efb01a5-66"},{"uid":"2efb01a5-0"},{"uid":"2efb01a5-60"},{"uid":"2efb01a5-58"}],"isExternal":true},"2efb01a5-85":{"id":"/src/wallets/types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"2efb01a5-82"}]},"2efb01a5-86":{"id":"/home/broody/development/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/index.js","moduleParts":{},"imported":[{"uid":"2efb01a5-92"},{"uid":"2efb01a5-93"}],"importedBy":[{"uid":"2efb01a5-80"}]},"2efb01a5-87":{"id":"@metamask/sdk","moduleParts":{},"imported":[],"importedBy":[{"uid":"2efb01a5-34"}],"isExternal":true},"2efb01a5-88":{"id":"@solana/web3.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"2efb01a5-36"}],"isExternal":true},"2efb01a5-89":{"id":"starknetkit","moduleParts":{},"imported":[],"importedBy":[{"uid":"2efb01a5-38"}],"isExternal":true},"2efb01a5-90":{"id":"starknetkit/injected","moduleParts":{},"imported":[],"importedBy":[{"uid":"2efb01a5-38"}],"isExternal":true},"2efb01a5-91":{"id":"/home/broody/development/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/index.js","moduleParts":{},"imported":[{"uid":"2efb01a5-30"},{"uid":"2efb01a5-94"},{"uid":"2efb01a5-2"}],"importedBy":[{"uid":"2efb01a5-32"}]},"2efb01a5-92":{"id":"/home/broody/development/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/api/index.js","moduleParts":{},"imported":[{"uid":"2efb01a5-95"},{"uid":"2efb01a5-96"},{"uid":"2efb01a5-97"},{"uid":"2efb01a5-98"}],"importedBy":[{"uid":"2efb01a5-86"}]},"2efb01a5-93":{"id":"/home/broody/development/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/wallet-api/index.js","moduleParts":{},"imported":[{"uid":"2efb01a5-72"},{"uid":"2efb01a5-99"},{"uid":"2efb01a5-100"},{"uid":"2efb01a5-101"},{"uid":"2efb01a5-102"},{"uid":"2efb01a5-103"},{"uid":"2efb01a5-104"}],"importedBy":[{"uid":"2efb01a5-86"}]},"2efb01a5-94":{"id":"/home/broody/development/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/child/connectToParent.js","moduleParts":{},"imported":[{"uid":"2efb01a5-4"},{"uid":"2efb01a5-6"},{"uid":"2efb01a5-2"},{"uid":"2efb01a5-105"},{"uid":"2efb01a5-16"},{"uid":"2efb01a5-26"}],"importedBy":[{"uid":"2efb01a5-91"}]},"2efb01a5-95":{"id":"/home/broody/development/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/api/contract.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"2efb01a5-92"}]},"2efb01a5-96":{"id":"/home/broody/development/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/api/errors.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"2efb01a5-92"}]},"2efb01a5-97":{"id":"/home/broody/development/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/api/components.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"2efb01a5-92"}]},"2efb01a5-98":{"id":"/home/broody/development/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/api/nonspec.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"2efb01a5-92"}]},"2efb01a5-99":{"id":"/home/broody/development/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/wallet-api/typedData.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"2efb01a5-93"}]},"2efb01a5-100":{"id":"/home/broody/development/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/wallet-api/StarknetWindowObject.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"2efb01a5-93"}]},"2efb01a5-101":{"id":"/home/broody/development/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/wallet-api/components.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"2efb01a5-93"}]},"2efb01a5-102":{"id":"/home/broody/development/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/wallet-api/methods.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"2efb01a5-93"}]},"2efb01a5-103":{"id":"/home/broody/development/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/wallet-api/events.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"2efb01a5-93"}]},"2efb01a5-104":{"id":"/home/broody/development/controller/node_modules/.pnpm/@starknet-io+types-js@0.7.10/node_modules/@starknet-io/types-js/dist/esm/wallet-api/errors.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"2efb01a5-93"}]},"2efb01a5-105":{"id":"/home/broody/development/controller/node_modules/.pnpm/@cartridge+penpal@6.2.4/node_modules/@cartridge/penpal/lib/child/handleSynAckMessageFactory.js","moduleParts":{},"imported":[{"uid":"2efb01a5-2"},{"uid":"2efb01a5-12"},{"uid":"2efb01a5-18"}],"importedBy":[{"uid":"2efb01a5-94"}]},"2efb01a5-106":{"id":"/home/broody/development/controller/packages/account-wasm/pkg-session/account_wasm_bg.wasm","moduleParts":{},"imported":[],"importedBy":[{"uid":"2efb01a5-56"}],"isExternal":true},"2efb01a5-107":{"id":"/home/broody/development/controller/packages/account-wasm/pkg-session/snippets/account-wasm-35da9c7350cbc3ae/src/wasm-mutex.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"2efb01a5-54"}]}},"env":{"rollup":"4.34.6"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
4933
4933
|
|
|
4934
4934
|
const run = () => {
|
|
4935
4935
|
const width = window.innerWidth;
|
package/dist/types.d.ts
CHANGED
|
@@ -65,6 +65,10 @@ export interface LookupResult {
|
|
|
65
65
|
export interface LookupResponse {
|
|
66
66
|
results: LookupResult[];
|
|
67
67
|
}
|
|
68
|
+
export declare enum FeeSource {
|
|
69
|
+
PAYMASTER = "PAYMASTER",
|
|
70
|
+
CREDITS = "CREDITS"
|
|
71
|
+
}
|
|
68
72
|
type ContractAddress = string;
|
|
69
73
|
type CartridgeID = string;
|
|
70
74
|
export type ControllerAccounts = Record<ContractAddress, CartridgeID>;
|
|
@@ -75,7 +79,7 @@ export interface Keychain {
|
|
|
75
79
|
reset(): void;
|
|
76
80
|
revoke(origin: string): void;
|
|
77
81
|
deploy(): Promise<DeployReply | ConnectError>;
|
|
78
|
-
execute(calls: Call | Call[], abis?: Abi[], transactionsDetail?: InvocationsDetails, sync?: boolean,
|
|
82
|
+
execute(calls: Call | Call[], abis?: Abi[], transactionsDetail?: InvocationsDetails, sync?: boolean, feeSource?: any, error?: ControllerError): Promise<ExecuteReply | ConnectError>;
|
|
79
83
|
signMessage(typedData: TypedData, account: string, async?: boolean): Promise<Signature | ConnectError>;
|
|
80
84
|
openSettings(): Promise<void | ConnectError>;
|
|
81
85
|
session(): Promise<Session>;
|
|
@@ -87,7 +91,7 @@ export interface Keychain {
|
|
|
87
91
|
openPurchaseCredits(): void;
|
|
88
92
|
openExecute(calls: Call[]): Promise<void>;
|
|
89
93
|
switchChain(rpcUrl: string): Promise<void>;
|
|
90
|
-
openStarterPack(): void;
|
|
94
|
+
openStarterPack(starterpackId: string): void;
|
|
91
95
|
externalDetectWallets(): Promise<ExternalWallet[]>;
|
|
92
96
|
externalConnectWallet(type: ExternalWalletType): Promise<ExternalWalletResponse>;
|
|
93
97
|
externalSignMessage(type: ExternalWalletType, message: string): Promise<ExternalWalletResponse>;
|
|
@@ -127,6 +131,8 @@ export type KeychainOptions = IFrameOptions & {
|
|
|
127
131
|
origin?: string;
|
|
128
132
|
/** Propagate transaction errors back to caller instead of showing modal */
|
|
129
133
|
propagateSessionErrors?: boolean;
|
|
134
|
+
/** The fee source to use for execute from outside */
|
|
135
|
+
feeSource?: FeeSource;
|
|
130
136
|
};
|
|
131
137
|
export type ProfileOptions = IFrameOptions & {
|
|
132
138
|
/** The URL of profile. Mainly for internal development purpose */
|
package/dist/wallets/bridge.d.ts
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
import { ExternalWalletType, ExternalWallet, ExternalWalletResponse } from './types';
|
|
2
2
|
export declare class WalletBridge {
|
|
3
3
|
private readonly walletAdapters;
|
|
4
|
-
private readonly
|
|
4
|
+
private readonly connectedWalletsByType;
|
|
5
|
+
private readonly connectedWalletsByAddress;
|
|
5
6
|
constructor();
|
|
6
7
|
getIFrameMethods(): {
|
|
7
8
|
externalDetectWallets: (_origin: string) => () => Promise<ExternalWallet[]>;
|
|
8
9
|
externalConnectWallet: (_origin: string) => (type: ExternalWalletType) => Promise<ExternalWalletResponse<unknown>>;
|
|
9
|
-
externalSignMessage: (_origin: string) => (
|
|
10
|
-
externalSignTypedData: (_origin: string) => (
|
|
11
|
-
externalSendTransaction: (_origin: string) => (
|
|
12
|
-
externalGetBalance: (_origin: string) => (
|
|
10
|
+
externalSignMessage: (_origin: string) => (identifier: ExternalWalletType | string, message: string) => Promise<ExternalWalletResponse<unknown>>;
|
|
11
|
+
externalSignTypedData: (_origin: string) => (identifier: ExternalWalletType | string, data: any) => Promise<ExternalWalletResponse<unknown>>;
|
|
12
|
+
externalSendTransaction: (_origin: string) => (identifier: ExternalWalletType | string, txn: any) => Promise<ExternalWalletResponse<unknown>>;
|
|
13
|
+
externalGetBalance: (_origin: string) => (identifier: ExternalWalletType | string, tokenAddress?: string) => Promise<ExternalWalletResponse<unknown>>;
|
|
13
14
|
};
|
|
14
15
|
detectWallets(): Promise<ExternalWallet[]>;
|
|
15
|
-
private
|
|
16
|
+
private getWalletAdapterByType;
|
|
16
17
|
private handleError;
|
|
17
18
|
connectWallet(type: ExternalWalletType): Promise<ExternalWalletResponse>;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
private getConnectedWalletAdapter;
|
|
20
|
+
signMessage(identifier: ExternalWalletType | string, message: string): Promise<ExternalWalletResponse>;
|
|
21
|
+
signTypedData(identifier: ExternalWalletType | string, data: any): Promise<ExternalWalletResponse>;
|
|
22
|
+
sendTransaction(identifier: ExternalWalletType | string, txn: any): Promise<ExternalWalletResponse>;
|
|
23
|
+
getBalance(identifier: ExternalWalletType | string, tokenAddress?: string): Promise<ExternalWalletResponse>;
|
|
22
24
|
}
|
|
23
25
|
declare global {
|
|
24
26
|
interface Window {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cartridge/controller",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.12",
|
|
4
4
|
"description": "Cartridge Controller",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@telegram-apps/sdk": "^2.4.0",
|
|
34
34
|
"cbor-x": "^1.5.0",
|
|
35
35
|
"fast-deep-equal": "^3.1.3",
|
|
36
|
-
"@cartridge/account-wasm": "0.7.
|
|
36
|
+
"@cartridge/account-wasm": "0.7.12"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/jest": "^29.5.14",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"vite-plugin-node-polyfills": "^0.22.0",
|
|
50
50
|
"vite-plugin-top-level-await": "^1.4.4",
|
|
51
51
|
"vite-plugin-wasm": "^3.4.1",
|
|
52
|
-
"@cartridge/tsconfig": "0.7.
|
|
52
|
+
"@cartridge/tsconfig": "0.7.12"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build:deps": "pnpm build",
|
package/src/account.ts
CHANGED
package/src/controller.ts
CHANGED
|
@@ -18,7 +18,11 @@ import {
|
|
|
18
18
|
import BaseProvider from "./provider";
|
|
19
19
|
import { shortString, WalletAccount } from "starknet";
|
|
20
20
|
import { Policy } from "@cartridge/presets";
|
|
21
|
-
import {
|
|
21
|
+
import {
|
|
22
|
+
AddInvokeTransactionResult,
|
|
23
|
+
AddStarknetChainParameters,
|
|
24
|
+
ChainId,
|
|
25
|
+
} from "@starknet-io/types-js";
|
|
22
26
|
import { parseChainId } from "./utils";
|
|
23
27
|
|
|
24
28
|
export default class ControllerProvider extends BaseProvider {
|
|
@@ -301,7 +305,7 @@ export default class ControllerProvider extends BaseProvider {
|
|
|
301
305
|
this.keychain.openPurchaseCredits();
|
|
302
306
|
}
|
|
303
307
|
|
|
304
|
-
openStarterPack() {
|
|
308
|
+
openStarterPack(starterpackId: string) {
|
|
305
309
|
if (!this.keychain || !this.iframes.keychain) {
|
|
306
310
|
console.error(new NotReadyToConnect().message);
|
|
307
311
|
return;
|
|
@@ -312,7 +316,7 @@ export default class ControllerProvider extends BaseProvider {
|
|
|
312
316
|
}
|
|
313
317
|
this.iframes.profile.close();
|
|
314
318
|
this.iframes.keychain.open();
|
|
315
|
-
this.keychain.openStarterPack();
|
|
319
|
+
this.keychain.openStarterPack(starterpackId);
|
|
316
320
|
}
|
|
317
321
|
|
|
318
322
|
async openExecute(calls: any, chainId?: string) {
|
|
@@ -343,11 +347,15 @@ export default class ControllerProvider extends BaseProvider {
|
|
|
343
347
|
if (chainId) {
|
|
344
348
|
this.switchStarknetChain(currentChainId);
|
|
345
349
|
}
|
|
346
|
-
|
|
350
|
+
const status = !(
|
|
347
351
|
res &&
|
|
348
352
|
((res as ConnectError).code === ResponseCodes.NOT_CONNECTED ||
|
|
349
353
|
(res as ConnectError).code === ResponseCodes.CANCELED)
|
|
350
354
|
);
|
|
355
|
+
return {
|
|
356
|
+
status,
|
|
357
|
+
transactionHash: (res as AddInvokeTransactionResult)?.transaction_hash,
|
|
358
|
+
};
|
|
351
359
|
}
|
|
352
360
|
|
|
353
361
|
async delegateAccount() {
|
package/src/iframe/base.ts
CHANGED
|
@@ -68,6 +68,7 @@ export class IFrame<CallSender extends {}> implements Modal {
|
|
|
68
68
|
container.style.visibility = "hidden";
|
|
69
69
|
container.style.opacity = "0";
|
|
70
70
|
container.style.transition = "opacity 0.2s ease";
|
|
71
|
+
container.style.pointerEvents = "auto";
|
|
71
72
|
container.appendChild(iframe);
|
|
72
73
|
|
|
73
74
|
this.iframe = iframe;
|
package/src/iframe/keychain.ts
CHANGED
|
@@ -27,6 +27,11 @@ export class KeychainIFrame extends IFrame<Keychain> {
|
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
this.walletBridge = walletBridge;
|
|
30
|
+
|
|
31
|
+
// Expose the wallet bridge instance globally for WASM interop
|
|
32
|
+
if (typeof window !== "undefined") {
|
|
33
|
+
(window as any).external_wallets = this.walletBridge;
|
|
34
|
+
}
|
|
30
35
|
}
|
|
31
36
|
|
|
32
37
|
getWalletBridge(): WalletBridge {
|
package/src/types.ts
CHANGED
|
@@ -95,6 +95,11 @@ export interface LookupResponse {
|
|
|
95
95
|
results: LookupResult[];
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
export enum FeeSource {
|
|
99
|
+
PAYMASTER = "PAYMASTER",
|
|
100
|
+
CREDITS = "CREDITS",
|
|
101
|
+
}
|
|
102
|
+
|
|
98
103
|
type ContractAddress = string;
|
|
99
104
|
type CartridgeID = string;
|
|
100
105
|
export type ControllerAccounts = Record<ContractAddress, CartridgeID>;
|
|
@@ -116,7 +121,7 @@ export interface Keychain {
|
|
|
116
121
|
abis?: Abi[],
|
|
117
122
|
transactionsDetail?: InvocationsDetails,
|
|
118
123
|
sync?: boolean,
|
|
119
|
-
|
|
124
|
+
feeSource?: any,
|
|
120
125
|
error?: ControllerError,
|
|
121
126
|
): Promise<ExecuteReply | ConnectError>;
|
|
122
127
|
signMessage(
|
|
@@ -134,7 +139,7 @@ export interface Keychain {
|
|
|
134
139
|
openPurchaseCredits(): void;
|
|
135
140
|
openExecute(calls: Call[]): Promise<void>;
|
|
136
141
|
switchChain(rpcUrl: string): Promise<void>;
|
|
137
|
-
openStarterPack(): void;
|
|
142
|
+
openStarterPack(starterpackId: string): void;
|
|
138
143
|
|
|
139
144
|
// External wallet methods
|
|
140
145
|
externalDetectWallets(): Promise<ExternalWallet[]>;
|
|
@@ -197,6 +202,8 @@ export type KeychainOptions = IFrameOptions & {
|
|
|
197
202
|
origin?: string;
|
|
198
203
|
/** Propagate transaction errors back to caller instead of showing modal */
|
|
199
204
|
propagateSessionErrors?: boolean;
|
|
205
|
+
/** The fee source to use for execute from outside */
|
|
206
|
+
feeSource?: FeeSource;
|
|
200
207
|
};
|
|
201
208
|
|
|
202
209
|
export type ProfileOptions = IFrameOptions & {
|