@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,629 @@
|
|
|
1
|
+
import { getDefaultExportFromCjs as Ge } from "../../../../../_virtual/_commonjsHelpers.js";
|
|
2
|
+
import { __module as k } from "../../../../../_virtual/semver.js";
|
|
3
|
+
(function(J, l) {
|
|
4
|
+
l = J.exports = f;
|
|
5
|
+
var I;
|
|
6
|
+
typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? I = function() {
|
|
7
|
+
var e = Array.prototype.slice.call(arguments, 0);
|
|
8
|
+
e.unshift("SEMVER"), console.log.apply(console, e);
|
|
9
|
+
} : I = function() {
|
|
10
|
+
}, l.SEMVER_SPEC_VERSION = "2.0.0";
|
|
11
|
+
var y = 256, G = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
12
|
+
9007199254740991, M = 16, K = y - 6, D = l.re = [], h = l.safeRe = [], s = l.src = [], n = l.tokens = {}, Y = 0;
|
|
13
|
+
function R(e) {
|
|
14
|
+
n[e] = Y++;
|
|
15
|
+
}
|
|
16
|
+
var $ = "[a-zA-Z0-9-]", B = [
|
|
17
|
+
["\\s", 1],
|
|
18
|
+
["\\d", y],
|
|
19
|
+
[$, K]
|
|
20
|
+
];
|
|
21
|
+
function g(e) {
|
|
22
|
+
for (var r = 0; r < B.length; r++) {
|
|
23
|
+
var t = B[r][0], i = B[r][1];
|
|
24
|
+
e = e.split(t + "*").join(t + "{0," + i + "}").split(t + "+").join(t + "{1," + i + "}");
|
|
25
|
+
}
|
|
26
|
+
return e;
|
|
27
|
+
}
|
|
28
|
+
R("NUMERICIDENTIFIER"), s[n.NUMERICIDENTIFIER] = "0|[1-9]\\d*", R("NUMERICIDENTIFIERLOOSE"), s[n.NUMERICIDENTIFIERLOOSE] = "\\d+", R("NONNUMERICIDENTIFIER"), s[n.NONNUMERICIDENTIFIER] = "\\d*[a-zA-Z-]" + $ + "*", R("MAINVERSION"), s[n.MAINVERSION] = "(" + s[n.NUMERICIDENTIFIER] + ")\\.(" + s[n.NUMERICIDENTIFIER] + ")\\.(" + s[n.NUMERICIDENTIFIER] + ")", R("MAINVERSIONLOOSE"), s[n.MAINVERSIONLOOSE] = "(" + s[n.NUMERICIDENTIFIERLOOSE] + ")\\.(" + s[n.NUMERICIDENTIFIERLOOSE] + ")\\.(" + s[n.NUMERICIDENTIFIERLOOSE] + ")", R("PRERELEASEIDENTIFIER"), s[n.PRERELEASEIDENTIFIER] = "(?:" + s[n.NUMERICIDENTIFIER] + "|" + s[n.NONNUMERICIDENTIFIER] + ")", R("PRERELEASEIDENTIFIERLOOSE"), s[n.PRERELEASEIDENTIFIERLOOSE] = "(?:" + s[n.NUMERICIDENTIFIERLOOSE] + "|" + s[n.NONNUMERICIDENTIFIER] + ")", R("PRERELEASE"), s[n.PRERELEASE] = "(?:-(" + s[n.PRERELEASEIDENTIFIER] + "(?:\\." + s[n.PRERELEASEIDENTIFIER] + ")*))", R("PRERELEASELOOSE"), s[n.PRERELEASELOOSE] = "(?:-?(" + s[n.PRERELEASEIDENTIFIERLOOSE] + "(?:\\." + s[n.PRERELEASEIDENTIFIERLOOSE] + ")*))", R("BUILDIDENTIFIER"), s[n.BUILDIDENTIFIER] = $ + "+", R("BUILD"), s[n.BUILD] = "(?:\\+(" + s[n.BUILDIDENTIFIER] + "(?:\\." + s[n.BUILDIDENTIFIER] + ")*))", R("FULL"), R("FULLPLAIN"), s[n.FULLPLAIN] = "v?" + s[n.MAINVERSION] + s[n.PRERELEASE] + "?" + s[n.BUILD] + "?", s[n.FULL] = "^" + s[n.FULLPLAIN] + "$", R("LOOSEPLAIN"), s[n.LOOSEPLAIN] = "[v=\\s]*" + s[n.MAINVERSIONLOOSE] + s[n.PRERELEASELOOSE] + "?" + s[n.BUILD] + "?", R("LOOSE"), s[n.LOOSE] = "^" + s[n.LOOSEPLAIN] + "$", R("GTLT"), s[n.GTLT] = "((?:<|>)?=?)", R("XRANGEIDENTIFIERLOOSE"), s[n.XRANGEIDENTIFIERLOOSE] = s[n.NUMERICIDENTIFIERLOOSE] + "|x|X|\\*", R("XRANGEIDENTIFIER"), s[n.XRANGEIDENTIFIER] = s[n.NUMERICIDENTIFIER] + "|x|X|\\*", R("XRANGEPLAIN"), s[n.XRANGEPLAIN] = "[v=\\s]*(" + s[n.XRANGEIDENTIFIER] + ")(?:\\.(" + s[n.XRANGEIDENTIFIER] + ")(?:\\.(" + s[n.XRANGEIDENTIFIER] + ")(?:" + s[n.PRERELEASE] + ")?" + s[n.BUILD] + "?)?)?", R("XRANGEPLAINLOOSE"), s[n.XRANGEPLAINLOOSE] = "[v=\\s]*(" + s[n.XRANGEIDENTIFIERLOOSE] + ")(?:\\.(" + s[n.XRANGEIDENTIFIERLOOSE] + ")(?:\\.(" + s[n.XRANGEIDENTIFIERLOOSE] + ")(?:" + s[n.PRERELEASELOOSE] + ")?" + s[n.BUILD] + "?)?)?", R("XRANGE"), s[n.XRANGE] = "^" + s[n.GTLT] + "\\s*" + s[n.XRANGEPLAIN] + "$", R("XRANGELOOSE"), s[n.XRANGELOOSE] = "^" + s[n.GTLT] + "\\s*" + s[n.XRANGEPLAINLOOSE] + "$", R("COERCE"), s[n.COERCE] = "(^|[^\\d])(\\d{1," + M + "})(?:\\.(\\d{1," + M + "}))?(?:\\.(\\d{1," + M + "}))?(?:$|[^\\d])", R("COERCERTL"), D[n.COERCERTL] = new RegExp(s[n.COERCE], "g"), h[n.COERCERTL] = new RegExp(g(s[n.COERCE]), "g"), R("LONETILDE"), s[n.LONETILDE] = "(?:~>?)", R("TILDETRIM"), s[n.TILDETRIM] = "(\\s*)" + s[n.LONETILDE] + "\\s+", D[n.TILDETRIM] = new RegExp(s[n.TILDETRIM], "g"), h[n.TILDETRIM] = new RegExp(g(s[n.TILDETRIM]), "g");
|
|
29
|
+
var Q = "$1~";
|
|
30
|
+
R("TILDE"), s[n.TILDE] = "^" + s[n.LONETILDE] + s[n.XRANGEPLAIN] + "$", R("TILDELOOSE"), s[n.TILDELOOSE] = "^" + s[n.LONETILDE] + s[n.XRANGEPLAINLOOSE] + "$", R("LONECARET"), s[n.LONECARET] = "(?:\\^)", R("CARETTRIM"), s[n.CARETTRIM] = "(\\s*)" + s[n.LONECARET] + "\\s+", D[n.CARETTRIM] = new RegExp(s[n.CARETTRIM], "g"), h[n.CARETTRIM] = new RegExp(g(s[n.CARETTRIM]), "g");
|
|
31
|
+
var W = "$1^";
|
|
32
|
+
R("CARET"), s[n.CARET] = "^" + s[n.LONECARET] + s[n.XRANGEPLAIN] + "$", R("CARETLOOSE"), s[n.CARETLOOSE] = "^" + s[n.LONECARET] + s[n.XRANGEPLAINLOOSE] + "$", R("COMPARATORLOOSE"), s[n.COMPARATORLOOSE] = "^" + s[n.GTLT] + "\\s*(" + s[n.LOOSEPLAIN] + ")$|^$", R("COMPARATOR"), s[n.COMPARATOR] = "^" + s[n.GTLT] + "\\s*(" + s[n.FULLPLAIN] + ")$|^$", R("COMPARATORTRIM"), s[n.COMPARATORTRIM] = "(\\s*)" + s[n.GTLT] + "\\s*(" + s[n.LOOSEPLAIN] + "|" + s[n.XRANGEPLAIN] + ")", D[n.COMPARATORTRIM] = new RegExp(s[n.COMPARATORTRIM], "g"), h[n.COMPARATORTRIM] = new RegExp(g(s[n.COMPARATORTRIM]), "g");
|
|
33
|
+
var x = "$1$2$3";
|
|
34
|
+
R("HYPHENRANGE"), s[n.HYPHENRANGE] = "^\\s*(" + s[n.XRANGEPLAIN] + ")\\s+-\\s+(" + s[n.XRANGEPLAIN] + ")\\s*$", R("HYPHENRANGELOOSE"), s[n.HYPHENRANGELOOSE] = "^\\s*(" + s[n.XRANGEPLAINLOOSE] + ")\\s+-\\s+(" + s[n.XRANGEPLAINLOOSE] + ")\\s*$", R("STAR"), s[n.STAR] = "(<|>)?=?\\s*\\*";
|
|
35
|
+
for (var S = 0; S < Y; S++)
|
|
36
|
+
I(S, s[S]), D[S] || (D[S] = new RegExp(s[S]), h[S] = new RegExp(g(s[S])));
|
|
37
|
+
l.parse = w;
|
|
38
|
+
function w(e, r) {
|
|
39
|
+
if ((!r || typeof r != "object") && (r = {
|
|
40
|
+
loose: !!r,
|
|
41
|
+
includePrerelease: !1
|
|
42
|
+
}), e instanceof f)
|
|
43
|
+
return e;
|
|
44
|
+
if (typeof e != "string" || e.length > y)
|
|
45
|
+
return null;
|
|
46
|
+
var t = r.loose ? h[n.LOOSE] : h[n.FULL];
|
|
47
|
+
if (!t.test(e))
|
|
48
|
+
return null;
|
|
49
|
+
try {
|
|
50
|
+
return new f(e, r);
|
|
51
|
+
} catch {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
l.valid = ee;
|
|
56
|
+
function ee(e, r) {
|
|
57
|
+
var t = w(e, r);
|
|
58
|
+
return t ? t.version : null;
|
|
59
|
+
}
|
|
60
|
+
l.clean = re;
|
|
61
|
+
function re(e, r) {
|
|
62
|
+
var t = w(e.trim().replace(/^[=v]+/, ""), r);
|
|
63
|
+
return t ? t.version : null;
|
|
64
|
+
}
|
|
65
|
+
l.SemVer = f;
|
|
66
|
+
function f(e, r) {
|
|
67
|
+
if ((!r || typeof r != "object") && (r = {
|
|
68
|
+
loose: !!r,
|
|
69
|
+
includePrerelease: !1
|
|
70
|
+
}), e instanceof f) {
|
|
71
|
+
if (e.loose === r.loose)
|
|
72
|
+
return e;
|
|
73
|
+
e = e.version;
|
|
74
|
+
} else if (typeof e != "string")
|
|
75
|
+
throw new TypeError("Invalid Version: " + e);
|
|
76
|
+
if (e.length > y)
|
|
77
|
+
throw new TypeError("version is longer than " + y + " characters");
|
|
78
|
+
if (!(this instanceof f))
|
|
79
|
+
return new f(e, r);
|
|
80
|
+
I("SemVer", e, r), this.options = r, this.loose = !!r.loose;
|
|
81
|
+
var t = e.trim().match(r.loose ? h[n.LOOSE] : h[n.FULL]);
|
|
82
|
+
if (!t)
|
|
83
|
+
throw new TypeError("Invalid Version: " + e);
|
|
84
|
+
if (this.raw = e, this.major = +t[1], this.minor = +t[2], this.patch = +t[3], this.major > G || this.major < 0)
|
|
85
|
+
throw new TypeError("Invalid major version");
|
|
86
|
+
if (this.minor > G || this.minor < 0)
|
|
87
|
+
throw new TypeError("Invalid minor version");
|
|
88
|
+
if (this.patch > G || this.patch < 0)
|
|
89
|
+
throw new TypeError("Invalid patch version");
|
|
90
|
+
t[4] ? this.prerelease = t[4].split(".").map(function(i) {
|
|
91
|
+
if (/^[0-9]+$/.test(i)) {
|
|
92
|
+
var a = +i;
|
|
93
|
+
if (a >= 0 && a < G)
|
|
94
|
+
return a;
|
|
95
|
+
}
|
|
96
|
+
return i;
|
|
97
|
+
}) : this.prerelease = [], this.build = t[5] ? t[5].split(".") : [], this.format();
|
|
98
|
+
}
|
|
99
|
+
f.prototype.format = function() {
|
|
100
|
+
return this.version = this.major + "." + this.minor + "." + this.patch, this.prerelease.length && (this.version += "-" + this.prerelease.join(".")), this.version;
|
|
101
|
+
}, f.prototype.toString = function() {
|
|
102
|
+
return this.version;
|
|
103
|
+
}, f.prototype.compare = function(e) {
|
|
104
|
+
return I("SemVer.compare", this.version, this.options, e), e instanceof f || (e = new f(e, this.options)), this.compareMain(e) || this.comparePre(e);
|
|
105
|
+
}, f.prototype.compareMain = function(e) {
|
|
106
|
+
return e instanceof f || (e = new f(e, this.options)), d(this.major, e.major) || d(this.minor, e.minor) || d(this.patch, e.patch);
|
|
107
|
+
}, f.prototype.comparePre = function(e) {
|
|
108
|
+
if (e instanceof f || (e = new f(e, this.options)), this.prerelease.length && !e.prerelease.length)
|
|
109
|
+
return -1;
|
|
110
|
+
if (!this.prerelease.length && e.prerelease.length)
|
|
111
|
+
return 1;
|
|
112
|
+
if (!this.prerelease.length && !e.prerelease.length)
|
|
113
|
+
return 0;
|
|
114
|
+
var r = 0;
|
|
115
|
+
do {
|
|
116
|
+
var t = this.prerelease[r], i = e.prerelease[r];
|
|
117
|
+
if (I("prerelease compare", r, t, i), t === void 0 && i === void 0)
|
|
118
|
+
return 0;
|
|
119
|
+
if (i === void 0)
|
|
120
|
+
return 1;
|
|
121
|
+
if (t === void 0)
|
|
122
|
+
return -1;
|
|
123
|
+
if (t === i)
|
|
124
|
+
continue;
|
|
125
|
+
return d(t, i);
|
|
126
|
+
} while (++r);
|
|
127
|
+
}, f.prototype.compareBuild = function(e) {
|
|
128
|
+
e instanceof f || (e = new f(e, this.options));
|
|
129
|
+
var r = 0;
|
|
130
|
+
do {
|
|
131
|
+
var t = this.build[r], i = e.build[r];
|
|
132
|
+
if (I("prerelease compare", r, t, i), t === void 0 && i === void 0)
|
|
133
|
+
return 0;
|
|
134
|
+
if (i === void 0)
|
|
135
|
+
return 1;
|
|
136
|
+
if (t === void 0)
|
|
137
|
+
return -1;
|
|
138
|
+
if (t === i)
|
|
139
|
+
continue;
|
|
140
|
+
return d(t, i);
|
|
141
|
+
} while (++r);
|
|
142
|
+
}, f.prototype.inc = function(e, r) {
|
|
143
|
+
switch (e) {
|
|
144
|
+
case "premajor":
|
|
145
|
+
this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", r);
|
|
146
|
+
break;
|
|
147
|
+
case "preminor":
|
|
148
|
+
this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", r);
|
|
149
|
+
break;
|
|
150
|
+
case "prepatch":
|
|
151
|
+
this.prerelease.length = 0, this.inc("patch", r), this.inc("pre", r);
|
|
152
|
+
break;
|
|
153
|
+
case "prerelease":
|
|
154
|
+
this.prerelease.length === 0 && this.inc("patch", r), this.inc("pre", r);
|
|
155
|
+
break;
|
|
156
|
+
case "major":
|
|
157
|
+
(this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) && this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
|
|
158
|
+
break;
|
|
159
|
+
case "minor":
|
|
160
|
+
(this.patch !== 0 || this.prerelease.length === 0) && this.minor++, this.patch = 0, this.prerelease = [];
|
|
161
|
+
break;
|
|
162
|
+
case "patch":
|
|
163
|
+
this.prerelease.length === 0 && this.patch++, this.prerelease = [];
|
|
164
|
+
break;
|
|
165
|
+
case "pre":
|
|
166
|
+
if (this.prerelease.length === 0)
|
|
167
|
+
this.prerelease = [0];
|
|
168
|
+
else {
|
|
169
|
+
for (var t = this.prerelease.length; --t >= 0; )
|
|
170
|
+
typeof this.prerelease[t] == "number" && (this.prerelease[t]++, t = -2);
|
|
171
|
+
t === -1 && this.prerelease.push(0);
|
|
172
|
+
}
|
|
173
|
+
r && (this.prerelease[0] === r ? isNaN(this.prerelease[1]) && (this.prerelease = [r, 0]) : this.prerelease = [r, 0]);
|
|
174
|
+
break;
|
|
175
|
+
default:
|
|
176
|
+
throw new Error("invalid increment argument: " + e);
|
|
177
|
+
}
|
|
178
|
+
return this.format(), this.raw = this.version, this;
|
|
179
|
+
}, l.inc = te;
|
|
180
|
+
function te(e, r, t, i) {
|
|
181
|
+
typeof t == "string" && (i = t, t = void 0);
|
|
182
|
+
try {
|
|
183
|
+
return new f(e, t).inc(r, i).version;
|
|
184
|
+
} catch {
|
|
185
|
+
return null;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
l.diff = ne;
|
|
189
|
+
function ne(e, r) {
|
|
190
|
+
if (V(e, r))
|
|
191
|
+
return null;
|
|
192
|
+
var t = w(e), i = w(r), a = "";
|
|
193
|
+
if (t.prerelease.length || i.prerelease.length) {
|
|
194
|
+
a = "pre";
|
|
195
|
+
var E = "prerelease";
|
|
196
|
+
}
|
|
197
|
+
for (var u in t)
|
|
198
|
+
if ((u === "major" || u === "minor" || u === "patch") && t[u] !== i[u])
|
|
199
|
+
return a + u;
|
|
200
|
+
return E;
|
|
201
|
+
}
|
|
202
|
+
l.compareIdentifiers = d;
|
|
203
|
+
var q = /^[0-9]+$/;
|
|
204
|
+
function d(e, r) {
|
|
205
|
+
var t = q.test(e), i = q.test(r);
|
|
206
|
+
return t && i && (e = +e, r = +r), e === r ? 0 : t && !i ? -1 : i && !t ? 1 : e < r ? -1 : 1;
|
|
207
|
+
}
|
|
208
|
+
l.rcompareIdentifiers = ie;
|
|
209
|
+
function ie(e, r) {
|
|
210
|
+
return d(r, e);
|
|
211
|
+
}
|
|
212
|
+
l.major = se;
|
|
213
|
+
function se(e, r) {
|
|
214
|
+
return new f(e, r).major;
|
|
215
|
+
}
|
|
216
|
+
l.minor = ae;
|
|
217
|
+
function ae(e, r) {
|
|
218
|
+
return new f(e, r).minor;
|
|
219
|
+
}
|
|
220
|
+
l.patch = Ee;
|
|
221
|
+
function Ee(e, r) {
|
|
222
|
+
return new f(e, r).patch;
|
|
223
|
+
}
|
|
224
|
+
l.compare = m;
|
|
225
|
+
function m(e, r, t) {
|
|
226
|
+
return new f(e, t).compare(new f(r, t));
|
|
227
|
+
}
|
|
228
|
+
l.compareLoose = ue;
|
|
229
|
+
function ue(e, r) {
|
|
230
|
+
return m(e, r, !0);
|
|
231
|
+
}
|
|
232
|
+
l.compareBuild = le;
|
|
233
|
+
function le(e, r, t) {
|
|
234
|
+
var i = new f(e, t), a = new f(r, t);
|
|
235
|
+
return i.compare(a) || i.compareBuild(a);
|
|
236
|
+
}
|
|
237
|
+
l.rcompare = fe;
|
|
238
|
+
function fe(e, r, t) {
|
|
239
|
+
return m(r, e, t);
|
|
240
|
+
}
|
|
241
|
+
l.sort = ce;
|
|
242
|
+
function ce(e, r) {
|
|
243
|
+
return e.sort(function(t, i) {
|
|
244
|
+
return l.compareBuild(t, i, r);
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
l.rsort = Re;
|
|
248
|
+
function Re(e, r) {
|
|
249
|
+
return e.sort(function(t, i) {
|
|
250
|
+
return l.compareBuild(i, t, r);
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
l.gt = F;
|
|
254
|
+
function F(e, r, t) {
|
|
255
|
+
return m(e, r, t) > 0;
|
|
256
|
+
}
|
|
257
|
+
l.lt = X;
|
|
258
|
+
function X(e, r, t) {
|
|
259
|
+
return m(e, r, t) < 0;
|
|
260
|
+
}
|
|
261
|
+
l.eq = V;
|
|
262
|
+
function V(e, r, t) {
|
|
263
|
+
return m(e, r, t) === 0;
|
|
264
|
+
}
|
|
265
|
+
l.neq = z;
|
|
266
|
+
function z(e, r, t) {
|
|
267
|
+
return m(e, r, t) !== 0;
|
|
268
|
+
}
|
|
269
|
+
l.gte = _;
|
|
270
|
+
function _(e, r, t) {
|
|
271
|
+
return m(e, r, t) >= 0;
|
|
272
|
+
}
|
|
273
|
+
l.lte = H;
|
|
274
|
+
function H(e, r, t) {
|
|
275
|
+
return m(e, r, t) <= 0;
|
|
276
|
+
}
|
|
277
|
+
l.cmp = j;
|
|
278
|
+
function j(e, r, t, i) {
|
|
279
|
+
switch (r) {
|
|
280
|
+
case "===":
|
|
281
|
+
return typeof e == "object" && (e = e.version), typeof t == "object" && (t = t.version), e === t;
|
|
282
|
+
case "!==":
|
|
283
|
+
return typeof e == "object" && (e = e.version), typeof t == "object" && (t = t.version), e !== t;
|
|
284
|
+
case "":
|
|
285
|
+
case "=":
|
|
286
|
+
case "==":
|
|
287
|
+
return V(e, t, i);
|
|
288
|
+
case "!=":
|
|
289
|
+
return z(e, t, i);
|
|
290
|
+
case ">":
|
|
291
|
+
return F(e, t, i);
|
|
292
|
+
case ">=":
|
|
293
|
+
return _(e, t, i);
|
|
294
|
+
case "<":
|
|
295
|
+
return X(e, t, i);
|
|
296
|
+
case "<=":
|
|
297
|
+
return H(e, t, i);
|
|
298
|
+
default:
|
|
299
|
+
throw new TypeError("Invalid operator: " + r);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
l.Comparator = T;
|
|
303
|
+
function T(e, r) {
|
|
304
|
+
if ((!r || typeof r != "object") && (r = {
|
|
305
|
+
loose: !!r,
|
|
306
|
+
includePrerelease: !1
|
|
307
|
+
}), e instanceof T) {
|
|
308
|
+
if (e.loose === !!r.loose)
|
|
309
|
+
return e;
|
|
310
|
+
e = e.value;
|
|
311
|
+
}
|
|
312
|
+
if (!(this instanceof T))
|
|
313
|
+
return new T(e, r);
|
|
314
|
+
e = e.trim().split(/\s+/).join(" "), I("comparator", e, r), this.options = r, this.loose = !!r.loose, this.parse(e), this.semver === P ? this.value = "" : this.value = this.operator + this.semver.version, I("comp", this);
|
|
315
|
+
}
|
|
316
|
+
var P = {};
|
|
317
|
+
T.prototype.parse = function(e) {
|
|
318
|
+
var r = this.options.loose ? h[n.COMPARATORLOOSE] : h[n.COMPARATOR], t = e.match(r);
|
|
319
|
+
if (!t)
|
|
320
|
+
throw new TypeError("Invalid comparator: " + e);
|
|
321
|
+
this.operator = t[1] !== void 0 ? t[1] : "", this.operator === "=" && (this.operator = ""), t[2] ? this.semver = new f(t[2], this.options.loose) : this.semver = P;
|
|
322
|
+
}, T.prototype.toString = function() {
|
|
323
|
+
return this.value;
|
|
324
|
+
}, T.prototype.test = function(e) {
|
|
325
|
+
if (I("Comparator.test", e, this.options.loose), this.semver === P || e === P)
|
|
326
|
+
return !0;
|
|
327
|
+
if (typeof e == "string")
|
|
328
|
+
try {
|
|
329
|
+
e = new f(e, this.options);
|
|
330
|
+
} catch {
|
|
331
|
+
return !1;
|
|
332
|
+
}
|
|
333
|
+
return j(e, this.operator, this.semver, this.options);
|
|
334
|
+
}, T.prototype.intersects = function(e, r) {
|
|
335
|
+
if (!(e instanceof T))
|
|
336
|
+
throw new TypeError("a Comparator is required");
|
|
337
|
+
(!r || typeof r != "object") && (r = {
|
|
338
|
+
loose: !!r,
|
|
339
|
+
includePrerelease: !1
|
|
340
|
+
});
|
|
341
|
+
var t;
|
|
342
|
+
if (this.operator === "")
|
|
343
|
+
return this.value === "" ? !0 : (t = new O(e.value, r), U(this.value, t, r));
|
|
344
|
+
if (e.operator === "")
|
|
345
|
+
return e.value === "" ? !0 : (t = new O(this.value, r), U(e.semver, t, r));
|
|
346
|
+
var i = (this.operator === ">=" || this.operator === ">") && (e.operator === ">=" || e.operator === ">"), a = (this.operator === "<=" || this.operator === "<") && (e.operator === "<=" || e.operator === "<"), E = this.semver.version === e.semver.version, u = (this.operator === ">=" || this.operator === "<=") && (e.operator === ">=" || e.operator === "<="), o = j(this.semver, "<", e.semver, r) && (this.operator === ">=" || this.operator === ">") && (e.operator === "<=" || e.operator === "<"), c = j(this.semver, ">", e.semver, r) && (this.operator === "<=" || this.operator === "<") && (e.operator === ">=" || e.operator === ">");
|
|
347
|
+
return i || a || E && u || o || c;
|
|
348
|
+
}, l.Range = O;
|
|
349
|
+
function O(e, r) {
|
|
350
|
+
if ((!r || typeof r != "object") && (r = {
|
|
351
|
+
loose: !!r,
|
|
352
|
+
includePrerelease: !1
|
|
353
|
+
}), e instanceof O)
|
|
354
|
+
return e.loose === !!r.loose && e.includePrerelease === !!r.includePrerelease ? e : new O(e.raw, r);
|
|
355
|
+
if (e instanceof T)
|
|
356
|
+
return new O(e.value, r);
|
|
357
|
+
if (!(this instanceof O))
|
|
358
|
+
return new O(e, r);
|
|
359
|
+
if (this.options = r, this.loose = !!r.loose, this.includePrerelease = !!r.includePrerelease, this.raw = e.trim().split(/\s+/).join(" "), this.set = this.raw.split("||").map(function(t) {
|
|
360
|
+
return this.parseRange(t.trim());
|
|
361
|
+
}, this).filter(function(t) {
|
|
362
|
+
return t.length;
|
|
363
|
+
}), !this.set.length)
|
|
364
|
+
throw new TypeError("Invalid SemVer Range: " + this.raw);
|
|
365
|
+
this.format();
|
|
366
|
+
}
|
|
367
|
+
O.prototype.format = function() {
|
|
368
|
+
return this.range = this.set.map(function(e) {
|
|
369
|
+
return e.join(" ").trim();
|
|
370
|
+
}).join("||").trim(), this.range;
|
|
371
|
+
}, O.prototype.toString = function() {
|
|
372
|
+
return this.range;
|
|
373
|
+
}, O.prototype.parseRange = function(e) {
|
|
374
|
+
var r = this.options.loose, t = r ? h[n.HYPHENRANGELOOSE] : h[n.HYPHENRANGE];
|
|
375
|
+
e = e.replace(t, ve), I("hyphen replace", e), e = e.replace(h[n.COMPARATORTRIM], x), I("comparator trim", e, h[n.COMPARATORTRIM]), e = e.replace(h[n.TILDETRIM], Q), e = e.replace(h[n.CARETTRIM], W), e = e.split(/\s+/).join(" ");
|
|
376
|
+
var i = r ? h[n.COMPARATORLOOSE] : h[n.COMPARATOR], a = e.split(" ").map(function(E) {
|
|
377
|
+
return Ie(E, this.options);
|
|
378
|
+
}, this).join(" ").split(/\s+/);
|
|
379
|
+
return this.options.loose && (a = a.filter(function(E) {
|
|
380
|
+
return !!E.match(i);
|
|
381
|
+
})), a = a.map(function(E) {
|
|
382
|
+
return new T(E, this.options);
|
|
383
|
+
}, this), a;
|
|
384
|
+
}, O.prototype.intersects = function(e, r) {
|
|
385
|
+
if (!(e instanceof O))
|
|
386
|
+
throw new TypeError("a Range is required");
|
|
387
|
+
return this.set.some(function(t) {
|
|
388
|
+
return Z(t, r) && e.set.some(function(i) {
|
|
389
|
+
return Z(i, r) && t.every(function(a) {
|
|
390
|
+
return i.every(function(E) {
|
|
391
|
+
return a.intersects(E, r);
|
|
392
|
+
});
|
|
393
|
+
});
|
|
394
|
+
});
|
|
395
|
+
});
|
|
396
|
+
};
|
|
397
|
+
function Z(e, r) {
|
|
398
|
+
for (var t = !0, i = e.slice(), a = i.pop(); t && i.length; )
|
|
399
|
+
t = i.every(function(E) {
|
|
400
|
+
return a.intersects(E, r);
|
|
401
|
+
}), a = i.pop();
|
|
402
|
+
return t;
|
|
403
|
+
}
|
|
404
|
+
l.toComparators = oe;
|
|
405
|
+
function oe(e, r) {
|
|
406
|
+
return new O(e, r).set.map(function(t) {
|
|
407
|
+
return t.map(function(i) {
|
|
408
|
+
return i.value;
|
|
409
|
+
}).join(" ").trim().split(" ");
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
function Ie(e, r) {
|
|
413
|
+
return I("comp", e, r), e = Le(e, r), I("caret", e), e = he(e, r), I("tildes", e), e = Te(e, r), I("xrange", e), e = pe(e, r), I("stars", e), e;
|
|
414
|
+
}
|
|
415
|
+
function L(e) {
|
|
416
|
+
return !e || e.toLowerCase() === "x" || e === "*";
|
|
417
|
+
}
|
|
418
|
+
function he(e, r) {
|
|
419
|
+
return e.trim().split(/\s+/).map(function(t) {
|
|
420
|
+
return Oe(t, r);
|
|
421
|
+
}).join(" ");
|
|
422
|
+
}
|
|
423
|
+
function Oe(e, r) {
|
|
424
|
+
var t = r.loose ? h[n.TILDELOOSE] : h[n.TILDE];
|
|
425
|
+
return e.replace(t, function(i, a, E, u, o) {
|
|
426
|
+
I("tilde", e, i, a, E, u, o);
|
|
427
|
+
var c;
|
|
428
|
+
return L(a) ? c = "" : L(E) ? c = ">=" + a + ".0.0 <" + (+a + 1) + ".0.0" : L(u) ? c = ">=" + a + "." + E + ".0 <" + a + "." + (+E + 1) + ".0" : o ? (I("replaceTilde pr", o), c = ">=" + a + "." + E + "." + u + "-" + o + " <" + a + "." + (+E + 1) + ".0") : c = ">=" + a + "." + E + "." + u + " <" + a + "." + (+E + 1) + ".0", I("tilde return", c), c;
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
function Le(e, r) {
|
|
432
|
+
return e.trim().split(/\s+/).map(function(t) {
|
|
433
|
+
return Ne(t, r);
|
|
434
|
+
}).join(" ");
|
|
435
|
+
}
|
|
436
|
+
function Ne(e, r) {
|
|
437
|
+
I("caret", e, r);
|
|
438
|
+
var t = r.loose ? h[n.CARETLOOSE] : h[n.CARET];
|
|
439
|
+
return e.replace(t, function(i, a, E, u, o) {
|
|
440
|
+
I("caret", e, i, a, E, u, o);
|
|
441
|
+
var c;
|
|
442
|
+
return L(a) ? c = "" : L(E) ? c = ">=" + a + ".0.0 <" + (+a + 1) + ".0.0" : L(u) ? a === "0" ? c = ">=" + a + "." + E + ".0 <" + a + "." + (+E + 1) + ".0" : c = ">=" + a + "." + E + ".0 <" + (+a + 1) + ".0.0" : o ? (I("replaceCaret pr", o), a === "0" ? E === "0" ? c = ">=" + a + "." + E + "." + u + "-" + o + " <" + a + "." + E + "." + (+u + 1) : c = ">=" + a + "." + E + "." + u + "-" + o + " <" + a + "." + (+E + 1) + ".0" : c = ">=" + a + "." + E + "." + u + "-" + o + " <" + (+a + 1) + ".0.0") : (I("no pr"), a === "0" ? E === "0" ? c = ">=" + a + "." + E + "." + u + " <" + a + "." + E + "." + (+u + 1) : c = ">=" + a + "." + E + "." + u + " <" + a + "." + (+E + 1) + ".0" : c = ">=" + a + "." + E + "." + u + " <" + (+a + 1) + ".0.0"), I("caret return", c), c;
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
function Te(e, r) {
|
|
446
|
+
return I("replaceXRanges", e, r), e.split(/\s+/).map(function(t) {
|
|
447
|
+
return Ae(t, r);
|
|
448
|
+
}).join(" ");
|
|
449
|
+
}
|
|
450
|
+
function Ae(e, r) {
|
|
451
|
+
e = e.trim();
|
|
452
|
+
var t = r.loose ? h[n.XRANGELOOSE] : h[n.XRANGE];
|
|
453
|
+
return e.replace(t, function(i, a, E, u, o, c) {
|
|
454
|
+
I("xRange", e, i, a, E, u, o, c);
|
|
455
|
+
var p = L(E), v = p || L(u), A = v || L(o), N = A;
|
|
456
|
+
return a === "=" && N && (a = ""), c = r.includePrerelease ? "-0" : "", p ? a === ">" || a === "<" ? i = "<0.0.0-0" : i = "*" : a && N ? (v && (u = 0), o = 0, a === ">" ? (a = ">=", v ? (E = +E + 1, u = 0, o = 0) : (u = +u + 1, o = 0)) : a === "<=" && (a = "<", v ? E = +E + 1 : u = +u + 1), i = a + E + "." + u + "." + o + c) : v ? i = ">=" + E + ".0.0" + c + " <" + (+E + 1) + ".0.0" + c : A && (i = ">=" + E + "." + u + ".0" + c + " <" + E + "." + (+u + 1) + ".0" + c), I("xRange return", i), i;
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
function pe(e, r) {
|
|
460
|
+
return I("replaceStars", e, r), e.trim().replace(h[n.STAR], "");
|
|
461
|
+
}
|
|
462
|
+
function ve(e, r, t, i, a, E, u, o, c, p, v, A, N) {
|
|
463
|
+
return L(t) ? r = "" : L(i) ? r = ">=" + t + ".0.0" : L(a) ? r = ">=" + t + "." + i + ".0" : r = ">=" + r, L(c) ? o = "" : L(p) ? o = "<" + (+c + 1) + ".0.0" : L(v) ? o = "<" + c + "." + (+p + 1) + ".0" : A ? o = "<=" + c + "." + p + "." + v + "-" + A : o = "<=" + o, (r + " " + o).trim();
|
|
464
|
+
}
|
|
465
|
+
O.prototype.test = function(e) {
|
|
466
|
+
if (!e)
|
|
467
|
+
return !1;
|
|
468
|
+
if (typeof e == "string")
|
|
469
|
+
try {
|
|
470
|
+
e = new f(e, this.options);
|
|
471
|
+
} catch {
|
|
472
|
+
return !1;
|
|
473
|
+
}
|
|
474
|
+
for (var r = 0; r < this.set.length; r++)
|
|
475
|
+
if (Se(this.set[r], e, this.options))
|
|
476
|
+
return !0;
|
|
477
|
+
return !1;
|
|
478
|
+
};
|
|
479
|
+
function Se(e, r, t) {
|
|
480
|
+
for (var i = 0; i < e.length; i++)
|
|
481
|
+
if (!e[i].test(r))
|
|
482
|
+
return !1;
|
|
483
|
+
if (r.prerelease.length && !t.includePrerelease) {
|
|
484
|
+
for (i = 0; i < e.length; i++)
|
|
485
|
+
if (I(e[i].semver), e[i].semver !== P && e[i].semver.prerelease.length > 0) {
|
|
486
|
+
var a = e[i].semver;
|
|
487
|
+
if (a.major === r.major && a.minor === r.minor && a.patch === r.patch)
|
|
488
|
+
return !0;
|
|
489
|
+
}
|
|
490
|
+
return !1;
|
|
491
|
+
}
|
|
492
|
+
return !0;
|
|
493
|
+
}
|
|
494
|
+
l.satisfies = U;
|
|
495
|
+
function U(e, r, t) {
|
|
496
|
+
try {
|
|
497
|
+
r = new O(r, t);
|
|
498
|
+
} catch {
|
|
499
|
+
return !1;
|
|
500
|
+
}
|
|
501
|
+
return r.test(e);
|
|
502
|
+
}
|
|
503
|
+
l.maxSatisfying = me;
|
|
504
|
+
function me(e, r, t) {
|
|
505
|
+
var i = null, a = null;
|
|
506
|
+
try {
|
|
507
|
+
var E = new O(r, t);
|
|
508
|
+
} catch {
|
|
509
|
+
return null;
|
|
510
|
+
}
|
|
511
|
+
return e.forEach(function(u) {
|
|
512
|
+
E.test(u) && (!i || a.compare(u) === -1) && (i = u, a = new f(i, t));
|
|
513
|
+
}), i;
|
|
514
|
+
}
|
|
515
|
+
l.minSatisfying = Ce;
|
|
516
|
+
function Ce(e, r, t) {
|
|
517
|
+
var i = null, a = null;
|
|
518
|
+
try {
|
|
519
|
+
var E = new O(r, t);
|
|
520
|
+
} catch {
|
|
521
|
+
return null;
|
|
522
|
+
}
|
|
523
|
+
return e.forEach(function(u) {
|
|
524
|
+
E.test(u) && (!i || a.compare(u) === 1) && (i = u, a = new f(i, t));
|
|
525
|
+
}), i;
|
|
526
|
+
}
|
|
527
|
+
l.minVersion = we;
|
|
528
|
+
function we(e, r) {
|
|
529
|
+
e = new O(e, r);
|
|
530
|
+
var t = new f("0.0.0");
|
|
531
|
+
if (e.test(t) || (t = new f("0.0.0-0"), e.test(t)))
|
|
532
|
+
return t;
|
|
533
|
+
t = null;
|
|
534
|
+
for (var i = 0; i < e.set.length; ++i) {
|
|
535
|
+
var a = e.set[i];
|
|
536
|
+
a.forEach(function(E) {
|
|
537
|
+
var u = new f(E.semver.version);
|
|
538
|
+
switch (E.operator) {
|
|
539
|
+
case ">":
|
|
540
|
+
u.prerelease.length === 0 ? u.patch++ : u.prerelease.push(0), u.raw = u.format();
|
|
541
|
+
case "":
|
|
542
|
+
case ">=":
|
|
543
|
+
(!t || F(t, u)) && (t = u);
|
|
544
|
+
break;
|
|
545
|
+
case "<":
|
|
546
|
+
case "<=":
|
|
547
|
+
break;
|
|
548
|
+
default:
|
|
549
|
+
throw new Error("Unexpected operation: " + E.operator);
|
|
550
|
+
}
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
return t && e.test(t) ? t : null;
|
|
554
|
+
}
|
|
555
|
+
l.validRange = de;
|
|
556
|
+
function de(e, r) {
|
|
557
|
+
try {
|
|
558
|
+
return new O(e, r).range || "*";
|
|
559
|
+
} catch {
|
|
560
|
+
return null;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
l.ltr = De;
|
|
564
|
+
function De(e, r, t) {
|
|
565
|
+
return b(e, r, "<", t);
|
|
566
|
+
}
|
|
567
|
+
l.gtr = Pe;
|
|
568
|
+
function Pe(e, r, t) {
|
|
569
|
+
return b(e, r, ">", t);
|
|
570
|
+
}
|
|
571
|
+
l.outside = b;
|
|
572
|
+
function b(e, r, t, i) {
|
|
573
|
+
e = new f(e, i), r = new O(r, i);
|
|
574
|
+
var a, E, u, o, c;
|
|
575
|
+
switch (t) {
|
|
576
|
+
case ">":
|
|
577
|
+
a = F, E = H, u = X, o = ">", c = ">=";
|
|
578
|
+
break;
|
|
579
|
+
case "<":
|
|
580
|
+
a = X, E = _, u = F, o = "<", c = "<=";
|
|
581
|
+
break;
|
|
582
|
+
default:
|
|
583
|
+
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
584
|
+
}
|
|
585
|
+
if (U(e, r, i))
|
|
586
|
+
return !1;
|
|
587
|
+
for (var p = 0; p < r.set.length; ++p) {
|
|
588
|
+
var v = r.set[p], A = null, N = null;
|
|
589
|
+
if (v.forEach(function(C) {
|
|
590
|
+
C.semver === P && (C = new T(">=0.0.0")), A = A || C, N = N || C, a(C.semver, A.semver, i) ? A = C : u(C.semver, N.semver, i) && (N = C);
|
|
591
|
+
}), A.operator === o || A.operator === c || (!N.operator || N.operator === o) && E(e, N.semver))
|
|
592
|
+
return !1;
|
|
593
|
+
if (N.operator === c && u(e, N.semver))
|
|
594
|
+
return !1;
|
|
595
|
+
}
|
|
596
|
+
return !0;
|
|
597
|
+
}
|
|
598
|
+
l.prerelease = ye;
|
|
599
|
+
function ye(e, r) {
|
|
600
|
+
var t = w(e, r);
|
|
601
|
+
return t && t.prerelease.length ? t.prerelease : null;
|
|
602
|
+
}
|
|
603
|
+
l.intersects = ge;
|
|
604
|
+
function ge(e, r, t) {
|
|
605
|
+
return e = new O(e, t), r = new O(r, t), e.intersects(r);
|
|
606
|
+
}
|
|
607
|
+
l.coerce = Fe;
|
|
608
|
+
function Fe(e, r) {
|
|
609
|
+
if (e instanceof f)
|
|
610
|
+
return e;
|
|
611
|
+
if (typeof e == "number" && (e = String(e)), typeof e != "string")
|
|
612
|
+
return null;
|
|
613
|
+
r = r || {};
|
|
614
|
+
var t = null;
|
|
615
|
+
if (!r.rtl)
|
|
616
|
+
t = e.match(h[n.COERCE]);
|
|
617
|
+
else {
|
|
618
|
+
for (var i; (i = h[n.COERCERTL].exec(e)) && (!t || t.index + t[0].length !== e.length); )
|
|
619
|
+
(!t || i.index + i[0].length !== t.index + t[0].length) && (t = i), h[n.COERCERTL].lastIndex = i.index + i[1].length + i[2].length;
|
|
620
|
+
h[n.COERCERTL].lastIndex = -1;
|
|
621
|
+
}
|
|
622
|
+
return t === null ? null : w(t[2] + "." + (t[3] || "0") + "." + (t[4] || "0"), r);
|
|
623
|
+
}
|
|
624
|
+
})(k, k.exports);
|
|
625
|
+
var Xe = k.exports;
|
|
626
|
+
const Me = /* @__PURE__ */ Ge(Xe);
|
|
627
|
+
export {
|
|
628
|
+
Me as default
|
|
629
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./src/features/simulation/activity/normalize.cjs"),e=require("./src/features/simulation/activity/schema.cjs"),a=require("./src/features/simulation/activity/utils/createNativeActivity.cjs"),c=require("./src/features/simulation/activity/utils/getAnyActivityTitle.cjs"),m=require("./src/features/simulation/activity/utils/getOverallLastModified.cjs"),n=require("./src/features/simulation/activity/utils/hasDelegationActivity.cjs"),v=require("./src/features/simulation/activity/utils/isMulticallWithDeploymentActivity.cjs"),o=require("./src/features/simulation/activity/utils/isRejectOnChainActivity.cjs"),y=require("./src/features/simulation/activity/utils/isUpgradeActivity.cjs"),S=require("./src/features/simulation/activity/utils/parseAccountActivities.cjs"),A=require("./src/features/simulation/activity/utils/parseFinanceActivities.cjs"),r=require("./src/features/simulation/fees/schema.cjs"),h=require("./src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.cjs"),l=require("./src/features/simulation/transactionReview/getMessageFromSimulationError.cjs"),i=require("./src/features/simulation/transactionReview/schema.cjs"),s=require("./src/features/simulation/warning/schema.cjs"),u=require("./src/features/simulation/warning/helper.cjs");exports.normalizeActivitySummary=t.normalizeActivitySummary;exports.normalizeActivitySummaryCollection=t.normalizeActivitySummaryCollection;exports.NativeActivityStatusCancelled=e.NativeActivityStatusCancelled;exports.NativeActivityStatusQueued=e.NativeActivityStatusQueued;exports.NativeActivityStatusRejected=e.NativeActivityStatusRejected;exports.NativeActivityTypeNative=e.NativeActivityTypeNative;exports.activitiesSchema=e.activitiesSchema;exports.activityDappSchema=e.activityDappSchema;exports.activityDetailsSchema=e.activityDetailsSchema;exports.activityResponseSchema=e.activityResponseSchema;exports.activitySchema=e.activitySchema;exports.activitySummarySchema=e.activitySummarySchema;exports.activityTransferSchema=e.activityTransferSchema;exports.feeSchema=e.feeSchema;exports.isActivityDetailsAction=e.isActivityDetailsAction;exports.isActivitySummary=e.isActivitySummary;exports.isNftActivitySummary=e.isNftActivitySummary;exports.isTokenActivitySummary=e.isTokenActivitySummary;exports.nativeActivityMetaSchema=e.nativeActivityMetaSchema;exports.nativeActivitySchema=e.nativeActivitySchema;exports.createNativeActivity=a.createNativeActivity;exports.normalizeActions=a.normalizeActions;exports.getAnyActivityShortTitle=c.getAnyActivityShortTitle;exports.getAnyActivityTitle=c.getAnyActivityTitle;exports.getOverallLastModified=m.getOverallLastModified;exports.hasDelegationActivity=n.hasDelegationActivity;exports.isMulticallWithDeploymentActivity=v.isMulticallWithDeploymentActivity;exports.isRejectOnChainActivity=o.isRejectOnChainActivity;exports.isUpgradeActivity=y.isUpgradeActivity;exports.parseAccountActivities=S.parseAccountActivities;exports.parseFinanceActivities=A.parseFinanceActivities;exports.estimatedFeeSchema=r.estimatedFeeSchema;exports.estimatedFeesSchema=r.estimatedFeesSchema;exports.getErrorMessageAndLabelFromSimulation=h.getErrorMessageAndLabelFromSimulation;exports.getMessageFromSimulationError=l.getMessageFromSimulationError;exports.actionSchema=i.actionSchema;exports.assessmentSchema=i.assessmentSchema;exports.enrichedSimulateAndReviewSchema=i.enrichedSimulateAndReviewSchema;exports.feeEstimationSchema=i.feeEstimationSchema;exports.isNotTransactionSimulationError=i.isNotTransactionSimulationError;exports.isTransactionSimulationError=i.isTransactionSimulationError;exports.propertySchema=i.propertySchema;exports.reviewSchema=i.reviewSchema;exports.simulateAndReviewSchema=i.simulateAndReviewSchema;exports.targetedDappSchema=i.targetedDappSchema;exports.warningDetailsSchema=i.warningDetailsSchema;exports.warningSchema=i.warningSchema;exports.reasonsSchema=s.reasonsSchema;exports.severitySchema=s.severitySchema;exports.getHighestSeverity=u.getHighestSeverity;
|
package/dist/simulation.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './features/simulation/index'
|
|
1
|
+
export * from './src/features/simulation/index'
|
|
2
2
|
export {}
|