@otim/utils 0.0.2-development.0
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/LICENSE +201 -0
- package/dist/api/api.d.mts +18 -0
- package/dist/api/api.d.ts +18 -0
- package/dist/api/api.d.ts.map +1 -0
- package/dist/api/core/error.d.mts +74 -0
- package/dist/api/core/error.d.ts +74 -0
- package/dist/api/core/error.d.ts.map +1 -0
- package/dist/api/core/index.d.mts +4 -0
- package/dist/api/core/index.d.ts +4 -0
- package/dist/api/core/index.d.ts.map +1 -0
- package/dist/api/core/instance.d.mts +13 -0
- package/dist/api/core/instance.d.ts +13 -0
- package/dist/api/core/instance.d.ts.map +1 -0
- package/dist/api/core/service.d.mts +51 -0
- package/dist/api/core/service.d.ts +51 -0
- package/dist/api/core/service.d.ts.map +1 -0
- package/dist/api/index.d.mts +7 -0
- package/dist/api/index.d.ts +7 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +2061 -0
- package/dist/api/index.js.map +7 -0
- package/dist/api/index.mjs +2030 -0
- package/dist/api/index.mjs.map +7 -0
- package/dist/api/schemas/account.d.mts +44 -0
- package/dist/api/schemas/account.d.ts +44 -0
- package/dist/api/schemas/account.d.ts.map +1 -0
- package/dist/api/schemas/activity.d.mts +277 -0
- package/dist/api/schemas/activity.d.ts +277 -0
- package/dist/api/schemas/activity.d.ts.map +1 -0
- package/dist/api/schemas/auth.d.mts +127 -0
- package/dist/api/schemas/auth.d.ts +127 -0
- package/dist/api/schemas/auth.d.ts.map +1 -0
- package/dist/api/schemas/chain.d.mts +15 -0
- package/dist/api/schemas/chain.d.ts +15 -0
- package/dist/api/schemas/chain.d.ts.map +1 -0
- package/dist/api/schemas/config.d.mts +33 -0
- package/dist/api/schemas/config.d.ts +33 -0
- package/dist/api/schemas/config.d.ts.map +1 -0
- package/dist/api/schemas/contacts.d.mts +27 -0
- package/dist/api/schemas/contacts.d.ts +27 -0
- package/dist/api/schemas/contacts.d.ts.map +1 -0
- package/dist/api/schemas/index.d.mts +12 -0
- package/dist/api/schemas/index.d.ts +12 -0
- package/dist/api/schemas/index.d.ts.map +1 -0
- package/dist/api/schemas/instruction.d.mts +446 -0
- package/dist/api/schemas/instruction.d.ts +446 -0
- package/dist/api/schemas/instruction.d.ts.map +1 -0
- package/dist/api/schemas/integration.d.mts +166 -0
- package/dist/api/schemas/integration.d.ts +166 -0
- package/dist/api/schemas/integration.d.ts.map +1 -0
- package/dist/api/schemas/operating-account.d.mts +11 -0
- package/dist/api/schemas/operating-account.d.ts +11 -0
- package/dist/api/schemas/operating-account.d.ts.map +1 -0
- package/dist/api/schemas/payments.d.mts +196 -0
- package/dist/api/schemas/payments.d.ts +196 -0
- package/dist/api/schemas/payments.d.ts.map +1 -0
- package/dist/api/schemas/transaction.d.mts +37 -0
- package/dist/api/schemas/transaction.d.ts +37 -0
- package/dist/api/schemas/transaction.d.ts.map +1 -0
- package/dist/api/services/account.d.mts +8 -0
- package/dist/api/services/account.d.ts +8 -0
- package/dist/api/services/account.d.ts.map +1 -0
- package/dist/api/services/activity.d.mts +7 -0
- package/dist/api/services/activity.d.ts +7 -0
- package/dist/api/services/activity.d.ts.map +1 -0
- package/dist/api/services/auth.d.mts +12 -0
- package/dist/api/services/auth.d.ts +12 -0
- package/dist/api/services/auth.d.ts.map +1 -0
- package/dist/api/services/base.d.mts +10 -0
- package/dist/api/services/base.d.ts +10 -0
- package/dist/api/services/base.d.ts.map +1 -0
- package/dist/api/services/config.d.mts +10 -0
- package/dist/api/services/config.d.ts +10 -0
- package/dist/api/services/config.d.ts.map +1 -0
- package/dist/api/services/contacts.d.mts +8 -0
- package/dist/api/services/contacts.d.ts +8 -0
- package/dist/api/services/contacts.d.ts.map +1 -0
- package/dist/api/services/developer.d.mts +6 -0
- package/dist/api/services/developer.d.ts +6 -0
- package/dist/api/services/developer.d.ts.map +1 -0
- package/dist/api/services/index.d.mts +13 -0
- package/dist/api/services/index.d.ts +13 -0
- package/dist/api/services/index.d.ts.map +1 -0
- package/dist/api/services/instruction.d.mts +12 -0
- package/dist/api/services/instruction.d.ts +12 -0
- package/dist/api/services/instruction.d.ts.map +1 -0
- package/dist/api/services/integration.d.mts +8 -0
- package/dist/api/services/integration.d.ts +8 -0
- package/dist/api/services/integration.d.ts.map +1 -0
- package/dist/api/services/operating-account.d.mts +8 -0
- package/dist/api/services/operating-account.d.ts +8 -0
- package/dist/api/services/operating-account.d.ts.map +1 -0
- package/dist/api/services/payments.d.mts +13 -0
- package/dist/api/services/payments.d.ts +13 -0
- package/dist/api/services/payments.d.ts.map +1 -0
- package/dist/api/services/transaction.d.mts +8 -0
- package/dist/api/services/transaction.d.ts +8 -0
- package/dist/api/services/transaction.d.ts.map +1 -0
- package/dist/api/services/uniswap-token-list-service.d.mts +66 -0
- package/dist/api/services/uniswap-token-list-service.d.ts +66 -0
- package/dist/api/services/uniswap-token-list-service.d.ts.map +1 -0
- package/dist/api/utils/index.d.mts +2 -0
- package/dist/api/utils/index.d.ts +2 -0
- package/dist/api/utils/index.d.ts.map +1 -0
- package/dist/api/utils/pagination.d.mts +32 -0
- package/dist/api/utils/pagination.d.ts +32 -0
- package/dist/api/utils/pagination.d.ts.map +1 -0
- package/dist/chains/config/all-chains.d.mts +4243 -0
- package/dist/chains/config/all-chains.d.ts +4243 -0
- package/dist/chains/config/all-chains.d.ts.map +1 -0
- package/dist/chains/config/custom-chains.d.mts +49 -0
- package/dist/chains/config/custom-chains.d.ts +49 -0
- package/dist/chains/config/custom-chains.d.ts.map +1 -0
- package/dist/chains/config/mainnet-chains.d.mts +1063 -0
- package/dist/chains/config/mainnet-chains.d.ts +1063 -0
- package/dist/chains/config/mainnet-chains.d.ts.map +1 -0
- package/dist/chains/config/supported-chains.d.mts +2172 -0
- package/dist/chains/config/supported-chains.d.ts +2172 -0
- package/dist/chains/config/supported-chains.d.ts.map +1 -0
- package/dist/chains/config/testnet-chains.d.mts +1110 -0
- package/dist/chains/config/testnet-chains.d.ts +1110 -0
- package/dist/chains/config/testnet-chains.d.ts.map +1 -0
- package/dist/chains/index.d.mts +16 -0
- package/dist/chains/index.d.ts +16 -0
- package/dist/chains/index.d.ts.map +1 -0
- package/dist/chains/index.js +490 -0
- package/dist/chains/index.js.map +7 -0
- package/dist/chains/index.mjs +505 -0
- package/dist/chains/index.mjs.map +7 -0
- package/dist/chains/lambda/chain-mapping.d.mts +55 -0
- package/dist/chains/lambda/chain-mapping.d.ts +55 -0
- package/dist/chains/lambda/chain-mapping.d.ts.map +1 -0
- package/dist/chains/lambda/index.d.mts +2 -0
- package/dist/chains/lambda/index.d.ts +2 -0
- package/dist/chains/lambda/index.d.ts.map +1 -0
- package/dist/chains/tokens/chain-tokens.d.mts +6 -0
- package/dist/chains/tokens/chain-tokens.d.ts +6 -0
- package/dist/chains/tokens/chain-tokens.d.ts.map +1 -0
- package/dist/chains/tokens/token-addresses.d.mts +8 -0
- package/dist/chains/tokens/token-addresses.d.ts +8 -0
- package/dist/chains/tokens/token-addresses.d.ts.map +1 -0
- package/dist/chains/tokens/token-metadata.d.mts +5 -0
- package/dist/chains/tokens/token-metadata.d.ts +5 -0
- package/dist/chains/tokens/token-metadata.d.ts.map +1 -0
- package/dist/chains/types.d.mts +23 -0
- package/dist/chains/types.d.ts +23 -0
- package/dist/chains/types.d.ts.map +1 -0
- package/dist/chains/utils/filter-tokens.d.mts +3 -0
- package/dist/chains/utils/filter-tokens.d.ts +3 -0
- package/dist/chains/utils/filter-tokens.d.ts.map +1 -0
- package/dist/chains/utils/stablecoin.d.mts +7 -0
- package/dist/chains/utils/stablecoin.d.ts +7 -0
- package/dist/chains/utils/stablecoin.d.ts.map +1 -0
- package/dist/chains/utils/token-maps.d.mts +10 -0
- package/dist/chains/utils/token-maps.d.ts +10 -0
- package/dist/chains/utils/token-maps.d.ts.map +1 -0
- package/dist/constants.d.mts +31 -0
- package/dist/constants.d.ts +31 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +47 -0
- package/dist/constants.js.map +7 -0
- package/dist/constants.mjs +26 -0
- package/dist/constants.mjs.map +7 -0
- package/dist/env.d.mts +17 -0
- package/dist/env.d.ts +17 -0
- package/dist/env.d.ts.map +1 -0
- package/dist/formatters/index.d.mts +2 -0
- package/dist/formatters/index.d.ts +2 -0
- package/dist/formatters/index.d.ts.map +1 -0
- package/dist/formatters/index.js +19 -0
- package/dist/formatters/index.js.map +7 -0
- package/dist/formatters/index.mjs +1 -0
- package/dist/formatters/index.mjs.map +7 -0
- package/dist/helpers/address.d.mts +7 -0
- package/dist/helpers/address.d.ts +7 -0
- package/dist/helpers/address.d.ts.map +1 -0
- package/dist/helpers/blockchain.d.mts +41 -0
- package/dist/helpers/blockchain.d.ts +41 -0
- package/dist/helpers/blockchain.d.ts.map +1 -0
- package/dist/helpers/date.d.mts +70 -0
- package/dist/helpers/date.d.ts +70 -0
- package/dist/helpers/date.d.ts.map +1 -0
- package/dist/helpers/datetime.d.mts +57 -0
- package/dist/helpers/datetime.d.ts +57 -0
- package/dist/helpers/datetime.d.ts.map +1 -0
- package/dist/helpers/domain.d.mts +2 -0
- package/dist/helpers/domain.d.ts +2 -0
- package/dist/helpers/domain.d.ts.map +1 -0
- package/dist/helpers/index.d.mts +19 -0
- package/dist/helpers/index.d.ts +19 -0
- package/dist/helpers/index.d.ts.map +1 -0
- package/dist/helpers/index.js +1322 -0
- package/dist/helpers/index.js.map +7 -0
- package/dist/helpers/index.mjs +1294 -0
- package/dist/helpers/index.mjs.map +7 -0
- package/dist/helpers/intl.d.mts +20 -0
- package/dist/helpers/intl.d.ts +20 -0
- package/dist/helpers/intl.d.ts.map +1 -0
- package/dist/helpers/logger.d.mts +26 -0
- package/dist/helpers/logger.d.ts +26 -0
- package/dist/helpers/logger.d.ts.map +1 -0
- package/dist/helpers/mask-options.d.mts +10 -0
- package/dist/helpers/mask-options.d.ts +10 -0
- package/dist/helpers/mask-options.d.ts.map +1 -0
- package/dist/helpers/num-formatter.d.mts +3 -0
- package/dist/helpers/num-formatter.d.ts +3 -0
- package/dist/helpers/num-formatter.d.ts.map +1 -0
- package/dist/helpers/polling.d.mts +39 -0
- package/dist/helpers/polling.d.ts +39 -0
- package/dist/helpers/polling.d.ts.map +1 -0
- package/dist/helpers/random.d.mts +10 -0
- package/dist/helpers/random.d.ts +10 -0
- package/dist/helpers/random.d.ts.map +1 -0
- package/dist/helpers/sdk-loader.d.mts +25 -0
- package/dist/helpers/sdk-loader.d.ts +25 -0
- package/dist/helpers/sdk-loader.d.ts.map +1 -0
- package/dist/helpers/signatures.d.mts +17 -0
- package/dist/helpers/signatures.d.ts +17 -0
- package/dist/helpers/signatures.d.ts.map +1 -0
- package/dist/helpers/string.d.mts +17 -0
- package/dist/helpers/string.d.ts +17 -0
- package/dist/helpers/string.d.ts.map +1 -0
- package/dist/helpers/types.d.mts +39 -0
- package/dist/helpers/types.d.ts +39 -0
- package/dist/helpers/types.d.ts.map +1 -0
- package/dist/helpers/url.d.mts +11 -0
- package/dist/helpers/url.d.ts +11 -0
- package/dist/helpers/url.d.ts.map +1 -0
- package/dist/helpers/window.d.mts +37 -0
- package/dist/helpers/window.d.ts +37 -0
- package/dist/helpers/window.d.ts.map +1 -0
- package/dist/helpers/zod.d.mts +30 -0
- package/dist/helpers/zod.d.ts +30 -0
- package/dist/helpers/zod.d.ts.map +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +7 -0
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +7 -0
- package/dist/instructions/actions/index.d.mts +5 -0
- package/dist/instructions/actions/index.d.ts +5 -0
- package/dist/instructions/actions/index.d.ts.map +1 -0
- package/dist/instructions/actions/refuel/index.d.mts +15 -0
- package/dist/instructions/actions/refuel/index.d.ts +15 -0
- package/dist/instructions/actions/refuel/index.d.ts.map +1 -0
- package/dist/instructions/actions/swap/index.d.mts +19 -0
- package/dist/instructions/actions/swap/index.d.ts +19 -0
- package/dist/instructions/actions/swap/index.d.ts.map +1 -0
- package/dist/instructions/actions/sweep/index.d.mts +16 -0
- package/dist/instructions/actions/sweep/index.d.ts +16 -0
- package/dist/instructions/actions/sweep/index.d.ts.map +1 -0
- package/dist/instructions/actions/transfer/index.d.mts +13 -0
- package/dist/instructions/actions/transfer/index.d.ts +13 -0
- package/dist/instructions/actions/transfer/index.d.ts.map +1 -0
- package/dist/instructions/activate.d.mts +84 -0
- package/dist/instructions/activate.d.ts +84 -0
- package/dist/instructions/activate.d.ts.map +1 -0
- package/dist/instructions/build.d.mts +146 -0
- package/dist/instructions/build.d.ts +146 -0
- package/dist/instructions/build.d.ts.map +1 -0
- package/dist/instructions/constants.d.mts +9 -0
- package/dist/instructions/constants.d.ts +9 -0
- package/dist/instructions/constants.d.ts.map +1 -0
- package/dist/instructions/contracts/artifacts/abi/build-instruction-action-arguments-abi.d.mts +609 -0
- package/dist/instructions/contracts/artifacts/abi/build-instruction-action-arguments-abi.d.ts +609 -0
- package/dist/instructions/contracts/artifacts/abi/build-instruction-action-arguments-abi.d.ts.map +1 -0
- package/dist/instructions/index.d.mts +6 -0
- package/dist/instructions/index.d.ts +6 -0
- package/dist/instructions/index.d.ts.map +1 -0
- package/dist/instructions/index.js +1152 -0
- package/dist/instructions/index.js.map +7 -0
- package/dist/instructions/index.mjs +1119 -0
- package/dist/instructions/index.mjs.map +7 -0
- package/dist/instructions/types.d.mts +289 -0
- package/dist/instructions/types.d.ts +289 -0
- package/dist/instructions/types.d.ts.map +1 -0
- package/dist/payments/action-names.d.mts +16 -0
- package/dist/payments/action-names.d.ts +16 -0
- package/dist/payments/action-names.d.ts.map +1 -0
- package/dist/payments/actions/index.d.mts +5 -0
- package/dist/payments/actions/index.d.ts +5 -0
- package/dist/payments/actions/index.d.ts.map +1 -0
- package/dist/payments/actions/sweep-cctp.d.mts +15 -0
- package/dist/payments/actions/sweep-cctp.d.ts +15 -0
- package/dist/payments/actions/sweep-cctp.d.ts.map +1 -0
- package/dist/payments/actions/sweep-erc20.d.mts +12 -0
- package/dist/payments/actions/sweep-erc20.d.ts +12 -0
- package/dist/payments/actions/sweep-erc20.d.ts.map +1 -0
- package/dist/payments/actions/sweep-uniswap-v3.d.mts +17 -0
- package/dist/payments/actions/sweep-uniswap-v3.d.ts +17 -0
- package/dist/payments/actions/sweep-uniswap-v3.d.ts.map +1 -0
- package/dist/payments/actions/sweep.d.mts +12 -0
- package/dist/payments/actions/sweep.d.ts +12 -0
- package/dist/payments/actions/sweep.d.ts.map +1 -0
- package/dist/payments/build.d.mts +27 -0
- package/dist/payments/build.d.ts +27 -0
- package/dist/payments/build.d.ts.map +1 -0
- package/dist/payments/chain-token-config-builder.d.mts +10 -0
- package/dist/payments/chain-token-config-builder.d.ts +10 -0
- package/dist/payments/chain-token-config-builder.d.ts.map +1 -0
- package/dist/payments/comprehensive-payment-request.d.mts +25 -0
- package/dist/payments/comprehensive-payment-request.d.ts +25 -0
- package/dist/payments/comprehensive-payment-request.d.ts.map +1 -0
- package/dist/payments/config/cctp.d.mts +14 -0
- package/dist/payments/config/cctp.d.ts +14 -0
- package/dist/payments/config/cctp.d.ts.map +1 -0
- package/dist/payments/config/index.d.mts +3 -0
- package/dist/payments/config/index.d.ts +3 -0
- package/dist/payments/config/index.d.ts.map +1 -0
- package/dist/payments/config/tokens.d.mts +14 -0
- package/dist/payments/config/tokens.d.ts +14 -0
- package/dist/payments/config/tokens.d.ts.map +1 -0
- package/dist/payments/index.d.mts +16 -0
- package/dist/payments/index.d.ts +16 -0
- package/dist/payments/index.d.ts.map +1 -0
- package/dist/payments/index.js +1303 -0
- package/dist/payments/index.js.map +7 -0
- package/dist/payments/index.mjs +1281 -0
- package/dist/payments/index.mjs.map +7 -0
- package/dist/payments/instruction-registry.d.mts +19 -0
- package/dist/payments/instruction-registry.d.ts +19 -0
- package/dist/payments/instruction-registry.d.ts.map +1 -0
- package/dist/payments/payment-metadata-builder.d.mts +56 -0
- package/dist/payments/payment-metadata-builder.d.ts +56 -0
- package/dist/payments/payment-metadata-builder.d.ts.map +1 -0
- package/dist/payments/payment-metadata.d.mts +15 -0
- package/dist/payments/payment-metadata.d.ts +15 -0
- package/dist/payments/payment-metadata.d.ts.map +1 -0
- package/dist/payments/payment-request-token-resolver.d.mts +25 -0
- package/dist/payments/payment-request-token-resolver.d.ts +25 -0
- package/dist/payments/payment-request-token-resolver.d.ts.map +1 -0
- package/dist/payments/types.d.mts +40 -0
- package/dist/payments/types.d.ts +40 -0
- package/dist/payments/types.d.ts.map +1 -0
- package/dist/payments/validation.d.mts +19 -0
- package/dist/payments/validation.d.ts +19 -0
- package/dist/payments/validation.d.ts.map +1 -0
- package/dist/schemas/account.d.mts +9 -0
- package/dist/schemas/account.d.ts +9 -0
- package/dist/schemas/account.d.ts.map +1 -0
- package/dist/schemas/brand.d.mts +7 -0
- package/dist/schemas/brand.d.ts +7 -0
- package/dist/schemas/brand.d.ts.map +1 -0
- package/dist/schemas/contact.d.mts +18 -0
- package/dist/schemas/contact.d.ts +18 -0
- package/dist/schemas/contact.d.ts.map +1 -0
- package/dist/schemas/index.d.mts +10 -0
- package/dist/schemas/index.d.ts +10 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +433 -0
- package/dist/schemas/index.js.map +7 -0
- package/dist/schemas/index.mjs +410 -0
- package/dist/schemas/index.mjs.map +7 -0
- package/dist/schemas/instruction.d.mts +248 -0
- package/dist/schemas/instruction.d.ts +248 -0
- package/dist/schemas/instruction.d.ts.map +1 -0
- package/dist/schemas/misc.d.mts +36 -0
- package/dist/schemas/misc.d.ts +36 -0
- package/dist/schemas/misc.d.ts.map +1 -0
- package/dist/schemas/payment.d.mts +64 -0
- package/dist/schemas/payment.d.ts +64 -0
- package/dist/schemas/payment.d.ts.map +1 -0
- package/dist/schemas/token.d.mts +17 -0
- package/dist/schemas/token.d.ts +17 -0
- package/dist/schemas/token.d.ts.map +1 -0
- package/dist/schemas/transaction.d.mts +65 -0
- package/dist/schemas/transaction.d.ts +65 -0
- package/dist/schemas/transaction.d.ts.map +1 -0
- package/dist/schemas/user.d.mts +24 -0
- package/dist/schemas/user.d.ts +24 -0
- package/dist/schemas/user.d.ts.map +1 -0
- package/dist/server/client.d.mts +3 -0
- package/dist/server/client.d.ts +3 -0
- package/dist/server/client.d.ts.map +1 -0
- package/dist/server/index.d.mts +3 -0
- package/dist/server/index.d.ts +3 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +420 -0
- package/dist/server/index.js.map +7 -0
- package/dist/server/index.mjs +389 -0
- package/dist/server/index.mjs.map +7 -0
- package/dist/server/routes/account.d.mts +4 -0
- package/dist/server/routes/account.d.ts +4 -0
- package/dist/server/routes/account.d.ts.map +1 -0
- package/dist/server/routes/auth.d.mts +28 -0
- package/dist/server/routes/auth.d.ts +28 -0
- package/dist/server/routes/auth.d.ts.map +1 -0
- package/dist/server/routes/bridge.d.mts +192 -0
- package/dist/server/routes/bridge.d.ts +192 -0
- package/dist/server/routes/bridge.d.ts.map +1 -0
- package/dist/server/routes/config.d.mts +3 -0
- package/dist/server/routes/config.d.ts +3 -0
- package/dist/server/routes/config.d.ts.map +1 -0
- package/dist/server/routes/index.d.mts +8 -0
- package/dist/server/routes/index.d.ts +8 -0
- package/dist/server/routes/index.d.ts.map +1 -0
- package/dist/server/routes/instruction.d.mts +4 -0
- package/dist/server/routes/instruction.d.ts +4 -0
- package/dist/server/routes/instruction.d.ts.map +1 -0
- package/dist/server/routes/integration.d.mts +4 -0
- package/dist/server/routes/integration.d.ts +4 -0
- package/dist/server/routes/integration.d.ts.map +1 -0
- package/dist/server/routes/payments.d.mts +4 -0
- package/dist/server/routes/payments.d.ts +4 -0
- package/dist/server/routes/payments.d.ts.map +1 -0
- package/dist/server/routes/verify.d.mts +3 -0
- package/dist/server/routes/verify.d.ts +3 -0
- package/dist/server/routes/verify.d.ts.map +1 -0
- package/dist/wallet/wagmi/config.d.mts +18 -0
- package/dist/wallet/wagmi/config.d.ts +18 -0
- package/dist/wallet/wagmi/config.d.ts.map +1 -0
- package/dist/wallet/wagmi/index.d.mts +2 -0
- package/dist/wallet/wagmi/index.d.ts +2 -0
- package/dist/wallet/wagmi/index.d.ts.map +1 -0
- package/dist/wallet/wagmi/index.js +429 -0
- package/dist/wallet/wagmi/index.js.map +7 -0
- package/dist/wallet/wagmi/index.mjs +431 -0
- package/dist/wallet/wagmi/index.mjs.map +7 -0
- package/package.json +222 -0
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import type { Address } from "@otim/utils/schemas";
|
|
2
|
+
/**
|
|
3
|
+
* EIP-712 types structure for instruction signatures.
|
|
4
|
+
*/
|
|
5
|
+
export interface EIP712Types {
|
|
6
|
+
types: {
|
|
7
|
+
[key: string]: Array<{
|
|
8
|
+
name: string;
|
|
9
|
+
type: string;
|
|
10
|
+
}>;
|
|
11
|
+
Instruction: Array<{
|
|
12
|
+
name: string;
|
|
13
|
+
type: string;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Map of instruction actions to their EIP-712 type definitions.
|
|
19
|
+
* Used for creating typed data structures for instruction signatures.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const types = eip712TypesMap['transfer'];
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare const eip712TypesMap: {
|
|
27
|
+
readonly refuel: {
|
|
28
|
+
types: {
|
|
29
|
+
Instruction: {
|
|
30
|
+
name: string;
|
|
31
|
+
type: string;
|
|
32
|
+
}[];
|
|
33
|
+
Refuel: {
|
|
34
|
+
name: string;
|
|
35
|
+
type: string;
|
|
36
|
+
}[];
|
|
37
|
+
Fee: {
|
|
38
|
+
name: string;
|
|
39
|
+
type: string;
|
|
40
|
+
}[];
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
readonly refuelERC20: {
|
|
44
|
+
types: {
|
|
45
|
+
Instruction: {
|
|
46
|
+
name: string;
|
|
47
|
+
type: string;
|
|
48
|
+
}[];
|
|
49
|
+
RefuelERC20: {
|
|
50
|
+
name: string;
|
|
51
|
+
type: string;
|
|
52
|
+
}[];
|
|
53
|
+
Fee: {
|
|
54
|
+
name: string;
|
|
55
|
+
type: string;
|
|
56
|
+
}[];
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
readonly transfer: {
|
|
60
|
+
types: {
|
|
61
|
+
Instruction: {
|
|
62
|
+
name: string;
|
|
63
|
+
type: string;
|
|
64
|
+
}[];
|
|
65
|
+
Transfer: {
|
|
66
|
+
name: string;
|
|
67
|
+
type: string;
|
|
68
|
+
}[];
|
|
69
|
+
Schedule: {
|
|
70
|
+
name: string;
|
|
71
|
+
type: string;
|
|
72
|
+
}[];
|
|
73
|
+
Fee: {
|
|
74
|
+
name: string;
|
|
75
|
+
type: string;
|
|
76
|
+
}[];
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
readonly transferERC20: {
|
|
80
|
+
types: {
|
|
81
|
+
Instruction: {
|
|
82
|
+
name: string;
|
|
83
|
+
type: string;
|
|
84
|
+
}[];
|
|
85
|
+
TransferERC20: {
|
|
86
|
+
name: string;
|
|
87
|
+
type: string;
|
|
88
|
+
}[];
|
|
89
|
+
Schedule: {
|
|
90
|
+
name: string;
|
|
91
|
+
type: string;
|
|
92
|
+
}[];
|
|
93
|
+
Fee: {
|
|
94
|
+
name: string;
|
|
95
|
+
type: string;
|
|
96
|
+
}[];
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
readonly uniswapV3ExactInput: {
|
|
100
|
+
types: {
|
|
101
|
+
Instruction: {
|
|
102
|
+
name: string;
|
|
103
|
+
type: string;
|
|
104
|
+
}[];
|
|
105
|
+
UniswapV3ExactInput: {
|
|
106
|
+
name: string;
|
|
107
|
+
type: string;
|
|
108
|
+
}[];
|
|
109
|
+
Schedule: {
|
|
110
|
+
name: string;
|
|
111
|
+
type: string;
|
|
112
|
+
}[];
|
|
113
|
+
Fee: {
|
|
114
|
+
name: string;
|
|
115
|
+
type: string;
|
|
116
|
+
}[];
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
readonly sweep: {
|
|
120
|
+
types: {
|
|
121
|
+
Instruction: {
|
|
122
|
+
name: string;
|
|
123
|
+
type: string;
|
|
124
|
+
}[];
|
|
125
|
+
Sweep: {
|
|
126
|
+
name: string;
|
|
127
|
+
type: string;
|
|
128
|
+
}[];
|
|
129
|
+
Fee: {
|
|
130
|
+
name: string;
|
|
131
|
+
type: string;
|
|
132
|
+
}[];
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
readonly sweepERC20: {
|
|
136
|
+
types: {
|
|
137
|
+
Instruction: {
|
|
138
|
+
name: string;
|
|
139
|
+
type: string;
|
|
140
|
+
}[];
|
|
141
|
+
SweepERC20: {
|
|
142
|
+
name: string;
|
|
143
|
+
type: string;
|
|
144
|
+
}[];
|
|
145
|
+
Fee: {
|
|
146
|
+
name: string;
|
|
147
|
+
type: string;
|
|
148
|
+
}[];
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
readonly sweepCCTP: {
|
|
152
|
+
types: {
|
|
153
|
+
Instruction: {
|
|
154
|
+
name: string;
|
|
155
|
+
type: string;
|
|
156
|
+
}[];
|
|
157
|
+
SweepCCTP: {
|
|
158
|
+
name: string;
|
|
159
|
+
type: string;
|
|
160
|
+
}[];
|
|
161
|
+
Fee: {
|
|
162
|
+
name: string;
|
|
163
|
+
type: string;
|
|
164
|
+
}[];
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
readonly sweepUniswapV3: {
|
|
168
|
+
types: {
|
|
169
|
+
Instruction: {
|
|
170
|
+
name: string;
|
|
171
|
+
type: string;
|
|
172
|
+
}[];
|
|
173
|
+
SweepUniswapV3: {
|
|
174
|
+
name: string;
|
|
175
|
+
type: string;
|
|
176
|
+
}[];
|
|
177
|
+
Fee: {
|
|
178
|
+
name: string;
|
|
179
|
+
type: string;
|
|
180
|
+
}[];
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
readonly sweepDepositAccount: {
|
|
184
|
+
types: {
|
|
185
|
+
Instruction: {
|
|
186
|
+
name: string;
|
|
187
|
+
type: string;
|
|
188
|
+
}[];
|
|
189
|
+
SweepDepositAccount: {
|
|
190
|
+
name: string;
|
|
191
|
+
type: string;
|
|
192
|
+
}[];
|
|
193
|
+
Fee: {
|
|
194
|
+
name: string;
|
|
195
|
+
type: string;
|
|
196
|
+
}[];
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
readonly sweepDepositAccountERC20: {
|
|
200
|
+
types: {
|
|
201
|
+
Instruction: {
|
|
202
|
+
name: string;
|
|
203
|
+
type: string;
|
|
204
|
+
}[];
|
|
205
|
+
SweepDepositAccountERC20: {
|
|
206
|
+
name: string;
|
|
207
|
+
type: string;
|
|
208
|
+
}[];
|
|
209
|
+
Fee: {
|
|
210
|
+
name: string;
|
|
211
|
+
type: string;
|
|
212
|
+
}[];
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
readonly sweepSkipCCTPDepositAccount: {
|
|
216
|
+
types: {
|
|
217
|
+
Instruction: {
|
|
218
|
+
name: string;
|
|
219
|
+
type: string;
|
|
220
|
+
}[];
|
|
221
|
+
SweepSkipCCTPDepositAccount: {
|
|
222
|
+
name: string;
|
|
223
|
+
type: string;
|
|
224
|
+
}[];
|
|
225
|
+
Fee: {
|
|
226
|
+
name: string;
|
|
227
|
+
type: string;
|
|
228
|
+
}[];
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
readonly deactivateInstruction: {
|
|
232
|
+
types: {
|
|
233
|
+
Instruction: {
|
|
234
|
+
name: string;
|
|
235
|
+
type: string;
|
|
236
|
+
}[];
|
|
237
|
+
DeactivateInstruction: {
|
|
238
|
+
name: string;
|
|
239
|
+
type: string;
|
|
240
|
+
}[];
|
|
241
|
+
Fee: {
|
|
242
|
+
name: string;
|
|
243
|
+
type: string;
|
|
244
|
+
}[];
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* Base instruction build payload containing fields common to all instructions.
|
|
250
|
+
*/
|
|
251
|
+
export interface BaseInstructionBuildPayload {
|
|
252
|
+
address: Address;
|
|
253
|
+
chainId: number;
|
|
254
|
+
maxExecutions: number;
|
|
255
|
+
salt?: number;
|
|
256
|
+
fee: {
|
|
257
|
+
executionFee: string;
|
|
258
|
+
maxBaseFeePerGas: string;
|
|
259
|
+
maxPriorityFeePerGas: string;
|
|
260
|
+
token: Address;
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Extended base payload for instructions that support scheduling.
|
|
265
|
+
* Includes all base fields plus schedule configuration.
|
|
266
|
+
*/
|
|
267
|
+
export interface ScheduledInstructionBuildPayload extends BaseInstructionBuildPayload {
|
|
268
|
+
schedule: {
|
|
269
|
+
startAt: number;
|
|
270
|
+
startBy: number;
|
|
271
|
+
interval: number;
|
|
272
|
+
timeout: number;
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Extended payload for instructions that support an optional token parameter.
|
|
277
|
+
* This is typically used for ERC20 variants of actions.
|
|
278
|
+
*/
|
|
279
|
+
export interface TokenInstructionPayload {
|
|
280
|
+
token?: Address;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Extended payload for instructions that support gas limit configuration.
|
|
284
|
+
* Used by actions like transfer and refuel.
|
|
285
|
+
*/
|
|
286
|
+
export interface GasLimitConfigurablePayload {
|
|
287
|
+
gasLimit?: number;
|
|
288
|
+
}
|
|
289
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/instructions/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAgBnD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE;QACL,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QACrD,WAAW,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KACpD,CAAC;CACH;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc8B,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAE1C,OAAO,EAAE,OAAO,CAAC;IAEjB,OAAO,EAAE,MAAM,CAAC;IAEhB,aAAa,EAAE,MAAM,CAAC;IAEtB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,GAAG,EAAE;QACH,YAAY,EAAE,MAAM,CAAC;QACrB,gBAAgB,EAAE,MAAM,CAAC;QACzB,oBAAoB,EAAE,MAAM,CAAC;QAC7B,KAAK,EAAE,OAAO,CAAC;KAChB,CAAC;CACH;AAED;;;GAGG;AACH,MAAM,WAAW,gCACf,SAAQ,2BAA2B;IAEnC,QAAQ,EAAE;QAER,OAAO,EAAE,MAAM,CAAC;QAEhB,OAAO,EAAE,MAAM,CAAC;QAEhB,QAAQ,EAAE,MAAM,CAAC;QAEjB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IAEtC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAE1C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { PaymentRequestBuildResponse } from "@otim/utils/api";
|
|
2
|
+
interface InstructionWithActionName {
|
|
3
|
+
actionName?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface PaymentResponseWithActionNames extends PaymentRequestBuildResponse {
|
|
6
|
+
completionInstructions: Array<PaymentRequestBuildResponse["completionInstructions"][number] & InstructionWithActionName>;
|
|
7
|
+
instructions: Array<PaymentRequestBuildResponse["instructions"][number] & InstructionWithActionName>;
|
|
8
|
+
}
|
|
9
|
+
interface InstructionWithArguments {
|
|
10
|
+
actionArguments: Record<string, unknown>;
|
|
11
|
+
}
|
|
12
|
+
type ActionNamesMap = Record<number, string>;
|
|
13
|
+
export declare function addActionNamesToInstructions(buildResponse: PaymentRequestBuildResponse, actionNames: ActionNamesMap): PaymentResponseWithActionNames;
|
|
14
|
+
export declare function extractActionNamesMap(completionInstructions: InstructionWithArguments[], instructions?: InstructionWithArguments[]): ActionNamesMap;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=action-names.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { PaymentRequestBuildResponse } from "@otim/utils/api";
|
|
2
|
+
interface InstructionWithActionName {
|
|
3
|
+
actionName?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface PaymentResponseWithActionNames extends PaymentRequestBuildResponse {
|
|
6
|
+
completionInstructions: Array<PaymentRequestBuildResponse["completionInstructions"][number] & InstructionWithActionName>;
|
|
7
|
+
instructions: Array<PaymentRequestBuildResponse["instructions"][number] & InstructionWithActionName>;
|
|
8
|
+
}
|
|
9
|
+
interface InstructionWithArguments {
|
|
10
|
+
actionArguments: Record<string, unknown>;
|
|
11
|
+
}
|
|
12
|
+
type ActionNamesMap = Record<number, string>;
|
|
13
|
+
export declare function addActionNamesToInstructions(buildResponse: PaymentRequestBuildResponse, actionNames: ActionNamesMap): PaymentResponseWithActionNames;
|
|
14
|
+
export declare function extractActionNamesMap(completionInstructions: InstructionWithArguments[], instructions?: InstructionWithArguments[]): ActionNamesMap;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=action-names.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-names.d.ts","sourceRoot":"","sources":["../../src/payments/action-names.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAGnE,UAAU,yBAAyB;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,8BACf,SAAQ,2BAA2B;IACnC,sBAAsB,EAAE,KAAK,CAC3B,2BAA2B,CAAC,wBAAwB,CAAC,CAAC,MAAM,CAAC,GAC3D,yBAAyB,CAC5B,CAAC;IACF,YAAY,EAAE,KAAK,CACjB,2BAA2B,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,GACjD,yBAAyB,CAC5B,CAAC;CACH;AAED,UAAU,wBAAwB;IAChC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC1C;AAED,KAAK,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE7C,wBAAgB,4BAA4B,CAC1C,aAAa,EAAE,2BAA2B,EAC1C,WAAW,EAAE,cAAc,GAC1B,8BAA8B,CAiBhC;AAED,wBAAgB,qBAAqB,CACnC,sBAAsB,EAAE,wBAAwB,EAAE,EAClD,YAAY,GAAE,wBAAwB,EAAO,GAC5C,cAAc,CAahB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/payments/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CCTPConfig } from "../config/cctp";
|
|
2
|
+
import type { BaseEphemeralInstructionPayload } from "../types";
|
|
3
|
+
import type { Address } from "@otim/utils/schemas";
|
|
4
|
+
export interface SweepCCTPEphemeralPayload extends BaseEphemeralInstructionPayload {
|
|
5
|
+
token: Address;
|
|
6
|
+
destinationChainId: number;
|
|
7
|
+
destinationMintRecipient: Address;
|
|
8
|
+
threshold: string;
|
|
9
|
+
endBalance: string;
|
|
10
|
+
cctpConfig?: CCTPConfig;
|
|
11
|
+
}
|
|
12
|
+
type SweepCCTPActionArguments = Record<string, unknown>;
|
|
13
|
+
export declare function createSweepCCTPActionArguments(payload: SweepCCTPEphemeralPayload): SweepCCTPActionArguments;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=sweep-cctp.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CCTPConfig } from "../config/cctp";
|
|
2
|
+
import type { BaseEphemeralInstructionPayload } from "../types";
|
|
3
|
+
import type { Address } from "@otim/utils/schemas";
|
|
4
|
+
export interface SweepCCTPEphemeralPayload extends BaseEphemeralInstructionPayload {
|
|
5
|
+
token: Address;
|
|
6
|
+
destinationChainId: number;
|
|
7
|
+
destinationMintRecipient: Address;
|
|
8
|
+
threshold: string;
|
|
9
|
+
endBalance: string;
|
|
10
|
+
cctpConfig?: CCTPConfig;
|
|
11
|
+
}
|
|
12
|
+
type SweepCCTPActionArguments = Record<string, unknown>;
|
|
13
|
+
export declare function createSweepCCTPActionArguments(payload: SweepCCTPEphemeralPayload): SweepCCTPActionArguments;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=sweep-cctp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sweep-cctp.d.ts","sourceRoot":"","sources":["../../../src/payments/actions/sweep-cctp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAOnD,MAAM,WAAW,yBACf,SAAQ,+BAA+B;IACvC,KAAK,EAAE,OAAO,CAAC;IACf,kBAAkB,EAAE,MAAM,CAAC;IAC3B,wBAAwB,EAAE,OAAO,CAAC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED,KAAK,wBAAwB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAExD,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,yBAAyB,GACjC,wBAAwB,CAoB1B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BaseEphemeralInstructionPayload } from "../types";
|
|
2
|
+
import type { Address } from "@otim/utils/schemas";
|
|
3
|
+
export interface SweepERC20EphemeralPayload extends BaseEphemeralInstructionPayload {
|
|
4
|
+
token: Address;
|
|
5
|
+
target: Address;
|
|
6
|
+
threshold: string;
|
|
7
|
+
endBalance: string;
|
|
8
|
+
}
|
|
9
|
+
type SweepERC20ActionArguments = Record<string, unknown>;
|
|
10
|
+
export declare function createSweepERC20ActionArguments(payload: SweepERC20EphemeralPayload): SweepERC20ActionArguments;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=sweep-erc20.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BaseEphemeralInstructionPayload } from "../types";
|
|
2
|
+
import type { Address } from "@otim/utils/schemas";
|
|
3
|
+
export interface SweepERC20EphemeralPayload extends BaseEphemeralInstructionPayload {
|
|
4
|
+
token: Address;
|
|
5
|
+
target: Address;
|
|
6
|
+
threshold: string;
|
|
7
|
+
endBalance: string;
|
|
8
|
+
}
|
|
9
|
+
type SweepERC20ActionArguments = Record<string, unknown>;
|
|
10
|
+
export declare function createSweepERC20ActionArguments(payload: SweepERC20EphemeralPayload): SweepERC20ActionArguments;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=sweep-erc20.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sweep-erc20.d.ts","sourceRoot":"","sources":["../../../src/payments/actions/sweep-erc20.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAInD,MAAM,WAAW,0BACf,SAAQ,+BAA+B;IACvC,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,KAAK,yBAAyB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEzD,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,0BAA0B,GAClC,yBAAyB,CAU3B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { BaseEphemeralInstructionPayload, UniswapV3FeeTier } from "../types";
|
|
2
|
+
import type { Address } from "@otim/utils/schemas";
|
|
3
|
+
export interface SweepUniswapV3EphemeralPayload extends BaseEphemeralInstructionPayload {
|
|
4
|
+
recipient: Address;
|
|
5
|
+
tokenIn: Address;
|
|
6
|
+
tokenOut: Address;
|
|
7
|
+
feeTier: UniswapV3FeeTier;
|
|
8
|
+
threshold: string;
|
|
9
|
+
endBalance: string;
|
|
10
|
+
floorAmountOut: string;
|
|
11
|
+
meanPriceLookBack: number;
|
|
12
|
+
maxPriceDeviationBps: number;
|
|
13
|
+
}
|
|
14
|
+
type SweepUniswapV3ActionArguments = Record<string, unknown>;
|
|
15
|
+
export declare function createSweepUniswapV3ActionArguments(payload: SweepUniswapV3EphemeralPayload): SweepUniswapV3ActionArguments;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=sweep-uniswap-v3.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { BaseEphemeralInstructionPayload, UniswapV3FeeTier } from "../types";
|
|
2
|
+
import type { Address } from "@otim/utils/schemas";
|
|
3
|
+
export interface SweepUniswapV3EphemeralPayload extends BaseEphemeralInstructionPayload {
|
|
4
|
+
recipient: Address;
|
|
5
|
+
tokenIn: Address;
|
|
6
|
+
tokenOut: Address;
|
|
7
|
+
feeTier: UniswapV3FeeTier;
|
|
8
|
+
threshold: string;
|
|
9
|
+
endBalance: string;
|
|
10
|
+
floorAmountOut: string;
|
|
11
|
+
meanPriceLookBack: number;
|
|
12
|
+
maxPriceDeviationBps: number;
|
|
13
|
+
}
|
|
14
|
+
type SweepUniswapV3ActionArguments = Record<string, unknown>;
|
|
15
|
+
export declare function createSweepUniswapV3ActionArguments(payload: SweepUniswapV3EphemeralPayload): SweepUniswapV3ActionArguments;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=sweep-uniswap-v3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sweep-uniswap-v3.d.ts","sourceRoot":"","sources":["../../../src/payments/actions/sweep-uniswap-v3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,+BAA+B,EAC/B,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAInD,MAAM,WAAW,8BACf,SAAQ,+BAA+B;IACvC,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,KAAK,6BAA6B,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE7D,wBAAgB,mCAAmC,CACjD,OAAO,EAAE,8BAA8B,GACtC,6BAA6B,CAe/B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BaseEphemeralInstructionPayload } from "../types";
|
|
2
|
+
import type { Address } from "@otim/utils/schemas";
|
|
3
|
+
export interface SweepEphemeralPayload extends BaseEphemeralInstructionPayload {
|
|
4
|
+
target: Address;
|
|
5
|
+
threshold: string;
|
|
6
|
+
endBalance: string;
|
|
7
|
+
gasLimit: number;
|
|
8
|
+
}
|
|
9
|
+
type SweepActionArguments = Record<string, unknown>;
|
|
10
|
+
export declare function createSweepActionArguments(payload: SweepEphemeralPayload): SweepActionArguments;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=sweep.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BaseEphemeralInstructionPayload } from "../types";
|
|
2
|
+
import type { Address } from "@otim/utils/schemas";
|
|
3
|
+
export interface SweepEphemeralPayload extends BaseEphemeralInstructionPayload {
|
|
4
|
+
target: Address;
|
|
5
|
+
threshold: string;
|
|
6
|
+
endBalance: string;
|
|
7
|
+
gasLimit: number;
|
|
8
|
+
}
|
|
9
|
+
type SweepActionArguments = Record<string, unknown>;
|
|
10
|
+
export declare function createSweepActionArguments(payload: SweepEphemeralPayload): SweepActionArguments;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=sweep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sweep.d.ts","sourceRoot":"","sources":["../../../src/payments/actions/sweep.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAMnD,MAAM,WAAW,qBAAsB,SAAQ,+BAA+B;IAC5E,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,KAAK,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEpD,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,qBAAqB,GAC7B,oBAAoB,CAUtB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { PaymentRequestMetadata } from "./types";
|
|
2
|
+
import type { PaymentRequestBuildRequest } from "@otim/utils/api";
|
|
3
|
+
import type { Nullable } from "@otim/utils/helpers";
|
|
4
|
+
import type { Address, HexString } from "@otim/utils/schemas";
|
|
5
|
+
export interface EphemeralInstructionSpec {
|
|
6
|
+
chainId: number;
|
|
7
|
+
salt?: number;
|
|
8
|
+
maxExecutions: number;
|
|
9
|
+
actionArguments: Record<string, unknown>;
|
|
10
|
+
setEphemeralTarget?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface BuildPaymentRequestParams {
|
|
13
|
+
payerAddress?: Nullable<Address>;
|
|
14
|
+
completionInstructions: EphemeralInstructionSpec[];
|
|
15
|
+
instructions?: EphemeralInstructionSpec[];
|
|
16
|
+
metadata?: PaymentRequestMetadata;
|
|
17
|
+
}
|
|
18
|
+
export interface FeeConfig {
|
|
19
|
+
executionFee: number;
|
|
20
|
+
maxBaseFeePerGas: `0x${string}`;
|
|
21
|
+
maxPriorityFeePerGas: `0x${string}`;
|
|
22
|
+
token: Address;
|
|
23
|
+
}
|
|
24
|
+
export declare function createPaymentRequestBuildPayload(params: BuildPaymentRequestParams): PaymentRequestBuildRequest;
|
|
25
|
+
export declare function createDefaultFee(executionFee?: number, maxBaseFeePerGas?: HexString, maxPriorityFeePerGas?: HexString, token?: Address): FeeConfig;
|
|
26
|
+
export declare function createFeeWithToken(token?: Address, maxPriorityFeePerGas?: `0x${string}`): FeeConfig;
|
|
27
|
+
//# sourceMappingURL=build.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { PaymentRequestMetadata } from "./types";
|
|
2
|
+
import type { PaymentRequestBuildRequest } from "@otim/utils/api";
|
|
3
|
+
import type { Nullable } from "@otim/utils/helpers";
|
|
4
|
+
import type { Address, HexString } from "@otim/utils/schemas";
|
|
5
|
+
export interface EphemeralInstructionSpec {
|
|
6
|
+
chainId: number;
|
|
7
|
+
salt?: number;
|
|
8
|
+
maxExecutions: number;
|
|
9
|
+
actionArguments: Record<string, unknown>;
|
|
10
|
+
setEphemeralTarget?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface BuildPaymentRequestParams {
|
|
13
|
+
payerAddress?: Nullable<Address>;
|
|
14
|
+
completionInstructions: EphemeralInstructionSpec[];
|
|
15
|
+
instructions?: EphemeralInstructionSpec[];
|
|
16
|
+
metadata?: PaymentRequestMetadata;
|
|
17
|
+
}
|
|
18
|
+
export interface FeeConfig {
|
|
19
|
+
executionFee: number;
|
|
20
|
+
maxBaseFeePerGas: `0x${string}`;
|
|
21
|
+
maxPriorityFeePerGas: `0x${string}`;
|
|
22
|
+
token: Address;
|
|
23
|
+
}
|
|
24
|
+
export declare function createPaymentRequestBuildPayload(params: BuildPaymentRequestParams): PaymentRequestBuildRequest;
|
|
25
|
+
export declare function createDefaultFee(executionFee?: number, maxBaseFeePerGas?: HexString, maxPriorityFeePerGas?: HexString, token?: Address): FeeConfig;
|
|
26
|
+
export declare function createFeeWithToken(token?: Address, maxPriorityFeePerGas?: `0x${string}`): FeeConfig;
|
|
27
|
+
//# sourceMappingURL=build.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/payments/build.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAI9D,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,WAAW,yBAAyB;IACxC,YAAY,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IACjC,sBAAsB,EAAE,wBAAwB,EAAE,CAAC;IACnD,YAAY,CAAC,EAAE,wBAAwB,EAAE,CAAC;IAC1C,QAAQ,CAAC,EAAE,sBAAsB,CAAC;CACnC;AAUD,MAAM,WAAW,SAAS;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,KAAK,MAAM,EAAE,CAAC;IAChC,oBAAoB,EAAE,KAAK,MAAM,EAAE,CAAC;IACpC,KAAK,EAAE,OAAO,CAAC;CAChB;AAID,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE,yBAAyB,GAChC,0BAA0B,CAc5B;AAkBD,wBAAgB,gBAAgB,CAC9B,YAAY,SAAI,EAChB,gBAAgB,GAAE,SAAiB,EACnC,oBAAoB,GAAE,SAAiB,EACvC,KAAK,GAAE,OAAyB,GAC/B,SAAS,CAOX;AAED,wBAAgB,kBAAkB,CAChC,KAAK,CAAC,EAAE,OAAO,EACf,oBAAoB,CAAC,EAAE,KAAK,MAAM,EAAE,GACnC,SAAS,CAEX"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ChainTokenConfig } from "./comprehensive-payment-request";
|
|
2
|
+
interface Token {
|
|
3
|
+
address: string;
|
|
4
|
+
symbol: string;
|
|
5
|
+
chainId: number;
|
|
6
|
+
decimals: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function createChainTokenConfigs(tokens: Token[]): ChainTokenConfig[];
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=chain-token-config-builder.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ChainTokenConfig } from "./comprehensive-payment-request";
|
|
2
|
+
interface Token {
|
|
3
|
+
address: string;
|
|
4
|
+
symbol: string;
|
|
5
|
+
chainId: number;
|
|
6
|
+
decimals: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function createChainTokenConfigs(tokens: Token[]): ChainTokenConfig[];
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=chain-token-config-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain-token-config-builder.d.ts","sourceRoot":"","sources":["../../src/payments/chain-token-config-builder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,gBAAgB,EAAE,CAG3E"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { CCTPConfig } from "./config/cctp";
|
|
2
|
+
import type { PaymentRequestMetadata } from "./types";
|
|
3
|
+
import type { PaymentRequestBuildRequest } from "@otim/utils/api";
|
|
4
|
+
import type { Address } from "@otim/utils/schemas";
|
|
5
|
+
export interface ChainTokenConfig {
|
|
6
|
+
chainId: number;
|
|
7
|
+
tokens: Array<{
|
|
8
|
+
symbol: string;
|
|
9
|
+
address: Address;
|
|
10
|
+
decimals: number;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
13
|
+
export interface ComprehensivePaymentRequestParams {
|
|
14
|
+
settlementChainId: number;
|
|
15
|
+
recipient: Address;
|
|
16
|
+
amount: string;
|
|
17
|
+
ephemeralWalletAddress: Address;
|
|
18
|
+
chainTokenConfigs: ChainTokenConfig[];
|
|
19
|
+
payerAddress?: Address | null;
|
|
20
|
+
metadata?: PaymentRequestMetadata;
|
|
21
|
+
feeToken?: Address;
|
|
22
|
+
cctpConfig?: CCTPConfig;
|
|
23
|
+
}
|
|
24
|
+
export declare function createComprehensivePaymentRequest(params: ComprehensivePaymentRequestParams): PaymentRequestBuildRequest;
|
|
25
|
+
//# sourceMappingURL=comprehensive-payment-request.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { CCTPConfig } from "./config/cctp";
|
|
2
|
+
import type { PaymentRequestMetadata } from "./types";
|
|
3
|
+
import type { PaymentRequestBuildRequest } from "@otim/utils/api";
|
|
4
|
+
import type { Address } from "@otim/utils/schemas";
|
|
5
|
+
export interface ChainTokenConfig {
|
|
6
|
+
chainId: number;
|
|
7
|
+
tokens: Array<{
|
|
8
|
+
symbol: string;
|
|
9
|
+
address: Address;
|
|
10
|
+
decimals: number;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
13
|
+
export interface ComprehensivePaymentRequestParams {
|
|
14
|
+
settlementChainId: number;
|
|
15
|
+
recipient: Address;
|
|
16
|
+
amount: string;
|
|
17
|
+
ephemeralWalletAddress: Address;
|
|
18
|
+
chainTokenConfigs: ChainTokenConfig[];
|
|
19
|
+
payerAddress?: Address | null;
|
|
20
|
+
metadata?: PaymentRequestMetadata;
|
|
21
|
+
feeToken?: Address;
|
|
22
|
+
cctpConfig?: CCTPConfig;
|
|
23
|
+
}
|
|
24
|
+
export declare function createComprehensivePaymentRequest(params: ComprehensivePaymentRequestParams): PaymentRequestBuildRequest;
|
|
25
|
+
//# sourceMappingURL=comprehensive-payment-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comprehensive-payment-request.d.ts","sourceRoot":"","sources":["../../src/payments/comprehensive-payment-request.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAanD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,KAAK,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,OAAO,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC,CAAC;CACJ;AAED,MAAM,WAAW,iCAAiC;IAChD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,sBAAsB,EAAE,OAAO,CAAC;IAChC,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IACtC,YAAY,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,EAAE,sBAAsB,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AA0BD,wBAAgB,iCAAiC,CAC/C,MAAM,EAAE,iCAAiC,GACxC,0BAA0B,CAoD5B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Nullable } from "@otim/utils/helpers";
|
|
2
|
+
export interface CCTPConfig {
|
|
3
|
+
supportedChainIds: Set<number>;
|
|
4
|
+
isSupported(chainId: number): boolean;
|
|
5
|
+
getDomain(chainId: number): Nullable<number>;
|
|
6
|
+
}
|
|
7
|
+
export declare class DefaultCCTPConfig implements CCTPConfig {
|
|
8
|
+
supportedChainIds: Set<number>;
|
|
9
|
+
constructor();
|
|
10
|
+
isSupported(chainId: number): boolean;
|
|
11
|
+
getDomain(chainId: number): Nullable<number>;
|
|
12
|
+
}
|
|
13
|
+
export declare const defaultCCTPConfig: DefaultCCTPConfig;
|
|
14
|
+
//# sourceMappingURL=cctp.d.ts.map
|