@argent/x-shared 1.37.0 → 1.38.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/.eslintrc.d.cts +45 -0
- package/dist/_virtual/_commonjsHelpers.cjs +1 -0
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/semver.cjs +1 -0
- package/dist/_virtual/semver.js +4 -0
- package/dist/commitlint.config.d.cts +2 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +2 -19
- package/dist/index.js +424 -4
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.cjs +1 -0
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.js +14 -0
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/curve.cjs +1 -0
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/curve.js +88 -0
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.cjs +1 -0
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.js +203 -0
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.cjs +1 -0
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.js +68 -0
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.cjs +1 -0
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.js +166 -0
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -0
- package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.js +581 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/_assert.cjs +1 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/_assert.js +48 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/crypto.cjs +1 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/crypto.js +4 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/hmac.cjs +1 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/hmac.js +42 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/utils.cjs +1 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/utils.js +47 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_assert.cjs +1 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_assert.js +31 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_sha2.cjs +1 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_sha2.js +61 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_u64.cjs +1 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_u64.js +21 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.cjs +1 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.js +114 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.cjs +1 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.js +107 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.cjs +1 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.js +38 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/_assert.cjs +1 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/_assert.js +32 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/_u64.cjs +1 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/_u64.js +21 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/sha3.cjs +1 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/sha3.js +107 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/utils.cjs +1 -0
- package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/utils.js +44 -0
- package/dist/node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.cjs +1 -0
- package/dist/node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.js +622 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js +20 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js +20 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js +20 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.js +13 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.js +16 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.js +33 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +15 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js +13 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js +12 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.js +17 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js +12 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.js +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.cjs +1 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.js +7 -0
- package/dist/node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.cjs +1 -0
- package/dist/node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.js +134 -0
- package/dist/node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.cjs +1 -0
- package/dist/node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.js +629 -0
- package/dist/simulation.cjs +1 -0
- package/dist/simulation.d.ts +1 -1
- package/dist/simulation.js +69 -1
- package/dist/src/account/account.model.cjs +1 -0
- package/dist/src/account/account.model.js +45 -0
- package/dist/src/account/accountv4.cjs +1 -0
- package/dist/src/account/accountv4.js +14 -0
- package/dist/src/account/preferences.model.cjs +1 -0
- package/dist/src/account/preferences.model.js +11 -0
- package/dist/src/assets/tokens.json.cjs +1 -0
- package/dist/src/assets/tokens.json.js +181 -0
- package/dist/src/backend/schema.cjs +1 -0
- package/dist/src/backend/schema.js +14 -0
- package/dist/src/bigdecimal/constants.cjs +1 -0
- package/dist/src/bigdecimal/constants.js +4 -0
- package/dist/src/bigdecimal/createUnitsSchema.cjs +1 -0
- package/dist/src/bigdecimal/createUnitsSchema.js +8 -0
- package/dist/src/bigdecimal/formatUnits.cjs +1 -0
- package/dist/src/bigdecimal/formatUnits.js +11 -0
- package/dist/src/bigdecimal/index.cjs +1 -0
- package/dist/src/bigdecimal/index.js +33 -0
- package/dist/src/bigdecimal/lib.cjs +1 -0
- package/dist/src/bigdecimal/lib.js +53 -0
- package/dist/src/bigdecimal/parseUnits.cjs +1 -0
- package/dist/src/bigdecimal/parseUnits.js +11 -0
- package/dist/src/bigdecimal/utils.cjs +1 -0
- package/dist/src/bigdecimal/utils.js +37 -0
- package/dist/src/cache/CacheService.cjs +1 -0
- package/dist/src/cache/CacheService.js +37 -0
- package/dist/src/chains/starknet/address.cjs +1 -0
- package/dist/src/chains/starknet/address.js +64 -0
- package/dist/src/chains/starknet/addressDomain.cjs +1 -0
- package/dist/src/chains/starknet/addressDomain.js +29 -0
- package/dist/src/chains/starknet/addressInput.cjs +1 -0
- package/dist/src/chains/starknet/addressInput.js +7 -0
- package/dist/src/chains/starknet/argentName.cjs +1 -0
- package/dist/src/chains/starknet/argentName.js +14 -0
- package/dist/src/chains/starknet/cairoVersionSchema.cjs +1 -0
- package/dist/src/chains/starknet/cairoVersionSchema.js +5 -0
- package/dist/src/chains/starknet/constants.cjs +1 -0
- package/dist/src/chains/starknet/constants.js +10 -0
- package/dist/src/chains/starknet/getAddressFromArgentName.cjs +1 -0
- package/dist/src/chains/starknet/getAddressFromArgentName.js +48 -0
- package/dist/src/chains/starknet/getAddressFromStarkName.cjs +1 -0
- package/dist/src/chains/starknet/getAddressFromStarkName.js +70 -0
- package/dist/src/chains/starknet/network.cjs +1 -0
- package/dist/src/chains/starknet/network.js +20 -0
- package/dist/src/chains/starknet/services/address/StarknetAddressService.cjs +1 -0
- package/dist/src/chains/starknet/services/address/StarknetAddressService.js +38 -0
- package/dist/src/chains/starknet/services/deploymentData/constants.cjs +1 -0
- package/dist/src/chains/starknet/services/deploymentData/constants.js +22 -0
- package/dist/src/chains/starknet/services/deploymentData/deploymentData.schema.cjs +1 -0
- package/dist/src/chains/starknet/services/deploymentData/deploymentData.schema.js +19 -0
- package/dist/src/chains/starknet/services/deploymentData/findImplementationForAccount.cjs +1 -0
- package/dist/src/chains/starknet/services/deploymentData/findImplementationForAccount.js +69 -0
- package/dist/src/chains/starknet/services/deploymentData/getAccountClassHash.cjs +1 -0
- package/dist/src/chains/starknet/services/deploymentData/getAccountClassHash.js +59 -0
- package/dist/src/chains/starknet/starknetId.cjs +1 -0
- package/dist/src/chains/starknet/starknetId.js +14 -0
- package/dist/src/errors/account.cjs +1 -0
- package/dist/src/errors/account.js +14 -0
- package/dist/src/errors/address.cjs +1 -0
- package/dist/src/errors/address.js +14 -0
- package/dist/src/errors/baseErrors.cjs +1 -0
- package/dist/src/errors/baseErrors.js +15 -0
- package/dist/src/errors/call.cjs +1 -0
- package/dist/src/errors/call.js +14 -0
- package/dist/src/errors/network.cjs +1 -0
- package/dist/src/errors/network.js +14 -0
- package/dist/src/errors/review.cjs +1 -0
- package/dist/src/errors/review.js +14 -0
- package/dist/src/errors/swap.cjs +1 -0
- package/dist/src/errors/swap.js +14 -0
- package/dist/src/features/simulation/activity/normalize.cjs +1 -0
- package/dist/src/features/simulation/activity/normalize.js +40 -0
- package/dist/src/features/simulation/activity/schema.cjs +1 -0
- package/dist/src/features/simulation/activity/schema.js +236 -0
- package/dist/src/features/simulation/activity/utils/createNativeActivity.cjs +1 -0
- package/dist/src/features/simulation/activity/utils/createNativeActivity.js +31 -0
- package/dist/src/features/simulation/activity/utils/getAnyActivityTitle.cjs +1 -0
- package/dist/src/features/simulation/activity/utils/getAnyActivityTitle.js +24 -0
- package/dist/src/features/simulation/activity/utils/getOverallLastModified.cjs +1 -0
- package/dist/src/features/simulation/activity/utils/getOverallLastModified.js +6 -0
- package/dist/src/features/simulation/activity/utils/hasDelegationActivity.cjs +1 -0
- package/dist/src/features/simulation/activity/utils/hasDelegationActivity.js +10 -0
- package/dist/src/features/simulation/activity/utils/isMulticallWithDeploymentActivity.cjs +1 -0
- package/dist/src/features/simulation/activity/utils/isMulticallWithDeploymentActivity.js +11 -0
- package/dist/src/features/simulation/activity/utils/isRejectOnChainActivity.cjs +1 -0
- package/dist/src/features/simulation/activity/utils/isRejectOnChainActivity.js +26 -0
- package/dist/src/features/simulation/activity/utils/isUpgradeActivity.cjs +1 -0
- package/dist/src/features/simulation/activity/utils/isUpgradeActivity.js +22 -0
- package/dist/src/features/simulation/activity/utils/parseAccountActivities.cjs +1 -0
- package/dist/src/features/simulation/activity/utils/parseAccountActivities.js +13 -0
- package/dist/src/features/simulation/activity/utils/parseFinanceActivities.cjs +1 -0
- package/dist/src/features/simulation/activity/utils/parseFinanceActivities.js +33 -0
- package/dist/src/features/simulation/fees/schema.cjs +1 -0
- package/dist/src/features/simulation/fees/schema.js +20 -0
- package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.cjs +1 -0
- package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.js +18 -0
- package/dist/src/features/simulation/transactionReview/getMessageFromSimulationError.cjs +1 -0
- package/dist/src/features/simulation/transactionReview/getMessageFromSimulationError.js +6 -0
- package/dist/src/features/simulation/transactionReview/schema.cjs +1 -0
- package/dist/src/features/simulation/transactionReview/schema.js +215 -0
- package/dist/src/features/simulation/warning/helper.cjs +1 -0
- package/dist/src/features/simulation/warning/helper.js +12 -0
- package/dist/src/features/simulation/warning/schema.cjs +1 -0
- package/dist/src/features/simulation/warning/schema.js +11 -0
- package/dist/src/features/swap/models/order.model.cjs +1 -0
- package/dist/src/features/swap/models/order.model.js +20 -0
- package/dist/src/features/swap/models/quote.model.cjs +1 -0
- package/dist/src/features/swap/models/quote.model.js +36 -0
- package/dist/src/features/swap/models/trade.model.cjs +1 -0
- package/dist/src/features/swap/models/trade.model.js +28 -0
- package/dist/src/features/swap/services/implementation.cjs +1 -0
- package/dist/src/features/swap/services/implementation.js +76 -0
- package/dist/src/features/swap/utils/slippage.cjs +1 -0
- package/dist/src/features/swap/utils/slippage.js +28 -0
- package/dist/src/features/swap/utils/totalFee.cjs +1 -0
- package/dist/src/features/swap/utils/totalFee.js +13 -0
- package/dist/src/http/DateService.cjs +1 -0
- package/dist/src/http/DateService.js +17 -0
- package/dist/src/http/HttpError.cjs +1 -0
- package/dist/src/http/HttpError.js +8 -0
- package/dist/src/http/HttpService.cjs +1 -0
- package/dist/src/http/HttpService.js +90 -0
- package/dist/src/http/IHttpService.cjs +1 -0
- package/dist/src/http/IHttpService.js +7 -0
- package/dist/src/http/SWRService.cjs +1 -0
- package/dist/src/http/SWRService.js +60 -0
- package/dist/src/http/fetcher.cjs +1 -0
- package/dist/src/http/fetcher.js +36 -0
- package/dist/{http → src/http}/index.d.ts +0 -1
- package/dist/src/http/time.cjs +1 -0
- package/dist/src/http/time.js +19 -0
- package/dist/src/index.d.ts +17 -0
- package/dist/src/knownDapps/KnownDappsBackendService.cjs +1 -0
- package/dist/src/knownDapps/KnownDappsBackendService.js +16 -0
- package/dist/src/knownDapps/schema.cjs +1 -0
- package/dist/src/knownDapps/schema.js +44 -0
- package/dist/src/knownDapps/utils/getDapplandUrl.cjs +1 -0
- package/dist/src/knownDapps/utils/getDapplandUrl.js +12 -0
- package/dist/src/nameResolution/ResolveNameService.cjs +1 -0
- package/dist/src/nameResolution/ResolveNameService.js +42 -0
- package/dist/src/nameResolution/schema.cjs +1 -0
- package/dist/src/nameResolution/schema.js +25 -0
- package/dist/src/nfts/BackendNftService.cjs +1 -0
- package/dist/src/nfts/BackendNftService.js +119 -0
- package/dist/src/nfts/BackendPaginationError.cjs +1 -0
- package/dist/src/nfts/BackendPaginationError.js +13 -0
- package/dist/{nfts → src/nfts}/index.d.ts +0 -1
- package/dist/src/nfts/utils.cjs +1 -0
- package/dist/src/nfts/utils.js +14 -0
- package/dist/src/onchainRecovery/OnchainRecoveryService.cjs +1 -0
- package/dist/src/onchainRecovery/OnchainRecoveryService.js +69 -0
- package/dist/src/onchainRecovery/schema.cjs +1 -0
- package/dist/src/onchainRecovery/schema.js +49 -0
- package/dist/src/platform/isBraveBrowser.cjs +1 -0
- package/dist/src/platform/isBraveBrowser.js +11 -0
- package/dist/src/platform/isBrowser.cjs +1 -0
- package/dist/src/platform/isBrowser.js +28 -0
- package/dist/src/signer/multisigner.cjs +1 -0
- package/dist/src/signer/multisigner.js +19 -0
- package/dist/src/signer/seedphrase.cjs +1 -0
- package/dist/src/signer/seedphrase.js +7 -0
- package/dist/src/tokens/balances.cjs +1 -0
- package/dist/src/tokens/balances.js +38 -0
- package/dist/src/tokens/constants.cjs +1 -0
- package/dist/src/tokens/constants.js +4 -0
- package/dist/src/tokens/convertTokenAmountToCurrencyValue.cjs +1 -0
- package/dist/src/tokens/convertTokenAmountToCurrencyValue.js +16 -0
- package/dist/src/tokens/convertTokenUnitAmountWithDecimals.cjs +1 -0
- package/dist/src/tokens/convertTokenUnitAmountWithDecimals.js +11 -0
- package/dist/src/tokens/ensureDecimals.cjs +1 -0
- package/dist/src/tokens/ensureDecimals.js +5 -0
- package/dist/src/tokens/getCurrencySymbol.cjs +1 -0
- package/dist/src/tokens/getCurrencySymbol.js +15 -0
- package/dist/src/tokens/isUnlimitedAmount.cjs +1 -0
- package/dist/src/tokens/isUnlimitedAmount.js +5 -0
- package/dist/src/tokens/prettifyCurrencyValue.cjs +1 -0
- package/dist/src/tokens/prettifyCurrencyValue.js +11 -0
- package/dist/src/tokens/prettifyTokenAmount.cjs +1 -0
- package/dist/src/tokens/prettifyTokenAmount.js +23 -0
- package/dist/src/tokens/service/implementation.cjs +1 -0
- package/dist/{tokens → src/tokens}/service/implementation.d.ts +21 -2
- package/dist/src/tokens/service/implementation.js +64 -0
- package/dist/src/tokens/service/tokenError.cjs +1 -0
- package/dist/src/tokens/service/tokenError.js +14 -0
- package/dist/src/tokens/service/types/backend.model.cjs +1 -0
- package/dist/{tokens → src/tokens}/service/types/backend.model.d.ts +818 -73
- package/dist/src/tokens/service/types/backend.model.js +134 -0
- package/dist/src/tokens/service/types/defiPosition.model.cjs +1 -0
- package/dist/{tokens → src/tokens}/service/types/defiPosition.model.d.ts +1024 -64
- package/dist/src/tokens/service/types/defiPosition.model.js +75 -0
- package/dist/src/tokens/service/types/defiPositionType.model.cjs +1 -0
- package/dist/{tokens → src/tokens}/service/types/defiPositionType.model.d.ts +1 -1
- package/dist/src/tokens/service/types/defiPositionType.model.js +10 -0
- package/dist/src/tokens/service/types/unclaimedRewards.model.cjs +1 -0
- package/dist/src/tokens/service/types/unclaimedRewards.model.js +16 -0
- package/dist/src/tokens/service/types/webToken.model.cjs +1 -0
- package/dist/src/tokens/service/types/webToken.model.js +45 -0
- package/dist/src/transactions/amount.cjs +1 -0
- package/dist/src/transactions/amount.js +24 -0
- package/dist/src/transactions/buildTransactions.cjs +1 -0
- package/dist/src/transactions/buildTransactions.js +34 -0
- package/dist/src/transactions/errors.cjs +1 -0
- package/dist/src/transactions/errors.js +19 -0
- package/dist/src/transactions/estimate/argentMaxFee.cjs +1 -0
- package/dist/src/transactions/estimate/argentMaxFee.js +13 -0
- package/dist/src/transactions/estimate/error.cjs +1 -0
- package/dist/src/transactions/estimate/error.js +14 -0
- package/dist/src/transactions/estimate/model.cjs +1 -0
- package/dist/src/transactions/estimate/model.js +14 -0
- package/dist/src/transactions/estimate/utils.cjs +1 -0
- package/dist/src/transactions/estimate/utils.js +232 -0
- package/dist/src/transactions/findTransfersAndApprovals.cjs +1 -0
- package/dist/src/transactions/findTransfersAndApprovals.js +31 -0
- package/dist/src/transactions/getPrettyRcpError.cjs +1 -0
- package/dist/src/transactions/getPrettyRcpError.js +11 -0
- package/dist/src/transactions/getTransactionVersion.cjs +1 -0
- package/dist/src/transactions/getTransactionVersion.js +18 -0
- package/dist/{transactions → src/transactions}/index.d.ts +0 -6
- package/dist/src/transactions/service/implementation.cjs +1 -0
- package/dist/src/transactions/service/implementation.js +182 -0
- package/dist/src/transactions/service/types.cjs +1 -0
- package/dist/src/transactions/service/types.js +10 -0
- package/dist/src/transactions/transactionReviewTypes.cjs +1 -0
- package/dist/src/transactions/transactionReviewTypes.js +10 -0
- package/dist/src/transactions/transactionVersion.cjs +1 -0
- package/dist/src/transactions/transactionVersion.js +14 -0
- package/dist/src/transactions/txv3.cjs +1 -0
- package/dist/src/transactions/txv3.js +14 -0
- package/dist/src/utils/address.cjs +1 -0
- package/dist/src/utils/address.js +4 -0
- package/dist/src/utils/arrays.cjs +1 -0
- package/dist/src/utils/arrays.js +4 -0
- package/dist/src/utils/avatarImage.cjs +4 -0
- package/dist/src/utils/avatarImage.js +42 -0
- package/dist/src/utils/base58.cjs +1 -0
- package/dist/src/utils/base58.js +15 -0
- package/dist/src/utils/bigNumber.cjs +1 -0
- package/dist/src/utils/bigNumber.js +7 -0
- package/dist/src/utils/bips.cjs +1 -0
- package/dist/src/utils/bips.js +11 -0
- package/dist/src/utils/daysBetween.cjs +1 -0
- package/dist/src/utils/daysBetween.js +7 -0
- package/dist/src/utils/env.cjs +1 -0
- package/dist/src/utils/env.js +4 -0
- package/dist/src/utils/hex.cjs +1 -0
- package/dist/src/utils/hex.js +9 -0
- package/dist/src/utils/id.cjs +1 -0
- package/dist/src/utils/id.js +8 -0
- package/dist/{utils → src/utils}/index.d.ts +0 -1
- package/dist/src/utils/initials.cjs +1 -0
- package/dist/src/utils/initials.js +16 -0
- package/dist/src/utils/isContractDeployed.cjs +1 -0
- package/dist/src/utils/isContractDeployed.js +10 -0
- package/dist/src/utils/nonNullable.cjs +1 -0
- package/dist/src/utils/nonNullable.js +7 -0
- package/dist/src/utils/number/isAllowedAddressHexInputValue.cjs +1 -0
- package/dist/src/utils/number/isAllowedAddressHexInputValue.js +7 -0
- package/dist/src/utils/number/isAllowedNumericInputValue.cjs +1 -0
- package/dist/src/utils/number/isAllowedNumericInputValue.js +8 -0
- package/dist/src/utils/number/isNumeric.cjs +1 -0
- package/dist/src/utils/number/isNumeric.js +4 -0
- package/dist/src/utils/number/prettifyNumber.cjs +1 -0
- package/dist/src/utils/number/prettifyNumber.js +47 -0
- package/dist/src/utils/parseAmount.cjs +1 -0
- package/dist/src/utils/parseAmount.js +14 -0
- package/dist/src/utils/pluralise.cjs +1 -0
- package/dist/src/utils/pluralise.js +4 -0
- package/dist/src/utils/readFileAsString.cjs +1 -0
- package/dist/src/utils/readFileAsString.js +10 -0
- package/dist/src/utils/schemas.cjs +1 -0
- package/dist/src/utils/schemas.js +29 -0
- package/dist/src/utils/starknet/starknet.cjs +1 -0
- package/dist/src/utils/starknet/starknet.js +57 -0
- package/dist/src/utils/starknet/starknetLibTypes.cjs +1 -0
- package/dist/src/utils/starknet/starknetLibTypes.js +7 -0
- package/dist/src/utils/starknet/starknetSchemas.cjs +1 -0
- package/dist/src/utils/starknet/starknetSchemas.js +102 -0
- package/dist/src/utils/transactions.cjs +1 -0
- package/dist/src/utils/transactions.js +11 -0
- package/dist/src/utils/url/urlWithQuery.cjs +1 -0
- package/dist/src/utils/url/urlWithQuery.js +9 -0
- package/dist/src/utils/voidify.cjs +1 -0
- package/dist/src/utils/voidify.js +8 -0
- package/dist/swap.cjs +1 -0
- package/dist/swap.d.ts +1 -1
- package/dist/swap.js +20 -1
- package/package.json +14 -28
- package/dist/bips-DKbEGvGl.mjs +0 -114
- package/dist/bips-DxN0hSiY.js +0 -1
- package/dist/hooks/index.d.ts +0 -2
- package/dist/hooks/useDebounce.d.ts +0 -1
- package/dist/hooks/useDebouncedValue.d.ts +0 -1
- package/dist/http/swr.d.ts +0 -21
- package/dist/index.mjs +0 -4466
- package/dist/nfts/useNfts.d.ts +0 -23
- package/dist/providers/WebAmplitude/WebAmplitudeProvider.d.ts +0 -7
- package/dist/providers/WebAmplitude/index.d.ts +0 -2
- package/dist/providers/WebAmplitude/service.d.ts +0 -7
- package/dist/providers/WebAmplitude/types.d.ts +0 -6
- package/dist/providers/WebAmplitude/utils.d.ts +0 -2
- package/dist/providers/index.d.ts +0 -1
- package/dist/simulation.mjs +0 -255
- package/dist/swap.mjs +0 -183
- package/dist/transactionVersion-C7p_qk9x.js +0 -1
- package/dist/transactionVersion-Cjoucwcx.mjs +0 -793
- package/dist/transactions/useBalanceChange.d.ts +0 -5
- package/dist/transactions/useErc20Transactions.d.ts +0 -6
- package/dist/transactions/useErc721Transactions.d.ts +0 -5
- package/dist/transactions/useErc721Transfers.d.ts +0 -5
- package/dist/transactions/useMaxAmountTransaction.d.ts +0 -7
- package/dist/transactions/useTransactionReview.d.ts +0 -15
- package/dist/transactions/useTransactionReviewV2web.d.ts +0 -1004
- package/dist/utils/useEventEmitter.d.ts +0 -67
- package/dist/webToken.model-5HUiR8ER.js +0 -1
- package/dist/webToken.model-CpudLBp0.mjs +0 -1913
- package/dist/{account → src/account}/account.model.d.ts +0 -0
- package/dist/{account → src/account}/accountv4.d.ts +0 -0
- package/dist/{account → src/account}/index.d.ts +0 -0
- package/dist/{account → src/account}/preferences.model.d.ts +0 -0
- package/dist/{backend → src/backend}/index.d.ts +0 -0
- package/dist/{backend → src/backend}/schema.d.ts +0 -0
- package/dist/{backend → src/backend}/types.d.ts +0 -0
- package/dist/{bigdecimal → src/bigdecimal}/constants.d.ts +0 -0
- package/dist/{bigdecimal → src/bigdecimal}/createUnitsSchema.d.ts +0 -0
- package/dist/{bigdecimal → src/bigdecimal}/formatUnits.d.ts +0 -0
- package/dist/{bigdecimal → src/bigdecimal}/index.d.ts +0 -0
- package/dist/{bigdecimal → src/bigdecimal}/lib.d.ts +0 -0
- package/dist/{bigdecimal → src/bigdecimal}/parseUnits.d.ts +0 -0
- package/dist/{bigdecimal → src/bigdecimal}/type.d.ts +0 -0
- package/dist/{bigdecimal → src/bigdecimal}/types.d.ts +0 -0
- package/dist/{bigdecimal → src/bigdecimal}/utils.d.ts +0 -0
- package/dist/{cache → src/cache}/CacheService.d.ts +0 -0
- package/dist/{cache → src/cache}/ICacheService.d.ts +0 -0
- package/dist/{cache → src/cache}/index.d.ts +0 -0
- package/dist/{chains → src/chains}/index.d.ts +0 -0
- package/dist/{chains → src/chains}/starknet/address.d.ts +0 -0
- package/dist/{chains → src/chains}/starknet/addressDomain.d.ts +0 -0
- package/dist/{chains → src/chains}/starknet/addressInput.d.ts +0 -0
- package/dist/{chains → src/chains}/starknet/argentName.d.ts +0 -0
- package/dist/{chains → src/chains}/starknet/cairoVersionSchema.d.ts +0 -0
- package/dist/{chains → src/chains}/starknet/constants.d.ts +0 -0
- package/dist/{chains → src/chains}/starknet/getAddressFromArgentName.d.ts +0 -0
- package/dist/{chains → src/chains}/starknet/getAddressFromStarkName.d.ts +0 -0
- package/dist/{chains → src/chains}/starknet/index.d.ts +0 -0
- package/dist/{chains → src/chains}/starknet/network.d.ts +0 -0
- package/dist/{chains → src/chains}/starknet/services/address/IStarknetAddressService.d.ts +0 -0
- package/dist/{chains → src/chains}/starknet/services/address/StarknetAddressService.d.ts +0 -0
- package/dist/{chains → src/chains}/starknet/services/address/index.d.ts +0 -0
- package/dist/{chains → src/chains}/starknet/services/deploymentData/constants.d.ts +0 -0
- package/dist/{chains → src/chains}/starknet/services/deploymentData/deploymentData.schema.d.ts +0 -0
- package/dist/{chains → src/chains}/starknet/services/deploymentData/findImplementationForAccount.d.ts +0 -0
- package/dist/{chains → src/chains}/starknet/services/deploymentData/getAccountClassHash.d.ts +0 -0
- package/dist/{chains → src/chains}/starknet/services/deploymentData/index.d.ts +0 -0
- package/dist/{chains → src/chains}/starknet/services/index.d.ts +0 -0
- package/dist/{chains → src/chains}/starknet/starknetId.d.ts +0 -0
- package/dist/{errors → src/errors}/account.d.ts +0 -0
- package/dist/{errors → src/errors}/address.d.ts +0 -0
- package/dist/{errors → src/errors}/baseErrors.d.ts +0 -0
- package/dist/{errors → src/errors}/call.d.ts +0 -0
- package/dist/{errors → src/errors}/network.d.ts +0 -0
- package/dist/{errors → src/errors}/review.d.ts +0 -0
- package/dist/{errors → src/errors}/swap.d.ts +0 -0
- package/dist/{features → src/features}/simulation/activity/index.d.ts +0 -0
- package/dist/{features → src/features}/simulation/activity/normalize.d.ts +0 -0
- package/dist/{features → src/features}/simulation/activity/schema.d.ts +200 -200
- package/dist/{features → src/features}/simulation/activity/utils/createNativeActivity.d.ts +6 -6
- package/dist/{features → src/features}/simulation/activity/utils/getAnyActivityTitle.d.ts +0 -0
- package/dist/{features → src/features}/simulation/activity/utils/getOverallLastModified.d.ts +0 -0
- package/dist/{features → src/features}/simulation/activity/utils/hasDelegationActivity.d.ts +0 -0
- package/dist/{features → src/features}/simulation/activity/utils/index.d.ts +0 -0
- package/dist/{features → src/features}/simulation/activity/utils/isMulticallWithDeploymentActivity.d.ts +0 -0
- package/dist/{features → src/features}/simulation/activity/utils/isRejectOnChainActivity.d.ts +0 -0
- package/dist/{features → src/features}/simulation/activity/utils/isUpgradeActivity.d.ts +0 -0
- package/dist/{features → src/features}/simulation/activity/utils/parseAccountActivities.d.ts +0 -0
- package/dist/{features → src/features}/simulation/activity/utils/parseFinanceActivities.d.ts +0 -0
- package/dist/{features → src/features}/simulation/fees/index.d.ts +0 -0
- package/dist/{features → src/features}/simulation/fees/schema.d.ts +0 -0
- package/dist/{features → src/features}/simulation/index.d.ts +0 -0
- package/dist/{features → src/features}/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.d.ts +0 -0
- package/dist/{features → src/features}/simulation/transactionReview/getMessageFromSimulationError.d.ts +0 -0
- package/dist/{features → src/features}/simulation/transactionReview/index.d.ts +0 -0
- package/dist/{features → src/features}/simulation/transactionReview/schema.d.ts +1324 -1324
- package/dist/{features → src/features}/simulation/warning/helper.d.ts +0 -0
- package/dist/{features → src/features}/simulation/warning/index.d.ts +0 -0
- package/dist/{features → src/features}/simulation/warning/schema.d.ts +0 -0
- package/dist/{features → src/features}/swap/index.d.ts +0 -0
- package/dist/{features → src/features}/swap/models/index.d.ts +0 -0
- package/dist/{features → src/features}/swap/models/order.model.d.ts +0 -0
- package/dist/{features → src/features}/swap/models/quote.model.d.ts +0 -0
- package/dist/{features → src/features}/swap/models/trade.model.d.ts +0 -0
- package/dist/{features → src/features}/swap/services/implementation.d.ts +0 -0
- package/dist/{features → src/features}/swap/services/index.d.ts +0 -0
- package/dist/{features → src/features}/swap/services/interface.d.ts +0 -0
- package/dist/{features → src/features}/swap/services/order.mock.d.ts +0 -0
- package/dist/{features → src/features}/swap/services/quote.mock.d.ts +0 -0
- package/dist/{features → src/features}/swap/tests/token.mock.d.ts +0 -0
- package/dist/{features → src/features}/swap/tests/trade.mock.d.ts +0 -0
- package/dist/{features → src/features}/swap/tests/walletAccount.mock.d.ts +0 -0
- package/dist/{features → src/features}/swap/utils/index.d.ts +0 -0
- package/dist/{features → src/features}/swap/utils/slippage.d.ts +0 -0
- package/dist/{features → src/features}/swap/utils/totalFee.d.ts +0 -0
- package/dist/{http → src/http}/DateService.d.ts +0 -0
- package/dist/{http → src/http}/HttpError.d.ts +0 -0
- package/dist/{http → src/http}/HttpService.d.ts +0 -0
- package/dist/{http → src/http}/IDateService.d.ts +0 -0
- package/dist/{http → src/http}/IHttpService.d.ts +0 -0
- package/dist/{http → src/http}/SWRService.d.ts +0 -0
- package/dist/{http → src/http}/apiData.d.ts +0 -0
- package/dist/{http → src/http}/fetcher.d.ts +0 -0
- package/dist/{http → src/http}/time.d.ts +0 -0
- package/dist/{knownDapps → src/knownDapps}/IKnownDappsBackendService.d.ts +0 -0
- package/dist/{knownDapps → src/knownDapps}/KnownDappsBackendService.d.ts +0 -0
- package/dist/{knownDapps → src/knownDapps}/index.d.ts +0 -0
- package/dist/{knownDapps → src/knownDapps}/schema.d.ts +0 -0
- package/dist/{knownDapps → src/knownDapps}/utils/getDapplandUrl.d.ts +0 -0
- package/dist/{knownDapps → src/knownDapps}/utils/index.d.ts +0 -0
- package/dist/{nameResolution → src/nameResolution}/IResolveNameService.d.ts +0 -0
- package/dist/{nameResolution → src/nameResolution}/ResolveNameService.d.ts +0 -0
- package/dist/{nameResolution → src/nameResolution}/index.d.ts +0 -0
- package/dist/{nameResolution → src/nameResolution}/schema.d.ts +0 -0
- package/dist/{nfts → src/nfts}/BackendNftService.d.ts +0 -0
- package/dist/{nfts → src/nfts}/BackendPaginationError.d.ts +0 -0
- package/dist/{nfts → src/nfts}/INFTService.d.ts +0 -0
- package/dist/{nfts → src/nfts}/utils.d.ts +0 -0
- package/dist/{onchainRecovery → src/onchainRecovery}/IOnchainRecoveryService.d.ts +0 -0
- package/dist/{onchainRecovery → src/onchainRecovery}/OnchainRecoveryService.d.ts +0 -0
- package/dist/{onchainRecovery → src/onchainRecovery}/index.d.ts +0 -0
- package/dist/{onchainRecovery → src/onchainRecovery}/schema.d.ts +0 -0
- package/dist/{platform → src/platform}/index.d.ts +0 -0
- package/dist/{platform → src/platform}/isBraveBrowser.d.ts +0 -0
- package/dist/{platform → src/platform}/isBrowser.d.ts +0 -0
- package/dist/{signer → src/signer}/index.d.ts +0 -0
- package/dist/{signer → src/signer}/multisigner.d.ts +0 -0
- package/dist/{signer → src/signer}/seedphrase.d.ts +0 -0
- package/dist/{tokens → src/tokens}/balances.d.ts +0 -0
- package/dist/{tokens → src/tokens}/constants.d.ts +0 -0
- package/dist/{tokens → src/tokens}/convertTokenAmountToCurrencyValue.d.ts +0 -0
- package/dist/{tokens → src/tokens}/convertTokenUnitAmountWithDecimals.d.ts +0 -0
- package/dist/{tokens → src/tokens}/ensureDecimals.d.ts +0 -0
- package/dist/{tokens → src/tokens}/getCurrencySymbol.d.ts +0 -0
- package/dist/{tokens → src/tokens}/index.d.ts +0 -0
- package/dist/{tokens → src/tokens}/isUnlimitedAmount.d.ts +0 -0
- package/dist/{tokens → src/tokens}/prettifyCurrencyValue.d.ts +0 -0
- package/dist/{tokens → src/tokens}/prettifyTokenAmount.d.ts +0 -0
- package/dist/{tokens → src/tokens}/service/index.d.ts +0 -0
- package/dist/{tokens → src/tokens}/service/interface.d.ts +0 -0
- package/dist/{tokens → src/tokens}/service/tokenError.d.ts +0 -0
- package/dist/{tokens → src/tokens}/service/types/index.d.ts +0 -0
- package/dist/{tokens → src/tokens}/service/types/unclaimedRewards.model.d.ts +0 -0
- package/dist/{tokens → src/tokens}/service/types/webToken.model.d.ts +0 -0
- package/dist/{tokens → src/tokens}/token.d.ts +0 -0
- package/dist/{transactions → src/transactions}/aggregatedSimDataTypes.d.ts +0 -0
- package/dist/{transactions → src/transactions}/amount.d.ts +0 -0
- package/dist/{transactions → src/transactions}/buildTransactions.d.ts +0 -0
- package/dist/{transactions → src/transactions}/deployAccountTypes.d.ts +0 -0
- package/dist/{transactions → src/transactions}/errors.d.ts +0 -0
- package/dist/{transactions → src/transactions}/estimate/argentMaxFee.d.ts +0 -0
- package/dist/{transactions → src/transactions}/estimate/error.d.ts +0 -0
- package/dist/{transactions → src/transactions}/estimate/index.d.ts +0 -0
- package/dist/{transactions → src/transactions}/estimate/model.d.ts +0 -0
- package/dist/{transactions → src/transactions}/estimate/utils.d.ts +0 -0
- package/dist/{transactions → src/transactions}/findTransfersAndApprovals.d.ts +0 -0
- package/dist/{transactions → src/transactions}/getPrettyRcpError.d.ts +0 -0
- package/dist/{transactions → src/transactions}/getTransactionVersion.d.ts +0 -0
- package/dist/{transactions → src/transactions}/service/implementation.d.ts +0 -0
- package/dist/{transactions → src/transactions}/service/index.d.ts +0 -0
- package/dist/{transactions → src/transactions}/service/interface.d.ts +0 -0
- package/dist/{transactions → src/transactions}/service/types.d.ts +2 -2
- /package/dist/{transactions → src/transactions}/transactionAction.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/transactionReviewTypes.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/transactionSimulationTypes.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/transactionVersion.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/txv3.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/types.d.ts +0 -0
- /package/dist/{utils → src/utils}/address.d.ts +0 -0
- /package/dist/{utils → src/utils}/arrays.d.ts +0 -0
- /package/dist/{utils → src/utils}/avatarImage.d.ts +0 -0
- /package/dist/{utils → src/utils}/base58.d.ts +0 -0
- /package/dist/{utils → src/utils}/bigNumber.d.ts +0 -0
- /package/dist/{utils → src/utils}/bips.d.ts +0 -0
- /package/dist/{utils → src/utils}/daysBetween.d.ts +0 -0
- /package/dist/{utils → src/utils}/env.d.ts +0 -0
- /package/dist/{utils → src/utils}/hex.d.ts +0 -0
- /package/dist/{utils → src/utils}/id.d.ts +0 -0
- /package/dist/{utils → src/utils}/initials.d.ts +0 -0
- /package/dist/{utils → src/utils}/isContractDeployed.d.ts +0 -0
- /package/dist/{utils → src/utils}/nonNullable.d.ts +0 -0
- /package/dist/{utils → src/utils}/number/index.d.ts +0 -0
- /package/dist/{utils → src/utils}/number/isAllowedAddressHexInputValue.d.ts +0 -0
- /package/dist/{utils → src/utils}/number/isAllowedNumericInputValue.d.ts +0 -0
- /package/dist/{utils → src/utils}/number/isNumeric.d.ts +0 -0
- /package/dist/{utils → src/utils}/number/prettifyNumber.d.ts +0 -0
- /package/dist/{utils → src/utils}/parseAmount.d.ts +0 -0
- /package/dist/{utils → src/utils}/pluralise.d.ts +0 -0
- /package/dist/{utils → src/utils}/readFileAsString.d.ts +0 -0
- /package/dist/{utils → src/utils}/schemas.d.ts +0 -0
- /package/dist/{utils → src/utils}/starknet/starknet.d.ts +0 -0
- /package/dist/{utils → src/utils}/starknet/starknetLibTypes.d.ts +0 -0
- /package/dist/{utils → src/utils}/starknet/starknetSchemas.d.ts +0 -0
- /package/dist/{utils → src/utils}/transactions.d.ts +0 -0
- /package/dist/{utils → src/utils}/url/index.d.ts +0 -0
- /package/dist/{utils → src/utils}/url/urlWithQuery.d.ts +0 -0
- /package/dist/{utils → src/utils}/voidify.d.ts +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z as t } from "zod";
|
|
2
|
+
const i = t.boolean().transform((e) => String(e)), u = t.string().transform((e) => e === "true");
|
|
3
|
+
function s(e) {
|
|
4
|
+
return t.object(e).passthrough().superRefine((r) => {
|
|
5
|
+
const n = Object.keys(e), o = Object.keys(r).filter((a) => !n.includes(a));
|
|
6
|
+
o.length > 0 && `${o.join(", ")}`;
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
function d(e) {
|
|
10
|
+
const r = s(e);
|
|
11
|
+
return Object.assign(r, {
|
|
12
|
+
extend: (n) => s({ ...e, ...n })
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
const f = (e, r) => {
|
|
16
|
+
try {
|
|
17
|
+
return { success: !0, data: e.parse(r) };
|
|
18
|
+
} catch (n) {
|
|
19
|
+
if (n instanceof t.ZodError)
|
|
20
|
+
return console.error("Validation warnings:", n.errors), { success: !1, error: n };
|
|
21
|
+
throw n;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
i as booleanToStringSchema,
|
|
26
|
+
d as createSchemaWithWarnings,
|
|
27
|
+
f as safeParseAndWarn,
|
|
28
|
+
u as stringToBooleanSchema
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("zod"),d=require("../../chains/starknet/address.cjs"),t=a.z.union([a.z.string(),a.z.number(),a.z.bigint()]),r=a.z.object({low:t,high:t}),o=a.z.array(a.z.string()).and(a.z.object({__compiled__:a.z.boolean().optional()}).optional()),s=a.z.lazy(()=>a.z.array(a.z.union([c,a.z.array(c),l]))),c=a.z.union([t,r,a.z.any(),a.z.boolean()]),h=a.z.lazy(()=>a.z.record(a.z.union([c,a.z.array(c),l]))),l=a.z.lazy(()=>a.z.union([h,s])),i=a.z.union([l,o]).optional(),m=a.z.lazy(()=>a.z.object({contractAddress:a.z.string(),calldata:i,entrypoint:a.z.string().optional()})),z=a.z.lazy(()=>m.and(a.z.object({entrypoint:a.z.string()}))),e=a.z.string().refine(n=>typeof parseInt(n)=="number"),S=a.z.tuple([e]),u=a.z.tuple([e]),g=a.z.object({new_threshold:a.z.string().refine(n=>typeof parseInt(n)=="number"),signers_to_add:a.z.array(e)}),p=a.z.object({new_threshold:a.z.string().refine(n=>typeof parseInt(n)=="number"),signers_to_remove:a.z.array(e)}),b=a.z.object({signer_to_remove:e,signer_to_add:e}),y=a.z.tuple([e]),C=a.z.tuple([e]),w=a.z.tuple([e]),_=a.z.tuple([e]).rest(e),j=a.z.object({recipient:d.addressSchema,amount:a.z.object({low:t,high:t})});exports.addOwnersCalldataSchema=g;exports.addPluginCalldataSchema=C;exports.bigNumberishSchema=t;exports.callDetailsSchema=m;exports.callSchema=z;exports.calldataSchema=o;exports.changeGuardianCalldataSchema=S;exports.changeThresholdCalldataSchema=y;exports.escapeGuardianCalldataSchema=u;exports.executeOnPluginCalldataSchema=_;exports.feltSchema=e;exports.looseCalldataSchema=i;exports.multiTypeSchema=c;exports.rawArgsArraySchema=s;exports.rawArgsObjectSchema=h;exports.rawArgsSchema=l;exports.removeOwnersCalldataSchema=p;exports.removePluginCalldataSchema=w;exports.replaceSignerCalldataSchema=b;exports.transferCalldataSchema=j;exports.uint256Schema=r;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z as a } from "zod";
|
|
2
|
+
import { addressSchema as c } from "../../chains/starknet/address.js";
|
|
3
|
+
const n = a.union([a.string(), a.number(), a.bigint()]), l = a.object({
|
|
4
|
+
low: n,
|
|
5
|
+
high: n
|
|
6
|
+
}), s = a.array(a.string()).and(a.object({
|
|
7
|
+
__compiled__: a.boolean().optional()
|
|
8
|
+
}).optional()), i = a.lazy(() => a.array(a.union([o, a.array(o), r]))), o = a.union([
|
|
9
|
+
n,
|
|
10
|
+
l,
|
|
11
|
+
a.any(),
|
|
12
|
+
a.boolean()
|
|
13
|
+
]), m = a.lazy(() => a.record(a.union([o, a.array(o), r]))), r = a.lazy(() => a.union([m, i])), h = a.union([r, s]).optional(), d = a.lazy(() => a.object({
|
|
14
|
+
contractAddress: a.string(),
|
|
15
|
+
calldata: h,
|
|
16
|
+
entrypoint: a.string().optional()
|
|
17
|
+
})), g = a.lazy(() => d.and(a.object({
|
|
18
|
+
entrypoint: a.string()
|
|
19
|
+
}))), e = a.string().refine((t) => typeof parseInt(t) == "number"), S = a.tuple([e]), b = a.tuple([e]), y = a.object({
|
|
20
|
+
new_threshold: a.string().refine((t) => typeof parseInt(t) == "number"),
|
|
21
|
+
signers_to_add: a.array(e)
|
|
22
|
+
}), _ = a.object({
|
|
23
|
+
new_threshold: a.string().refine((t) => typeof parseInt(t) == "number"),
|
|
24
|
+
signers_to_remove: a.array(e)
|
|
25
|
+
}), C = a.object({
|
|
26
|
+
signer_to_remove: e,
|
|
27
|
+
signer_to_add: e
|
|
28
|
+
}), f = a.tuple([e]), j = a.tuple([e]), w = a.tuple([e]), z = a.tuple([e]).rest(e), A = a.object({
|
|
29
|
+
recipient: c,
|
|
30
|
+
amount: a.object({
|
|
31
|
+
low: n,
|
|
32
|
+
high: n
|
|
33
|
+
})
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
y as addOwnersCalldataSchema,
|
|
37
|
+
j as addPluginCalldataSchema,
|
|
38
|
+
n as bigNumberishSchema,
|
|
39
|
+
d as callDetailsSchema,
|
|
40
|
+
g as callSchema,
|
|
41
|
+
s as calldataSchema,
|
|
42
|
+
S as changeGuardianCalldataSchema,
|
|
43
|
+
f as changeThresholdCalldataSchema,
|
|
44
|
+
b as escapeGuardianCalldataSchema,
|
|
45
|
+
z as executeOnPluginCalldataSchema,
|
|
46
|
+
e as feltSchema,
|
|
47
|
+
h as looseCalldataSchema,
|
|
48
|
+
o as multiTypeSchema,
|
|
49
|
+
i as rawArgsArraySchema,
|
|
50
|
+
m as rawArgsObjectSchema,
|
|
51
|
+
r as rawArgsSchema,
|
|
52
|
+
_ as removeOwnersCalldataSchema,
|
|
53
|
+
w as removePluginCalldataSchema,
|
|
54
|
+
C as replaceSignerCalldataSchema,
|
|
55
|
+
A as transferCalldataSchema,
|
|
56
|
+
l as uint256Schema
|
|
57
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.FunctionAbiType=void 0;(function(t){t[t.function=0]="function",t[t.l1_handler=1]="l1_handler",t[t.constructor=2]="constructor"})(exports.FunctionAbiType||(exports.FunctionAbiType={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),f=require("./starknetLibTypes.cjs"),c=e.z.array(e.z.string()),t=e.z.object({selector:e.z.string(),offset:e.z.string(),builtins:c.optional()}),i=e.z.object({CONSTRUCTOR:e.z.array(t),EXTERNAL:e.z.array(t),L1_HANDLER:e.z.array(t)}),C=e.z.string(),m=e.z.object({builtins:c,data:e.z.array(e.z.string())}),r=e.z.object({name:e.z.string(),type:e.z.union([e.z.literal("felt"),e.z.literal("felt*"),e.z.string()])}),z=e.z.nativeEnum(f.FunctionAbiType),y=e.z.object({inputs:e.z.array(r),name:e.z.string(),outputs:e.z.array(r),stateMutability:e.z.literal("view").optional(),state_mutability:e.z.string().optional(),type:z}),n=e.z.object({name:e.z.string(),type:e.z.union([e.z.literal("felt"),e.z.literal("felt*"),e.z.string()]),kind:e.z.union([e.z.literal("key"),e.z.literal("data")])}),l=e.z.object({name:e.z.string(),type:e.z.literal("event"),data:e.z.array(n),keys:e.z.array(n)}),b=e.z.object({name:e.z.string(),members:e.z.array(n),kind:e.z.literal("struct"),type:e.z.literal("event")}),S=e.z.object({members:e.z.array(r.and(e.z.object({offset:e.z.number()}))),name:e.z.string(),size:e.z.number(),type:e.z.literal("struct")}),h=e.z.union([b,l]),o=e.z.array(e.z.union([y,h,S,e.z.any()])),p=e.z.object({program:m,entry_points_by_type:i,abi:o}),s=e.z.array(e.z.string()),u=e.z.object({type_names:e.z.array(e.z.tuple([e.z.number(),e.z.string()])),libfunc_names:e.z.array(e.z.tuple([e.z.number(),e.z.string()])),user_func_names:e.z.array(e.z.tuple([e.z.number(),e.z.string()]))}),a=e.z.object({selector:e.z.string(),function_idx:e.z.number()}),g=e.z.object({CONSTRUCTOR:e.z.array(a),EXTERNAL:e.z.array(a),L1_HANDLER:e.z.array(a)}),d=e.z.object({sierra_program:s,sierra_program_debug_info:u.optional(),contract_class_version:e.z.string(),entry_points_by_type:g,abi:o}),_=e.z.array(e.z.tuple([e.z.number(),e.z.array(e.z.string())])),E=e.z.object({prime:e.z.string(),compiler_version:e.z.string(),bytecode:s,hints:e.z.array(e.z.any()),pythonic_hints:_,entry_points_by_type:i}),j=E,v=e.z.union([p,d]);exports.abiEntrySchema=r;exports.abiSchema=o;exports.builtinsSchema=c;exports.byteCodeSchema=s;exports.cairo1EventSchema=b;exports.cairoAssemblySchema=E;exports.compiledContractClassSchema=v;exports.compiledSierraCasmSchema=j;exports.compiledSierraSchema=d;exports.compressedProgramSchema=C;exports.contractEntryPointFieldsSchema=t;exports.entryPointsByTypeSchema=i;exports.eventAbiSchema=h;exports.eventEntrySchema=n;exports.functionAbiSchema=y;exports.functionAbiTypeSchema=z;exports.legacyContractClassSchema=p;exports.legacyEventSchema=l;exports.programSchema=m;exports.pythonicHintsSchema=_;exports.sierraContractEntryPointFieldsSchema=a;exports.sierraEntryPointsByTypeSchema=g;exports.sierraProgramDebugInfoSchema=u;exports.structAbiSchema=S;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { z as t } from "zod";
|
|
2
|
+
import { FunctionAbiType as m } from "./starknetLibTypes.js";
|
|
3
|
+
const i = t.array(t.string()), e = t.object({
|
|
4
|
+
selector: t.string(),
|
|
5
|
+
offset: t.string(),
|
|
6
|
+
builtins: i.optional()
|
|
7
|
+
}), o = t.object({
|
|
8
|
+
CONSTRUCTOR: t.array(e),
|
|
9
|
+
EXTERNAL: t.array(e),
|
|
10
|
+
L1_HANDLER: t.array(e)
|
|
11
|
+
}), A = t.string(), y = t.object({
|
|
12
|
+
builtins: i,
|
|
13
|
+
data: t.array(t.string())
|
|
14
|
+
}), a = t.object({
|
|
15
|
+
name: t.string(),
|
|
16
|
+
type: t.union([t.literal("felt"), t.literal("felt*"), t.string()])
|
|
17
|
+
}), l = t.nativeEnum(m), b = t.object({
|
|
18
|
+
inputs: t.array(a),
|
|
19
|
+
name: t.string(),
|
|
20
|
+
outputs: t.array(a),
|
|
21
|
+
stateMutability: t.literal("view").optional(),
|
|
22
|
+
state_mutability: t.string().optional(),
|
|
23
|
+
type: l
|
|
24
|
+
}), n = t.object({
|
|
25
|
+
name: t.string(),
|
|
26
|
+
type: t.union([t.literal("felt"), t.literal("felt*"), t.string()]),
|
|
27
|
+
kind: t.union([t.literal("key"), t.literal("data")])
|
|
28
|
+
}), p = t.object({
|
|
29
|
+
name: t.string(),
|
|
30
|
+
type: t.literal("event"),
|
|
31
|
+
data: t.array(n),
|
|
32
|
+
keys: t.array(n)
|
|
33
|
+
}), u = t.object({
|
|
34
|
+
name: t.string(),
|
|
35
|
+
members: t.array(n),
|
|
36
|
+
kind: t.literal("struct"),
|
|
37
|
+
type: t.literal("event")
|
|
38
|
+
}), g = t.object({
|
|
39
|
+
members: t.array(a.and(t.object({
|
|
40
|
+
offset: t.number()
|
|
41
|
+
}))),
|
|
42
|
+
name: t.string(),
|
|
43
|
+
size: t.number(),
|
|
44
|
+
type: t.literal("struct")
|
|
45
|
+
}), h = t.union([u, p]), s = t.array(t.union([b, h, g, t.any()])), S = t.object({
|
|
46
|
+
program: y,
|
|
47
|
+
entry_points_by_type: o,
|
|
48
|
+
abi: s
|
|
49
|
+
}), c = t.array(t.string()), _ = t.object({
|
|
50
|
+
type_names: t.array(t.tuple([t.number(), t.string()])),
|
|
51
|
+
libfunc_names: t.array(t.tuple([t.number(), t.string()])),
|
|
52
|
+
user_func_names: t.array(t.tuple([t.number(), t.string()]))
|
|
53
|
+
}), r = t.object({
|
|
54
|
+
selector: t.string(),
|
|
55
|
+
function_idx: t.number()
|
|
56
|
+
}), f = t.object({
|
|
57
|
+
CONSTRUCTOR: t.array(r),
|
|
58
|
+
EXTERNAL: t.array(r),
|
|
59
|
+
L1_HANDLER: t.array(r)
|
|
60
|
+
}), d = t.object({
|
|
61
|
+
sierra_program: c,
|
|
62
|
+
sierra_program_debug_info: _.optional(),
|
|
63
|
+
contract_class_version: t.string(),
|
|
64
|
+
entry_points_by_type: f,
|
|
65
|
+
abi: s
|
|
66
|
+
}), j = t.array(t.tuple([t.number(), t.array(t.string())])), E = t.object({
|
|
67
|
+
prime: t.string(),
|
|
68
|
+
compiler_version: t.string(),
|
|
69
|
+
bytecode: c,
|
|
70
|
+
hints: t.array(t.any()),
|
|
71
|
+
pythonic_hints: j,
|
|
72
|
+
entry_points_by_type: o
|
|
73
|
+
}), T = E, R = t.union([
|
|
74
|
+
S,
|
|
75
|
+
d
|
|
76
|
+
]);
|
|
77
|
+
export {
|
|
78
|
+
a as abiEntrySchema,
|
|
79
|
+
s as abiSchema,
|
|
80
|
+
i as builtinsSchema,
|
|
81
|
+
c as byteCodeSchema,
|
|
82
|
+
u as cairo1EventSchema,
|
|
83
|
+
E as cairoAssemblySchema,
|
|
84
|
+
R as compiledContractClassSchema,
|
|
85
|
+
T as compiledSierraCasmSchema,
|
|
86
|
+
d as compiledSierraSchema,
|
|
87
|
+
A as compressedProgramSchema,
|
|
88
|
+
e as contractEntryPointFieldsSchema,
|
|
89
|
+
o as entryPointsByTypeSchema,
|
|
90
|
+
h as eventAbiSchema,
|
|
91
|
+
n as eventEntrySchema,
|
|
92
|
+
b as functionAbiSchema,
|
|
93
|
+
l as functionAbiTypeSchema,
|
|
94
|
+
S as legacyContractClassSchema,
|
|
95
|
+
p as legacyEventSchema,
|
|
96
|
+
y as programSchema,
|
|
97
|
+
j as pythonicHintsSchema,
|
|
98
|
+
r as sierraContractEntryPointFieldsSchema,
|
|
99
|
+
f as sierraEntryPointsByTypeSchema,
|
|
100
|
+
_ as sierraProgramDebugInfoSchema,
|
|
101
|
+
g as structAbiSchema
|
|
102
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("lodash-es");function t(e){try{return r.upperFirst(r.lowerCase(e))}catch{return e}}exports.entryPointToHumanReadable=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("url-join"),n=require("../arrays.cjs"),a=(e,t)=>{const r=new URLSearchParams(t),s=r.size?`?${r}`:"";return u(...n.ensureArray(e),s)};exports.urlWithQuery=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(i){return(...e)=>{i(...e)}}exports.voidify=o;
|
package/dist/swap.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./src/features/swap/services/implementation.cjs"),r=require("./src/features/swap/models/order.model.cjs"),e=require("./src/features/swap/models/quote.model.cjs"),a=require("./src/features/swap/models/trade.model.cjs"),o=require("./src/features/swap/utils/totalFee.cjs"),t=require("./src/features/swap/utils/slippage.cjs");exports.SharedSwapService=m.SharedSwapService;exports.SwapOrderRequestSchema=r.SwapOrderRequestSchema;exports.SwapOrderResponseSchema=r.SwapOrderResponseSchema;exports.SwapDataSchema=e.SwapDataSchema;exports.SwapQuoteResponseSchema=e.SwapQuoteResponseSchema;exports.SwapQuoteRouteSchema=e.SwapQuoteRouteSchema;exports.TradeSchema=a.TradeSchema;Object.defineProperty(exports,"TradeType",{enumerable:!0,get:()=>a.TradeType});exports.TradeTypeSchema=a.TradeTypeSchema;exports.calculateTotalFee=o.calculateTotalFee;exports.maximumAmountInForTrade=t.maximumAmountInForTrade;exports.minimumAmountOutFromTrade=t.minimumAmountOutFromTrade;
|
package/dist/swap.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './features/swap/index'
|
|
1
|
+
export * from './src/features/swap/index'
|
|
2
2
|
export {}
|
package/dist/swap.js
CHANGED
|
@@ -1 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
import { SharedSwapService as r } from "./src/features/swap/services/implementation.js";
|
|
2
|
+
import { SwapOrderRequestSchema as o, SwapOrderResponseSchema as p } from "./src/features/swap/models/order.model.js";
|
|
3
|
+
import { SwapDataSchema as S, SwapQuoteResponseSchema as c, SwapQuoteRouteSchema as u } from "./src/features/swap/models/quote.model.js";
|
|
4
|
+
import { TradeSchema as h, TradeType as T, TradeTypeSchema as x } from "./src/features/swap/models/trade.model.js";
|
|
5
|
+
import { calculateTotalFee as n } from "./src/features/swap/utils/totalFee.js";
|
|
6
|
+
import { maximumAmountInForTrade as s, minimumAmountOutFromTrade as i } from "./src/features/swap/utils/slippage.js";
|
|
7
|
+
export {
|
|
8
|
+
r as SharedSwapService,
|
|
9
|
+
S as SwapDataSchema,
|
|
10
|
+
o as SwapOrderRequestSchema,
|
|
11
|
+
p as SwapOrderResponseSchema,
|
|
12
|
+
c as SwapQuoteResponseSchema,
|
|
13
|
+
u as SwapQuoteRouteSchema,
|
|
14
|
+
h as TradeSchema,
|
|
15
|
+
T as TradeType,
|
|
16
|
+
x as TradeTypeSchema,
|
|
17
|
+
n as calculateTotalFee,
|
|
18
|
+
s as maximumAmountInForTrade,
|
|
19
|
+
i as minimumAmountOutFromTrade
|
|
20
|
+
};
|
package/package.json
CHANGED
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argent/x-shared",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.38.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/argentlabs/x-shared.git"
|
|
7
7
|
},
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"private": false,
|
|
10
|
+
"type": "module",
|
|
11
|
+
"sideEffects": false,
|
|
10
12
|
"files": [
|
|
11
13
|
"dist"
|
|
12
14
|
],
|
|
13
|
-
"main": "dist/index.
|
|
14
|
-
"module": "dist/index.
|
|
15
|
+
"main": "dist/index.cjs",
|
|
16
|
+
"module": "dist/index.js",
|
|
15
17
|
"types": "dist/index.d.ts",
|
|
16
18
|
"exports": {
|
|
17
19
|
".": {
|
|
18
20
|
"types": "./dist/index.d.ts",
|
|
19
|
-
"import": "./dist/index.
|
|
20
|
-
"
|
|
21
|
-
"default": "./dist/index.js"
|
|
21
|
+
"import": "./dist/index.js",
|
|
22
|
+
"default": "./dist/index.cjs"
|
|
22
23
|
},
|
|
23
24
|
"./simulation": {
|
|
24
25
|
"types": "./dist/simulation.d.ts",
|
|
25
|
-
"import": "./dist/simulation.
|
|
26
|
-
"
|
|
27
|
-
"default": "./dist/simulation.js"
|
|
26
|
+
"import": "./dist/simulation.js",
|
|
27
|
+
"default": "./dist/simulation.cjs"
|
|
28
28
|
},
|
|
29
29
|
"./swap": {
|
|
30
30
|
"types": "./dist/swap.d.ts",
|
|
31
|
-
"import": "./dist/swap.
|
|
32
|
-
"
|
|
33
|
-
"default": "./dist/swap.js"
|
|
31
|
+
"import": "./dist/swap.js",
|
|
32
|
+
"default": "./dist/swap.cjs"
|
|
34
33
|
}
|
|
35
34
|
},
|
|
36
35
|
"scripts": {
|
|
@@ -49,25 +48,18 @@
|
|
|
49
48
|
"@commitlint/config-conventional": "^19.0.0",
|
|
50
49
|
"@rollup/plugin-typescript": "^12.0.0",
|
|
51
50
|
"@semantic-release/git": "^10.0.1",
|
|
52
|
-
"@testing-library/jest-dom": "^6.4.2",
|
|
53
|
-
"@testing-library/react": "^16.0.0",
|
|
54
51
|
"@types/async-retry": "^1.4.8",
|
|
55
52
|
"@types/lodash-es": "^4.17.6",
|
|
56
|
-
"@types/object-hash": "^3.0.2",
|
|
57
53
|
"@types/react": "^18.0.0",
|
|
58
54
|
"@types/react-dom": "^18.0.0",
|
|
59
55
|
"@types/ua-parser-js": "^0.7.39",
|
|
60
56
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
61
57
|
"@typescript-eslint/parser": "^8.0.0",
|
|
62
|
-
"@vitejs/plugin-react-swc": "^3.6.0",
|
|
63
|
-
"@vitest/browser": "2.1.1",
|
|
64
|
-
"@vitest/ui": "2.1.1",
|
|
65
58
|
"eslint": "^8.7.0",
|
|
66
59
|
"eslint-config-prettier": "^9.1.0",
|
|
67
60
|
"eslint-plugin-import": "^2.29.1",
|
|
68
61
|
"eslint-plugin-react": "^7.28.0",
|
|
69
62
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
70
|
-
"happy-dom": "^15.0.0",
|
|
71
63
|
"husky": ">=7",
|
|
72
64
|
"lint-staged": ">=10",
|
|
73
65
|
"msw": "^2.0.0",
|
|
@@ -83,25 +75,19 @@
|
|
|
83
75
|
"@argent/x-multicall": "^7.1.0",
|
|
84
76
|
"@noble/hashes": "^1.3.1",
|
|
85
77
|
"@starknet-io/types-js": "^0.7.7",
|
|
86
|
-
"async-retry": "^1.3.3",
|
|
87
78
|
"big-decimal-number": "npm:bignumber.js@^9.1.2",
|
|
88
|
-
"emittery": "^1.0.1",
|
|
89
79
|
"micro-starknet": "^0.2.3",
|
|
90
80
|
"starknet": "6.11.0",
|
|
91
81
|
"starknet4-deprecated": "npm:starknet@4.4.0",
|
|
92
|
-
"starknet5": "npm:starknet@5.25.0"
|
|
93
|
-
"url-join": "^5.0.0"
|
|
82
|
+
"starknet5": "npm:starknet@5.25.0"
|
|
94
83
|
},
|
|
95
84
|
"peerDependencies": {
|
|
96
85
|
"@scure/base": "^1.1.1",
|
|
97
86
|
"@scure/bip39": "^1.2.1",
|
|
87
|
+
"async-retry": "^1.3.3",
|
|
98
88
|
"lodash-es": "^4.17.21",
|
|
99
|
-
"object-hash": "^3.0.0",
|
|
100
|
-
"react": "^18.0.0",
|
|
101
|
-
"react-dom": "^18.0.0",
|
|
102
|
-
"react-router-dom": "^6.0.1",
|
|
103
|
-
"swr": "^1.3.0",
|
|
104
89
|
"ua-parser-js": "^1.0.38",
|
|
90
|
+
"url-join": "^5.0.0",
|
|
105
91
|
"zod": "^3.23.8"
|
|
106
92
|
},
|
|
107
93
|
"lint-staged": {
|
package/dist/bips-DKbEGvGl.mjs
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { p as u, u as v, G as f } from "./webToken.model-CpudLBp0.mjs";
|
|
2
|
-
import "starknet";
|
|
3
|
-
import "lodash-es";
|
|
4
|
-
import "@scure/base";
|
|
5
|
-
import "zod";
|
|
6
|
-
const o = 18;
|
|
7
|
-
function l({ value: t, decimals: e }) {
|
|
8
|
-
if (e === 0)
|
|
9
|
-
return t.toString();
|
|
10
|
-
const s = t < 0n;
|
|
11
|
-
t = s ? -t : t;
|
|
12
|
-
const n = t.toString().padStart(e, "0"), r = n.slice(0, -e) || "0", a = n.slice(-e).replace(/0+$/, "");
|
|
13
|
-
return `${s ? "-" : ""}${r}${a ? `.${a}` : ""}`;
|
|
14
|
-
}
|
|
15
|
-
const d = (t, e) => ({
|
|
16
|
-
decimals: e,
|
|
17
|
-
value: e >= t.decimals ? t.value * BigInt(10) ** BigInt(e - t.decimals) : t.value / BigInt(10) ** BigInt(t.decimals - e)
|
|
18
|
-
}), p = (t) => {
|
|
19
|
-
const e = t.value.toString().split("").reverse();
|
|
20
|
-
let s = 0;
|
|
21
|
-
for (let r = 0; r < e.length && e[r] === "0"; r++)
|
|
22
|
-
s++;
|
|
23
|
-
const n = t.decimals - s;
|
|
24
|
-
return d(t, n);
|
|
25
|
-
}, m = (t, e) => {
|
|
26
|
-
const s = Math.max(t.decimals, e.decimals), [n, r] = [t, e].map((a) => d(a, s));
|
|
27
|
-
return [n.value, r.value, s];
|
|
28
|
-
}, c = (t) => (e, s) => {
|
|
29
|
-
const [n, r, a] = m(e, s);
|
|
30
|
-
return {
|
|
31
|
-
decimals: a,
|
|
32
|
-
value: t(n, r, a)
|
|
33
|
-
};
|
|
34
|
-
}, i = (t) => (e, s) => {
|
|
35
|
-
const [n, r] = m(e, s);
|
|
36
|
-
return t(n, r);
|
|
37
|
-
}, E = c((t, e) => t + e), S = c((t, e) => t - e), B = c((t, e, s) => {
|
|
38
|
-
if (e === BigInt(0))
|
|
39
|
-
throw new Error("Division by zero is not allowed");
|
|
40
|
-
return t * BigInt(10) ** BigInt(s) / e;
|
|
41
|
-
}), b = (t, e) => p({
|
|
42
|
-
decimals: t.decimals + e.decimals,
|
|
43
|
-
value: t.value * e.value
|
|
44
|
-
}), $ = c((t, e) => {
|
|
45
|
-
if (e === BigInt(0))
|
|
46
|
-
throw new Error("Modulus by zero is not allowed");
|
|
47
|
-
return t % e;
|
|
48
|
-
}), g = (t) => ({
|
|
49
|
-
decimals: t.decimals,
|
|
50
|
-
value: t.value >= BigInt(0) ? t.value : -t.value
|
|
51
|
-
}), I = i((t, e) => t === e), C = i((t, e) => t < e), O = i((t, e) => t > e), x = i((t, e) => t <= e), P = i((t, e) => t >= e), T = (t, e) => !I(t, e);
|
|
52
|
-
function U(t) {
|
|
53
|
-
return l({ value: t, decimals: o });
|
|
54
|
-
}
|
|
55
|
-
function q(t) {
|
|
56
|
-
return u(t, o);
|
|
57
|
-
}
|
|
58
|
-
function z(t) {
|
|
59
|
-
return l({ value: t, decimals: o });
|
|
60
|
-
}
|
|
61
|
-
function h(t) {
|
|
62
|
-
return u(t, o);
|
|
63
|
-
}
|
|
64
|
-
function L(t) {
|
|
65
|
-
return g({ value: t, decimals: 0 }).value;
|
|
66
|
-
}
|
|
67
|
-
function M(t) {
|
|
68
|
-
return g(h(t));
|
|
69
|
-
}
|
|
70
|
-
function k(t, e) {
|
|
71
|
-
return {
|
|
72
|
-
value: BigInt(t),
|
|
73
|
-
decimals: e
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
const F = { value: 1n, decimals: 0 }, N = (t, e) => {
|
|
77
|
-
const s = new URLSearchParams(e), n = s.size ? `?${s}` : "";
|
|
78
|
-
return v(...f(t), n);
|
|
79
|
-
};
|
|
80
|
-
function _(t) {
|
|
81
|
-
const e = { value: BigInt(t), decimals: 2 }, s = {
|
|
82
|
-
value: BigInt(1e4),
|
|
83
|
-
decimals: 2
|
|
84
|
-
};
|
|
85
|
-
return B(e, s);
|
|
86
|
-
}
|
|
87
|
-
export {
|
|
88
|
-
o as D,
|
|
89
|
-
F as O,
|
|
90
|
-
g as a,
|
|
91
|
-
L as b,
|
|
92
|
-
E as c,
|
|
93
|
-
B as d,
|
|
94
|
-
I as e,
|
|
95
|
-
z as f,
|
|
96
|
-
U as g,
|
|
97
|
-
l as h,
|
|
98
|
-
O as i,
|
|
99
|
-
P as j,
|
|
100
|
-
x as k,
|
|
101
|
-
C as l,
|
|
102
|
-
$ as m,
|
|
103
|
-
b as n,
|
|
104
|
-
T as o,
|
|
105
|
-
h as p,
|
|
106
|
-
M as q,
|
|
107
|
-
q as r,
|
|
108
|
-
S as s,
|
|
109
|
-
k as t,
|
|
110
|
-
d as u,
|
|
111
|
-
p as v,
|
|
112
|
-
N as w,
|
|
113
|
-
_ as x
|
|
114
|
-
};
|
package/dist/bips-DxN0hSiY.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("./webToken.model-5HUiR8ER.js");require("starknet");require("lodash-es");require("@scure/base");require("zod");const c=18;function l({value:e,decimals:t}){if(t===0)return e.toString();const r=e<0n;e=r?-e:e;const n=e.toString().padStart(t,"0"),s=n.slice(0,-t)||"0",i=n.slice(-t).replace(/0+$/,"");return`${r?"-":""}${s}${i?`.${i}`:""}`}const d=(e,t)=>({decimals:t,value:t>=e.decimals?e.value*BigInt(10)**BigInt(t-e.decimals):e.value/BigInt(10)**BigInt(e.decimals-t)}),g=e=>{const t=e.value.toString().split("").reverse();let r=0;for(let s=0;s<t.length&&t[s]==="0";s++)r++;const n=e.decimals-r;return d(e,n)},v=(e,t)=>{const r=Math.max(e.decimals,t.decimals),[n,s]=[e,t].map(i=>d(i,r));return[n.value,s.value,r]},u=e=>(t,r)=>{const[n,s,i]=v(t,r);return{decimals:i,value:e(n,s,i)}},o=e=>(t,r)=>{const[n,s]=v(t,r);return e(n,s)},I=u((e,t)=>e+t),E=u((e,t)=>e-t),f=u((e,t,r)=>{if(t===BigInt(0))throw new Error("Division by zero is not allowed");return e*BigInt(10)**BigInt(r)/t}),h=(e,t)=>g({decimals:e.decimals+t.decimals,value:e.value*t.value}),b=u((e,t)=>{if(t===BigInt(0))throw new Error("Modulus by zero is not allowed");return e%t}),m=e=>({decimals:e.decimals,value:e.value>=BigInt(0)?e.value:-e.value}),B=o((e,t)=>e===t),y=o((e,t)=>e<t),A=o((e,t)=>e>t),D=o((e,t)=>e<=t),w=o((e,t)=>e>=t),C=(e,t)=>!B(e,t);function T(e){return l({value:e,decimals:c})}function q(e){return a.parseUnits(e,c)}function S(e){return l({value:e,decimals:c})}function p(e){return a.parseUnits(e,c)}function j(e){return m({value:e,decimals:0}).value}function U(e){return m(p(e))}function O(e,t){return{value:BigInt(e),decimals:t}}const P={value:1n,decimals:0},$=(e,t)=>{const r=new URLSearchParams(t),n=r.size?`?${r}`:"";return a.urlJoin(...a.ensureArray(e),n)};function L(e){const t={value:BigInt(e),decimals:2},r={value:BigInt(1e4),decimals:2};return f(t,r)}exports.DEFAULT_TOKEN_DECIMALS=c;exports.ONE=P;exports.abs=m;exports.absBigInt=j;exports.add=I;exports.bipsToPercent=L;exports.div=f;exports.eq=B;exports.formatCurrency=S;exports.formatEther=T;exports.formatUnits=l;exports.gt=A;exports.gte=w;exports.lt=y;exports.lte=D;exports.mod=b;exports.mul=h;exports.not=C;exports.parseCurrency=p;exports.parseCurrencyAbs=U;exports.parseEther=q;exports.sub=E;exports.toBigDecimal=O;exports.toFixedDecimals=d;exports.toTiniestPossibleDecimal=g;exports.urlWithQuery=$;
|
package/dist/hooks/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDebounce<T extends (...args: any[]) => any>(func: T, wait: number): (...args: Parameters<T>) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useDebouncedValue<T>(value: T, delay: number): T;
|
package/dist/http/swr.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { BareFetcher, Key, SWRConfiguration } from 'swr';
|
|
2
|
-
export interface SWRConfigCommon {
|
|
3
|
-
suspense?: boolean;
|
|
4
|
-
refreshInterval?: number;
|
|
5
|
-
errorRetryInterval?: number;
|
|
6
|
-
}
|
|
7
|
-
export declare const withPolling: (interval: number) => {
|
|
8
|
-
refreshInterval: number;
|
|
9
|
-
dedupingInterval: number; /** dedupe multiple requests */
|
|
10
|
-
};
|
|
11
|
-
export declare const getAccountIdentifier: (account: {
|
|
12
|
-
networkId: string;
|
|
13
|
-
address: string;
|
|
14
|
-
}) => string;
|
|
15
|
-
/**
|
|
16
|
-
* `useSWR` with additional flag that will enable or disable calling the fetcher and clears data when disabled
|
|
17
|
-
*
|
|
18
|
-
* This is useful when data fetching may be dependent on a user setting
|
|
19
|
-
*/
|
|
20
|
-
export declare function useConditionallyEnabledSWR<Data = any, Error = any>(enabled: boolean, key: Key, fetcher: BareFetcher<Data> | null, config?: SWRConfiguration<Data, Error, BareFetcher<Data>>): import('swr').SWRResponse<Data, Error>;
|
|
21
|
-
export declare const swrRefetchDisabledConfig: SWRConfiguration;
|