@otim/utils 0.0.4 → 0.0.6
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/api/index.d.mts +1858 -7
- package/dist/api/index.d.mts.map +1 -0
- package/dist/api/index.d.ts +1857 -6
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +1514 -1994
- package/dist/api/index.js.map +1 -7
- package/dist/api/index.mjs +1394 -1962
- package/dist/api/index.mjs.map +1 -7
- package/dist/api-urls-B-GTEiT3.d.mts +49 -0
- package/dist/api-urls-B-GTEiT3.d.mts.map +1 -0
- package/dist/api-urls-Cd20DG4i.js +171 -0
- package/dist/api-urls-Cd20DG4i.js.map +1 -0
- package/dist/api-urls-DJcIKBCy.mjs +135 -0
- package/dist/api-urls-DJcIKBCy.mjs.map +1 -0
- package/dist/api-urls-SKeIQMoZ.d.ts +49 -0
- package/dist/api-urls-SKeIQMoZ.d.ts.map +1 -0
- package/dist/chains/index.d.mts +13568 -16
- package/dist/chains/index.d.mts.map +1 -0
- package/dist/chains/index.d.ts +13567 -15
- package/dist/chains/index.d.ts.map +1 -1
- package/dist/chains/index.js +3615 -424
- package/dist/chains/index.js.map +1 -7
- package/dist/chains/index.mjs +3561 -440
- package/dist/chains/index.mjs.map +1 -7
- package/dist/chunk-kSYXY2_d.js +34 -0
- package/dist/client-factory-7xUSPC9I.mjs +42 -0
- package/dist/client-factory-7xUSPC9I.mjs.map +1 -0
- package/dist/client-factory-C3A4RPdj.d.ts +22 -0
- package/dist/client-factory-C3A4RPdj.d.ts.map +1 -0
- package/dist/client-factory-CTI_Nt35.js +49 -0
- package/dist/client-factory-CTI_Nt35.js.map +1 -0
- package/dist/client-factory-DOL0ZTWy.d.mts +22 -0
- package/dist/client-factory-DOL0ZTWy.d.mts.map +1 -0
- package/dist/constants.d.mts +14 -24
- package/dist/constants.d.mts.map +1 -0
- package/dist/constants.d.ts +13 -23
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +31 -46
- package/dist/constants.js.map +1 -7
- package/dist/constants.mjs +22 -26
- package/dist/constants.mjs.map +1 -7
- package/dist/date-CFzrYcjE.js +536 -0
- package/dist/date-CFzrYcjE.js.map +1 -0
- package/dist/date-gBac-Om9.mjs +313 -0
- package/dist/date-gBac-Om9.mjs.map +1 -0
- package/dist/defineProperty-DbMdhrDE.js +49 -0
- package/dist/defineProperty-DzhmunJg.mjs +43 -0
- package/dist/formatters/index.d.mts +1 -2
- package/dist/formatters/index.d.ts +1 -2
- package/dist/formatters/index.js +0 -19
- package/dist/formatters/index.mjs +1 -1
- package/dist/helpers/index.d.mts +562 -19
- package/dist/helpers/index.d.mts.map +1 -0
- package/dist/helpers/index.d.ts +561 -18
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/index.js +106 -1344
- package/dist/helpers/index.mjs +3 -1315
- package/dist/helpers-BNiSxjGq.mjs +895 -0
- package/dist/helpers-BNiSxjGq.mjs.map +1 -0
- package/dist/helpers-DoC7Xl12.js +1291 -0
- package/dist/helpers-DoC7Xl12.js.map +1 -0
- package/dist/index-Bv0kUz4w.d.ts +540 -0
- package/dist/index-Bv0kUz4w.d.ts.map +1 -0
- package/dist/index-DartTKk2.d.mts +540 -0
- package/dist/index-DartTKk2.d.mts.map +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +0 -2
- package/dist/index.mjs +1 -1
- package/dist/instructions/index.d.mts +687 -6
- package/dist/instructions/index.d.mts.map +1 -0
- package/dist/instructions/index.d.ts +686 -5
- package/dist/instructions/index.d.ts.map +1 -1
- package/dist/instructions/index.js +1912 -1091
- package/dist/instructions/index.js.map +1 -7
- package/dist/instructions/index.mjs +1887 -1058
- package/dist/instructions/index.mjs.map +1 -7
- package/dist/payments/index.d.mts +322 -16
- package/dist/payments/index.d.mts.map +1 -0
- package/dist/payments/index.d.ts +321 -15
- package/dist/payments/index.d.ts.map +1 -1
- package/dist/payments/index.js +616 -1258
- package/dist/payments/index.js.map +1 -7
- package/dist/payments/index.mjs +594 -1236
- package/dist/payments/index.mjs.map +1 -7
- package/dist/schemas/index.d.mts +2 -10
- package/dist/schemas/index.d.ts +2 -10
- package/dist/schemas/index.js +350 -393
- package/dist/schemas/index.js.map +1 -7
- package/dist/schemas/index.mjs +283 -371
- package/dist/schemas/index.mjs.map +1 -7
- package/dist/server/index.d.mts +354 -3
- package/dist/server/index.d.mts.map +1 -0
- package/dist/server/index.d.ts +353 -2
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +248 -435
- package/dist/server/index.js.map +1 -7
- package/dist/server/index.mjs +199 -404
- package/dist/server/index.mjs.map +1 -7
- package/dist/server/react.d.mts +16 -0
- package/dist/server/react.d.mts.map +1 -0
- package/dist/server/react.d.ts +16 -0
- package/dist/server/react.d.ts.map +1 -0
- package/dist/server/react.js +30 -0
- package/dist/server/react.js.map +1 -0
- package/dist/server/react.mjs +28 -0
- package/dist/server/react.mjs.map +1 -0
- package/dist/wallet/wagmi/index.d.mts +23 -2
- package/dist/wallet/wagmi/index.d.mts.map +1 -0
- package/dist/wallet/wagmi/index.d.ts +22 -1
- package/dist/wallet/wagmi/index.d.ts.map +1 -1
- package/dist/wallet/wagmi/index.js +86 -417
- package/dist/wallet/wagmi/index.js.map +1 -7
- package/dist/wallet/wagmi/index.mjs +82 -418
- package/dist/wallet/wagmi/index.mjs.map +1 -7
- package/package.json +39 -28
- package/dist/api/api.d.mts +0 -18
- package/dist/api/api.d.ts +0 -18
- package/dist/api/api.d.ts.map +0 -1
- package/dist/api/core/error.d.mts +0 -74
- package/dist/api/core/error.d.ts +0 -74
- package/dist/api/core/error.d.ts.map +0 -1
- package/dist/api/core/index.d.mts +0 -4
- package/dist/api/core/index.d.ts +0 -4
- package/dist/api/core/index.d.ts.map +0 -1
- package/dist/api/core/instance.d.mts +0 -13
- package/dist/api/core/instance.d.ts +0 -13
- package/dist/api/core/instance.d.ts.map +0 -1
- package/dist/api/core/service.d.mts +0 -51
- package/dist/api/core/service.d.ts +0 -51
- package/dist/api/core/service.d.ts.map +0 -1
- package/dist/api/schemas/account.d.mts +0 -44
- package/dist/api/schemas/account.d.ts +0 -44
- package/dist/api/schemas/account.d.ts.map +0 -1
- package/dist/api/schemas/activity.d.mts +0 -277
- package/dist/api/schemas/activity.d.ts +0 -277
- package/dist/api/schemas/activity.d.ts.map +0 -1
- package/dist/api/schemas/auth.d.mts +0 -127
- package/dist/api/schemas/auth.d.ts +0 -127
- package/dist/api/schemas/auth.d.ts.map +0 -1
- package/dist/api/schemas/chain.d.mts +0 -15
- package/dist/api/schemas/chain.d.ts +0 -15
- package/dist/api/schemas/chain.d.ts.map +0 -1
- package/dist/api/schemas/config.d.mts +0 -33
- package/dist/api/schemas/config.d.ts +0 -33
- package/dist/api/schemas/config.d.ts.map +0 -1
- package/dist/api/schemas/contacts.d.mts +0 -27
- package/dist/api/schemas/contacts.d.ts +0 -27
- package/dist/api/schemas/contacts.d.ts.map +0 -1
- package/dist/api/schemas/index.d.mts +0 -12
- package/dist/api/schemas/index.d.ts +0 -12
- package/dist/api/schemas/index.d.ts.map +0 -1
- package/dist/api/schemas/instruction.d.mts +0 -446
- package/dist/api/schemas/instruction.d.ts +0 -446
- package/dist/api/schemas/instruction.d.ts.map +0 -1
- package/dist/api/schemas/integration.d.mts +0 -166
- package/dist/api/schemas/integration.d.ts +0 -166
- package/dist/api/schemas/integration.d.ts.map +0 -1
- package/dist/api/schemas/operating-account.d.mts +0 -11
- package/dist/api/schemas/operating-account.d.ts +0 -11
- package/dist/api/schemas/operating-account.d.ts.map +0 -1
- package/dist/api/schemas/payments.d.mts +0 -234
- package/dist/api/schemas/payments.d.ts +0 -234
- package/dist/api/schemas/payments.d.ts.map +0 -1
- package/dist/api/schemas/transaction.d.mts +0 -37
- package/dist/api/schemas/transaction.d.ts +0 -37
- package/dist/api/schemas/transaction.d.ts.map +0 -1
- package/dist/api/services/account.d.mts +0 -8
- package/dist/api/services/account.d.ts +0 -8
- package/dist/api/services/account.d.ts.map +0 -1
- package/dist/api/services/activity.d.mts +0 -7
- package/dist/api/services/activity.d.ts +0 -7
- package/dist/api/services/activity.d.ts.map +0 -1
- package/dist/api/services/auth.d.mts +0 -12
- package/dist/api/services/auth.d.ts +0 -12
- package/dist/api/services/auth.d.ts.map +0 -1
- package/dist/api/services/base.d.mts +0 -10
- package/dist/api/services/base.d.ts +0 -10
- package/dist/api/services/base.d.ts.map +0 -1
- package/dist/api/services/config.d.mts +0 -10
- package/dist/api/services/config.d.ts +0 -10
- package/dist/api/services/config.d.ts.map +0 -1
- package/dist/api/services/contacts.d.mts +0 -8
- package/dist/api/services/contacts.d.ts +0 -8
- package/dist/api/services/contacts.d.ts.map +0 -1
- package/dist/api/services/developer.d.mts +0 -6
- package/dist/api/services/developer.d.ts +0 -6
- package/dist/api/services/developer.d.ts.map +0 -1
- package/dist/api/services/index.d.mts +0 -13
- package/dist/api/services/index.d.ts +0 -13
- package/dist/api/services/index.d.ts.map +0 -1
- package/dist/api/services/instruction.d.mts +0 -12
- package/dist/api/services/instruction.d.ts +0 -12
- package/dist/api/services/instruction.d.ts.map +0 -1
- package/dist/api/services/integration.d.mts +0 -8
- package/dist/api/services/integration.d.ts +0 -8
- package/dist/api/services/integration.d.ts.map +0 -1
- package/dist/api/services/operating-account.d.mts +0 -8
- package/dist/api/services/operating-account.d.ts +0 -8
- package/dist/api/services/operating-account.d.ts.map +0 -1
- package/dist/api/services/payments.d.mts +0 -14
- package/dist/api/services/payments.d.ts +0 -14
- package/dist/api/services/payments.d.ts.map +0 -1
- package/dist/api/services/transaction.d.mts +0 -8
- package/dist/api/services/transaction.d.ts +0 -8
- package/dist/api/services/transaction.d.ts.map +0 -1
- package/dist/api/services/uniswap-token-list-service.d.mts +0 -66
- package/dist/api/services/uniswap-token-list-service.d.ts +0 -66
- package/dist/api/services/uniswap-token-list-service.d.ts.map +0 -1
- package/dist/api/utils/index.d.mts +0 -2
- package/dist/api/utils/index.d.ts +0 -2
- package/dist/api/utils/index.d.ts.map +0 -1
- package/dist/api/utils/pagination.d.mts +0 -32
- package/dist/api/utils/pagination.d.ts +0 -32
- package/dist/api/utils/pagination.d.ts.map +0 -1
- package/dist/chains/config/all-chains.d.mts +0 -4243
- package/dist/chains/config/all-chains.d.ts +0 -4243
- package/dist/chains/config/all-chains.d.ts.map +0 -1
- package/dist/chains/config/custom-chains.d.mts +0 -49
- package/dist/chains/config/custom-chains.d.ts +0 -49
- package/dist/chains/config/custom-chains.d.ts.map +0 -1
- package/dist/chains/config/mainnet-chains.d.mts +0 -1063
- package/dist/chains/config/mainnet-chains.d.ts +0 -1063
- package/dist/chains/config/mainnet-chains.d.ts.map +0 -1
- package/dist/chains/config/supported-chains.d.mts +0 -2172
- package/dist/chains/config/supported-chains.d.ts +0 -2172
- package/dist/chains/config/supported-chains.d.ts.map +0 -1
- package/dist/chains/config/testnet-chains.d.mts +0 -1110
- package/dist/chains/config/testnet-chains.d.ts +0 -1110
- package/dist/chains/config/testnet-chains.d.ts.map +0 -1
- package/dist/chains/lambda/chain-mapping.d.mts +0 -55
- package/dist/chains/lambda/chain-mapping.d.ts +0 -55
- package/dist/chains/lambda/chain-mapping.d.ts.map +0 -1
- package/dist/chains/lambda/index.d.mts +0 -2
- package/dist/chains/lambda/index.d.ts +0 -2
- package/dist/chains/lambda/index.d.ts.map +0 -1
- package/dist/chains/tokens/chain-tokens.d.mts +0 -6
- package/dist/chains/tokens/chain-tokens.d.ts +0 -6
- package/dist/chains/tokens/chain-tokens.d.ts.map +0 -1
- package/dist/chains/tokens/token-addresses.d.mts +0 -8
- package/dist/chains/tokens/token-addresses.d.ts +0 -8
- package/dist/chains/tokens/token-addresses.d.ts.map +0 -1
- package/dist/chains/tokens/token-metadata.d.mts +0 -5
- package/dist/chains/tokens/token-metadata.d.ts +0 -5
- package/dist/chains/tokens/token-metadata.d.ts.map +0 -1
- package/dist/chains/types.d.mts +0 -23
- package/dist/chains/types.d.ts +0 -23
- package/dist/chains/types.d.ts.map +0 -1
- package/dist/chains/utils/filter-tokens.d.mts +0 -3
- package/dist/chains/utils/filter-tokens.d.ts +0 -3
- package/dist/chains/utils/filter-tokens.d.ts.map +0 -1
- package/dist/chains/utils/stablecoin.d.mts +0 -7
- package/dist/chains/utils/stablecoin.d.ts +0 -7
- package/dist/chains/utils/stablecoin.d.ts.map +0 -1
- package/dist/chains/utils/token-maps.d.mts +0 -10
- package/dist/chains/utils/token-maps.d.ts +0 -10
- package/dist/chains/utils/token-maps.d.ts.map +0 -1
- package/dist/env.d.mts +0 -17
- package/dist/env.d.ts +0 -17
- package/dist/env.d.ts.map +0 -1
- package/dist/formatters/index.d.ts.map +0 -1
- package/dist/formatters/index.js.map +0 -7
- package/dist/formatters/index.mjs.map +0 -7
- package/dist/helpers/address.d.mts +0 -7
- package/dist/helpers/address.d.ts +0 -7
- package/dist/helpers/address.d.ts.map +0 -1
- package/dist/helpers/blockchain.d.mts +0 -41
- package/dist/helpers/blockchain.d.ts +0 -41
- package/dist/helpers/blockchain.d.ts.map +0 -1
- package/dist/helpers/date.d.mts +0 -70
- package/dist/helpers/date.d.ts +0 -70
- package/dist/helpers/date.d.ts.map +0 -1
- package/dist/helpers/datetime.d.mts +0 -57
- package/dist/helpers/datetime.d.ts +0 -57
- package/dist/helpers/datetime.d.ts.map +0 -1
- package/dist/helpers/domain.d.mts +0 -2
- package/dist/helpers/domain.d.ts +0 -2
- package/dist/helpers/domain.d.ts.map +0 -1
- package/dist/helpers/index.js.map +0 -7
- package/dist/helpers/index.mjs.map +0 -7
- package/dist/helpers/intl.d.mts +0 -20
- package/dist/helpers/intl.d.ts +0 -20
- package/dist/helpers/intl.d.ts.map +0 -1
- package/dist/helpers/logger.d.mts +0 -26
- package/dist/helpers/logger.d.ts +0 -26
- package/dist/helpers/logger.d.ts.map +0 -1
- package/dist/helpers/mask-options.d.mts +0 -10
- package/dist/helpers/mask-options.d.ts +0 -10
- package/dist/helpers/mask-options.d.ts.map +0 -1
- package/dist/helpers/num-formatter.d.mts +0 -3
- package/dist/helpers/num-formatter.d.ts +0 -3
- package/dist/helpers/num-formatter.d.ts.map +0 -1
- package/dist/helpers/polling.d.mts +0 -39
- package/dist/helpers/polling.d.ts +0 -39
- package/dist/helpers/polling.d.ts.map +0 -1
- package/dist/helpers/random.d.mts +0 -10
- package/dist/helpers/random.d.ts +0 -10
- package/dist/helpers/random.d.ts.map +0 -1
- package/dist/helpers/sdk-loader.d.mts +0 -25
- package/dist/helpers/sdk-loader.d.ts +0 -25
- package/dist/helpers/sdk-loader.d.ts.map +0 -1
- package/dist/helpers/signatures.d.mts +0 -17
- package/dist/helpers/signatures.d.ts +0 -17
- package/dist/helpers/signatures.d.ts.map +0 -1
- package/dist/helpers/string.d.mts +0 -17
- package/dist/helpers/string.d.ts +0 -17
- package/dist/helpers/string.d.ts.map +0 -1
- package/dist/helpers/types.d.mts +0 -39
- package/dist/helpers/types.d.ts +0 -39
- package/dist/helpers/types.d.ts.map +0 -1
- package/dist/helpers/url.d.mts +0 -11
- package/dist/helpers/url.d.ts +0 -11
- package/dist/helpers/url.d.ts.map +0 -1
- package/dist/helpers/window.d.mts +0 -37
- package/dist/helpers/window.d.ts +0 -37
- package/dist/helpers/window.d.ts.map +0 -1
- package/dist/helpers/zod.d.mts +0 -51
- package/dist/helpers/zod.d.ts +0 -51
- package/dist/helpers/zod.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -7
- package/dist/index.mjs.map +0 -7
- package/dist/instructions/actions/index.d.mts +0 -5
- package/dist/instructions/actions/index.d.ts +0 -5
- package/dist/instructions/actions/index.d.ts.map +0 -1
- package/dist/instructions/actions/refuel/index.d.mts +0 -15
- package/dist/instructions/actions/refuel/index.d.ts +0 -15
- package/dist/instructions/actions/refuel/index.d.ts.map +0 -1
- package/dist/instructions/actions/swap/index.d.mts +0 -19
- package/dist/instructions/actions/swap/index.d.ts +0 -19
- package/dist/instructions/actions/swap/index.d.ts.map +0 -1
- package/dist/instructions/actions/sweep/index.d.mts +0 -16
- package/dist/instructions/actions/sweep/index.d.ts +0 -16
- package/dist/instructions/actions/sweep/index.d.ts.map +0 -1
- package/dist/instructions/actions/transfer/index.d.mts +0 -13
- package/dist/instructions/actions/transfer/index.d.ts +0 -13
- package/dist/instructions/actions/transfer/index.d.ts.map +0 -1
- package/dist/instructions/activate.d.mts +0 -84
- package/dist/instructions/activate.d.ts +0 -84
- package/dist/instructions/activate.d.ts.map +0 -1
- package/dist/instructions/build.d.mts +0 -146
- package/dist/instructions/build.d.ts +0 -146
- package/dist/instructions/build.d.ts.map +0 -1
- package/dist/instructions/constants.d.mts +0 -9
- package/dist/instructions/constants.d.ts +0 -9
- package/dist/instructions/constants.d.ts.map +0 -1
- package/dist/instructions/contracts/artifacts/abi/build-instruction-action-arguments-abi.d.mts +0 -609
- package/dist/instructions/contracts/artifacts/abi/build-instruction-action-arguments-abi.d.ts +0 -609
- package/dist/instructions/contracts/artifacts/abi/build-instruction-action-arguments-abi.d.ts.map +0 -1
- package/dist/instructions/types.d.mts +0 -289
- package/dist/instructions/types.d.ts +0 -289
- package/dist/instructions/types.d.ts.map +0 -1
- package/dist/payments/action-names.d.mts +0 -16
- package/dist/payments/action-names.d.ts +0 -16
- package/dist/payments/action-names.d.ts.map +0 -1
- package/dist/payments/actions/index.d.mts +0 -5
- package/dist/payments/actions/index.d.ts +0 -5
- package/dist/payments/actions/index.d.ts.map +0 -1
- package/dist/payments/actions/sweep-cctp.d.mts +0 -15
- package/dist/payments/actions/sweep-cctp.d.ts +0 -15
- package/dist/payments/actions/sweep-cctp.d.ts.map +0 -1
- package/dist/payments/actions/sweep-erc20.d.mts +0 -12
- package/dist/payments/actions/sweep-erc20.d.ts +0 -12
- package/dist/payments/actions/sweep-erc20.d.ts.map +0 -1
- package/dist/payments/actions/sweep-uniswap-v3.d.mts +0 -17
- package/dist/payments/actions/sweep-uniswap-v3.d.ts +0 -17
- package/dist/payments/actions/sweep-uniswap-v3.d.ts.map +0 -1
- package/dist/payments/actions/sweep.d.mts +0 -12
- package/dist/payments/actions/sweep.d.ts +0 -12
- package/dist/payments/actions/sweep.d.ts.map +0 -1
- package/dist/payments/build.d.mts +0 -28
- package/dist/payments/build.d.ts +0 -28
- package/dist/payments/build.d.ts.map +0 -1
- package/dist/payments/chain-token-config-builder.d.mts +0 -10
- package/dist/payments/chain-token-config-builder.d.ts +0 -10
- package/dist/payments/chain-token-config-builder.d.ts.map +0 -1
- package/dist/payments/comprehensive-payment-request.d.mts +0 -26
- package/dist/payments/comprehensive-payment-request.d.ts +0 -26
- package/dist/payments/comprehensive-payment-request.d.ts.map +0 -1
- package/dist/payments/config/cctp.d.mts +0 -14
- package/dist/payments/config/cctp.d.ts +0 -14
- package/dist/payments/config/cctp.d.ts.map +0 -1
- package/dist/payments/config/index.d.mts +0 -3
- package/dist/payments/config/index.d.ts +0 -3
- package/dist/payments/config/index.d.ts.map +0 -1
- package/dist/payments/config/tokens.d.mts +0 -14
- package/dist/payments/config/tokens.d.ts +0 -14
- package/dist/payments/config/tokens.d.ts.map +0 -1
- package/dist/payments/instruction-registry.d.mts +0 -19
- package/dist/payments/instruction-registry.d.ts +0 -19
- package/dist/payments/instruction-registry.d.ts.map +0 -1
- package/dist/payments/payment-metadata-builder.d.mts +0 -56
- package/dist/payments/payment-metadata-builder.d.ts +0 -56
- package/dist/payments/payment-metadata-builder.d.ts.map +0 -1
- package/dist/payments/payment-metadata.d.mts +0 -15
- package/dist/payments/payment-metadata.d.ts +0 -15
- package/dist/payments/payment-metadata.d.ts.map +0 -1
- package/dist/payments/payment-request-token-resolver.d.mts +0 -25
- package/dist/payments/payment-request-token-resolver.d.ts +0 -25
- package/dist/payments/payment-request-token-resolver.d.ts.map +0 -1
- package/dist/payments/types.d.mts +0 -40
- package/dist/payments/types.d.ts +0 -40
- package/dist/payments/types.d.ts.map +0 -1
- package/dist/payments/validation.d.mts +0 -19
- package/dist/payments/validation.d.ts +0 -19
- package/dist/payments/validation.d.ts.map +0 -1
- package/dist/schemas/account.d.mts +0 -9
- package/dist/schemas/account.d.ts +0 -9
- package/dist/schemas/account.d.ts.map +0 -1
- package/dist/schemas/brand.d.mts +0 -7
- package/dist/schemas/brand.d.ts +0 -7
- package/dist/schemas/brand.d.ts.map +0 -1
- package/dist/schemas/contact.d.mts +0 -18
- package/dist/schemas/contact.d.ts +0 -18
- package/dist/schemas/contact.d.ts.map +0 -1
- package/dist/schemas/index.d.ts.map +0 -1
- package/dist/schemas/instruction.d.mts +0 -248
- package/dist/schemas/instruction.d.ts +0 -248
- package/dist/schemas/instruction.d.ts.map +0 -1
- package/dist/schemas/misc.d.mts +0 -36
- package/dist/schemas/misc.d.ts +0 -36
- package/dist/schemas/misc.d.ts.map +0 -1
- package/dist/schemas/payment.d.mts +0 -64
- package/dist/schemas/payment.d.ts +0 -64
- package/dist/schemas/payment.d.ts.map +0 -1
- package/dist/schemas/token.d.mts +0 -17
- package/dist/schemas/token.d.ts +0 -17
- package/dist/schemas/token.d.ts.map +0 -1
- package/dist/schemas/transaction.d.mts +0 -65
- package/dist/schemas/transaction.d.ts +0 -65
- package/dist/schemas/transaction.d.ts.map +0 -1
- package/dist/schemas/user.d.mts +0 -24
- package/dist/schemas/user.d.ts +0 -24
- package/dist/schemas/user.d.ts.map +0 -1
- package/dist/server/client.d.mts +0 -3
- package/dist/server/client.d.ts +0 -3
- package/dist/server/client.d.ts.map +0 -1
- package/dist/server/routes/account.d.mts +0 -4
- package/dist/server/routes/account.d.ts +0 -4
- package/dist/server/routes/account.d.ts.map +0 -1
- package/dist/server/routes/auth.d.mts +0 -28
- package/dist/server/routes/auth.d.ts +0 -28
- package/dist/server/routes/auth.d.ts.map +0 -1
- package/dist/server/routes/bridge.d.mts +0 -254
- package/dist/server/routes/bridge.d.ts +0 -254
- package/dist/server/routes/bridge.d.ts.map +0 -1
- package/dist/server/routes/config.d.mts +0 -3
- package/dist/server/routes/config.d.ts +0 -3
- package/dist/server/routes/config.d.ts.map +0 -1
- package/dist/server/routes/index.d.mts +0 -8
- package/dist/server/routes/index.d.ts +0 -8
- package/dist/server/routes/index.d.ts.map +0 -1
- package/dist/server/routes/instruction.d.mts +0 -4
- package/dist/server/routes/instruction.d.ts +0 -4
- package/dist/server/routes/instruction.d.ts.map +0 -1
- package/dist/server/routes/integration.d.mts +0 -4
- package/dist/server/routes/integration.d.ts +0 -4
- package/dist/server/routes/integration.d.ts.map +0 -1
- package/dist/server/routes/payments.d.mts +0 -5
- package/dist/server/routes/payments.d.ts +0 -5
- package/dist/server/routes/payments.d.ts.map +0 -1
- package/dist/server/routes/verify.d.mts +0 -3
- package/dist/server/routes/verify.d.ts +0 -3
- package/dist/server/routes/verify.d.ts.map +0 -1
- package/dist/wallet/wagmi/config.d.mts +0 -18
- package/dist/wallet/wagmi/config.d.ts +0 -18
- package/dist/wallet/wagmi/config.d.ts.map +0 -1
|
@@ -1,289 +0,0 @@
|
|
|
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
|
|
@@ -1,289 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|