@axonfi/sdk 0.3.7 → 0.4.0
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 +22 -0
- package/dist/abis/AxonRegistry.d.ts +294 -0
- package/dist/abis/AxonRegistry.d.ts.map +1 -0
- package/dist/abis/AxonRegistry.js +381 -0
- package/dist/abis/AxonRegistry.js.map +1 -0
- package/dist/abis/AxonVault.d.ts +1577 -0
- package/dist/abis/AxonVault.d.ts.map +1 -0
- package/dist/abis/AxonVault.js +2026 -0
- package/dist/abis/AxonVault.js.map +1 -0
- package/dist/abis/AxonVaultFactory.d.ts +207 -0
- package/dist/abis/AxonVaultFactory.d.ts.map +1 -0
- package/dist/abis/AxonVaultFactory.js +269 -0
- package/dist/abis/AxonVaultFactory.js.map +1 -0
- package/dist/amounts.d.ts +37 -0
- package/dist/amounts.d.ts.map +1 -0
- package/dist/amounts.js +72 -0
- package/dist/amounts.js.map +1 -0
- package/dist/amounts.spec.d.ts +2 -0
- package/dist/amounts.spec.d.ts.map +1 -0
- package/dist/amounts.spec.js +92 -0
- package/dist/amounts.spec.js.map +1 -0
- package/dist/client.d.ts +196 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +621 -0
- package/dist/client.js.map +1 -0
- package/dist/client.spec.d.ts +2 -0
- package/dist/client.spec.d.ts.map +1 -0
- package/dist/client.spec.js +437 -0
- package/dist/client.spec.js.map +1 -0
- package/dist/constants.d.ts +110 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +172 -0
- package/dist/constants.js.map +1 -0
- package/dist/constants.spec.d.ts +2 -0
- package/dist/constants.spec.d.ts.map +1 -0
- package/dist/constants.spec.js +95 -0
- package/dist/constants.spec.js.map +1 -0
- package/dist/eip3009.d.ts +45 -0
- package/dist/eip3009.d.ts.map +1 -0
- package/dist/eip3009.js +85 -0
- package/dist/eip3009.js.map +1 -0
- package/dist/index.d.ts +21 -3020
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +27 -3903
- package/dist/index.js.map +1 -1
- package/dist/keystore.d.ts +60 -0
- package/dist/keystore.d.ts.map +1 -0
- package/dist/keystore.js +182 -0
- package/dist/keystore.js.map +1 -0
- package/dist/keystore.spec.d.ts +2 -0
- package/dist/keystore.spec.d.ts.map +1 -0
- package/dist/keystore.spec.js +71 -0
- package/dist/keystore.spec.js.map +1 -0
- package/dist/permit2.d.ts +45 -0
- package/dist/permit2.d.ts.map +1 -0
- package/dist/permit2.js +81 -0
- package/dist/permit2.js.map +1 -0
- package/dist/signer.d.ts +35 -0
- package/dist/signer.d.ts.map +1 -0
- package/dist/signer.js +132 -0
- package/dist/signer.js.map +1 -0
- package/dist/signer.spec.d.ts +2 -0
- package/dist/signer.spec.d.ts.map +1 -0
- package/dist/signer.spec.js +94 -0
- package/dist/signer.spec.js.map +1 -0
- package/dist/tokens.d.ts +215 -0
- package/dist/tokens.d.ts.map +1 -0
- package/dist/tokens.js +247 -0
- package/dist/tokens.js.map +1 -0
- package/dist/types.d.ts +302 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/utils.d.ts +8 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +29 -0
- package/dist/utils.js.map +1 -0
- package/dist/vault.d.ts +60 -0
- package/dist/vault.d.ts.map +1 -0
- package/dist/vault.js +267 -0
- package/dist/vault.js.map +1 -0
- package/dist/vault.spec.d.ts +2 -0
- package/dist/vault.spec.d.ts.map +1 -0
- package/dist/vault.spec.js +162 -0
- package/dist/vault.spec.js.map +1 -0
- package/dist/x402.d.ts +88 -0
- package/dist/x402.d.ts.map +1 -0
- package/dist/x402.js +124 -0
- package/dist/x402.js.map +1 -0
- package/dist/x402.spec.d.ts +2 -0
- package/dist/x402.spec.d.ts.map +1 -0
- package/dist/x402.spec.js +411 -0
- package/dist/x402.spec.js.map +1 -0
- package/package.json +1 -1
- package/dist/index.cjs +0 -3954
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -3020
package/dist/index.d.cts
DELETED
|
@@ -1,3020 +0,0 @@
|
|
|
1
|
-
import { Address, Hex, WalletClient, PublicClient, Chain as Chain$1 } from 'viem';
|
|
2
|
-
|
|
3
|
-
declare enum Token {
|
|
4
|
-
USDC = "USDC",
|
|
5
|
-
USDT = "USDT",
|
|
6
|
-
DAI = "DAI",
|
|
7
|
-
WETH = "WETH",
|
|
8
|
-
WBTC = "WBTC",
|
|
9
|
-
cbBTC = "cbBTC",
|
|
10
|
-
cbETH = "cbETH",
|
|
11
|
-
wstETH = "wstETH",
|
|
12
|
-
rETH = "rETH",
|
|
13
|
-
LINK = "LINK",
|
|
14
|
-
UNI = "UNI",
|
|
15
|
-
AAVE = "AAVE",
|
|
16
|
-
COMP = "COMP",
|
|
17
|
-
CRV = "CRV",
|
|
18
|
-
SNX = "SNX",
|
|
19
|
-
ARB = "ARB",
|
|
20
|
-
AERO = "AERO",
|
|
21
|
-
GMX = "GMX"
|
|
22
|
-
}
|
|
23
|
-
interface KnownToken {
|
|
24
|
-
symbol: string;
|
|
25
|
-
name: string;
|
|
26
|
-
decimals: number;
|
|
27
|
-
/** Address per chainId. Missing key = not available on that chain. */
|
|
28
|
-
addresses: Partial<Record<number, Address>>;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Master token registry keyed by symbol.
|
|
32
|
-
* At a glance you see which chains each token lives on.
|
|
33
|
-
*
|
|
34
|
-
* Chain IDs: 8453 = Base, 84532 = Base Sepolia, 42161 = Arbitrum One, 421614 = Arbitrum Sepolia
|
|
35
|
-
*/
|
|
36
|
-
declare const KNOWN_TOKENS: {
|
|
37
|
-
readonly USDC: {
|
|
38
|
-
readonly symbol: "USDC";
|
|
39
|
-
readonly name: "USD Coin";
|
|
40
|
-
readonly decimals: 6;
|
|
41
|
-
readonly addresses: {
|
|
42
|
-
readonly 8453: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
|
|
43
|
-
readonly 84532: "0x036CbD53842c5426634e7929541eC2318f3dCF7e";
|
|
44
|
-
readonly 42161: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831";
|
|
45
|
-
readonly 421614: "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d";
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
readonly USDT: {
|
|
49
|
-
readonly symbol: "USDT";
|
|
50
|
-
readonly name: "Tether USD";
|
|
51
|
-
readonly decimals: 6;
|
|
52
|
-
readonly addresses: {
|
|
53
|
-
readonly 8453: "0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2";
|
|
54
|
-
readonly 84532: "0x323e78f944A9a1FcF3a10efcC5319DBb0bB6e673";
|
|
55
|
-
readonly 42161: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9";
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
readonly DAI: {
|
|
59
|
-
readonly symbol: "DAI";
|
|
60
|
-
readonly name: "Dai Stablecoin";
|
|
61
|
-
readonly decimals: 18;
|
|
62
|
-
readonly addresses: {
|
|
63
|
-
readonly 8453: "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb";
|
|
64
|
-
readonly 84532: "0x819ffecd4e64f193e959944bcd57eedc7755e17a";
|
|
65
|
-
readonly 42161: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1";
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
readonly WETH: {
|
|
69
|
-
readonly symbol: "WETH";
|
|
70
|
-
readonly name: "Wrapped Ether";
|
|
71
|
-
readonly decimals: 18;
|
|
72
|
-
readonly addresses: {
|
|
73
|
-
readonly 8453: "0x4200000000000000000000000000000000000006";
|
|
74
|
-
readonly 84532: "0x4200000000000000000000000000000000000006";
|
|
75
|
-
readonly 42161: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1";
|
|
76
|
-
readonly 421614: "0x980B62Da83eFf3D4576C647993b0c1D7faf17c73";
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
readonly WBTC: {
|
|
80
|
-
readonly symbol: "WBTC";
|
|
81
|
-
readonly name: "Wrapped BTC";
|
|
82
|
-
readonly decimals: 8;
|
|
83
|
-
readonly addresses: {
|
|
84
|
-
readonly 8453: "0x0555E30da8f98308EdB960aa94C0Db47230d2B9c";
|
|
85
|
-
readonly 42161: "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f";
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
readonly cbBTC: {
|
|
89
|
-
readonly symbol: "cbBTC";
|
|
90
|
-
readonly name: "Coinbase Wrapped BTC";
|
|
91
|
-
readonly decimals: 8;
|
|
92
|
-
readonly addresses: {
|
|
93
|
-
readonly 8453: "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf";
|
|
94
|
-
readonly 42161: "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf";
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
readonly cbETH: {
|
|
98
|
-
readonly symbol: "cbETH";
|
|
99
|
-
readonly name: "Coinbase Staked ETH";
|
|
100
|
-
readonly decimals: 18;
|
|
101
|
-
readonly addresses: {
|
|
102
|
-
readonly 8453: "0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22";
|
|
103
|
-
readonly 42161: "0x1DEBd73E752bEaF79865Fd6446b0c970EaE7732f";
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
readonly wstETH: {
|
|
107
|
-
readonly symbol: "wstETH";
|
|
108
|
-
readonly name: "Lido Wrapped stETH";
|
|
109
|
-
readonly decimals: 18;
|
|
110
|
-
readonly addresses: {
|
|
111
|
-
readonly 8453: "0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452";
|
|
112
|
-
readonly 42161: "0x5979D7b546E38E414F7E9822514be443A4800529";
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
readonly rETH: {
|
|
116
|
-
readonly symbol: "rETH";
|
|
117
|
-
readonly name: "Rocket Pool ETH";
|
|
118
|
-
readonly decimals: 18;
|
|
119
|
-
readonly addresses: {
|
|
120
|
-
readonly 42161: "0xEC70Dcb4A1EFa46b8F2D97C310C9c4790ba5ffA8";
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
readonly LINK: {
|
|
124
|
-
readonly symbol: "LINK";
|
|
125
|
-
readonly name: "Chainlink";
|
|
126
|
-
readonly decimals: 18;
|
|
127
|
-
readonly addresses: {
|
|
128
|
-
readonly 8453: "0x88Fb150BDc53A65fe94Dea0c9BA0a6dAf8C6e196";
|
|
129
|
-
readonly 84532: "0xE4aB69C077896252FAFBD49EFD26B5D171A32410";
|
|
130
|
-
readonly 42161: "0xf97f4df75117a78c1A5a0DBb814Af92458539FB4";
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
readonly UNI: {
|
|
134
|
-
readonly symbol: "UNI";
|
|
135
|
-
readonly name: "Uniswap";
|
|
136
|
-
readonly decimals: 18;
|
|
137
|
-
readonly addresses: {
|
|
138
|
-
readonly 8453: "0xc3De830EA07524a0761646a6a4e4be0e114a3C83";
|
|
139
|
-
readonly 42161: "0xFa7F8980b0f1E64A2062791cc3b0871572f1F7f0";
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
readonly AAVE: {
|
|
143
|
-
readonly symbol: "AAVE";
|
|
144
|
-
readonly name: "Aave";
|
|
145
|
-
readonly decimals: 18;
|
|
146
|
-
readonly addresses: {
|
|
147
|
-
readonly 8453: "0x63706e401c06ac8513145b7687A14804d17f814b";
|
|
148
|
-
readonly 42161: "0xba5DdD1f9d7F570dc94a51479a000E3BCE967196";
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
readonly COMP: {
|
|
152
|
-
readonly symbol: "COMP";
|
|
153
|
-
readonly name: "Compound";
|
|
154
|
-
readonly decimals: 18;
|
|
155
|
-
readonly addresses: {
|
|
156
|
-
readonly 8453: "0x9e1028F5F1D5eDE59748FFceE5532509976840E0";
|
|
157
|
-
readonly 42161: "0x354A6dA3fcde098F8389cad84b0182725c6C91dE";
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
readonly CRV: {
|
|
161
|
-
readonly symbol: "CRV";
|
|
162
|
-
readonly name: "Curve DAO";
|
|
163
|
-
readonly decimals: 18;
|
|
164
|
-
readonly addresses: {
|
|
165
|
-
readonly 8453: "0x8Ee73c484A26e0A5df2Ee2a4960B789967dd0415";
|
|
166
|
-
readonly 42161: "0x11cDb42B0EB46D95f990BeDD4695A6e3fA034978";
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
readonly SNX: {
|
|
170
|
-
readonly symbol: "SNX";
|
|
171
|
-
readonly name: "Synthetix";
|
|
172
|
-
readonly decimals: 18;
|
|
173
|
-
readonly addresses: {
|
|
174
|
-
readonly 8453: "0x22e6966B799c4D5B13BE962E1D117b56327FDa66";
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
readonly ARB: {
|
|
178
|
-
readonly symbol: "ARB";
|
|
179
|
-
readonly name: "Arbitrum";
|
|
180
|
-
readonly decimals: 18;
|
|
181
|
-
readonly addresses: {
|
|
182
|
-
readonly 42161: "0x912CE59144191C1204E64559FE8253a0e49E6548";
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
readonly AERO: {
|
|
186
|
-
readonly symbol: "AERO";
|
|
187
|
-
readonly name: "Aerodrome";
|
|
188
|
-
readonly decimals: 18;
|
|
189
|
-
readonly addresses: {
|
|
190
|
-
readonly 8453: "0x940181a94A35A4569E4529A3CDfB74e38FD98631";
|
|
191
|
-
};
|
|
192
|
-
};
|
|
193
|
-
readonly GMX: {
|
|
194
|
-
readonly symbol: "GMX";
|
|
195
|
-
readonly name: "GMX";
|
|
196
|
-
readonly decimals: 18;
|
|
197
|
-
readonly addresses: {
|
|
198
|
-
readonly 42161: "0xfc5A1A6EB076a2C7aD06eD22C90d7E710E35ad0a";
|
|
199
|
-
};
|
|
200
|
-
};
|
|
201
|
-
};
|
|
202
|
-
type KnownTokenSymbol = keyof typeof KNOWN_TOKENS;
|
|
203
|
-
/** All known tokens available on a specific chain. */
|
|
204
|
-
declare function getKnownTokensForChain(chainId: number): (KnownToken & {
|
|
205
|
-
address: Address;
|
|
206
|
-
})[];
|
|
207
|
-
/** Reverse-lookup: address → symbol (case-insensitive). Returns null if unknown. */
|
|
208
|
-
declare function getTokenSymbolByAddress(address: string): string | null;
|
|
209
|
-
/**
|
|
210
|
-
* Resolve a Token enum symbol to its on-chain address for a given chain.
|
|
211
|
-
* If an Address (0x...) is passed, it is returned as-is.
|
|
212
|
-
*
|
|
213
|
-
* @throws if the symbol has no address on the given chain.
|
|
214
|
-
*/
|
|
215
|
-
declare function resolveToken(token: Address | Token | KnownTokenSymbol, chainId: number): Address;
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* keccak256 of the PaymentIntent type string — used for manual digest
|
|
219
|
-
* verification. viem's signTypedData computes this internally; you don't
|
|
220
|
-
* need this value for signing, only for low-level verification.
|
|
221
|
-
*/
|
|
222
|
-
declare const PAYMENT_INTENT_TYPEHASH: `0x${string}`;
|
|
223
|
-
/** keccak256 of the ExecuteIntent type string for DeFi protocol interactions. */
|
|
224
|
-
declare const EXECUTE_INTENT_TYPEHASH: `0x${string}`;
|
|
225
|
-
/** keccak256 of the SwapIntent type string for in-vault token rebalancing. */
|
|
226
|
-
declare const SWAP_INTENT_TYPEHASH: `0x${string}`;
|
|
227
|
-
/** EIP-712 domain name and version for AxonVault. Matches the constructor. */
|
|
228
|
-
declare const EIP712_DOMAIN_NAME: "AxonVault";
|
|
229
|
-
declare const EIP712_DOMAIN_VERSION: "1";
|
|
230
|
-
/** Sentinel address representing native ETH in PaymentIntents and deposits. */
|
|
231
|
-
declare const NATIVE_ETH: Address;
|
|
232
|
-
declare const USDC: Record<number, Address>;
|
|
233
|
-
declare enum Chain {
|
|
234
|
-
Base = 8453,
|
|
235
|
-
BaseSepolia = 84532,
|
|
236
|
-
Arbitrum = 42161,
|
|
237
|
-
ArbitrumSepolia = 421614
|
|
238
|
-
}
|
|
239
|
-
declare const SUPPORTED_CHAIN_IDS: readonly [8453, 84532, 42161, 421614];
|
|
240
|
-
type SupportedChainId = (typeof SUPPORTED_CHAIN_IDS)[number];
|
|
241
|
-
/** Human-readable chain names. */
|
|
242
|
-
declare const CHAIN_NAMES: Record<number, string>;
|
|
243
|
-
/** Block explorer TX URL prefix per chain. */
|
|
244
|
-
declare const EXPLORER_TX: Record<number, string>;
|
|
245
|
-
/** Block explorer address URL prefix per chain. */
|
|
246
|
-
declare const EXPLORER_ADDR: Record<number, string>;
|
|
247
|
-
/** Default intent validity window when no deadline is specified. */
|
|
248
|
-
declare const DEFAULT_DEADLINE_SECONDS = 300;
|
|
249
|
-
/** Window presets for SpendingLimit.windowSeconds. */
|
|
250
|
-
declare const WINDOW: {
|
|
251
|
-
readonly ONE_HOUR: 3600n;
|
|
252
|
-
readonly ONE_DAY: 86400n;
|
|
253
|
-
readonly ONE_WEEK: 604800n;
|
|
254
|
-
readonly THIRTY_DAYS: 2592000n;
|
|
255
|
-
};
|
|
256
|
-
/**
|
|
257
|
-
* Structured error codes returned by the relayer when a payment is rejected.
|
|
258
|
-
* Bots should import these to programmatically handle failures.
|
|
259
|
-
*/
|
|
260
|
-
declare const PaymentErrorCode: {
|
|
261
|
-
/** Payment destination is the vault itself */
|
|
262
|
-
readonly SELF_PAYMENT: "SELF_PAYMENT";
|
|
263
|
-
/** Payment destination is the zero address */
|
|
264
|
-
readonly ZERO_ADDRESS: "ZERO_ADDRESS";
|
|
265
|
-
/** Payment amount is zero */
|
|
266
|
-
readonly ZERO_AMOUNT: "ZERO_AMOUNT";
|
|
267
|
-
/** Vault does not hold enough of the requested token */
|
|
268
|
-
readonly INSUFFICIENT_BALANCE: "INSUFFICIENT_BALANCE";
|
|
269
|
-
/** EIP-712 signature verification failed */
|
|
270
|
-
readonly INVALID_SIGNATURE: "INVALID_SIGNATURE";
|
|
271
|
-
/** Payment intent deadline has passed */
|
|
272
|
-
readonly DEADLINE_EXPIRED: "DEADLINE_EXPIRED";
|
|
273
|
-
/** Bot is temporarily paused by the operator */
|
|
274
|
-
readonly BOT_PAUSED: "BOT_PAUSED";
|
|
275
|
-
/** Bot address is not registered/active in the vault */
|
|
276
|
-
readonly BOT_NOT_ACTIVE: "BOT_NOT_ACTIVE";
|
|
277
|
-
/** Destination address is on the global or vault blacklist */
|
|
278
|
-
readonly BLACKLISTED: "BLACKLISTED";
|
|
279
|
-
/** Rolling-window spending limit (USD amount) exceeded */
|
|
280
|
-
readonly SPENDING_LIMIT_EXCEEDED: "SPENDING_LIMIT_EXCEEDED";
|
|
281
|
-
/** Rolling-window transaction count limit exceeded */
|
|
282
|
-
readonly TX_COUNT_EXCEEDED: "TX_COUNT_EXCEEDED";
|
|
283
|
-
/** Single transaction exceeds the bot's on-chain maxPerTxAmount */
|
|
284
|
-
readonly MAX_PER_TX_EXCEEDED: "MAX_PER_TX_EXCEEDED";
|
|
285
|
-
/** Vault-level daily aggregate spending limit exceeded */
|
|
286
|
-
readonly VAULT_AGGREGATE_EXCEEDED: "VAULT_AGGREGATE_EXCEEDED";
|
|
287
|
-
/** eth_call simulation of the on-chain transaction reverted */
|
|
288
|
-
readonly SIMULATION_FAILED: "SIMULATION_FAILED";
|
|
289
|
-
/** Routed to human review (AI scan flagged or no consensus) */
|
|
290
|
-
readonly PENDING_REVIEW: "PENDING_REVIEW";
|
|
291
|
-
/** Relayer wallet has insufficient gas to submit the transaction */
|
|
292
|
-
readonly RELAYER_OUT_OF_GAS: "RELAYER_OUT_OF_GAS";
|
|
293
|
-
/** On-chain transaction submission failed */
|
|
294
|
-
readonly SUBMISSION_FAILED: "SUBMISSION_FAILED";
|
|
295
|
-
/** Destination not in the vault/bot whitelist */
|
|
296
|
-
readonly DESTINATION_NOT_WHITELISTED: "DESTINATION_NOT_WHITELISTED";
|
|
297
|
-
/** Vault address is not a valid AxonVault or was not deployed by a known factory */
|
|
298
|
-
readonly INVALID_VAULT: "INVALID_VAULT";
|
|
299
|
-
/** Rebalance output token is not in the whitelist (on-chain or relayer default) */
|
|
300
|
-
readonly REBALANCE_TOKEN_NOT_ALLOWED: "REBALANCE_TOKEN_NOT_ALLOWED";
|
|
301
|
-
/** Rebalance input amount exceeds the bot's maxRebalanceAmount cap */
|
|
302
|
-
readonly MAX_REBALANCE_AMOUNT_EXCEEDED: "MAX_REBALANCE_AMOUNT_EXCEEDED";
|
|
303
|
-
/** Unknown or internal error */
|
|
304
|
-
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
305
|
-
};
|
|
306
|
-
type PaymentErrorCode = (typeof PaymentErrorCode)[keyof typeof PaymentErrorCode];
|
|
307
|
-
declare const RELAYER_API: {
|
|
308
|
-
readonly PAYMENTS: "/v1/payments";
|
|
309
|
-
readonly payment: (requestId: string) => string;
|
|
310
|
-
readonly EXECUTE: "/v1/execute";
|
|
311
|
-
readonly execute: (requestId: string) => string;
|
|
312
|
-
readonly SWAP: "/v1/swap";
|
|
313
|
-
readonly swap: (requestId: string) => string;
|
|
314
|
-
readonly vaultBalance: (vault: string, token: string, chainId: number) => string;
|
|
315
|
-
readonly vaultBalances: (vault: string, chainId: number) => string;
|
|
316
|
-
readonly vaultInfo: (vault: string, chainId: number) => string;
|
|
317
|
-
readonly botStatus: (vault: string, bot: string, chainId: number) => string;
|
|
318
|
-
readonly destinationCheck: (vault: string, bot: string, destination: string, chainId: number) => string;
|
|
319
|
-
readonly protocolCheck: (vault: string, protocol: string, chainId: number) => string;
|
|
320
|
-
readonly rebalanceTokens: (vault: string, chainId: number) => string;
|
|
321
|
-
readonly rebalanceTokenCheck: (vault: string, token: string, chainId: number) => string;
|
|
322
|
-
readonly tosStatus: (wallet: string) => string;
|
|
323
|
-
readonly TOS_ACCEPT: "/v1/tos/accept";
|
|
324
|
-
};
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* Accepts any way to identify a token:
|
|
328
|
-
* - `Address` ('0x...') — raw contract address
|
|
329
|
-
* - `Token` enum (Token.USDC) — type-safe symbol
|
|
330
|
-
* - `KnownTokenSymbol` string ('USDC') — bare string shorthand
|
|
331
|
-
*/
|
|
332
|
-
type TokenInput = Address | Token | KnownTokenSymbol;
|
|
333
|
-
/**
|
|
334
|
-
* Accepts amounts in any format:
|
|
335
|
-
* - `bigint` — raw base units (e.g. 5_000_000n for 5 USDC). Passed through as-is.
|
|
336
|
-
* - `number` — human-readable (e.g. 5.2 for 5.2 USDC). SDK converts using token decimals.
|
|
337
|
-
* - `string` — human-readable string (e.g. '5.2'). Recommended for computed values to avoid float precision issues.
|
|
338
|
-
*/
|
|
339
|
-
type AmountInput = bigint | number | string;
|
|
340
|
-
/** Rolling window spending limit. Stored on-chain, enforced by relayer. */
|
|
341
|
-
interface SpendingLimit {
|
|
342
|
-
/** Max spend in this window (token base units, e.g. USDC has 6 decimals). */
|
|
343
|
-
amount: bigint;
|
|
344
|
-
/** Max number of transactions in this window. 0 = no count limit. */
|
|
345
|
-
maxCount: bigint;
|
|
346
|
-
/** Window size: 3600=1h, 86400=1d, 604800=1w, 2592000=30d */
|
|
347
|
-
windowSeconds: bigint;
|
|
348
|
-
}
|
|
349
|
-
/** Per-bot configuration returned by getBotConfig(). */
|
|
350
|
-
interface BotConfig {
|
|
351
|
-
isActive: boolean;
|
|
352
|
-
registeredAt: bigint;
|
|
353
|
-
/** Hard per-tx cap for payments, enforced on-chain. 0 = no cap. */
|
|
354
|
-
maxPerTxAmount: bigint;
|
|
355
|
-
/** Hard cap for rebalancing (executeSwap) input amount in USD. 0 = no cap. */
|
|
356
|
-
maxRebalanceAmount: bigint;
|
|
357
|
-
/** Rolling window limits — stored on-chain, enforced by relayer. */
|
|
358
|
-
spendingLimits: SpendingLimit[];
|
|
359
|
-
/** Relayer triggers AI scan above this amount. 0 = never by amount alone. */
|
|
360
|
-
aiTriggerThreshold: bigint;
|
|
361
|
-
/** Relayer always requires AI scan for this bot regardless of amount. */
|
|
362
|
-
requireAiVerification: boolean;
|
|
363
|
-
}
|
|
364
|
-
/** Parameters for addBot / updateBotConfig. */
|
|
365
|
-
interface BotConfigParams {
|
|
366
|
-
maxPerTxAmount: bigint;
|
|
367
|
-
/** Hard cap for rebalancing (executeSwap) input amount in USD. 0 = no cap (default). */
|
|
368
|
-
maxRebalanceAmount: bigint;
|
|
369
|
-
spendingLimits: SpendingLimit[];
|
|
370
|
-
aiTriggerThreshold: bigint;
|
|
371
|
-
requireAiVerification: boolean;
|
|
372
|
-
}
|
|
373
|
-
/** Owner-set ceilings bounding operator actions. */
|
|
374
|
-
interface OperatorCeilings {
|
|
375
|
-
/** Operator cannot set a bot's maxPerTxAmount above this. 0 = no ceiling. */
|
|
376
|
-
maxPerTxAmount: bigint;
|
|
377
|
-
/** Operator cannot set a bot's daily limit above this. 0 = no ceiling. */
|
|
378
|
-
maxBotDailyLimit: bigint;
|
|
379
|
-
/** 0 = operator CANNOT add bots. Must be explicitly set by owner. */
|
|
380
|
-
maxOperatorBots: bigint;
|
|
381
|
-
/** Total vault daily outflow cap — relayer reads and enforces. 0 = none. */
|
|
382
|
-
vaultDailyAggregate: bigint;
|
|
383
|
-
/** Operator cannot set aiTriggerThreshold above this. 0 = no floor. */
|
|
384
|
-
minAiTriggerFloor: bigint;
|
|
385
|
-
}
|
|
386
|
-
/**
|
|
387
|
-
* Signed payment intent. This is the core signed data unit.
|
|
388
|
-
*
|
|
389
|
-
* The bot signs this struct using EIP-712. The relayer submits it to
|
|
390
|
-
* executePayment() on-chain. The bot never interacts with the chain directly.
|
|
391
|
-
*
|
|
392
|
-
* Domain: { name: "AxonVault", version: "1", chainId, verifyingContract: vaultAddress }
|
|
393
|
-
* TypeHash: keccak256("PaymentIntent(address bot,address to,address token,uint256 amount,uint256 deadline,bytes32 ref)")
|
|
394
|
-
*/
|
|
395
|
-
interface PaymentIntent {
|
|
396
|
-
/** Bot's own address. Must be registered in the vault. */
|
|
397
|
-
bot: Address;
|
|
398
|
-
/** Payment recipient address. */
|
|
399
|
-
to: Address;
|
|
400
|
-
/** Desired output token address (e.g. USDC). Vault may hold this directly
|
|
401
|
-
* or the relayer may swap to it transparently. */
|
|
402
|
-
token: Address;
|
|
403
|
-
/** Token amount in base units (USDC: 6 decimals, so 1 USDC = 1_000_000n). */
|
|
404
|
-
amount: bigint;
|
|
405
|
-
/** Unix timestamp after which this intent is invalid. */
|
|
406
|
-
deadline: bigint;
|
|
407
|
-
/** keccak256 of the off-chain memo. Full memo text stored by relayer. */
|
|
408
|
-
ref: Hex;
|
|
409
|
-
}
|
|
410
|
-
/**
|
|
411
|
-
* Input for AxonClient.pay(). The SDK fills in bot address, deadline,
|
|
412
|
-
* and ref (from memo). You provide the payment destination and metadata.
|
|
413
|
-
*/
|
|
414
|
-
interface PayInput {
|
|
415
|
-
/** Payment recipient. */
|
|
416
|
-
to: Address;
|
|
417
|
-
/** Desired output token — an address, Token enum, or bare symbol string ('USDC'). */
|
|
418
|
-
token: TokenInput;
|
|
419
|
-
/** Amount: bigint (raw base units), number (human-readable), or string (human-readable). */
|
|
420
|
-
amount: AmountInput;
|
|
421
|
-
/**
|
|
422
|
-
* Human-readable payment description. Stored in relayer's PostgreSQL.
|
|
423
|
-
* Gets keccak256-hashed to populate the on-chain `ref` field.
|
|
424
|
-
* Example: "API call #1234 — weather data lookup"
|
|
425
|
-
*/
|
|
426
|
-
memo?: string;
|
|
427
|
-
/**
|
|
428
|
-
* Mandatory per-request unique key for idempotency. The relayer uses
|
|
429
|
-
* this to deduplicate retries — submitting the same idempotencyKey twice
|
|
430
|
-
* is safe and returns the original result. If omitted, the SDK generates
|
|
431
|
-
* a UUID automatically.
|
|
432
|
-
*/
|
|
433
|
-
idempotencyKey?: string;
|
|
434
|
-
/**
|
|
435
|
-
* For x402 / HTTP 402 flows: the URL whose resource is being unlocked
|
|
436
|
-
* by this payment. Stored off-chain, not signed.
|
|
437
|
-
*/
|
|
438
|
-
resourceUrl?: string;
|
|
439
|
-
/** Your external invoice ID. Stored off-chain for reconciliation. */
|
|
440
|
-
invoiceId?: string;
|
|
441
|
-
/** Your external order ID. Stored off-chain for reconciliation. */
|
|
442
|
-
orderId?: string;
|
|
443
|
-
/**
|
|
444
|
-
* Human-readable name for the recipient. Displayed on dashboards instead of
|
|
445
|
-
* the raw address. Example: "Weather Bot", "Alice", "OpenAI API".
|
|
446
|
-
*/
|
|
447
|
-
recipientLabel?: string;
|
|
448
|
-
/** Arbitrary key-value metadata. Stored off-chain. Values must be strings. */
|
|
449
|
-
metadata?: Record<string, string>;
|
|
450
|
-
/**
|
|
451
|
-
* Intent expiry. Defaults to 5 minutes from now.
|
|
452
|
-
* Must be within the relayer's acceptance window (typically ±5 min).
|
|
453
|
-
*/
|
|
454
|
-
deadline?: bigint;
|
|
455
|
-
/**
|
|
456
|
-
* Override the on-chain ref bytes32 directly. Use this when you need to
|
|
457
|
-
* match an exact ref value (e.g. for cross-chain deposit tracking).
|
|
458
|
-
* If set, `memo` is ignored for ref generation but still stored off-chain.
|
|
459
|
-
*/
|
|
460
|
-
ref?: Hex;
|
|
461
|
-
}
|
|
462
|
-
/**
|
|
463
|
-
* Signed execute intent for DeFi protocol interactions.
|
|
464
|
-
*
|
|
465
|
-
* The bot signs this struct using EIP-712. The relayer submits it to
|
|
466
|
-
* executeProtocol() on-chain. The contract approves `token` to `protocol`,
|
|
467
|
-
* calls it with `callData`, then revokes the approval.
|
|
468
|
-
*
|
|
469
|
-
* TypeHash: keccak256("ExecuteIntent(address bot,address protocol,bytes32 calldataHash,address token,uint256 amount,uint256 deadline,bytes32 ref)")
|
|
470
|
-
*/
|
|
471
|
-
interface ExecuteIntent {
|
|
472
|
-
/** Bot's own address. Must be registered in the vault. */
|
|
473
|
-
bot: Address;
|
|
474
|
-
/** Target DeFi protocol contract address. Must be in vault's approvedProtocols. */
|
|
475
|
-
protocol: Address;
|
|
476
|
-
/** keccak256 of the callData bytes. Verified by relayer before submission. */
|
|
477
|
-
calldataHash: Hex;
|
|
478
|
-
/** Token to approve to the protocol before calling. */
|
|
479
|
-
token: Address;
|
|
480
|
-
/** Amount to approve (in token base units). */
|
|
481
|
-
amount: bigint;
|
|
482
|
-
/** Unix timestamp after which this intent is invalid. */
|
|
483
|
-
deadline: bigint;
|
|
484
|
-
/** keccak256 of the off-chain memo. Full memo text stored by relayer. */
|
|
485
|
-
ref: Hex;
|
|
486
|
-
}
|
|
487
|
-
/**
|
|
488
|
-
* Signed swap intent for in-vault token rebalancing.
|
|
489
|
-
*
|
|
490
|
-
* The bot signs this struct using EIP-712. The relayer submits it to
|
|
491
|
-
* executeSwap() on-chain. Tokens stay in the vault (no recipient).
|
|
492
|
-
*
|
|
493
|
-
* TypeHash: keccak256("SwapIntent(address bot,address toToken,uint256 minToAmount,uint256 deadline,bytes32 ref)")
|
|
494
|
-
*/
|
|
495
|
-
interface SwapIntent {
|
|
496
|
-
/** Bot's own address. Must be registered in the vault. */
|
|
497
|
-
bot: Address;
|
|
498
|
-
/** Desired output token. */
|
|
499
|
-
toToken: Address;
|
|
500
|
-
/** Minimum output amount (slippage floor). */
|
|
501
|
-
minToAmount: bigint;
|
|
502
|
-
/** Unix timestamp after which this intent is invalid. */
|
|
503
|
-
deadline: bigint;
|
|
504
|
-
/** keccak256 of the off-chain memo. Full memo text stored by relayer. */
|
|
505
|
-
ref: Hex;
|
|
506
|
-
}
|
|
507
|
-
/**
|
|
508
|
-
* Input for AxonClient.execute(). Signs an ExecuteIntent and submits to
|
|
509
|
-
* the relayer's POST /v1/execute endpoint.
|
|
510
|
-
*/
|
|
511
|
-
interface ExecuteInput {
|
|
512
|
-
/** Target protocol contract address. */
|
|
513
|
-
protocol: Address;
|
|
514
|
-
/** The actual calldata bytes to send to the protocol. */
|
|
515
|
-
callData: Hex;
|
|
516
|
-
/** Token to approve to the protocol — an address, Token enum, or bare symbol string ('USDC'). */
|
|
517
|
-
token: TokenInput;
|
|
518
|
-
/** Amount to approve: bigint (raw base units), number (human-readable), or string (human-readable). */
|
|
519
|
-
amount: AmountInput;
|
|
520
|
-
/** Human-readable description. Gets keccak256-hashed to ref. */
|
|
521
|
-
memo?: string;
|
|
522
|
-
/**
|
|
523
|
-
* Human-readable name for the protocol interaction. Displayed on dashboards
|
|
524
|
-
* instead of the raw contract address. Example: "Uniswap Swap", "Aave Borrow".
|
|
525
|
-
*/
|
|
526
|
-
protocolName?: string;
|
|
527
|
-
/** Override ref bytes32 directly. */
|
|
528
|
-
ref?: Hex;
|
|
529
|
-
/** Idempotency key (auto-generated if omitted). */
|
|
530
|
-
idempotencyKey?: string;
|
|
531
|
-
/** Intent expiry (defaults to 5 min). */
|
|
532
|
-
deadline?: bigint;
|
|
533
|
-
/** Arbitrary metadata stored off-chain. */
|
|
534
|
-
metadata?: Record<string, string>;
|
|
535
|
-
/** Source token for pre-swap — an address, Token enum, or bare symbol string. */
|
|
536
|
-
fromToken?: TokenInput;
|
|
537
|
-
/** Max input for pre-swap: bigint (raw), number (human), or string (human). */
|
|
538
|
-
maxFromAmount?: AmountInput;
|
|
539
|
-
}
|
|
540
|
-
/**
|
|
541
|
-
* Input for AxonClient.swap(). Signs a SwapIntent and submits to
|
|
542
|
-
* the relayer's POST /v1/swap endpoint.
|
|
543
|
-
*/
|
|
544
|
-
interface SwapInput {
|
|
545
|
-
/** Desired output token — an address, Token enum, or bare symbol string ('WETH'). */
|
|
546
|
-
toToken: TokenInput;
|
|
547
|
-
/** Minimum output amount (slippage floor): bigint (raw), number (human), or string (human). */
|
|
548
|
-
minToAmount: AmountInput;
|
|
549
|
-
/** Human-readable description. Gets keccak256-hashed to ref. */
|
|
550
|
-
memo?: string;
|
|
551
|
-
/** Override ref bytes32 directly. */
|
|
552
|
-
ref?: Hex;
|
|
553
|
-
/** Idempotency key (auto-generated if omitted). */
|
|
554
|
-
idempotencyKey?: string;
|
|
555
|
-
/** Intent expiry (defaults to 5 min). */
|
|
556
|
-
deadline?: bigint;
|
|
557
|
-
/** Source token to swap from — an address, Token enum, or bare symbol string. */
|
|
558
|
-
fromToken?: TokenInput;
|
|
559
|
-
/** Max input amount for swap: bigint (raw), number (human), or string (human). */
|
|
560
|
-
maxFromAmount?: AmountInput;
|
|
561
|
-
}
|
|
562
|
-
/** Possible statuses returned by the relayer. */
|
|
563
|
-
type PaymentStatus = 'approved' | 'pending_review' | 'rejected';
|
|
564
|
-
/** Result of AxonClient.pay() or AxonClient.poll(). */
|
|
565
|
-
interface PaymentResult {
|
|
566
|
-
requestId: string;
|
|
567
|
-
status: PaymentStatus;
|
|
568
|
-
/** On-chain transaction hash. Present when status === 'approved'. */
|
|
569
|
-
txHash?: Hex;
|
|
570
|
-
/** URL to poll for async results. */
|
|
571
|
-
pollUrl?: string;
|
|
572
|
-
/** Estimated milliseconds until resolution (relayer hint). */
|
|
573
|
-
estimatedResolutionMs?: number;
|
|
574
|
-
/** Rejection reason. Present when status === 'rejected'. */
|
|
575
|
-
reason?: string;
|
|
576
|
-
}
|
|
577
|
-
/** High-level vault info returned by AxonClient.getVaultInfo(). */
|
|
578
|
-
interface VaultInfo {
|
|
579
|
-
owner: Address;
|
|
580
|
-
operator: Address;
|
|
581
|
-
paused: boolean;
|
|
582
|
-
version: number;
|
|
583
|
-
}
|
|
584
|
-
/** Result of a destination check (canPayTo / isDestinationAllowed). */
|
|
585
|
-
interface DestinationCheckResult {
|
|
586
|
-
allowed: boolean;
|
|
587
|
-
reason?: string;
|
|
588
|
-
}
|
|
589
|
-
/** Result of getRebalanceTokens() — the effective rebalance token whitelist. */
|
|
590
|
-
interface RebalanceTokensResult {
|
|
591
|
-
/** "default" = relayer defaults (no on-chain whitelist), "on_chain" = owner-set override. */
|
|
592
|
-
source: 'default' | 'on_chain';
|
|
593
|
-
/** Lowercase token addresses allowed for rebalancing (executeSwap output). */
|
|
594
|
-
tokens: Address[];
|
|
595
|
-
/** Number of tokens set on-chain. 0 = using relayer defaults. */
|
|
596
|
-
rebalanceTokenCount: number;
|
|
597
|
-
}
|
|
598
|
-
/** TOS acceptance status for a wallet. */
|
|
599
|
-
interface TosStatus {
|
|
600
|
-
accepted: boolean;
|
|
601
|
-
tosVersion: string;
|
|
602
|
-
}
|
|
603
|
-
/** Configuration for AxonClient. */
|
|
604
|
-
interface AxonClientConfig {
|
|
605
|
-
/** Vault contract address to sign against. */
|
|
606
|
-
vaultAddress: Address;
|
|
607
|
-
/** Chain ID — a number or a Chain enum value (e.g. Chain.Base). */
|
|
608
|
-
chainId: Chain | number;
|
|
609
|
-
/**
|
|
610
|
-
* Bot's private key (hex, 0x-prefixed). Used to sign payment intents.
|
|
611
|
-
* The SDK constructs a local signer internally — no RPC connection needed.
|
|
612
|
-
* Provide either this or `account`.
|
|
613
|
-
*/
|
|
614
|
-
botPrivateKey?: Hex;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
/**
|
|
618
|
-
* Main entry point for bots interacting with Axon.
|
|
619
|
-
*
|
|
620
|
-
* Handles EIP-712 signing, relayer communication, and status polling.
|
|
621
|
-
* Bots never submit transactions directly — they sign intents and the relayer
|
|
622
|
-
* handles all on-chain execution.
|
|
623
|
-
*
|
|
624
|
-
* All chain reads (balances, bot status, vault info) go through the relayer
|
|
625
|
-
* API — bots never need an RPC endpoint.
|
|
626
|
-
*
|
|
627
|
-
* @example
|
|
628
|
-
* ```ts
|
|
629
|
-
* import { AxonClient, USDC } from '@axonfi/sdk'
|
|
630
|
-
*
|
|
631
|
-
* const client = new AxonClient({
|
|
632
|
-
* vaultAddress: '0x...',
|
|
633
|
-
* chainId: 84532, // Base Sepolia
|
|
634
|
-
* botPrivateKey: '0x...',
|
|
635
|
-
* })
|
|
636
|
-
*
|
|
637
|
-
* const result = await client.pay({
|
|
638
|
-
* to: '0x...recipient...',
|
|
639
|
-
* token: 'USDC',
|
|
640
|
-
* amount: 5, // 5 USDC — SDK handles decimals
|
|
641
|
-
* memo: 'API call #1234 — weather data',
|
|
642
|
-
* })
|
|
643
|
-
*
|
|
644
|
-
* console.log(result.status, result.txHash)
|
|
645
|
-
* ```
|
|
646
|
-
*/
|
|
647
|
-
declare class AxonClient {
|
|
648
|
-
private readonly vaultAddress;
|
|
649
|
-
private readonly chainId;
|
|
650
|
-
private readonly relayerUrl;
|
|
651
|
-
private readonly walletClient;
|
|
652
|
-
constructor(config: AxonClientConfig);
|
|
653
|
-
/** Returns the bot's address derived from the configured private key. */
|
|
654
|
-
get botAddress(): Address;
|
|
655
|
-
/**
|
|
656
|
-
* Create, sign, and submit a payment intent to the Axon relayer.
|
|
657
|
-
*
|
|
658
|
-
* Three possible outcomes (all included in PaymentResult.status):
|
|
659
|
-
* - `"approved"`: fast path — txHash available immediately
|
|
660
|
-
* - `"pending_review"`: AI scan or human review in progress — poll for status
|
|
661
|
-
* - `"rejected"`: payment was rejected — reason field explains why
|
|
662
|
-
*/
|
|
663
|
-
pay(input: PayInput): Promise<PaymentResult>;
|
|
664
|
-
/**
|
|
665
|
-
* Sign and submit a DeFi protocol execution to the Axon relayer.
|
|
666
|
-
*
|
|
667
|
-
* The vault approves `token` to `protocol`, calls it with `callData`,
|
|
668
|
-
* then revokes the approval. Tokens stay in the vault or go to the protocol
|
|
669
|
-
* as specified by the calldata.
|
|
670
|
-
*/
|
|
671
|
-
execute(input: ExecuteInput): Promise<PaymentResult>;
|
|
672
|
-
/**
|
|
673
|
-
* Sign and submit an in-vault token swap to the Axon relayer.
|
|
674
|
-
*
|
|
675
|
-
* Swaps tokens within the vault (no external recipient). Useful for
|
|
676
|
-
* rebalancing vault holdings.
|
|
677
|
-
*/
|
|
678
|
-
swap(input: SwapInput): Promise<PaymentResult>;
|
|
679
|
-
/** Read the vault's ERC-20 balance for a given token (via relayer). */
|
|
680
|
-
getBalance(token: Address): Promise<bigint>;
|
|
681
|
-
/**
|
|
682
|
-
* Read the vault's ERC-20 balances for multiple tokens in a single call (via relayer).
|
|
683
|
-
* Returns a record mapping token address → balance.
|
|
684
|
-
*/
|
|
685
|
-
getBalances(tokens: Address[]): Promise<Record<Address, bigint>>;
|
|
686
|
-
/** Returns whether this bot is registered and active in the vault (via relayer). */
|
|
687
|
-
isActive(): Promise<boolean>;
|
|
688
|
-
/** Returns whether the vault is currently paused (via relayer). */
|
|
689
|
-
isPaused(): Promise<boolean>;
|
|
690
|
-
/** Returns high-level vault info (owner, operator, paused, version) via relayer. */
|
|
691
|
-
getVaultInfo(): Promise<VaultInfo>;
|
|
692
|
-
/**
|
|
693
|
-
* Check whether this bot can pay to a given destination address (via relayer).
|
|
694
|
-
* Checks blacklist → global whitelist → bot whitelist, matching on-chain logic.
|
|
695
|
-
*/
|
|
696
|
-
canPayTo(destination: Address): Promise<DestinationCheckResult>;
|
|
697
|
-
/** Returns whether a protocol address is approved for executeProtocol() calls (via relayer). */
|
|
698
|
-
isProtocolApproved(protocol: Address): Promise<boolean>;
|
|
699
|
-
/**
|
|
700
|
-
* Returns the effective rebalance token whitelist for this vault.
|
|
701
|
-
*
|
|
702
|
-
* If the owner set tokens on-chain, those override entirely.
|
|
703
|
-
* If no on-chain whitelist, returns relayer defaults (USDC, WETH, USDT).
|
|
704
|
-
* Use this before calling swap() to check which output tokens are allowed.
|
|
705
|
-
*/
|
|
706
|
-
getRebalanceTokens(): Promise<RebalanceTokensResult>;
|
|
707
|
-
/** Check if a specific token is allowed for rebalancing (executeSwap output) on this vault. */
|
|
708
|
-
isRebalanceTokenAllowed(token: Address): Promise<{
|
|
709
|
-
allowed: boolean;
|
|
710
|
-
source: 'default' | 'on_chain';
|
|
711
|
-
}>;
|
|
712
|
-
/** Check if a wallet has accepted the current TOS version. */
|
|
713
|
-
getTosStatus(wallet: string): Promise<TosStatus>;
|
|
714
|
-
/**
|
|
715
|
-
* Sign and submit TOS acceptance. Uses the owner's wallet (not the bot key).
|
|
716
|
-
*
|
|
717
|
-
* @param signer - Object with a `signMessage` method (e.g. a viem WalletClient
|
|
718
|
-
* or ethers Signer). This should be the vault owner's wallet, not the bot key.
|
|
719
|
-
* @param wallet - The owner's wallet address (must match the signer).
|
|
720
|
-
*/
|
|
721
|
-
acceptTos(signer: {
|
|
722
|
-
signMessage: (args: {
|
|
723
|
-
message: string;
|
|
724
|
-
}) => Promise<Hex>;
|
|
725
|
-
}, wallet: string): Promise<TosStatus>;
|
|
726
|
-
/**
|
|
727
|
-
* Poll the relayer for the status of an async payment.
|
|
728
|
-
*
|
|
729
|
-
* Use this when pay() returns `status: "pending_review"`. Poll until
|
|
730
|
-
* status is `"approved"` or `"rejected"`.
|
|
731
|
-
*
|
|
732
|
-
* Recommended polling interval: 5–10 seconds.
|
|
733
|
-
*/
|
|
734
|
-
poll(requestId: string): Promise<PaymentResult>;
|
|
735
|
-
/** Poll the relayer for the status of an async protocol execution. */
|
|
736
|
-
pollExecute(requestId: string): Promise<PaymentResult>;
|
|
737
|
-
/** Poll the relayer for the status of an async swap. */
|
|
738
|
-
pollSwap(requestId: string): Promise<PaymentResult>;
|
|
739
|
-
/**
|
|
740
|
-
* Sign a PaymentIntent directly without submitting to the relayer.
|
|
741
|
-
*
|
|
742
|
-
* Use this if you want to build the intent yourself and pass the signature
|
|
743
|
-
* to another system (e.g. a custom relayer integration).
|
|
744
|
-
*/
|
|
745
|
-
signPayment(intent: PaymentIntent): Promise<Hex>;
|
|
746
|
-
private _get;
|
|
747
|
-
private _defaultDeadline;
|
|
748
|
-
private _resolveRef;
|
|
749
|
-
private _buildPaymentIntent;
|
|
750
|
-
private _buildExecuteIntent;
|
|
751
|
-
private _buildSwapIntent;
|
|
752
|
-
private _submitPayment;
|
|
753
|
-
private _submitExecute;
|
|
754
|
-
private _submitSwap;
|
|
755
|
-
private _post;
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
/**
|
|
759
|
-
* Sign a PaymentIntent using EIP-712 typed structured data.
|
|
760
|
-
*
|
|
761
|
-
* The resulting signature can be submitted to the Axon relayer API, which
|
|
762
|
-
* passes it to AxonVault.executePayment() on-chain.
|
|
763
|
-
*/
|
|
764
|
-
declare function signPayment(walletClient: WalletClient, vaultAddress: Address, chainId: number, intent: PaymentIntent): Promise<Hex>;
|
|
765
|
-
/**
|
|
766
|
-
* Sign an ExecuteIntent using EIP-712 typed structured data.
|
|
767
|
-
*
|
|
768
|
-
* The resulting signature can be submitted to the Axon relayer API, which
|
|
769
|
-
* passes it to AxonVault.executeProtocol() on-chain.
|
|
770
|
-
*/
|
|
771
|
-
declare function signExecuteIntent(walletClient: WalletClient, vaultAddress: Address, chainId: number, intent: ExecuteIntent): Promise<Hex>;
|
|
772
|
-
/**
|
|
773
|
-
* Sign a SwapIntent using EIP-712 typed structured data.
|
|
774
|
-
*
|
|
775
|
-
* The resulting signature can be submitted to the Axon relayer API, which
|
|
776
|
-
* passes it to AxonVault.executeSwap() on-chain.
|
|
777
|
-
*/
|
|
778
|
-
declare function signSwapIntent(walletClient: WalletClient, vaultAddress: Address, chainId: number, intent: SwapIntent): Promise<Hex>;
|
|
779
|
-
/**
|
|
780
|
-
* Derive the on-chain `ref` bytes32 from a human-readable memo string.
|
|
781
|
-
*
|
|
782
|
-
* The full memo text is stored off-chain by the relayer (PostgreSQL), linked
|
|
783
|
-
* to the transaction. The keccak256 hash goes into the signed PaymentIntent
|
|
784
|
-
* and is emitted in the PaymentExecuted on-chain event.
|
|
785
|
-
*
|
|
786
|
-
* @param memo Human-readable description, e.g. "API call #1234 — weather data"
|
|
787
|
-
* @returns keccak256 hash of the UTF-8 encoded memo, as a bytes32 hex.
|
|
788
|
-
*/
|
|
789
|
-
declare function encodeRef(memo: string): Hex;
|
|
790
|
-
|
|
791
|
-
/** Returns the viem Chain object for a supported Axon chain ID. */
|
|
792
|
-
declare function getChain(chainId: number): Chain$1;
|
|
793
|
-
/** Create a viem PublicClient for the given chain and RPC URL. */
|
|
794
|
-
declare function createAxonPublicClient(chainId: number, rpcUrl: string): PublicClient;
|
|
795
|
-
/** Create a viem WalletClient from a raw private key (signing-only, no RPC needed). */
|
|
796
|
-
declare function createAxonWalletClient(privateKey: Hex, chainId: number): WalletClient;
|
|
797
|
-
/**
|
|
798
|
-
* Returns the full BotConfig for a bot address from the vault.
|
|
799
|
-
* If the bot has never been added, isActive will be false and all
|
|
800
|
-
* numeric fields will be 0n.
|
|
801
|
-
*/
|
|
802
|
-
declare function getBotConfig(publicClient: PublicClient, vaultAddress: Address, botAddress: Address): Promise<BotConfig>;
|
|
803
|
-
/** Returns whether a bot address is currently active in the vault. */
|
|
804
|
-
declare function isBotActive(publicClient: PublicClient, vaultAddress: Address, botAddress: Address): Promise<boolean>;
|
|
805
|
-
/** Returns the operator ceilings set by the vault owner. */
|
|
806
|
-
declare function getOperatorCeilings(publicClient: PublicClient, vaultAddress: Address): Promise<OperatorCeilings>;
|
|
807
|
-
/**
|
|
808
|
-
* Returns the maximum USDC an operator-compromised wallet could drain per day.
|
|
809
|
-
* Computed on-chain as: min(maxOperatorBots × maxBotDailyLimit, vaultDailyAggregate).
|
|
810
|
-
* Returns 0n if operator has no bot-add permission.
|
|
811
|
-
*/
|
|
812
|
-
declare function operatorMaxDrainPerDay(publicClient: PublicClient, vaultAddress: Address): Promise<bigint>;
|
|
813
|
-
/** Returns whether the vault is currently paused. */
|
|
814
|
-
declare function isVaultPaused(publicClient: PublicClient, vaultAddress: Address): Promise<boolean>;
|
|
815
|
-
/** Returns the EIP-712 domain separator for this vault (for off-chain verification). */
|
|
816
|
-
declare function getDomainSeparator(publicClient: PublicClient, vaultAddress: Address): Promise<Hex>;
|
|
817
|
-
/** Returns the vault contract version number. */
|
|
818
|
-
declare function getVaultVersion(publicClient: PublicClient, vaultAddress: Address): Promise<number>;
|
|
819
|
-
/** Returns the vault owner address. */
|
|
820
|
-
declare function getVaultOwner(publicClient: PublicClient, vaultAddress: Address): Promise<Address>;
|
|
821
|
-
/** Returns the vault operator address (address(0) if no operator set). */
|
|
822
|
-
declare function getVaultOperator(publicClient: PublicClient, vaultAddress: Address): Promise<Address>;
|
|
823
|
-
/**
|
|
824
|
-
* Check whether a destination address is allowed for a given bot.
|
|
825
|
-
*
|
|
826
|
-
* Logic mirrors the on-chain enforcement order:
|
|
827
|
-
* 1. If destination is on the global blacklist → blocked
|
|
828
|
-
* 2. If global whitelist is non-empty → destination must be on it
|
|
829
|
-
* 3. If bot-specific whitelist is non-empty → destination must be on it
|
|
830
|
-
* 4. Otherwise → allowed
|
|
831
|
-
*/
|
|
832
|
-
declare function isDestinationAllowed(publicClient: PublicClient, vaultAddress: Address, botAddress: Address, destination: Address): Promise<DestinationCheckResult>;
|
|
833
|
-
/** Returns the number of tokens in the vault's on-chain rebalance whitelist. 0 = no on-chain whitelist. */
|
|
834
|
-
declare function getRebalanceTokenCount(publicClient: PublicClient, vaultAddress: Address): Promise<number>;
|
|
835
|
-
/** Returns whether a token is in the vault's on-chain rebalance whitelist. */
|
|
836
|
-
declare function isRebalanceTokenWhitelisted(publicClient: PublicClient, vaultAddress: Address, token: Address): Promise<boolean>;
|
|
837
|
-
/**
|
|
838
|
-
* Deploy a new AxonVault via the factory.
|
|
839
|
-
*
|
|
840
|
-
* The vault is owned by the walletClient's account. Permissionless — any
|
|
841
|
-
* address can deploy, no Axon approval required.
|
|
842
|
-
*
|
|
843
|
-
* @param walletClient Wallet that will own the deployed vault.
|
|
844
|
-
* @param factoryAddress Address of the deployed AxonVaultFactory.
|
|
845
|
-
* @returns Address of the newly deployed vault.
|
|
846
|
-
*/
|
|
847
|
-
declare function deployVault(walletClient: WalletClient, publicClient: PublicClient, factoryAddress: Address): Promise<Address>;
|
|
848
|
-
|
|
849
|
-
interface KeystoreV3 {
|
|
850
|
-
version: 3;
|
|
851
|
-
id: string;
|
|
852
|
-
address: string;
|
|
853
|
-
crypto: {
|
|
854
|
-
ciphertext: string;
|
|
855
|
-
cipherparams: {
|
|
856
|
-
iv: string;
|
|
857
|
-
};
|
|
858
|
-
cipher: 'aes-128-ctr';
|
|
859
|
-
kdf: 'scrypt';
|
|
860
|
-
kdfparams: {
|
|
861
|
-
dklen: number;
|
|
862
|
-
salt: string;
|
|
863
|
-
n: number;
|
|
864
|
-
r: number;
|
|
865
|
-
p: number;
|
|
866
|
-
};
|
|
867
|
-
mac: string;
|
|
868
|
-
};
|
|
869
|
-
}
|
|
870
|
-
/**
|
|
871
|
-
* Encrypt a raw private key into a V3 keystore JSON object.
|
|
872
|
-
*
|
|
873
|
-
* Uses scrypt KDF (n=262144, r=8, p=1) and AES-128-CTR cipher —
|
|
874
|
-
* the same format as MetaMask and Geth.
|
|
875
|
-
*
|
|
876
|
-
* @param privateKey - Raw private key as 0x-prefixed hex string
|
|
877
|
-
* @param passphrase - Passphrase to encrypt with (min 1 character)
|
|
878
|
-
* @returns V3 keystore object ready to serialize as JSON
|
|
879
|
-
*
|
|
880
|
-
* @example
|
|
881
|
-
* ```ts
|
|
882
|
-
* import { encryptKeystore } from '@axonfi/sdk';
|
|
883
|
-
*
|
|
884
|
-
* const keystore = await encryptKeystore('0xabc...', 'my-strong-passphrase');
|
|
885
|
-
* fs.writeFileSync('bot-keystore.json', JSON.stringify(keystore, null, 2));
|
|
886
|
-
* ```
|
|
887
|
-
*/
|
|
888
|
-
declare function encryptKeystore(privateKey: Hex, passphrase: string): Promise<KeystoreV3>;
|
|
889
|
-
/**
|
|
890
|
-
* Decrypt a V3 keystore back to a raw private key.
|
|
891
|
-
*
|
|
892
|
-
* @param keystore - V3 keystore object or JSON string
|
|
893
|
-
* @param passphrase - Passphrase used during encryption
|
|
894
|
-
* @returns Raw private key as 0x-prefixed hex string
|
|
895
|
-
* @throws Error if passphrase is wrong (MAC mismatch) or keystore is invalid
|
|
896
|
-
*
|
|
897
|
-
* @example
|
|
898
|
-
* ```ts
|
|
899
|
-
* import { AxonClient, decryptKeystore } from '@axonfi/sdk';
|
|
900
|
-
*
|
|
901
|
-
* const keystore = JSON.parse(fs.readFileSync('bot-keystore.json', 'utf8'));
|
|
902
|
-
* const privateKey = await decryptKeystore(keystore, process.env.BOT_PASSPHRASE!);
|
|
903
|
-
* const client = new AxonClient({ botPrivateKey: privateKey, ... });
|
|
904
|
-
* ```
|
|
905
|
-
*/
|
|
906
|
-
declare function decryptKeystore(keystore: KeystoreV3 | string, passphrase: string): Promise<Hex>;
|
|
907
|
-
|
|
908
|
-
/**
|
|
909
|
-
* Look up decimals for a token by symbol, Token enum, or address.
|
|
910
|
-
*
|
|
911
|
-
* @param token - A KnownTokenSymbol ('USDC'), Token enum (Token.USDC), or address ('0x...')
|
|
912
|
-
* @param chainId - Optional chain ID (unused for decimal lookup, but reserved for future use)
|
|
913
|
-
* @returns The number of decimals for the token
|
|
914
|
-
* @throws If the token is an unknown address with no entry in KNOWN_TOKENS
|
|
915
|
-
*/
|
|
916
|
-
declare function resolveTokenDecimals(token: Address | Token | KnownTokenSymbol, chainId?: number): number;
|
|
917
|
-
/**
|
|
918
|
-
* Convert a human-friendly amount to raw base units (bigint).
|
|
919
|
-
*
|
|
920
|
-
* - **bigint** → passed through as-is (already in base units)
|
|
921
|
-
* - **number** → converted to string, then parsed via `parseUnits(str, decimals)`
|
|
922
|
-
* - **string** → parsed directly via `parseUnits(str, decimals)`
|
|
923
|
-
*
|
|
924
|
-
* @param amount - The amount as bigint (raw), number (human), or string (human)
|
|
925
|
-
* @param token - Token identifier used to look up decimals (symbol, enum, or address)
|
|
926
|
-
* @param chainId - Optional chain ID (passed to resolveTokenDecimals)
|
|
927
|
-
* @returns The amount in token base units as bigint
|
|
928
|
-
*
|
|
929
|
-
* @example
|
|
930
|
-
* ```ts
|
|
931
|
-
* parseAmount(5_000_000n, 'USDC') // 5000000n (passthrough)
|
|
932
|
-
* parseAmount(5.2, 'USDC') // 5200000n
|
|
933
|
-
* parseAmount('5.2', 'USDC') // 5200000n
|
|
934
|
-
* parseAmount(0.001, 'WETH') // 1000000000000000n
|
|
935
|
-
* ```
|
|
936
|
-
*
|
|
937
|
-
* @throws If the amount has more decimal places than the token supports
|
|
938
|
-
* @throws If the token is unknown and amount is not bigint
|
|
939
|
-
*/
|
|
940
|
-
declare function parseAmount(amount: bigint | number | string, token: Address | Token | KnownTokenSymbol, chainId?: number): bigint;
|
|
941
|
-
|
|
942
|
-
declare const AxonVaultAbi: readonly [{
|
|
943
|
-
readonly type: "constructor";
|
|
944
|
-
readonly inputs: readonly [{
|
|
945
|
-
readonly name: "_owner";
|
|
946
|
-
readonly type: "address";
|
|
947
|
-
readonly internalType: "address";
|
|
948
|
-
}, {
|
|
949
|
-
readonly name: "_axonRegistry";
|
|
950
|
-
readonly type: "address";
|
|
951
|
-
readonly internalType: "address";
|
|
952
|
-
}];
|
|
953
|
-
readonly stateMutability: "nonpayable";
|
|
954
|
-
}, {
|
|
955
|
-
readonly type: "receive";
|
|
956
|
-
readonly stateMutability: "payable";
|
|
957
|
-
}, {
|
|
958
|
-
readonly type: "function";
|
|
959
|
-
readonly name: "DOMAIN_SEPARATOR";
|
|
960
|
-
readonly inputs: readonly [];
|
|
961
|
-
readonly outputs: readonly [{
|
|
962
|
-
readonly name: "";
|
|
963
|
-
readonly type: "bytes32";
|
|
964
|
-
readonly internalType: "bytes32";
|
|
965
|
-
}];
|
|
966
|
-
readonly stateMutability: "view";
|
|
967
|
-
}, {
|
|
968
|
-
readonly type: "function";
|
|
969
|
-
readonly name: "MAX_SPENDING_LIMITS";
|
|
970
|
-
readonly inputs: readonly [];
|
|
971
|
-
readonly outputs: readonly [{
|
|
972
|
-
readonly name: "";
|
|
973
|
-
readonly type: "uint8";
|
|
974
|
-
readonly internalType: "uint8";
|
|
975
|
-
}];
|
|
976
|
-
readonly stateMutability: "view";
|
|
977
|
-
}, {
|
|
978
|
-
readonly type: "function";
|
|
979
|
-
readonly name: "NATIVE_ETH";
|
|
980
|
-
readonly inputs: readonly [];
|
|
981
|
-
readonly outputs: readonly [{
|
|
982
|
-
readonly name: "";
|
|
983
|
-
readonly type: "address";
|
|
984
|
-
readonly internalType: "address";
|
|
985
|
-
}];
|
|
986
|
-
readonly stateMutability: "view";
|
|
987
|
-
}, {
|
|
988
|
-
readonly type: "function";
|
|
989
|
-
readonly name: "VERSION";
|
|
990
|
-
readonly inputs: readonly [];
|
|
991
|
-
readonly outputs: readonly [{
|
|
992
|
-
readonly name: "";
|
|
993
|
-
readonly type: "uint16";
|
|
994
|
-
readonly internalType: "uint16";
|
|
995
|
-
}];
|
|
996
|
-
readonly stateMutability: "view";
|
|
997
|
-
}, {
|
|
998
|
-
readonly type: "function";
|
|
999
|
-
readonly name: "acceptOwnership";
|
|
1000
|
-
readonly inputs: readonly [];
|
|
1001
|
-
readonly outputs: readonly [];
|
|
1002
|
-
readonly stateMutability: "nonpayable";
|
|
1003
|
-
}, {
|
|
1004
|
-
readonly type: "function";
|
|
1005
|
-
readonly name: "addBot";
|
|
1006
|
-
readonly inputs: readonly [{
|
|
1007
|
-
readonly name: "bot";
|
|
1008
|
-
readonly type: "address";
|
|
1009
|
-
readonly internalType: "address";
|
|
1010
|
-
}, {
|
|
1011
|
-
readonly name: "params";
|
|
1012
|
-
readonly type: "tuple";
|
|
1013
|
-
readonly internalType: "struct AxonVault.BotConfigParams";
|
|
1014
|
-
readonly components: readonly [{
|
|
1015
|
-
readonly name: "maxPerTxAmount";
|
|
1016
|
-
readonly type: "uint256";
|
|
1017
|
-
readonly internalType: "uint256";
|
|
1018
|
-
}, {
|
|
1019
|
-
readonly name: "maxRebalanceAmount";
|
|
1020
|
-
readonly type: "uint256";
|
|
1021
|
-
readonly internalType: "uint256";
|
|
1022
|
-
}, {
|
|
1023
|
-
readonly name: "spendingLimits";
|
|
1024
|
-
readonly type: "tuple[]";
|
|
1025
|
-
readonly internalType: "struct AxonVault.SpendingLimit[]";
|
|
1026
|
-
readonly components: readonly [{
|
|
1027
|
-
readonly name: "amount";
|
|
1028
|
-
readonly type: "uint256";
|
|
1029
|
-
readonly internalType: "uint256";
|
|
1030
|
-
}, {
|
|
1031
|
-
readonly name: "maxCount";
|
|
1032
|
-
readonly type: "uint256";
|
|
1033
|
-
readonly internalType: "uint256";
|
|
1034
|
-
}, {
|
|
1035
|
-
readonly name: "windowSeconds";
|
|
1036
|
-
readonly type: "uint256";
|
|
1037
|
-
readonly internalType: "uint256";
|
|
1038
|
-
}];
|
|
1039
|
-
}, {
|
|
1040
|
-
readonly name: "aiTriggerThreshold";
|
|
1041
|
-
readonly type: "uint256";
|
|
1042
|
-
readonly internalType: "uint256";
|
|
1043
|
-
}, {
|
|
1044
|
-
readonly name: "requireAiVerification";
|
|
1045
|
-
readonly type: "bool";
|
|
1046
|
-
readonly internalType: "bool";
|
|
1047
|
-
}];
|
|
1048
|
-
}];
|
|
1049
|
-
readonly outputs: readonly [];
|
|
1050
|
-
readonly stateMutability: "nonpayable";
|
|
1051
|
-
}, {
|
|
1052
|
-
readonly type: "function";
|
|
1053
|
-
readonly name: "addBotDestination";
|
|
1054
|
-
readonly inputs: readonly [{
|
|
1055
|
-
readonly name: "bot";
|
|
1056
|
-
readonly type: "address";
|
|
1057
|
-
readonly internalType: "address";
|
|
1058
|
-
}, {
|
|
1059
|
-
readonly name: "destination";
|
|
1060
|
-
readonly type: "address";
|
|
1061
|
-
readonly internalType: "address";
|
|
1062
|
-
}];
|
|
1063
|
-
readonly outputs: readonly [];
|
|
1064
|
-
readonly stateMutability: "nonpayable";
|
|
1065
|
-
}, {
|
|
1066
|
-
readonly type: "function";
|
|
1067
|
-
readonly name: "addGlobalBlacklist";
|
|
1068
|
-
readonly inputs: readonly [{
|
|
1069
|
-
readonly name: "destination";
|
|
1070
|
-
readonly type: "address";
|
|
1071
|
-
readonly internalType: "address";
|
|
1072
|
-
}];
|
|
1073
|
-
readonly outputs: readonly [];
|
|
1074
|
-
readonly stateMutability: "nonpayable";
|
|
1075
|
-
}, {
|
|
1076
|
-
readonly type: "function";
|
|
1077
|
-
readonly name: "addGlobalDestination";
|
|
1078
|
-
readonly inputs: readonly [{
|
|
1079
|
-
readonly name: "destination";
|
|
1080
|
-
readonly type: "address";
|
|
1081
|
-
readonly internalType: "address";
|
|
1082
|
-
}];
|
|
1083
|
-
readonly outputs: readonly [];
|
|
1084
|
-
readonly stateMutability: "nonpayable";
|
|
1085
|
-
}, {
|
|
1086
|
-
readonly type: "function";
|
|
1087
|
-
readonly name: "addProtocol";
|
|
1088
|
-
readonly inputs: readonly [{
|
|
1089
|
-
readonly name: "protocol";
|
|
1090
|
-
readonly type: "address";
|
|
1091
|
-
readonly internalType: "address";
|
|
1092
|
-
}];
|
|
1093
|
-
readonly outputs: readonly [];
|
|
1094
|
-
readonly stateMutability: "nonpayable";
|
|
1095
|
-
}, {
|
|
1096
|
-
readonly type: "function";
|
|
1097
|
-
readonly name: "addRebalanceTokens";
|
|
1098
|
-
readonly inputs: readonly [{
|
|
1099
|
-
readonly name: "tokens";
|
|
1100
|
-
readonly type: "address[]";
|
|
1101
|
-
readonly internalType: "address[]";
|
|
1102
|
-
}];
|
|
1103
|
-
readonly outputs: readonly [];
|
|
1104
|
-
readonly stateMutability: "nonpayable";
|
|
1105
|
-
}, {
|
|
1106
|
-
readonly type: "function";
|
|
1107
|
-
readonly name: "approvedProtocolCount";
|
|
1108
|
-
readonly inputs: readonly [];
|
|
1109
|
-
readonly outputs: readonly [{
|
|
1110
|
-
readonly name: "";
|
|
1111
|
-
readonly type: "uint256";
|
|
1112
|
-
readonly internalType: "uint256";
|
|
1113
|
-
}];
|
|
1114
|
-
readonly stateMutability: "view";
|
|
1115
|
-
}, {
|
|
1116
|
-
readonly type: "function";
|
|
1117
|
-
readonly name: "approvedProtocols";
|
|
1118
|
-
readonly inputs: readonly [{
|
|
1119
|
-
readonly name: "";
|
|
1120
|
-
readonly type: "address";
|
|
1121
|
-
readonly internalType: "address";
|
|
1122
|
-
}];
|
|
1123
|
-
readonly outputs: readonly [{
|
|
1124
|
-
readonly name: "";
|
|
1125
|
-
readonly type: "bool";
|
|
1126
|
-
readonly internalType: "bool";
|
|
1127
|
-
}];
|
|
1128
|
-
readonly stateMutability: "view";
|
|
1129
|
-
}, {
|
|
1130
|
-
readonly type: "function";
|
|
1131
|
-
readonly name: "axonRegistry";
|
|
1132
|
-
readonly inputs: readonly [];
|
|
1133
|
-
readonly outputs: readonly [{
|
|
1134
|
-
readonly name: "";
|
|
1135
|
-
readonly type: "address";
|
|
1136
|
-
readonly internalType: "address";
|
|
1137
|
-
}];
|
|
1138
|
-
readonly stateMutability: "view";
|
|
1139
|
-
}, {
|
|
1140
|
-
readonly type: "function";
|
|
1141
|
-
readonly name: "botAddedByOperator";
|
|
1142
|
-
readonly inputs: readonly [{
|
|
1143
|
-
readonly name: "";
|
|
1144
|
-
readonly type: "address";
|
|
1145
|
-
readonly internalType: "address";
|
|
1146
|
-
}];
|
|
1147
|
-
readonly outputs: readonly [{
|
|
1148
|
-
readonly name: "";
|
|
1149
|
-
readonly type: "bool";
|
|
1150
|
-
readonly internalType: "bool";
|
|
1151
|
-
}];
|
|
1152
|
-
readonly stateMutability: "view";
|
|
1153
|
-
}, {
|
|
1154
|
-
readonly type: "function";
|
|
1155
|
-
readonly name: "botDestinationCount";
|
|
1156
|
-
readonly inputs: readonly [{
|
|
1157
|
-
readonly name: "";
|
|
1158
|
-
readonly type: "address";
|
|
1159
|
-
readonly internalType: "address";
|
|
1160
|
-
}];
|
|
1161
|
-
readonly outputs: readonly [{
|
|
1162
|
-
readonly name: "";
|
|
1163
|
-
readonly type: "uint256";
|
|
1164
|
-
readonly internalType: "uint256";
|
|
1165
|
-
}];
|
|
1166
|
-
readonly stateMutability: "view";
|
|
1167
|
-
}, {
|
|
1168
|
-
readonly type: "function";
|
|
1169
|
-
readonly name: "botDestinationWhitelist";
|
|
1170
|
-
readonly inputs: readonly [{
|
|
1171
|
-
readonly name: "";
|
|
1172
|
-
readonly type: "address";
|
|
1173
|
-
readonly internalType: "address";
|
|
1174
|
-
}, {
|
|
1175
|
-
readonly name: "";
|
|
1176
|
-
readonly type: "address";
|
|
1177
|
-
readonly internalType: "address";
|
|
1178
|
-
}];
|
|
1179
|
-
readonly outputs: readonly [{
|
|
1180
|
-
readonly name: "";
|
|
1181
|
-
readonly type: "bool";
|
|
1182
|
-
readonly internalType: "bool";
|
|
1183
|
-
}];
|
|
1184
|
-
readonly stateMutability: "view";
|
|
1185
|
-
}, {
|
|
1186
|
-
readonly type: "function";
|
|
1187
|
-
readonly name: "deposit";
|
|
1188
|
-
readonly inputs: readonly [{
|
|
1189
|
-
readonly name: "token";
|
|
1190
|
-
readonly type: "address";
|
|
1191
|
-
readonly internalType: "address";
|
|
1192
|
-
}, {
|
|
1193
|
-
readonly name: "amount";
|
|
1194
|
-
readonly type: "uint256";
|
|
1195
|
-
readonly internalType: "uint256";
|
|
1196
|
-
}, {
|
|
1197
|
-
readonly name: "ref";
|
|
1198
|
-
readonly type: "bytes32";
|
|
1199
|
-
readonly internalType: "bytes32";
|
|
1200
|
-
}];
|
|
1201
|
-
readonly outputs: readonly [];
|
|
1202
|
-
readonly stateMutability: "payable";
|
|
1203
|
-
}, {
|
|
1204
|
-
readonly type: "function";
|
|
1205
|
-
readonly name: "eip712Domain";
|
|
1206
|
-
readonly inputs: readonly [];
|
|
1207
|
-
readonly outputs: readonly [{
|
|
1208
|
-
readonly name: "fields";
|
|
1209
|
-
readonly type: "bytes1";
|
|
1210
|
-
readonly internalType: "bytes1";
|
|
1211
|
-
}, {
|
|
1212
|
-
readonly name: "name";
|
|
1213
|
-
readonly type: "string";
|
|
1214
|
-
readonly internalType: "string";
|
|
1215
|
-
}, {
|
|
1216
|
-
readonly name: "version";
|
|
1217
|
-
readonly type: "string";
|
|
1218
|
-
readonly internalType: "string";
|
|
1219
|
-
}, {
|
|
1220
|
-
readonly name: "chainId";
|
|
1221
|
-
readonly type: "uint256";
|
|
1222
|
-
readonly internalType: "uint256";
|
|
1223
|
-
}, {
|
|
1224
|
-
readonly name: "verifyingContract";
|
|
1225
|
-
readonly type: "address";
|
|
1226
|
-
readonly internalType: "address";
|
|
1227
|
-
}, {
|
|
1228
|
-
readonly name: "salt";
|
|
1229
|
-
readonly type: "bytes32";
|
|
1230
|
-
readonly internalType: "bytes32";
|
|
1231
|
-
}, {
|
|
1232
|
-
readonly name: "extensions";
|
|
1233
|
-
readonly type: "uint256[]";
|
|
1234
|
-
readonly internalType: "uint256[]";
|
|
1235
|
-
}];
|
|
1236
|
-
readonly stateMutability: "view";
|
|
1237
|
-
}, {
|
|
1238
|
-
readonly type: "function";
|
|
1239
|
-
readonly name: "executePayment";
|
|
1240
|
-
readonly inputs: readonly [{
|
|
1241
|
-
readonly name: "intent";
|
|
1242
|
-
readonly type: "tuple";
|
|
1243
|
-
readonly internalType: "struct AxonVault.PaymentIntent";
|
|
1244
|
-
readonly components: readonly [{
|
|
1245
|
-
readonly name: "bot";
|
|
1246
|
-
readonly type: "address";
|
|
1247
|
-
readonly internalType: "address";
|
|
1248
|
-
}, {
|
|
1249
|
-
readonly name: "to";
|
|
1250
|
-
readonly type: "address";
|
|
1251
|
-
readonly internalType: "address";
|
|
1252
|
-
}, {
|
|
1253
|
-
readonly name: "token";
|
|
1254
|
-
readonly type: "address";
|
|
1255
|
-
readonly internalType: "address";
|
|
1256
|
-
}, {
|
|
1257
|
-
readonly name: "amount";
|
|
1258
|
-
readonly type: "uint256";
|
|
1259
|
-
readonly internalType: "uint256";
|
|
1260
|
-
}, {
|
|
1261
|
-
readonly name: "deadline";
|
|
1262
|
-
readonly type: "uint256";
|
|
1263
|
-
readonly internalType: "uint256";
|
|
1264
|
-
}, {
|
|
1265
|
-
readonly name: "ref";
|
|
1266
|
-
readonly type: "bytes32";
|
|
1267
|
-
readonly internalType: "bytes32";
|
|
1268
|
-
}];
|
|
1269
|
-
}, {
|
|
1270
|
-
readonly name: "signature";
|
|
1271
|
-
readonly type: "bytes";
|
|
1272
|
-
readonly internalType: "bytes";
|
|
1273
|
-
}, {
|
|
1274
|
-
readonly name: "fromToken";
|
|
1275
|
-
readonly type: "address";
|
|
1276
|
-
readonly internalType: "address";
|
|
1277
|
-
}, {
|
|
1278
|
-
readonly name: "maxFromAmount";
|
|
1279
|
-
readonly type: "uint256";
|
|
1280
|
-
readonly internalType: "uint256";
|
|
1281
|
-
}, {
|
|
1282
|
-
readonly name: "swapRouter";
|
|
1283
|
-
readonly type: "address";
|
|
1284
|
-
readonly internalType: "address";
|
|
1285
|
-
}, {
|
|
1286
|
-
readonly name: "swapCalldata";
|
|
1287
|
-
readonly type: "bytes";
|
|
1288
|
-
readonly internalType: "bytes";
|
|
1289
|
-
}];
|
|
1290
|
-
readonly outputs: readonly [];
|
|
1291
|
-
readonly stateMutability: "nonpayable";
|
|
1292
|
-
}, {
|
|
1293
|
-
readonly type: "function";
|
|
1294
|
-
readonly name: "executeProtocol";
|
|
1295
|
-
readonly inputs: readonly [{
|
|
1296
|
-
readonly name: "intent";
|
|
1297
|
-
readonly type: "tuple";
|
|
1298
|
-
readonly internalType: "struct AxonVault.ExecuteIntent";
|
|
1299
|
-
readonly components: readonly [{
|
|
1300
|
-
readonly name: "bot";
|
|
1301
|
-
readonly type: "address";
|
|
1302
|
-
readonly internalType: "address";
|
|
1303
|
-
}, {
|
|
1304
|
-
readonly name: "protocol";
|
|
1305
|
-
readonly type: "address";
|
|
1306
|
-
readonly internalType: "address";
|
|
1307
|
-
}, {
|
|
1308
|
-
readonly name: "calldataHash";
|
|
1309
|
-
readonly type: "bytes32";
|
|
1310
|
-
readonly internalType: "bytes32";
|
|
1311
|
-
}, {
|
|
1312
|
-
readonly name: "token";
|
|
1313
|
-
readonly type: "address";
|
|
1314
|
-
readonly internalType: "address";
|
|
1315
|
-
}, {
|
|
1316
|
-
readonly name: "amount";
|
|
1317
|
-
readonly type: "uint256";
|
|
1318
|
-
readonly internalType: "uint256";
|
|
1319
|
-
}, {
|
|
1320
|
-
readonly name: "deadline";
|
|
1321
|
-
readonly type: "uint256";
|
|
1322
|
-
readonly internalType: "uint256";
|
|
1323
|
-
}, {
|
|
1324
|
-
readonly name: "ref";
|
|
1325
|
-
readonly type: "bytes32";
|
|
1326
|
-
readonly internalType: "bytes32";
|
|
1327
|
-
}];
|
|
1328
|
-
}, {
|
|
1329
|
-
readonly name: "signature";
|
|
1330
|
-
readonly type: "bytes";
|
|
1331
|
-
readonly internalType: "bytes";
|
|
1332
|
-
}, {
|
|
1333
|
-
readonly name: "callData";
|
|
1334
|
-
readonly type: "bytes";
|
|
1335
|
-
readonly internalType: "bytes";
|
|
1336
|
-
}, {
|
|
1337
|
-
readonly name: "fromToken";
|
|
1338
|
-
readonly type: "address";
|
|
1339
|
-
readonly internalType: "address";
|
|
1340
|
-
}, {
|
|
1341
|
-
readonly name: "maxFromAmount";
|
|
1342
|
-
readonly type: "uint256";
|
|
1343
|
-
readonly internalType: "uint256";
|
|
1344
|
-
}, {
|
|
1345
|
-
readonly name: "swapRouter";
|
|
1346
|
-
readonly type: "address";
|
|
1347
|
-
readonly internalType: "address";
|
|
1348
|
-
}, {
|
|
1349
|
-
readonly name: "swapCalldata";
|
|
1350
|
-
readonly type: "bytes";
|
|
1351
|
-
readonly internalType: "bytes";
|
|
1352
|
-
}];
|
|
1353
|
-
readonly outputs: readonly [{
|
|
1354
|
-
readonly name: "";
|
|
1355
|
-
readonly type: "bytes";
|
|
1356
|
-
readonly internalType: "bytes";
|
|
1357
|
-
}];
|
|
1358
|
-
readonly stateMutability: "nonpayable";
|
|
1359
|
-
}, {
|
|
1360
|
-
readonly type: "function";
|
|
1361
|
-
readonly name: "executeSwap";
|
|
1362
|
-
readonly inputs: readonly [{
|
|
1363
|
-
readonly name: "intent";
|
|
1364
|
-
readonly type: "tuple";
|
|
1365
|
-
readonly internalType: "struct AxonVault.SwapIntent";
|
|
1366
|
-
readonly components: readonly [{
|
|
1367
|
-
readonly name: "bot";
|
|
1368
|
-
readonly type: "address";
|
|
1369
|
-
readonly internalType: "address";
|
|
1370
|
-
}, {
|
|
1371
|
-
readonly name: "toToken";
|
|
1372
|
-
readonly type: "address";
|
|
1373
|
-
readonly internalType: "address";
|
|
1374
|
-
}, {
|
|
1375
|
-
readonly name: "minToAmount";
|
|
1376
|
-
readonly type: "uint256";
|
|
1377
|
-
readonly internalType: "uint256";
|
|
1378
|
-
}, {
|
|
1379
|
-
readonly name: "deadline";
|
|
1380
|
-
readonly type: "uint256";
|
|
1381
|
-
readonly internalType: "uint256";
|
|
1382
|
-
}, {
|
|
1383
|
-
readonly name: "ref";
|
|
1384
|
-
readonly type: "bytes32";
|
|
1385
|
-
readonly internalType: "bytes32";
|
|
1386
|
-
}];
|
|
1387
|
-
}, {
|
|
1388
|
-
readonly name: "signature";
|
|
1389
|
-
readonly type: "bytes";
|
|
1390
|
-
readonly internalType: "bytes";
|
|
1391
|
-
}, {
|
|
1392
|
-
readonly name: "fromToken";
|
|
1393
|
-
readonly type: "address";
|
|
1394
|
-
readonly internalType: "address";
|
|
1395
|
-
}, {
|
|
1396
|
-
readonly name: "maxFromAmount";
|
|
1397
|
-
readonly type: "uint256";
|
|
1398
|
-
readonly internalType: "uint256";
|
|
1399
|
-
}, {
|
|
1400
|
-
readonly name: "swapRouter";
|
|
1401
|
-
readonly type: "address";
|
|
1402
|
-
readonly internalType: "address";
|
|
1403
|
-
}, {
|
|
1404
|
-
readonly name: "swapCalldata";
|
|
1405
|
-
readonly type: "bytes";
|
|
1406
|
-
readonly internalType: "bytes";
|
|
1407
|
-
}];
|
|
1408
|
-
readonly outputs: readonly [];
|
|
1409
|
-
readonly stateMutability: "nonpayable";
|
|
1410
|
-
}, {
|
|
1411
|
-
readonly type: "function";
|
|
1412
|
-
readonly name: "getBotConfig";
|
|
1413
|
-
readonly inputs: readonly [{
|
|
1414
|
-
readonly name: "bot";
|
|
1415
|
-
readonly type: "address";
|
|
1416
|
-
readonly internalType: "address";
|
|
1417
|
-
}];
|
|
1418
|
-
readonly outputs: readonly [{
|
|
1419
|
-
readonly name: "";
|
|
1420
|
-
readonly type: "tuple";
|
|
1421
|
-
readonly internalType: "struct AxonVault.BotConfig";
|
|
1422
|
-
readonly components: readonly [{
|
|
1423
|
-
readonly name: "isActive";
|
|
1424
|
-
readonly type: "bool";
|
|
1425
|
-
readonly internalType: "bool";
|
|
1426
|
-
}, {
|
|
1427
|
-
readonly name: "registeredAt";
|
|
1428
|
-
readonly type: "uint256";
|
|
1429
|
-
readonly internalType: "uint256";
|
|
1430
|
-
}, {
|
|
1431
|
-
readonly name: "maxPerTxAmount";
|
|
1432
|
-
readonly type: "uint256";
|
|
1433
|
-
readonly internalType: "uint256";
|
|
1434
|
-
}, {
|
|
1435
|
-
readonly name: "maxRebalanceAmount";
|
|
1436
|
-
readonly type: "uint256";
|
|
1437
|
-
readonly internalType: "uint256";
|
|
1438
|
-
}, {
|
|
1439
|
-
readonly name: "spendingLimits";
|
|
1440
|
-
readonly type: "tuple[]";
|
|
1441
|
-
readonly internalType: "struct AxonVault.SpendingLimit[]";
|
|
1442
|
-
readonly components: readonly [{
|
|
1443
|
-
readonly name: "amount";
|
|
1444
|
-
readonly type: "uint256";
|
|
1445
|
-
readonly internalType: "uint256";
|
|
1446
|
-
}, {
|
|
1447
|
-
readonly name: "maxCount";
|
|
1448
|
-
readonly type: "uint256";
|
|
1449
|
-
readonly internalType: "uint256";
|
|
1450
|
-
}, {
|
|
1451
|
-
readonly name: "windowSeconds";
|
|
1452
|
-
readonly type: "uint256";
|
|
1453
|
-
readonly internalType: "uint256";
|
|
1454
|
-
}];
|
|
1455
|
-
}, {
|
|
1456
|
-
readonly name: "aiTriggerThreshold";
|
|
1457
|
-
readonly type: "uint256";
|
|
1458
|
-
readonly internalType: "uint256";
|
|
1459
|
-
}, {
|
|
1460
|
-
readonly name: "requireAiVerification";
|
|
1461
|
-
readonly type: "bool";
|
|
1462
|
-
readonly internalType: "bool";
|
|
1463
|
-
}];
|
|
1464
|
-
}];
|
|
1465
|
-
readonly stateMutability: "view";
|
|
1466
|
-
}, {
|
|
1467
|
-
readonly type: "function";
|
|
1468
|
-
readonly name: "globalBlacklistCount";
|
|
1469
|
-
readonly inputs: readonly [];
|
|
1470
|
-
readonly outputs: readonly [{
|
|
1471
|
-
readonly name: "";
|
|
1472
|
-
readonly type: "uint256";
|
|
1473
|
-
readonly internalType: "uint256";
|
|
1474
|
-
}];
|
|
1475
|
-
readonly stateMutability: "view";
|
|
1476
|
-
}, {
|
|
1477
|
-
readonly type: "function";
|
|
1478
|
-
readonly name: "globalDestinationBlacklist";
|
|
1479
|
-
readonly inputs: readonly [{
|
|
1480
|
-
readonly name: "";
|
|
1481
|
-
readonly type: "address";
|
|
1482
|
-
readonly internalType: "address";
|
|
1483
|
-
}];
|
|
1484
|
-
readonly outputs: readonly [{
|
|
1485
|
-
readonly name: "";
|
|
1486
|
-
readonly type: "bool";
|
|
1487
|
-
readonly internalType: "bool";
|
|
1488
|
-
}];
|
|
1489
|
-
readonly stateMutability: "view";
|
|
1490
|
-
}, {
|
|
1491
|
-
readonly type: "function";
|
|
1492
|
-
readonly name: "globalDestinationCount";
|
|
1493
|
-
readonly inputs: readonly [];
|
|
1494
|
-
readonly outputs: readonly [{
|
|
1495
|
-
readonly name: "";
|
|
1496
|
-
readonly type: "uint256";
|
|
1497
|
-
readonly internalType: "uint256";
|
|
1498
|
-
}];
|
|
1499
|
-
readonly stateMutability: "view";
|
|
1500
|
-
}, {
|
|
1501
|
-
readonly type: "function";
|
|
1502
|
-
readonly name: "globalDestinationWhitelist";
|
|
1503
|
-
readonly inputs: readonly [{
|
|
1504
|
-
readonly name: "";
|
|
1505
|
-
readonly type: "address";
|
|
1506
|
-
readonly internalType: "address";
|
|
1507
|
-
}];
|
|
1508
|
-
readonly outputs: readonly [{
|
|
1509
|
-
readonly name: "";
|
|
1510
|
-
readonly type: "bool";
|
|
1511
|
-
readonly internalType: "bool";
|
|
1512
|
-
}];
|
|
1513
|
-
readonly stateMutability: "view";
|
|
1514
|
-
}, {
|
|
1515
|
-
readonly type: "function";
|
|
1516
|
-
readonly name: "isBotActive";
|
|
1517
|
-
readonly inputs: readonly [{
|
|
1518
|
-
readonly name: "bot";
|
|
1519
|
-
readonly type: "address";
|
|
1520
|
-
readonly internalType: "address";
|
|
1521
|
-
}];
|
|
1522
|
-
readonly outputs: readonly [{
|
|
1523
|
-
readonly name: "";
|
|
1524
|
-
readonly type: "bool";
|
|
1525
|
-
readonly internalType: "bool";
|
|
1526
|
-
}];
|
|
1527
|
-
readonly stateMutability: "view";
|
|
1528
|
-
}, {
|
|
1529
|
-
readonly type: "function";
|
|
1530
|
-
readonly name: "isProtocolApproved";
|
|
1531
|
-
readonly inputs: readonly [{
|
|
1532
|
-
readonly name: "protocol";
|
|
1533
|
-
readonly type: "address";
|
|
1534
|
-
readonly internalType: "address";
|
|
1535
|
-
}];
|
|
1536
|
-
readonly outputs: readonly [{
|
|
1537
|
-
readonly name: "";
|
|
1538
|
-
readonly type: "bool";
|
|
1539
|
-
readonly internalType: "bool";
|
|
1540
|
-
}];
|
|
1541
|
-
readonly stateMutability: "view";
|
|
1542
|
-
}, {
|
|
1543
|
-
readonly type: "function";
|
|
1544
|
-
readonly name: "operator";
|
|
1545
|
-
readonly inputs: readonly [];
|
|
1546
|
-
readonly outputs: readonly [{
|
|
1547
|
-
readonly name: "";
|
|
1548
|
-
readonly type: "address";
|
|
1549
|
-
readonly internalType: "address";
|
|
1550
|
-
}];
|
|
1551
|
-
readonly stateMutability: "view";
|
|
1552
|
-
}, {
|
|
1553
|
-
readonly type: "function";
|
|
1554
|
-
readonly name: "operatorBotCount";
|
|
1555
|
-
readonly inputs: readonly [];
|
|
1556
|
-
readonly outputs: readonly [{
|
|
1557
|
-
readonly name: "";
|
|
1558
|
-
readonly type: "uint256";
|
|
1559
|
-
readonly internalType: "uint256";
|
|
1560
|
-
}];
|
|
1561
|
-
readonly stateMutability: "view";
|
|
1562
|
-
}, {
|
|
1563
|
-
readonly type: "function";
|
|
1564
|
-
readonly name: "operatorCeilings";
|
|
1565
|
-
readonly inputs: readonly [];
|
|
1566
|
-
readonly outputs: readonly [{
|
|
1567
|
-
readonly name: "maxPerTxAmount";
|
|
1568
|
-
readonly type: "uint256";
|
|
1569
|
-
readonly internalType: "uint256";
|
|
1570
|
-
}, {
|
|
1571
|
-
readonly name: "maxBotDailyLimit";
|
|
1572
|
-
readonly type: "uint256";
|
|
1573
|
-
readonly internalType: "uint256";
|
|
1574
|
-
}, {
|
|
1575
|
-
readonly name: "maxOperatorBots";
|
|
1576
|
-
readonly type: "uint256";
|
|
1577
|
-
readonly internalType: "uint256";
|
|
1578
|
-
}, {
|
|
1579
|
-
readonly name: "vaultDailyAggregate";
|
|
1580
|
-
readonly type: "uint256";
|
|
1581
|
-
readonly internalType: "uint256";
|
|
1582
|
-
}, {
|
|
1583
|
-
readonly name: "minAiTriggerFloor";
|
|
1584
|
-
readonly type: "uint256";
|
|
1585
|
-
readonly internalType: "uint256";
|
|
1586
|
-
}];
|
|
1587
|
-
readonly stateMutability: "view";
|
|
1588
|
-
}, {
|
|
1589
|
-
readonly type: "function";
|
|
1590
|
-
readonly name: "operatorMaxDrainPerDay";
|
|
1591
|
-
readonly inputs: readonly [];
|
|
1592
|
-
readonly outputs: readonly [{
|
|
1593
|
-
readonly name: "";
|
|
1594
|
-
readonly type: "uint256";
|
|
1595
|
-
readonly internalType: "uint256";
|
|
1596
|
-
}];
|
|
1597
|
-
readonly stateMutability: "view";
|
|
1598
|
-
}, {
|
|
1599
|
-
readonly type: "function";
|
|
1600
|
-
readonly name: "owner";
|
|
1601
|
-
readonly inputs: readonly [];
|
|
1602
|
-
readonly outputs: readonly [{
|
|
1603
|
-
readonly name: "";
|
|
1604
|
-
readonly type: "address";
|
|
1605
|
-
readonly internalType: "address";
|
|
1606
|
-
}];
|
|
1607
|
-
readonly stateMutability: "view";
|
|
1608
|
-
}, {
|
|
1609
|
-
readonly type: "function";
|
|
1610
|
-
readonly name: "pause";
|
|
1611
|
-
readonly inputs: readonly [];
|
|
1612
|
-
readonly outputs: readonly [];
|
|
1613
|
-
readonly stateMutability: "nonpayable";
|
|
1614
|
-
}, {
|
|
1615
|
-
readonly type: "function";
|
|
1616
|
-
readonly name: "paused";
|
|
1617
|
-
readonly inputs: readonly [];
|
|
1618
|
-
readonly outputs: readonly [{
|
|
1619
|
-
readonly name: "";
|
|
1620
|
-
readonly type: "bool";
|
|
1621
|
-
readonly internalType: "bool";
|
|
1622
|
-
}];
|
|
1623
|
-
readonly stateMutability: "view";
|
|
1624
|
-
}, {
|
|
1625
|
-
readonly type: "function";
|
|
1626
|
-
readonly name: "pendingOwner";
|
|
1627
|
-
readonly inputs: readonly [];
|
|
1628
|
-
readonly outputs: readonly [{
|
|
1629
|
-
readonly name: "";
|
|
1630
|
-
readonly type: "address";
|
|
1631
|
-
readonly internalType: "address";
|
|
1632
|
-
}];
|
|
1633
|
-
readonly stateMutability: "view";
|
|
1634
|
-
}, {
|
|
1635
|
-
readonly type: "function";
|
|
1636
|
-
readonly name: "rebalanceTokenCount";
|
|
1637
|
-
readonly inputs: readonly [];
|
|
1638
|
-
readonly outputs: readonly [{
|
|
1639
|
-
readonly name: "";
|
|
1640
|
-
readonly type: "uint256";
|
|
1641
|
-
readonly internalType: "uint256";
|
|
1642
|
-
}];
|
|
1643
|
-
readonly stateMutability: "view";
|
|
1644
|
-
}, {
|
|
1645
|
-
readonly type: "function";
|
|
1646
|
-
readonly name: "rebalanceTokenWhitelist";
|
|
1647
|
-
readonly inputs: readonly [{
|
|
1648
|
-
readonly name: "";
|
|
1649
|
-
readonly type: "address";
|
|
1650
|
-
readonly internalType: "address";
|
|
1651
|
-
}];
|
|
1652
|
-
readonly outputs: readonly [{
|
|
1653
|
-
readonly name: "";
|
|
1654
|
-
readonly type: "bool";
|
|
1655
|
-
readonly internalType: "bool";
|
|
1656
|
-
}];
|
|
1657
|
-
readonly stateMutability: "view";
|
|
1658
|
-
}, {
|
|
1659
|
-
readonly type: "function";
|
|
1660
|
-
readonly name: "removeBot";
|
|
1661
|
-
readonly inputs: readonly [{
|
|
1662
|
-
readonly name: "bot";
|
|
1663
|
-
readonly type: "address";
|
|
1664
|
-
readonly internalType: "address";
|
|
1665
|
-
}];
|
|
1666
|
-
readonly outputs: readonly [];
|
|
1667
|
-
readonly stateMutability: "nonpayable";
|
|
1668
|
-
}, {
|
|
1669
|
-
readonly type: "function";
|
|
1670
|
-
readonly name: "removeBotDestination";
|
|
1671
|
-
readonly inputs: readonly [{
|
|
1672
|
-
readonly name: "bot";
|
|
1673
|
-
readonly type: "address";
|
|
1674
|
-
readonly internalType: "address";
|
|
1675
|
-
}, {
|
|
1676
|
-
readonly name: "destination";
|
|
1677
|
-
readonly type: "address";
|
|
1678
|
-
readonly internalType: "address";
|
|
1679
|
-
}];
|
|
1680
|
-
readonly outputs: readonly [];
|
|
1681
|
-
readonly stateMutability: "nonpayable";
|
|
1682
|
-
}, {
|
|
1683
|
-
readonly type: "function";
|
|
1684
|
-
readonly name: "removeGlobalBlacklist";
|
|
1685
|
-
readonly inputs: readonly [{
|
|
1686
|
-
readonly name: "destination";
|
|
1687
|
-
readonly type: "address";
|
|
1688
|
-
readonly internalType: "address";
|
|
1689
|
-
}];
|
|
1690
|
-
readonly outputs: readonly [];
|
|
1691
|
-
readonly stateMutability: "nonpayable";
|
|
1692
|
-
}, {
|
|
1693
|
-
readonly type: "function";
|
|
1694
|
-
readonly name: "removeGlobalDestination";
|
|
1695
|
-
readonly inputs: readonly [{
|
|
1696
|
-
readonly name: "destination";
|
|
1697
|
-
readonly type: "address";
|
|
1698
|
-
readonly internalType: "address";
|
|
1699
|
-
}];
|
|
1700
|
-
readonly outputs: readonly [];
|
|
1701
|
-
readonly stateMutability: "nonpayable";
|
|
1702
|
-
}, {
|
|
1703
|
-
readonly type: "function";
|
|
1704
|
-
readonly name: "removeProtocol";
|
|
1705
|
-
readonly inputs: readonly [{
|
|
1706
|
-
readonly name: "protocol";
|
|
1707
|
-
readonly type: "address";
|
|
1708
|
-
readonly internalType: "address";
|
|
1709
|
-
}];
|
|
1710
|
-
readonly outputs: readonly [];
|
|
1711
|
-
readonly stateMutability: "nonpayable";
|
|
1712
|
-
}, {
|
|
1713
|
-
readonly type: "function";
|
|
1714
|
-
readonly name: "removeRebalanceTokens";
|
|
1715
|
-
readonly inputs: readonly [{
|
|
1716
|
-
readonly name: "tokens";
|
|
1717
|
-
readonly type: "address[]";
|
|
1718
|
-
readonly internalType: "address[]";
|
|
1719
|
-
}];
|
|
1720
|
-
readonly outputs: readonly [];
|
|
1721
|
-
readonly stateMutability: "nonpayable";
|
|
1722
|
-
}, {
|
|
1723
|
-
readonly type: "function";
|
|
1724
|
-
readonly name: "renounceOwnership";
|
|
1725
|
-
readonly inputs: readonly [];
|
|
1726
|
-
readonly outputs: readonly [];
|
|
1727
|
-
readonly stateMutability: "nonpayable";
|
|
1728
|
-
}, {
|
|
1729
|
-
readonly type: "function";
|
|
1730
|
-
readonly name: "setOperator";
|
|
1731
|
-
readonly inputs: readonly [{
|
|
1732
|
-
readonly name: "_operator";
|
|
1733
|
-
readonly type: "address";
|
|
1734
|
-
readonly internalType: "address";
|
|
1735
|
-
}];
|
|
1736
|
-
readonly outputs: readonly [];
|
|
1737
|
-
readonly stateMutability: "nonpayable";
|
|
1738
|
-
}, {
|
|
1739
|
-
readonly type: "function";
|
|
1740
|
-
readonly name: "setOperatorCeilings";
|
|
1741
|
-
readonly inputs: readonly [{
|
|
1742
|
-
readonly name: "ceilings";
|
|
1743
|
-
readonly type: "tuple";
|
|
1744
|
-
readonly internalType: "struct AxonVault.OperatorCeilings";
|
|
1745
|
-
readonly components: readonly [{
|
|
1746
|
-
readonly name: "maxPerTxAmount";
|
|
1747
|
-
readonly type: "uint256";
|
|
1748
|
-
readonly internalType: "uint256";
|
|
1749
|
-
}, {
|
|
1750
|
-
readonly name: "maxBotDailyLimit";
|
|
1751
|
-
readonly type: "uint256";
|
|
1752
|
-
readonly internalType: "uint256";
|
|
1753
|
-
}, {
|
|
1754
|
-
readonly name: "maxOperatorBots";
|
|
1755
|
-
readonly type: "uint256";
|
|
1756
|
-
readonly internalType: "uint256";
|
|
1757
|
-
}, {
|
|
1758
|
-
readonly name: "vaultDailyAggregate";
|
|
1759
|
-
readonly type: "uint256";
|
|
1760
|
-
readonly internalType: "uint256";
|
|
1761
|
-
}, {
|
|
1762
|
-
readonly name: "minAiTriggerFloor";
|
|
1763
|
-
readonly type: "uint256";
|
|
1764
|
-
readonly internalType: "uint256";
|
|
1765
|
-
}];
|
|
1766
|
-
}];
|
|
1767
|
-
readonly outputs: readonly [];
|
|
1768
|
-
readonly stateMutability: "nonpayable";
|
|
1769
|
-
}, {
|
|
1770
|
-
readonly type: "function";
|
|
1771
|
-
readonly name: "transferOwnership";
|
|
1772
|
-
readonly inputs: readonly [{
|
|
1773
|
-
readonly name: "newOwner";
|
|
1774
|
-
readonly type: "address";
|
|
1775
|
-
readonly internalType: "address";
|
|
1776
|
-
}];
|
|
1777
|
-
readonly outputs: readonly [];
|
|
1778
|
-
readonly stateMutability: "nonpayable";
|
|
1779
|
-
}, {
|
|
1780
|
-
readonly type: "function";
|
|
1781
|
-
readonly name: "unpause";
|
|
1782
|
-
readonly inputs: readonly [];
|
|
1783
|
-
readonly outputs: readonly [];
|
|
1784
|
-
readonly stateMutability: "nonpayable";
|
|
1785
|
-
}, {
|
|
1786
|
-
readonly type: "function";
|
|
1787
|
-
readonly name: "updateBotConfig";
|
|
1788
|
-
readonly inputs: readonly [{
|
|
1789
|
-
readonly name: "bot";
|
|
1790
|
-
readonly type: "address";
|
|
1791
|
-
readonly internalType: "address";
|
|
1792
|
-
}, {
|
|
1793
|
-
readonly name: "params";
|
|
1794
|
-
readonly type: "tuple";
|
|
1795
|
-
readonly internalType: "struct AxonVault.BotConfigParams";
|
|
1796
|
-
readonly components: readonly [{
|
|
1797
|
-
readonly name: "maxPerTxAmount";
|
|
1798
|
-
readonly type: "uint256";
|
|
1799
|
-
readonly internalType: "uint256";
|
|
1800
|
-
}, {
|
|
1801
|
-
readonly name: "maxRebalanceAmount";
|
|
1802
|
-
readonly type: "uint256";
|
|
1803
|
-
readonly internalType: "uint256";
|
|
1804
|
-
}, {
|
|
1805
|
-
readonly name: "spendingLimits";
|
|
1806
|
-
readonly type: "tuple[]";
|
|
1807
|
-
readonly internalType: "struct AxonVault.SpendingLimit[]";
|
|
1808
|
-
readonly components: readonly [{
|
|
1809
|
-
readonly name: "amount";
|
|
1810
|
-
readonly type: "uint256";
|
|
1811
|
-
readonly internalType: "uint256";
|
|
1812
|
-
}, {
|
|
1813
|
-
readonly name: "maxCount";
|
|
1814
|
-
readonly type: "uint256";
|
|
1815
|
-
readonly internalType: "uint256";
|
|
1816
|
-
}, {
|
|
1817
|
-
readonly name: "windowSeconds";
|
|
1818
|
-
readonly type: "uint256";
|
|
1819
|
-
readonly internalType: "uint256";
|
|
1820
|
-
}];
|
|
1821
|
-
}, {
|
|
1822
|
-
readonly name: "aiTriggerThreshold";
|
|
1823
|
-
readonly type: "uint256";
|
|
1824
|
-
readonly internalType: "uint256";
|
|
1825
|
-
}, {
|
|
1826
|
-
readonly name: "requireAiVerification";
|
|
1827
|
-
readonly type: "bool";
|
|
1828
|
-
readonly internalType: "bool";
|
|
1829
|
-
}];
|
|
1830
|
-
}];
|
|
1831
|
-
readonly outputs: readonly [];
|
|
1832
|
-
readonly stateMutability: "nonpayable";
|
|
1833
|
-
}, {
|
|
1834
|
-
readonly type: "function";
|
|
1835
|
-
readonly name: "usedIntents";
|
|
1836
|
-
readonly inputs: readonly [{
|
|
1837
|
-
readonly name: "";
|
|
1838
|
-
readonly type: "bytes32";
|
|
1839
|
-
readonly internalType: "bytes32";
|
|
1840
|
-
}];
|
|
1841
|
-
readonly outputs: readonly [{
|
|
1842
|
-
readonly name: "";
|
|
1843
|
-
readonly type: "bool";
|
|
1844
|
-
readonly internalType: "bool";
|
|
1845
|
-
}];
|
|
1846
|
-
readonly stateMutability: "view";
|
|
1847
|
-
}, {
|
|
1848
|
-
readonly type: "function";
|
|
1849
|
-
readonly name: "withdraw";
|
|
1850
|
-
readonly inputs: readonly [{
|
|
1851
|
-
readonly name: "token";
|
|
1852
|
-
readonly type: "address";
|
|
1853
|
-
readonly internalType: "address";
|
|
1854
|
-
}, {
|
|
1855
|
-
readonly name: "amount";
|
|
1856
|
-
readonly type: "uint256";
|
|
1857
|
-
readonly internalType: "uint256";
|
|
1858
|
-
}, {
|
|
1859
|
-
readonly name: "to";
|
|
1860
|
-
readonly type: "address";
|
|
1861
|
-
readonly internalType: "address";
|
|
1862
|
-
}];
|
|
1863
|
-
readonly outputs: readonly [];
|
|
1864
|
-
readonly stateMutability: "nonpayable";
|
|
1865
|
-
}, {
|
|
1866
|
-
readonly type: "event";
|
|
1867
|
-
readonly name: "BotAdded";
|
|
1868
|
-
readonly inputs: readonly [{
|
|
1869
|
-
readonly name: "bot";
|
|
1870
|
-
readonly type: "address";
|
|
1871
|
-
readonly indexed: true;
|
|
1872
|
-
readonly internalType: "address";
|
|
1873
|
-
}, {
|
|
1874
|
-
readonly name: "addedBy";
|
|
1875
|
-
readonly type: "address";
|
|
1876
|
-
readonly indexed: true;
|
|
1877
|
-
readonly internalType: "address";
|
|
1878
|
-
}];
|
|
1879
|
-
readonly anonymous: false;
|
|
1880
|
-
}, {
|
|
1881
|
-
readonly type: "event";
|
|
1882
|
-
readonly name: "BotConfigUpdated";
|
|
1883
|
-
readonly inputs: readonly [{
|
|
1884
|
-
readonly name: "bot";
|
|
1885
|
-
readonly type: "address";
|
|
1886
|
-
readonly indexed: true;
|
|
1887
|
-
readonly internalType: "address";
|
|
1888
|
-
}, {
|
|
1889
|
-
readonly name: "updatedBy";
|
|
1890
|
-
readonly type: "address";
|
|
1891
|
-
readonly indexed: true;
|
|
1892
|
-
readonly internalType: "address";
|
|
1893
|
-
}];
|
|
1894
|
-
readonly anonymous: false;
|
|
1895
|
-
}, {
|
|
1896
|
-
readonly type: "event";
|
|
1897
|
-
readonly name: "BotDestinationAdded";
|
|
1898
|
-
readonly inputs: readonly [{
|
|
1899
|
-
readonly name: "bot";
|
|
1900
|
-
readonly type: "address";
|
|
1901
|
-
readonly indexed: true;
|
|
1902
|
-
readonly internalType: "address";
|
|
1903
|
-
}, {
|
|
1904
|
-
readonly name: "destination";
|
|
1905
|
-
readonly type: "address";
|
|
1906
|
-
readonly indexed: true;
|
|
1907
|
-
readonly internalType: "address";
|
|
1908
|
-
}];
|
|
1909
|
-
readonly anonymous: false;
|
|
1910
|
-
}, {
|
|
1911
|
-
readonly type: "event";
|
|
1912
|
-
readonly name: "BotDestinationRemoved";
|
|
1913
|
-
readonly inputs: readonly [{
|
|
1914
|
-
readonly name: "bot";
|
|
1915
|
-
readonly type: "address";
|
|
1916
|
-
readonly indexed: true;
|
|
1917
|
-
readonly internalType: "address";
|
|
1918
|
-
}, {
|
|
1919
|
-
readonly name: "destination";
|
|
1920
|
-
readonly type: "address";
|
|
1921
|
-
readonly indexed: true;
|
|
1922
|
-
readonly internalType: "address";
|
|
1923
|
-
}];
|
|
1924
|
-
readonly anonymous: false;
|
|
1925
|
-
}, {
|
|
1926
|
-
readonly type: "event";
|
|
1927
|
-
readonly name: "BotRemoved";
|
|
1928
|
-
readonly inputs: readonly [{
|
|
1929
|
-
readonly name: "bot";
|
|
1930
|
-
readonly type: "address";
|
|
1931
|
-
readonly indexed: true;
|
|
1932
|
-
readonly internalType: "address";
|
|
1933
|
-
}, {
|
|
1934
|
-
readonly name: "removedBy";
|
|
1935
|
-
readonly type: "address";
|
|
1936
|
-
readonly indexed: true;
|
|
1937
|
-
readonly internalType: "address";
|
|
1938
|
-
}];
|
|
1939
|
-
readonly anonymous: false;
|
|
1940
|
-
}, {
|
|
1941
|
-
readonly type: "event";
|
|
1942
|
-
readonly name: "Deposited";
|
|
1943
|
-
readonly inputs: readonly [{
|
|
1944
|
-
readonly name: "from";
|
|
1945
|
-
readonly type: "address";
|
|
1946
|
-
readonly indexed: true;
|
|
1947
|
-
readonly internalType: "address";
|
|
1948
|
-
}, {
|
|
1949
|
-
readonly name: "token";
|
|
1950
|
-
readonly type: "address";
|
|
1951
|
-
readonly indexed: true;
|
|
1952
|
-
readonly internalType: "address";
|
|
1953
|
-
}, {
|
|
1954
|
-
readonly name: "amount";
|
|
1955
|
-
readonly type: "uint256";
|
|
1956
|
-
readonly indexed: false;
|
|
1957
|
-
readonly internalType: "uint256";
|
|
1958
|
-
}, {
|
|
1959
|
-
readonly name: "ref";
|
|
1960
|
-
readonly type: "bytes32";
|
|
1961
|
-
readonly indexed: false;
|
|
1962
|
-
readonly internalType: "bytes32";
|
|
1963
|
-
}];
|
|
1964
|
-
readonly anonymous: false;
|
|
1965
|
-
}, {
|
|
1966
|
-
readonly type: "event";
|
|
1967
|
-
readonly name: "EIP712DomainChanged";
|
|
1968
|
-
readonly inputs: readonly [];
|
|
1969
|
-
readonly anonymous: false;
|
|
1970
|
-
}, {
|
|
1971
|
-
readonly type: "event";
|
|
1972
|
-
readonly name: "GlobalBlacklistAdded";
|
|
1973
|
-
readonly inputs: readonly [{
|
|
1974
|
-
readonly name: "destination";
|
|
1975
|
-
readonly type: "address";
|
|
1976
|
-
readonly indexed: true;
|
|
1977
|
-
readonly internalType: "address";
|
|
1978
|
-
}];
|
|
1979
|
-
readonly anonymous: false;
|
|
1980
|
-
}, {
|
|
1981
|
-
readonly type: "event";
|
|
1982
|
-
readonly name: "GlobalBlacklistRemoved";
|
|
1983
|
-
readonly inputs: readonly [{
|
|
1984
|
-
readonly name: "destination";
|
|
1985
|
-
readonly type: "address";
|
|
1986
|
-
readonly indexed: true;
|
|
1987
|
-
readonly internalType: "address";
|
|
1988
|
-
}];
|
|
1989
|
-
readonly anonymous: false;
|
|
1990
|
-
}, {
|
|
1991
|
-
readonly type: "event";
|
|
1992
|
-
readonly name: "GlobalDestinationAdded";
|
|
1993
|
-
readonly inputs: readonly [{
|
|
1994
|
-
readonly name: "destination";
|
|
1995
|
-
readonly type: "address";
|
|
1996
|
-
readonly indexed: true;
|
|
1997
|
-
readonly internalType: "address";
|
|
1998
|
-
}];
|
|
1999
|
-
readonly anonymous: false;
|
|
2000
|
-
}, {
|
|
2001
|
-
readonly type: "event";
|
|
2002
|
-
readonly name: "GlobalDestinationRemoved";
|
|
2003
|
-
readonly inputs: readonly [{
|
|
2004
|
-
readonly name: "destination";
|
|
2005
|
-
readonly type: "address";
|
|
2006
|
-
readonly indexed: true;
|
|
2007
|
-
readonly internalType: "address";
|
|
2008
|
-
}];
|
|
2009
|
-
readonly anonymous: false;
|
|
2010
|
-
}, {
|
|
2011
|
-
readonly type: "event";
|
|
2012
|
-
readonly name: "OperatorCeilingsUpdated";
|
|
2013
|
-
readonly inputs: readonly [{
|
|
2014
|
-
readonly name: "ceilings";
|
|
2015
|
-
readonly type: "tuple";
|
|
2016
|
-
readonly indexed: false;
|
|
2017
|
-
readonly internalType: "struct AxonVault.OperatorCeilings";
|
|
2018
|
-
readonly components: readonly [{
|
|
2019
|
-
readonly name: "maxPerTxAmount";
|
|
2020
|
-
readonly type: "uint256";
|
|
2021
|
-
readonly internalType: "uint256";
|
|
2022
|
-
}, {
|
|
2023
|
-
readonly name: "maxBotDailyLimit";
|
|
2024
|
-
readonly type: "uint256";
|
|
2025
|
-
readonly internalType: "uint256";
|
|
2026
|
-
}, {
|
|
2027
|
-
readonly name: "maxOperatorBots";
|
|
2028
|
-
readonly type: "uint256";
|
|
2029
|
-
readonly internalType: "uint256";
|
|
2030
|
-
}, {
|
|
2031
|
-
readonly name: "vaultDailyAggregate";
|
|
2032
|
-
readonly type: "uint256";
|
|
2033
|
-
readonly internalType: "uint256";
|
|
2034
|
-
}, {
|
|
2035
|
-
readonly name: "minAiTriggerFloor";
|
|
2036
|
-
readonly type: "uint256";
|
|
2037
|
-
readonly internalType: "uint256";
|
|
2038
|
-
}];
|
|
2039
|
-
}];
|
|
2040
|
-
readonly anonymous: false;
|
|
2041
|
-
}, {
|
|
2042
|
-
readonly type: "event";
|
|
2043
|
-
readonly name: "OperatorSet";
|
|
2044
|
-
readonly inputs: readonly [{
|
|
2045
|
-
readonly name: "oldOperator";
|
|
2046
|
-
readonly type: "address";
|
|
2047
|
-
readonly indexed: true;
|
|
2048
|
-
readonly internalType: "address";
|
|
2049
|
-
}, {
|
|
2050
|
-
readonly name: "newOperator";
|
|
2051
|
-
readonly type: "address";
|
|
2052
|
-
readonly indexed: true;
|
|
2053
|
-
readonly internalType: "address";
|
|
2054
|
-
}];
|
|
2055
|
-
readonly anonymous: false;
|
|
2056
|
-
}, {
|
|
2057
|
-
readonly type: "event";
|
|
2058
|
-
readonly name: "OwnershipTransferStarted";
|
|
2059
|
-
readonly inputs: readonly [{
|
|
2060
|
-
readonly name: "previousOwner";
|
|
2061
|
-
readonly type: "address";
|
|
2062
|
-
readonly indexed: true;
|
|
2063
|
-
readonly internalType: "address";
|
|
2064
|
-
}, {
|
|
2065
|
-
readonly name: "newOwner";
|
|
2066
|
-
readonly type: "address";
|
|
2067
|
-
readonly indexed: true;
|
|
2068
|
-
readonly internalType: "address";
|
|
2069
|
-
}];
|
|
2070
|
-
readonly anonymous: false;
|
|
2071
|
-
}, {
|
|
2072
|
-
readonly type: "event";
|
|
2073
|
-
readonly name: "OwnershipTransferred";
|
|
2074
|
-
readonly inputs: readonly [{
|
|
2075
|
-
readonly name: "previousOwner";
|
|
2076
|
-
readonly type: "address";
|
|
2077
|
-
readonly indexed: true;
|
|
2078
|
-
readonly internalType: "address";
|
|
2079
|
-
}, {
|
|
2080
|
-
readonly name: "newOwner";
|
|
2081
|
-
readonly type: "address";
|
|
2082
|
-
readonly indexed: true;
|
|
2083
|
-
readonly internalType: "address";
|
|
2084
|
-
}];
|
|
2085
|
-
readonly anonymous: false;
|
|
2086
|
-
}, {
|
|
2087
|
-
readonly type: "event";
|
|
2088
|
-
readonly name: "Paused";
|
|
2089
|
-
readonly inputs: readonly [{
|
|
2090
|
-
readonly name: "account";
|
|
2091
|
-
readonly type: "address";
|
|
2092
|
-
readonly indexed: false;
|
|
2093
|
-
readonly internalType: "address";
|
|
2094
|
-
}];
|
|
2095
|
-
readonly anonymous: false;
|
|
2096
|
-
}, {
|
|
2097
|
-
readonly type: "event";
|
|
2098
|
-
readonly name: "PaymentExecuted";
|
|
2099
|
-
readonly inputs: readonly [{
|
|
2100
|
-
readonly name: "bot";
|
|
2101
|
-
readonly type: "address";
|
|
2102
|
-
readonly indexed: true;
|
|
2103
|
-
readonly internalType: "address";
|
|
2104
|
-
}, {
|
|
2105
|
-
readonly name: "to";
|
|
2106
|
-
readonly type: "address";
|
|
2107
|
-
readonly indexed: true;
|
|
2108
|
-
readonly internalType: "address";
|
|
2109
|
-
}, {
|
|
2110
|
-
readonly name: "token";
|
|
2111
|
-
readonly type: "address";
|
|
2112
|
-
readonly indexed: true;
|
|
2113
|
-
readonly internalType: "address";
|
|
2114
|
-
}, {
|
|
2115
|
-
readonly name: "amount";
|
|
2116
|
-
readonly type: "uint256";
|
|
2117
|
-
readonly indexed: false;
|
|
2118
|
-
readonly internalType: "uint256";
|
|
2119
|
-
}, {
|
|
2120
|
-
readonly name: "ref";
|
|
2121
|
-
readonly type: "bytes32";
|
|
2122
|
-
readonly indexed: false;
|
|
2123
|
-
readonly internalType: "bytes32";
|
|
2124
|
-
}];
|
|
2125
|
-
readonly anonymous: false;
|
|
2126
|
-
}, {
|
|
2127
|
-
readonly type: "event";
|
|
2128
|
-
readonly name: "ProtocolAdded";
|
|
2129
|
-
readonly inputs: readonly [{
|
|
2130
|
-
readonly name: "protocol";
|
|
2131
|
-
readonly type: "address";
|
|
2132
|
-
readonly indexed: true;
|
|
2133
|
-
readonly internalType: "address";
|
|
2134
|
-
}];
|
|
2135
|
-
readonly anonymous: false;
|
|
2136
|
-
}, {
|
|
2137
|
-
readonly type: "event";
|
|
2138
|
-
readonly name: "ProtocolExecuted";
|
|
2139
|
-
readonly inputs: readonly [{
|
|
2140
|
-
readonly name: "bot";
|
|
2141
|
-
readonly type: "address";
|
|
2142
|
-
readonly indexed: true;
|
|
2143
|
-
readonly internalType: "address";
|
|
2144
|
-
}, {
|
|
2145
|
-
readonly name: "protocol";
|
|
2146
|
-
readonly type: "address";
|
|
2147
|
-
readonly indexed: true;
|
|
2148
|
-
readonly internalType: "address";
|
|
2149
|
-
}, {
|
|
2150
|
-
readonly name: "token";
|
|
2151
|
-
readonly type: "address";
|
|
2152
|
-
readonly indexed: false;
|
|
2153
|
-
readonly internalType: "address";
|
|
2154
|
-
}, {
|
|
2155
|
-
readonly name: "amount";
|
|
2156
|
-
readonly type: "uint256";
|
|
2157
|
-
readonly indexed: false;
|
|
2158
|
-
readonly internalType: "uint256";
|
|
2159
|
-
}, {
|
|
2160
|
-
readonly name: "ref";
|
|
2161
|
-
readonly type: "bytes32";
|
|
2162
|
-
readonly indexed: false;
|
|
2163
|
-
readonly internalType: "bytes32";
|
|
2164
|
-
}];
|
|
2165
|
-
readonly anonymous: false;
|
|
2166
|
-
}, {
|
|
2167
|
-
readonly type: "event";
|
|
2168
|
-
readonly name: "ProtocolRemoved";
|
|
2169
|
-
readonly inputs: readonly [{
|
|
2170
|
-
readonly name: "protocol";
|
|
2171
|
-
readonly type: "address";
|
|
2172
|
-
readonly indexed: true;
|
|
2173
|
-
readonly internalType: "address";
|
|
2174
|
-
}];
|
|
2175
|
-
readonly anonymous: false;
|
|
2176
|
-
}, {
|
|
2177
|
-
readonly type: "event";
|
|
2178
|
-
readonly name: "RebalanceTokenAdded";
|
|
2179
|
-
readonly inputs: readonly [{
|
|
2180
|
-
readonly name: "token";
|
|
2181
|
-
readonly type: "address";
|
|
2182
|
-
readonly indexed: true;
|
|
2183
|
-
readonly internalType: "address";
|
|
2184
|
-
}];
|
|
2185
|
-
readonly anonymous: false;
|
|
2186
|
-
}, {
|
|
2187
|
-
readonly type: "event";
|
|
2188
|
-
readonly name: "RebalanceTokenRemoved";
|
|
2189
|
-
readonly inputs: readonly [{
|
|
2190
|
-
readonly name: "token";
|
|
2191
|
-
readonly type: "address";
|
|
2192
|
-
readonly indexed: true;
|
|
2193
|
-
readonly internalType: "address";
|
|
2194
|
-
}];
|
|
2195
|
-
readonly anonymous: false;
|
|
2196
|
-
}, {
|
|
2197
|
-
readonly type: "event";
|
|
2198
|
-
readonly name: "SwapExecuted";
|
|
2199
|
-
readonly inputs: readonly [{
|
|
2200
|
-
readonly name: "bot";
|
|
2201
|
-
readonly type: "address";
|
|
2202
|
-
readonly indexed: true;
|
|
2203
|
-
readonly internalType: "address";
|
|
2204
|
-
}, {
|
|
2205
|
-
readonly name: "fromToken";
|
|
2206
|
-
readonly type: "address";
|
|
2207
|
-
readonly indexed: false;
|
|
2208
|
-
readonly internalType: "address";
|
|
2209
|
-
}, {
|
|
2210
|
-
readonly name: "toToken";
|
|
2211
|
-
readonly type: "address";
|
|
2212
|
-
readonly indexed: false;
|
|
2213
|
-
readonly internalType: "address";
|
|
2214
|
-
}, {
|
|
2215
|
-
readonly name: "fromAmount";
|
|
2216
|
-
readonly type: "uint256";
|
|
2217
|
-
readonly indexed: false;
|
|
2218
|
-
readonly internalType: "uint256";
|
|
2219
|
-
}, {
|
|
2220
|
-
readonly name: "toAmount";
|
|
2221
|
-
readonly type: "uint256";
|
|
2222
|
-
readonly indexed: false;
|
|
2223
|
-
readonly internalType: "uint256";
|
|
2224
|
-
}, {
|
|
2225
|
-
readonly name: "ref";
|
|
2226
|
-
readonly type: "bytes32";
|
|
2227
|
-
readonly indexed: false;
|
|
2228
|
-
readonly internalType: "bytes32";
|
|
2229
|
-
}];
|
|
2230
|
-
readonly anonymous: false;
|
|
2231
|
-
}, {
|
|
2232
|
-
readonly type: "event";
|
|
2233
|
-
readonly name: "SwapPaymentExecuted";
|
|
2234
|
-
readonly inputs: readonly [{
|
|
2235
|
-
readonly name: "bot";
|
|
2236
|
-
readonly type: "address";
|
|
2237
|
-
readonly indexed: true;
|
|
2238
|
-
readonly internalType: "address";
|
|
2239
|
-
}, {
|
|
2240
|
-
readonly name: "to";
|
|
2241
|
-
readonly type: "address";
|
|
2242
|
-
readonly indexed: true;
|
|
2243
|
-
readonly internalType: "address";
|
|
2244
|
-
}, {
|
|
2245
|
-
readonly name: "fromToken";
|
|
2246
|
-
readonly type: "address";
|
|
2247
|
-
readonly indexed: false;
|
|
2248
|
-
readonly internalType: "address";
|
|
2249
|
-
}, {
|
|
2250
|
-
readonly name: "toToken";
|
|
2251
|
-
readonly type: "address";
|
|
2252
|
-
readonly indexed: false;
|
|
2253
|
-
readonly internalType: "address";
|
|
2254
|
-
}, {
|
|
2255
|
-
readonly name: "fromAmount";
|
|
2256
|
-
readonly type: "uint256";
|
|
2257
|
-
readonly indexed: false;
|
|
2258
|
-
readonly internalType: "uint256";
|
|
2259
|
-
}, {
|
|
2260
|
-
readonly name: "toAmount";
|
|
2261
|
-
readonly type: "uint256";
|
|
2262
|
-
readonly indexed: false;
|
|
2263
|
-
readonly internalType: "uint256";
|
|
2264
|
-
}, {
|
|
2265
|
-
readonly name: "ref";
|
|
2266
|
-
readonly type: "bytes32";
|
|
2267
|
-
readonly indexed: false;
|
|
2268
|
-
readonly internalType: "bytes32";
|
|
2269
|
-
}];
|
|
2270
|
-
readonly anonymous: false;
|
|
2271
|
-
}, {
|
|
2272
|
-
readonly type: "event";
|
|
2273
|
-
readonly name: "Unpaused";
|
|
2274
|
-
readonly inputs: readonly [{
|
|
2275
|
-
readonly name: "account";
|
|
2276
|
-
readonly type: "address";
|
|
2277
|
-
readonly indexed: false;
|
|
2278
|
-
readonly internalType: "address";
|
|
2279
|
-
}];
|
|
2280
|
-
readonly anonymous: false;
|
|
2281
|
-
}, {
|
|
2282
|
-
readonly type: "event";
|
|
2283
|
-
readonly name: "Withdrawn";
|
|
2284
|
-
readonly inputs: readonly [{
|
|
2285
|
-
readonly name: "token";
|
|
2286
|
-
readonly type: "address";
|
|
2287
|
-
readonly indexed: true;
|
|
2288
|
-
readonly internalType: "address";
|
|
2289
|
-
}, {
|
|
2290
|
-
readonly name: "amount";
|
|
2291
|
-
readonly type: "uint256";
|
|
2292
|
-
readonly indexed: false;
|
|
2293
|
-
readonly internalType: "uint256";
|
|
2294
|
-
}, {
|
|
2295
|
-
readonly name: "to";
|
|
2296
|
-
readonly type: "address";
|
|
2297
|
-
readonly indexed: true;
|
|
2298
|
-
readonly internalType: "address";
|
|
2299
|
-
}];
|
|
2300
|
-
readonly anonymous: false;
|
|
2301
|
-
}, {
|
|
2302
|
-
readonly type: "error";
|
|
2303
|
-
readonly name: "AlreadyApprovedProtocol";
|
|
2304
|
-
readonly inputs: readonly [];
|
|
2305
|
-
}, {
|
|
2306
|
-
readonly type: "error";
|
|
2307
|
-
readonly name: "AmountMismatch";
|
|
2308
|
-
readonly inputs: readonly [];
|
|
2309
|
-
}, {
|
|
2310
|
-
readonly type: "error";
|
|
2311
|
-
readonly name: "BotAlreadyExists";
|
|
2312
|
-
readonly inputs: readonly [];
|
|
2313
|
-
}, {
|
|
2314
|
-
readonly type: "error";
|
|
2315
|
-
readonly name: "BotDoesNotExist";
|
|
2316
|
-
readonly inputs: readonly [];
|
|
2317
|
-
}, {
|
|
2318
|
-
readonly type: "error";
|
|
2319
|
-
readonly name: "BotNotActive";
|
|
2320
|
-
readonly inputs: readonly [];
|
|
2321
|
-
}, {
|
|
2322
|
-
readonly type: "error";
|
|
2323
|
-
readonly name: "CalldataHashMismatch";
|
|
2324
|
-
readonly inputs: readonly [];
|
|
2325
|
-
}, {
|
|
2326
|
-
readonly type: "error";
|
|
2327
|
-
readonly name: "DeadlineExpired";
|
|
2328
|
-
readonly inputs: readonly [];
|
|
2329
|
-
}, {
|
|
2330
|
-
readonly type: "error";
|
|
2331
|
-
readonly name: "DestinationBlacklisted";
|
|
2332
|
-
readonly inputs: readonly [];
|
|
2333
|
-
}, {
|
|
2334
|
-
readonly type: "error";
|
|
2335
|
-
readonly name: "DestinationNotWhitelisted";
|
|
2336
|
-
readonly inputs: readonly [];
|
|
2337
|
-
}, {
|
|
2338
|
-
readonly type: "error";
|
|
2339
|
-
readonly name: "ECDSAInvalidSignature";
|
|
2340
|
-
readonly inputs: readonly [];
|
|
2341
|
-
}, {
|
|
2342
|
-
readonly type: "error";
|
|
2343
|
-
readonly name: "ECDSAInvalidSignatureLength";
|
|
2344
|
-
readonly inputs: readonly [{
|
|
2345
|
-
readonly name: "length";
|
|
2346
|
-
readonly type: "uint256";
|
|
2347
|
-
readonly internalType: "uint256";
|
|
2348
|
-
}];
|
|
2349
|
-
}, {
|
|
2350
|
-
readonly type: "error";
|
|
2351
|
-
readonly name: "ECDSAInvalidSignatureS";
|
|
2352
|
-
readonly inputs: readonly [{
|
|
2353
|
-
readonly name: "s";
|
|
2354
|
-
readonly type: "bytes32";
|
|
2355
|
-
readonly internalType: "bytes32";
|
|
2356
|
-
}];
|
|
2357
|
-
}, {
|
|
2358
|
-
readonly type: "error";
|
|
2359
|
-
readonly name: "EnforcedPause";
|
|
2360
|
-
readonly inputs: readonly [];
|
|
2361
|
-
}, {
|
|
2362
|
-
readonly type: "error";
|
|
2363
|
-
readonly name: "ExceedsOperatorCeiling";
|
|
2364
|
-
readonly inputs: readonly [];
|
|
2365
|
-
}, {
|
|
2366
|
-
readonly type: "error";
|
|
2367
|
-
readonly name: "ExpectedPause";
|
|
2368
|
-
readonly inputs: readonly [];
|
|
2369
|
-
}, {
|
|
2370
|
-
readonly type: "error";
|
|
2371
|
-
readonly name: "InsufficientBalance";
|
|
2372
|
-
readonly inputs: readonly [];
|
|
2373
|
-
}, {
|
|
2374
|
-
readonly type: "error";
|
|
2375
|
-
readonly name: "IntentAlreadyUsed";
|
|
2376
|
-
readonly inputs: readonly [];
|
|
2377
|
-
}, {
|
|
2378
|
-
readonly type: "error";
|
|
2379
|
-
readonly name: "InvalidShortString";
|
|
2380
|
-
readonly inputs: readonly [];
|
|
2381
|
-
}, {
|
|
2382
|
-
readonly type: "error";
|
|
2383
|
-
readonly name: "InvalidSignature";
|
|
2384
|
-
readonly inputs: readonly [];
|
|
2385
|
-
}, {
|
|
2386
|
-
readonly type: "error";
|
|
2387
|
-
readonly name: "MaxPerTxExceeded";
|
|
2388
|
-
readonly inputs: readonly [];
|
|
2389
|
-
}, {
|
|
2390
|
-
readonly type: "error";
|
|
2391
|
-
readonly name: "MaxRebalanceAmountExceeded";
|
|
2392
|
-
readonly inputs: readonly [];
|
|
2393
|
-
}, {
|
|
2394
|
-
readonly type: "error";
|
|
2395
|
-
readonly name: "NativeTransferFailed";
|
|
2396
|
-
readonly inputs: readonly [];
|
|
2397
|
-
}, {
|
|
2398
|
-
readonly type: "error";
|
|
2399
|
-
readonly name: "NotAuthorized";
|
|
2400
|
-
readonly inputs: readonly [];
|
|
2401
|
-
}, {
|
|
2402
|
-
readonly type: "error";
|
|
2403
|
-
readonly name: "NotAuthorizedRelayer";
|
|
2404
|
-
readonly inputs: readonly [];
|
|
2405
|
-
}, {
|
|
2406
|
-
readonly type: "error";
|
|
2407
|
-
readonly name: "OperatorBotLimitReached";
|
|
2408
|
-
readonly inputs: readonly [];
|
|
2409
|
-
}, {
|
|
2410
|
-
readonly type: "error";
|
|
2411
|
-
readonly name: "OperatorCannotBeOwner";
|
|
2412
|
-
readonly inputs: readonly [];
|
|
2413
|
-
}, {
|
|
2414
|
-
readonly type: "error";
|
|
2415
|
-
readonly name: "OracleNotConfigured";
|
|
2416
|
-
readonly inputs: readonly [];
|
|
2417
|
-
}, {
|
|
2418
|
-
readonly type: "error";
|
|
2419
|
-
readonly name: "OracleUnavailable";
|
|
2420
|
-
readonly inputs: readonly [];
|
|
2421
|
-
}, {
|
|
2422
|
-
readonly type: "error";
|
|
2423
|
-
readonly name: "OwnableInvalidOwner";
|
|
2424
|
-
readonly inputs: readonly [{
|
|
2425
|
-
readonly name: "owner";
|
|
2426
|
-
readonly type: "address";
|
|
2427
|
-
readonly internalType: "address";
|
|
2428
|
-
}];
|
|
2429
|
-
}, {
|
|
2430
|
-
readonly type: "error";
|
|
2431
|
-
readonly name: "OwnableUnauthorizedAccount";
|
|
2432
|
-
readonly inputs: readonly [{
|
|
2433
|
-
readonly name: "account";
|
|
2434
|
-
readonly type: "address";
|
|
2435
|
-
readonly internalType: "address";
|
|
2436
|
-
}];
|
|
2437
|
-
}, {
|
|
2438
|
-
readonly type: "error";
|
|
2439
|
-
readonly name: "OwnerCannotBeBot";
|
|
2440
|
-
readonly inputs: readonly [];
|
|
2441
|
-
}, {
|
|
2442
|
-
readonly type: "error";
|
|
2443
|
-
readonly name: "PaymentToZeroAddress";
|
|
2444
|
-
readonly inputs: readonly [];
|
|
2445
|
-
}, {
|
|
2446
|
-
readonly type: "error";
|
|
2447
|
-
readonly name: "ProtocolCallFailed";
|
|
2448
|
-
readonly inputs: readonly [];
|
|
2449
|
-
}, {
|
|
2450
|
-
readonly type: "error";
|
|
2451
|
-
readonly name: "ProtocolNotApproved";
|
|
2452
|
-
readonly inputs: readonly [];
|
|
2453
|
-
}, {
|
|
2454
|
-
readonly type: "error";
|
|
2455
|
-
readonly name: "ProtocolNotInList";
|
|
2456
|
-
readonly inputs: readonly [];
|
|
2457
|
-
}, {
|
|
2458
|
-
readonly type: "error";
|
|
2459
|
-
readonly name: "RebalanceTokenNotAllowed";
|
|
2460
|
-
readonly inputs: readonly [];
|
|
2461
|
-
}, {
|
|
2462
|
-
readonly type: "error";
|
|
2463
|
-
readonly name: "ReentrancyGuardReentrantCall";
|
|
2464
|
-
readonly inputs: readonly [];
|
|
2465
|
-
}, {
|
|
2466
|
-
readonly type: "error";
|
|
2467
|
-
readonly name: "RouterNotApproved";
|
|
2468
|
-
readonly inputs: readonly [];
|
|
2469
|
-
}, {
|
|
2470
|
-
readonly type: "error";
|
|
2471
|
-
readonly name: "SafeERC20FailedOperation";
|
|
2472
|
-
readonly inputs: readonly [{
|
|
2473
|
-
readonly name: "token";
|
|
2474
|
-
readonly type: "address";
|
|
2475
|
-
readonly internalType: "address";
|
|
2476
|
-
}];
|
|
2477
|
-
}, {
|
|
2478
|
-
readonly type: "error";
|
|
2479
|
-
readonly name: "SameTokenSwap";
|
|
2480
|
-
readonly inputs: readonly [];
|
|
2481
|
-
}, {
|
|
2482
|
-
readonly type: "error";
|
|
2483
|
-
readonly name: "SelfPayment";
|
|
2484
|
-
readonly inputs: readonly [];
|
|
2485
|
-
}, {
|
|
2486
|
-
readonly type: "error";
|
|
2487
|
-
readonly name: "StringTooLong";
|
|
2488
|
-
readonly inputs: readonly [{
|
|
2489
|
-
readonly name: "str";
|
|
2490
|
-
readonly type: "string";
|
|
2491
|
-
readonly internalType: "string";
|
|
2492
|
-
}];
|
|
2493
|
-
}, {
|
|
2494
|
-
readonly type: "error";
|
|
2495
|
-
readonly name: "SwapFailed";
|
|
2496
|
-
readonly inputs: readonly [];
|
|
2497
|
-
}, {
|
|
2498
|
-
readonly type: "error";
|
|
2499
|
-
readonly name: "SwapOutputInsufficient";
|
|
2500
|
-
readonly inputs: readonly [];
|
|
2501
|
-
}, {
|
|
2502
|
-
readonly type: "error";
|
|
2503
|
-
readonly name: "TooManySpendingLimits";
|
|
2504
|
-
readonly inputs: readonly [];
|
|
2505
|
-
}, {
|
|
2506
|
-
readonly type: "error";
|
|
2507
|
-
readonly name: "UnexpectedETH";
|
|
2508
|
-
readonly inputs: readonly [];
|
|
2509
|
-
}, {
|
|
2510
|
-
readonly type: "error";
|
|
2511
|
-
readonly name: "ZeroAddress";
|
|
2512
|
-
readonly inputs: readonly [];
|
|
2513
|
-
}, {
|
|
2514
|
-
readonly type: "error";
|
|
2515
|
-
readonly name: "ZeroAmount";
|
|
2516
|
-
readonly inputs: readonly [];
|
|
2517
|
-
}];
|
|
2518
|
-
|
|
2519
|
-
declare const AxonVaultFactoryAbi: readonly [{
|
|
2520
|
-
readonly type: "constructor";
|
|
2521
|
-
readonly inputs: readonly [{
|
|
2522
|
-
readonly name: "_axonRegistry";
|
|
2523
|
-
readonly type: "address";
|
|
2524
|
-
readonly internalType: "address";
|
|
2525
|
-
}, {
|
|
2526
|
-
readonly name: "factoryOwner";
|
|
2527
|
-
readonly type: "address";
|
|
2528
|
-
readonly internalType: "address";
|
|
2529
|
-
}];
|
|
2530
|
-
readonly stateMutability: "nonpayable";
|
|
2531
|
-
}, {
|
|
2532
|
-
readonly type: "function";
|
|
2533
|
-
readonly name: "acceptOwnership";
|
|
2534
|
-
readonly inputs: readonly [];
|
|
2535
|
-
readonly outputs: readonly [];
|
|
2536
|
-
readonly stateMutability: "nonpayable";
|
|
2537
|
-
}, {
|
|
2538
|
-
readonly type: "function";
|
|
2539
|
-
readonly name: "allVaults";
|
|
2540
|
-
readonly inputs: readonly [{
|
|
2541
|
-
readonly name: "";
|
|
2542
|
-
readonly type: "uint256";
|
|
2543
|
-
readonly internalType: "uint256";
|
|
2544
|
-
}];
|
|
2545
|
-
readonly outputs: readonly [{
|
|
2546
|
-
readonly name: "";
|
|
2547
|
-
readonly type: "address";
|
|
2548
|
-
readonly internalType: "address";
|
|
2549
|
-
}];
|
|
2550
|
-
readonly stateMutability: "view";
|
|
2551
|
-
}, {
|
|
2552
|
-
readonly type: "function";
|
|
2553
|
-
readonly name: "axonRegistry";
|
|
2554
|
-
readonly inputs: readonly [];
|
|
2555
|
-
readonly outputs: readonly [{
|
|
2556
|
-
readonly name: "";
|
|
2557
|
-
readonly type: "address";
|
|
2558
|
-
readonly internalType: "address";
|
|
2559
|
-
}];
|
|
2560
|
-
readonly stateMutability: "view";
|
|
2561
|
-
}, {
|
|
2562
|
-
readonly type: "function";
|
|
2563
|
-
readonly name: "deployVault";
|
|
2564
|
-
readonly inputs: readonly [];
|
|
2565
|
-
readonly outputs: readonly [{
|
|
2566
|
-
readonly name: "vault";
|
|
2567
|
-
readonly type: "address";
|
|
2568
|
-
readonly internalType: "address";
|
|
2569
|
-
}];
|
|
2570
|
-
readonly stateMutability: "nonpayable";
|
|
2571
|
-
}, {
|
|
2572
|
-
readonly type: "function";
|
|
2573
|
-
readonly name: "owner";
|
|
2574
|
-
readonly inputs: readonly [];
|
|
2575
|
-
readonly outputs: readonly [{
|
|
2576
|
-
readonly name: "";
|
|
2577
|
-
readonly type: "address";
|
|
2578
|
-
readonly internalType: "address";
|
|
2579
|
-
}];
|
|
2580
|
-
readonly stateMutability: "view";
|
|
2581
|
-
}, {
|
|
2582
|
-
readonly type: "function";
|
|
2583
|
-
readonly name: "ownerVaultCount";
|
|
2584
|
-
readonly inputs: readonly [{
|
|
2585
|
-
readonly name: "owner";
|
|
2586
|
-
readonly type: "address";
|
|
2587
|
-
readonly internalType: "address";
|
|
2588
|
-
}];
|
|
2589
|
-
readonly outputs: readonly [{
|
|
2590
|
-
readonly name: "";
|
|
2591
|
-
readonly type: "uint256";
|
|
2592
|
-
readonly internalType: "uint256";
|
|
2593
|
-
}];
|
|
2594
|
-
readonly stateMutability: "view";
|
|
2595
|
-
}, {
|
|
2596
|
-
readonly type: "function";
|
|
2597
|
-
readonly name: "ownerVaults";
|
|
2598
|
-
readonly inputs: readonly [{
|
|
2599
|
-
readonly name: "";
|
|
2600
|
-
readonly type: "address";
|
|
2601
|
-
readonly internalType: "address";
|
|
2602
|
-
}, {
|
|
2603
|
-
readonly name: "";
|
|
2604
|
-
readonly type: "uint256";
|
|
2605
|
-
readonly internalType: "uint256";
|
|
2606
|
-
}];
|
|
2607
|
-
readonly outputs: readonly [{
|
|
2608
|
-
readonly name: "";
|
|
2609
|
-
readonly type: "address";
|
|
2610
|
-
readonly internalType: "address";
|
|
2611
|
-
}];
|
|
2612
|
-
readonly stateMutability: "view";
|
|
2613
|
-
}, {
|
|
2614
|
-
readonly type: "function";
|
|
2615
|
-
readonly name: "pendingOwner";
|
|
2616
|
-
readonly inputs: readonly [];
|
|
2617
|
-
readonly outputs: readonly [{
|
|
2618
|
-
readonly name: "";
|
|
2619
|
-
readonly type: "address";
|
|
2620
|
-
readonly internalType: "address";
|
|
2621
|
-
}];
|
|
2622
|
-
readonly stateMutability: "view";
|
|
2623
|
-
}, {
|
|
2624
|
-
readonly type: "function";
|
|
2625
|
-
readonly name: "renounceOwnership";
|
|
2626
|
-
readonly inputs: readonly [];
|
|
2627
|
-
readonly outputs: readonly [];
|
|
2628
|
-
readonly stateMutability: "nonpayable";
|
|
2629
|
-
}, {
|
|
2630
|
-
readonly type: "function";
|
|
2631
|
-
readonly name: "transferOwnership";
|
|
2632
|
-
readonly inputs: readonly [{
|
|
2633
|
-
readonly name: "newOwner";
|
|
2634
|
-
readonly type: "address";
|
|
2635
|
-
readonly internalType: "address";
|
|
2636
|
-
}];
|
|
2637
|
-
readonly outputs: readonly [];
|
|
2638
|
-
readonly stateMutability: "nonpayable";
|
|
2639
|
-
}, {
|
|
2640
|
-
readonly type: "function";
|
|
2641
|
-
readonly name: "vaultCount";
|
|
2642
|
-
readonly inputs: readonly [];
|
|
2643
|
-
readonly outputs: readonly [{
|
|
2644
|
-
readonly name: "";
|
|
2645
|
-
readonly type: "uint256";
|
|
2646
|
-
readonly internalType: "uint256";
|
|
2647
|
-
}];
|
|
2648
|
-
readonly stateMutability: "view";
|
|
2649
|
-
}, {
|
|
2650
|
-
readonly type: "event";
|
|
2651
|
-
readonly name: "OwnershipTransferStarted";
|
|
2652
|
-
readonly inputs: readonly [{
|
|
2653
|
-
readonly name: "previousOwner";
|
|
2654
|
-
readonly type: "address";
|
|
2655
|
-
readonly indexed: true;
|
|
2656
|
-
readonly internalType: "address";
|
|
2657
|
-
}, {
|
|
2658
|
-
readonly name: "newOwner";
|
|
2659
|
-
readonly type: "address";
|
|
2660
|
-
readonly indexed: true;
|
|
2661
|
-
readonly internalType: "address";
|
|
2662
|
-
}];
|
|
2663
|
-
readonly anonymous: false;
|
|
2664
|
-
}, {
|
|
2665
|
-
readonly type: "event";
|
|
2666
|
-
readonly name: "OwnershipTransferred";
|
|
2667
|
-
readonly inputs: readonly [{
|
|
2668
|
-
readonly name: "previousOwner";
|
|
2669
|
-
readonly type: "address";
|
|
2670
|
-
readonly indexed: true;
|
|
2671
|
-
readonly internalType: "address";
|
|
2672
|
-
}, {
|
|
2673
|
-
readonly name: "newOwner";
|
|
2674
|
-
readonly type: "address";
|
|
2675
|
-
readonly indexed: true;
|
|
2676
|
-
readonly internalType: "address";
|
|
2677
|
-
}];
|
|
2678
|
-
readonly anonymous: false;
|
|
2679
|
-
}, {
|
|
2680
|
-
readonly type: "event";
|
|
2681
|
-
readonly name: "VaultDeployed";
|
|
2682
|
-
readonly inputs: readonly [{
|
|
2683
|
-
readonly name: "owner";
|
|
2684
|
-
readonly type: "address";
|
|
2685
|
-
readonly indexed: true;
|
|
2686
|
-
readonly internalType: "address";
|
|
2687
|
-
}, {
|
|
2688
|
-
readonly name: "vault";
|
|
2689
|
-
readonly type: "address";
|
|
2690
|
-
readonly indexed: true;
|
|
2691
|
-
readonly internalType: "address";
|
|
2692
|
-
}, {
|
|
2693
|
-
readonly name: "version";
|
|
2694
|
-
readonly type: "uint16";
|
|
2695
|
-
readonly indexed: false;
|
|
2696
|
-
readonly internalType: "uint16";
|
|
2697
|
-
}, {
|
|
2698
|
-
readonly name: "axonRegistry";
|
|
2699
|
-
readonly type: "address";
|
|
2700
|
-
readonly indexed: false;
|
|
2701
|
-
readonly internalType: "address";
|
|
2702
|
-
}];
|
|
2703
|
-
readonly anonymous: false;
|
|
2704
|
-
}, {
|
|
2705
|
-
readonly type: "error";
|
|
2706
|
-
readonly name: "OwnableInvalidOwner";
|
|
2707
|
-
readonly inputs: readonly [{
|
|
2708
|
-
readonly name: "owner";
|
|
2709
|
-
readonly type: "address";
|
|
2710
|
-
readonly internalType: "address";
|
|
2711
|
-
}];
|
|
2712
|
-
}, {
|
|
2713
|
-
readonly type: "error";
|
|
2714
|
-
readonly name: "OwnableUnauthorizedAccount";
|
|
2715
|
-
readonly inputs: readonly [{
|
|
2716
|
-
readonly name: "account";
|
|
2717
|
-
readonly type: "address";
|
|
2718
|
-
readonly internalType: "address";
|
|
2719
|
-
}];
|
|
2720
|
-
}, {
|
|
2721
|
-
readonly type: "error";
|
|
2722
|
-
readonly name: "ZeroAddress";
|
|
2723
|
-
readonly inputs: readonly [];
|
|
2724
|
-
}];
|
|
2725
|
-
|
|
2726
|
-
declare const AxonRegistryAbi: readonly [{
|
|
2727
|
-
readonly type: "constructor";
|
|
2728
|
-
readonly inputs: readonly [{
|
|
2729
|
-
readonly name: "initialOwner";
|
|
2730
|
-
readonly type: "address";
|
|
2731
|
-
readonly internalType: "address";
|
|
2732
|
-
}];
|
|
2733
|
-
readonly stateMutability: "nonpayable";
|
|
2734
|
-
}, {
|
|
2735
|
-
readonly type: "function";
|
|
2736
|
-
readonly name: "acceptOwnership";
|
|
2737
|
-
readonly inputs: readonly [];
|
|
2738
|
-
readonly outputs: readonly [];
|
|
2739
|
-
readonly stateMutability: "nonpayable";
|
|
2740
|
-
}, {
|
|
2741
|
-
readonly type: "function";
|
|
2742
|
-
readonly name: "addRelayer";
|
|
2743
|
-
readonly inputs: readonly [{
|
|
2744
|
-
readonly name: "relayer";
|
|
2745
|
-
readonly type: "address";
|
|
2746
|
-
readonly internalType: "address";
|
|
2747
|
-
}];
|
|
2748
|
-
readonly outputs: readonly [];
|
|
2749
|
-
readonly stateMutability: "nonpayable";
|
|
2750
|
-
}, {
|
|
2751
|
-
readonly type: "function";
|
|
2752
|
-
readonly name: "addSwapRouter";
|
|
2753
|
-
readonly inputs: readonly [{
|
|
2754
|
-
readonly name: "router";
|
|
2755
|
-
readonly type: "address";
|
|
2756
|
-
readonly internalType: "address";
|
|
2757
|
-
}];
|
|
2758
|
-
readonly outputs: readonly [];
|
|
2759
|
-
readonly stateMutability: "nonpayable";
|
|
2760
|
-
}, {
|
|
2761
|
-
readonly type: "function";
|
|
2762
|
-
readonly name: "isApprovedSwapRouter";
|
|
2763
|
-
readonly inputs: readonly [{
|
|
2764
|
-
readonly name: "router";
|
|
2765
|
-
readonly type: "address";
|
|
2766
|
-
readonly internalType: "address";
|
|
2767
|
-
}];
|
|
2768
|
-
readonly outputs: readonly [{
|
|
2769
|
-
readonly name: "";
|
|
2770
|
-
readonly type: "bool";
|
|
2771
|
-
readonly internalType: "bool";
|
|
2772
|
-
}];
|
|
2773
|
-
readonly stateMutability: "view";
|
|
2774
|
-
}, {
|
|
2775
|
-
readonly type: "function";
|
|
2776
|
-
readonly name: "isAuthorized";
|
|
2777
|
-
readonly inputs: readonly [{
|
|
2778
|
-
readonly name: "relayer";
|
|
2779
|
-
readonly type: "address";
|
|
2780
|
-
readonly internalType: "address";
|
|
2781
|
-
}];
|
|
2782
|
-
readonly outputs: readonly [{
|
|
2783
|
-
readonly name: "";
|
|
2784
|
-
readonly type: "bool";
|
|
2785
|
-
readonly internalType: "bool";
|
|
2786
|
-
}];
|
|
2787
|
-
readonly stateMutability: "view";
|
|
2788
|
-
}, {
|
|
2789
|
-
readonly type: "function";
|
|
2790
|
-
readonly name: "owner";
|
|
2791
|
-
readonly inputs: readonly [];
|
|
2792
|
-
readonly outputs: readonly [{
|
|
2793
|
-
readonly name: "";
|
|
2794
|
-
readonly type: "address";
|
|
2795
|
-
readonly internalType: "address";
|
|
2796
|
-
}];
|
|
2797
|
-
readonly stateMutability: "view";
|
|
2798
|
-
}, {
|
|
2799
|
-
readonly type: "function";
|
|
2800
|
-
readonly name: "pendingOwner";
|
|
2801
|
-
readonly inputs: readonly [];
|
|
2802
|
-
readonly outputs: readonly [{
|
|
2803
|
-
readonly name: "";
|
|
2804
|
-
readonly type: "address";
|
|
2805
|
-
readonly internalType: "address";
|
|
2806
|
-
}];
|
|
2807
|
-
readonly stateMutability: "view";
|
|
2808
|
-
}, {
|
|
2809
|
-
readonly type: "function";
|
|
2810
|
-
readonly name: "removeRelayer";
|
|
2811
|
-
readonly inputs: readonly [{
|
|
2812
|
-
readonly name: "relayer";
|
|
2813
|
-
readonly type: "address";
|
|
2814
|
-
readonly internalType: "address";
|
|
2815
|
-
}];
|
|
2816
|
-
readonly outputs: readonly [];
|
|
2817
|
-
readonly stateMutability: "nonpayable";
|
|
2818
|
-
}, {
|
|
2819
|
-
readonly type: "function";
|
|
2820
|
-
readonly name: "removeSwapRouter";
|
|
2821
|
-
readonly inputs: readonly [{
|
|
2822
|
-
readonly name: "router";
|
|
2823
|
-
readonly type: "address";
|
|
2824
|
-
readonly internalType: "address";
|
|
2825
|
-
}];
|
|
2826
|
-
readonly outputs: readonly [];
|
|
2827
|
-
readonly stateMutability: "nonpayable";
|
|
2828
|
-
}, {
|
|
2829
|
-
readonly type: "function";
|
|
2830
|
-
readonly name: "renounceOwnership";
|
|
2831
|
-
readonly inputs: readonly [];
|
|
2832
|
-
readonly outputs: readonly [];
|
|
2833
|
-
readonly stateMutability: "nonpayable";
|
|
2834
|
-
}, {
|
|
2835
|
-
readonly type: "function";
|
|
2836
|
-
readonly name: "setOracleConfig";
|
|
2837
|
-
readonly inputs: readonly [{
|
|
2838
|
-
readonly name: "uniV3Factory";
|
|
2839
|
-
readonly type: "address";
|
|
2840
|
-
readonly internalType: "address";
|
|
2841
|
-
}, {
|
|
2842
|
-
readonly name: "usdc";
|
|
2843
|
-
readonly type: "address";
|
|
2844
|
-
readonly internalType: "address";
|
|
2845
|
-
}, {
|
|
2846
|
-
readonly name: "weth";
|
|
2847
|
-
readonly type: "address";
|
|
2848
|
-
readonly internalType: "address";
|
|
2849
|
-
}];
|
|
2850
|
-
readonly outputs: readonly [];
|
|
2851
|
-
readonly stateMutability: "nonpayable";
|
|
2852
|
-
}, {
|
|
2853
|
-
readonly type: "function";
|
|
2854
|
-
readonly name: "transferOwnership";
|
|
2855
|
-
readonly inputs: readonly [{
|
|
2856
|
-
readonly name: "newOwner";
|
|
2857
|
-
readonly type: "address";
|
|
2858
|
-
readonly internalType: "address";
|
|
2859
|
-
}];
|
|
2860
|
-
readonly outputs: readonly [];
|
|
2861
|
-
readonly stateMutability: "nonpayable";
|
|
2862
|
-
}, {
|
|
2863
|
-
readonly type: "function";
|
|
2864
|
-
readonly name: "uniswapV3Factory";
|
|
2865
|
-
readonly inputs: readonly [];
|
|
2866
|
-
readonly outputs: readonly [{
|
|
2867
|
-
readonly name: "";
|
|
2868
|
-
readonly type: "address";
|
|
2869
|
-
readonly internalType: "address";
|
|
2870
|
-
}];
|
|
2871
|
-
readonly stateMutability: "view";
|
|
2872
|
-
}, {
|
|
2873
|
-
readonly type: "function";
|
|
2874
|
-
readonly name: "usdcAddress";
|
|
2875
|
-
readonly inputs: readonly [];
|
|
2876
|
-
readonly outputs: readonly [{
|
|
2877
|
-
readonly name: "";
|
|
2878
|
-
readonly type: "address";
|
|
2879
|
-
readonly internalType: "address";
|
|
2880
|
-
}];
|
|
2881
|
-
readonly stateMutability: "view";
|
|
2882
|
-
}, {
|
|
2883
|
-
readonly type: "function";
|
|
2884
|
-
readonly name: "wethAddress";
|
|
2885
|
-
readonly inputs: readonly [];
|
|
2886
|
-
readonly outputs: readonly [{
|
|
2887
|
-
readonly name: "";
|
|
2888
|
-
readonly type: "address";
|
|
2889
|
-
readonly internalType: "address";
|
|
2890
|
-
}];
|
|
2891
|
-
readonly stateMutability: "view";
|
|
2892
|
-
}, {
|
|
2893
|
-
readonly type: "event";
|
|
2894
|
-
readonly name: "OracleConfigUpdated";
|
|
2895
|
-
readonly inputs: readonly [{
|
|
2896
|
-
readonly name: "uniswapV3Factory";
|
|
2897
|
-
readonly type: "address";
|
|
2898
|
-
readonly indexed: false;
|
|
2899
|
-
readonly internalType: "address";
|
|
2900
|
-
}, {
|
|
2901
|
-
readonly name: "usdc";
|
|
2902
|
-
readonly type: "address";
|
|
2903
|
-
readonly indexed: false;
|
|
2904
|
-
readonly internalType: "address";
|
|
2905
|
-
}, {
|
|
2906
|
-
readonly name: "weth";
|
|
2907
|
-
readonly type: "address";
|
|
2908
|
-
readonly indexed: false;
|
|
2909
|
-
readonly internalType: "address";
|
|
2910
|
-
}];
|
|
2911
|
-
readonly anonymous: false;
|
|
2912
|
-
}, {
|
|
2913
|
-
readonly type: "event";
|
|
2914
|
-
readonly name: "OwnershipTransferStarted";
|
|
2915
|
-
readonly inputs: readonly [{
|
|
2916
|
-
readonly name: "previousOwner";
|
|
2917
|
-
readonly type: "address";
|
|
2918
|
-
readonly indexed: true;
|
|
2919
|
-
readonly internalType: "address";
|
|
2920
|
-
}, {
|
|
2921
|
-
readonly name: "newOwner";
|
|
2922
|
-
readonly type: "address";
|
|
2923
|
-
readonly indexed: true;
|
|
2924
|
-
readonly internalType: "address";
|
|
2925
|
-
}];
|
|
2926
|
-
readonly anonymous: false;
|
|
2927
|
-
}, {
|
|
2928
|
-
readonly type: "event";
|
|
2929
|
-
readonly name: "OwnershipTransferred";
|
|
2930
|
-
readonly inputs: readonly [{
|
|
2931
|
-
readonly name: "previousOwner";
|
|
2932
|
-
readonly type: "address";
|
|
2933
|
-
readonly indexed: true;
|
|
2934
|
-
readonly internalType: "address";
|
|
2935
|
-
}, {
|
|
2936
|
-
readonly name: "newOwner";
|
|
2937
|
-
readonly type: "address";
|
|
2938
|
-
readonly indexed: true;
|
|
2939
|
-
readonly internalType: "address";
|
|
2940
|
-
}];
|
|
2941
|
-
readonly anonymous: false;
|
|
2942
|
-
}, {
|
|
2943
|
-
readonly type: "event";
|
|
2944
|
-
readonly name: "RelayerAdded";
|
|
2945
|
-
readonly inputs: readonly [{
|
|
2946
|
-
readonly name: "relayer";
|
|
2947
|
-
readonly type: "address";
|
|
2948
|
-
readonly indexed: true;
|
|
2949
|
-
readonly internalType: "address";
|
|
2950
|
-
}];
|
|
2951
|
-
readonly anonymous: false;
|
|
2952
|
-
}, {
|
|
2953
|
-
readonly type: "event";
|
|
2954
|
-
readonly name: "RelayerRemoved";
|
|
2955
|
-
readonly inputs: readonly [{
|
|
2956
|
-
readonly name: "relayer";
|
|
2957
|
-
readonly type: "address";
|
|
2958
|
-
readonly indexed: true;
|
|
2959
|
-
readonly internalType: "address";
|
|
2960
|
-
}];
|
|
2961
|
-
readonly anonymous: false;
|
|
2962
|
-
}, {
|
|
2963
|
-
readonly type: "event";
|
|
2964
|
-
readonly name: "SwapRouterAdded";
|
|
2965
|
-
readonly inputs: readonly [{
|
|
2966
|
-
readonly name: "router";
|
|
2967
|
-
readonly type: "address";
|
|
2968
|
-
readonly indexed: true;
|
|
2969
|
-
readonly internalType: "address";
|
|
2970
|
-
}];
|
|
2971
|
-
readonly anonymous: false;
|
|
2972
|
-
}, {
|
|
2973
|
-
readonly type: "event";
|
|
2974
|
-
readonly name: "SwapRouterRemoved";
|
|
2975
|
-
readonly inputs: readonly [{
|
|
2976
|
-
readonly name: "router";
|
|
2977
|
-
readonly type: "address";
|
|
2978
|
-
readonly indexed: true;
|
|
2979
|
-
readonly internalType: "address";
|
|
2980
|
-
}];
|
|
2981
|
-
readonly anonymous: false;
|
|
2982
|
-
}, {
|
|
2983
|
-
readonly type: "error";
|
|
2984
|
-
readonly name: "AlreadyApproved";
|
|
2985
|
-
readonly inputs: readonly [];
|
|
2986
|
-
}, {
|
|
2987
|
-
readonly type: "error";
|
|
2988
|
-
readonly name: "AlreadyAuthorized";
|
|
2989
|
-
readonly inputs: readonly [];
|
|
2990
|
-
}, {
|
|
2991
|
-
readonly type: "error";
|
|
2992
|
-
readonly name: "NotApproved";
|
|
2993
|
-
readonly inputs: readonly [];
|
|
2994
|
-
}, {
|
|
2995
|
-
readonly type: "error";
|
|
2996
|
-
readonly name: "NotAuthorized";
|
|
2997
|
-
readonly inputs: readonly [];
|
|
2998
|
-
}, {
|
|
2999
|
-
readonly type: "error";
|
|
3000
|
-
readonly name: "OwnableInvalidOwner";
|
|
3001
|
-
readonly inputs: readonly [{
|
|
3002
|
-
readonly name: "owner";
|
|
3003
|
-
readonly type: "address";
|
|
3004
|
-
readonly internalType: "address";
|
|
3005
|
-
}];
|
|
3006
|
-
}, {
|
|
3007
|
-
readonly type: "error";
|
|
3008
|
-
readonly name: "OwnableUnauthorizedAccount";
|
|
3009
|
-
readonly inputs: readonly [{
|
|
3010
|
-
readonly name: "account";
|
|
3011
|
-
readonly type: "address";
|
|
3012
|
-
readonly internalType: "address";
|
|
3013
|
-
}];
|
|
3014
|
-
}, {
|
|
3015
|
-
readonly type: "error";
|
|
3016
|
-
readonly name: "ZeroAddress";
|
|
3017
|
-
readonly inputs: readonly [];
|
|
3018
|
-
}];
|
|
3019
|
-
|
|
3020
|
-
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, type PayInput, PaymentErrorCode, type PaymentIntent, type PaymentResult, type PaymentStatus, RELAYER_API, type RebalanceTokensResult, SUPPORTED_CHAIN_IDS, SWAP_INTENT_TYPEHASH, type SpendingLimit, type SupportedChainId, type SwapInput, type SwapIntent, Token, type TokenInput, type TosStatus, USDC, type VaultInfo, WINDOW, createAxonPublicClient, createAxonWalletClient, decryptKeystore, deployVault, encodeRef, encryptKeystore, getBotConfig, getChain, getDomainSeparator, getKnownTokensForChain, getOperatorCeilings, getRebalanceTokenCount, getTokenSymbolByAddress, getVaultOperator, getVaultOwner, getVaultVersion, isBotActive, isDestinationAllowed, isRebalanceTokenWhitelisted, isVaultPaused, operatorMaxDrainPerDay, parseAmount, resolveToken, resolveTokenDecimals, signExecuteIntent, signPayment, signSwapIntent };
|