@axonfi/sdk 0.5.0 → 0.5.2
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 +21 -11
- package/dist/index.cjs +376 -330
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +42 -10
- package/dist/index.d.ts +42 -10
- package/dist/index.js +376 -331
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -382,7 +382,7 @@ interface BotConfig {
|
|
|
382
382
|
/** Relayer always requires AI scan for this bot regardless of amount. */
|
|
383
383
|
requireAiVerification: boolean;
|
|
384
384
|
}
|
|
385
|
-
/** Parameters for addBot / updateBotConfig. */
|
|
385
|
+
/** Parameters for addBot / updateBotConfig (raw on-chain format). */
|
|
386
386
|
interface BotConfigParams {
|
|
387
387
|
maxPerTxAmount: bigint;
|
|
388
388
|
/** Hard cap for rebalancing (executeSwap) input amount in USD. 0 = no cap (default). */
|
|
@@ -391,6 +391,33 @@ interface BotConfigParams {
|
|
|
391
391
|
aiTriggerThreshold: bigint;
|
|
392
392
|
requireAiVerification: boolean;
|
|
393
393
|
}
|
|
394
|
+
/** Human-friendly spending limit input. SDK converts dollar amounts to 6-decimal base units. */
|
|
395
|
+
interface SpendingLimitInput {
|
|
396
|
+
/** Max spend in this window in USD (e.g. 1000 = $1,000). */
|
|
397
|
+
amount: number;
|
|
398
|
+
/** Max transactions in this window. 0 = no count limit. */
|
|
399
|
+
maxCount: number;
|
|
400
|
+
/** Window size in seconds: 3600=1h, 86400=1d, 604800=1w. Use WINDOW constants. */
|
|
401
|
+
windowSeconds: number;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Human-friendly bot config input for addBot / updateBotConfig.
|
|
405
|
+
*
|
|
406
|
+
* Dollar amounts are plain numbers (e.g. 100 = $100). The SDK converts
|
|
407
|
+
* to 6-decimal base units (USDC precision) before sending to the contract.
|
|
408
|
+
*/
|
|
409
|
+
interface BotConfigInput {
|
|
410
|
+
/** Hard per-tx cap in USD (e.g. 100 = $100). 0 = no cap. */
|
|
411
|
+
maxPerTxAmount: number;
|
|
412
|
+
/** Hard rebalance cap in USD (e.g. 50 = $50). 0 = no cap. */
|
|
413
|
+
maxRebalanceAmount: number;
|
|
414
|
+
/** Rolling window spending limits. Up to 5. */
|
|
415
|
+
spendingLimits: SpendingLimitInput[];
|
|
416
|
+
/** AI scan trigger threshold in USD (e.g. 50 = $50). 0 = never by amount. */
|
|
417
|
+
aiTriggerThreshold: number;
|
|
418
|
+
/** Always require AI scan regardless of amount. */
|
|
419
|
+
requireAiVerification: boolean;
|
|
420
|
+
}
|
|
394
421
|
/** Owner-set ceilings bounding operator actions. */
|
|
395
422
|
interface OperatorCeilings {
|
|
396
423
|
/** Operator cannot set a bot's maxPerTxAmount above this. 0 = no ceiling. */
|
|
@@ -963,6 +990,8 @@ declare function getChain(chainId: number): Chain$1;
|
|
|
963
990
|
declare function createAxonPublicClient(chainId: number, rpcUrl: string): PublicClient;
|
|
964
991
|
/** Create a viem WalletClient from a raw private key (signing-only, no RPC needed). */
|
|
965
992
|
declare function createAxonWalletClient(privateKey: Hex, chainId: number): WalletClient;
|
|
993
|
+
/** Convert human-friendly BotConfigInput (dollar amounts) to on-chain BotConfigParams (6-decimal bigints). */
|
|
994
|
+
declare function toBotConfigParams(input: BotConfigInput): BotConfigParams;
|
|
966
995
|
/**
|
|
967
996
|
* Returns the full BotConfig for a bot address from the vault.
|
|
968
997
|
* If the bot has never been added, isActive will be false and all
|
|
@@ -1009,11 +1038,14 @@ declare function isRebalanceTokenWhitelisted(publicClient: PublicClient, vaultAd
|
|
|
1009
1038
|
* The vault is owned by the walletClient's account. Permissionless — any
|
|
1010
1039
|
* address can deploy, no Axon approval required.
|
|
1011
1040
|
*
|
|
1041
|
+
* The factory address is fetched automatically from the Axon relayer.
|
|
1042
|
+
*
|
|
1012
1043
|
* @param walletClient Wallet that will own the deployed vault.
|
|
1013
|
-
* @param
|
|
1044
|
+
* @param publicClient Public client for the vault's chain.
|
|
1045
|
+
* @param relayerUrl Override relayer URL (defaults to https://relay.axonfi.xyz).
|
|
1014
1046
|
* @returns Address of the newly deployed vault.
|
|
1015
1047
|
*/
|
|
1016
|
-
declare function deployVault(walletClient: WalletClient, publicClient: PublicClient,
|
|
1048
|
+
declare function deployVault(walletClient: WalletClient, publicClient: PublicClient, relayerUrl?: string): Promise<Address>;
|
|
1017
1049
|
/**
|
|
1018
1050
|
* Register a bot on the vault with its initial spending configuration.
|
|
1019
1051
|
*
|
|
@@ -1024,10 +1056,10 @@ declare function deployVault(walletClient: WalletClient, publicClient: PublicCli
|
|
|
1024
1056
|
* @param publicClient Public client for the vault's chain.
|
|
1025
1057
|
* @param vaultAddress Vault to register the bot on.
|
|
1026
1058
|
* @param botAddress Public address of the bot to register.
|
|
1027
|
-
* @param config Bot spending configuration (
|
|
1059
|
+
* @param config Bot spending configuration — human-readable USD amounts (e.g. 100 = $100).
|
|
1028
1060
|
* @returns Transaction hash.
|
|
1029
1061
|
*/
|
|
1030
|
-
declare function addBot(walletClient: WalletClient, publicClient: PublicClient, vaultAddress: Address, botAddress: Address, config:
|
|
1062
|
+
declare function addBot(walletClient: WalletClient, publicClient: PublicClient, vaultAddress: Address, botAddress: Address, config: BotConfigInput): Promise<Hex>;
|
|
1031
1063
|
/**
|
|
1032
1064
|
* Update an existing bot's spending configuration.
|
|
1033
1065
|
*
|
|
@@ -1038,10 +1070,10 @@ declare function addBot(walletClient: WalletClient, publicClient: PublicClient,
|
|
|
1038
1070
|
* @param publicClient Public client for the vault's chain.
|
|
1039
1071
|
* @param vaultAddress Vault the bot is registered on.
|
|
1040
1072
|
* @param botAddress Bot to update.
|
|
1041
|
-
* @param config New spending configuration.
|
|
1073
|
+
* @param config New spending configuration — human-readable USD amounts.
|
|
1042
1074
|
* @returns Transaction hash.
|
|
1043
1075
|
*/
|
|
1044
|
-
declare function updateBotConfig(walletClient: WalletClient, publicClient: PublicClient, vaultAddress: Address, botAddress: Address, config:
|
|
1076
|
+
declare function updateBotConfig(walletClient: WalletClient, publicClient: PublicClient, vaultAddress: Address, botAddress: Address, config: BotConfigInput): Promise<Hex>;
|
|
1045
1077
|
/**
|
|
1046
1078
|
* Remove a bot from the vault whitelist.
|
|
1047
1079
|
*
|
|
@@ -1068,12 +1100,12 @@ declare function removeBot(walletClient: WalletClient, publicClient: PublicClien
|
|
|
1068
1100
|
* @param walletClient Wallet sending the deposit (anyone, not just owner).
|
|
1069
1101
|
* @param publicClient Public client for the vault's chain.
|
|
1070
1102
|
* @param vaultAddress Vault to deposit into.
|
|
1071
|
-
* @param token Token address, or NATIVE_ETH for ETH deposits.
|
|
1103
|
+
* @param token Token symbol ('USDC', 'WETH'), Token enum, raw address, or NATIVE_ETH / 'ETH' for ETH deposits.
|
|
1072
1104
|
* @param amount Amount in base units (e.g. 5_000_000n for 5 USDC, 10n**16n for 0.01 ETH).
|
|
1073
1105
|
* @param ref Optional bytes32 reference linking to an off-chain record. Defaults to 0x0.
|
|
1074
1106
|
* @returns Transaction hash of the deposit.
|
|
1075
1107
|
*/
|
|
1076
|
-
declare function deposit(walletClient: WalletClient, publicClient: PublicClient, vaultAddress: Address, token: Address, amount: bigint, ref?: Hex): Promise<Hex>;
|
|
1108
|
+
declare function deposit(walletClient: WalletClient, publicClient: PublicClient, vaultAddress: Address, token: Address | string, amount: bigint, ref?: Hex): Promise<Hex>;
|
|
1077
1109
|
|
|
1078
1110
|
interface KeystoreV3 {
|
|
1079
1111
|
version: 3;
|
|
@@ -3398,4 +3430,4 @@ declare const AxonRegistryAbi: readonly [{
|
|
|
3398
3430
|
readonly inputs: readonly [];
|
|
3399
3431
|
}];
|
|
3400
3432
|
|
|
3401
|
-
export { type AmountInput, AxonClient, type AxonClientConfig, AxonRegistryAbi, AxonVaultAbi, AxonVaultFactoryAbi, type BotConfig, type BotConfigParams, CHAIN_NAMES, Chain, DEFAULT_APPROVED_TOKENS, DEFAULT_DEADLINE_SECONDS, type DestinationCheckResult, EIP712_DOMAIN_NAME, EIP712_DOMAIN_VERSION, EXECUTE_INTENT_TYPEHASH, EXPLORER_ADDR, EXPLORER_TX, type ExecuteInput, type ExecuteIntent, KNOWN_TOKENS, type KeystoreV3, type KnownToken, type KnownTokenSymbol, NATIVE_ETH, type OperatorCeilings, PAYMENT_INTENT_TYPEHASH, PERMIT2_ADDRESS, type PayInput, PaymentErrorCode, type PaymentIntent, type PaymentResult, type PaymentStatus, type Permit2Authorization, RELAYER_API, type RebalanceTokensResult, SUPPORTED_CHAIN_IDS, SWAP_INTENT_TYPEHASH, type SpendingLimit, type SupportedChainId, type SwapInput, type SwapIntent, Token, type TokenInput, type TosStatus, type TransferAuthorization, USDC, USDC_EIP712_DOMAIN, type VaultInfo, WINDOW, WITNESS_TYPE_STRING, type X402HandleResult, type X402PaymentOption, type X402PaymentRequired, type X402Resource, X402_PROXY_ADDRESS, addBot, createAxonPublicClient, createAxonWalletClient, decryptKeystore, deployVault, deposit, encodeRef, encryptKeystore, extractX402Metadata, findMatchingOption, formatPaymentSignature, getBotConfig, getChain, getDefaultApprovedTokens, getDomainSeparator, getKnownTokensForChain, getOperatorCeilings, getRebalanceTokenCount, getTokenSymbolByAddress, getVaultOperator, getVaultOwner, getVaultVersion, isBotActive, isDestinationAllowed, isRebalanceTokenWhitelisted, isVaultPaused, operatorMaxDrainPerDay, parseAmount, parseChainId, parsePaymentRequired, randomNonce, randomPermit2Nonce, removeBot, resolveToken, resolveTokenDecimals, signExecuteIntent, signPayment, signPermit2WitnessTransfer, signSwapIntent, signTransferWithAuthorization, updateBotConfig };
|
|
3433
|
+
export { type AmountInput, AxonClient, type AxonClientConfig, AxonRegistryAbi, AxonVaultAbi, AxonVaultFactoryAbi, type BotConfig, type BotConfigInput, type BotConfigParams, CHAIN_NAMES, Chain, DEFAULT_APPROVED_TOKENS, DEFAULT_DEADLINE_SECONDS, type DestinationCheckResult, EIP712_DOMAIN_NAME, EIP712_DOMAIN_VERSION, EXECUTE_INTENT_TYPEHASH, EXPLORER_ADDR, EXPLORER_TX, type ExecuteInput, type ExecuteIntent, KNOWN_TOKENS, type KeystoreV3, type KnownToken, type KnownTokenSymbol, NATIVE_ETH, type OperatorCeilings, PAYMENT_INTENT_TYPEHASH, PERMIT2_ADDRESS, type PayInput, PaymentErrorCode, type PaymentIntent, type PaymentResult, type PaymentStatus, type Permit2Authorization, RELAYER_API, type RebalanceTokensResult, SUPPORTED_CHAIN_IDS, SWAP_INTENT_TYPEHASH, type SpendingLimit, type SpendingLimitInput, type SupportedChainId, type SwapInput, type SwapIntent, Token, type TokenInput, type TosStatus, type TransferAuthorization, USDC, USDC_EIP712_DOMAIN, type VaultInfo, WINDOW, WITNESS_TYPE_STRING, type X402HandleResult, type X402PaymentOption, type X402PaymentRequired, type X402Resource, X402_PROXY_ADDRESS, addBot, createAxonPublicClient, createAxonWalletClient, decryptKeystore, deployVault, deposit, encodeRef, encryptKeystore, extractX402Metadata, findMatchingOption, formatPaymentSignature, getBotConfig, getChain, getDefaultApprovedTokens, getDomainSeparator, getKnownTokensForChain, getOperatorCeilings, getRebalanceTokenCount, getTokenSymbolByAddress, getVaultOperator, getVaultOwner, getVaultVersion, isBotActive, isDestinationAllowed, isRebalanceTokenWhitelisted, isVaultPaused, operatorMaxDrainPerDay, parseAmount, parseChainId, parsePaymentRequired, randomNonce, randomPermit2Nonce, removeBot, resolveToken, resolveTokenDecimals, signExecuteIntent, signPayment, signPermit2WitnessTransfer, signSwapIntent, signTransferWithAuthorization, toBotConfigParams, updateBotConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -382,7 +382,7 @@ interface BotConfig {
|
|
|
382
382
|
/** Relayer always requires AI scan for this bot regardless of amount. */
|
|
383
383
|
requireAiVerification: boolean;
|
|
384
384
|
}
|
|
385
|
-
/** Parameters for addBot / updateBotConfig. */
|
|
385
|
+
/** Parameters for addBot / updateBotConfig (raw on-chain format). */
|
|
386
386
|
interface BotConfigParams {
|
|
387
387
|
maxPerTxAmount: bigint;
|
|
388
388
|
/** Hard cap for rebalancing (executeSwap) input amount in USD. 0 = no cap (default). */
|
|
@@ -391,6 +391,33 @@ interface BotConfigParams {
|
|
|
391
391
|
aiTriggerThreshold: bigint;
|
|
392
392
|
requireAiVerification: boolean;
|
|
393
393
|
}
|
|
394
|
+
/** Human-friendly spending limit input. SDK converts dollar amounts to 6-decimal base units. */
|
|
395
|
+
interface SpendingLimitInput {
|
|
396
|
+
/** Max spend in this window in USD (e.g. 1000 = $1,000). */
|
|
397
|
+
amount: number;
|
|
398
|
+
/** Max transactions in this window. 0 = no count limit. */
|
|
399
|
+
maxCount: number;
|
|
400
|
+
/** Window size in seconds: 3600=1h, 86400=1d, 604800=1w. Use WINDOW constants. */
|
|
401
|
+
windowSeconds: number;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Human-friendly bot config input for addBot / updateBotConfig.
|
|
405
|
+
*
|
|
406
|
+
* Dollar amounts are plain numbers (e.g. 100 = $100). The SDK converts
|
|
407
|
+
* to 6-decimal base units (USDC precision) before sending to the contract.
|
|
408
|
+
*/
|
|
409
|
+
interface BotConfigInput {
|
|
410
|
+
/** Hard per-tx cap in USD (e.g. 100 = $100). 0 = no cap. */
|
|
411
|
+
maxPerTxAmount: number;
|
|
412
|
+
/** Hard rebalance cap in USD (e.g. 50 = $50). 0 = no cap. */
|
|
413
|
+
maxRebalanceAmount: number;
|
|
414
|
+
/** Rolling window spending limits. Up to 5. */
|
|
415
|
+
spendingLimits: SpendingLimitInput[];
|
|
416
|
+
/** AI scan trigger threshold in USD (e.g. 50 = $50). 0 = never by amount. */
|
|
417
|
+
aiTriggerThreshold: number;
|
|
418
|
+
/** Always require AI scan regardless of amount. */
|
|
419
|
+
requireAiVerification: boolean;
|
|
420
|
+
}
|
|
394
421
|
/** Owner-set ceilings bounding operator actions. */
|
|
395
422
|
interface OperatorCeilings {
|
|
396
423
|
/** Operator cannot set a bot's maxPerTxAmount above this. 0 = no ceiling. */
|
|
@@ -963,6 +990,8 @@ declare function getChain(chainId: number): Chain$1;
|
|
|
963
990
|
declare function createAxonPublicClient(chainId: number, rpcUrl: string): PublicClient;
|
|
964
991
|
/** Create a viem WalletClient from a raw private key (signing-only, no RPC needed). */
|
|
965
992
|
declare function createAxonWalletClient(privateKey: Hex, chainId: number): WalletClient;
|
|
993
|
+
/** Convert human-friendly BotConfigInput (dollar amounts) to on-chain BotConfigParams (6-decimal bigints). */
|
|
994
|
+
declare function toBotConfigParams(input: BotConfigInput): BotConfigParams;
|
|
966
995
|
/**
|
|
967
996
|
* Returns the full BotConfig for a bot address from the vault.
|
|
968
997
|
* If the bot has never been added, isActive will be false and all
|
|
@@ -1009,11 +1038,14 @@ declare function isRebalanceTokenWhitelisted(publicClient: PublicClient, vaultAd
|
|
|
1009
1038
|
* The vault is owned by the walletClient's account. Permissionless — any
|
|
1010
1039
|
* address can deploy, no Axon approval required.
|
|
1011
1040
|
*
|
|
1041
|
+
* The factory address is fetched automatically from the Axon relayer.
|
|
1042
|
+
*
|
|
1012
1043
|
* @param walletClient Wallet that will own the deployed vault.
|
|
1013
|
-
* @param
|
|
1044
|
+
* @param publicClient Public client for the vault's chain.
|
|
1045
|
+
* @param relayerUrl Override relayer URL (defaults to https://relay.axonfi.xyz).
|
|
1014
1046
|
* @returns Address of the newly deployed vault.
|
|
1015
1047
|
*/
|
|
1016
|
-
declare function deployVault(walletClient: WalletClient, publicClient: PublicClient,
|
|
1048
|
+
declare function deployVault(walletClient: WalletClient, publicClient: PublicClient, relayerUrl?: string): Promise<Address>;
|
|
1017
1049
|
/**
|
|
1018
1050
|
* Register a bot on the vault with its initial spending configuration.
|
|
1019
1051
|
*
|
|
@@ -1024,10 +1056,10 @@ declare function deployVault(walletClient: WalletClient, publicClient: PublicCli
|
|
|
1024
1056
|
* @param publicClient Public client for the vault's chain.
|
|
1025
1057
|
* @param vaultAddress Vault to register the bot on.
|
|
1026
1058
|
* @param botAddress Public address of the bot to register.
|
|
1027
|
-
* @param config Bot spending configuration (
|
|
1059
|
+
* @param config Bot spending configuration — human-readable USD amounts (e.g. 100 = $100).
|
|
1028
1060
|
* @returns Transaction hash.
|
|
1029
1061
|
*/
|
|
1030
|
-
declare function addBot(walletClient: WalletClient, publicClient: PublicClient, vaultAddress: Address, botAddress: Address, config:
|
|
1062
|
+
declare function addBot(walletClient: WalletClient, publicClient: PublicClient, vaultAddress: Address, botAddress: Address, config: BotConfigInput): Promise<Hex>;
|
|
1031
1063
|
/**
|
|
1032
1064
|
* Update an existing bot's spending configuration.
|
|
1033
1065
|
*
|
|
@@ -1038,10 +1070,10 @@ declare function addBot(walletClient: WalletClient, publicClient: PublicClient,
|
|
|
1038
1070
|
* @param publicClient Public client for the vault's chain.
|
|
1039
1071
|
* @param vaultAddress Vault the bot is registered on.
|
|
1040
1072
|
* @param botAddress Bot to update.
|
|
1041
|
-
* @param config New spending configuration.
|
|
1073
|
+
* @param config New spending configuration — human-readable USD amounts.
|
|
1042
1074
|
* @returns Transaction hash.
|
|
1043
1075
|
*/
|
|
1044
|
-
declare function updateBotConfig(walletClient: WalletClient, publicClient: PublicClient, vaultAddress: Address, botAddress: Address, config:
|
|
1076
|
+
declare function updateBotConfig(walletClient: WalletClient, publicClient: PublicClient, vaultAddress: Address, botAddress: Address, config: BotConfigInput): Promise<Hex>;
|
|
1045
1077
|
/**
|
|
1046
1078
|
* Remove a bot from the vault whitelist.
|
|
1047
1079
|
*
|
|
@@ -1068,12 +1100,12 @@ declare function removeBot(walletClient: WalletClient, publicClient: PublicClien
|
|
|
1068
1100
|
* @param walletClient Wallet sending the deposit (anyone, not just owner).
|
|
1069
1101
|
* @param publicClient Public client for the vault's chain.
|
|
1070
1102
|
* @param vaultAddress Vault to deposit into.
|
|
1071
|
-
* @param token Token address, or NATIVE_ETH for ETH deposits.
|
|
1103
|
+
* @param token Token symbol ('USDC', 'WETH'), Token enum, raw address, or NATIVE_ETH / 'ETH' for ETH deposits.
|
|
1072
1104
|
* @param amount Amount in base units (e.g. 5_000_000n for 5 USDC, 10n**16n for 0.01 ETH).
|
|
1073
1105
|
* @param ref Optional bytes32 reference linking to an off-chain record. Defaults to 0x0.
|
|
1074
1106
|
* @returns Transaction hash of the deposit.
|
|
1075
1107
|
*/
|
|
1076
|
-
declare function deposit(walletClient: WalletClient, publicClient: PublicClient, vaultAddress: Address, token: Address, amount: bigint, ref?: Hex): Promise<Hex>;
|
|
1108
|
+
declare function deposit(walletClient: WalletClient, publicClient: PublicClient, vaultAddress: Address, token: Address | string, amount: bigint, ref?: Hex): Promise<Hex>;
|
|
1077
1109
|
|
|
1078
1110
|
interface KeystoreV3 {
|
|
1079
1111
|
version: 3;
|
|
@@ -3398,4 +3430,4 @@ declare const AxonRegistryAbi: readonly [{
|
|
|
3398
3430
|
readonly inputs: readonly [];
|
|
3399
3431
|
}];
|
|
3400
3432
|
|
|
3401
|
-
export { type AmountInput, AxonClient, type AxonClientConfig, AxonRegistryAbi, AxonVaultAbi, AxonVaultFactoryAbi, type BotConfig, type BotConfigParams, CHAIN_NAMES, Chain, DEFAULT_APPROVED_TOKENS, DEFAULT_DEADLINE_SECONDS, type DestinationCheckResult, EIP712_DOMAIN_NAME, EIP712_DOMAIN_VERSION, EXECUTE_INTENT_TYPEHASH, EXPLORER_ADDR, EXPLORER_TX, type ExecuteInput, type ExecuteIntent, KNOWN_TOKENS, type KeystoreV3, type KnownToken, type KnownTokenSymbol, NATIVE_ETH, type OperatorCeilings, PAYMENT_INTENT_TYPEHASH, PERMIT2_ADDRESS, type PayInput, PaymentErrorCode, type PaymentIntent, type PaymentResult, type PaymentStatus, type Permit2Authorization, RELAYER_API, type RebalanceTokensResult, SUPPORTED_CHAIN_IDS, SWAP_INTENT_TYPEHASH, type SpendingLimit, type SupportedChainId, type SwapInput, type SwapIntent, Token, type TokenInput, type TosStatus, type TransferAuthorization, USDC, USDC_EIP712_DOMAIN, type VaultInfo, WINDOW, WITNESS_TYPE_STRING, type X402HandleResult, type X402PaymentOption, type X402PaymentRequired, type X402Resource, X402_PROXY_ADDRESS, addBot, createAxonPublicClient, createAxonWalletClient, decryptKeystore, deployVault, deposit, encodeRef, encryptKeystore, extractX402Metadata, findMatchingOption, formatPaymentSignature, getBotConfig, getChain, getDefaultApprovedTokens, getDomainSeparator, getKnownTokensForChain, getOperatorCeilings, getRebalanceTokenCount, getTokenSymbolByAddress, getVaultOperator, getVaultOwner, getVaultVersion, isBotActive, isDestinationAllowed, isRebalanceTokenWhitelisted, isVaultPaused, operatorMaxDrainPerDay, parseAmount, parseChainId, parsePaymentRequired, randomNonce, randomPermit2Nonce, removeBot, resolveToken, resolveTokenDecimals, signExecuteIntent, signPayment, signPermit2WitnessTransfer, signSwapIntent, signTransferWithAuthorization, updateBotConfig };
|
|
3433
|
+
export { type AmountInput, AxonClient, type AxonClientConfig, AxonRegistryAbi, AxonVaultAbi, AxonVaultFactoryAbi, type BotConfig, type BotConfigInput, type BotConfigParams, CHAIN_NAMES, Chain, DEFAULT_APPROVED_TOKENS, DEFAULT_DEADLINE_SECONDS, type DestinationCheckResult, EIP712_DOMAIN_NAME, EIP712_DOMAIN_VERSION, EXECUTE_INTENT_TYPEHASH, EXPLORER_ADDR, EXPLORER_TX, type ExecuteInput, type ExecuteIntent, KNOWN_TOKENS, type KeystoreV3, type KnownToken, type KnownTokenSymbol, NATIVE_ETH, type OperatorCeilings, PAYMENT_INTENT_TYPEHASH, PERMIT2_ADDRESS, type PayInput, PaymentErrorCode, type PaymentIntent, type PaymentResult, type PaymentStatus, type Permit2Authorization, RELAYER_API, type RebalanceTokensResult, SUPPORTED_CHAIN_IDS, SWAP_INTENT_TYPEHASH, type SpendingLimit, type SpendingLimitInput, type SupportedChainId, type SwapInput, type SwapIntent, Token, type TokenInput, type TosStatus, type TransferAuthorization, USDC, USDC_EIP712_DOMAIN, type VaultInfo, WINDOW, WITNESS_TYPE_STRING, type X402HandleResult, type X402PaymentOption, type X402PaymentRequired, type X402Resource, X402_PROXY_ADDRESS, addBot, createAxonPublicClient, createAxonWalletClient, decryptKeystore, deployVault, deposit, encodeRef, encryptKeystore, extractX402Metadata, findMatchingOption, formatPaymentSignature, getBotConfig, getChain, getDefaultApprovedTokens, getDomainSeparator, getKnownTokensForChain, getOperatorCeilings, getRebalanceTokenCount, getTokenSymbolByAddress, getVaultOperator, getVaultOwner, getVaultVersion, isBotActive, isDestinationAllowed, isRebalanceTokenWhitelisted, isVaultPaused, operatorMaxDrainPerDay, parseAmount, parseChainId, parsePaymentRequired, randomNonce, randomPermit2Nonce, removeBot, resolveToken, resolveTokenDecimals, signExecuteIntent, signPayment, signPermit2WitnessTransfer, signSwapIntent, signTransferWithAuthorization, toBotConfigParams, updateBotConfig };
|