@coinbase/cdp-sdk 1.50.0 → 1.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -29
- package/_cjs/accounts/evm/chainToNetworkMapper.js.map +1 -1
- package/_cjs/accounts/evm/eip6492.js.map +1 -1
- package/_cjs/accounts/evm/getBaseNodeRpcUrl.js.map +1 -1
- package/_cjs/accounts/evm/networkCapabilities.js.map +1 -1
- package/_cjs/accounts/evm/networkToChainResolver.js.map +1 -1
- package/_cjs/accounts/evm/resolveViemClients.js.map +1 -1
- package/_cjs/accounts/evm/toEvmDelegatedAccount.js.map +1 -1
- package/_cjs/accounts/evm/toEvmServerAccount.js.map +1 -1
- package/_cjs/accounts/evm/toEvmSmartAccount.js.map +1 -1
- package/_cjs/accounts/evm/toNetworkScopedEvmServerAccount.js.map +1 -1
- package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
- package/_cjs/accounts/evm/types.js.map +1 -1
- package/_cjs/accounts/solana/toSolanaAccount.js.map +1 -1
- package/_cjs/accounts/solana/types.js.map +1 -1
- package/_cjs/actions/evm/getUserOperation.js.map +1 -1
- package/_cjs/actions/evm/listSpendPermissions.js.map +1 -1
- package/_cjs/actions/evm/listTokenBalances.js.map +1 -1
- package/_cjs/actions/evm/requestFaucet.js.map +1 -1
- package/_cjs/actions/evm/sendTransaction.js.map +1 -1
- package/_cjs/actions/evm/sendUserOperation.js.map +1 -1
- package/_cjs/actions/evm/signAndWrapTypedDataForSmartAccount.js.map +1 -1
- package/_cjs/actions/evm/spend-permissions/account.use.js.map +1 -1
- package/_cjs/actions/evm/spend-permissions/resolveSpendPermission.js.map +1 -1
- package/_cjs/actions/evm/spend-permissions/smartAccount.use.js.map +1 -1
- package/_cjs/actions/evm/spend-permissions/types.js.map +1 -1
- package/_cjs/actions/evm/swap/createSwapQuote.js.map +1 -1
- package/_cjs/actions/evm/swap/getSwapPrice.js.map +1 -1
- package/_cjs/actions/evm/swap/sendSwapOperation.js.map +1 -1
- package/_cjs/actions/evm/swap/sendSwapTransaction.js.map +1 -1
- package/_cjs/actions/evm/swap/types.js.map +1 -1
- package/_cjs/actions/evm/transfer/accountTransferStrategy.js.map +1 -1
- package/_cjs/actions/evm/transfer/smartAccountTransferStrategy.js.map +1 -1
- package/_cjs/actions/evm/transfer/transfer.js.map +1 -1
- package/_cjs/actions/evm/transfer/transferWithViem.js +0 -11
- package/_cjs/actions/evm/transfer/transferWithViem.js.map +1 -1
- package/_cjs/actions/evm/transfer/types.js.map +1 -1
- package/_cjs/actions/evm/transfer/utils.js.map +1 -1
- package/_cjs/actions/evm/types.js.map +1 -1
- package/_cjs/actions/evm/waitForEvmEip7702DelegationStatus.js.map +1 -1
- package/_cjs/actions/evm/waitForUserOperation.js.map +1 -1
- package/_cjs/actions/solana/constants.js.map +1 -1
- package/_cjs/actions/solana/requestFaucet.js.map +1 -1
- package/_cjs/actions/solana/rpc.js.map +1 -1
- package/_cjs/actions/solana/sendTransaction.js.map +1 -1
- package/_cjs/actions/solana/signMessage.js.map +1 -1
- package/_cjs/actions/solana/signTransaction.js.map +1 -1
- package/_cjs/actions/solana/transfer.js.map +1 -1
- package/_cjs/actions/solana/types.js.map +1 -1
- package/_cjs/actions/solana/utils.js.map +1 -1
- package/_cjs/actions/webhooks/createWebhookSubscription.js.map +1 -1
- package/_cjs/actions/webhooks/index.js.map +1 -1
- package/_cjs/analytics.js.map +1 -1
- package/_cjs/auth/errors.js.map +1 -1
- package/_cjs/auth/hooks/axios/index.js.map +1 -1
- package/_cjs/auth/hooks/axios/withAuth.js.map +1 -1
- package/_cjs/auth/index.js.map +1 -1
- package/_cjs/auth/utils/hash.js.map +1 -1
- package/_cjs/auth/utils/http.js.map +1 -1
- package/_cjs/auth/utils/index.js.map +1 -1
- package/_cjs/auth/utils/jwt.js.map +1 -1
- package/_cjs/auth/utils/ws.js.map +1 -1
- package/_cjs/client/cdp.js.map +1 -1
- package/_cjs/client/end-user/endUser.js.map +1 -1
- package/_cjs/client/end-user/endUser.types.js.map +1 -1
- package/_cjs/client/end-user/toEndUserAccount.js.map +1 -1
- package/_cjs/client/evm/evm.js.map +1 -1
- package/_cjs/client/evm/evm.types.js.map +1 -1
- package/_cjs/client/policies/index.js.map +1 -1
- package/_cjs/client/policies/policies.js.map +1 -1
- package/_cjs/client/policies/policies.types.js.map +1 -1
- package/_cjs/client/solana/index.js.map +1 -1
- package/_cjs/client/solana/solana.js.map +1 -1
- package/_cjs/client/solana/solana.types.js.map +1 -1
- package/_cjs/client/webhooks/webhooks.js.map +1 -1
- package/_cjs/constants.js.map +1 -1
- package/_cjs/errors.js.map +1 -1
- package/_cjs/index.js.map +1 -1
- package/_cjs/openapi-client/cdpApiClient.js.map +1 -1
- package/_cjs/openapi-client/errors.js.map +1 -1
- package/_cjs/openapi-client/generated/accounts/accounts.js +50 -0
- package/_cjs/openapi-client/generated/accounts/accounts.js.map +1 -0
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +526 -46
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_cjs/openapi-client/generated/deposit-destinations/deposit-destinations.js +34 -0
- package/_cjs/openapi-client/generated/deposit-destinations/deposit-destinations.js.map +1 -0
- package/_cjs/openapi-client/generated/end-user-account-management/end-user-account-management.js +132 -0
- package/_cjs/openapi-client/generated/end-user-account-management/end-user-account-management.js.map +1 -0
- package/_cjs/openapi-client/generated/end-user-accounts/end-user-accounts.js +228 -74
- package/_cjs/openapi-client/generated/end-user-accounts/end-user-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js +12 -12
- package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +10 -10
- package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-swaps/evm-swaps.js +2 -2
- package/_cjs/openapi-client/generated/evm-swaps/evm-swaps.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.js.map +1 -1
- package/_cjs/openapi-client/generated/faucets/faucets.js.map +1 -1
- package/_cjs/openapi-client/generated/onchain-data/onchain-data.js.map +1 -1
- package/_cjs/openapi-client/generated/onramp/onramp.js.map +1 -1
- package/_cjs/openapi-client/generated/payment-methods/payment-methods.js +28 -0
- package/_cjs/openapi-client/generated/payment-methods/payment-methods.js.map +1 -0
- package/_cjs/openapi-client/generated/policy-engine/policy-engine.js +4 -4
- package/_cjs/openapi-client/generated/policy-engine/policy-engine.js.map +1 -1
- package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.js +11 -11
- package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/solana-token-balances/solana-token-balances.js.map +1 -1
- package/_cjs/openapi-client/generated/sql-api/sql-api.js +1 -1
- package/_cjs/openapi-client/generated/sql-api/sql-api.js.map +1 -1
- package/_cjs/openapi-client/generated/transfers/transfers.js +87 -0
- package/_cjs/openapi-client/generated/transfers/transfers.js.map +1 -0
- package/_cjs/openapi-client/generated/webhooks/webhooks.js +1 -1
- package/_cjs/openapi-client/generated/webhooks/webhooks.js.map +1 -1
- package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.js +3 -3
- package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.js.map +1 -1
- package/_cjs/openapi-client/index.js +7 -3
- package/_cjs/openapi-client/index.js.map +1 -1
- package/_cjs/policies/evmSchema.js +54 -1
- package/_cjs/policies/evmSchema.js.map +1 -1
- package/_cjs/policies/solanaSchema.js.map +1 -1
- package/_cjs/policies/types.js +2 -0
- package/_cjs/policies/types.js.map +1 -1
- package/_cjs/spend-permissions/constants.js.map +1 -1
- package/_cjs/spend-permissions/types.js.map +1 -1
- package/_cjs/spend-permissions/utils.js.map +1 -1
- package/_cjs/types/calls.js.map +1 -1
- package/_cjs/types/contract.js.map +1 -1
- package/_cjs/types/misc.js.map +1 -1
- package/_cjs/types/multicall.js.map +1 -1
- package/_cjs/types/utils.js.map +1 -1
- package/_cjs/utils/bigint.js.map +1 -1
- package/_cjs/utils/export.js.map +1 -1
- package/_cjs/utils/hash.js.map +1 -1
- package/_cjs/utils/serializeTransaction.js.map +1 -1
- package/_cjs/utils/sortKeys.js.map +1 -1
- package/_cjs/utils/uuidV4.js.map +1 -1
- package/_cjs/utils/wait.js.map +1 -1
- package/_cjs/version.js +1 -1
- package/_cjs/version.js.map +1 -1
- package/_esm/accounts/evm/chainToNetworkMapper.js.map +1 -1
- package/_esm/accounts/evm/eip6492.js.map +1 -1
- package/_esm/accounts/evm/getBaseNodeRpcUrl.js.map +1 -1
- package/_esm/accounts/evm/networkCapabilities.js.map +1 -1
- package/_esm/accounts/evm/networkToChainResolver.js.map +1 -1
- package/_esm/accounts/evm/resolveViemClients.js.map +1 -1
- package/_esm/accounts/evm/toEvmDelegatedAccount.js.map +1 -1
- package/_esm/accounts/evm/toEvmServerAccount.js.map +1 -1
- package/_esm/accounts/evm/toEvmSmartAccount.js.map +1 -1
- package/_esm/accounts/evm/toNetworkScopedEvmServerAccount.js.map +1 -1
- package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
- package/_esm/accounts/evm/types.js.map +1 -1
- package/_esm/accounts/solana/toSolanaAccount.js.map +1 -1
- package/_esm/accounts/solana/types.js.map +1 -1
- package/_esm/actions/evm/getUserOperation.js.map +1 -1
- package/_esm/actions/evm/listSpendPermissions.js.map +1 -1
- package/_esm/actions/evm/listTokenBalances.js.map +1 -1
- package/_esm/actions/evm/requestFaucet.js.map +1 -1
- package/_esm/actions/evm/sendTransaction.js.map +1 -1
- package/_esm/actions/evm/sendUserOperation.js.map +1 -1
- package/_esm/actions/evm/signAndWrapTypedDataForSmartAccount.js.map +1 -1
- package/_esm/actions/evm/spend-permissions/account.use.js.map +1 -1
- package/_esm/actions/evm/spend-permissions/resolveSpendPermission.js.map +1 -1
- package/_esm/actions/evm/spend-permissions/smartAccount.use.js.map +1 -1
- package/_esm/actions/evm/spend-permissions/types.js.map +1 -1
- package/_esm/actions/evm/swap/createSwapQuote.js.map +1 -1
- package/_esm/actions/evm/swap/getSwapPrice.js.map +1 -1
- package/_esm/actions/evm/swap/sendSwapOperation.js.map +1 -1
- package/_esm/actions/evm/swap/sendSwapTransaction.js.map +1 -1
- package/_esm/actions/evm/swap/types.js.map +1 -1
- package/_esm/actions/evm/transfer/accountTransferStrategy.js.map +1 -1
- package/_esm/actions/evm/transfer/smartAccountTransferStrategy.js.map +1 -1
- package/_esm/actions/evm/transfer/transfer.js.map +1 -1
- package/_esm/actions/evm/transfer/transferWithViem.js +0 -11
- package/_esm/actions/evm/transfer/transferWithViem.js.map +1 -1
- package/_esm/actions/evm/transfer/types.js.map +1 -1
- package/_esm/actions/evm/transfer/utils.js.map +1 -1
- package/_esm/actions/evm/types.js.map +1 -1
- package/_esm/actions/evm/waitForEvmEip7702DelegationStatus.js.map +1 -1
- package/_esm/actions/evm/waitForUserOperation.js.map +1 -1
- package/_esm/actions/solana/constants.js.map +1 -1
- package/_esm/actions/solana/requestFaucet.js.map +1 -1
- package/_esm/actions/solana/rpc.js.map +1 -1
- package/_esm/actions/solana/sendTransaction.js.map +1 -1
- package/_esm/actions/solana/signMessage.js.map +1 -1
- package/_esm/actions/solana/signTransaction.js.map +1 -1
- package/_esm/actions/solana/transfer.js.map +1 -1
- package/_esm/actions/solana/types.js.map +1 -1
- package/_esm/actions/solana/utils.js.map +1 -1
- package/_esm/actions/webhooks/createWebhookSubscription.js.map +1 -1
- package/_esm/actions/webhooks/index.js.map +1 -1
- package/_esm/analytics.js.map +1 -1
- package/_esm/auth/errors.js.map +1 -1
- package/_esm/auth/hooks/axios/index.js.map +1 -1
- package/_esm/auth/hooks/axios/withAuth.js.map +1 -1
- package/_esm/auth/index.js.map +1 -1
- package/_esm/auth/utils/hash.js.map +1 -1
- package/_esm/auth/utils/http.js.map +1 -1
- package/_esm/auth/utils/index.js.map +1 -1
- package/_esm/auth/utils/jwt.js.map +1 -1
- package/_esm/auth/utils/ws.js.map +1 -1
- package/_esm/client/cdp.js.map +1 -1
- package/_esm/client/end-user/endUser.js.map +1 -1
- package/_esm/client/end-user/endUser.types.js.map +1 -1
- package/_esm/client/end-user/toEndUserAccount.js.map +1 -1
- package/_esm/client/evm/evm.js.map +1 -1
- package/_esm/client/evm/evm.types.js.map +1 -1
- package/_esm/client/policies/index.js.map +1 -1
- package/_esm/client/policies/policies.js.map +1 -1
- package/_esm/client/policies/policies.types.js.map +1 -1
- package/_esm/client/solana/index.js.map +1 -1
- package/_esm/client/solana/solana.js.map +1 -1
- package/_esm/client/solana/solana.types.js.map +1 -1
- package/_esm/client/webhooks/webhooks.js.map +1 -1
- package/_esm/constants.js.map +1 -1
- package/_esm/errors.js.map +1 -1
- package/_esm/index.js.map +1 -1
- package/_esm/openapi-client/cdpApiClient.js.map +1 -1
- package/_esm/openapi-client/errors.js.map +1 -1
- package/_esm/openapi-client/generated/accounts/accounts.js +42 -0
- package/_esm/openapi-client/generated/accounts/accounts.js.map +1 -0
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +522 -43
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_esm/openapi-client/generated/deposit-destinations/deposit-destinations.js +28 -0
- package/_esm/openapi-client/generated/deposit-destinations/deposit-destinations.js.map +1 -0
- package/_esm/openapi-client/generated/end-user-account-management/end-user-account-management.js +120 -0
- package/_esm/openapi-client/generated/end-user-account-management/end-user-account-management.js.map +1 -0
- package/_esm/openapi-client/generated/end-user-accounts/end-user-accounts.js +211 -64
- package/_esm/openapi-client/generated/end-user-accounts/end-user-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js +12 -12
- package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +10 -10
- package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/evm-swaps/evm-swaps.js +2 -2
- package/_esm/openapi-client/generated/evm-swaps/evm-swaps.js.map +1 -1
- package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.js.map +1 -1
- package/_esm/openapi-client/generated/faucets/faucets.js.map +1 -1
- package/_esm/openapi-client/generated/onchain-data/onchain-data.js.map +1 -1
- package/_esm/openapi-client/generated/onramp/onramp.js.map +1 -1
- package/_esm/openapi-client/generated/payment-methods/payment-methods.js +23 -0
- package/_esm/openapi-client/generated/payment-methods/payment-methods.js.map +1 -0
- package/_esm/openapi-client/generated/policy-engine/policy-engine.js +4 -4
- package/_esm/openapi-client/generated/policy-engine/policy-engine.js.map +1 -1
- package/_esm/openapi-client/generated/solana-accounts/solana-accounts.js +11 -11
- package/_esm/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/solana-token-balances/solana-token-balances.js.map +1 -1
- package/_esm/openapi-client/generated/sql-api/sql-api.js +1 -1
- package/_esm/openapi-client/generated/sql-api/sql-api.js.map +1 -1
- package/_esm/openapi-client/generated/transfers/transfers.js +79 -0
- package/_esm/openapi-client/generated/transfers/transfers.js.map +1 -0
- package/_esm/openapi-client/generated/webhooks/webhooks.js +1 -1
- package/_esm/openapi-client/generated/webhooks/webhooks.js.map +1 -1
- package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.js +3 -3
- package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.js.map +1 -1
- package/_esm/openapi-client/index.js +7 -3
- package/_esm/openapi-client/index.js.map +1 -1
- package/_esm/policies/evmSchema.js +52 -0
- package/_esm/policies/evmSchema.js.map +1 -1
- package/_esm/policies/solanaSchema.js.map +1 -1
- package/_esm/policies/types.js +3 -1
- package/_esm/policies/types.js.map +1 -1
- package/_esm/spend-permissions/constants.js.map +1 -1
- package/_esm/spend-permissions/types.js.map +1 -1
- package/_esm/spend-permissions/utils.js.map +1 -1
- package/_esm/types/calls.js.map +1 -1
- package/_esm/types/contract.js.map +1 -1
- package/_esm/types/misc.js.map +1 -1
- package/_esm/types/multicall.js.map +1 -1
- package/_esm/types/utils.js.map +1 -1
- package/_esm/utils/bigint.js.map +1 -1
- package/_esm/utils/export.js.map +1 -1
- package/_esm/utils/hash.js.map +1 -1
- package/_esm/utils/serializeTransaction.js.map +1 -1
- package/_esm/utils/sortKeys.js.map +1 -1
- package/_esm/utils/uuidV4.js.map +1 -1
- package/_esm/utils/wait.js.map +1 -1
- package/_esm/version.js +1 -1
- package/_esm/version.js.map +1 -1
- package/_types/accounts/evm/chainToNetworkMapper.d.ts.map +1 -1
- package/_types/accounts/evm/eip6492.d.ts.map +1 -1
- package/_types/accounts/evm/getBaseNodeRpcUrl.d.ts.map +1 -1
- package/_types/accounts/evm/networkCapabilities.d.ts.map +1 -1
- package/_types/accounts/evm/networkToChainResolver.d.ts.map +1 -1
- package/_types/accounts/evm/resolveViemClients.d.ts.map +1 -1
- package/_types/accounts/evm/toEvmDelegatedAccount.d.ts.map +1 -1
- package/_types/accounts/evm/toEvmServerAccount.d.ts.map +1 -1
- package/_types/accounts/evm/toEvmSmartAccount.d.ts.map +1 -1
- package/_types/accounts/evm/toNetworkScopedEvmServerAccount.d.ts.map +1 -1
- package/_types/accounts/evm/toNetworkScopedEvmSmartAccount.d.ts.map +1 -1
- package/_types/accounts/evm/types.d.ts.map +1 -1
- package/_types/accounts/solana/toSolanaAccount.d.ts.map +1 -1
- package/_types/accounts/solana/types.d.ts.map +1 -1
- package/_types/actions/evm/getUserOperation.d.ts.map +1 -1
- package/_types/actions/evm/listSpendPermissions.d.ts.map +1 -1
- package/_types/actions/evm/listTokenBalances.d.ts.map +1 -1
- package/_types/actions/evm/requestFaucet.d.ts.map +1 -1
- package/_types/actions/evm/sendTransaction.d.ts.map +1 -1
- package/_types/actions/evm/sendUserOperation.d.ts.map +1 -1
- package/_types/actions/evm/signAndWrapTypedDataForSmartAccount.d.ts.map +1 -1
- package/_types/actions/evm/spend-permissions/account.use.d.ts.map +1 -1
- package/_types/actions/evm/spend-permissions/resolveSpendPermission.d.ts.map +1 -1
- package/_types/actions/evm/spend-permissions/smartAccount.use.d.ts.map +1 -1
- package/_types/actions/evm/spend-permissions/types.d.ts.map +1 -1
- package/_types/actions/evm/swap/createSwapQuote.d.ts.map +1 -1
- package/_types/actions/evm/swap/getSwapPrice.d.ts.map +1 -1
- package/_types/actions/evm/swap/sendSwapOperation.d.ts.map +1 -1
- package/_types/actions/evm/swap/sendSwapTransaction.d.ts.map +1 -1
- package/_types/actions/evm/swap/types.d.ts.map +1 -1
- package/_types/actions/evm/transfer/accountTransferStrategy.d.ts.map +1 -1
- package/_types/actions/evm/transfer/smartAccountTransferStrategy.d.ts.map +1 -1
- package/_types/actions/evm/transfer/transfer.d.ts.map +1 -1
- package/_types/actions/evm/transfer/transferWithViem.d.ts.map +1 -1
- package/_types/actions/evm/transfer/types.d.ts.map +1 -1
- package/_types/actions/evm/transfer/utils.d.ts.map +1 -1
- package/_types/actions/evm/types.d.ts.map +1 -1
- package/_types/actions/evm/waitForEvmEip7702DelegationStatus.d.ts.map +1 -1
- package/_types/actions/evm/waitForUserOperation.d.ts.map +1 -1
- package/_types/actions/solana/constants.d.ts.map +1 -1
- package/_types/actions/solana/requestFaucet.d.ts.map +1 -1
- package/_types/actions/solana/rpc.d.ts.map +1 -1
- package/_types/actions/solana/sendTransaction.d.ts.map +1 -1
- package/_types/actions/solana/signMessage.d.ts.map +1 -1
- package/_types/actions/solana/signTransaction.d.ts.map +1 -1
- package/_types/actions/solana/transfer.d.ts.map +1 -1
- package/_types/actions/solana/types.d.ts.map +1 -1
- package/_types/actions/solana/utils.d.ts.map +1 -1
- package/_types/actions/webhooks/createWebhookSubscription.d.ts.map +1 -1
- package/_types/actions/webhooks/index.d.ts.map +1 -1
- package/_types/analytics.d.ts.map +1 -1
- package/_types/auth/errors.d.ts.map +1 -1
- package/_types/auth/hooks/axios/index.d.ts.map +1 -1
- package/_types/auth/hooks/axios/withAuth.d.ts.map +1 -1
- package/_types/auth/index.d.ts.map +1 -1
- package/_types/auth/utils/hash.d.ts.map +1 -1
- package/_types/auth/utils/http.d.ts.map +1 -1
- package/_types/auth/utils/index.d.ts.map +1 -1
- package/_types/auth/utils/jwt.d.ts.map +1 -1
- package/_types/auth/utils/ws.d.ts.map +1 -1
- package/_types/client/cdp.d.ts.map +1 -1
- package/_types/client/end-user/endUser.d.ts.map +1 -1
- package/_types/client/end-user/endUser.types.d.ts.map +1 -1
- package/_types/client/end-user/toEndUserAccount.d.ts.map +1 -1
- package/_types/client/evm/evm.d.ts.map +1 -1
- package/_types/client/evm/evm.types.d.ts.map +1 -1
- package/_types/client/policies/index.d.ts.map +1 -1
- package/_types/client/policies/policies.d.ts.map +1 -1
- package/_types/client/policies/policies.types.d.ts.map +1 -1
- package/_types/client/solana/index.d.ts.map +1 -1
- package/_types/client/solana/solana.d.ts.map +1 -1
- package/_types/client/solana/solana.types.d.ts.map +1 -1
- package/_types/client/webhooks/webhooks.d.ts.map +1 -1
- package/_types/constants.d.ts.map +1 -1
- package/_types/errors.d.ts.map +1 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/openapi-client/cdpApiClient.d.ts.map +1 -1
- package/_types/openapi-client/errors.d.ts.map +1 -1
- package/_types/openapi-client/generated/accounts/accounts.d.ts +42 -0
- package/_types/openapi-client/generated/accounts/accounts.d.ts.map +1 -0
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +1933 -269
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
- package/_types/openapi-client/generated/deposit-destinations/deposit-destinations.d.ts +30 -0
- package/_types/openapi-client/generated/deposit-destinations/deposit-destinations.d.ts.map +1 -0
- package/_types/openapi-client/generated/end-user-account-management/end-user-account-management.d.ts +91 -0
- package/_types/openapi-client/generated/end-user-account-management/end-user-account-management.d.ts.map +1 -0
- package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.d.ts +142 -60
- package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts +12 -12
- package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts +10 -10
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-swaps/evm-swaps.d.ts +2 -2
- package/_types/openapi-client/generated/evm-swaps/evm-swaps.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.d.ts.map +1 -1
- package/_types/openapi-client/generated/faucets/faucets.d.ts.map +1 -1
- package/_types/openapi-client/generated/onchain-data/onchain-data.d.ts.map +1 -1
- package/_types/openapi-client/generated/onramp/onramp.d.ts.map +1 -1
- package/_types/openapi-client/generated/payment-methods/payment-methods.d.ts +31 -0
- package/_types/openapi-client/generated/payment-methods/payment-methods.d.ts.map +1 -0
- package/_types/openapi-client/generated/policy-engine/policy-engine.d.ts +4 -4
- package/_types/openapi-client/generated/policy-engine/policy-engine.d.ts.map +1 -1
- package/_types/openapi-client/generated/solana-accounts/solana-accounts.d.ts +11 -11
- package/_types/openapi-client/generated/solana-accounts/solana-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/solana-token-balances/solana-token-balances.d.ts.map +1 -1
- package/_types/openapi-client/generated/sql-api/sql-api.d.ts +1 -1
- package/_types/openapi-client/generated/sql-api/sql-api.d.ts.map +1 -1
- package/_types/openapi-client/generated/transfers/transfers.d.ts +74 -0
- package/_types/openapi-client/generated/transfers/transfers.d.ts.map +1 -0
- package/_types/openapi-client/generated/webhooks/webhooks.d.ts +1 -1
- package/_types/openapi-client/generated/webhooks/webhooks.d.ts.map +1 -1
- package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.d.ts +3 -3
- package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.d.ts.map +1 -1
- package/_types/openapi-client/index.d.ts +14 -10
- package/_types/openapi-client/index.d.ts.map +1 -1
- package/_types/policies/evmSchema.d.ts +884 -39
- package/_types/policies/evmSchema.d.ts.map +1 -1
- package/_types/policies/solanaSchema.d.ts +20 -20
- package/_types/policies/solanaSchema.d.ts.map +1 -1
- package/_types/policies/types.d.ts +1996 -629
- package/_types/policies/types.d.ts.map +1 -1
- package/_types/spend-permissions/constants.d.ts.map +1 -1
- package/_types/spend-permissions/types.d.ts.map +1 -1
- package/_types/spend-permissions/utils.d.ts.map +1 -1
- package/_types/types/calls.d.ts.map +1 -1
- package/_types/types/contract.d.ts.map +1 -1
- package/_types/types/misc.d.ts.map +1 -1
- package/_types/types/multicall.d.ts.map +1 -1
- package/_types/types/utils.d.ts.map +1 -1
- package/_types/utils/bigint.d.ts.map +1 -1
- package/_types/utils/export.d.ts.map +1 -1
- package/_types/utils/hash.d.ts.map +1 -1
- package/_types/utils/serializeTransaction.d.ts.map +1 -1
- package/_types/utils/sortKeys.d.ts.map +1 -1
- package/_types/utils/uuidV4.d.ts.map +1 -1
- package/_types/utils/wait.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/_types/version.d.ts.map +1 -1
- package/package.json +24 -3
- package/{actions → src/actions}/evm/transfer/transferWithViem.ts +0 -12
- package/{auth → src/auth}/README.md +3 -3
- package/src/openapi-client/generated/accounts/accounts.ts +103 -0
- package/{openapi-client → src/openapi-client}/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +2368 -363
- package/src/openapi-client/generated/deposit-destinations/deposit-destinations.ts +72 -0
- package/{openapi-client/generated/end-user-accounts/end-user-accounts.ts → src/openapi-client/generated/end-user-account-management/end-user-account-management.ts} +6 -6
- package/{openapi-client/generated/embedded-wallets/embedded-wallets.ts → src/openapi-client/generated/end-user-accounts/end-user-accounts.ts} +11 -11
- package/{openapi-client → src/openapi-client}/generated/evm-accounts/evm-accounts.ts +12 -12
- package/{openapi-client → src/openapi-client}/generated/evm-smart-accounts/evm-smart-accounts.ts +10 -10
- package/{openapi-client → src/openapi-client}/generated/evm-swaps/evm-swaps.ts +2 -2
- package/src/openapi-client/generated/payment-methods/payment-methods.ts +53 -0
- package/{openapi-client → src/openapi-client}/generated/policy-engine/policy-engine.ts +4 -4
- package/{openapi-client → src/openapi-client}/generated/solana-accounts/solana-accounts.ts +11 -11
- package/{openapi-client → src/openapi-client}/generated/sql-api/sql-api.ts +1 -1
- package/src/openapi-client/generated/transfers/transfers.ts +131 -0
- package/{openapi-client → src/openapi-client}/generated/webhooks/webhooks.ts +1 -1
- package/{openapi-client → src/openapi-client}/generated/x402-facilitator/x402-facilitator.ts +3 -3
- package/{openapi-client → src/openapi-client}/index.ts +7 -3
- package/{policies → src/policies}/evmSchema.ts +63 -0
- package/{policies → src/policies}/types.ts +4 -0
- package/src/version.ts +1 -0
- package/CHANGELOG.md +0 -637
- package/_cjs/openapi-client/generated/embedded-wallets/embedded-wallets.js +0 -286
- package/_cjs/openapi-client/generated/embedded-wallets/embedded-wallets.js.map +0 -1
- package/_esm/openapi-client/generated/embedded-wallets/embedded-wallets.js +0 -267
- package/_esm/openapi-client/generated/embedded-wallets/embedded-wallets.js.map +0 -1
- package/_types/openapi-client/generated/embedded-wallets/embedded-wallets.d.ts +0 -173
- package/_types/openapi-client/generated/embedded-wallets/embedded-wallets.d.ts.map +0 -1
- package/version.ts +0 -1
- /package/{accounts → src/accounts}/evm/chainToNetworkMapper.ts +0 -0
- /package/{accounts → src/accounts}/evm/eip6492.ts +0 -0
- /package/{accounts → src/accounts}/evm/getBaseNodeRpcUrl.ts +0 -0
- /package/{accounts → src/accounts}/evm/networkCapabilities.ts +0 -0
- /package/{accounts → src/accounts}/evm/networkToChainResolver.ts +0 -0
- /package/{accounts → src/accounts}/evm/resolveViemClients.ts +0 -0
- /package/{accounts → src/accounts}/evm/toEvmDelegatedAccount.ts +0 -0
- /package/{accounts → src/accounts}/evm/toEvmServerAccount.ts +0 -0
- /package/{accounts → src/accounts}/evm/toEvmSmartAccount.ts +0 -0
- /package/{accounts → src/accounts}/evm/toNetworkScopedEvmServerAccount.ts +0 -0
- /package/{accounts → src/accounts}/evm/toNetworkScopedEvmSmartAccount.ts +0 -0
- /package/{accounts → src/accounts}/evm/types.ts +0 -0
- /package/{accounts → src/accounts}/solana/toSolanaAccount.ts +0 -0
- /package/{accounts → src/accounts}/solana/types.ts +0 -0
- /package/{actions → src/actions}/evm/getUserOperation.ts +0 -0
- /package/{actions → src/actions}/evm/listSpendPermissions.ts +0 -0
- /package/{actions → src/actions}/evm/listTokenBalances.ts +0 -0
- /package/{actions → src/actions}/evm/requestFaucet.ts +0 -0
- /package/{actions → src/actions}/evm/sendTransaction.ts +0 -0
- /package/{actions → src/actions}/evm/sendUserOperation.ts +0 -0
- /package/{actions → src/actions}/evm/signAndWrapTypedDataForSmartAccount.ts +0 -0
- /package/{actions → src/actions}/evm/spend-permissions/account.use.ts +0 -0
- /package/{actions → src/actions}/evm/spend-permissions/resolveSpendPermission.ts +0 -0
- /package/{actions → src/actions}/evm/spend-permissions/smartAccount.use.ts +0 -0
- /package/{actions → src/actions}/evm/spend-permissions/types.ts +0 -0
- /package/{actions → src/actions}/evm/swap/createSwapQuote.ts +0 -0
- /package/{actions → src/actions}/evm/swap/getSwapPrice.ts +0 -0
- /package/{actions → src/actions}/evm/swap/sendSwapOperation.ts +0 -0
- /package/{actions → src/actions}/evm/swap/sendSwapTransaction.ts +0 -0
- /package/{actions → src/actions}/evm/swap/types.ts +0 -0
- /package/{actions → src/actions}/evm/transfer/accountTransferStrategy.ts +0 -0
- /package/{actions → src/actions}/evm/transfer/smartAccountTransferStrategy.ts +0 -0
- /package/{actions → src/actions}/evm/transfer/transfer.ts +0 -0
- /package/{actions → src/actions}/evm/transfer/types.ts +0 -0
- /package/{actions → src/actions}/evm/transfer/utils.ts +0 -0
- /package/{actions → src/actions}/evm/types.ts +0 -0
- /package/{actions → src/actions}/evm/waitForEvmEip7702DelegationStatus.ts +0 -0
- /package/{actions → src/actions}/evm/waitForUserOperation.ts +0 -0
- /package/{actions → src/actions}/solana/constants.ts +0 -0
- /package/{actions → src/actions}/solana/requestFaucet.ts +0 -0
- /package/{actions → src/actions}/solana/rpc.ts +0 -0
- /package/{actions → src/actions}/solana/sendTransaction.ts +0 -0
- /package/{actions → src/actions}/solana/signMessage.ts +0 -0
- /package/{actions → src/actions}/solana/signTransaction.ts +0 -0
- /package/{actions → src/actions}/solana/transfer.ts +0 -0
- /package/{actions → src/actions}/solana/types.ts +0 -0
- /package/{actions → src/actions}/solana/utils.ts +0 -0
- /package/{actions → src/actions}/webhooks/createWebhookSubscription.ts +0 -0
- /package/{actions → src/actions}/webhooks/index.ts +0 -0
- /package/{analytics.ts → src/analytics.ts} +0 -0
- /package/{auth → src/auth}/errors.ts +0 -0
- /package/{auth → src/auth}/hooks/axios/index.ts +0 -0
- /package/{auth → src/auth}/hooks/axios/withAuth.ts +0 -0
- /package/{auth → src/auth}/index.ts +0 -0
- /package/{auth → src/auth}/utils/hash.ts +0 -0
- /package/{auth → src/auth}/utils/http.ts +0 -0
- /package/{auth → src/auth}/utils/index.ts +0 -0
- /package/{auth → src/auth}/utils/jwt.ts +0 -0
- /package/{auth → src/auth}/utils/ws.ts +0 -0
- /package/{client → src/client}/cdp.ts +0 -0
- /package/{client → src/client}/end-user/endUser.ts +0 -0
- /package/{client → src/client}/end-user/endUser.types.ts +0 -0
- /package/{client → src/client}/end-user/toEndUserAccount.ts +0 -0
- /package/{client → src/client}/evm/evm.ts +0 -0
- /package/{client → src/client}/evm/evm.types.ts +0 -0
- /package/{client → src/client}/policies/index.ts +0 -0
- /package/{client → src/client}/policies/policies.ts +0 -0
- /package/{client → src/client}/policies/policies.types.ts +0 -0
- /package/{client → src/client}/solana/index.ts +0 -0
- /package/{client → src/client}/solana/solana.ts +0 -0
- /package/{client → src/client}/solana/solana.types.ts +0 -0
- /package/{client → src/client}/webhooks/webhooks.ts +0 -0
- /package/{constants.ts → src/constants.ts} +0 -0
- /package/{errors.ts → src/errors.ts} +0 -0
- /package/{index.ts → src/index.ts} +0 -0
- /package/{openapi-client → src/openapi-client}/cdpApiClient.ts +0 -0
- /package/{openapi-client → src/openapi-client}/errors.ts +0 -0
- /package/{openapi-client → src/openapi-client}/generated/evm-token-balances/evm-token-balances.ts +0 -0
- /package/{openapi-client → src/openapi-client}/generated/faucets/faucets.ts +0 -0
- /package/{openapi-client → src/openapi-client}/generated/onchain-data/onchain-data.ts +0 -0
- /package/{openapi-client → src/openapi-client}/generated/onramp/onramp.ts +0 -0
- /package/{openapi-client → src/openapi-client}/generated/solana-token-balances/solana-token-balances.ts +0 -0
- /package/{policies → src/policies}/solanaSchema.ts +0 -0
- /package/{spend-permissions → src/spend-permissions}/constants.ts +0 -0
- /package/{spend-permissions → src/spend-permissions}/types.ts +0 -0
- /package/{spend-permissions → src/spend-permissions}/utils.ts +0 -0
- /package/{types → src/types}/calls.ts +0 -0
- /package/{types → src/types}/contract.ts +0 -0
- /package/{types → src/types}/misc.ts +0 -0
- /package/{types → src/types}/multicall.ts +0 -0
- /package/{types → src/types}/utils.ts +0 -0
- /package/{utils → src/utils}/bigint.ts +0 -0
- /package/{utils → src/utils}/export.ts +0 -0
- /package/{utils → src/utils}/hash.ts +0 -0
- /package/{utils → src/utils}/serializeTransaction.ts +0 -0
- /package/{utils → src/utils}/sortKeys.ts +0 -0
- /package/{utils → src/utils}/uuidV4.ts +0 -0
- /package/{utils → src/utils}/wait.ts +0 -0
|
@@ -113,11 +113,11 @@ export declare const SendEvmTransactionEvmNetworkCriterionSchema: z.ZodObject<{
|
|
|
113
113
|
}, "strip", z.ZodTypeAny, {
|
|
114
114
|
type: "evmNetwork";
|
|
115
115
|
operator: "in" | "not in";
|
|
116
|
-
networks: ("base
|
|
116
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
117
117
|
}, {
|
|
118
118
|
type: "evmNetwork";
|
|
119
119
|
operator: "in" | "not in";
|
|
120
|
-
networks: ("base
|
|
120
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
121
121
|
}>;
|
|
122
122
|
export declare const PrepareUserOperationEvmNetworkCriterionSchema: z.ZodObject<{
|
|
123
123
|
/** The type of criterion, must be "evmAddress" for EVM address-based rules. */
|
|
@@ -136,11 +136,11 @@ export declare const PrepareUserOperationEvmNetworkCriterionSchema: z.ZodObject<
|
|
|
136
136
|
}, "strip", z.ZodTypeAny, {
|
|
137
137
|
type: "evmNetwork";
|
|
138
138
|
operator: "in" | "not in";
|
|
139
|
-
networks: ("base
|
|
139
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
140
140
|
}, {
|
|
141
141
|
type: "evmNetwork";
|
|
142
142
|
operator: "in" | "not in";
|
|
143
|
-
networks: ("base
|
|
143
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
144
144
|
}>;
|
|
145
145
|
export declare const EvmNetworkCriterionSchema: z.ZodUnion<[z.ZodObject<{
|
|
146
146
|
/** The type of criterion, must be "evmAddress" for EVM address-based rules. */
|
|
@@ -159,11 +159,11 @@ export declare const EvmNetworkCriterionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
159
159
|
}, "strip", z.ZodTypeAny, {
|
|
160
160
|
type: "evmNetwork";
|
|
161
161
|
operator: "in" | "not in";
|
|
162
|
-
networks: ("base
|
|
162
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
163
163
|
}, {
|
|
164
164
|
type: "evmNetwork";
|
|
165
165
|
operator: "in" | "not in";
|
|
166
|
-
networks: ("base
|
|
166
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
167
167
|
}>, z.ZodObject<{
|
|
168
168
|
/** The type of criterion, must be "evmAddress" for EVM address-based rules. */
|
|
169
169
|
type: z.ZodLiteral<"evmNetwork">;
|
|
@@ -181,11 +181,11 @@ export declare const EvmNetworkCriterionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
181
181
|
}, "strip", z.ZodTypeAny, {
|
|
182
182
|
type: "evmNetwork";
|
|
183
183
|
operator: "in" | "not in";
|
|
184
|
-
networks: ("base
|
|
184
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
185
185
|
}, {
|
|
186
186
|
type: "evmNetwork";
|
|
187
187
|
operator: "in" | "not in";
|
|
188
|
-
networks: ("base
|
|
188
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
189
189
|
}>]>;
|
|
190
190
|
export type EvmNetworkCriterion = z.ZodUnion<[
|
|
191
191
|
typeof SendEvmTransactionEvmNetworkCriterionSchema,
|
|
@@ -1516,11 +1516,11 @@ export declare const SendEvmTransactionCriteriaSchema: z.ZodArray<z.ZodDiscrimin
|
|
|
1516
1516
|
}, "strip", z.ZodTypeAny, {
|
|
1517
1517
|
type: "evmNetwork";
|
|
1518
1518
|
operator: "in" | "not in";
|
|
1519
|
-
networks: ("base
|
|
1519
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
1520
1520
|
}, {
|
|
1521
1521
|
type: "evmNetwork";
|
|
1522
1522
|
operator: "in" | "not in";
|
|
1523
|
-
networks: ("base
|
|
1523
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
1524
1524
|
}>, z.ZodObject<{
|
|
1525
1525
|
/** The type of criterion, must be "evmData" for EVM transaction rules. */
|
|
1526
1526
|
type: z.ZodLiteral<"evmData">;
|
|
@@ -1867,11 +1867,11 @@ export declare const PrepareUserOperationCriteriaSchema: z.ZodArray<z.ZodDiscrim
|
|
|
1867
1867
|
}, "strip", z.ZodTypeAny, {
|
|
1868
1868
|
type: "evmNetwork";
|
|
1869
1869
|
operator: "in" | "not in";
|
|
1870
|
-
networks: ("base
|
|
1870
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
1871
1871
|
}, {
|
|
1872
1872
|
type: "evmNetwork";
|
|
1873
1873
|
operator: "in" | "not in";
|
|
1874
|
-
networks: ("base
|
|
1874
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
1875
1875
|
}>, z.ZodObject<{
|
|
1876
1876
|
/** The type of criterion, must be "evmData" for EVM transaction rules. */
|
|
1877
1877
|
type: z.ZodLiteral<"evmData">;
|
|
@@ -2887,11 +2887,11 @@ export declare const SendEndUserEvmTransactionCriteriaSchema: z.ZodArray<z.ZodDi
|
|
|
2887
2887
|
}, "strip", z.ZodTypeAny, {
|
|
2888
2888
|
type: "evmNetwork";
|
|
2889
2889
|
operator: "in" | "not in";
|
|
2890
|
-
networks: ("base
|
|
2890
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
2891
2891
|
}, {
|
|
2892
2892
|
type: "evmNetwork";
|
|
2893
2893
|
operator: "in" | "not in";
|
|
2894
|
-
networks: ("base
|
|
2894
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
2895
2895
|
}>, z.ZodObject<{
|
|
2896
2896
|
/** The type of criterion, must be "evmData" for EVM transaction rules. */
|
|
2897
2897
|
type: z.ZodLiteral<"evmData">;
|
|
@@ -3387,7 +3387,7 @@ export type SignEndUserEvmTypedDataCriteria = z.infer<typeof SignEndUserEvmTyped
|
|
|
3387
3387
|
/**
|
|
3388
3388
|
* Enum for Evm Operation types
|
|
3389
3389
|
*/
|
|
3390
|
-
export declare const EvmOperationEnum: z.ZodEnum<["signEvmTransaction", "sendEvmTransaction", "signEvmMessage", "signEvmTypedData", "signEvmHash", "prepareUserOperation", "sendUserOperation"]>;
|
|
3390
|
+
export declare const EvmOperationEnum: z.ZodEnum<["signEvmTransaction", "sendEvmTransaction", "signEvmMessage", "signEvmTypedData", "signEvmHash", "prepareUserOperation", "sendUserOperation", "signEndUserEvmHash", "sendEndUserOperation"]>;
|
|
3391
3391
|
/**
|
|
3392
3392
|
* Type representing the operations that can be governed by a policy.
|
|
3393
3393
|
* Defines what EVM operations the policy applies to.
|
|
@@ -3863,6 +3863,29 @@ export declare const SignEvmHashRuleSchema: z.ZodObject<{
|
|
|
3863
3863
|
operation: "signEvmHash";
|
|
3864
3864
|
}>;
|
|
3865
3865
|
export type SignEvmHashRule = z.infer<typeof SignEvmHashRuleSchema>;
|
|
3866
|
+
/**
|
|
3867
|
+
* Type representing a 'signEndUserEvmHash' policy rule that can accept or reject specific operations
|
|
3868
|
+
* based on a set of criteria.
|
|
3869
|
+
*/
|
|
3870
|
+
export declare const SignEndUserEvmHashRuleSchema: z.ZodObject<{
|
|
3871
|
+
/**
|
|
3872
|
+
* Determines whether matching the rule will cause a request to be rejected or accepted.
|
|
3873
|
+
* "accept" will allow the signing, "reject" will block it.
|
|
3874
|
+
*/
|
|
3875
|
+
action: z.ZodEnum<["reject", "accept"]>;
|
|
3876
|
+
/**
|
|
3877
|
+
* The operation to which this rule applies.
|
|
3878
|
+
* Must be "signEndUserEvmHash".
|
|
3879
|
+
*/
|
|
3880
|
+
operation: z.ZodLiteral<"signEndUserEvmHash">;
|
|
3881
|
+
}, "strip", z.ZodTypeAny, {
|
|
3882
|
+
action: "reject" | "accept";
|
|
3883
|
+
operation: "signEndUserEvmHash";
|
|
3884
|
+
}, {
|
|
3885
|
+
action: "reject" | "accept";
|
|
3886
|
+
operation: "signEndUserEvmHash";
|
|
3887
|
+
}>;
|
|
3888
|
+
export type SignEndUserEvmHashRule = z.infer<typeof SignEndUserEvmHashRuleSchema>;
|
|
3866
3889
|
/**
|
|
3867
3890
|
* Type representing a 'signEvmMessage' policy rule that can accept or reject specific operations
|
|
3868
3891
|
* based on a set of criteria.
|
|
@@ -4244,11 +4267,11 @@ export declare const SendEvmTransactionRuleSchema: z.ZodObject<{
|
|
|
4244
4267
|
}, "strip", z.ZodTypeAny, {
|
|
4245
4268
|
type: "evmNetwork";
|
|
4246
4269
|
operator: "in" | "not in";
|
|
4247
|
-
networks: ("base
|
|
4270
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
4248
4271
|
}, {
|
|
4249
4272
|
type: "evmNetwork";
|
|
4250
4273
|
operator: "in" | "not in";
|
|
4251
|
-
networks: ("base
|
|
4274
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
4252
4275
|
}>, z.ZodObject<{
|
|
4253
4276
|
/** The type of criterion, must be "evmData" for EVM transaction rules. */
|
|
4254
4277
|
type: z.ZodLiteral<"evmData">;
|
|
@@ -4547,7 +4570,7 @@ export declare const SendEvmTransactionRuleSchema: z.ZodObject<{
|
|
|
4547
4570
|
} | {
|
|
4548
4571
|
type: "evmNetwork";
|
|
4549
4572
|
operator: "in" | "not in";
|
|
4550
|
-
networks: ("base
|
|
4573
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
4551
4574
|
} | {
|
|
4552
4575
|
type: "netUSDChange";
|
|
4553
4576
|
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
@@ -4612,7 +4635,7 @@ export declare const SendEvmTransactionRuleSchema: z.ZodObject<{
|
|
|
4612
4635
|
} | {
|
|
4613
4636
|
type: "evmNetwork";
|
|
4614
4637
|
operator: "in" | "not in";
|
|
4615
|
-
networks: ("base
|
|
4638
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
4616
4639
|
} | {
|
|
4617
4640
|
type: "netUSDChange";
|
|
4618
4641
|
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
@@ -4712,11 +4735,11 @@ export declare const PrepareUserOperationRuleSchema: z.ZodObject<{
|
|
|
4712
4735
|
}, "strip", z.ZodTypeAny, {
|
|
4713
4736
|
type: "evmNetwork";
|
|
4714
4737
|
operator: "in" | "not in";
|
|
4715
|
-
networks: ("base
|
|
4738
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
4716
4739
|
}, {
|
|
4717
4740
|
type: "evmNetwork";
|
|
4718
4741
|
operator: "in" | "not in";
|
|
4719
|
-
networks: ("base
|
|
4742
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
4720
4743
|
}>, z.ZodObject<{
|
|
4721
4744
|
/** The type of criterion, must be "evmData" for EVM transaction rules. */
|
|
4722
4745
|
type: z.ZodLiteral<"evmData">;
|
|
@@ -5015,7 +5038,7 @@ export declare const PrepareUserOperationRuleSchema: z.ZodObject<{
|
|
|
5015
5038
|
} | {
|
|
5016
5039
|
type: "evmNetwork";
|
|
5017
5040
|
operator: "in" | "not in";
|
|
5018
|
-
networks: ("base
|
|
5041
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
5019
5042
|
} | {
|
|
5020
5043
|
type: "netUSDChange";
|
|
5021
5044
|
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
@@ -5080,7 +5103,7 @@ export declare const PrepareUserOperationRuleSchema: z.ZodObject<{
|
|
|
5080
5103
|
} | {
|
|
5081
5104
|
type: "evmNetwork";
|
|
5082
5105
|
operator: "in" | "not in";
|
|
5083
|
-
networks: ("base
|
|
5106
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
5084
5107
|
} | {
|
|
5085
5108
|
type: "netUSDChange";
|
|
5086
5109
|
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
@@ -6056,11 +6079,11 @@ export declare const SendEndUserEvmTransactionRuleSchema: z.ZodObject<{
|
|
|
6056
6079
|
}, "strip", z.ZodTypeAny, {
|
|
6057
6080
|
type: "evmNetwork";
|
|
6058
6081
|
operator: "in" | "not in";
|
|
6059
|
-
networks: ("base
|
|
6082
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
6060
6083
|
}, {
|
|
6061
6084
|
type: "evmNetwork";
|
|
6062
6085
|
operator: "in" | "not in";
|
|
6063
|
-
networks: ("base
|
|
6086
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
6064
6087
|
}>, z.ZodObject<{
|
|
6065
6088
|
/** The type of criterion, must be "evmData" for EVM transaction rules. */
|
|
6066
6089
|
type: z.ZodLiteral<"evmData">;
|
|
@@ -6359,7 +6382,7 @@ export declare const SendEndUserEvmTransactionRuleSchema: z.ZodObject<{
|
|
|
6359
6382
|
} | {
|
|
6360
6383
|
type: "evmNetwork";
|
|
6361
6384
|
operator: "in" | "not in";
|
|
6362
|
-
networks: ("base
|
|
6385
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
6363
6386
|
} | {
|
|
6364
6387
|
type: "netUSDChange";
|
|
6365
6388
|
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
@@ -6424,7 +6447,7 @@ export declare const SendEndUserEvmTransactionRuleSchema: z.ZodObject<{
|
|
|
6424
6447
|
} | {
|
|
6425
6448
|
type: "evmNetwork";
|
|
6426
6449
|
operator: "in" | "not in";
|
|
6427
|
-
networks: ("base
|
|
6450
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
6428
6451
|
} | {
|
|
6429
6452
|
type: "netUSDChange";
|
|
6430
6453
|
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
@@ -6751,6 +6774,828 @@ export declare const SignEndUserEvmTypedDataRuleSchema: z.ZodObject<{
|
|
|
6751
6774
|
})[];
|
|
6752
6775
|
}>;
|
|
6753
6776
|
export type SignEndUserEvmTypedDataRule = z.infer<typeof SignEndUserEvmTypedDataRuleSchema>;
|
|
6777
|
+
/**
|
|
6778
|
+
* Schema for criteria used in SendEndUserOperation operations
|
|
6779
|
+
*/
|
|
6780
|
+
export declare const SendEndUserOperationCriteriaSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
6781
|
+
/** The type of criterion, must be "ethValue" for Ethereum value-based rules. */
|
|
6782
|
+
type: z.ZodLiteral<"ethValue">;
|
|
6783
|
+
/**
|
|
6784
|
+
* The ETH value amount in wei to compare against, as a string.
|
|
6785
|
+
* Must contain only digits.
|
|
6786
|
+
*/
|
|
6787
|
+
ethValue: z.ZodString;
|
|
6788
|
+
/** The comparison operator to use for evaluating transaction values against the threshold. */
|
|
6789
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
6790
|
+
}, "strip", z.ZodTypeAny, {
|
|
6791
|
+
ethValue: string;
|
|
6792
|
+
type: "ethValue";
|
|
6793
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
6794
|
+
}, {
|
|
6795
|
+
ethValue: string;
|
|
6796
|
+
type: "ethValue";
|
|
6797
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
6798
|
+
}>, z.ZodObject<{
|
|
6799
|
+
/** The type of criterion, must be "evmAddress" for EVM address-based rules. */
|
|
6800
|
+
type: z.ZodLiteral<"evmAddress">;
|
|
6801
|
+
/**
|
|
6802
|
+
* Array of EVM addresses to compare against.
|
|
6803
|
+
* Each address must be a 0x-prefixed 40-character hexadecimal string.
|
|
6804
|
+
* Limited to a maximum of 300 addresses per criterion.
|
|
6805
|
+
*/
|
|
6806
|
+
addresses: z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">;
|
|
6807
|
+
/**
|
|
6808
|
+
* The operator to use for evaluating transaction addresses.
|
|
6809
|
+
* "in" checks if an address is in the provided list.
|
|
6810
|
+
* "not in" checks if an address is not in the provided list.
|
|
6811
|
+
*/
|
|
6812
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
6813
|
+
}, "strip", z.ZodTypeAny, {
|
|
6814
|
+
type: "evmAddress";
|
|
6815
|
+
operator: "in" | "not in";
|
|
6816
|
+
addresses: `0x${string}`[];
|
|
6817
|
+
}, {
|
|
6818
|
+
type: "evmAddress";
|
|
6819
|
+
operator: "in" | "not in";
|
|
6820
|
+
addresses: string[];
|
|
6821
|
+
}>, z.ZodObject<{
|
|
6822
|
+
/** The type of criterion, must be "evmAddress" for EVM address-based rules. */
|
|
6823
|
+
type: z.ZodLiteral<"evmNetwork">;
|
|
6824
|
+
/**
|
|
6825
|
+
* Array of EVM network identifiers to compare against.
|
|
6826
|
+
* Either "base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"
|
|
6827
|
+
*/
|
|
6828
|
+
networks: z.ZodArray<z.ZodEnum<["base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"]>, "many">;
|
|
6829
|
+
/**
|
|
6830
|
+
* The operator to use for evaluating transaction network.
|
|
6831
|
+
* "in" checks if a network is in the provided list.
|
|
6832
|
+
* "not in" checks if a network is not in the provided list.
|
|
6833
|
+
*/
|
|
6834
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
6835
|
+
}, "strip", z.ZodTypeAny, {
|
|
6836
|
+
type: "evmNetwork";
|
|
6837
|
+
operator: "in" | "not in";
|
|
6838
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
6839
|
+
}, {
|
|
6840
|
+
type: "evmNetwork";
|
|
6841
|
+
operator: "in" | "not in";
|
|
6842
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
6843
|
+
}>, z.ZodObject<{
|
|
6844
|
+
/** The type of criterion, must be "evmData" for EVM transaction rules. */
|
|
6845
|
+
type: z.ZodLiteral<"evmData">;
|
|
6846
|
+
/**
|
|
6847
|
+
* The ABI of the smart contract being called. This can be a partial structure with only specific functions.
|
|
6848
|
+
*/
|
|
6849
|
+
abi: z.ZodUnion<[z.ZodEnum<["erc20", "erc721", "erc1155"]>, z.ZodReadonly<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
6850
|
+
type: z.ZodLiteral<"error">;
|
|
6851
|
+
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
6852
|
+
name: z.ZodString;
|
|
6853
|
+
}, "strip", z.ZodTypeAny, {
|
|
6854
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
6855
|
+
type: "error";
|
|
6856
|
+
name: string;
|
|
6857
|
+
}, {
|
|
6858
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
6859
|
+
type: "error";
|
|
6860
|
+
name: string;
|
|
6861
|
+
}>, z.ZodObject<{
|
|
6862
|
+
type: z.ZodLiteral<"event">;
|
|
6863
|
+
anonymous: z.ZodOptional<z.ZodBoolean>;
|
|
6864
|
+
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiEventParameter, z.ZodTypeDef, import("abitype").AbiEventParameter>, "many">>;
|
|
6865
|
+
name: z.ZodString;
|
|
6866
|
+
}, "strip", z.ZodTypeAny, {
|
|
6867
|
+
inputs: readonly import("abitype").AbiEventParameter[];
|
|
6868
|
+
type: "event";
|
|
6869
|
+
name: string;
|
|
6870
|
+
anonymous?: boolean | undefined;
|
|
6871
|
+
}, {
|
|
6872
|
+
inputs: readonly import("abitype").AbiEventParameter[];
|
|
6873
|
+
type: "event";
|
|
6874
|
+
name: string;
|
|
6875
|
+
anonymous?: boolean | undefined;
|
|
6876
|
+
}>, z.ZodEffects<z.ZodIntersection<z.ZodObject<{
|
|
6877
|
+
constant: z.ZodOptional<z.ZodBoolean>;
|
|
6878
|
+
gas: z.ZodOptional<z.ZodNumber>;
|
|
6879
|
+
payable: z.ZodOptional<z.ZodBoolean>;
|
|
6880
|
+
}, "strip", z.ZodTypeAny, {
|
|
6881
|
+
payable?: boolean | undefined;
|
|
6882
|
+
constant?: boolean | undefined;
|
|
6883
|
+
gas?: number | undefined;
|
|
6884
|
+
}, {
|
|
6885
|
+
payable?: boolean | undefined;
|
|
6886
|
+
constant?: boolean | undefined;
|
|
6887
|
+
gas?: number | undefined;
|
|
6888
|
+
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
6889
|
+
type: z.ZodLiteral<"function">;
|
|
6890
|
+
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
6891
|
+
name: z.ZodString;
|
|
6892
|
+
outputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
6893
|
+
stateMutability: z.ZodUnion<[z.ZodLiteral<"pure">, z.ZodLiteral<"view">, z.ZodLiteral<"nonpayable">, z.ZodLiteral<"payable">]>;
|
|
6894
|
+
}, "strip", z.ZodTypeAny, {
|
|
6895
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
6896
|
+
outputs: readonly import("abitype").AbiParameter[];
|
|
6897
|
+
type: "function";
|
|
6898
|
+
name: string;
|
|
6899
|
+
stateMutability: "pure" | "view" | "nonpayable" | "payable";
|
|
6900
|
+
}, {
|
|
6901
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
6902
|
+
outputs: readonly import("abitype").AbiParameter[];
|
|
6903
|
+
type: "function";
|
|
6904
|
+
name: string;
|
|
6905
|
+
stateMutability: "pure" | "view" | "nonpayable" | "payable";
|
|
6906
|
+
}>, z.ZodObject<{
|
|
6907
|
+
type: z.ZodLiteral<"constructor">;
|
|
6908
|
+
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
6909
|
+
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>;
|
|
6910
|
+
}, "strip", z.ZodTypeAny, {
|
|
6911
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
6912
|
+
type: "constructor";
|
|
6913
|
+
stateMutability: "nonpayable" | "payable";
|
|
6914
|
+
}, {
|
|
6915
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
6916
|
+
type: "constructor";
|
|
6917
|
+
stateMutability: "nonpayable" | "payable";
|
|
6918
|
+
}>, z.ZodObject<{
|
|
6919
|
+
type: z.ZodLiteral<"fallback">;
|
|
6920
|
+
inputs: z.ZodOptional<z.ZodTuple<[], null>>;
|
|
6921
|
+
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>;
|
|
6922
|
+
}, "strip", z.ZodTypeAny, {
|
|
6923
|
+
type: "fallback";
|
|
6924
|
+
stateMutability: "nonpayable" | "payable";
|
|
6925
|
+
inputs?: [] | undefined;
|
|
6926
|
+
}, {
|
|
6927
|
+
type: "fallback";
|
|
6928
|
+
stateMutability: "nonpayable" | "payable";
|
|
6929
|
+
inputs?: [] | undefined;
|
|
6930
|
+
}>, z.ZodObject<{
|
|
6931
|
+
type: z.ZodLiteral<"receive">;
|
|
6932
|
+
stateMutability: z.ZodLiteral<"payable">;
|
|
6933
|
+
}, "strip", z.ZodTypeAny, {
|
|
6934
|
+
type: "receive";
|
|
6935
|
+
stateMutability: "payable";
|
|
6936
|
+
}, {
|
|
6937
|
+
type: "receive";
|
|
6938
|
+
stateMutability: "payable";
|
|
6939
|
+
}>]>>, {
|
|
6940
|
+
payable?: boolean | undefined;
|
|
6941
|
+
constant?: boolean | undefined;
|
|
6942
|
+
gas?: number | undefined;
|
|
6943
|
+
} & ({
|
|
6944
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
6945
|
+
outputs: readonly import("abitype").AbiParameter[];
|
|
6946
|
+
type: "function";
|
|
6947
|
+
name: string;
|
|
6948
|
+
stateMutability: "pure" | "view" | "nonpayable" | "payable";
|
|
6949
|
+
} | {
|
|
6950
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
6951
|
+
type: "constructor";
|
|
6952
|
+
stateMutability: "nonpayable" | "payable";
|
|
6953
|
+
} | {
|
|
6954
|
+
type: "fallback";
|
|
6955
|
+
stateMutability: "nonpayable" | "payable";
|
|
6956
|
+
inputs?: [] | undefined;
|
|
6957
|
+
} | {
|
|
6958
|
+
type: "receive";
|
|
6959
|
+
stateMutability: "payable";
|
|
6960
|
+
}), unknown>]>, "many">>]>;
|
|
6961
|
+
/**
|
|
6962
|
+
* A list of conditions to apply against the function and encoded arguments in the transaction's `data` field.
|
|
6963
|
+
* Each condition must be met in order for this policy to be accepted or rejected.
|
|
6964
|
+
*/
|
|
6965
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
6966
|
+
/**
|
|
6967
|
+
* The name of a smart contract function being called.
|
|
6968
|
+
*/
|
|
6969
|
+
function: z.ZodString;
|
|
6970
|
+
/**
|
|
6971
|
+
* An optional list of parameter conditions to apply against encoded arguments in the transaction's `data` field.
|
|
6972
|
+
*/
|
|
6973
|
+
params: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
6974
|
+
/**
|
|
6975
|
+
* The name of the parameter to check against a transaction's calldata.
|
|
6976
|
+
* If name is unknown, or is not named, you may supply an array index, e.g., `0` for first parameter.
|
|
6977
|
+
*/
|
|
6978
|
+
name: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
6979
|
+
/**
|
|
6980
|
+
* The operator to use for the comparison. The value resolved at the `name` will be on the
|
|
6981
|
+
* left-hand side of the operator, and the `value` field will be on the right-hand side.
|
|
6982
|
+
*/
|
|
6983
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
6984
|
+
/**
|
|
6985
|
+
* A single value to compare the value resolved at `name` to.
|
|
6986
|
+
* All values are encoded as strings. Refer to the table in the documentation for how values
|
|
6987
|
+
* should be encoded, and which operators are supported for each type.
|
|
6988
|
+
*/
|
|
6989
|
+
value: z.ZodString;
|
|
6990
|
+
}, "strip", z.ZodTypeAny, {
|
|
6991
|
+
value: string;
|
|
6992
|
+
name: string;
|
|
6993
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
6994
|
+
}, {
|
|
6995
|
+
value: string;
|
|
6996
|
+
name: string;
|
|
6997
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
6998
|
+
}>, z.ZodObject<{
|
|
6999
|
+
/**
|
|
7000
|
+
* The name of the parameter to check against a transaction's calldata.
|
|
7001
|
+
* If name is unknown, or is not named, you may supply an array index, e.g., `0` for first parameter.
|
|
7002
|
+
*/
|
|
7003
|
+
name: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
7004
|
+
/**
|
|
7005
|
+
* The operator to use for the comparison. The value resolved at the `name` will be on the
|
|
7006
|
+
* left-hand side of the operator, and the `values` field will be on the right-hand side.
|
|
7007
|
+
*/
|
|
7008
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
7009
|
+
/**
|
|
7010
|
+
* Values to compare against the resolved `name` value.
|
|
7011
|
+
* All values are encoded as strings. Refer to the table in the documentation for how values
|
|
7012
|
+
* should be encoded, and which operators are supported for each type.
|
|
7013
|
+
*/
|
|
7014
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
7015
|
+
}, "strip", z.ZodTypeAny, {
|
|
7016
|
+
values: string[];
|
|
7017
|
+
name: string;
|
|
7018
|
+
operator: "in" | "not in";
|
|
7019
|
+
}, {
|
|
7020
|
+
values: string[];
|
|
7021
|
+
name: string;
|
|
7022
|
+
operator: "in" | "not in";
|
|
7023
|
+
}>]>, "many">>;
|
|
7024
|
+
}, "strip", z.ZodTypeAny, {
|
|
7025
|
+
function: string;
|
|
7026
|
+
params?: ({
|
|
7027
|
+
values: string[];
|
|
7028
|
+
name: string;
|
|
7029
|
+
operator: "in" | "not in";
|
|
7030
|
+
} | {
|
|
7031
|
+
value: string;
|
|
7032
|
+
name: string;
|
|
7033
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7034
|
+
})[] | undefined;
|
|
7035
|
+
}, {
|
|
7036
|
+
function: string;
|
|
7037
|
+
params?: ({
|
|
7038
|
+
values: string[];
|
|
7039
|
+
name: string;
|
|
7040
|
+
operator: "in" | "not in";
|
|
7041
|
+
} | {
|
|
7042
|
+
value: string;
|
|
7043
|
+
name: string;
|
|
7044
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7045
|
+
})[] | undefined;
|
|
7046
|
+
}>, "many">;
|
|
7047
|
+
}, "strip", z.ZodTypeAny, {
|
|
7048
|
+
type: "evmData";
|
|
7049
|
+
abi: "erc20" | "erc721" | "erc1155" | readonly ({
|
|
7050
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
7051
|
+
type: "error";
|
|
7052
|
+
name: string;
|
|
7053
|
+
} | {
|
|
7054
|
+
inputs: readonly import("abitype").AbiEventParameter[];
|
|
7055
|
+
type: "event";
|
|
7056
|
+
name: string;
|
|
7057
|
+
anonymous?: boolean | undefined;
|
|
7058
|
+
} | ({
|
|
7059
|
+
payable?: boolean | undefined;
|
|
7060
|
+
constant?: boolean | undefined;
|
|
7061
|
+
gas?: number | undefined;
|
|
7062
|
+
} & ({
|
|
7063
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
7064
|
+
outputs: readonly import("abitype").AbiParameter[];
|
|
7065
|
+
type: "function";
|
|
7066
|
+
name: string;
|
|
7067
|
+
stateMutability: "pure" | "view" | "nonpayable" | "payable";
|
|
7068
|
+
} | {
|
|
7069
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
7070
|
+
type: "constructor";
|
|
7071
|
+
stateMutability: "nonpayable" | "payable";
|
|
7072
|
+
} | {
|
|
7073
|
+
type: "fallback";
|
|
7074
|
+
stateMutability: "nonpayable" | "payable";
|
|
7075
|
+
inputs?: [] | undefined;
|
|
7076
|
+
} | {
|
|
7077
|
+
type: "receive";
|
|
7078
|
+
stateMutability: "payable";
|
|
7079
|
+
})))[];
|
|
7080
|
+
conditions: {
|
|
7081
|
+
function: string;
|
|
7082
|
+
params?: ({
|
|
7083
|
+
values: string[];
|
|
7084
|
+
name: string;
|
|
7085
|
+
operator: "in" | "not in";
|
|
7086
|
+
} | {
|
|
7087
|
+
value: string;
|
|
7088
|
+
name: string;
|
|
7089
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7090
|
+
})[] | undefined;
|
|
7091
|
+
}[];
|
|
7092
|
+
}, {
|
|
7093
|
+
type: "evmData";
|
|
7094
|
+
abi: "erc20" | "erc721" | "erc1155" | readonly unknown[];
|
|
7095
|
+
conditions: {
|
|
7096
|
+
function: string;
|
|
7097
|
+
params?: ({
|
|
7098
|
+
values: string[];
|
|
7099
|
+
name: string;
|
|
7100
|
+
operator: "in" | "not in";
|
|
7101
|
+
} | {
|
|
7102
|
+
value: string;
|
|
7103
|
+
name: string;
|
|
7104
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7105
|
+
})[] | undefined;
|
|
7106
|
+
}[];
|
|
7107
|
+
}>, z.ZodObject<{
|
|
7108
|
+
/** The type of criterion, must be "netUSDChange" for USD denominated asset transfer rules. */
|
|
7109
|
+
type: z.ZodLiteral<"netUSDChange">;
|
|
7110
|
+
/**
|
|
7111
|
+
* The amount of USD, in cents, that the total USD value of a transaction's asset transfer and exposure should be compared to.
|
|
7112
|
+
*/
|
|
7113
|
+
changeCents: z.ZodNumber;
|
|
7114
|
+
/**
|
|
7115
|
+
* The operator to use for the comparison. The total value of a transaction's asset transfer and exposure in USD will be on the left-hand side of the operator, and the `changeCents` field will be on the right-hand side.
|
|
7116
|
+
*/
|
|
7117
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
7118
|
+
}, "strip", z.ZodTypeAny, {
|
|
7119
|
+
type: "netUSDChange";
|
|
7120
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7121
|
+
changeCents: number;
|
|
7122
|
+
}, {
|
|
7123
|
+
type: "netUSDChange";
|
|
7124
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7125
|
+
changeCents: number;
|
|
7126
|
+
}>]>, "many">;
|
|
7127
|
+
/**
|
|
7128
|
+
* Type representing a set of criteria for the sendEndUserOperation operation.
|
|
7129
|
+
*/
|
|
7130
|
+
export type SendEndUserOperationCriteria = z.infer<typeof SendEndUserOperationCriteriaSchema>;
|
|
7131
|
+
/**
|
|
7132
|
+
* Type representing a 'sendEndUserOperation' policy rule that can accept or reject specific operations
|
|
7133
|
+
* based on a set of criteria.
|
|
7134
|
+
*/
|
|
7135
|
+
export declare const SendEndUserOperationRuleSchema: z.ZodObject<{
|
|
7136
|
+
/**
|
|
7137
|
+
* Determines whether matching the rule will cause a request to be rejected or accepted.
|
|
7138
|
+
* "accept" will allow the operation, "reject" will block it.
|
|
7139
|
+
*/
|
|
7140
|
+
action: z.ZodEnum<["reject", "accept"]>;
|
|
7141
|
+
/**
|
|
7142
|
+
* The operation to which this rule applies.
|
|
7143
|
+
* Must be "sendEndUserOperation".
|
|
7144
|
+
*/
|
|
7145
|
+
operation: z.ZodLiteral<"sendEndUserOperation">;
|
|
7146
|
+
/**
|
|
7147
|
+
* The set of criteria that must be matched for this rule to apply.
|
|
7148
|
+
* Must be compatible with the specified operation type.
|
|
7149
|
+
*/
|
|
7150
|
+
criteria: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
7151
|
+
/** The type of criterion, must be "ethValue" for Ethereum value-based rules. */
|
|
7152
|
+
type: z.ZodLiteral<"ethValue">;
|
|
7153
|
+
/**
|
|
7154
|
+
* The ETH value amount in wei to compare against, as a string.
|
|
7155
|
+
* Must contain only digits.
|
|
7156
|
+
*/
|
|
7157
|
+
ethValue: z.ZodString;
|
|
7158
|
+
/** The comparison operator to use for evaluating transaction values against the threshold. */
|
|
7159
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
7160
|
+
}, "strip", z.ZodTypeAny, {
|
|
7161
|
+
ethValue: string;
|
|
7162
|
+
type: "ethValue";
|
|
7163
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7164
|
+
}, {
|
|
7165
|
+
ethValue: string;
|
|
7166
|
+
type: "ethValue";
|
|
7167
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7168
|
+
}>, z.ZodObject<{
|
|
7169
|
+
/** The type of criterion, must be "evmAddress" for EVM address-based rules. */
|
|
7170
|
+
type: z.ZodLiteral<"evmAddress">;
|
|
7171
|
+
/**
|
|
7172
|
+
* Array of EVM addresses to compare against.
|
|
7173
|
+
* Each address must be a 0x-prefixed 40-character hexadecimal string.
|
|
7174
|
+
* Limited to a maximum of 300 addresses per criterion.
|
|
7175
|
+
*/
|
|
7176
|
+
addresses: z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">;
|
|
7177
|
+
/**
|
|
7178
|
+
* The operator to use for evaluating transaction addresses.
|
|
7179
|
+
* "in" checks if an address is in the provided list.
|
|
7180
|
+
* "not in" checks if an address is not in the provided list.
|
|
7181
|
+
*/
|
|
7182
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
7183
|
+
}, "strip", z.ZodTypeAny, {
|
|
7184
|
+
type: "evmAddress";
|
|
7185
|
+
operator: "in" | "not in";
|
|
7186
|
+
addresses: `0x${string}`[];
|
|
7187
|
+
}, {
|
|
7188
|
+
type: "evmAddress";
|
|
7189
|
+
operator: "in" | "not in";
|
|
7190
|
+
addresses: string[];
|
|
7191
|
+
}>, z.ZodObject<{
|
|
7192
|
+
/** The type of criterion, must be "evmAddress" for EVM address-based rules. */
|
|
7193
|
+
type: z.ZodLiteral<"evmNetwork">;
|
|
7194
|
+
/**
|
|
7195
|
+
* Array of EVM network identifiers to compare against.
|
|
7196
|
+
* Either "base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"
|
|
7197
|
+
*/
|
|
7198
|
+
networks: z.ZodArray<z.ZodEnum<["base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"]>, "many">;
|
|
7199
|
+
/**
|
|
7200
|
+
* The operator to use for evaluating transaction network.
|
|
7201
|
+
* "in" checks if a network is in the provided list.
|
|
7202
|
+
* "not in" checks if a network is not in the provided list.
|
|
7203
|
+
*/
|
|
7204
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
7205
|
+
}, "strip", z.ZodTypeAny, {
|
|
7206
|
+
type: "evmNetwork";
|
|
7207
|
+
operator: "in" | "not in";
|
|
7208
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
7209
|
+
}, {
|
|
7210
|
+
type: "evmNetwork";
|
|
7211
|
+
operator: "in" | "not in";
|
|
7212
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
7213
|
+
}>, z.ZodObject<{
|
|
7214
|
+
/** The type of criterion, must be "evmData" for EVM transaction rules. */
|
|
7215
|
+
type: z.ZodLiteral<"evmData">;
|
|
7216
|
+
/**
|
|
7217
|
+
* The ABI of the smart contract being called. This can be a partial structure with only specific functions.
|
|
7218
|
+
*/
|
|
7219
|
+
abi: z.ZodUnion<[z.ZodEnum<["erc20", "erc721", "erc1155"]>, z.ZodReadonly<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
7220
|
+
type: z.ZodLiteral<"error">;
|
|
7221
|
+
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
7222
|
+
name: z.ZodString;
|
|
7223
|
+
}, "strip", z.ZodTypeAny, {
|
|
7224
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
7225
|
+
type: "error";
|
|
7226
|
+
name: string;
|
|
7227
|
+
}, {
|
|
7228
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
7229
|
+
type: "error";
|
|
7230
|
+
name: string;
|
|
7231
|
+
}>, z.ZodObject<{
|
|
7232
|
+
type: z.ZodLiteral<"event">;
|
|
7233
|
+
anonymous: z.ZodOptional<z.ZodBoolean>;
|
|
7234
|
+
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiEventParameter, z.ZodTypeDef, import("abitype").AbiEventParameter>, "many">>;
|
|
7235
|
+
name: z.ZodString;
|
|
7236
|
+
}, "strip", z.ZodTypeAny, {
|
|
7237
|
+
inputs: readonly import("abitype").AbiEventParameter[];
|
|
7238
|
+
type: "event";
|
|
7239
|
+
name: string;
|
|
7240
|
+
anonymous?: boolean | undefined;
|
|
7241
|
+
}, {
|
|
7242
|
+
inputs: readonly import("abitype").AbiEventParameter[];
|
|
7243
|
+
type: "event";
|
|
7244
|
+
name: string;
|
|
7245
|
+
anonymous?: boolean | undefined;
|
|
7246
|
+
}>, z.ZodEffects<z.ZodIntersection<z.ZodObject<{
|
|
7247
|
+
constant: z.ZodOptional<z.ZodBoolean>;
|
|
7248
|
+
gas: z.ZodOptional<z.ZodNumber>;
|
|
7249
|
+
payable: z.ZodOptional<z.ZodBoolean>;
|
|
7250
|
+
}, "strip", z.ZodTypeAny, {
|
|
7251
|
+
payable?: boolean | undefined;
|
|
7252
|
+
constant?: boolean | undefined;
|
|
7253
|
+
gas?: number | undefined;
|
|
7254
|
+
}, {
|
|
7255
|
+
payable?: boolean | undefined;
|
|
7256
|
+
constant?: boolean | undefined;
|
|
7257
|
+
gas?: number | undefined;
|
|
7258
|
+
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
7259
|
+
type: z.ZodLiteral<"function">;
|
|
7260
|
+
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
7261
|
+
name: z.ZodString;
|
|
7262
|
+
outputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
7263
|
+
stateMutability: z.ZodUnion<[z.ZodLiteral<"pure">, z.ZodLiteral<"view">, z.ZodLiteral<"nonpayable">, z.ZodLiteral<"payable">]>;
|
|
7264
|
+
}, "strip", z.ZodTypeAny, {
|
|
7265
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
7266
|
+
outputs: readonly import("abitype").AbiParameter[];
|
|
7267
|
+
type: "function";
|
|
7268
|
+
name: string;
|
|
7269
|
+
stateMutability: "pure" | "view" | "nonpayable" | "payable";
|
|
7270
|
+
}, {
|
|
7271
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
7272
|
+
outputs: readonly import("abitype").AbiParameter[];
|
|
7273
|
+
type: "function";
|
|
7274
|
+
name: string;
|
|
7275
|
+
stateMutability: "pure" | "view" | "nonpayable" | "payable";
|
|
7276
|
+
}>, z.ZodObject<{
|
|
7277
|
+
type: z.ZodLiteral<"constructor">;
|
|
7278
|
+
inputs: z.ZodReadonly<z.ZodArray<z.ZodType<import("abitype").AbiParameter, z.ZodTypeDef, import("abitype").AbiParameter>, "many">>;
|
|
7279
|
+
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>;
|
|
7280
|
+
}, "strip", z.ZodTypeAny, {
|
|
7281
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
7282
|
+
type: "constructor";
|
|
7283
|
+
stateMutability: "nonpayable" | "payable";
|
|
7284
|
+
}, {
|
|
7285
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
7286
|
+
type: "constructor";
|
|
7287
|
+
stateMutability: "nonpayable" | "payable";
|
|
7288
|
+
}>, z.ZodObject<{
|
|
7289
|
+
type: z.ZodLiteral<"fallback">;
|
|
7290
|
+
inputs: z.ZodOptional<z.ZodTuple<[], null>>;
|
|
7291
|
+
stateMutability: z.ZodUnion<[z.ZodLiteral<"payable">, z.ZodLiteral<"nonpayable">]>;
|
|
7292
|
+
}, "strip", z.ZodTypeAny, {
|
|
7293
|
+
type: "fallback";
|
|
7294
|
+
stateMutability: "nonpayable" | "payable";
|
|
7295
|
+
inputs?: [] | undefined;
|
|
7296
|
+
}, {
|
|
7297
|
+
type: "fallback";
|
|
7298
|
+
stateMutability: "nonpayable" | "payable";
|
|
7299
|
+
inputs?: [] | undefined;
|
|
7300
|
+
}>, z.ZodObject<{
|
|
7301
|
+
type: z.ZodLiteral<"receive">;
|
|
7302
|
+
stateMutability: z.ZodLiteral<"payable">;
|
|
7303
|
+
}, "strip", z.ZodTypeAny, {
|
|
7304
|
+
type: "receive";
|
|
7305
|
+
stateMutability: "payable";
|
|
7306
|
+
}, {
|
|
7307
|
+
type: "receive";
|
|
7308
|
+
stateMutability: "payable";
|
|
7309
|
+
}>]>>, {
|
|
7310
|
+
payable?: boolean | undefined;
|
|
7311
|
+
constant?: boolean | undefined;
|
|
7312
|
+
gas?: number | undefined;
|
|
7313
|
+
} & ({
|
|
7314
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
7315
|
+
outputs: readonly import("abitype").AbiParameter[];
|
|
7316
|
+
type: "function";
|
|
7317
|
+
name: string;
|
|
7318
|
+
stateMutability: "pure" | "view" | "nonpayable" | "payable";
|
|
7319
|
+
} | {
|
|
7320
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
7321
|
+
type: "constructor";
|
|
7322
|
+
stateMutability: "nonpayable" | "payable";
|
|
7323
|
+
} | {
|
|
7324
|
+
type: "fallback";
|
|
7325
|
+
stateMutability: "nonpayable" | "payable";
|
|
7326
|
+
inputs?: [] | undefined;
|
|
7327
|
+
} | {
|
|
7328
|
+
type: "receive";
|
|
7329
|
+
stateMutability: "payable";
|
|
7330
|
+
}), unknown>]>, "many">>]>;
|
|
7331
|
+
/**
|
|
7332
|
+
* A list of conditions to apply against the function and encoded arguments in the transaction's `data` field.
|
|
7333
|
+
* Each condition must be met in order for this policy to be accepted or rejected.
|
|
7334
|
+
*/
|
|
7335
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
7336
|
+
/**
|
|
7337
|
+
* The name of a smart contract function being called.
|
|
7338
|
+
*/
|
|
7339
|
+
function: z.ZodString;
|
|
7340
|
+
/**
|
|
7341
|
+
* An optional list of parameter conditions to apply against encoded arguments in the transaction's `data` field.
|
|
7342
|
+
*/
|
|
7343
|
+
params: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
7344
|
+
/**
|
|
7345
|
+
* The name of the parameter to check against a transaction's calldata.
|
|
7346
|
+
* If name is unknown, or is not named, you may supply an array index, e.g., `0` for first parameter.
|
|
7347
|
+
*/
|
|
7348
|
+
name: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
7349
|
+
/**
|
|
7350
|
+
* The operator to use for the comparison. The value resolved at the `name` will be on the
|
|
7351
|
+
* left-hand side of the operator, and the `value` field will be on the right-hand side.
|
|
7352
|
+
*/
|
|
7353
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
7354
|
+
/**
|
|
7355
|
+
* A single value to compare the value resolved at `name` to.
|
|
7356
|
+
* All values are encoded as strings. Refer to the table in the documentation for how values
|
|
7357
|
+
* should be encoded, and which operators are supported for each type.
|
|
7358
|
+
*/
|
|
7359
|
+
value: z.ZodString;
|
|
7360
|
+
}, "strip", z.ZodTypeAny, {
|
|
7361
|
+
value: string;
|
|
7362
|
+
name: string;
|
|
7363
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7364
|
+
}, {
|
|
7365
|
+
value: string;
|
|
7366
|
+
name: string;
|
|
7367
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7368
|
+
}>, z.ZodObject<{
|
|
7369
|
+
/**
|
|
7370
|
+
* The name of the parameter to check against a transaction's calldata.
|
|
7371
|
+
* If name is unknown, or is not named, you may supply an array index, e.g., `0` for first parameter.
|
|
7372
|
+
*/
|
|
7373
|
+
name: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
7374
|
+
/**
|
|
7375
|
+
* The operator to use for the comparison. The value resolved at the `name` will be on the
|
|
7376
|
+
* left-hand side of the operator, and the `values` field will be on the right-hand side.
|
|
7377
|
+
*/
|
|
7378
|
+
operator: z.ZodEnum<["in", "not in"]>;
|
|
7379
|
+
/**
|
|
7380
|
+
* Values to compare against the resolved `name` value.
|
|
7381
|
+
* All values are encoded as strings. Refer to the table in the documentation for how values
|
|
7382
|
+
* should be encoded, and which operators are supported for each type.
|
|
7383
|
+
*/
|
|
7384
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
7385
|
+
}, "strip", z.ZodTypeAny, {
|
|
7386
|
+
values: string[];
|
|
7387
|
+
name: string;
|
|
7388
|
+
operator: "in" | "not in";
|
|
7389
|
+
}, {
|
|
7390
|
+
values: string[];
|
|
7391
|
+
name: string;
|
|
7392
|
+
operator: "in" | "not in";
|
|
7393
|
+
}>]>, "many">>;
|
|
7394
|
+
}, "strip", z.ZodTypeAny, {
|
|
7395
|
+
function: string;
|
|
7396
|
+
params?: ({
|
|
7397
|
+
values: string[];
|
|
7398
|
+
name: string;
|
|
7399
|
+
operator: "in" | "not in";
|
|
7400
|
+
} | {
|
|
7401
|
+
value: string;
|
|
7402
|
+
name: string;
|
|
7403
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7404
|
+
})[] | undefined;
|
|
7405
|
+
}, {
|
|
7406
|
+
function: string;
|
|
7407
|
+
params?: ({
|
|
7408
|
+
values: string[];
|
|
7409
|
+
name: string;
|
|
7410
|
+
operator: "in" | "not in";
|
|
7411
|
+
} | {
|
|
7412
|
+
value: string;
|
|
7413
|
+
name: string;
|
|
7414
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7415
|
+
})[] | undefined;
|
|
7416
|
+
}>, "many">;
|
|
7417
|
+
}, "strip", z.ZodTypeAny, {
|
|
7418
|
+
type: "evmData";
|
|
7419
|
+
abi: "erc20" | "erc721" | "erc1155" | readonly ({
|
|
7420
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
7421
|
+
type: "error";
|
|
7422
|
+
name: string;
|
|
7423
|
+
} | {
|
|
7424
|
+
inputs: readonly import("abitype").AbiEventParameter[];
|
|
7425
|
+
type: "event";
|
|
7426
|
+
name: string;
|
|
7427
|
+
anonymous?: boolean | undefined;
|
|
7428
|
+
} | ({
|
|
7429
|
+
payable?: boolean | undefined;
|
|
7430
|
+
constant?: boolean | undefined;
|
|
7431
|
+
gas?: number | undefined;
|
|
7432
|
+
} & ({
|
|
7433
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
7434
|
+
outputs: readonly import("abitype").AbiParameter[];
|
|
7435
|
+
type: "function";
|
|
7436
|
+
name: string;
|
|
7437
|
+
stateMutability: "pure" | "view" | "nonpayable" | "payable";
|
|
7438
|
+
} | {
|
|
7439
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
7440
|
+
type: "constructor";
|
|
7441
|
+
stateMutability: "nonpayable" | "payable";
|
|
7442
|
+
} | {
|
|
7443
|
+
type: "fallback";
|
|
7444
|
+
stateMutability: "nonpayable" | "payable";
|
|
7445
|
+
inputs?: [] | undefined;
|
|
7446
|
+
} | {
|
|
7447
|
+
type: "receive";
|
|
7448
|
+
stateMutability: "payable";
|
|
7449
|
+
})))[];
|
|
7450
|
+
conditions: {
|
|
7451
|
+
function: string;
|
|
7452
|
+
params?: ({
|
|
7453
|
+
values: string[];
|
|
7454
|
+
name: string;
|
|
7455
|
+
operator: "in" | "not in";
|
|
7456
|
+
} | {
|
|
7457
|
+
value: string;
|
|
7458
|
+
name: string;
|
|
7459
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7460
|
+
})[] | undefined;
|
|
7461
|
+
}[];
|
|
7462
|
+
}, {
|
|
7463
|
+
type: "evmData";
|
|
7464
|
+
abi: "erc20" | "erc721" | "erc1155" | readonly unknown[];
|
|
7465
|
+
conditions: {
|
|
7466
|
+
function: string;
|
|
7467
|
+
params?: ({
|
|
7468
|
+
values: string[];
|
|
7469
|
+
name: string;
|
|
7470
|
+
operator: "in" | "not in";
|
|
7471
|
+
} | {
|
|
7472
|
+
value: string;
|
|
7473
|
+
name: string;
|
|
7474
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7475
|
+
})[] | undefined;
|
|
7476
|
+
}[];
|
|
7477
|
+
}>, z.ZodObject<{
|
|
7478
|
+
/** The type of criterion, must be "netUSDChange" for USD denominated asset transfer rules. */
|
|
7479
|
+
type: z.ZodLiteral<"netUSDChange">;
|
|
7480
|
+
/**
|
|
7481
|
+
* The amount of USD, in cents, that the total USD value of a transaction's asset transfer and exposure should be compared to.
|
|
7482
|
+
*/
|
|
7483
|
+
changeCents: z.ZodNumber;
|
|
7484
|
+
/**
|
|
7485
|
+
* The operator to use for the comparison. The total value of a transaction's asset transfer and exposure in USD will be on the left-hand side of the operator, and the `changeCents` field will be on the right-hand side.
|
|
7486
|
+
*/
|
|
7487
|
+
operator: z.ZodEnum<[">", ">=", "<", "<=", "=="]>;
|
|
7488
|
+
}, "strip", z.ZodTypeAny, {
|
|
7489
|
+
type: "netUSDChange";
|
|
7490
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7491
|
+
changeCents: number;
|
|
7492
|
+
}, {
|
|
7493
|
+
type: "netUSDChange";
|
|
7494
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7495
|
+
changeCents: number;
|
|
7496
|
+
}>]>, "many">;
|
|
7497
|
+
}, "strip", z.ZodTypeAny, {
|
|
7498
|
+
action: "reject" | "accept";
|
|
7499
|
+
operation: "sendEndUserOperation";
|
|
7500
|
+
criteria: ({
|
|
7501
|
+
ethValue: string;
|
|
7502
|
+
type: "ethValue";
|
|
7503
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7504
|
+
} | {
|
|
7505
|
+
type: "evmAddress";
|
|
7506
|
+
operator: "in" | "not in";
|
|
7507
|
+
addresses: `0x${string}`[];
|
|
7508
|
+
} | {
|
|
7509
|
+
type: "evmNetwork";
|
|
7510
|
+
operator: "in" | "not in";
|
|
7511
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
7512
|
+
} | {
|
|
7513
|
+
type: "netUSDChange";
|
|
7514
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7515
|
+
changeCents: number;
|
|
7516
|
+
} | {
|
|
7517
|
+
type: "evmData";
|
|
7518
|
+
abi: "erc20" | "erc721" | "erc1155" | readonly ({
|
|
7519
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
7520
|
+
type: "error";
|
|
7521
|
+
name: string;
|
|
7522
|
+
} | {
|
|
7523
|
+
inputs: readonly import("abitype").AbiEventParameter[];
|
|
7524
|
+
type: "event";
|
|
7525
|
+
name: string;
|
|
7526
|
+
anonymous?: boolean | undefined;
|
|
7527
|
+
} | ({
|
|
7528
|
+
payable?: boolean | undefined;
|
|
7529
|
+
constant?: boolean | undefined;
|
|
7530
|
+
gas?: number | undefined;
|
|
7531
|
+
} & ({
|
|
7532
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
7533
|
+
outputs: readonly import("abitype").AbiParameter[];
|
|
7534
|
+
type: "function";
|
|
7535
|
+
name: string;
|
|
7536
|
+
stateMutability: "pure" | "view" | "nonpayable" | "payable";
|
|
7537
|
+
} | {
|
|
7538
|
+
inputs: readonly import("abitype").AbiParameter[];
|
|
7539
|
+
type: "constructor";
|
|
7540
|
+
stateMutability: "nonpayable" | "payable";
|
|
7541
|
+
} | {
|
|
7542
|
+
type: "fallback";
|
|
7543
|
+
stateMutability: "nonpayable" | "payable";
|
|
7544
|
+
inputs?: [] | undefined;
|
|
7545
|
+
} | {
|
|
7546
|
+
type: "receive";
|
|
7547
|
+
stateMutability: "payable";
|
|
7548
|
+
})))[];
|
|
7549
|
+
conditions: {
|
|
7550
|
+
function: string;
|
|
7551
|
+
params?: ({
|
|
7552
|
+
values: string[];
|
|
7553
|
+
name: string;
|
|
7554
|
+
operator: "in" | "not in";
|
|
7555
|
+
} | {
|
|
7556
|
+
value: string;
|
|
7557
|
+
name: string;
|
|
7558
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7559
|
+
})[] | undefined;
|
|
7560
|
+
}[];
|
|
7561
|
+
})[];
|
|
7562
|
+
}, {
|
|
7563
|
+
action: "reject" | "accept";
|
|
7564
|
+
operation: "sendEndUserOperation";
|
|
7565
|
+
criteria: ({
|
|
7566
|
+
ethValue: string;
|
|
7567
|
+
type: "ethValue";
|
|
7568
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7569
|
+
} | {
|
|
7570
|
+
type: "evmAddress";
|
|
7571
|
+
operator: "in" | "not in";
|
|
7572
|
+
addresses: string[];
|
|
7573
|
+
} | {
|
|
7574
|
+
type: "evmNetwork";
|
|
7575
|
+
operator: "in" | "not in";
|
|
7576
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "zora" | "bnb" | "avalanche")[];
|
|
7577
|
+
} | {
|
|
7578
|
+
type: "netUSDChange";
|
|
7579
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7580
|
+
changeCents: number;
|
|
7581
|
+
} | {
|
|
7582
|
+
type: "evmData";
|
|
7583
|
+
abi: "erc20" | "erc721" | "erc1155" | readonly unknown[];
|
|
7584
|
+
conditions: {
|
|
7585
|
+
function: string;
|
|
7586
|
+
params?: ({
|
|
7587
|
+
values: string[];
|
|
7588
|
+
name: string;
|
|
7589
|
+
operator: "in" | "not in";
|
|
7590
|
+
} | {
|
|
7591
|
+
value: string;
|
|
7592
|
+
name: string;
|
|
7593
|
+
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
7594
|
+
})[] | undefined;
|
|
7595
|
+
}[];
|
|
7596
|
+
})[];
|
|
7597
|
+
}>;
|
|
7598
|
+
export type SendEndUserOperationRule = z.infer<typeof SendEndUserOperationRuleSchema>;
|
|
6754
7599
|
/**
|
|
6755
7600
|
* Schema for criteria used in SendEndUserEvmAsset operations
|
|
6756
7601
|
*/
|
|
@@ -6771,11 +7616,11 @@ export declare const SendEndUserEvmAssetCriteriaSchema: z.ZodArray<z.ZodDiscrimi
|
|
|
6771
7616
|
}, "strip", z.ZodTypeAny, {
|
|
6772
7617
|
type: "evmNetwork";
|
|
6773
7618
|
operator: "in" | "not in";
|
|
6774
|
-
networks: ("base
|
|
7619
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
6775
7620
|
}, {
|
|
6776
7621
|
type: "evmNetwork";
|
|
6777
7622
|
operator: "in" | "not in";
|
|
6778
|
-
networks: ("base
|
|
7623
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
6779
7624
|
}>, z.ZodObject<{
|
|
6780
7625
|
/** The type of criterion, must be "evmData" for EVM transaction rules. */
|
|
6781
7626
|
type: z.ZodLiteral<"evmData">;
|
|
@@ -7100,11 +7945,11 @@ export declare const SendEndUserEvmAssetRuleSchema: z.ZodObject<{
|
|
|
7100
7945
|
}, "strip", z.ZodTypeAny, {
|
|
7101
7946
|
type: "evmNetwork";
|
|
7102
7947
|
operator: "in" | "not in";
|
|
7103
|
-
networks: ("base
|
|
7948
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
7104
7949
|
}, {
|
|
7105
7950
|
type: "evmNetwork";
|
|
7106
7951
|
operator: "in" | "not in";
|
|
7107
|
-
networks: ("base
|
|
7952
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
7108
7953
|
}>, z.ZodObject<{
|
|
7109
7954
|
/** The type of criterion, must be "evmData" for EVM transaction rules. */
|
|
7110
7955
|
type: z.ZodLiteral<"evmData">;
|
|
@@ -7395,7 +8240,7 @@ export declare const SendEndUserEvmAssetRuleSchema: z.ZodObject<{
|
|
|
7395
8240
|
criteria: ({
|
|
7396
8241
|
type: "evmNetwork";
|
|
7397
8242
|
operator: "in" | "not in";
|
|
7398
|
-
networks: ("base
|
|
8243
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
7399
8244
|
} | {
|
|
7400
8245
|
type: "netUSDChange";
|
|
7401
8246
|
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
@@ -7452,7 +8297,7 @@ export declare const SendEndUserEvmAssetRuleSchema: z.ZodObject<{
|
|
|
7452
8297
|
criteria: ({
|
|
7453
8298
|
type: "evmNetwork";
|
|
7454
8299
|
operator: "in" | "not in";
|
|
7455
|
-
networks: ("base
|
|
8300
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
7456
8301
|
} | {
|
|
7457
8302
|
type: "netUSDChange";
|
|
7458
8303
|
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
@@ -7495,11 +8340,11 @@ export declare const CreateEndUserEvmSwapCriteriaSchema: z.ZodArray<z.ZodDiscrim
|
|
|
7495
8340
|
}, "strip", z.ZodTypeAny, {
|
|
7496
8341
|
type: "evmNetwork";
|
|
7497
8342
|
operator: "in" | "not in";
|
|
7498
|
-
networks: ("base
|
|
8343
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
7499
8344
|
}, {
|
|
7500
8345
|
type: "evmNetwork";
|
|
7501
8346
|
operator: "in" | "not in";
|
|
7502
|
-
networks: ("base
|
|
8347
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
7503
8348
|
}>, z.ZodObject<{
|
|
7504
8349
|
/** The type of criterion, must be "evmData" for EVM transaction rules. */
|
|
7505
8350
|
type: z.ZodLiteral<"evmData">;
|
|
@@ -7824,11 +8669,11 @@ export declare const CreateEndUserEvmSwapRuleSchema: z.ZodObject<{
|
|
|
7824
8669
|
}, "strip", z.ZodTypeAny, {
|
|
7825
8670
|
type: "evmNetwork";
|
|
7826
8671
|
operator: "in" | "not in";
|
|
7827
|
-
networks: ("base
|
|
8672
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
7828
8673
|
}, {
|
|
7829
8674
|
type: "evmNetwork";
|
|
7830
8675
|
operator: "in" | "not in";
|
|
7831
|
-
networks: ("base
|
|
8676
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
7832
8677
|
}>, z.ZodObject<{
|
|
7833
8678
|
/** The type of criterion, must be "evmData" for EVM transaction rules. */
|
|
7834
8679
|
type: z.ZodLiteral<"evmData">;
|
|
@@ -8119,7 +8964,7 @@ export declare const CreateEndUserEvmSwapRuleSchema: z.ZodObject<{
|
|
|
8119
8964
|
criteria: ({
|
|
8120
8965
|
type: "evmNetwork";
|
|
8121
8966
|
operator: "in" | "not in";
|
|
8122
|
-
networks: ("base
|
|
8967
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
8123
8968
|
} | {
|
|
8124
8969
|
type: "netUSDChange";
|
|
8125
8970
|
operator: ">" | ">=" | "<" | "<=" | "==";
|
|
@@ -8176,7 +9021,7 @@ export declare const CreateEndUserEvmSwapRuleSchema: z.ZodObject<{
|
|
|
8176
9021
|
criteria: ({
|
|
8177
9022
|
type: "evmNetwork";
|
|
8178
9023
|
operator: "in" | "not in";
|
|
8179
|
-
networks: ("base
|
|
9024
|
+
networks: ("base" | "ethereum" | "arbitrum" | "optimism" | "polygon" | "base-sepolia" | "ethereum-sepolia" | "avalanche")[];
|
|
8180
9025
|
} | {
|
|
8181
9026
|
type: "netUSDChange";
|
|
8182
9027
|
operator: ">" | ">=" | "<" | "<=" | "==";
|