@axonfi/sdk 0.5.4 → 0.6.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/dist/index.cjs +473 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +361 -23
- package/dist/index.d.ts +361 -23
- package/dist/index.js +473 -32
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -502,7 +502,7 @@ interface PayInput {
|
|
|
502
502
|
* executeProtocol() on-chain. The contract approves `token` to `protocol`,
|
|
503
503
|
* calls it with `callData`, then revokes the approval.
|
|
504
504
|
*
|
|
505
|
-
* TypeHash: keccak256("ExecuteIntent(address bot,address protocol,bytes32 calldataHash,address token,uint256 amount,uint256 deadline,bytes32 ref)")
|
|
505
|
+
* TypeHash: keccak256("ExecuteIntent(address bot,address protocol,bytes32 calldataHash,address token,uint256 amount,uint256 value,uint256 deadline,bytes32 ref)")
|
|
506
506
|
*/
|
|
507
507
|
interface ExecuteIntent {
|
|
508
508
|
/** Bot's own address. Must be registered in the vault. */
|
|
@@ -515,6 +515,8 @@ interface ExecuteIntent {
|
|
|
515
515
|
token: Address;
|
|
516
516
|
/** Amount to approve (in token base units). */
|
|
517
517
|
amount: bigint;
|
|
518
|
+
/** Native ETH to send with the protocol call (e.g. WETH.deposit, Lido.submit). 0 = no ETH. */
|
|
519
|
+
value: bigint;
|
|
518
520
|
/** Unix timestamp after which this intent is invalid. */
|
|
519
521
|
deadline: bigint;
|
|
520
522
|
/** keccak256 of the off-chain memo. Full memo text stored by relayer. */
|
|
@@ -553,6 +555,8 @@ interface ExecuteInput {
|
|
|
553
555
|
token: TokenInput;
|
|
554
556
|
/** Amount to approve: bigint (raw base units), number (human-readable), or string (human-readable). */
|
|
555
557
|
amount: AmountInput;
|
|
558
|
+
/** Native ETH to send with the call (wei). Optional, defaults to 0. Used for payable functions like WETH.deposit() or Lido.submit(). */
|
|
559
|
+
value?: bigint;
|
|
556
560
|
/** Human-readable description. Gets keccak256-hashed to ref. */
|
|
557
561
|
memo?: string;
|
|
558
562
|
/**
|
|
@@ -1028,6 +1032,19 @@ declare function isRebalanceTokenWhitelisted(publicClient: PublicClient, vaultAd
|
|
|
1028
1032
|
* @returns Address of the newly deployed vault.
|
|
1029
1033
|
*/
|
|
1030
1034
|
declare function deployVault(walletClient: WalletClient, publicClient: PublicClient, relayerUrl?: string): Promise<Address>;
|
|
1035
|
+
/**
|
|
1036
|
+
* Predict the deterministic address of a vault before deployment.
|
|
1037
|
+
*
|
|
1038
|
+
* Vault addresses are deterministic via CREATE2: same owner + same nonce = same
|
|
1039
|
+
* address across all chains (given the factory is at the same address).
|
|
1040
|
+
*
|
|
1041
|
+
* @param publicClient Public client for the target chain.
|
|
1042
|
+
* @param owner Address that will own the vault.
|
|
1043
|
+
* @param nonce Vault index for this owner (0 for first, 1 for second, etc.).
|
|
1044
|
+
* @param relayerUrl Override relayer URL (defaults to https://relay.axonfi.xyz).
|
|
1045
|
+
* @returns The deterministic vault address.
|
|
1046
|
+
*/
|
|
1047
|
+
declare function predictVaultAddress(publicClient: PublicClient, owner: Address, nonce: number, relayerUrl?: string): Promise<Address>;
|
|
1031
1048
|
/**
|
|
1032
1049
|
* Register a bot on the vault with its initial spending configuration.
|
|
1033
1050
|
*
|
|
@@ -1272,15 +1289,7 @@ declare function signPermit2WitnessTransfer(privateKey: Hex, chainId: number, pe
|
|
|
1272
1289
|
|
|
1273
1290
|
declare const AxonVaultAbi: readonly [{
|
|
1274
1291
|
readonly type: "constructor";
|
|
1275
|
-
readonly inputs: readonly [
|
|
1276
|
-
readonly name: "_owner";
|
|
1277
|
-
readonly type: "address";
|
|
1278
|
-
readonly internalType: "address";
|
|
1279
|
-
}, {
|
|
1280
|
-
readonly name: "_axonRegistry";
|
|
1281
|
-
readonly type: "address";
|
|
1282
|
-
readonly internalType: "address";
|
|
1283
|
-
}];
|
|
1292
|
+
readonly inputs: readonly [];
|
|
1284
1293
|
readonly stateMutability: "nonpayable";
|
|
1285
1294
|
}, {
|
|
1286
1295
|
readonly type: "receive";
|
|
@@ -1647,6 +1656,10 @@ declare const AxonVaultAbi: readonly [{
|
|
|
1647
1656
|
readonly name: "amount";
|
|
1648
1657
|
readonly type: "uint256";
|
|
1649
1658
|
readonly internalType: "uint256";
|
|
1659
|
+
}, {
|
|
1660
|
+
readonly name: "value";
|
|
1661
|
+
readonly type: "uint256";
|
|
1662
|
+
readonly internalType: "uint256";
|
|
1650
1663
|
}, {
|
|
1651
1664
|
readonly name: "deadline";
|
|
1652
1665
|
readonly type: "uint256";
|
|
@@ -1842,6 +1855,20 @@ declare const AxonVaultAbi: readonly [{
|
|
|
1842
1855
|
readonly internalType: "bool";
|
|
1843
1856
|
}];
|
|
1844
1857
|
readonly stateMutability: "view";
|
|
1858
|
+
}, {
|
|
1859
|
+
readonly type: "function";
|
|
1860
|
+
readonly name: "initialize";
|
|
1861
|
+
readonly inputs: readonly [{
|
|
1862
|
+
readonly name: "_owner";
|
|
1863
|
+
readonly type: "address";
|
|
1864
|
+
readonly internalType: "address";
|
|
1865
|
+
}, {
|
|
1866
|
+
readonly name: "_axonRegistry";
|
|
1867
|
+
readonly type: "address";
|
|
1868
|
+
readonly internalType: "address";
|
|
1869
|
+
}];
|
|
1870
|
+
readonly outputs: readonly [];
|
|
1871
|
+
readonly stateMutability: "nonpayable";
|
|
1845
1872
|
}, {
|
|
1846
1873
|
readonly type: "function";
|
|
1847
1874
|
readonly name: "isBotActive";
|
|
@@ -1870,6 +1897,110 @@ declare const AxonVaultAbi: readonly [{
|
|
|
1870
1897
|
readonly internalType: "bool";
|
|
1871
1898
|
}];
|
|
1872
1899
|
readonly stateMutability: "view";
|
|
1900
|
+
}, {
|
|
1901
|
+
readonly type: "function";
|
|
1902
|
+
readonly name: "isValidSignature";
|
|
1903
|
+
readonly inputs: readonly [{
|
|
1904
|
+
readonly name: "hash";
|
|
1905
|
+
readonly type: "bytes32";
|
|
1906
|
+
readonly internalType: "bytes32";
|
|
1907
|
+
}, {
|
|
1908
|
+
readonly name: "signature";
|
|
1909
|
+
readonly type: "bytes";
|
|
1910
|
+
readonly internalType: "bytes";
|
|
1911
|
+
}];
|
|
1912
|
+
readonly outputs: readonly [{
|
|
1913
|
+
readonly name: "";
|
|
1914
|
+
readonly type: "bytes4";
|
|
1915
|
+
readonly internalType: "bytes4";
|
|
1916
|
+
}];
|
|
1917
|
+
readonly stateMutability: "view";
|
|
1918
|
+
}, {
|
|
1919
|
+
readonly type: "function";
|
|
1920
|
+
readonly name: "onERC1155BatchReceived";
|
|
1921
|
+
readonly inputs: readonly [{
|
|
1922
|
+
readonly name: "";
|
|
1923
|
+
readonly type: "address";
|
|
1924
|
+
readonly internalType: "address";
|
|
1925
|
+
}, {
|
|
1926
|
+
readonly name: "";
|
|
1927
|
+
readonly type: "address";
|
|
1928
|
+
readonly internalType: "address";
|
|
1929
|
+
}, {
|
|
1930
|
+
readonly name: "";
|
|
1931
|
+
readonly type: "uint256[]";
|
|
1932
|
+
readonly internalType: "uint256[]";
|
|
1933
|
+
}, {
|
|
1934
|
+
readonly name: "";
|
|
1935
|
+
readonly type: "uint256[]";
|
|
1936
|
+
readonly internalType: "uint256[]";
|
|
1937
|
+
}, {
|
|
1938
|
+
readonly name: "";
|
|
1939
|
+
readonly type: "bytes";
|
|
1940
|
+
readonly internalType: "bytes";
|
|
1941
|
+
}];
|
|
1942
|
+
readonly outputs: readonly [{
|
|
1943
|
+
readonly name: "";
|
|
1944
|
+
readonly type: "bytes4";
|
|
1945
|
+
readonly internalType: "bytes4";
|
|
1946
|
+
}];
|
|
1947
|
+
readonly stateMutability: "pure";
|
|
1948
|
+
}, {
|
|
1949
|
+
readonly type: "function";
|
|
1950
|
+
readonly name: "onERC1155Received";
|
|
1951
|
+
readonly inputs: readonly [{
|
|
1952
|
+
readonly name: "";
|
|
1953
|
+
readonly type: "address";
|
|
1954
|
+
readonly internalType: "address";
|
|
1955
|
+
}, {
|
|
1956
|
+
readonly name: "";
|
|
1957
|
+
readonly type: "address";
|
|
1958
|
+
readonly internalType: "address";
|
|
1959
|
+
}, {
|
|
1960
|
+
readonly name: "";
|
|
1961
|
+
readonly type: "uint256";
|
|
1962
|
+
readonly internalType: "uint256";
|
|
1963
|
+
}, {
|
|
1964
|
+
readonly name: "";
|
|
1965
|
+
readonly type: "uint256";
|
|
1966
|
+
readonly internalType: "uint256";
|
|
1967
|
+
}, {
|
|
1968
|
+
readonly name: "";
|
|
1969
|
+
readonly type: "bytes";
|
|
1970
|
+
readonly internalType: "bytes";
|
|
1971
|
+
}];
|
|
1972
|
+
readonly outputs: readonly [{
|
|
1973
|
+
readonly name: "";
|
|
1974
|
+
readonly type: "bytes4";
|
|
1975
|
+
readonly internalType: "bytes4";
|
|
1976
|
+
}];
|
|
1977
|
+
readonly stateMutability: "pure";
|
|
1978
|
+
}, {
|
|
1979
|
+
readonly type: "function";
|
|
1980
|
+
readonly name: "onERC721Received";
|
|
1981
|
+
readonly inputs: readonly [{
|
|
1982
|
+
readonly name: "";
|
|
1983
|
+
readonly type: "address";
|
|
1984
|
+
readonly internalType: "address";
|
|
1985
|
+
}, {
|
|
1986
|
+
readonly name: "";
|
|
1987
|
+
readonly type: "address";
|
|
1988
|
+
readonly internalType: "address";
|
|
1989
|
+
}, {
|
|
1990
|
+
readonly name: "";
|
|
1991
|
+
readonly type: "uint256";
|
|
1992
|
+
readonly internalType: "uint256";
|
|
1993
|
+
}, {
|
|
1994
|
+
readonly name: "";
|
|
1995
|
+
readonly type: "bytes";
|
|
1996
|
+
readonly internalType: "bytes";
|
|
1997
|
+
}];
|
|
1998
|
+
readonly outputs: readonly [{
|
|
1999
|
+
readonly name: "";
|
|
2000
|
+
readonly type: "bytes4";
|
|
2001
|
+
readonly internalType: "bytes4";
|
|
2002
|
+
}];
|
|
2003
|
+
readonly stateMutability: "pure";
|
|
1873
2004
|
}, {
|
|
1874
2005
|
readonly type: "function";
|
|
1875
2006
|
readonly name: "operator";
|
|
@@ -2045,7 +2176,7 @@ declare const AxonVaultAbi: readonly [{
|
|
|
2045
2176
|
readonly name: "renounceOwnership";
|
|
2046
2177
|
readonly inputs: readonly [];
|
|
2047
2178
|
readonly outputs: readonly [];
|
|
2048
|
-
readonly stateMutability: "
|
|
2179
|
+
readonly stateMutability: "pure";
|
|
2049
2180
|
}, {
|
|
2050
2181
|
readonly type: "function";
|
|
2051
2182
|
readonly name: "revokeProtocol";
|
|
@@ -2097,6 +2228,20 @@ declare const AxonVaultAbi: readonly [{
|
|
|
2097
2228
|
}];
|
|
2098
2229
|
readonly outputs: readonly [];
|
|
2099
2230
|
readonly stateMutability: "nonpayable";
|
|
2231
|
+
}, {
|
|
2232
|
+
readonly type: "function";
|
|
2233
|
+
readonly name: "supportsInterface";
|
|
2234
|
+
readonly inputs: readonly [{
|
|
2235
|
+
readonly name: "interfaceId";
|
|
2236
|
+
readonly type: "bytes4";
|
|
2237
|
+
readonly internalType: "bytes4";
|
|
2238
|
+
}];
|
|
2239
|
+
readonly outputs: readonly [{
|
|
2240
|
+
readonly name: "";
|
|
2241
|
+
readonly type: "bool";
|
|
2242
|
+
readonly internalType: "bool";
|
|
2243
|
+
}];
|
|
2244
|
+
readonly stateMutability: "view";
|
|
2100
2245
|
}, {
|
|
2101
2246
|
readonly type: "function";
|
|
2102
2247
|
readonly name: "transferOwnership";
|
|
@@ -2193,6 +2338,46 @@ declare const AxonVaultAbi: readonly [{
|
|
|
2193
2338
|
}];
|
|
2194
2339
|
readonly outputs: readonly [];
|
|
2195
2340
|
readonly stateMutability: "nonpayable";
|
|
2341
|
+
}, {
|
|
2342
|
+
readonly type: "function";
|
|
2343
|
+
readonly name: "withdrawERC1155";
|
|
2344
|
+
readonly inputs: readonly [{
|
|
2345
|
+
readonly name: "token";
|
|
2346
|
+
readonly type: "address";
|
|
2347
|
+
readonly internalType: "address";
|
|
2348
|
+
}, {
|
|
2349
|
+
readonly name: "id";
|
|
2350
|
+
readonly type: "uint256";
|
|
2351
|
+
readonly internalType: "uint256";
|
|
2352
|
+
}, {
|
|
2353
|
+
readonly name: "amount";
|
|
2354
|
+
readonly type: "uint256";
|
|
2355
|
+
readonly internalType: "uint256";
|
|
2356
|
+
}, {
|
|
2357
|
+
readonly name: "to";
|
|
2358
|
+
readonly type: "address";
|
|
2359
|
+
readonly internalType: "address";
|
|
2360
|
+
}];
|
|
2361
|
+
readonly outputs: readonly [];
|
|
2362
|
+
readonly stateMutability: "nonpayable";
|
|
2363
|
+
}, {
|
|
2364
|
+
readonly type: "function";
|
|
2365
|
+
readonly name: "withdrawERC721";
|
|
2366
|
+
readonly inputs: readonly [{
|
|
2367
|
+
readonly name: "nft";
|
|
2368
|
+
readonly type: "address";
|
|
2369
|
+
readonly internalType: "address";
|
|
2370
|
+
}, {
|
|
2371
|
+
readonly name: "tokenId";
|
|
2372
|
+
readonly type: "uint256";
|
|
2373
|
+
readonly internalType: "uint256";
|
|
2374
|
+
}, {
|
|
2375
|
+
readonly name: "to";
|
|
2376
|
+
readonly type: "address";
|
|
2377
|
+
readonly internalType: "address";
|
|
2378
|
+
}];
|
|
2379
|
+
readonly outputs: readonly [];
|
|
2380
|
+
readonly stateMutability: "nonpayable";
|
|
2196
2381
|
}, {
|
|
2197
2382
|
readonly type: "event";
|
|
2198
2383
|
readonly name: "BotAdded";
|
|
@@ -2298,6 +2483,51 @@ declare const AxonVaultAbi: readonly [{
|
|
|
2298
2483
|
readonly name: "EIP712DomainChanged";
|
|
2299
2484
|
readonly inputs: readonly [];
|
|
2300
2485
|
readonly anonymous: false;
|
|
2486
|
+
}, {
|
|
2487
|
+
readonly type: "event";
|
|
2488
|
+
readonly name: "ERC1155Withdrawn";
|
|
2489
|
+
readonly inputs: readonly [{
|
|
2490
|
+
readonly name: "token";
|
|
2491
|
+
readonly type: "address";
|
|
2492
|
+
readonly indexed: true;
|
|
2493
|
+
readonly internalType: "address";
|
|
2494
|
+
}, {
|
|
2495
|
+
readonly name: "id";
|
|
2496
|
+
readonly type: "uint256";
|
|
2497
|
+
readonly indexed: true;
|
|
2498
|
+
readonly internalType: "uint256";
|
|
2499
|
+
}, {
|
|
2500
|
+
readonly name: "amount";
|
|
2501
|
+
readonly type: "uint256";
|
|
2502
|
+
readonly indexed: false;
|
|
2503
|
+
readonly internalType: "uint256";
|
|
2504
|
+
}, {
|
|
2505
|
+
readonly name: "to";
|
|
2506
|
+
readonly type: "address";
|
|
2507
|
+
readonly indexed: true;
|
|
2508
|
+
readonly internalType: "address";
|
|
2509
|
+
}];
|
|
2510
|
+
readonly anonymous: false;
|
|
2511
|
+
}, {
|
|
2512
|
+
readonly type: "event";
|
|
2513
|
+
readonly name: "ERC721Withdrawn";
|
|
2514
|
+
readonly inputs: readonly [{
|
|
2515
|
+
readonly name: "nft";
|
|
2516
|
+
readonly type: "address";
|
|
2517
|
+
readonly indexed: true;
|
|
2518
|
+
readonly internalType: "address";
|
|
2519
|
+
}, {
|
|
2520
|
+
readonly name: "tokenId";
|
|
2521
|
+
readonly type: "uint256";
|
|
2522
|
+
readonly indexed: true;
|
|
2523
|
+
readonly internalType: "uint256";
|
|
2524
|
+
}, {
|
|
2525
|
+
readonly name: "to";
|
|
2526
|
+
readonly type: "address";
|
|
2527
|
+
readonly indexed: true;
|
|
2528
|
+
readonly internalType: "address";
|
|
2529
|
+
}];
|
|
2530
|
+
readonly anonymous: false;
|
|
2301
2531
|
}, {
|
|
2302
2532
|
readonly type: "event";
|
|
2303
2533
|
readonly name: "GlobalBlacklistAdded";
|
|
@@ -2338,6 +2568,16 @@ declare const AxonVaultAbi: readonly [{
|
|
|
2338
2568
|
readonly internalType: "address";
|
|
2339
2569
|
}];
|
|
2340
2570
|
readonly anonymous: false;
|
|
2571
|
+
}, {
|
|
2572
|
+
readonly type: "event";
|
|
2573
|
+
readonly name: "Initialized";
|
|
2574
|
+
readonly inputs: readonly [{
|
|
2575
|
+
readonly name: "version";
|
|
2576
|
+
readonly type: "uint64";
|
|
2577
|
+
readonly indexed: false;
|
|
2578
|
+
readonly internalType: "uint64";
|
|
2579
|
+
}];
|
|
2580
|
+
readonly anonymous: false;
|
|
2341
2581
|
}, {
|
|
2342
2582
|
readonly type: "event";
|
|
2343
2583
|
readonly name: "OperatorCeilingsUpdated";
|
|
@@ -2661,6 +2901,10 @@ declare const AxonVaultAbi: readonly [{
|
|
|
2661
2901
|
readonly type: "error";
|
|
2662
2902
|
readonly name: "DeadlineExpired";
|
|
2663
2903
|
readonly inputs: readonly [];
|
|
2904
|
+
}, {
|
|
2905
|
+
readonly type: "error";
|
|
2906
|
+
readonly name: "DefaultTokenCallRestricted";
|
|
2907
|
+
readonly inputs: readonly [];
|
|
2664
2908
|
}, {
|
|
2665
2909
|
readonly type: "error";
|
|
2666
2910
|
readonly name: "DestinationBlacklisted";
|
|
@@ -2711,7 +2955,7 @@ declare const AxonVaultAbi: readonly [{
|
|
|
2711
2955
|
readonly inputs: readonly [];
|
|
2712
2956
|
}, {
|
|
2713
2957
|
readonly type: "error";
|
|
2714
|
-
readonly name: "
|
|
2958
|
+
readonly name: "InvalidInitialization";
|
|
2715
2959
|
readonly inputs: readonly [];
|
|
2716
2960
|
}, {
|
|
2717
2961
|
readonly type: "error";
|
|
@@ -2737,6 +2981,10 @@ declare const AxonVaultAbi: readonly [{
|
|
|
2737
2981
|
readonly type: "error";
|
|
2738
2982
|
readonly name: "NotAuthorizedRelayer";
|
|
2739
2983
|
readonly inputs: readonly [];
|
|
2984
|
+
}, {
|
|
2985
|
+
readonly type: "error";
|
|
2986
|
+
readonly name: "NotInitializing";
|
|
2987
|
+
readonly inputs: readonly [];
|
|
2740
2988
|
}, {
|
|
2741
2989
|
readonly type: "error";
|
|
2742
2990
|
readonly name: "OperatorBotLimitReached";
|
|
@@ -2813,14 +3061,6 @@ declare const AxonVaultAbi: readonly [{
|
|
|
2813
3061
|
readonly type: "error";
|
|
2814
3062
|
readonly name: "SelfPayment";
|
|
2815
3063
|
readonly inputs: readonly [];
|
|
2816
|
-
}, {
|
|
2817
|
-
readonly type: "error";
|
|
2818
|
-
readonly name: "StringTooLong";
|
|
2819
|
-
readonly inputs: readonly [{
|
|
2820
|
-
readonly name: "str";
|
|
2821
|
-
readonly type: "string";
|
|
2822
|
-
readonly internalType: "string";
|
|
2823
|
-
}];
|
|
2824
3064
|
}, {
|
|
2825
3065
|
readonly type: "error";
|
|
2826
3066
|
readonly name: "SwapFailed";
|
|
@@ -2899,6 +3139,16 @@ declare const AxonVaultFactoryAbi: readonly [{
|
|
|
2899
3139
|
readonly internalType: "address";
|
|
2900
3140
|
}];
|
|
2901
3141
|
readonly stateMutability: "nonpayable";
|
|
3142
|
+
}, {
|
|
3143
|
+
readonly type: "function";
|
|
3144
|
+
readonly name: "implementation";
|
|
3145
|
+
readonly inputs: readonly [];
|
|
3146
|
+
readonly outputs: readonly [{
|
|
3147
|
+
readonly name: "";
|
|
3148
|
+
readonly type: "address";
|
|
3149
|
+
readonly internalType: "address";
|
|
3150
|
+
}];
|
|
3151
|
+
readonly stateMutability: "view";
|
|
2902
3152
|
}, {
|
|
2903
3153
|
readonly type: "function";
|
|
2904
3154
|
readonly name: "owner";
|
|
@@ -2951,12 +3201,30 @@ declare const AxonVaultFactoryAbi: readonly [{
|
|
|
2951
3201
|
readonly internalType: "address";
|
|
2952
3202
|
}];
|
|
2953
3203
|
readonly stateMutability: "view";
|
|
3204
|
+
}, {
|
|
3205
|
+
readonly type: "function";
|
|
3206
|
+
readonly name: "predictVaultAddress";
|
|
3207
|
+
readonly inputs: readonly [{
|
|
3208
|
+
readonly name: "owner";
|
|
3209
|
+
readonly type: "address";
|
|
3210
|
+
readonly internalType: "address";
|
|
3211
|
+
}, {
|
|
3212
|
+
readonly name: "nonce";
|
|
3213
|
+
readonly type: "uint256";
|
|
3214
|
+
readonly internalType: "uint256";
|
|
3215
|
+
}];
|
|
3216
|
+
readonly outputs: readonly [{
|
|
3217
|
+
readonly name: "";
|
|
3218
|
+
readonly type: "address";
|
|
3219
|
+
readonly internalType: "address";
|
|
3220
|
+
}];
|
|
3221
|
+
readonly stateMutability: "view";
|
|
2954
3222
|
}, {
|
|
2955
3223
|
readonly type: "function";
|
|
2956
3224
|
readonly name: "renounceOwnership";
|
|
2957
3225
|
readonly inputs: readonly [];
|
|
2958
3226
|
readonly outputs: readonly [];
|
|
2959
|
-
readonly stateMutability: "
|
|
3227
|
+
readonly stateMutability: "pure";
|
|
2960
3228
|
}, {
|
|
2961
3229
|
readonly type: "function";
|
|
2962
3230
|
readonly name: "transferOwnership";
|
|
@@ -3032,6 +3300,22 @@ declare const AxonVaultFactoryAbi: readonly [{
|
|
|
3032
3300
|
readonly internalType: "address";
|
|
3033
3301
|
}];
|
|
3034
3302
|
readonly anonymous: false;
|
|
3303
|
+
}, {
|
|
3304
|
+
readonly type: "error";
|
|
3305
|
+
readonly name: "FailedDeployment";
|
|
3306
|
+
readonly inputs: readonly [];
|
|
3307
|
+
}, {
|
|
3308
|
+
readonly type: "error";
|
|
3309
|
+
readonly name: "InsufficientBalance";
|
|
3310
|
+
readonly inputs: readonly [{
|
|
3311
|
+
readonly name: "balance";
|
|
3312
|
+
readonly type: "uint256";
|
|
3313
|
+
readonly internalType: "uint256";
|
|
3314
|
+
}, {
|
|
3315
|
+
readonly name: "needed";
|
|
3316
|
+
readonly type: "uint256";
|
|
3317
|
+
readonly internalType: "uint256";
|
|
3318
|
+
}];
|
|
3035
3319
|
}, {
|
|
3036
3320
|
readonly type: "error";
|
|
3037
3321
|
readonly name: "OwnableInvalidOwner";
|
|
@@ -3108,6 +3392,30 @@ declare const AxonRegistryAbi: readonly [{
|
|
|
3108
3392
|
}];
|
|
3109
3393
|
readonly outputs: readonly [];
|
|
3110
3394
|
readonly stateMutability: "nonpayable";
|
|
3395
|
+
}, {
|
|
3396
|
+
readonly type: "function";
|
|
3397
|
+
readonly name: "approveProtocol";
|
|
3398
|
+
readonly inputs: readonly [{
|
|
3399
|
+
readonly name: "protocol";
|
|
3400
|
+
readonly type: "address";
|
|
3401
|
+
readonly internalType: "address";
|
|
3402
|
+
}];
|
|
3403
|
+
readonly outputs: readonly [];
|
|
3404
|
+
readonly stateMutability: "nonpayable";
|
|
3405
|
+
}, {
|
|
3406
|
+
readonly type: "function";
|
|
3407
|
+
readonly name: "isApprovedProtocol";
|
|
3408
|
+
readonly inputs: readonly [{
|
|
3409
|
+
readonly name: "protocol";
|
|
3410
|
+
readonly type: "address";
|
|
3411
|
+
readonly internalType: "address";
|
|
3412
|
+
}];
|
|
3413
|
+
readonly outputs: readonly [{
|
|
3414
|
+
readonly name: "";
|
|
3415
|
+
readonly type: "bool";
|
|
3416
|
+
readonly internalType: "bool";
|
|
3417
|
+
}];
|
|
3418
|
+
readonly stateMutability: "view";
|
|
3111
3419
|
}, {
|
|
3112
3420
|
readonly type: "function";
|
|
3113
3421
|
readonly name: "isApprovedSwapRouter";
|
|
@@ -3195,7 +3503,7 @@ declare const AxonRegistryAbi: readonly [{
|
|
|
3195
3503
|
readonly name: "renounceOwnership";
|
|
3196
3504
|
readonly inputs: readonly [];
|
|
3197
3505
|
readonly outputs: readonly [];
|
|
3198
|
-
readonly stateMutability: "
|
|
3506
|
+
readonly stateMutability: "pure";
|
|
3199
3507
|
}, {
|
|
3200
3508
|
readonly type: "function";
|
|
3201
3509
|
readonly name: "revokeDefaultToken";
|
|
@@ -3206,6 +3514,16 @@ declare const AxonRegistryAbi: readonly [{
|
|
|
3206
3514
|
}];
|
|
3207
3515
|
readonly outputs: readonly [];
|
|
3208
3516
|
readonly stateMutability: "nonpayable";
|
|
3517
|
+
}, {
|
|
3518
|
+
readonly type: "function";
|
|
3519
|
+
readonly name: "revokeProtocol";
|
|
3520
|
+
readonly inputs: readonly [{
|
|
3521
|
+
readonly name: "protocol";
|
|
3522
|
+
readonly type: "address";
|
|
3523
|
+
readonly internalType: "address";
|
|
3524
|
+
}];
|
|
3525
|
+
readonly outputs: readonly [];
|
|
3526
|
+
readonly stateMutability: "nonpayable";
|
|
3209
3527
|
}, {
|
|
3210
3528
|
readonly type: "function";
|
|
3211
3529
|
readonly name: "setOracleConfig";
|
|
@@ -3334,6 +3652,26 @@ declare const AxonRegistryAbi: readonly [{
|
|
|
3334
3652
|
readonly internalType: "address";
|
|
3335
3653
|
}];
|
|
3336
3654
|
readonly anonymous: false;
|
|
3655
|
+
}, {
|
|
3656
|
+
readonly type: "event";
|
|
3657
|
+
readonly name: "ProtocolApproved";
|
|
3658
|
+
readonly inputs: readonly [{
|
|
3659
|
+
readonly name: "protocol";
|
|
3660
|
+
readonly type: "address";
|
|
3661
|
+
readonly indexed: true;
|
|
3662
|
+
readonly internalType: "address";
|
|
3663
|
+
}];
|
|
3664
|
+
readonly anonymous: false;
|
|
3665
|
+
}, {
|
|
3666
|
+
readonly type: "event";
|
|
3667
|
+
readonly name: "ProtocolRevoked";
|
|
3668
|
+
readonly inputs: readonly [{
|
|
3669
|
+
readonly name: "protocol";
|
|
3670
|
+
readonly type: "address";
|
|
3671
|
+
readonly indexed: true;
|
|
3672
|
+
readonly internalType: "address";
|
|
3673
|
+
}];
|
|
3674
|
+
readonly anonymous: false;
|
|
3337
3675
|
}, {
|
|
3338
3676
|
readonly type: "event";
|
|
3339
3677
|
readonly name: "RelayerAdded";
|
|
@@ -3412,4 +3750,4 @@ declare const AxonRegistryAbi: readonly [{
|
|
|
3412
3750
|
readonly inputs: readonly [];
|
|
3413
3751
|
}];
|
|
3414
3752
|
|
|
3415
|
-
export { type AmountInput, AxonClient, type AxonClientConfig, AxonRegistryAbi, AxonVaultAbi, AxonVaultFactoryAbi, type BotConfig, type BotConfigInput, type BotConfigParams, CHAIN_NAMES, Chain, DEFAULT_APPROVED_TOKENS, DEFAULT_DEADLINE_SECONDS, type DestinationCheckResult, EIP712_DOMAIN_NAME, EIP712_DOMAIN_VERSION, EXECUTE_INTENT_TYPEHASH, EXPLORER_ADDR, EXPLORER_TX, type ExecuteInput, type ExecuteIntent, KNOWN_TOKENS, type KeystoreV3, type KnownToken, type KnownTokenSymbol, NATIVE_ETH, type OperatorCeilings, PAYMENT_INTENT_TYPEHASH, PERMIT2_ADDRESS, type PayInput, PaymentErrorCode, type PaymentIntent, type PaymentResult, type PaymentStatus, type Permit2Authorization, RELAYER_API, type RebalanceTokensResult, SUPPORTED_CHAIN_IDS, SWAP_INTENT_TYPEHASH, type SpendingLimit, type SpendingLimitInput, type SupportedChainId, type SwapInput, type SwapIntent, Token, type TokenInput, type TosStatus, type TransferAuthorization, USDC, USDC_EIP712_DOMAIN, type VaultInfo, WINDOW, WITNESS_TYPE_STRING, type X402HandleResult, type X402PaymentOption, type X402PaymentRequired, type X402Resource, X402_PROXY_ADDRESS, addBot, createAxonPublicClient, createAxonWalletClient, decryptKeystore, deployVault, deposit, encodeRef, encryptKeystore, extractX402Metadata, findMatchingOption, formatPaymentSignature, getBotConfig, getChain, getDefaultApprovedTokens, getDomainSeparator, getKnownTokensForChain, getOperatorCeilings, getRebalanceTokenCount, getTokenSymbolByAddress, getVaultOperator, getVaultOwner, getVaultVersion, isBotActive, isDestinationAllowed, isRebalanceTokenWhitelisted, isVaultPaused, operatorMaxDrainPerDay, parseAmount, parseChainId, parsePaymentRequired, randomNonce, randomPermit2Nonce, removeBot, resolveToken, resolveTokenDecimals, signExecuteIntent, signPayment, signPermit2WitnessTransfer, signSwapIntent, signTransferWithAuthorization, toBotConfigParams, updateBotConfig };
|
|
3753
|
+
export { type AmountInput, AxonClient, type AxonClientConfig, AxonRegistryAbi, AxonVaultAbi, AxonVaultFactoryAbi, type BotConfig, type BotConfigInput, type BotConfigParams, CHAIN_NAMES, Chain, DEFAULT_APPROVED_TOKENS, DEFAULT_DEADLINE_SECONDS, type DestinationCheckResult, EIP712_DOMAIN_NAME, EIP712_DOMAIN_VERSION, EXECUTE_INTENT_TYPEHASH, EXPLORER_ADDR, EXPLORER_TX, type ExecuteInput, type ExecuteIntent, KNOWN_TOKENS, type KeystoreV3, type KnownToken, type KnownTokenSymbol, NATIVE_ETH, type OperatorCeilings, PAYMENT_INTENT_TYPEHASH, PERMIT2_ADDRESS, type PayInput, PaymentErrorCode, type PaymentIntent, type PaymentResult, type PaymentStatus, type Permit2Authorization, RELAYER_API, type RebalanceTokensResult, SUPPORTED_CHAIN_IDS, SWAP_INTENT_TYPEHASH, type SpendingLimit, type SpendingLimitInput, type SupportedChainId, type SwapInput, type SwapIntent, Token, type TokenInput, type TosStatus, type TransferAuthorization, USDC, USDC_EIP712_DOMAIN, type VaultInfo, WINDOW, WITNESS_TYPE_STRING, type X402HandleResult, type X402PaymentOption, type X402PaymentRequired, type X402Resource, X402_PROXY_ADDRESS, addBot, createAxonPublicClient, createAxonWalletClient, decryptKeystore, deployVault, deposit, encodeRef, encryptKeystore, extractX402Metadata, findMatchingOption, formatPaymentSignature, getBotConfig, getChain, getDefaultApprovedTokens, getDomainSeparator, getKnownTokensForChain, getOperatorCeilings, getRebalanceTokenCount, getTokenSymbolByAddress, getVaultOperator, getVaultOwner, getVaultVersion, isBotActive, isDestinationAllowed, isRebalanceTokenWhitelisted, isVaultPaused, operatorMaxDrainPerDay, parseAmount, parseChainId, parsePaymentRequired, predictVaultAddress, randomNonce, randomPermit2Nonce, removeBot, resolveToken, resolveTokenDecimals, signExecuteIntent, signPayment, signPermit2WitnessTransfer, signSwapIntent, signTransferWithAuthorization, toBotConfigParams, updateBotConfig };
|