@argent/x-shared 1.78.12 → 1.79.1
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/dist/.ts-temp/tsconfig.tsbuildinfo +1 -1
- package/dist/_virtual/_rolldown/runtime.cjs +1 -0
- package/dist/_virtual/_rolldown/runtime.js +20 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +112 -488
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.js +11 -11
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/curve.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/curve.js +62 -85
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.js +153 -190
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.js +56 -65
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.js +125 -151
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.js +470 -575
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/_assert.js +26 -40
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/crypto.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/crypto.js +4 -4
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/hmac.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/hmac.js +38 -42
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/utils.js +28 -42
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_assert.js +17 -26
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_sha2.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_sha2.js +52 -59
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_u64.js +20 -19
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.js +118 -113
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.js +95 -105
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.js +26 -32
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/_md.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/_md.js +71 -82
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/_u64.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/_u64.js +20 -20
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/sha2.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/sha2.js +125 -124
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/sha3.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/sha3.js +102 -116
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/@noble_hashes@2.0.0/node_modules/@noble/hashes/utils.js +62 -76
- package/dist/node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.cjs +1 -1
- package/dist/node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.js +519 -614
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js +15 -19
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js +15 -19
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js +15 -19
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.js +10 -12
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.js +6 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.js +6 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js +7 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.js +6 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +9 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.js +7 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.js +10 -15
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.js +26 -32
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.js +7 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +4 -4
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.js +8 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +12 -13
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js +11 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js +8 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js +7 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.js +9 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js +8 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js +7 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js +11 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js +7 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js +7 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js +4 -4
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +4 -4
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.js +8 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.js +6 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.js +14 -16
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js +5 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js +10 -11
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +6 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.js +4 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.cjs +1 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.js +6 -6
- package/dist/node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.cjs +1 -1
- package/dist/node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.js +121 -118
- package/dist/node_modules/.pnpm/numeral@2.0.6/node_modules/numeral/numeral.cjs +1 -1
- package/dist/node_modules/.pnpm/numeral@2.0.6/node_modules/numeral/numeral.js +377 -417
- package/dist/node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.cjs +1 -1
- package/dist/node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.js +546 -635
- package/dist/paymaster.cjs +1 -1
- package/dist/paymaster.js +3 -9
- package/dist/simulation.cjs +1 -1
- package/dist/simulation.js +22 -90
- package/dist/src/account/account.model.cjs +1 -1
- package/dist/src/account/account.model.js +58 -52
- package/dist/src/account/accountv4.cjs +1 -1
- package/dist/src/account/accountv4.js +9 -11
- package/dist/src/account/preferences.model.cjs +1 -1
- package/dist/src/account/preferences.model.js +12 -10
- package/dist/src/accountNameGenerator/colors.cjs +1 -1
- package/dist/src/accountNameGenerator/colors.js +24 -24
- package/dist/src/accountNameGenerator/index.cjs +1 -1
- package/dist/src/accountNameGenerator/index.js +23 -23
- package/dist/src/accountNameGenerator/x-names.json.cjs +1 -1
- package/dist/src/accountNameGenerator/x-names.json.js +1922 -7
- package/dist/src/assets/tokens.json.cjs +1 -1
- package/dist/src/assets/tokens.json.js +180 -180
- package/dist/src/backend/schema.cjs +1 -1
- package/dist/src/backend/schema.js +9 -12
- package/dist/src/backend/sessionKeys/schema.cjs +1 -1
- package/dist/src/backend/sessionKeys/schema.js +27 -30
- package/dist/src/bigdecimal/constants.cjs +1 -1
- package/dist/src/bigdecimal/constants.js +6 -3
- package/dist/src/bigdecimal/createUnitsSchema.cjs +1 -1
- package/dist/src/bigdecimal/createUnitsSchema.js +7 -7
- package/dist/src/bigdecimal/formatUnits.cjs +1 -1
- package/dist/src/bigdecimal/formatUnits.js +9 -10
- package/dist/src/bigdecimal/index.cjs +1 -1
- package/dist/src/bigdecimal/index.js +45 -41
- package/dist/src/bigdecimal/lib.cjs +1 -1
- package/dist/src/bigdecimal/lib.js +105 -117
- package/dist/src/bigdecimal/parseUnits.cjs +1 -1
- package/dist/src/bigdecimal/parseUnits.js +18 -21
- package/dist/src/bigdecimal/utils.cjs +1 -1
- package/dist/src/bigdecimal/utils.js +33 -30
- package/dist/src/cache/CacheService.cjs +1 -1
- package/dist/src/cache/CacheService.js +32 -36
- package/dist/src/chains/starknet/address.cjs +1 -1
- package/dist/src/chains/starknet/address.js +73 -117
- package/dist/src/chains/starknet/addressDomain.cjs +1 -1
- package/dist/src/chains/starknet/addressDomain.js +14 -29
- package/dist/src/chains/starknet/addressInput.cjs +1 -1
- package/dist/src/chains/starknet/addressInput.js +6 -7
- package/dist/src/chains/starknet/argentName.cjs +1 -1
- package/dist/src/chains/starknet/argentName.js +10 -14
- package/dist/src/chains/starknet/cairoVersionSchema.cjs +1 -1
- package/dist/src/chains/starknet/cairoVersionSchema.js +5 -5
- package/dist/src/chains/starknet/constants.cjs +1 -1
- package/dist/src/chains/starknet/constants.js +4 -10
- package/dist/src/chains/starknet/getAddressFromArgentName.cjs +1 -1
- package/dist/src/chains/starknet/getAddressFromArgentName.js +38 -46
- package/dist/src/chains/starknet/getAddressFromStarkName.cjs +1 -1
- package/dist/src/chains/starknet/getAddressFromStarkName.js +59 -66
- package/dist/src/chains/starknet/network.cjs +1 -1
- package/dist/src/chains/starknet/network.js +20 -26
- package/dist/src/chains/starknet/services/address/StarknetAddressService.cjs +1 -1
- package/dist/src/chains/starknet/services/address/StarknetAddressService.js +31 -36
- package/dist/src/chains/starknet/services/deploymentData/constants.cjs +1 -1
- package/dist/src/chains/starknet/services/deploymentData/constants.js +14 -21
- package/dist/src/chains/starknet/services/deploymentData/deploymentData.schema.cjs +1 -1
- package/dist/src/chains/starknet/services/deploymentData/deploymentData.schema.js +15 -17
- package/dist/src/chains/starknet/services/deploymentData/findImplementationForAccount.cjs +1 -1
- package/dist/src/chains/starknet/services/deploymentData/findImplementationForAccount.js +61 -65
- package/dist/src/chains/starknet/services/deploymentData/getAccountClassHash.cjs +1 -1
- package/dist/src/chains/starknet/services/deploymentData/getAccountClassHash.js +46 -65
- package/dist/src/chains/starknet/starknetId.cjs +1 -1
- package/dist/src/chains/starknet/starknetId.js +10 -14
- package/dist/src/currencyFetchService/CurrencyFetchService.cjs +1 -1
- package/dist/src/currencyFetchService/CurrencyFetchService.js +13 -18
- package/dist/src/currencyFetchService/types.ts.cjs +1 -1
- package/dist/src/currencyFetchService/types.ts.js +9 -12
- package/dist/src/errors/account.cjs +1 -1
- package/dist/src/errors/account.js +12 -13
- package/dist/src/errors/address.cjs +1 -1
- package/dist/src/errors/address.js +11 -12
- package/dist/src/errors/baseErrors.cjs +1 -1
- package/dist/src/errors/baseErrors.js +14 -14
- package/dist/src/errors/call.cjs +1 -1
- package/dist/src/errors/call.js +12 -13
- package/dist/src/errors/network.cjs +1 -1
- package/dist/src/errors/network.js +11 -12
- package/dist/src/errors/review.cjs +1 -1
- package/dist/src/errors/review.js +11 -12
- package/dist/src/errors/swap.cjs +1 -1
- package/dist/src/errors/swap.js +12 -13
- package/dist/src/features/paymaster/IPaymasterService.d.ts +2 -1
- package/dist/src/features/paymaster/PaymasterService.cjs +1 -1
- package/dist/src/features/paymaster/PaymasterService.d.ts +3 -1
- package/dist/src/features/paymaster/PaymasterService.js +73 -86
- package/dist/src/features/paymaster/types.cjs +1 -1
- package/dist/src/features/paymaster/types.d.ts +20 -2
- package/dist/src/features/paymaster/types.js +41 -39
- package/dist/src/features/simulation/activity/normalize.cjs +1 -1
- package/dist/src/features/simulation/activity/normalize.js +36 -38
- package/dist/src/features/simulation/activity/schema.cjs +1 -1
- package/dist/src/features/simulation/activity/schema.js +224 -250
- package/dist/src/features/simulation/activity/utils/createNativeActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/createNativeActivity.js +23 -27
- package/dist/src/features/simulation/activity/utils/getAnyActivityTitle.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/getAnyActivityTitle.js +14 -21
- package/dist/src/features/simulation/activity/utils/getOverallLastModified.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/getOverallLastModified.js +5 -5
- package/dist/src/features/simulation/activity/utils/hasDelegationActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/hasDelegationActivity.js +4 -4
- package/dist/src/features/simulation/activity/utils/isAddMultisigSignersActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isAddMultisigSignersActivity.js +15 -19
- package/dist/src/features/simulation/activity/utils/isChangeMultisigThresholdActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isChangeMultisigThresholdActivity.js +15 -19
- package/dist/src/features/simulation/activity/utils/isMulticallWithDeploymentActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isMulticallWithDeploymentActivity.js +5 -5
- package/dist/src/features/simulation/activity/utils/isRejectOnChainActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isRejectOnChainActivity.js +19 -21
- package/dist/src/features/simulation/activity/utils/isRemoveMultisigSignersActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isRemoveMultisigSignersActivity.js +15 -19
- package/dist/src/features/simulation/activity/utils/isSwapActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isSwapActivity.js +17 -18
- package/dist/src/features/simulation/activity/utils/isUpgradeActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/isUpgradeActivity.js +15 -19
- package/dist/src/features/simulation/activity/utils/parseAccountActivities.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/parseAccountActivities.js +12 -12
- package/dist/src/features/simulation/activity/utils/parseFinanceActivities.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/parseFinanceActivities.js +32 -32
- package/dist/src/features/simulation/fees/schema.cjs +1 -1
- package/dist/src/features/simulation/fees/schema.js +33 -47
- package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.cjs +1 -1
- package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.js +15 -17
- package/dist/src/features/simulation/transactionReview/getMessageFromSimulationError.cjs +1 -1
- package/dist/src/features/simulation/transactionReview/getMessageFromSimulationError.js +5 -5
- package/dist/src/features/simulation/transactionReview/schema.cjs +1 -1
- package/dist/src/features/simulation/transactionReview/schema.js +221 -242
- package/dist/src/features/simulation/warning/helper.cjs +1 -1
- package/dist/src/features/simulation/warning/helper.js +12 -11
- package/dist/src/features/simulation/warning/schema.cjs +1 -1
- package/dist/src/features/simulation/warning/schema.js +10 -11
- package/dist/src/features/swap/models/order.model.cjs +1 -1
- package/dist/src/features/swap/models/order.model.js +16 -19
- package/dist/src/features/swap/models/quote.model.cjs +1 -1
- package/dist/src/features/swap/models/quote.model.js +31 -35
- package/dist/src/features/swap/models/trade.model.cjs +1 -1
- package/dist/src/features/swap/models/trade.model.js +25 -27
- package/dist/src/features/swap/services/SwapSharedService.cjs +1 -1
- package/dist/src/features/swap/services/SwapSharedService.js +71 -75
- package/dist/src/features/swap/services/SwapTransactionService.cjs +1 -1
- package/dist/src/features/swap/services/SwapTransactionService.js +57 -63
- package/dist/src/features/swap/utils/slippage.cjs +1 -1
- package/dist/src/features/swap/utils/slippage.js +18 -25
- package/dist/src/features/swap/utils/totalFee.cjs +1 -1
- package/dist/src/features/swap/utils/totalFee.js +12 -12
- package/dist/src/http/DateService.cjs +1 -1
- package/dist/src/http/DateService.js +15 -18
- package/dist/src/http/HttpError.cjs +1 -1
- package/dist/src/http/HttpError.js +7 -7
- package/dist/src/http/HttpService.cjs +1 -1
- package/dist/src/http/HttpService.js +117 -134
- package/dist/src/http/IHttpService.cjs +1 -1
- package/dist/src/http/IHttpService.js +6 -6
- package/dist/src/http/SWRService.cjs +1 -1
- package/dist/src/http/SWRService.js +50 -57
- package/dist/src/http/fetcher.cjs +1 -1
- package/dist/src/http/fetcher.js +29 -35
- package/dist/src/http/time.cjs +1 -1
- package/dist/src/http/time.js +15 -18
- package/dist/src/knownDapps/KnownDappsBackendService.cjs +1 -1
- package/dist/src/knownDapps/KnownDappsBackendService.js +13 -14
- package/dist/src/knownDapps/schema.cjs +1 -1
- package/dist/src/knownDapps/schema.js +41 -44
- package/dist/src/knownDapps/utils/getDapplandUrl.cjs +1 -1
- package/dist/src/knownDapps/utils/getDapplandUrl.js +7 -8
- package/dist/src/nameResolution/ResolveNameService.cjs +1 -1
- package/dist/src/nameResolution/ResolveNameService.js +34 -41
- package/dist/src/nameResolution/schema.cjs +1 -1
- package/dist/src/nameResolution/schema.js +20 -25
- package/dist/src/nfts/BackendNftService.cjs +1 -1
- package/dist/src/nfts/BackendNftService.js +103 -116
- package/dist/src/nfts/BackendPaginationError.cjs +1 -1
- package/dist/src/nfts/BackendPaginationError.js +11 -12
- package/dist/src/nfts/utils.cjs +1 -1
- package/dist/src/nfts/utils.js +11 -14
- package/dist/src/onchainRecovery/OnchainRecoveryService.cjs +1 -1
- package/dist/src/onchainRecovery/OnchainRecoveryService.js +38 -68
- package/dist/src/onchainRecovery/schema.cjs +1 -1
- package/dist/src/onchainRecovery/schema.js +35 -49
- package/dist/src/platform/isBraveBrowser.cjs +1 -1
- package/dist/src/platform/isBraveBrowser.js +8 -10
- package/dist/src/platform/isBrowser.cjs +1 -1
- package/dist/src/platform/isBrowser.js +17 -22
- package/dist/src/signer/mergeOwnerGuardianSignatures.cjs +1 -1
- package/dist/src/signer/mergeOwnerGuardianSignatures.js +28 -30
- package/dist/src/signer/multisigner.cjs +1 -1
- package/dist/src/signer/multisigner.js +16 -17
- package/dist/src/signer/seedphrase.cjs +1 -1
- package/dist/src/signer/seedphrase.js +7 -7
- package/dist/src/staking/schema.cjs +1 -1
- package/dist/src/staking/schema.js +146 -162
- package/dist/src/storage/base.cjs +1 -1
- package/dist/src/storage/base.js +33 -34
- package/dist/src/storage/utils.cjs +1 -1
- package/dist/src/storage/utils.js +19 -28
- package/dist/src/tokens/balances.cjs +1 -1
- package/dist/src/tokens/balances.js +34 -38
- package/dist/src/tokens/constants.cjs +1 -1
- package/dist/src/tokens/constants.js +4 -4
- package/dist/src/tokens/convertCurrencyValueToTokenAmount.cjs +1 -1
- package/dist/src/tokens/convertCurrencyValueToTokenAmount.js +8 -9
- package/dist/src/tokens/convertTokenAmountToCurrencyValue.cjs +1 -1
- package/dist/src/tokens/convertTokenAmountToCurrencyValue.js +14 -15
- package/dist/src/tokens/convertTokenUnitAmountWithDecimals.cjs +1 -1
- package/dist/src/tokens/convertTokenUnitAmountWithDecimals.js +8 -9
- package/dist/src/tokens/ensureDecimals.cjs +1 -1
- package/dist/src/tokens/ensureDecimals.js +4 -4
- package/dist/src/tokens/getCurrencySymbol.cjs +1 -1
- package/dist/src/tokens/getCurrencySymbol.js +14 -14
- package/dist/src/tokens/isUnlimitedAmount.cjs +1 -1
- package/dist/src/tokens/isUnlimitedAmount.js +5 -5
- package/dist/src/tokens/prettifyCurrencyValue.cjs +1 -1
- package/dist/src/tokens/prettifyCurrencyValue.js +13 -14
- package/dist/src/tokens/prettifyTokenAmount.cjs +1 -1
- package/dist/src/tokens/prettifyTokenAmount.js +22 -22
- package/dist/src/tokens/service/implementation.cjs +1 -1
- package/dist/src/tokens/service/implementation.js +28 -40
- package/dist/src/tokens/service/tokenError.cjs +1 -1
- package/dist/src/tokens/service/tokenError.js +11 -12
- package/dist/src/tokens/service/types/backend.model.cjs +1 -1
- package/dist/src/tokens/service/types/backend.model.js +128 -163
- package/dist/src/tokens/service/types/defiPosition.model.cjs +1 -1
- package/dist/src/tokens/service/types/defiPosition.model.js +83 -99
- package/dist/src/tokens/service/types/defiPositionType.model.cjs +1 -1
- package/dist/src/tokens/service/types/defiPositionType.model.js +9 -9
- package/dist/src/tokens/service/types/unclaimedRewards.model.cjs +1 -1
- package/dist/src/tokens/service/types/unclaimedRewards.model.js +15 -16
- package/dist/src/tokens/service/types/webToken.model.cjs +1 -1
- package/dist/src/tokens/service/types/webToken.model.js +28 -51
- package/dist/src/tokens/utils.cjs +1 -1
- package/dist/src/tokens/utils.js +5 -9
- package/dist/src/transactions/amount.cjs +1 -1
- package/dist/src/transactions/amount.js +17 -24
- package/dist/src/transactions/buildTransactions.cjs +1 -1
- package/dist/src/transactions/buildTransactions.js +30 -33
- package/dist/src/transactions/errors.cjs +1 -1
- package/dist/src/transactions/errors.js +11 -18
- package/dist/src/transactions/estimate/adjustment.cjs +1 -1
- package/dist/src/transactions/estimate/adjustment.js +6 -6
- package/dist/src/transactions/estimate/argentMaxFee.cjs +1 -1
- package/dist/src/transactions/estimate/argentMaxFee.js +10 -13
- package/dist/src/transactions/estimate/error.cjs +1 -1
- package/dist/src/transactions/estimate/error.js +12 -13
- package/dist/src/transactions/estimate/model.cjs +1 -1
- package/dist/src/transactions/estimate/model.js +18 -13
- package/dist/src/transactions/estimate/utils.cjs +1 -1
- package/dist/src/transactions/estimate/utils.js +139 -172
- package/dist/src/transactions/findTransfersAndApprovals.cjs +1 -1
- package/dist/src/transactions/findTransfersAndApprovals.js +34 -30
- package/dist/src/transactions/getPrettyRcpError.cjs +1 -1
- package/dist/src/transactions/getPrettyRcpError.js +8 -10
- package/dist/src/transactions/service/implementation.cjs +1 -1
- package/dist/src/transactions/service/implementation.js +187 -208
- package/dist/src/transactions/service/types.cjs +1 -1
- package/dist/src/transactions/service/types.js +9 -9
- package/dist/src/transactions/service/utils.cjs +1 -1
- package/dist/src/transactions/service/utils.js +24 -25
- package/dist/src/transactions/transactionExecuteTypes.cjs +1 -1
- package/dist/src/transactions/transactionExecuteTypes.js +8 -9
- package/dist/src/transactions/transactionReviewTypes.cjs +1 -1
- package/dist/src/transactions/transactionReviewTypes.js +9 -9
- package/dist/src/transactions/transactionVersion.cjs +1 -1
- package/dist/src/transactions/transactionVersion.js +8 -13
- package/dist/src/transactions/txv3.cjs +1 -1
- package/dist/src/transactions/txv3.js +10 -11
- package/dist/src/utils/address.cjs +1 -1
- package/dist/src/utils/address.js +4 -4
- package/dist/src/utils/arrays.cjs +1 -1
- package/dist/src/utils/arrays.js +4 -4
- package/dist/src/utils/avatarImage.cjs +4 -4
- package/dist/src/utils/avatarImage.js +35 -40
- package/dist/src/utils/base58.cjs +1 -1
- package/dist/src/utils/base58.js +12 -15
- package/dist/src/utils/bigNumber.cjs +1 -1
- package/dist/src/utils/bigNumber.d.ts +1 -1
- package/dist/src/utils/bigNumber.js +5 -7
- package/dist/src/utils/bips.cjs +1 -1
- package/dist/src/utils/bips.js +12 -10
- package/dist/src/utils/daysBetween.cjs +1 -1
- package/dist/src/utils/daysBetween.js +6 -6
- package/dist/src/utils/env.cjs +1 -1
- package/dist/src/utils/env.js +4 -4
- package/dist/src/utils/hex.cjs +1 -1
- package/dist/src/utils/hex.js +7 -8
- package/dist/src/utils/id.cjs +1 -1
- package/dist/src/utils/id.js +7 -7
- package/dist/src/utils/initials.cjs +1 -1
- package/dist/src/utils/initials.js +12 -15
- package/dist/src/utils/isContractDeployed.cjs +1 -1
- package/dist/src/utils/isContractDeployed.js +9 -9
- package/dist/src/utils/nonNullable.cjs +1 -1
- package/dist/src/utils/nonNullable.js +6 -6
- package/dist/src/utils/number/abbreviateNumber.cjs +1 -1
- package/dist/src/utils/number/abbreviateNumber.js +13 -14
- package/dist/src/utils/number/isAllowedAddressHexInputValue.cjs +1 -1
- package/dist/src/utils/number/isAllowedAddressHexInputValue.js +4 -7
- package/dist/src/utils/number/isAllowedNumericInputValue.cjs +1 -1
- package/dist/src/utils/number/isAllowedNumericInputValue.js +5 -5
- package/dist/src/utils/number/isNumeric.cjs +1 -1
- package/dist/src/utils/number/isNumeric.js +4 -4
- package/dist/src/utils/number/prettifyNumber.cjs +1 -1
- package/dist/src/utils/number/prettifyNumber.js +65 -75
- package/dist/src/utils/parseAmount.cjs +1 -1
- package/dist/src/utils/parseAmount.js +10 -11
- package/dist/src/utils/pluralise.cjs +1 -1
- package/dist/src/utils/pluralise.js +4 -4
- package/dist/src/utils/readFileAsString.cjs +1 -1
- package/dist/src/utils/readFileAsString.js +6 -6
- package/dist/src/utils/retryUntilInitialised.cjs +1 -1
- package/dist/src/utils/retryUntilInitialised.js +21 -20
- package/dist/src/utils/schemas.cjs +1 -1
- package/dist/src/utils/schemas.js +29 -26
- package/dist/src/utils/starknet/starknet.cjs +1 -1
- package/dist/src/utils/starknet/starknet.js +64 -77
- package/dist/src/utils/starknet/starknetLibTypes.cjs +1 -1
- package/dist/src/utils/starknet/starknetLibTypes.js +7 -7
- package/dist/src/utils/starknet/starknetSchemas.cjs +1 -1
- package/dist/src/utils/starknet/starknetSchemas.js +84 -99
- package/dist/src/utils/transactions.cjs +1 -1
- package/dist/src/utils/transactions.js +10 -10
- package/dist/src/utils/url/urlWithQuery.cjs +1 -1
- package/dist/src/utils/url/urlWithQuery.js +8 -8
- package/dist/src/utils/voidify.cjs +1 -1
- package/dist/src/utils/voidify.js +7 -7
- package/dist/swap.cjs +1 -1
- package/dist/swap.js +8 -22
- package/package.json +15 -15
- package/dist/_virtual/_commonjsHelpers.cjs +0 -1
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/_virtual/numeral.cjs +0 -1
- package/dist/_virtual/numeral.js +0 -7
- package/dist/_virtual/numeral2.cjs +0 -1
- package/dist/_virtual/numeral2.js +0 -4
- package/dist/_virtual/semver.cjs +0 -1
- package/dist/_virtual/semver.js +0 -7
- package/dist/_virtual/semver2.cjs +0 -1
- package/dist/_virtual/semver2.js +0 -4
|
@@ -1,76 +1,66 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
const f = Math.max(0, t.length - m - 1 - l);
|
|
65
|
-
t = t.substring(0, m + 1 + f);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
return t;
|
|
70
|
-
};
|
|
71
|
-
export {
|
|
72
|
-
T as prettifyCurrencyNumber,
|
|
73
|
-
x as prettifyNumber,
|
|
74
|
-
N as prettifyNumberConfig,
|
|
75
|
-
d as prettifyTokenNumber
|
|
1
|
+
import { isNumeric as e } from "./isNumeric.js";
|
|
2
|
+
import t from "../../../node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.js";
|
|
3
|
+
//#region src/utils/number/prettifyNumber.ts
|
|
4
|
+
var n = {
|
|
5
|
+
CURRENCY: {
|
|
6
|
+
minDecimalPlaces: 2,
|
|
7
|
+
maxDecimalPlaces: 10,
|
|
8
|
+
minDecimalSignificantDigits: 2,
|
|
9
|
+
decimalPlacesWhenZero: 2,
|
|
10
|
+
allowLeadingZerosInDecimalPart: !0,
|
|
11
|
+
groupSeparator: ",",
|
|
12
|
+
decimalSeparator: "."
|
|
13
|
+
},
|
|
14
|
+
TOKEN: {
|
|
15
|
+
minDecimalPlaces: 4,
|
|
16
|
+
maxDecimalPlaces: 16,
|
|
17
|
+
minDecimalSignificantDigits: 2,
|
|
18
|
+
decimalPlacesWhenZero: 1,
|
|
19
|
+
allowLeadingZerosInDecimalPart: !0,
|
|
20
|
+
groupSeparator: ",",
|
|
21
|
+
decimalSeparator: "."
|
|
22
|
+
}
|
|
23
|
+
}, r = (e, t) => o(e, {
|
|
24
|
+
...n.CURRENCY,
|
|
25
|
+
...t || {}
|
|
26
|
+
}), i = (e, t) => o(e, {
|
|
27
|
+
...n.TOKEN,
|
|
28
|
+
...t || {}
|
|
29
|
+
}), a = {
|
|
30
|
+
groupSize: 3,
|
|
31
|
+
decimalSeparator: ".",
|
|
32
|
+
groupSeparator: ","
|
|
33
|
+
}, o = (r, { minDecimalPlaces: i, maxDecimalPlaces: o, minDecimalSignificantDigits: s, decimalPlacesWhenZero: c, allowLeadingZerosInDecimalPart: l, groupSeparator: u, decimalSeparator: d = a.decimalSeparator, maxNrDigits: f, roundingMode: p } = n.CURRENCY) => {
|
|
34
|
+
if (!e(r)) return null;
|
|
35
|
+
let m = {
|
|
36
|
+
...a,
|
|
37
|
+
groupSeparator: u,
|
|
38
|
+
decimalSeparator: d
|
|
39
|
+
}, h = new t(typeof r == "bigint" ? r.toString() : r), g, _ = `0.${"".padStart(c - 1, "0")}1`;
|
|
40
|
+
if (h.lt(new t(_)) && !l) g = `0.${"".padStart(c, "0")}`;
|
|
41
|
+
else if (h.gte(1)) g = i === 0 ? h.toFormat(i, t.ROUND_FLOOR, m) : p ? h.toFormat(i, p, m) : h.toFormat(i, m);
|
|
42
|
+
else {
|
|
43
|
+
let e = (p ? h.toFormat(o, p, m) : h.toFormat(o, m)).split(d)[1].match(/^0+/), t = l && e && e.length ? e[0].length : 0, n = Math.max(t + s, i);
|
|
44
|
+
g = p ? h.toFormat(n, p, m) : h.toFormat(n, m);
|
|
45
|
+
}
|
|
46
|
+
let [v, y] = g.split(d), b = v;
|
|
47
|
+
if (y) {
|
|
48
|
+
let e = y.replace(/0+$/, "");
|
|
49
|
+
b += e ? `.${e}` : "";
|
|
50
|
+
}
|
|
51
|
+
let x = 1 + g.indexOf(".") + c;
|
|
52
|
+
if (b.length < x && (b = g.substring(0, x)), f) {
|
|
53
|
+
let e = b.replace(RegExp(`[${u}${d}]`, "g"), "").length;
|
|
54
|
+
if (v.replace(RegExp(`[${u}]`, "g"), "").length > f) b = v;
|
|
55
|
+
else if (e > f) {
|
|
56
|
+
let t = e - f, n = b.indexOf(d);
|
|
57
|
+
if (n !== -1) {
|
|
58
|
+
let e = Math.max(0, b.length - n - 1 - t);
|
|
59
|
+
b = b.substring(0, n + 1 + e);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return b;
|
|
76
64
|
};
|
|
65
|
+
//#endregion
|
|
66
|
+
export { r as prettifyCurrencyNumber, o as prettifyNumber, n as prettifyNumberConfig, i as prettifyTokenNumber };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../bigdecimal/parseUnits.cjs`),t=require(`./number/isNumeric.cjs`);let n=require(`starknet`);var r=(n,r=18)=>{let i=n.replace(`,`,`.`);return!n||!t.isNumeric(i)?0n:e.parseUnits(i,Number(r)).value};function i(e){return n.uint256.bnToUint256(e)}exports.getUint256CalldataFromBN=i,exports.parseAmountValue=r;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
+
import { parseUnits as e } from "../bigdecimal/parseUnits.js";
|
|
2
|
+
import { isNumeric as t } from "./number/isNumeric.js";
|
|
1
3
|
import { uint256 as n } from "starknet";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return !r || !e(t) ? 0n : m(t, Number(o)).value;
|
|
4
|
+
//#region src/utils/parseAmount.ts
|
|
5
|
+
var r = (n, r = 18) => {
|
|
6
|
+
let i = n.replace(",", ".");
|
|
7
|
+
return !n || !t(i) ? 0n : e(i, Number(r)).value;
|
|
7
8
|
};
|
|
8
|
-
function
|
|
9
|
-
|
|
9
|
+
function i(e) {
|
|
10
|
+
return n.bnToUint256(e);
|
|
10
11
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
p as parseAmountValue
|
|
14
|
-
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { i as getUint256CalldataFromBN, r as parseAmountValue };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var e=(e,t)=>`${e} ${t}${e===1?``:`s`}`;exports.pluralise=e;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
1
|
+
//#region src/utils/pluralise.ts
|
|
2
|
+
var e = (e, t) => `${e} ${t}${e === 1 ? "" : "s"}`;
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as pluralise };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var e=e=>new Promise((t,n)=>{let r=new FileReader;r.onload=()=>r.result?t(r.result?.toString()):n(Error(`Could not read file`)),r.onerror=n,r.onabort=n.bind(null,Error(`User aborted`)),r.readAsText(e)});exports.readFileAsString=e;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
//#region src/utils/readFileAsString.ts
|
|
2
|
+
var e = (e) => new Promise((t, n) => {
|
|
3
|
+
let r = new FileReader();
|
|
4
|
+
r.onload = () => r.result ? t(r.result?.toString()) : n(/* @__PURE__ */ Error("Could not read file")), r.onerror = n, r.onabort = n.bind(null, /* @__PURE__ */ Error("User aborted")), r.readAsText(e);
|
|
4
5
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
6
|
+
//#endregion
|
|
7
|
+
export { e as readFileAsString };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`./schemas.cjs`);let n=require(`async-retry`);n=e.__toESM(n);async function r(e,r,i={retries:5,minTimeout:5e3}){return(0,n.default)(async n=>{let i=null;try{i=await e()}catch{return n(Error(`Error fetching`)),null}let a=t.safeParseAndWarn(r,i);if(!a.success)return n(Error(`Error parsing response`)),null;if(a.data.status!==`initialised`)throw Error(`Not initialised yet`);return a.data},i)}exports.retryUntilInitialised=r;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { safeParseAndWarn as e } from "./schemas.js";
|
|
2
|
+
import t from "async-retry";
|
|
3
|
+
//#region src/utils/retryUntilInitialised.ts
|
|
4
|
+
async function n(n, r, i = {
|
|
5
|
+
retries: 5,
|
|
6
|
+
minTimeout: 5e3
|
|
7
|
+
}) {
|
|
8
|
+
return t(async (t) => {
|
|
9
|
+
let i = null;
|
|
10
|
+
try {
|
|
11
|
+
i = await n();
|
|
12
|
+
} catch {
|
|
13
|
+
return t(/* @__PURE__ */ Error("Error fetching")), null;
|
|
14
|
+
}
|
|
15
|
+
let a = e(r, i);
|
|
16
|
+
if (!a.success) return t(/* @__PURE__ */ Error("Error parsing response")), null;
|
|
17
|
+
if (a.data.status !== "initialised") throw Error("Not initialised yet");
|
|
18
|
+
return a.data;
|
|
19
|
+
}, i);
|
|
18
20
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { n as retryUntilInitialised };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
require(`../../_virtual/_rolldown/runtime.cjs`);let e=require(`zod`);var t=e.z.boolean().transform(e=>String(e)),n=e.z.string().transform(e=>e===`true`);function r(t){return e.z.object(t).passthrough().superRefine(e=>{let n=Object.keys(t),r=Object.keys(e).filter(e=>!n.includes(e));r.length>0&&console.warn(`Unknown properties detected: ${r.join(`, `)}`)})}function i(e){let t=r(e);return Object.assign(t,{extend:t=>r({...e,...t})})}var a=(t,n)=>{try{return{success:!0,data:t.parse(n)}}catch(t){if(t instanceof e.z.ZodError)return console.error(`Validation warnings:`,t.issues),{success:!1,error:t};throw t}};exports.booleanToStringSchema=t,exports.createSchemaWithWarnings=i,exports.safeParseAndWarn=a,exports.stringToBooleanSchema=n;
|
|
@@ -1,29 +1,32 @@
|
|
|
1
|
-
import { z as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { z as e } from "zod";
|
|
2
|
+
//#region src/utils/schemas.ts
|
|
3
|
+
var t = e.boolean().transform((e) => String(e)), n = e.string().transform((e) => e === "true");
|
|
4
|
+
function r(t) {
|
|
5
|
+
return e.object(t).passthrough().superRefine((e) => {
|
|
6
|
+
let n = Object.keys(t), r = Object.keys(e).filter((e) => !n.includes(e));
|
|
7
|
+
r.length > 0 && console.warn(`Unknown properties detected: ${r.join(", ")}`);
|
|
8
|
+
});
|
|
8
9
|
}
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
function i(e) {
|
|
11
|
+
let t = r(e);
|
|
12
|
+
return Object.assign(t, { extend: (t) => r({
|
|
13
|
+
...e,
|
|
14
|
+
...t
|
|
15
|
+
}) });
|
|
14
16
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
u as stringToBooleanSchema
|
|
17
|
+
var a = (t, n) => {
|
|
18
|
+
try {
|
|
19
|
+
return {
|
|
20
|
+
success: !0,
|
|
21
|
+
data: t.parse(n)
|
|
22
|
+
};
|
|
23
|
+
} catch (t) {
|
|
24
|
+
if (t instanceof e.ZodError) return console.error("Validation warnings:", t.issues), {
|
|
25
|
+
success: !1,
|
|
26
|
+
error: t
|
|
27
|
+
};
|
|
28
|
+
throw t;
|
|
29
|
+
}
|
|
29
30
|
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { t as booleanToStringSchema, i as createSchemaWithWarnings, a as safeParseAndWarn, n as stringToBooleanSchema };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
require(`../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../chains/starknet/address.cjs`);let t=require(`zod`);var n=t.z.union([t.z.string(),t.z.number(),t.z.bigint()]),r=t.z.object({low:n,high:n}),i=t.z.array(t.z.string()).and(t.z.object({__compiled__:t.z.boolean().optional()}).optional()),a=t.z.lazy(()=>t.z.array(t.z.union([o,t.z.array(o),c]))),o=t.z.union([n,r,t.z.any(),t.z.boolean()]),s=t.z.lazy(()=>t.z.record(t.z.string(),t.z.union([o,t.z.array(o),c]))),c=t.z.lazy(()=>t.z.union([s,a])),l=t.z.union([c,i]).optional(),u=t.z.lazy(()=>t.z.object({contractAddress:t.z.string(),calldata:l,entrypoint:t.z.string().optional()})),d=t.z.lazy(()=>u.and(t.z.object({entrypoint:t.z.string()}))),f=t.z.string().refine(e=>typeof parseInt(e)==`number`),p=t.z.tuple([f]),m=t.z.tuple([f]),h=t.z.object({new_threshold:t.z.string().refine(e=>typeof parseInt(e)==`number`),signers_to_add:t.z.array(f)}),g=t.z.object({new_threshold:t.z.string().refine(e=>typeof parseInt(e)==`number`),signers_to_remove:t.z.array(f)}),_=t.z.object({signer_to_remove:f,signer_to_add:f}),v=t.z.tuple([f]),y=t.z.tuple([f]),b=t.z.tuple([f]),x=t.z.tuple([f]).rest(f),S=t.z.object({recipient:e.addressSchema,amount:t.z.object({low:n,high:n})}),C=t.z.object({types:t.z.record(t.z.string(),t.z.array(t.z.union([t.z.object({name:t.z.string(),type:t.z.literal(`merkletree`),contains:t.z.string()}),t.z.object({name:t.z.string(),type:t.z.literal(`enum`),contains:t.z.string()}),t.z.object({name:t.z.string(),type:t.z.string()})]))),primaryType:t.z.string(),domain:t.z.record(t.z.string(),t.z.unknown()),message:t.z.record(t.z.string(),t.z.any()).or(t.z.object({}).passthrough())});exports.addOwnersCalldataSchema=h,exports.addPluginCalldataSchema=y,exports.bigNumberishSchema=n,exports.callDetailsSchema=u,exports.callSchema=d,exports.calldataSchema=i,exports.changeGuardianCalldataSchema=p,exports.changeThresholdCalldataSchema=v,exports.escapeGuardianCalldataSchema=m,exports.executeOnPluginCalldataSchema=x,exports.feltSchema=f,exports.looseCalldataSchema=l,exports.multiTypeSchema=o,exports.rawArgsArraySchema=a,exports.rawArgsObjectSchema=s,exports.rawArgsSchema=c,exports.removeOwnersCalldataSchema=g,exports.removePluginCalldataSchema=b,exports.replaceSignerCalldataSchema=_,exports.transferCalldataSchema=S,exports.typedDataSchema=C,exports.uint256Schema=r;
|
|
@@ -1,78 +1,65 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}),
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
1
|
+
import { addressSchema as e } from "../../chains/starknet/address.js";
|
|
2
|
+
import { z as t } from "zod";
|
|
3
|
+
//#region src/utils/starknet/starknet.ts
|
|
4
|
+
var n = t.union([
|
|
5
|
+
t.string(),
|
|
6
|
+
t.number(),
|
|
7
|
+
t.bigint()
|
|
8
|
+
]), r = t.object({
|
|
9
|
+
low: n,
|
|
10
|
+
high: n
|
|
11
|
+
}), i = t.array(t.string()).and(t.object({ __compiled__: t.boolean().optional() }).optional()), a = t.lazy(() => t.array(t.union([
|
|
12
|
+
o,
|
|
13
|
+
t.array(o),
|
|
14
|
+
c
|
|
15
|
+
]))), o = t.union([
|
|
16
|
+
n,
|
|
17
|
+
r,
|
|
18
|
+
t.any(),
|
|
19
|
+
t.boolean()
|
|
20
|
+
]), s = t.lazy(() => t.record(t.string(), t.union([
|
|
21
|
+
o,
|
|
22
|
+
t.array(o),
|
|
23
|
+
c
|
|
24
|
+
]))), c = t.lazy(() => t.union([s, a])), l = t.union([c, i]).optional(), u = t.lazy(() => t.object({
|
|
25
|
+
contractAddress: t.string(),
|
|
26
|
+
calldata: l,
|
|
27
|
+
entrypoint: t.string().optional()
|
|
28
|
+
})), d = t.lazy(() => u.and(t.object({ entrypoint: t.string() }))), f = t.string().refine((e) => typeof parseInt(e) == "number"), p = t.tuple([f]), m = t.tuple([f]), h = t.object({
|
|
29
|
+
new_threshold: t.string().refine((e) => typeof parseInt(e) == "number"),
|
|
30
|
+
signers_to_add: t.array(f)
|
|
31
|
+
}), g = t.object({
|
|
32
|
+
new_threshold: t.string().refine((e) => typeof parseInt(e) == "number"),
|
|
33
|
+
signers_to_remove: t.array(f)
|
|
34
|
+
}), _ = t.object({
|
|
35
|
+
signer_to_remove: f,
|
|
36
|
+
signer_to_add: f
|
|
37
|
+
}), v = t.tuple([f]), y = t.tuple([f]), b = t.tuple([f]), x = t.tuple([f]).rest(f), S = t.object({
|
|
38
|
+
recipient: e,
|
|
39
|
+
amount: t.object({
|
|
40
|
+
low: n,
|
|
41
|
+
high: n
|
|
42
|
+
})
|
|
43
|
+
}), C = t.object({
|
|
44
|
+
types: t.record(t.string(), t.array(t.union([
|
|
45
|
+
t.object({
|
|
46
|
+
name: t.string(),
|
|
47
|
+
type: t.literal("merkletree"),
|
|
48
|
+
contains: t.string()
|
|
49
|
+
}),
|
|
50
|
+
t.object({
|
|
51
|
+
name: t.string(),
|
|
52
|
+
type: t.literal("enum"),
|
|
53
|
+
contains: t.string()
|
|
54
|
+
}),
|
|
55
|
+
t.object({
|
|
56
|
+
name: t.string(),
|
|
57
|
+
type: t.string()
|
|
58
|
+
})
|
|
59
|
+
]))),
|
|
60
|
+
primaryType: t.string(),
|
|
61
|
+
domain: t.record(t.string(), t.unknown()),
|
|
62
|
+
message: t.record(t.string(), t.any()).or(t.object({}).passthrough())
|
|
54
63
|
});
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
f as addPluginCalldataSchema,
|
|
58
|
-
n as bigNumberishSchema,
|
|
59
|
-
g as callDetailsSchema,
|
|
60
|
-
u as callSchema,
|
|
61
|
-
l as calldataSchema,
|
|
62
|
-
y as changeGuardianCalldataSchema,
|
|
63
|
-
C as changeThresholdCalldataSchema,
|
|
64
|
-
b as escapeGuardianCalldataSchema,
|
|
65
|
-
z as executeOnPluginCalldataSchema,
|
|
66
|
-
e as feltSchema,
|
|
67
|
-
d as looseCalldataSchema,
|
|
68
|
-
r as multiTypeSchema,
|
|
69
|
-
i as rawArgsArraySchema,
|
|
70
|
-
m as rawArgsObjectSchema,
|
|
71
|
-
o as rawArgsSchema,
|
|
72
|
-
j as removeOwnersCalldataSchema,
|
|
73
|
-
w as removePluginCalldataSchema,
|
|
74
|
-
_ as replaceSignerCalldataSchema,
|
|
75
|
-
A as transferCalldataSchema,
|
|
76
|
-
v as typedDataSchema,
|
|
77
|
-
s as uint256Schema
|
|
78
|
-
};
|
|
64
|
+
//#endregion
|
|
65
|
+
export { h as addOwnersCalldataSchema, y as addPluginCalldataSchema, n as bigNumberishSchema, u as callDetailsSchema, d as callSchema, i as calldataSchema, p as changeGuardianCalldataSchema, v as changeThresholdCalldataSchema, m as escapeGuardianCalldataSchema, x as executeOnPluginCalldataSchema, f as feltSchema, l as looseCalldataSchema, o as multiTypeSchema, a as rawArgsArraySchema, s as rawArgsObjectSchema, c as rawArgsSchema, g as removeOwnersCalldataSchema, b as removePluginCalldataSchema, _ as replaceSignerCalldataSchema, S as transferCalldataSchema, C as typedDataSchema, r as uint256Schema };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var e;(function(e){e[e.function=0]=`function`,e[e.l1_handler=1]=`l1_handler`,e[e.constructor=2]=`constructor`})(e||={}),Object.defineProperty(exports,`FunctionAbiType`,{enumerable:!0,get:function(){return e}});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
1
|
+
//#region src/utils/starknet/starknetLibTypes.ts
|
|
2
|
+
var e;
|
|
3
|
+
(function(e) {
|
|
4
|
+
e[e.function = 0] = "function", e[e.l1_handler = 1] = "l1_handler", e[e.constructor = 2] = "constructor";
|
|
5
|
+
})(e ||= {});
|
|
6
|
+
//#endregion
|
|
7
|
+
export { e as FunctionAbiType };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
require(`../../../_virtual/_rolldown/runtime.cjs`);const e=require(`./starknetLibTypes.cjs`);let t=require(`zod`);var n=t.z.array(t.z.string()),r=t.z.object({selector:t.z.string(),offset:t.z.string(),builtins:n.optional()}),i=t.z.object({CONSTRUCTOR:t.z.array(r),EXTERNAL:t.z.array(r),L1_HANDLER:t.z.array(r)}),a=t.z.string(),o=t.z.object({builtins:n,data:t.z.array(t.z.string())}),s=t.z.object({name:t.z.string(),type:t.z.union([t.z.literal(`felt`),t.z.literal(`felt*`),t.z.string()])}),c=t.z.nativeEnum(e.FunctionAbiType),l=t.z.object({inputs:t.z.array(s),name:t.z.string(),outputs:t.z.array(s),stateMutability:t.z.literal(`view`).optional(),state_mutability:t.z.string().optional(),type:c}),u=t.z.object({name:t.z.string(),type:t.z.union([t.z.literal(`felt`),t.z.literal(`felt*`),t.z.string()]),kind:t.z.union([t.z.literal(`key`),t.z.literal(`data`)])}),d=t.z.object({name:t.z.string(),type:t.z.literal(`event`),data:t.z.array(u),keys:t.z.array(u)}),f=t.z.object({name:t.z.string(),members:t.z.array(u),kind:t.z.literal(`struct`),type:t.z.literal(`event`)}),p=t.z.object({members:t.z.array(s.and(t.z.object({offset:t.z.number()}))),name:t.z.string(),size:t.z.number(),type:t.z.literal(`struct`)}),m=t.z.union([f,d]),h=t.z.array(t.z.union([l,m,p,t.z.any()])),g=t.z.object({program:o,entry_points_by_type:i,abi:h}),_=t.z.array(t.z.string()),v=t.z.object({type_names:t.z.array(t.z.tuple([t.z.number(),t.z.string()])),libfunc_names:t.z.array(t.z.tuple([t.z.number(),t.z.string()])),user_func_names:t.z.array(t.z.tuple([t.z.number(),t.z.string()]))}),y=t.z.object({selector:t.z.string(),function_idx:t.z.number()}),b=t.z.object({CONSTRUCTOR:t.z.array(y),EXTERNAL:t.z.array(y),L1_HANDLER:t.z.array(y)}),x=t.z.object({sierra_program:_,sierra_program_debug_info:v.optional(),contract_class_version:t.z.string(),entry_points_by_type:b,abi:h}),S=t.z.array(t.z.tuple([t.z.number(),t.z.array(t.z.string())])),C=t.z.object({prime:t.z.string(),compiler_version:t.z.string(),bytecode:_,hints:t.z.array(t.z.any()),pythonic_hints:S,entry_points_by_type:i}),w=C,T=t.z.union([g,x]);exports.abiEntrySchema=s,exports.abiSchema=h,exports.builtinsSchema=n,exports.byteCodeSchema=_,exports.cairo1EventSchema=f,exports.cairoAssemblySchema=C,exports.compiledContractClassSchema=T,exports.compiledSierraCasmSchema=w,exports.compiledSierraSchema=x,exports.compressedProgramSchema=a,exports.contractEntryPointFieldsSchema=r,exports.entryPointsByTypeSchema=i,exports.eventAbiSchema=m,exports.eventEntrySchema=u,exports.functionAbiSchema=l,exports.functionAbiTypeSchema=c,exports.legacyContractClassSchema=g,exports.legacyEventSchema=d,exports.programSchema=o,exports.pythonicHintsSchema=S,exports.sierraContractEntryPointFieldsSchema=y,exports.sierraEntryPointsByTypeSchema=b,exports.sierraProgramDebugInfoSchema=v,exports.structAbiSchema=p;
|