@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../src/helpers/zod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,aAAa,KAAK,IAAI,CAAC;AAEnE,eAAO,MAAM,iBAAiB,GAAI,CAAC,EAAE,YAAY,SAAS,CAAC,CAAC,CAAC,EAAE,MACrD,MAAM,CAAC,EAAE,KAAK,CAAC,CAAC,aAAa,SAKtC,CAAC;AAiBF;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,GAClC,WAAW,MAAM,EACjB,UAAS;IACP,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CACvB,+BA6BP,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,GACtB,MAAM,EACN,MAAM,SAAS,UAAU,GAAG,SAAS,CAAC,GACnC,CAAC,IAAI,MAAM,MAAM,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAC1C,CAAC,EAEF,QAAQ,MAAM,EACd,QAAQ,MAAM,KACb,CAAC,CAAC,KAAK,CAAC,MAAM,CAShB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,+DAIjC,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,6GAK7B,CAAC;AAaJ;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GACjC,QAAQ,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,EACrC,YAAY,OAAO,KAClB,MAAM,GAAG,SAcX,CAAC"}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
package/dist/index.js.map
DELETED
package/dist/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/instructions/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { GasLimitConfigurablePayload, ScheduledInstructionBuildPayload, TokenInstructionPayload } from "../../types";
|
|
2
|
-
import type { InstructionBuildRequest } from "@otim/utils/api";
|
|
3
|
-
import type { Address } from "@otim/utils/schemas";
|
|
4
|
-
/**
|
|
5
|
-
* Payload for building a refuel instruction.
|
|
6
|
-
* Automatically refuels a target address when balance drops below threshold.
|
|
7
|
-
* Supports both native currency and ERC20 token refueling.
|
|
8
|
-
*/
|
|
9
|
-
export interface RefuelBuildPayload extends ScheduledInstructionBuildPayload, TokenInstructionPayload, GasLimitConfigurablePayload {
|
|
10
|
-
target: Address;
|
|
11
|
-
threshold: string;
|
|
12
|
-
endBalance: string;
|
|
13
|
-
}
|
|
14
|
-
export declare function createRefuelBuildPayload(payload: RefuelBuildPayload): InstructionBuildRequest;
|
|
15
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { GasLimitConfigurablePayload, ScheduledInstructionBuildPayload, TokenInstructionPayload } from "../../types";
|
|
2
|
-
import type { InstructionBuildRequest } from "@otim/utils/api";
|
|
3
|
-
import type { Address } from "@otim/utils/schemas";
|
|
4
|
-
/**
|
|
5
|
-
* Payload for building a refuel instruction.
|
|
6
|
-
* Automatically refuels a target address when balance drops below threshold.
|
|
7
|
-
* Supports both native currency and ERC20 token refueling.
|
|
8
|
-
*/
|
|
9
|
-
export interface RefuelBuildPayload extends ScheduledInstructionBuildPayload, TokenInstructionPayload, GasLimitConfigurablePayload {
|
|
10
|
-
target: Address;
|
|
11
|
-
threshold: string;
|
|
12
|
-
endBalance: string;
|
|
13
|
-
}
|
|
14
|
-
export declare function createRefuelBuildPayload(payload: RefuelBuildPayload): InstructionBuildRequest;
|
|
15
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/instructions/actions/refuel/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,gCAAgC,EAChC,uBAAuB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAmB,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAMnD;;;;GAIG;AACH,MAAM,WAAW,kBACf,SAAQ,gCAAgC,EACtC,uBAAuB,EACvB,2BAA2B;IAE7B,MAAM,EAAE,OAAO,CAAC;IAEhB,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,kBAAkB,GAC1B,uBAAuB,CA+BzB"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { ScheduledInstructionBuildPayload } from "../../types";
|
|
2
|
-
import type { InstructionBuildRequest } from "@otim/utils/api";
|
|
3
|
-
import type { Address } from "@otim/utils/schemas";
|
|
4
|
-
/**
|
|
5
|
-
* Payload for building a Uniswap V3 exact input swap instruction.
|
|
6
|
-
* Swaps a specific input amount for a minimum output amount using Uniswap V3.
|
|
7
|
-
*/
|
|
8
|
-
export interface UniswapV3ExactInputBuildPayload extends ScheduledInstructionBuildPayload {
|
|
9
|
-
tokenIn: Address;
|
|
10
|
-
tokenOut: Address;
|
|
11
|
-
feeTier: string;
|
|
12
|
-
amountIn: string;
|
|
13
|
-
floorAmountOut: string;
|
|
14
|
-
recipient: Address;
|
|
15
|
-
meanPriceLookBack?: number;
|
|
16
|
-
maxPriceDeviationBps?: number;
|
|
17
|
-
}
|
|
18
|
-
export declare function createUniswapV3ExactInputBuildPayload(payload: UniswapV3ExactInputBuildPayload): InstructionBuildRequest;
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { ScheduledInstructionBuildPayload } from "../../types";
|
|
2
|
-
import type { InstructionBuildRequest } from "@otim/utils/api";
|
|
3
|
-
import type { Address } from "@otim/utils/schemas";
|
|
4
|
-
/**
|
|
5
|
-
* Payload for building a Uniswap V3 exact input swap instruction.
|
|
6
|
-
* Swaps a specific input amount for a minimum output amount using Uniswap V3.
|
|
7
|
-
*/
|
|
8
|
-
export interface UniswapV3ExactInputBuildPayload extends ScheduledInstructionBuildPayload {
|
|
9
|
-
tokenIn: Address;
|
|
10
|
-
tokenOut: Address;
|
|
11
|
-
feeTier: string;
|
|
12
|
-
amountIn: string;
|
|
13
|
-
floorAmountOut: string;
|
|
14
|
-
recipient: Address;
|
|
15
|
-
meanPriceLookBack?: number;
|
|
16
|
-
maxPriceDeviationBps?: number;
|
|
17
|
-
}
|
|
18
|
-
export declare function createUniswapV3ExactInputBuildPayload(payload: UniswapV3ExactInputBuildPayload): InstructionBuildRequest;
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/instructions/actions/swap/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,KAAK,EAAmB,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAMnD;;;GAGG;AACH,MAAM,WAAW,+BACf,SAAQ,gCAAgC;IAExC,OAAO,EAAE,OAAO,CAAC;IAEjB,QAAQ,EAAE,OAAO,CAAC;IAElB,OAAO,EAAE,MAAM,CAAC;IAEhB,QAAQ,EAAE,MAAM,CAAC;IAEjB,cAAc,EAAE,MAAM,CAAC;IAEvB,SAAS,EAAE,OAAO,CAAC;IAEnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,wBAAgB,qCAAqC,CACnD,OAAO,EAAE,+BAA+B,GACvC,uBAAuB,CA0BzB"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { BaseInstructionBuildPayload, TokenInstructionPayload } from "../../types";
|
|
2
|
-
import type { InstructionBuildRequest } from "@otim/utils/api";
|
|
3
|
-
import type { Address } from "@otim/utils/schemas";
|
|
4
|
-
/**
|
|
5
|
-
* Payload for building a sweep deposit account instruction.
|
|
6
|
-
* Automatically sweeps funds from a deposit account when balance exceeds threshold.
|
|
7
|
-
* Supports both native currency and ERC20 token sweeping.
|
|
8
|
-
* Note: This action does NOT support scheduling or gas limit configuration.
|
|
9
|
-
*/
|
|
10
|
-
export interface SweepDepositAccountBuildPayload extends BaseInstructionBuildPayload, TokenInstructionPayload {
|
|
11
|
-
recipient: Address;
|
|
12
|
-
threshold: string;
|
|
13
|
-
depositor: Address;
|
|
14
|
-
}
|
|
15
|
-
export declare function createSweepDepositAccountBuildPayload(payload: SweepDepositAccountBuildPayload): InstructionBuildRequest;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { BaseInstructionBuildPayload, TokenInstructionPayload } from "../../types";
|
|
2
|
-
import type { InstructionBuildRequest } from "@otim/utils/api";
|
|
3
|
-
import type { Address } from "@otim/utils/schemas";
|
|
4
|
-
/**
|
|
5
|
-
* Payload for building a sweep deposit account instruction.
|
|
6
|
-
* Automatically sweeps funds from a deposit account when balance exceeds threshold.
|
|
7
|
-
* Supports both native currency and ERC20 token sweeping.
|
|
8
|
-
* Note: This action does NOT support scheduling or gas limit configuration.
|
|
9
|
-
*/
|
|
10
|
-
export interface SweepDepositAccountBuildPayload extends BaseInstructionBuildPayload, TokenInstructionPayload {
|
|
11
|
-
recipient: Address;
|
|
12
|
-
threshold: string;
|
|
13
|
-
depositor: Address;
|
|
14
|
-
}
|
|
15
|
-
export declare function createSweepDepositAccountBuildPayload(payload: SweepDepositAccountBuildPayload): InstructionBuildRequest;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/instructions/actions/sweep/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,uBAAuB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAmB,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAMnD;;;;;GAKG;AACH,MAAM,WAAW,+BACf,SAAQ,2BAA2B,EACjC,uBAAuB;IAEzB,SAAS,EAAE,OAAO,CAAC;IAEnB,SAAS,EAAE,MAAM,CAAC;IAElB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,qCAAqC,CACnD,OAAO,EAAE,+BAA+B,GACvC,uBAAuB,CA0BzB"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { GasLimitConfigurablePayload, ScheduledInstructionBuildPayload, TokenInstructionPayload } from "../../types";
|
|
2
|
-
import type { InstructionBuildRequest } from "@otim/utils/api";
|
|
3
|
-
import type { Address } from "@otim/utils/schemas";
|
|
4
|
-
/**
|
|
5
|
-
* Payload for building a transfer instruction.
|
|
6
|
-
* Supports both native currency and ERC20 token transfers.
|
|
7
|
-
*/
|
|
8
|
-
export interface TransferBuildPayload extends ScheduledInstructionBuildPayload, TokenInstructionPayload, GasLimitConfigurablePayload {
|
|
9
|
-
target: Address;
|
|
10
|
-
value: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function createTransferBuildPayload(payload: TransferBuildPayload): InstructionBuildRequest;
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { GasLimitConfigurablePayload, ScheduledInstructionBuildPayload, TokenInstructionPayload } from "../../types";
|
|
2
|
-
import type { InstructionBuildRequest } from "@otim/utils/api";
|
|
3
|
-
import type { Address } from "@otim/utils/schemas";
|
|
4
|
-
/**
|
|
5
|
-
* Payload for building a transfer instruction.
|
|
6
|
-
* Supports both native currency and ERC20 token transfers.
|
|
7
|
-
*/
|
|
8
|
-
export interface TransferBuildPayload extends ScheduledInstructionBuildPayload, TokenInstructionPayload, GasLimitConfigurablePayload {
|
|
9
|
-
target: Address;
|
|
10
|
-
value: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function createTransferBuildPayload(payload: TransferBuildPayload): InstructionBuildRequest;
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/instructions/actions/transfer/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,gCAAgC,EAChC,uBAAuB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAmB,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAMnD;;;GAGG;AACH,MAAM,WAAW,oBACf,SAAQ,gCAAgC,EACtC,uBAAuB,EACvB,2BAA2B;IAE7B,MAAM,EAAE,OAAO,CAAC;IAEhB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,oBAAoB,GAC5B,uBAAuB,CA8BzB"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import type { InstructionActivateRequest } from "@otim/utils/api";
|
|
2
|
-
import type { Address, HexString, InstructionAction } from "@otim/utils/schemas";
|
|
3
|
-
import type { TypedDataDomain } from "viem";
|
|
4
|
-
/**
|
|
5
|
-
* EIP-712 typed data for instruction activation signatures.
|
|
6
|
-
*/
|
|
7
|
-
export interface InstructionEIP712TypedData {
|
|
8
|
-
domain: TypedDataDomain;
|
|
9
|
-
primaryType: "Instruction";
|
|
10
|
-
types: Record<string, Array<{
|
|
11
|
-
name: string;
|
|
12
|
-
type: string;
|
|
13
|
-
}>>;
|
|
14
|
-
message: {
|
|
15
|
-
[key: string]: unknown;
|
|
16
|
-
salt: bigint;
|
|
17
|
-
maxExecutions: bigint;
|
|
18
|
-
action: HexString;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Payload for activating an instruction with all required parameters.
|
|
23
|
-
*/
|
|
24
|
-
export interface InstructionActivatePayload {
|
|
25
|
-
nickname?: string;
|
|
26
|
-
address: Address;
|
|
27
|
-
chainId: number;
|
|
28
|
-
salt: HexString;
|
|
29
|
-
maxExecutions: HexString;
|
|
30
|
-
action: HexString;
|
|
31
|
-
actionName: InstructionAction;
|
|
32
|
-
arguments: HexString;
|
|
33
|
-
signature: string;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Configuration for creating instruction signatures.
|
|
37
|
-
*/
|
|
38
|
-
export interface InstructionSignatureConfig {
|
|
39
|
-
delegateAddress: Address;
|
|
40
|
-
chainId: number;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Creates the EIP-712 domain for instruction signatures.
|
|
44
|
-
* Defines the domain separator used in typed data signing.
|
|
45
|
-
*
|
|
46
|
-
* @param config - Configuration containing delegate address and chain ID
|
|
47
|
-
* @returns TypedDataDomain object for EIP-712 signing
|
|
48
|
-
*/
|
|
49
|
-
export declare function createInstructionDomain(config: InstructionSignatureConfig): TypedDataDomain;
|
|
50
|
-
/**
|
|
51
|
-
* Decodes hex-encoded instruction parameters for EIP-712 signatures.
|
|
52
|
-
* Uses action-specific ABI definitions to properly decode arguments.
|
|
53
|
-
*
|
|
54
|
-
* @param salt - Hex-encoded salt value for instruction uniqueness
|
|
55
|
-
* @param maxExecutions - Hex-encoded maximum execution count
|
|
56
|
-
* @param argumentsHex - Hex-encoded action-specific arguments
|
|
57
|
-
* @param actionName - Name of the instruction action
|
|
58
|
-
* @returns Decoded parameters as TypeScript primitives
|
|
59
|
-
* @throws Error if action has no EIP-712 types or ABI definition
|
|
60
|
-
*/
|
|
61
|
-
export declare function decodeInstructionParameters(salt: HexString, maxExecutions: HexString, argumentsHex: HexString, actionName: InstructionAction): {
|
|
62
|
-
decodedSalt: bigint;
|
|
63
|
-
decodedMaxExecutions: bigint;
|
|
64
|
-
decodedArguments: Record<string, unknown>;
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* Creates EIP-712 typed data for instruction activation.
|
|
68
|
-
* Automatically handles ABI decoding based on action type.
|
|
69
|
-
*
|
|
70
|
-
* @param payload - Instruction activation payload (without signature)
|
|
71
|
-
* @param config - Signature configuration for domain creation
|
|
72
|
-
* @returns Complete EIP-712 typed data structure ready for signing
|
|
73
|
-
* @throws Error if action has no EIP-712 type definitions
|
|
74
|
-
*/
|
|
75
|
-
export declare function createInstructionTypedData(payload: Omit<InstructionActivatePayload, "signature" | "nickname">, config: InstructionSignatureConfig): InstructionEIP712TypedData;
|
|
76
|
-
/**
|
|
77
|
-
* Creates an activation payload with EIP-2098 signature format.
|
|
78
|
-
* Converts a standard signature to the compact EIP-2098 format used by the protocol.
|
|
79
|
-
*
|
|
80
|
-
* @param payload - The instruction activation payload including signature
|
|
81
|
-
* @returns Formatted activation request ready for API submission
|
|
82
|
-
*/
|
|
83
|
-
export declare function createActivationPayload(payload: InstructionActivatePayload): InstructionActivateRequest;
|
|
84
|
-
//# sourceMappingURL=activate.d.ts.map
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import type { InstructionActivateRequest } from "@otim/utils/api";
|
|
2
|
-
import type { Address, HexString, InstructionAction } from "@otim/utils/schemas";
|
|
3
|
-
import type { TypedDataDomain } from "viem";
|
|
4
|
-
/**
|
|
5
|
-
* EIP-712 typed data for instruction activation signatures.
|
|
6
|
-
*/
|
|
7
|
-
export interface InstructionEIP712TypedData {
|
|
8
|
-
domain: TypedDataDomain;
|
|
9
|
-
primaryType: "Instruction";
|
|
10
|
-
types: Record<string, Array<{
|
|
11
|
-
name: string;
|
|
12
|
-
type: string;
|
|
13
|
-
}>>;
|
|
14
|
-
message: {
|
|
15
|
-
[key: string]: unknown;
|
|
16
|
-
salt: bigint;
|
|
17
|
-
maxExecutions: bigint;
|
|
18
|
-
action: HexString;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Payload for activating an instruction with all required parameters.
|
|
23
|
-
*/
|
|
24
|
-
export interface InstructionActivatePayload {
|
|
25
|
-
nickname?: string;
|
|
26
|
-
address: Address;
|
|
27
|
-
chainId: number;
|
|
28
|
-
salt: HexString;
|
|
29
|
-
maxExecutions: HexString;
|
|
30
|
-
action: HexString;
|
|
31
|
-
actionName: InstructionAction;
|
|
32
|
-
arguments: HexString;
|
|
33
|
-
signature: string;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Configuration for creating instruction signatures.
|
|
37
|
-
*/
|
|
38
|
-
export interface InstructionSignatureConfig {
|
|
39
|
-
delegateAddress: Address;
|
|
40
|
-
chainId: number;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Creates the EIP-712 domain for instruction signatures.
|
|
44
|
-
* Defines the domain separator used in typed data signing.
|
|
45
|
-
*
|
|
46
|
-
* @param config - Configuration containing delegate address and chain ID
|
|
47
|
-
* @returns TypedDataDomain object for EIP-712 signing
|
|
48
|
-
*/
|
|
49
|
-
export declare function createInstructionDomain(config: InstructionSignatureConfig): TypedDataDomain;
|
|
50
|
-
/**
|
|
51
|
-
* Decodes hex-encoded instruction parameters for EIP-712 signatures.
|
|
52
|
-
* Uses action-specific ABI definitions to properly decode arguments.
|
|
53
|
-
*
|
|
54
|
-
* @param salt - Hex-encoded salt value for instruction uniqueness
|
|
55
|
-
* @param maxExecutions - Hex-encoded maximum execution count
|
|
56
|
-
* @param argumentsHex - Hex-encoded action-specific arguments
|
|
57
|
-
* @param actionName - Name of the instruction action
|
|
58
|
-
* @returns Decoded parameters as TypeScript primitives
|
|
59
|
-
* @throws Error if action has no EIP-712 types or ABI definition
|
|
60
|
-
*/
|
|
61
|
-
export declare function decodeInstructionParameters(salt: HexString, maxExecutions: HexString, argumentsHex: HexString, actionName: InstructionAction): {
|
|
62
|
-
decodedSalt: bigint;
|
|
63
|
-
decodedMaxExecutions: bigint;
|
|
64
|
-
decodedArguments: Record<string, unknown>;
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* Creates EIP-712 typed data for instruction activation.
|
|
68
|
-
* Automatically handles ABI decoding based on action type.
|
|
69
|
-
*
|
|
70
|
-
* @param payload - Instruction activation payload (without signature)
|
|
71
|
-
* @param config - Signature configuration for domain creation
|
|
72
|
-
* @returns Complete EIP-712 typed data structure ready for signing
|
|
73
|
-
* @throws Error if action has no EIP-712 type definitions
|
|
74
|
-
*/
|
|
75
|
-
export declare function createInstructionTypedData(payload: Omit<InstructionActivatePayload, "signature" | "nickname">, config: InstructionSignatureConfig): InstructionEIP712TypedData;
|
|
76
|
-
/**
|
|
77
|
-
* Creates an activation payload with EIP-2098 signature format.
|
|
78
|
-
* Converts a standard signature to the compact EIP-2098 format used by the protocol.
|
|
79
|
-
*
|
|
80
|
-
* @param payload - The instruction activation payload including signature
|
|
81
|
-
* @returns Formatted activation request ready for API submission
|
|
82
|
-
*/
|
|
83
|
-
export declare function createActivationPayload(payload: InstructionActivatePayload): InstructionActivateRequest;
|
|
84
|
-
//# sourceMappingURL=activate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"activate.d.ts","sourceRoot":"","sources":["../../src/instructions/activate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,KAAK,EACV,OAAO,EACP,SAAS,EACT,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAY5C;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,eAAe,CAAC;IACxB,WAAW,EAAE,aAAa,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,CAAC;IAC7D,OAAO,EAAE;QACP,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,aAAa,EAAE,MAAM,CAAC;QACtB,MAAM,EAAE,SAAS,CAAC;KACnB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;IAChB,aAAa,EAAE,SAAS,CAAC;IACzB,MAAM,EAAE,SAAS,CAAC;IAClB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,eAAe,EAAE,OAAO,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,0BAA0B,GACjC,eAAe,CAQjB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,SAAS,EACf,aAAa,EAAE,SAAS,EACxB,YAAY,EAAE,SAAS,EACvB,UAAU,EAAE,iBAAiB,GAC5B;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC3C,CAqCA;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,IAAI,CAAC,0BAA0B,EAAE,WAAW,GAAG,UAAU,CAAC,EACnE,MAAM,EAAE,0BAA0B,GACjC,0BAA0B,CA4B5B;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,0BAA0B,GAClC,0BAA0B,CAc5B"}
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import type { InstructionBuildRequest } from "@otim/utils/api";
|
|
2
|
-
import type { Address, InstructionAction } from "@otim/utils/schemas";
|
|
3
|
-
export type { BaseInstructionBuildPayload, GasLimitConfigurablePayload, ScheduledInstructionBuildPayload, TokenInstructionPayload, } from "./types";
|
|
4
|
-
/**
|
|
5
|
-
* Instruction build utilities
|
|
6
|
-
*
|
|
7
|
-
* Sections:
|
|
8
|
-
* - Types & constants
|
|
9
|
-
* - Schedule helpers
|
|
10
|
-
* - Gas/Fee helpers
|
|
11
|
-
* - Action-specific resolvers
|
|
12
|
-
* - Build payload creator
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Parameters required to assemble a build payload for an instruction action.
|
|
16
|
-
*/
|
|
17
|
-
export interface CreateBuildPayloadParams {
|
|
18
|
-
action: InstructionAction;
|
|
19
|
-
address: Address;
|
|
20
|
-
chainId: number;
|
|
21
|
-
maxExecutions: number;
|
|
22
|
-
salt?: number;
|
|
23
|
-
actionArguments: InstructionBuildRequest["actionArguments"][string];
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Build payload creator
|
|
27
|
-
*
|
|
28
|
-
* Creates the request body to build an instruction on the backend.
|
|
29
|
-
*/
|
|
30
|
-
export declare function createBuildPayload({ action, address, chainId, maxExecutions, salt, actionArguments, }: CreateBuildPayloadParams): InstructionBuildRequest;
|
|
31
|
-
/**
|
|
32
|
-
* Start specification for instruction scheduling.
|
|
33
|
-
* Determines when the instruction should begin execution.
|
|
34
|
-
*/
|
|
35
|
-
export type ScheduleStart = {
|
|
36
|
-
type: "datetime";
|
|
37
|
-
startDate: string;
|
|
38
|
-
startTime: string;
|
|
39
|
-
} | {
|
|
40
|
-
type: "now";
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Repeat policy for instruction scheduling.
|
|
44
|
-
* Controls how many times an instruction can execute.
|
|
45
|
-
*/
|
|
46
|
-
export type ScheduleRepeat = {
|
|
47
|
-
type: "max-executions";
|
|
48
|
-
maxExecutions: number;
|
|
49
|
-
} | {
|
|
50
|
-
type: "until-deactivated";
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* Advanced tuning options affecting schedule and fee behavior.
|
|
54
|
-
* Provides fine-grained control over instruction execution parameters.
|
|
55
|
-
*/
|
|
56
|
-
export interface BuildAdvancedOptions {
|
|
57
|
-
/** Maximum latency allowed for scheduled execution intervals */
|
|
58
|
-
intervalLatencyLimit?: unknown;
|
|
59
|
-
/** Lookback period for mean price calculation in swap operations */
|
|
60
|
-
meanPriceLookBack?: unknown;
|
|
61
|
-
/** Maximum allowed price deviation in basis points for swaps */
|
|
62
|
-
maxPriceDeviationBps?: string | number;
|
|
63
|
-
/** Maximum base fee per gas in Gwei for EIP-1559 transactions */
|
|
64
|
-
maxBaseFeePerGas?: number | string;
|
|
65
|
-
/** Maximum priority fee per gas in Gwei for EIP-1559 transactions */
|
|
66
|
-
maxPriorityFeePerGas?: number | string;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Resolves schedule start values.
|
|
70
|
-
* - "datetime": schedules with explicit startAt timestamp (in seconds)
|
|
71
|
-
* - "now" or omitted: starts immediately
|
|
72
|
-
*/
|
|
73
|
-
export declare const createScheduleStart: (values?: ScheduleStart) => {
|
|
74
|
-
startAt: number;
|
|
75
|
-
startBy: number;
|
|
76
|
-
};
|
|
77
|
-
/**
|
|
78
|
-
* Converts a time unit value to seconds and returns the interval field.
|
|
79
|
-
*/
|
|
80
|
-
export declare const createScheduleInterval: (values?: unknown) => {
|
|
81
|
-
interval: number;
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* Converts a time unit value to seconds and returns the timeout field.
|
|
85
|
-
* Timeout represents the maximum latency allowed for scheduled execution (0 = no limit).
|
|
86
|
-
*/
|
|
87
|
-
export declare const createScheduleIntervalLatencyLimit: (values?: unknown) => {
|
|
88
|
-
timeout: number;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* Resolves maxExecutions based on repeat policy.
|
|
92
|
-
* Returns 0 for unlimited executions when type is "until-deactivated".
|
|
93
|
-
*/
|
|
94
|
-
export declare const createScheduleRepeat: (values: ScheduleRepeat) => {
|
|
95
|
-
maxExecutions: number;
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* Assembles the schedule object when any schedule-related option is provided.
|
|
99
|
-
*/
|
|
100
|
-
export declare const resolveSchedule: (repeat: ScheduleRepeat, start?: ScheduleStart, interval?: unknown, advanced?: BuildAdvancedOptions) => {
|
|
101
|
-
maxExecutions: number;
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* Converts a Gwei value into Wei as a hex string. Returns 0x0 on invalid input.
|
|
105
|
-
*/
|
|
106
|
-
export declare const convertGweiToWei: (gweiValue: number | string) => `0x${string}`;
|
|
107
|
-
/**
|
|
108
|
-
* Fee input required to resolve base fee configuration.
|
|
109
|
-
* Specifies the token and amount for instruction execution fees.
|
|
110
|
-
*/
|
|
111
|
-
export interface BuildFeeInput {
|
|
112
|
-
/** Address of the token used to pay execution fees */
|
|
113
|
-
token: Address;
|
|
114
|
-
/** Amount of fee to pay (optional, defaults to 0) */
|
|
115
|
-
executionFee?: number | string;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Builds the fee object including EIP-1559 caps and optional pricing controls.
|
|
119
|
-
*/
|
|
120
|
-
export declare const resolveFee: (fee: BuildFeeInput, advanced?: BuildAdvancedOptions) => Record<string, unknown>;
|
|
121
|
-
/**
|
|
122
|
-
* Some actions allow an explicit gas limit. Returns { gasLimit: 0 } when
|
|
123
|
-
* needed, otherwise an empty object to keep payload minimal.
|
|
124
|
-
*/
|
|
125
|
-
export declare const resolveGasLimitIfNeeded: (action: InstructionAction) => {
|
|
126
|
-
gasLimit: number;
|
|
127
|
-
} | {
|
|
128
|
-
gasLimit?: undefined;
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* Adds depositor field for sweep deposit actions when required.
|
|
132
|
-
*/
|
|
133
|
-
export declare const resolveDepositorForSweepDepositAccountIfNeeded: (action: InstructionAction, depositorAddress: Address) => {
|
|
134
|
-
depositor: `0x${string}`;
|
|
135
|
-
} | {
|
|
136
|
-
depositor?: undefined;
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* Adds recipient field for Uniswap V3 exact input action when required.
|
|
140
|
-
*/
|
|
141
|
-
export declare const resolveRecipientForUniswapV3ExactInputIfNeeded: (action: InstructionAction, recipientAddress: Address) => {
|
|
142
|
-
recipient: `0x${string}`;
|
|
143
|
-
} | {
|
|
144
|
-
recipient?: undefined;
|
|
145
|
-
};
|
|
146
|
-
//# sourceMappingURL=build.d.ts.map
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import type { InstructionBuildRequest } from "@otim/utils/api";
|
|
2
|
-
import type { Address, InstructionAction } from "@otim/utils/schemas";
|
|
3
|
-
export type { BaseInstructionBuildPayload, GasLimitConfigurablePayload, ScheduledInstructionBuildPayload, TokenInstructionPayload, } from "./types";
|
|
4
|
-
/**
|
|
5
|
-
* Instruction build utilities
|
|
6
|
-
*
|
|
7
|
-
* Sections:
|
|
8
|
-
* - Types & constants
|
|
9
|
-
* - Schedule helpers
|
|
10
|
-
* - Gas/Fee helpers
|
|
11
|
-
* - Action-specific resolvers
|
|
12
|
-
* - Build payload creator
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Parameters required to assemble a build payload for an instruction action.
|
|
16
|
-
*/
|
|
17
|
-
export interface CreateBuildPayloadParams {
|
|
18
|
-
action: InstructionAction;
|
|
19
|
-
address: Address;
|
|
20
|
-
chainId: number;
|
|
21
|
-
maxExecutions: number;
|
|
22
|
-
salt?: number;
|
|
23
|
-
actionArguments: InstructionBuildRequest["actionArguments"][string];
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Build payload creator
|
|
27
|
-
*
|
|
28
|
-
* Creates the request body to build an instruction on the backend.
|
|
29
|
-
*/
|
|
30
|
-
export declare function createBuildPayload({ action, address, chainId, maxExecutions, salt, actionArguments, }: CreateBuildPayloadParams): InstructionBuildRequest;
|
|
31
|
-
/**
|
|
32
|
-
* Start specification for instruction scheduling.
|
|
33
|
-
* Determines when the instruction should begin execution.
|
|
34
|
-
*/
|
|
35
|
-
export type ScheduleStart = {
|
|
36
|
-
type: "datetime";
|
|
37
|
-
startDate: string;
|
|
38
|
-
startTime: string;
|
|
39
|
-
} | {
|
|
40
|
-
type: "now";
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Repeat policy for instruction scheduling.
|
|
44
|
-
* Controls how many times an instruction can execute.
|
|
45
|
-
*/
|
|
46
|
-
export type ScheduleRepeat = {
|
|
47
|
-
type: "max-executions";
|
|
48
|
-
maxExecutions: number;
|
|
49
|
-
} | {
|
|
50
|
-
type: "until-deactivated";
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* Advanced tuning options affecting schedule and fee behavior.
|
|
54
|
-
* Provides fine-grained control over instruction execution parameters.
|
|
55
|
-
*/
|
|
56
|
-
export interface BuildAdvancedOptions {
|
|
57
|
-
/** Maximum latency allowed for scheduled execution intervals */
|
|
58
|
-
intervalLatencyLimit?: unknown;
|
|
59
|
-
/** Lookback period for mean price calculation in swap operations */
|
|
60
|
-
meanPriceLookBack?: unknown;
|
|
61
|
-
/** Maximum allowed price deviation in basis points for swaps */
|
|
62
|
-
maxPriceDeviationBps?: string | number;
|
|
63
|
-
/** Maximum base fee per gas in Gwei for EIP-1559 transactions */
|
|
64
|
-
maxBaseFeePerGas?: number | string;
|
|
65
|
-
/** Maximum priority fee per gas in Gwei for EIP-1559 transactions */
|
|
66
|
-
maxPriorityFeePerGas?: number | string;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Resolves schedule start values.
|
|
70
|
-
* - "datetime": schedules with explicit startAt timestamp (in seconds)
|
|
71
|
-
* - "now" or omitted: starts immediately
|
|
72
|
-
*/
|
|
73
|
-
export declare const createScheduleStart: (values?: ScheduleStart) => {
|
|
74
|
-
startAt: number;
|
|
75
|
-
startBy: number;
|
|
76
|
-
};
|
|
77
|
-
/**
|
|
78
|
-
* Converts a time unit value to seconds and returns the interval field.
|
|
79
|
-
*/
|
|
80
|
-
export declare const createScheduleInterval: (values?: unknown) => {
|
|
81
|
-
interval: number;
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* Converts a time unit value to seconds and returns the timeout field.
|
|
85
|
-
* Timeout represents the maximum latency allowed for scheduled execution (0 = no limit).
|
|
86
|
-
*/
|
|
87
|
-
export declare const createScheduleIntervalLatencyLimit: (values?: unknown) => {
|
|
88
|
-
timeout: number;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* Resolves maxExecutions based on repeat policy.
|
|
92
|
-
* Returns 0 for unlimited executions when type is "until-deactivated".
|
|
93
|
-
*/
|
|
94
|
-
export declare const createScheduleRepeat: (values: ScheduleRepeat) => {
|
|
95
|
-
maxExecutions: number;
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* Assembles the schedule object when any schedule-related option is provided.
|
|
99
|
-
*/
|
|
100
|
-
export declare const resolveSchedule: (repeat: ScheduleRepeat, start?: ScheduleStart, interval?: unknown, advanced?: BuildAdvancedOptions) => {
|
|
101
|
-
maxExecutions: number;
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* Converts a Gwei value into Wei as a hex string. Returns 0x0 on invalid input.
|
|
105
|
-
*/
|
|
106
|
-
export declare const convertGweiToWei: (gweiValue: number | string) => `0x${string}`;
|
|
107
|
-
/**
|
|
108
|
-
* Fee input required to resolve base fee configuration.
|
|
109
|
-
* Specifies the token and amount for instruction execution fees.
|
|
110
|
-
*/
|
|
111
|
-
export interface BuildFeeInput {
|
|
112
|
-
/** Address of the token used to pay execution fees */
|
|
113
|
-
token: Address;
|
|
114
|
-
/** Amount of fee to pay (optional, defaults to 0) */
|
|
115
|
-
executionFee?: number | string;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Builds the fee object including EIP-1559 caps and optional pricing controls.
|
|
119
|
-
*/
|
|
120
|
-
export declare const resolveFee: (fee: BuildFeeInput, advanced?: BuildAdvancedOptions) => Record<string, unknown>;
|
|
121
|
-
/**
|
|
122
|
-
* Some actions allow an explicit gas limit. Returns { gasLimit: 0 } when
|
|
123
|
-
* needed, otherwise an empty object to keep payload minimal.
|
|
124
|
-
*/
|
|
125
|
-
export declare const resolveGasLimitIfNeeded: (action: InstructionAction) => {
|
|
126
|
-
gasLimit: number;
|
|
127
|
-
} | {
|
|
128
|
-
gasLimit?: undefined;
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* Adds depositor field for sweep deposit actions when required.
|
|
132
|
-
*/
|
|
133
|
-
export declare const resolveDepositorForSweepDepositAccountIfNeeded: (action: InstructionAction, depositorAddress: Address) => {
|
|
134
|
-
depositor: `0x${string}`;
|
|
135
|
-
} | {
|
|
136
|
-
depositor?: undefined;
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* Adds recipient field for Uniswap V3 exact input action when required.
|
|
140
|
-
*/
|
|
141
|
-
export declare const resolveRecipientForUniswapV3ExactInputIfNeeded: (action: InstructionAction, recipientAddress: Address) => {
|
|
142
|
-
recipient: `0x${string}`;
|
|
143
|
-
} | {
|
|
144
|
-
recipient?: undefined;
|
|
145
|
-
};
|
|
146
|
-
//# sourceMappingURL=build.d.ts.map
|