@pendle/sdk-boros 0.3.7-khanh → 0.3.7
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/contracts/viemAbis.d.ts +107 -683
- package/dist/contracts/viemAbis.js +47 -358
- package/dist/contracts/viemAbis.js.map +1 -1
- package/dist/entities/exchange/exchange.d.ts +0 -456
- package/dist/entities/exchange/utils.d.ts +0 -114
- package/dist/errors/PendleContractError/type.d.ts +3 -14
- package/dist/errors/ViemErrorDecoder.js.map +1 -1
- package/dist/types/encoders.d.ts +2 -1
- package/dist/types/encoders.js +1 -1
- package/dist/types/encoders.js.map +1 -1
- package/package.json +2 -2
- package/dist/errors/PendleContractError/customHandler.d.ts +0 -2
- package/dist/errors/PendleContractError/customHandler.js +0 -8
- package/dist/errors/PendleContractError/customHandler.js.map +0 -1
|
@@ -1,191 +1,3 @@
|
|
|
1
|
-
export declare const iAMMFactoryAbi: readonly [{
|
|
2
|
-
readonly anonymous: false;
|
|
3
|
-
readonly inputs: readonly [{
|
|
4
|
-
readonly indexed: false;
|
|
5
|
-
readonly internalType: "address";
|
|
6
|
-
readonly name: "amm";
|
|
7
|
-
readonly type: "address";
|
|
8
|
-
}, {
|
|
9
|
-
readonly indexed: false;
|
|
10
|
-
readonly internalType: "bool";
|
|
11
|
-
readonly name: "isPositive";
|
|
12
|
-
readonly type: "bool";
|
|
13
|
-
}, {
|
|
14
|
-
readonly components: readonly [{
|
|
15
|
-
readonly internalType: "AMMId";
|
|
16
|
-
readonly name: "ammId";
|
|
17
|
-
readonly type: "uint24";
|
|
18
|
-
}, {
|
|
19
|
-
readonly internalType: "string";
|
|
20
|
-
readonly name: "name";
|
|
21
|
-
readonly type: "string";
|
|
22
|
-
}, {
|
|
23
|
-
readonly internalType: "string";
|
|
24
|
-
readonly name: "symbol";
|
|
25
|
-
readonly type: "string";
|
|
26
|
-
}, {
|
|
27
|
-
readonly internalType: "address";
|
|
28
|
-
readonly name: "router";
|
|
29
|
-
readonly type: "address";
|
|
30
|
-
}, {
|
|
31
|
-
readonly internalType: "address";
|
|
32
|
-
readonly name: "market";
|
|
33
|
-
readonly type: "address";
|
|
34
|
-
}, {
|
|
35
|
-
readonly internalType: "uint32";
|
|
36
|
-
readonly name: "oracleImpliedRateWindow";
|
|
37
|
-
readonly type: "uint32";
|
|
38
|
-
}, {
|
|
39
|
-
readonly internalType: "uint64";
|
|
40
|
-
readonly name: "feeRate";
|
|
41
|
-
readonly type: "uint64";
|
|
42
|
-
}, {
|
|
43
|
-
readonly internalType: "uint256";
|
|
44
|
-
readonly name: "totalSupplyCap";
|
|
45
|
-
readonly type: "uint256";
|
|
46
|
-
}, {
|
|
47
|
-
readonly internalType: "MarketAcc";
|
|
48
|
-
readonly name: "seeder";
|
|
49
|
-
readonly type: "bytes26";
|
|
50
|
-
}, {
|
|
51
|
-
readonly internalType: "address";
|
|
52
|
-
readonly name: "permissionController";
|
|
53
|
-
readonly type: "address";
|
|
54
|
-
}];
|
|
55
|
-
readonly indexed: false;
|
|
56
|
-
readonly internalType: "struct AMMCreateParams";
|
|
57
|
-
readonly name: "createParams";
|
|
58
|
-
readonly type: "tuple";
|
|
59
|
-
}, {
|
|
60
|
-
readonly components: readonly [{
|
|
61
|
-
readonly internalType: "uint256";
|
|
62
|
-
readonly name: "minAbsRate";
|
|
63
|
-
readonly type: "uint256";
|
|
64
|
-
}, {
|
|
65
|
-
readonly internalType: "uint256";
|
|
66
|
-
readonly name: "maxAbsRate";
|
|
67
|
-
readonly type: "uint256";
|
|
68
|
-
}, {
|
|
69
|
-
readonly internalType: "uint256";
|
|
70
|
-
readonly name: "cutOffTimestamp";
|
|
71
|
-
readonly type: "uint256";
|
|
72
|
-
}, {
|
|
73
|
-
readonly internalType: "uint256";
|
|
74
|
-
readonly name: "initialAbsRate";
|
|
75
|
-
readonly type: "uint256";
|
|
76
|
-
}, {
|
|
77
|
-
readonly internalType: "int256";
|
|
78
|
-
readonly name: "initialSize";
|
|
79
|
-
readonly type: "int256";
|
|
80
|
-
}, {
|
|
81
|
-
readonly internalType: "uint256";
|
|
82
|
-
readonly name: "flipLiquidity";
|
|
83
|
-
readonly type: "uint256";
|
|
84
|
-
}, {
|
|
85
|
-
readonly internalType: "uint256";
|
|
86
|
-
readonly name: "initialCash";
|
|
87
|
-
readonly type: "uint256";
|
|
88
|
-
}];
|
|
89
|
-
readonly indexed: false;
|
|
90
|
-
readonly internalType: "struct AMMSeedParams";
|
|
91
|
-
readonly name: "seedParams";
|
|
92
|
-
readonly type: "tuple";
|
|
93
|
-
}];
|
|
94
|
-
readonly name: "AMMCreated";
|
|
95
|
-
readonly type: "event";
|
|
96
|
-
}, {
|
|
97
|
-
readonly inputs: readonly [{
|
|
98
|
-
readonly internalType: "bool";
|
|
99
|
-
readonly name: "isPositive";
|
|
100
|
-
readonly type: "bool";
|
|
101
|
-
}, {
|
|
102
|
-
readonly components: readonly [{
|
|
103
|
-
readonly internalType: "AMMId";
|
|
104
|
-
readonly name: "ammId";
|
|
105
|
-
readonly type: "uint24";
|
|
106
|
-
}, {
|
|
107
|
-
readonly internalType: "string";
|
|
108
|
-
readonly name: "name";
|
|
109
|
-
readonly type: "string";
|
|
110
|
-
}, {
|
|
111
|
-
readonly internalType: "string";
|
|
112
|
-
readonly name: "symbol";
|
|
113
|
-
readonly type: "string";
|
|
114
|
-
}, {
|
|
115
|
-
readonly internalType: "address";
|
|
116
|
-
readonly name: "router";
|
|
117
|
-
readonly type: "address";
|
|
118
|
-
}, {
|
|
119
|
-
readonly internalType: "address";
|
|
120
|
-
readonly name: "market";
|
|
121
|
-
readonly type: "address";
|
|
122
|
-
}, {
|
|
123
|
-
readonly internalType: "uint32";
|
|
124
|
-
readonly name: "oracleImpliedRateWindow";
|
|
125
|
-
readonly type: "uint32";
|
|
126
|
-
}, {
|
|
127
|
-
readonly internalType: "uint64";
|
|
128
|
-
readonly name: "feeRate";
|
|
129
|
-
readonly type: "uint64";
|
|
130
|
-
}, {
|
|
131
|
-
readonly internalType: "uint256";
|
|
132
|
-
readonly name: "totalSupplyCap";
|
|
133
|
-
readonly type: "uint256";
|
|
134
|
-
}, {
|
|
135
|
-
readonly internalType: "MarketAcc";
|
|
136
|
-
readonly name: "seeder";
|
|
137
|
-
readonly type: "bytes26";
|
|
138
|
-
}, {
|
|
139
|
-
readonly internalType: "address";
|
|
140
|
-
readonly name: "permissionController";
|
|
141
|
-
readonly type: "address";
|
|
142
|
-
}];
|
|
143
|
-
readonly internalType: "struct AMMCreateParams";
|
|
144
|
-
readonly name: "createParams";
|
|
145
|
-
readonly type: "tuple";
|
|
146
|
-
}, {
|
|
147
|
-
readonly components: readonly [{
|
|
148
|
-
readonly internalType: "uint256";
|
|
149
|
-
readonly name: "minAbsRate";
|
|
150
|
-
readonly type: "uint256";
|
|
151
|
-
}, {
|
|
152
|
-
readonly internalType: "uint256";
|
|
153
|
-
readonly name: "maxAbsRate";
|
|
154
|
-
readonly type: "uint256";
|
|
155
|
-
}, {
|
|
156
|
-
readonly internalType: "uint256";
|
|
157
|
-
readonly name: "cutOffTimestamp";
|
|
158
|
-
readonly type: "uint256";
|
|
159
|
-
}, {
|
|
160
|
-
readonly internalType: "uint256";
|
|
161
|
-
readonly name: "initialAbsRate";
|
|
162
|
-
readonly type: "uint256";
|
|
163
|
-
}, {
|
|
164
|
-
readonly internalType: "int256";
|
|
165
|
-
readonly name: "initialSize";
|
|
166
|
-
readonly type: "int256";
|
|
167
|
-
}, {
|
|
168
|
-
readonly internalType: "uint256";
|
|
169
|
-
readonly name: "flipLiquidity";
|
|
170
|
-
readonly type: "uint256";
|
|
171
|
-
}, {
|
|
172
|
-
readonly internalType: "uint256";
|
|
173
|
-
readonly name: "initialCash";
|
|
174
|
-
readonly type: "uint256";
|
|
175
|
-
}];
|
|
176
|
-
readonly internalType: "struct AMMSeedParams";
|
|
177
|
-
readonly name: "seedParams";
|
|
178
|
-
readonly type: "tuple";
|
|
179
|
-
}];
|
|
180
|
-
readonly name: "create";
|
|
181
|
-
readonly outputs: readonly [{
|
|
182
|
-
readonly internalType: "address";
|
|
183
|
-
readonly name: "newAMM";
|
|
184
|
-
readonly type: "address";
|
|
185
|
-
}];
|
|
186
|
-
readonly stateMutability: "nonpayable";
|
|
187
|
-
readonly type: "function";
|
|
188
|
-
}];
|
|
189
1
|
export declare const iMarketHubEntryOnlyAbi: readonly [{
|
|
190
2
|
readonly inputs: readonly [{
|
|
191
3
|
readonly internalType: "MarketId";
|
|
@@ -3604,12 +3416,8 @@ export declare const iRouterAbi: readonly [{
|
|
|
3604
3416
|
readonly name: "batchSimulate";
|
|
3605
3417
|
readonly outputs: readonly [{
|
|
3606
3418
|
readonly internalType: "bytes[]";
|
|
3607
|
-
readonly name: "
|
|
3419
|
+
readonly name: "";
|
|
3608
3420
|
readonly type: "bytes[]";
|
|
3609
|
-
}, {
|
|
3610
|
-
readonly internalType: "uint256[]";
|
|
3611
|
-
readonly name: "gasUsed";
|
|
3612
|
-
readonly type: "uint256[]";
|
|
3613
3421
|
}];
|
|
3614
3422
|
readonly stateMutability: "nonpayable";
|
|
3615
3423
|
readonly type: "function";
|
|
@@ -3859,9 +3667,17 @@ export declare const iRouterAbi: readonly [{
|
|
|
3859
3667
|
}, {
|
|
3860
3668
|
readonly inputs: readonly [{
|
|
3861
3669
|
readonly components: readonly [{
|
|
3862
|
-
readonly internalType: "
|
|
3863
|
-
readonly name: "
|
|
3864
|
-
readonly type: "
|
|
3670
|
+
readonly internalType: "address";
|
|
3671
|
+
readonly name: "root";
|
|
3672
|
+
readonly type: "address";
|
|
3673
|
+
}, {
|
|
3674
|
+
readonly internalType: "uint8";
|
|
3675
|
+
readonly name: "accountId";
|
|
3676
|
+
readonly type: "uint8";
|
|
3677
|
+
}, {
|
|
3678
|
+
readonly internalType: "TokenId";
|
|
3679
|
+
readonly name: "tokenId";
|
|
3680
|
+
readonly type: "uint16";
|
|
3865
3681
|
}, {
|
|
3866
3682
|
readonly internalType: "MarketId";
|
|
3867
3683
|
readonly name: "marketId";
|
|
@@ -3870,10 +3686,40 @@ export declare const iRouterAbi: readonly [{
|
|
|
3870
3686
|
readonly internalType: "uint256";
|
|
3871
3687
|
readonly name: "amount";
|
|
3872
3688
|
readonly type: "uint256";
|
|
3689
|
+
}, {
|
|
3690
|
+
readonly internalType: "uint64";
|
|
3691
|
+
readonly name: "nonce";
|
|
3692
|
+
readonly type: "uint64";
|
|
3873
3693
|
}];
|
|
3874
|
-
readonly internalType: "struct IRouterEventsAndTypes.
|
|
3875
|
-
readonly name: "
|
|
3694
|
+
readonly internalType: "struct IRouterEventsAndTypes.PayTreasuryMessage";
|
|
3695
|
+
readonly name: "message";
|
|
3876
3696
|
readonly type: "tuple";
|
|
3697
|
+
}, {
|
|
3698
|
+
readonly internalType: "bytes";
|
|
3699
|
+
readonly name: "signature";
|
|
3700
|
+
readonly type: "bytes";
|
|
3701
|
+
}];
|
|
3702
|
+
readonly name: "payTreasury";
|
|
3703
|
+
readonly outputs: readonly [];
|
|
3704
|
+
readonly stateMutability: "nonpayable";
|
|
3705
|
+
readonly type: "function";
|
|
3706
|
+
}, {
|
|
3707
|
+
readonly inputs: readonly [{
|
|
3708
|
+
readonly internalType: "uint8";
|
|
3709
|
+
readonly name: "accountId";
|
|
3710
|
+
readonly type: "uint8";
|
|
3711
|
+
}, {
|
|
3712
|
+
readonly internalType: "TokenId";
|
|
3713
|
+
readonly name: "tokenId";
|
|
3714
|
+
readonly type: "uint16";
|
|
3715
|
+
}, {
|
|
3716
|
+
readonly internalType: "MarketId";
|
|
3717
|
+
readonly name: "marketId";
|
|
3718
|
+
readonly type: "uint24";
|
|
3719
|
+
}, {
|
|
3720
|
+
readonly internalType: "uint256";
|
|
3721
|
+
readonly name: "amount";
|
|
3722
|
+
readonly type: "uint256";
|
|
3877
3723
|
}];
|
|
3878
3724
|
readonly name: "payTreasury";
|
|
3879
3725
|
readonly outputs: readonly [];
|
|
@@ -12520,22 +12366,21 @@ export declare const iTradeModuleAbi: readonly [{
|
|
|
12520
12366
|
readonly type: "function";
|
|
12521
12367
|
}, {
|
|
12522
12368
|
readonly inputs: readonly [{
|
|
12523
|
-
readonly
|
|
12524
|
-
|
|
12525
|
-
|
|
12526
|
-
|
|
12527
|
-
|
|
12528
|
-
|
|
12529
|
-
|
|
12530
|
-
|
|
12531
|
-
|
|
12532
|
-
|
|
12533
|
-
|
|
12534
|
-
|
|
12535
|
-
|
|
12536
|
-
readonly
|
|
12537
|
-
readonly
|
|
12538
|
-
readonly type: "tuple";
|
|
12369
|
+
readonly internalType: "uint8";
|
|
12370
|
+
readonly name: "accountId";
|
|
12371
|
+
readonly type: "uint8";
|
|
12372
|
+
}, {
|
|
12373
|
+
readonly internalType: "TokenId";
|
|
12374
|
+
readonly name: "tokenId";
|
|
12375
|
+
readonly type: "uint16";
|
|
12376
|
+
}, {
|
|
12377
|
+
readonly internalType: "MarketId";
|
|
12378
|
+
readonly name: "marketId";
|
|
12379
|
+
readonly type: "uint24";
|
|
12380
|
+
}, {
|
|
12381
|
+
readonly internalType: "uint256";
|
|
12382
|
+
readonly name: "amount";
|
|
12383
|
+
readonly type: "uint256";
|
|
12539
12384
|
}];
|
|
12540
12385
|
readonly name: "payTreasury";
|
|
12541
12386
|
readonly outputs: readonly [];
|
|
@@ -13114,10 +12959,18 @@ export declare const iAuthModuleAbi: readonly [{
|
|
|
13114
12959
|
readonly internalType: "address";
|
|
13115
12960
|
readonly name: "root";
|
|
13116
12961
|
readonly type: "address";
|
|
12962
|
+
}, {
|
|
12963
|
+
readonly internalType: "uint8";
|
|
12964
|
+
readonly name: "accountId";
|
|
12965
|
+
readonly type: "uint8";
|
|
13117
12966
|
}, {
|
|
13118
12967
|
readonly internalType: "TokenId";
|
|
13119
12968
|
readonly name: "tokenId";
|
|
13120
12969
|
readonly type: "uint16";
|
|
12970
|
+
}, {
|
|
12971
|
+
readonly internalType: "MarketId";
|
|
12972
|
+
readonly name: "marketId";
|
|
12973
|
+
readonly type: "uint24";
|
|
13121
12974
|
}, {
|
|
13122
12975
|
readonly internalType: "uint256";
|
|
13123
12976
|
readonly name: "amount";
|
|
@@ -13127,7 +12980,7 @@ export declare const iAuthModuleAbi: readonly [{
|
|
|
13127
12980
|
readonly name: "nonce";
|
|
13128
12981
|
readonly type: "uint64";
|
|
13129
12982
|
}];
|
|
13130
|
-
readonly internalType: "struct IRouterEventsAndTypes.
|
|
12983
|
+
readonly internalType: "struct IRouterEventsAndTypes.PayTreasuryMessage";
|
|
13131
12984
|
readonly name: "message";
|
|
13132
12985
|
readonly type: "tuple";
|
|
13133
12986
|
}, {
|
|
@@ -13135,7 +12988,7 @@ export declare const iAuthModuleAbi: readonly [{
|
|
|
13135
12988
|
readonly name: "signature";
|
|
13136
12989
|
readonly type: "bytes";
|
|
13137
12990
|
}];
|
|
13138
|
-
readonly name: "
|
|
12991
|
+
readonly name: "payTreasury";
|
|
13139
12992
|
readonly outputs: readonly [];
|
|
13140
12993
|
readonly stateMutability: "nonpayable";
|
|
13141
12994
|
readonly type: "function";
|
|
@@ -13146,13 +12999,44 @@ export declare const iAuthModuleAbi: readonly [{
|
|
|
13146
12999
|
readonly name: "root";
|
|
13147
13000
|
readonly type: "address";
|
|
13148
13001
|
}, {
|
|
13149
|
-
readonly internalType: "
|
|
13150
|
-
readonly name: "
|
|
13151
|
-
readonly type: "
|
|
13152
|
-
}, {
|
|
13153
|
-
readonly internalType: "
|
|
13154
|
-
readonly name: "
|
|
13155
|
-
readonly type: "
|
|
13002
|
+
readonly internalType: "TokenId";
|
|
13003
|
+
readonly name: "tokenId";
|
|
13004
|
+
readonly type: "uint16";
|
|
13005
|
+
}, {
|
|
13006
|
+
readonly internalType: "uint256";
|
|
13007
|
+
readonly name: "amount";
|
|
13008
|
+
readonly type: "uint256";
|
|
13009
|
+
}, {
|
|
13010
|
+
readonly internalType: "uint64";
|
|
13011
|
+
readonly name: "nonce";
|
|
13012
|
+
readonly type: "uint64";
|
|
13013
|
+
}];
|
|
13014
|
+
readonly internalType: "struct IRouterEventsAndTypes.RequestVaultWithdrawalMessage";
|
|
13015
|
+
readonly name: "message";
|
|
13016
|
+
readonly type: "tuple";
|
|
13017
|
+
}, {
|
|
13018
|
+
readonly internalType: "bytes";
|
|
13019
|
+
readonly name: "signature";
|
|
13020
|
+
readonly type: "bytes";
|
|
13021
|
+
}];
|
|
13022
|
+
readonly name: "requestVaultWithdrawal";
|
|
13023
|
+
readonly outputs: readonly [];
|
|
13024
|
+
readonly stateMutability: "nonpayable";
|
|
13025
|
+
readonly type: "function";
|
|
13026
|
+
}, {
|
|
13027
|
+
readonly inputs: readonly [{
|
|
13028
|
+
readonly components: readonly [{
|
|
13029
|
+
readonly internalType: "address";
|
|
13030
|
+
readonly name: "root";
|
|
13031
|
+
readonly type: "address";
|
|
13032
|
+
}, {
|
|
13033
|
+
readonly internalType: "uint8";
|
|
13034
|
+
readonly name: "accountId";
|
|
13035
|
+
readonly type: "uint8";
|
|
13036
|
+
}, {
|
|
13037
|
+
readonly internalType: "address[]";
|
|
13038
|
+
readonly name: "agents";
|
|
13039
|
+
readonly type: "address[]";
|
|
13156
13040
|
}, {
|
|
13157
13041
|
readonly internalType: "uint64";
|
|
13158
13042
|
readonly name: "nonce";
|
|
@@ -14133,463 +14017,3 @@ export declare const iBOROS20Abi: readonly [{
|
|
|
14133
14017
|
readonly stateMutability: "view";
|
|
14134
14018
|
readonly type: "function";
|
|
14135
14019
|
}];
|
|
14136
|
-
export declare const iMultiTokenMerkleDistributorAbi: readonly [{
|
|
14137
|
-
readonly inputs: readonly [];
|
|
14138
|
-
readonly name: "InvalidMerkleProof";
|
|
14139
|
-
readonly type: "error";
|
|
14140
|
-
}, {
|
|
14141
|
-
readonly anonymous: false;
|
|
14142
|
-
readonly inputs: readonly [{
|
|
14143
|
-
readonly indexed: true;
|
|
14144
|
-
readonly internalType: "address";
|
|
14145
|
-
readonly name: "token";
|
|
14146
|
-
readonly type: "address";
|
|
14147
|
-
}, {
|
|
14148
|
-
readonly indexed: true;
|
|
14149
|
-
readonly internalType: "address";
|
|
14150
|
-
readonly name: "user";
|
|
14151
|
-
readonly type: "address";
|
|
14152
|
-
}, {
|
|
14153
|
-
readonly indexed: true;
|
|
14154
|
-
readonly internalType: "address";
|
|
14155
|
-
readonly name: "receiver";
|
|
14156
|
-
readonly type: "address";
|
|
14157
|
-
}, {
|
|
14158
|
-
readonly indexed: false;
|
|
14159
|
-
readonly internalType: "uint256";
|
|
14160
|
-
readonly name: "amount";
|
|
14161
|
-
readonly type: "uint256";
|
|
14162
|
-
}];
|
|
14163
|
-
readonly name: "Claimed";
|
|
14164
|
-
readonly type: "event";
|
|
14165
|
-
}, {
|
|
14166
|
-
readonly anonymous: false;
|
|
14167
|
-
readonly inputs: readonly [{
|
|
14168
|
-
readonly indexed: true;
|
|
14169
|
-
readonly internalType: "bytes32";
|
|
14170
|
-
readonly name: "merkleRoot";
|
|
14171
|
-
readonly type: "bytes32";
|
|
14172
|
-
}];
|
|
14173
|
-
readonly name: "SetMerkleRoot";
|
|
14174
|
-
readonly type: "event";
|
|
14175
|
-
}, {
|
|
14176
|
-
readonly anonymous: false;
|
|
14177
|
-
readonly inputs: readonly [{
|
|
14178
|
-
readonly indexed: true;
|
|
14179
|
-
readonly internalType: "address";
|
|
14180
|
-
readonly name: "token";
|
|
14181
|
-
readonly type: "address";
|
|
14182
|
-
}, {
|
|
14183
|
-
readonly indexed: true;
|
|
14184
|
-
readonly internalType: "address";
|
|
14185
|
-
readonly name: "user";
|
|
14186
|
-
readonly type: "address";
|
|
14187
|
-
}, {
|
|
14188
|
-
readonly indexed: false;
|
|
14189
|
-
readonly internalType: "uint256";
|
|
14190
|
-
readonly name: "amountClaimable";
|
|
14191
|
-
readonly type: "uint256";
|
|
14192
|
-
}];
|
|
14193
|
-
readonly name: "Verified";
|
|
14194
|
-
readonly type: "event";
|
|
14195
|
-
}, {
|
|
14196
|
-
readonly inputs: readonly [{
|
|
14197
|
-
readonly internalType: "address";
|
|
14198
|
-
readonly name: "receiver";
|
|
14199
|
-
readonly type: "address";
|
|
14200
|
-
}, {
|
|
14201
|
-
readonly internalType: "address[]";
|
|
14202
|
-
readonly name: "tokens";
|
|
14203
|
-
readonly type: "address[]";
|
|
14204
|
-
}, {
|
|
14205
|
-
readonly internalType: "uint256[]";
|
|
14206
|
-
readonly name: "totalAccrueds";
|
|
14207
|
-
readonly type: "uint256[]";
|
|
14208
|
-
}, {
|
|
14209
|
-
readonly internalType: "bytes32[][]";
|
|
14210
|
-
readonly name: "proofs";
|
|
14211
|
-
readonly type: "bytes32[][]";
|
|
14212
|
-
}];
|
|
14213
|
-
readonly name: "claim";
|
|
14214
|
-
readonly outputs: readonly [{
|
|
14215
|
-
readonly internalType: "uint256[]";
|
|
14216
|
-
readonly name: "amountOuts";
|
|
14217
|
-
readonly type: "uint256[]";
|
|
14218
|
-
}];
|
|
14219
|
-
readonly stateMutability: "nonpayable";
|
|
14220
|
-
readonly type: "function";
|
|
14221
|
-
}, {
|
|
14222
|
-
readonly inputs: readonly [{
|
|
14223
|
-
readonly internalType: "address";
|
|
14224
|
-
readonly name: "receiver";
|
|
14225
|
-
readonly type: "address";
|
|
14226
|
-
}, {
|
|
14227
|
-
readonly internalType: "address[]";
|
|
14228
|
-
readonly name: "tokens";
|
|
14229
|
-
readonly type: "address[]";
|
|
14230
|
-
}];
|
|
14231
|
-
readonly name: "claimVerified";
|
|
14232
|
-
readonly outputs: readonly [{
|
|
14233
|
-
readonly internalType: "uint256[]";
|
|
14234
|
-
readonly name: "amountOuts";
|
|
14235
|
-
readonly type: "uint256[]";
|
|
14236
|
-
}];
|
|
14237
|
-
readonly stateMutability: "nonpayable";
|
|
14238
|
-
readonly type: "function";
|
|
14239
|
-
}, {
|
|
14240
|
-
readonly inputs: readonly [{
|
|
14241
|
-
readonly internalType: "address";
|
|
14242
|
-
readonly name: "token";
|
|
14243
|
-
readonly type: "address";
|
|
14244
|
-
}, {
|
|
14245
|
-
readonly internalType: "address";
|
|
14246
|
-
readonly name: "user";
|
|
14247
|
-
readonly type: "address";
|
|
14248
|
-
}];
|
|
14249
|
-
readonly name: "claimed";
|
|
14250
|
-
readonly outputs: readonly [{
|
|
14251
|
-
readonly internalType: "uint256";
|
|
14252
|
-
readonly name: "";
|
|
14253
|
-
readonly type: "uint256";
|
|
14254
|
-
}];
|
|
14255
|
-
readonly stateMutability: "view";
|
|
14256
|
-
readonly type: "function";
|
|
14257
|
-
}, {
|
|
14258
|
-
readonly inputs: readonly [];
|
|
14259
|
-
readonly name: "merkleRoot";
|
|
14260
|
-
readonly outputs: readonly [{
|
|
14261
|
-
readonly internalType: "bytes32";
|
|
14262
|
-
readonly name: "";
|
|
14263
|
-
readonly type: "bytes32";
|
|
14264
|
-
}];
|
|
14265
|
-
readonly stateMutability: "view";
|
|
14266
|
-
readonly type: "function";
|
|
14267
|
-
}, {
|
|
14268
|
-
readonly inputs: readonly [{
|
|
14269
|
-
readonly internalType: "bytes32";
|
|
14270
|
-
readonly name: "newMerkleRoot";
|
|
14271
|
-
readonly type: "bytes32";
|
|
14272
|
-
}];
|
|
14273
|
-
readonly name: "setMerkleRoot";
|
|
14274
|
-
readonly outputs: readonly [];
|
|
14275
|
-
readonly stateMutability: "nonpayable";
|
|
14276
|
-
readonly type: "function";
|
|
14277
|
-
}, {
|
|
14278
|
-
readonly inputs: readonly [{
|
|
14279
|
-
readonly internalType: "address";
|
|
14280
|
-
readonly name: "token";
|
|
14281
|
-
readonly type: "address";
|
|
14282
|
-
}, {
|
|
14283
|
-
readonly internalType: "address";
|
|
14284
|
-
readonly name: "user";
|
|
14285
|
-
readonly type: "address";
|
|
14286
|
-
}];
|
|
14287
|
-
readonly name: "verified";
|
|
14288
|
-
readonly outputs: readonly [{
|
|
14289
|
-
readonly internalType: "uint256";
|
|
14290
|
-
readonly name: "";
|
|
14291
|
-
readonly type: "uint256";
|
|
14292
|
-
}];
|
|
14293
|
-
readonly stateMutability: "view";
|
|
14294
|
-
readonly type: "function";
|
|
14295
|
-
}, {
|
|
14296
|
-
readonly inputs: readonly [{
|
|
14297
|
-
readonly internalType: "address";
|
|
14298
|
-
readonly name: "user";
|
|
14299
|
-
readonly type: "address";
|
|
14300
|
-
}, {
|
|
14301
|
-
readonly internalType: "address[]";
|
|
14302
|
-
readonly name: "tokens";
|
|
14303
|
-
readonly type: "address[]";
|
|
14304
|
-
}, {
|
|
14305
|
-
readonly internalType: "uint256[]";
|
|
14306
|
-
readonly name: "totalAccrueds";
|
|
14307
|
-
readonly type: "uint256[]";
|
|
14308
|
-
}, {
|
|
14309
|
-
readonly internalType: "bytes32[][]";
|
|
14310
|
-
readonly name: "proofs";
|
|
14311
|
-
readonly type: "bytes32[][]";
|
|
14312
|
-
}];
|
|
14313
|
-
readonly name: "verify";
|
|
14314
|
-
readonly outputs: readonly [{
|
|
14315
|
-
readonly internalType: "uint256[]";
|
|
14316
|
-
readonly name: "amountClaimable";
|
|
14317
|
-
readonly type: "uint256[]";
|
|
14318
|
-
}];
|
|
14319
|
-
readonly stateMutability: "nonpayable";
|
|
14320
|
-
readonly type: "function";
|
|
14321
|
-
}];
|
|
14322
|
-
export declare const arbitrageExecutorAbi: readonly [{
|
|
14323
|
-
readonly inputs: readonly [{
|
|
14324
|
-
readonly internalType: "address";
|
|
14325
|
-
readonly name: "permissionController_";
|
|
14326
|
-
readonly type: "address";
|
|
14327
|
-
}, {
|
|
14328
|
-
readonly internalType: "address";
|
|
14329
|
-
readonly name: "router_";
|
|
14330
|
-
readonly type: "address";
|
|
14331
|
-
}, {
|
|
14332
|
-
readonly internalType: "address";
|
|
14333
|
-
readonly name: "marketHub_";
|
|
14334
|
-
readonly type: "address";
|
|
14335
|
-
}, {
|
|
14336
|
-
readonly internalType: "uint16";
|
|
14337
|
-
readonly name: "nTicksToTryAtOnce_";
|
|
14338
|
-
readonly type: "uint16";
|
|
14339
|
-
}];
|
|
14340
|
-
readonly stateMutability: "nonpayable";
|
|
14341
|
-
readonly type: "constructor";
|
|
14342
|
-
}, {
|
|
14343
|
-
readonly inputs: readonly [{
|
|
14344
|
-
readonly internalType: "address";
|
|
14345
|
-
readonly name: "target";
|
|
14346
|
-
readonly type: "address";
|
|
14347
|
-
}];
|
|
14348
|
-
readonly name: "AddressEmptyCode";
|
|
14349
|
-
readonly type: "error";
|
|
14350
|
-
}, {
|
|
14351
|
-
readonly inputs: readonly [{
|
|
14352
|
-
readonly internalType: "address";
|
|
14353
|
-
readonly name: "implementation";
|
|
14354
|
-
readonly type: "address";
|
|
14355
|
-
}];
|
|
14356
|
-
readonly name: "ERC1967InvalidImplementation";
|
|
14357
|
-
readonly type: "error";
|
|
14358
|
-
}, {
|
|
14359
|
-
readonly inputs: readonly [];
|
|
14360
|
-
readonly name: "ERC1967NonPayable";
|
|
14361
|
-
readonly type: "error";
|
|
14362
|
-
}, {
|
|
14363
|
-
readonly inputs: readonly [];
|
|
14364
|
-
readonly name: "FailedCall";
|
|
14365
|
-
readonly type: "error";
|
|
14366
|
-
}, {
|
|
14367
|
-
readonly inputs: readonly [];
|
|
14368
|
-
readonly name: "InsufficientProfit";
|
|
14369
|
-
readonly type: "error";
|
|
14370
|
-
}, {
|
|
14371
|
-
readonly inputs: readonly [];
|
|
14372
|
-
readonly name: "InvalidInitialization";
|
|
14373
|
-
readonly type: "error";
|
|
14374
|
-
}, {
|
|
14375
|
-
readonly inputs: readonly [];
|
|
14376
|
-
readonly name: "MarketMatured";
|
|
14377
|
-
readonly type: "error";
|
|
14378
|
-
}, {
|
|
14379
|
-
readonly inputs: readonly [];
|
|
14380
|
-
readonly name: "NotInitializing";
|
|
14381
|
-
readonly type: "error";
|
|
14382
|
-
}, {
|
|
14383
|
-
readonly inputs: readonly [];
|
|
14384
|
-
readonly name: "ProfitMismatch";
|
|
14385
|
-
readonly type: "error";
|
|
14386
|
-
}, {
|
|
14387
|
-
readonly inputs: readonly [{
|
|
14388
|
-
readonly internalType: "address";
|
|
14389
|
-
readonly name: "token";
|
|
14390
|
-
readonly type: "address";
|
|
14391
|
-
}];
|
|
14392
|
-
readonly name: "SafeERC20FailedOperation";
|
|
14393
|
-
readonly type: "error";
|
|
14394
|
-
}, {
|
|
14395
|
-
readonly inputs: readonly [];
|
|
14396
|
-
readonly name: "UUPSUnauthorizedCallContext";
|
|
14397
|
-
readonly type: "error";
|
|
14398
|
-
}, {
|
|
14399
|
-
readonly inputs: readonly [{
|
|
14400
|
-
readonly internalType: "bytes32";
|
|
14401
|
-
readonly name: "slot";
|
|
14402
|
-
readonly type: "bytes32";
|
|
14403
|
-
}];
|
|
14404
|
-
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
14405
|
-
readonly type: "error";
|
|
14406
|
-
}, {
|
|
14407
|
-
readonly inputs: readonly [];
|
|
14408
|
-
readonly name: "Unauthorized";
|
|
14409
|
-
readonly type: "error";
|
|
14410
|
-
}, {
|
|
14411
|
-
readonly anonymous: false;
|
|
14412
|
-
readonly inputs: readonly [{
|
|
14413
|
-
readonly indexed: false;
|
|
14414
|
-
readonly internalType: "uint64";
|
|
14415
|
-
readonly name: "version";
|
|
14416
|
-
readonly type: "uint64";
|
|
14417
|
-
}];
|
|
14418
|
-
readonly name: "Initialized";
|
|
14419
|
-
readonly type: "event";
|
|
14420
|
-
}, {
|
|
14421
|
-
readonly anonymous: false;
|
|
14422
|
-
readonly inputs: readonly [{
|
|
14423
|
-
readonly indexed: true;
|
|
14424
|
-
readonly internalType: "address";
|
|
14425
|
-
readonly name: "implementation";
|
|
14426
|
-
readonly type: "address";
|
|
14427
|
-
}];
|
|
14428
|
-
readonly name: "Upgraded";
|
|
14429
|
-
readonly type: "event";
|
|
14430
|
-
}, {
|
|
14431
|
-
readonly inputs: readonly [];
|
|
14432
|
-
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
14433
|
-
readonly outputs: readonly [{
|
|
14434
|
-
readonly internalType: "string";
|
|
14435
|
-
readonly name: "";
|
|
14436
|
-
readonly type: "string";
|
|
14437
|
-
}];
|
|
14438
|
-
readonly stateMutability: "view";
|
|
14439
|
-
readonly type: "function";
|
|
14440
|
-
}, {
|
|
14441
|
-
readonly inputs: readonly [{
|
|
14442
|
-
readonly internalType: "TokenId";
|
|
14443
|
-
readonly name: "tokenId";
|
|
14444
|
-
readonly type: "uint16";
|
|
14445
|
-
}, {
|
|
14446
|
-
readonly internalType: "uint256";
|
|
14447
|
-
readonly name: "amount";
|
|
14448
|
-
readonly type: "uint256";
|
|
14449
|
-
}];
|
|
14450
|
-
readonly name: "deposit";
|
|
14451
|
-
readonly outputs: readonly [];
|
|
14452
|
-
readonly stateMutability: "nonpayable";
|
|
14453
|
-
readonly type: "function";
|
|
14454
|
-
}, {
|
|
14455
|
-
readonly inputs: readonly [{
|
|
14456
|
-
readonly components: readonly [{
|
|
14457
|
-
readonly internalType: "enum Side";
|
|
14458
|
-
readonly name: "bookSide";
|
|
14459
|
-
readonly type: "uint8";
|
|
14460
|
-
}, {
|
|
14461
|
-
readonly internalType: "AMMId";
|
|
14462
|
-
readonly name: "ammId";
|
|
14463
|
-
readonly type: "uint24";
|
|
14464
|
-
}, {
|
|
14465
|
-
readonly internalType: "int256";
|
|
14466
|
-
readonly name: "minProfit";
|
|
14467
|
-
readonly type: "int256";
|
|
14468
|
-
}, {
|
|
14469
|
-
readonly internalType: "bool";
|
|
14470
|
-
readonly name: "maximizeProfit";
|
|
14471
|
-
readonly type: "bool";
|
|
14472
|
-
}];
|
|
14473
|
-
readonly internalType: "struct ArbitrageExecutor.ArbitrageParams";
|
|
14474
|
-
readonly name: "params";
|
|
14475
|
-
readonly type: "tuple";
|
|
14476
|
-
}];
|
|
14477
|
-
readonly name: "executeArbitrage";
|
|
14478
|
-
readonly outputs: readonly [{
|
|
14479
|
-
readonly internalType: "uint256";
|
|
14480
|
-
readonly name: "arbSize";
|
|
14481
|
-
readonly type: "uint256";
|
|
14482
|
-
}, {
|
|
14483
|
-
readonly internalType: "int256";
|
|
14484
|
-
readonly name: "profit";
|
|
14485
|
-
readonly type: "int256";
|
|
14486
|
-
}];
|
|
14487
|
-
readonly stateMutability: "nonpayable";
|
|
14488
|
-
readonly type: "function";
|
|
14489
|
-
}, {
|
|
14490
|
-
readonly inputs: readonly [];
|
|
14491
|
-
readonly name: "initialize";
|
|
14492
|
-
readonly outputs: readonly [];
|
|
14493
|
-
readonly stateMutability: "nonpayable";
|
|
14494
|
-
readonly type: "function";
|
|
14495
|
-
}, {
|
|
14496
|
-
readonly inputs: readonly [];
|
|
14497
|
-
readonly name: "marketHub";
|
|
14498
|
-
readonly outputs: readonly [{
|
|
14499
|
-
readonly internalType: "contract IMarketHub";
|
|
14500
|
-
readonly name: "";
|
|
14501
|
-
readonly type: "address";
|
|
14502
|
-
}];
|
|
14503
|
-
readonly stateMutability: "view";
|
|
14504
|
-
readonly type: "function";
|
|
14505
|
-
}, {
|
|
14506
|
-
readonly inputs: readonly [];
|
|
14507
|
-
readonly name: "nTicksToTryAtOnce";
|
|
14508
|
-
readonly outputs: readonly [{
|
|
14509
|
-
readonly internalType: "uint16";
|
|
14510
|
-
readonly name: "";
|
|
14511
|
-
readonly type: "uint16";
|
|
14512
|
-
}];
|
|
14513
|
-
readonly stateMutability: "view";
|
|
14514
|
-
readonly type: "function";
|
|
14515
|
-
}, {
|
|
14516
|
-
readonly inputs: readonly [{
|
|
14517
|
-
readonly internalType: "bool";
|
|
14518
|
-
readonly name: "cross";
|
|
14519
|
-
readonly type: "bool";
|
|
14520
|
-
}, {
|
|
14521
|
-
readonly internalType: "MarketId";
|
|
14522
|
-
readonly name: "marketId";
|
|
14523
|
-
readonly type: "uint24";
|
|
14524
|
-
}];
|
|
14525
|
-
readonly name: "payMarketEntranceFee";
|
|
14526
|
-
readonly outputs: readonly [];
|
|
14527
|
-
readonly stateMutability: "nonpayable";
|
|
14528
|
-
readonly type: "function";
|
|
14529
|
-
}, {
|
|
14530
|
-
readonly inputs: readonly [];
|
|
14531
|
-
readonly name: "proxiableUUID";
|
|
14532
|
-
readonly outputs: readonly [{
|
|
14533
|
-
readonly internalType: "bytes32";
|
|
14534
|
-
readonly name: "";
|
|
14535
|
-
readonly type: "bytes32";
|
|
14536
|
-
}];
|
|
14537
|
-
readonly stateMutability: "view";
|
|
14538
|
-
readonly type: "function";
|
|
14539
|
-
}, {
|
|
14540
|
-
readonly inputs: readonly [{
|
|
14541
|
-
readonly internalType: "TokenId";
|
|
14542
|
-
readonly name: "tokenId";
|
|
14543
|
-
readonly type: "uint16";
|
|
14544
|
-
}, {
|
|
14545
|
-
readonly internalType: "uint256";
|
|
14546
|
-
readonly name: "amount";
|
|
14547
|
-
readonly type: "uint256";
|
|
14548
|
-
}];
|
|
14549
|
-
readonly name: "requestWithdrawal";
|
|
14550
|
-
readonly outputs: readonly [];
|
|
14551
|
-
readonly stateMutability: "nonpayable";
|
|
14552
|
-
readonly type: "function";
|
|
14553
|
-
}, {
|
|
14554
|
-
readonly inputs: readonly [];
|
|
14555
|
-
readonly name: "router";
|
|
14556
|
-
readonly outputs: readonly [{
|
|
14557
|
-
readonly internalType: "contract IRouter";
|
|
14558
|
-
readonly name: "";
|
|
14559
|
-
readonly type: "address";
|
|
14560
|
-
}];
|
|
14561
|
-
readonly stateMutability: "view";
|
|
14562
|
-
readonly type: "function";
|
|
14563
|
-
}, {
|
|
14564
|
-
readonly inputs: readonly [{
|
|
14565
|
-
readonly internalType: "address";
|
|
14566
|
-
readonly name: "newImplementation";
|
|
14567
|
-
readonly type: "address";
|
|
14568
|
-
}, {
|
|
14569
|
-
readonly internalType: "bytes";
|
|
14570
|
-
readonly name: "data";
|
|
14571
|
-
readonly type: "bytes";
|
|
14572
|
-
}];
|
|
14573
|
-
readonly name: "upgradeToAndCall";
|
|
14574
|
-
readonly outputs: readonly [];
|
|
14575
|
-
readonly stateMutability: "payable";
|
|
14576
|
-
readonly type: "function";
|
|
14577
|
-
}, {
|
|
14578
|
-
readonly inputs: readonly [{
|
|
14579
|
-
readonly internalType: "TokenId";
|
|
14580
|
-
readonly name: "tokenId";
|
|
14581
|
-
readonly type: "uint16";
|
|
14582
|
-
}, {
|
|
14583
|
-
readonly internalType: "uint256";
|
|
14584
|
-
readonly name: "amount";
|
|
14585
|
-
readonly type: "uint256";
|
|
14586
|
-
}, {
|
|
14587
|
-
readonly internalType: "address";
|
|
14588
|
-
readonly name: "receiver";
|
|
14589
|
-
readonly type: "address";
|
|
14590
|
-
}];
|
|
14591
|
-
readonly name: "withdraw";
|
|
14592
|
-
readonly outputs: readonly [];
|
|
14593
|
-
readonly stateMutability: "nonpayable";
|
|
14594
|
-
readonly type: "function";
|
|
14595
|
-
}];
|