@axonfi/sdk 0.4.2 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -10,6 +10,7 @@ declare enum Token {
10
10
  cbETH = "cbETH",
11
11
  wstETH = "wstETH",
12
12
  rETH = "rETH",
13
+ weETH = "weETH",
13
14
  LINK = "LINK",
14
15
  UNI = "UNI",
15
16
  AAVE = "AAVE",
@@ -117,9 +118,19 @@ declare const KNOWN_TOKENS: {
117
118
  readonly name: "Rocket Pool ETH";
118
119
  readonly decimals: 18;
119
120
  readonly addresses: {
121
+ readonly 8453: "0xB6fe221Fe9EeF5aBa221c348bA20A1Bf5e73624c";
120
122
  readonly 42161: "0xEC70Dcb4A1EFa46b8F2D97C310C9c4790ba5ffA8";
121
123
  };
122
124
  };
125
+ readonly weETH: {
126
+ readonly symbol: "weETH";
127
+ readonly name: "EtherFi Wrapped eETH";
128
+ readonly decimals: 18;
129
+ readonly addresses: {
130
+ readonly 8453: "0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A";
131
+ readonly 42161: "0x35751007a407ca6FEFfE80b3cB397736D2cf4dbe";
132
+ };
133
+ };
123
134
  readonly LINK: {
124
135
  readonly symbol: "LINK";
125
136
  readonly name: "Chainlink";
@@ -200,6 +211,16 @@ declare const KNOWN_TOKENS: {
200
211
  };
201
212
  };
202
213
  type KnownTokenSymbol = keyof typeof KNOWN_TOKENS;
214
+ /**
215
+ * Tokens that new vaults should pre-approve as protocols at deploy time.
216
+ * This enables the two-step approval pattern (approve token → call DeFi protocol)
217
+ * without the owner having to manually add common tokens.
218
+ *
219
+ * Used by: AxonRegistry (on-chain default list), deploy scripts, dashboard.
220
+ */
221
+ declare const DEFAULT_APPROVED_TOKENS: KnownTokenSymbol[];
222
+ /** Get default approved token addresses for a specific chain. */
223
+ declare function getDefaultApprovedTokens(chainId: number): Address[];
203
224
  /** All known tokens available on a specific chain. */
204
225
  declare function getKnownTokensForChain(chainId: number): (KnownToken & {
205
226
  address: Address;
@@ -477,7 +498,7 @@ interface PayInput {
477
498
  interface ExecuteIntent {
478
499
  /** Bot's own address. Must be registered in the vault. */
479
500
  bot: Address;
480
- /** Target DeFi protocol contract address. Must be in vault's approvedProtocols. */
501
+ /** Target contract address (protocol or token). Must be approved via approveProtocol() or be a registry default token. */
481
502
  protocol: Address;
482
503
  /** keccak256 of the callData bytes. Verified by relayer before submission. */
483
504
  calldataHash: Hex;
@@ -791,8 +812,8 @@ declare class AxonClient {
791
812
  * Checks blacklist → global whitelist → bot whitelist, matching on-chain logic.
792
813
  */
793
814
  canPayTo(destination: Address): Promise<DestinationCheckResult>;
794
- /** Returns whether a protocol address is approved for executeProtocol() calls (via relayer). */
795
- isProtocolApproved(protocol: Address): Promise<boolean>;
815
+ /** Returns whether a contract address (protocol or token) is approved for executeProtocol() calls (via relayer). */
816
+ isContractApproved(protocol: Address): Promise<boolean>;
796
817
  /**
797
818
  * Returns the effective rebalance token whitelist for this vault.
798
819
  *
@@ -1320,21 +1341,21 @@ declare const AxonVaultAbi: readonly [{
1320
1341
  readonly stateMutability: "nonpayable";
1321
1342
  }, {
1322
1343
  readonly type: "function";
1323
- readonly name: "addProtocol";
1344
+ readonly name: "addRebalanceTokens";
1324
1345
  readonly inputs: readonly [{
1325
- readonly name: "protocol";
1326
- readonly type: "address";
1327
- readonly internalType: "address";
1346
+ readonly name: "tokens";
1347
+ readonly type: "address[]";
1348
+ readonly internalType: "address[]";
1328
1349
  }];
1329
1350
  readonly outputs: readonly [];
1330
1351
  readonly stateMutability: "nonpayable";
1331
1352
  }, {
1332
1353
  readonly type: "function";
1333
- readonly name: "addRebalanceTokens";
1354
+ readonly name: "approveProtocol";
1334
1355
  readonly inputs: readonly [{
1335
- readonly name: "tokens";
1336
- readonly type: "address[]";
1337
- readonly internalType: "address[]";
1356
+ readonly name: "protocol";
1357
+ readonly type: "address";
1358
+ readonly internalType: "address";
1338
1359
  }];
1339
1360
  readonly outputs: readonly [];
1340
1361
  readonly stateMutability: "nonpayable";
@@ -1763,7 +1784,7 @@ declare const AxonVaultAbi: readonly [{
1763
1784
  readonly stateMutability: "view";
1764
1785
  }, {
1765
1786
  readonly type: "function";
1766
- readonly name: "isProtocolApproved";
1787
+ readonly name: "isContractApproved";
1767
1788
  readonly inputs: readonly [{
1768
1789
  readonly name: "protocol";
1769
1790
  readonly type: "address";
@@ -1935,16 +1956,6 @@ declare const AxonVaultAbi: readonly [{
1935
1956
  }];
1936
1957
  readonly outputs: readonly [];
1937
1958
  readonly stateMutability: "nonpayable";
1938
- }, {
1939
- readonly type: "function";
1940
- readonly name: "removeProtocol";
1941
- readonly inputs: readonly [{
1942
- readonly name: "protocol";
1943
- readonly type: "address";
1944
- readonly internalType: "address";
1945
- }];
1946
- readonly outputs: readonly [];
1947
- readonly stateMutability: "nonpayable";
1948
1959
  }, {
1949
1960
  readonly type: "function";
1950
1961
  readonly name: "removeRebalanceTokens";
@@ -1961,6 +1972,16 @@ declare const AxonVaultAbi: readonly [{
1961
1972
  readonly inputs: readonly [];
1962
1973
  readonly outputs: readonly [];
1963
1974
  readonly stateMutability: "nonpayable";
1975
+ }, {
1976
+ readonly type: "function";
1977
+ readonly name: "revokeProtocol";
1978
+ readonly inputs: readonly [{
1979
+ readonly name: "protocol";
1980
+ readonly type: "address";
1981
+ readonly internalType: "address";
1982
+ }];
1983
+ readonly outputs: readonly [];
1984
+ readonly stateMutability: "nonpayable";
1964
1985
  }, {
1965
1986
  readonly type: "function";
1966
1987
  readonly name: "setOperator";
@@ -2361,7 +2382,7 @@ declare const AxonVaultAbi: readonly [{
2361
2382
  readonly anonymous: false;
2362
2383
  }, {
2363
2384
  readonly type: "event";
2364
- readonly name: "ProtocolAdded";
2385
+ readonly name: "ProtocolApproved";
2365
2386
  readonly inputs: readonly [{
2366
2387
  readonly name: "protocol";
2367
2388
  readonly type: "address";
@@ -2401,7 +2422,7 @@ declare const AxonVaultAbi: readonly [{
2401
2422
  readonly anonymous: false;
2402
2423
  }, {
2403
2424
  readonly type: "event";
2404
- readonly name: "ProtocolRemoved";
2425
+ readonly name: "ProtocolRevoked";
2405
2426
  readonly inputs: readonly [{
2406
2427
  readonly name: "protocol";
2407
2428
  readonly type: "address";
@@ -2558,6 +2579,10 @@ declare const AxonVaultAbi: readonly [{
2558
2579
  readonly type: "error";
2559
2580
  readonly name: "CalldataHashMismatch";
2560
2581
  readonly inputs: readonly [];
2582
+ }, {
2583
+ readonly type: "error";
2584
+ readonly name: "ContractNotApproved";
2585
+ readonly inputs: readonly [];
2561
2586
  }, {
2562
2587
  readonly type: "error";
2563
2588
  readonly name: "DeadlineExpired";
@@ -2686,10 +2711,6 @@ declare const AxonVaultAbi: readonly [{
2686
2711
  readonly type: "error";
2687
2712
  readonly name: "ProtocolNotApproved";
2688
2713
  readonly inputs: readonly [];
2689
- }, {
2690
- readonly type: "error";
2691
- readonly name: "ProtocolNotInList";
2692
- readonly inputs: readonly [];
2693
2714
  }, {
2694
2715
  readonly type: "error";
2695
2716
  readonly name: "RebalanceTokenNotAllowed";
@@ -2967,6 +2988,16 @@ declare const AxonRegistryAbi: readonly [{
2967
2988
  readonly internalType: "address";
2968
2989
  }];
2969
2990
  readonly stateMutability: "nonpayable";
2991
+ }, {
2992
+ readonly type: "function";
2993
+ readonly name: "VERSION";
2994
+ readonly inputs: readonly [];
2995
+ readonly outputs: readonly [{
2996
+ readonly name: "";
2997
+ readonly type: "uint256";
2998
+ readonly internalType: "uint256";
2999
+ }];
3000
+ readonly stateMutability: "view";
2970
3001
  }, {
2971
3002
  readonly type: "function";
2972
3003
  readonly name: "acceptOwnership";
@@ -2993,6 +3024,16 @@ declare const AxonRegistryAbi: readonly [{
2993
3024
  }];
2994
3025
  readonly outputs: readonly [];
2995
3026
  readonly stateMutability: "nonpayable";
3027
+ }, {
3028
+ readonly type: "function";
3029
+ readonly name: "approveDefaultToken";
3030
+ readonly inputs: readonly [{
3031
+ readonly name: "token";
3032
+ readonly type: "address";
3033
+ readonly internalType: "address";
3034
+ }];
3035
+ readonly outputs: readonly [];
3036
+ readonly stateMutability: "nonpayable";
2996
3037
  }, {
2997
3038
  readonly type: "function";
2998
3039
  readonly name: "isApprovedSwapRouter";
@@ -3021,6 +3062,20 @@ declare const AxonRegistryAbi: readonly [{
3021
3062
  readonly internalType: "bool";
3022
3063
  }];
3023
3064
  readonly stateMutability: "view";
3065
+ }, {
3066
+ readonly type: "function";
3067
+ readonly name: "isDefaultToken";
3068
+ readonly inputs: readonly [{
3069
+ readonly name: "token";
3070
+ readonly type: "address";
3071
+ readonly internalType: "address";
3072
+ }];
3073
+ readonly outputs: readonly [{
3074
+ readonly name: "";
3075
+ readonly type: "bool";
3076
+ readonly internalType: "bool";
3077
+ }];
3078
+ readonly stateMutability: "view";
3024
3079
  }, {
3025
3080
  readonly type: "function";
3026
3081
  readonly name: "owner";
@@ -3067,6 +3122,16 @@ declare const AxonRegistryAbi: readonly [{
3067
3122
  readonly inputs: readonly [];
3068
3123
  readonly outputs: readonly [];
3069
3124
  readonly stateMutability: "nonpayable";
3125
+ }, {
3126
+ readonly type: "function";
3127
+ readonly name: "revokeDefaultToken";
3128
+ readonly inputs: readonly [{
3129
+ readonly name: "token";
3130
+ readonly type: "address";
3131
+ readonly internalType: "address";
3132
+ }];
3133
+ readonly outputs: readonly [];
3134
+ readonly stateMutability: "nonpayable";
3070
3135
  }, {
3071
3136
  readonly type: "function";
3072
3137
  readonly name: "setOracleConfig";
@@ -3125,6 +3190,26 @@ declare const AxonRegistryAbi: readonly [{
3125
3190
  readonly internalType: "address";
3126
3191
  }];
3127
3192
  readonly stateMutability: "view";
3193
+ }, {
3194
+ readonly type: "event";
3195
+ readonly name: "DefaultTokenApproved";
3196
+ readonly inputs: readonly [{
3197
+ readonly name: "token";
3198
+ readonly type: "address";
3199
+ readonly indexed: true;
3200
+ readonly internalType: "address";
3201
+ }];
3202
+ readonly anonymous: false;
3203
+ }, {
3204
+ readonly type: "event";
3205
+ readonly name: "DefaultTokenRevoked";
3206
+ readonly inputs: readonly [{
3207
+ readonly name: "token";
3208
+ readonly type: "address";
3209
+ readonly indexed: true;
3210
+ readonly internalType: "address";
3211
+ }];
3212
+ readonly anonymous: false;
3128
3213
  }, {
3129
3214
  readonly type: "event";
3130
3215
  readonly name: "OracleConfigUpdated";
@@ -3253,4 +3338,4 @@ declare const AxonRegistryAbi: readonly [{
3253
3338
  readonly inputs: readonly [];
3254
3339
  }];
3255
3340
 
3256
- export { type AmountInput, AxonClient, type AxonClientConfig, AxonRegistryAbi, AxonVaultAbi, AxonVaultFactoryAbi, type BotConfig, type BotConfigParams, CHAIN_NAMES, Chain, 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, createAxonPublicClient, createAxonWalletClient, decryptKeystore, deployVault, encodeRef, encryptKeystore, extractX402Metadata, findMatchingOption, formatPaymentSignature, getBotConfig, getChain, getDomainSeparator, getKnownTokensForChain, getOperatorCeilings, getRebalanceTokenCount, getTokenSymbolByAddress, getVaultOperator, getVaultOwner, getVaultVersion, isBotActive, isDestinationAllowed, isRebalanceTokenWhitelisted, isVaultPaused, operatorMaxDrainPerDay, parseAmount, parseChainId, parsePaymentRequired, randomNonce, randomPermit2Nonce, resolveToken, resolveTokenDecimals, signExecuteIntent, signPayment, signPermit2WitnessTransfer, signSwapIntent, signTransferWithAuthorization };
3341
+ 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, createAxonPublicClient, createAxonWalletClient, decryptKeystore, deployVault, 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, resolveToken, resolveTokenDecimals, signExecuteIntent, signPayment, signPermit2WitnessTransfer, signSwapIntent, signTransferWithAuthorization };
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ declare enum Token {
10
10
  cbETH = "cbETH",
11
11
  wstETH = "wstETH",
12
12
  rETH = "rETH",
13
+ weETH = "weETH",
13
14
  LINK = "LINK",
14
15
  UNI = "UNI",
15
16
  AAVE = "AAVE",
@@ -117,9 +118,19 @@ declare const KNOWN_TOKENS: {
117
118
  readonly name: "Rocket Pool ETH";
118
119
  readonly decimals: 18;
119
120
  readonly addresses: {
121
+ readonly 8453: "0xB6fe221Fe9EeF5aBa221c348bA20A1Bf5e73624c";
120
122
  readonly 42161: "0xEC70Dcb4A1EFa46b8F2D97C310C9c4790ba5ffA8";
121
123
  };
122
124
  };
125
+ readonly weETH: {
126
+ readonly symbol: "weETH";
127
+ readonly name: "EtherFi Wrapped eETH";
128
+ readonly decimals: 18;
129
+ readonly addresses: {
130
+ readonly 8453: "0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A";
131
+ readonly 42161: "0x35751007a407ca6FEFfE80b3cB397736D2cf4dbe";
132
+ };
133
+ };
123
134
  readonly LINK: {
124
135
  readonly symbol: "LINK";
125
136
  readonly name: "Chainlink";
@@ -200,6 +211,16 @@ declare const KNOWN_TOKENS: {
200
211
  };
201
212
  };
202
213
  type KnownTokenSymbol = keyof typeof KNOWN_TOKENS;
214
+ /**
215
+ * Tokens that new vaults should pre-approve as protocols at deploy time.
216
+ * This enables the two-step approval pattern (approve token → call DeFi protocol)
217
+ * without the owner having to manually add common tokens.
218
+ *
219
+ * Used by: AxonRegistry (on-chain default list), deploy scripts, dashboard.
220
+ */
221
+ declare const DEFAULT_APPROVED_TOKENS: KnownTokenSymbol[];
222
+ /** Get default approved token addresses for a specific chain. */
223
+ declare function getDefaultApprovedTokens(chainId: number): Address[];
203
224
  /** All known tokens available on a specific chain. */
204
225
  declare function getKnownTokensForChain(chainId: number): (KnownToken & {
205
226
  address: Address;
@@ -477,7 +498,7 @@ interface PayInput {
477
498
  interface ExecuteIntent {
478
499
  /** Bot's own address. Must be registered in the vault. */
479
500
  bot: Address;
480
- /** Target DeFi protocol contract address. Must be in vault's approvedProtocols. */
501
+ /** Target contract address (protocol or token). Must be approved via approveProtocol() or be a registry default token. */
481
502
  protocol: Address;
482
503
  /** keccak256 of the callData bytes. Verified by relayer before submission. */
483
504
  calldataHash: Hex;
@@ -791,8 +812,8 @@ declare class AxonClient {
791
812
  * Checks blacklist → global whitelist → bot whitelist, matching on-chain logic.
792
813
  */
793
814
  canPayTo(destination: Address): Promise<DestinationCheckResult>;
794
- /** Returns whether a protocol address is approved for executeProtocol() calls (via relayer). */
795
- isProtocolApproved(protocol: Address): Promise<boolean>;
815
+ /** Returns whether a contract address (protocol or token) is approved for executeProtocol() calls (via relayer). */
816
+ isContractApproved(protocol: Address): Promise<boolean>;
796
817
  /**
797
818
  * Returns the effective rebalance token whitelist for this vault.
798
819
  *
@@ -1320,21 +1341,21 @@ declare const AxonVaultAbi: readonly [{
1320
1341
  readonly stateMutability: "nonpayable";
1321
1342
  }, {
1322
1343
  readonly type: "function";
1323
- readonly name: "addProtocol";
1344
+ readonly name: "addRebalanceTokens";
1324
1345
  readonly inputs: readonly [{
1325
- readonly name: "protocol";
1326
- readonly type: "address";
1327
- readonly internalType: "address";
1346
+ readonly name: "tokens";
1347
+ readonly type: "address[]";
1348
+ readonly internalType: "address[]";
1328
1349
  }];
1329
1350
  readonly outputs: readonly [];
1330
1351
  readonly stateMutability: "nonpayable";
1331
1352
  }, {
1332
1353
  readonly type: "function";
1333
- readonly name: "addRebalanceTokens";
1354
+ readonly name: "approveProtocol";
1334
1355
  readonly inputs: readonly [{
1335
- readonly name: "tokens";
1336
- readonly type: "address[]";
1337
- readonly internalType: "address[]";
1356
+ readonly name: "protocol";
1357
+ readonly type: "address";
1358
+ readonly internalType: "address";
1338
1359
  }];
1339
1360
  readonly outputs: readonly [];
1340
1361
  readonly stateMutability: "nonpayable";
@@ -1763,7 +1784,7 @@ declare const AxonVaultAbi: readonly [{
1763
1784
  readonly stateMutability: "view";
1764
1785
  }, {
1765
1786
  readonly type: "function";
1766
- readonly name: "isProtocolApproved";
1787
+ readonly name: "isContractApproved";
1767
1788
  readonly inputs: readonly [{
1768
1789
  readonly name: "protocol";
1769
1790
  readonly type: "address";
@@ -1935,16 +1956,6 @@ declare const AxonVaultAbi: readonly [{
1935
1956
  }];
1936
1957
  readonly outputs: readonly [];
1937
1958
  readonly stateMutability: "nonpayable";
1938
- }, {
1939
- readonly type: "function";
1940
- readonly name: "removeProtocol";
1941
- readonly inputs: readonly [{
1942
- readonly name: "protocol";
1943
- readonly type: "address";
1944
- readonly internalType: "address";
1945
- }];
1946
- readonly outputs: readonly [];
1947
- readonly stateMutability: "nonpayable";
1948
1959
  }, {
1949
1960
  readonly type: "function";
1950
1961
  readonly name: "removeRebalanceTokens";
@@ -1961,6 +1972,16 @@ declare const AxonVaultAbi: readonly [{
1961
1972
  readonly inputs: readonly [];
1962
1973
  readonly outputs: readonly [];
1963
1974
  readonly stateMutability: "nonpayable";
1975
+ }, {
1976
+ readonly type: "function";
1977
+ readonly name: "revokeProtocol";
1978
+ readonly inputs: readonly [{
1979
+ readonly name: "protocol";
1980
+ readonly type: "address";
1981
+ readonly internalType: "address";
1982
+ }];
1983
+ readonly outputs: readonly [];
1984
+ readonly stateMutability: "nonpayable";
1964
1985
  }, {
1965
1986
  readonly type: "function";
1966
1987
  readonly name: "setOperator";
@@ -2361,7 +2382,7 @@ declare const AxonVaultAbi: readonly [{
2361
2382
  readonly anonymous: false;
2362
2383
  }, {
2363
2384
  readonly type: "event";
2364
- readonly name: "ProtocolAdded";
2385
+ readonly name: "ProtocolApproved";
2365
2386
  readonly inputs: readonly [{
2366
2387
  readonly name: "protocol";
2367
2388
  readonly type: "address";
@@ -2401,7 +2422,7 @@ declare const AxonVaultAbi: readonly [{
2401
2422
  readonly anonymous: false;
2402
2423
  }, {
2403
2424
  readonly type: "event";
2404
- readonly name: "ProtocolRemoved";
2425
+ readonly name: "ProtocolRevoked";
2405
2426
  readonly inputs: readonly [{
2406
2427
  readonly name: "protocol";
2407
2428
  readonly type: "address";
@@ -2558,6 +2579,10 @@ declare const AxonVaultAbi: readonly [{
2558
2579
  readonly type: "error";
2559
2580
  readonly name: "CalldataHashMismatch";
2560
2581
  readonly inputs: readonly [];
2582
+ }, {
2583
+ readonly type: "error";
2584
+ readonly name: "ContractNotApproved";
2585
+ readonly inputs: readonly [];
2561
2586
  }, {
2562
2587
  readonly type: "error";
2563
2588
  readonly name: "DeadlineExpired";
@@ -2686,10 +2711,6 @@ declare const AxonVaultAbi: readonly [{
2686
2711
  readonly type: "error";
2687
2712
  readonly name: "ProtocolNotApproved";
2688
2713
  readonly inputs: readonly [];
2689
- }, {
2690
- readonly type: "error";
2691
- readonly name: "ProtocolNotInList";
2692
- readonly inputs: readonly [];
2693
2714
  }, {
2694
2715
  readonly type: "error";
2695
2716
  readonly name: "RebalanceTokenNotAllowed";
@@ -2967,6 +2988,16 @@ declare const AxonRegistryAbi: readonly [{
2967
2988
  readonly internalType: "address";
2968
2989
  }];
2969
2990
  readonly stateMutability: "nonpayable";
2991
+ }, {
2992
+ readonly type: "function";
2993
+ readonly name: "VERSION";
2994
+ readonly inputs: readonly [];
2995
+ readonly outputs: readonly [{
2996
+ readonly name: "";
2997
+ readonly type: "uint256";
2998
+ readonly internalType: "uint256";
2999
+ }];
3000
+ readonly stateMutability: "view";
2970
3001
  }, {
2971
3002
  readonly type: "function";
2972
3003
  readonly name: "acceptOwnership";
@@ -2993,6 +3024,16 @@ declare const AxonRegistryAbi: readonly [{
2993
3024
  }];
2994
3025
  readonly outputs: readonly [];
2995
3026
  readonly stateMutability: "nonpayable";
3027
+ }, {
3028
+ readonly type: "function";
3029
+ readonly name: "approveDefaultToken";
3030
+ readonly inputs: readonly [{
3031
+ readonly name: "token";
3032
+ readonly type: "address";
3033
+ readonly internalType: "address";
3034
+ }];
3035
+ readonly outputs: readonly [];
3036
+ readonly stateMutability: "nonpayable";
2996
3037
  }, {
2997
3038
  readonly type: "function";
2998
3039
  readonly name: "isApprovedSwapRouter";
@@ -3021,6 +3062,20 @@ declare const AxonRegistryAbi: readonly [{
3021
3062
  readonly internalType: "bool";
3022
3063
  }];
3023
3064
  readonly stateMutability: "view";
3065
+ }, {
3066
+ readonly type: "function";
3067
+ readonly name: "isDefaultToken";
3068
+ readonly inputs: readonly [{
3069
+ readonly name: "token";
3070
+ readonly type: "address";
3071
+ readonly internalType: "address";
3072
+ }];
3073
+ readonly outputs: readonly [{
3074
+ readonly name: "";
3075
+ readonly type: "bool";
3076
+ readonly internalType: "bool";
3077
+ }];
3078
+ readonly stateMutability: "view";
3024
3079
  }, {
3025
3080
  readonly type: "function";
3026
3081
  readonly name: "owner";
@@ -3067,6 +3122,16 @@ declare const AxonRegistryAbi: readonly [{
3067
3122
  readonly inputs: readonly [];
3068
3123
  readonly outputs: readonly [];
3069
3124
  readonly stateMutability: "nonpayable";
3125
+ }, {
3126
+ readonly type: "function";
3127
+ readonly name: "revokeDefaultToken";
3128
+ readonly inputs: readonly [{
3129
+ readonly name: "token";
3130
+ readonly type: "address";
3131
+ readonly internalType: "address";
3132
+ }];
3133
+ readonly outputs: readonly [];
3134
+ readonly stateMutability: "nonpayable";
3070
3135
  }, {
3071
3136
  readonly type: "function";
3072
3137
  readonly name: "setOracleConfig";
@@ -3125,6 +3190,26 @@ declare const AxonRegistryAbi: readonly [{
3125
3190
  readonly internalType: "address";
3126
3191
  }];
3127
3192
  readonly stateMutability: "view";
3193
+ }, {
3194
+ readonly type: "event";
3195
+ readonly name: "DefaultTokenApproved";
3196
+ readonly inputs: readonly [{
3197
+ readonly name: "token";
3198
+ readonly type: "address";
3199
+ readonly indexed: true;
3200
+ readonly internalType: "address";
3201
+ }];
3202
+ readonly anonymous: false;
3203
+ }, {
3204
+ readonly type: "event";
3205
+ readonly name: "DefaultTokenRevoked";
3206
+ readonly inputs: readonly [{
3207
+ readonly name: "token";
3208
+ readonly type: "address";
3209
+ readonly indexed: true;
3210
+ readonly internalType: "address";
3211
+ }];
3212
+ readonly anonymous: false;
3128
3213
  }, {
3129
3214
  readonly type: "event";
3130
3215
  readonly name: "OracleConfigUpdated";
@@ -3253,4 +3338,4 @@ declare const AxonRegistryAbi: readonly [{
3253
3338
  readonly inputs: readonly [];
3254
3339
  }];
3255
3340
 
3256
- export { type AmountInput, AxonClient, type AxonClientConfig, AxonRegistryAbi, AxonVaultAbi, AxonVaultFactoryAbi, type BotConfig, type BotConfigParams, CHAIN_NAMES, Chain, 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, createAxonPublicClient, createAxonWalletClient, decryptKeystore, deployVault, encodeRef, encryptKeystore, extractX402Metadata, findMatchingOption, formatPaymentSignature, getBotConfig, getChain, getDomainSeparator, getKnownTokensForChain, getOperatorCeilings, getRebalanceTokenCount, getTokenSymbolByAddress, getVaultOperator, getVaultOwner, getVaultVersion, isBotActive, isDestinationAllowed, isRebalanceTokenWhitelisted, isVaultPaused, operatorMaxDrainPerDay, parseAmount, parseChainId, parsePaymentRequired, randomNonce, randomPermit2Nonce, resolveToken, resolveTokenDecimals, signExecuteIntent, signPayment, signPermit2WitnessTransfer, signSwapIntent, signTransferWithAuthorization };
3341
+ 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, createAxonPublicClient, createAxonWalletClient, decryptKeystore, deployVault, 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, resolveToken, resolveTokenDecimals, signExecuteIntent, signPayment, signPermit2WitnessTransfer, signSwapIntent, signTransferWithAuthorization };