@pendle/sdk-boros 0.3.8 → 0.3.9
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 +679 -103
- package/dist/contracts/viemAbis.js +358 -47
- package/dist/contracts/viemAbis.js.map +1 -1
- package/dist/entities/amm/amm.js +3 -9
- package/dist/entities/amm/amm.js.map +1 -1
- package/dist/entities/exchange/exchange.d.ts +456 -0
- package/dist/entities/exchange/utils.d.ts +114 -0
- package/dist/errors/PendleContractError/customHandler.d.ts +2 -0
- package/dist/errors/PendleContractError/customHandler.js +9 -0
- package/dist/errors/PendleContractError/customHandler.js.map +1 -0
- package/dist/errors/PendleContractError/defaultHandler.d.ts +1 -0
- package/dist/errors/PendleContractError/defaultHandler.js +1 -0
- package/dist/errors/PendleContractError/defaultHandler.js.map +1 -1
- package/dist/errors/PendleContractError/index.d.ts +1 -0
- package/dist/errors/PendleContractError/index.js +1 -0
- package/dist/errors/PendleContractError/index.js.map +1 -1
- package/dist/errors/PendleContractError/type.d.ts +14 -3
- package/dist/errors/ViemErrorDecoder.d.ts +2 -0
- package/dist/errors/ViemErrorDecoder.js +4 -0
- package/dist/errors/ViemErrorDecoder.js.map +1 -1
- package/dist/types/encoders.d.ts +1 -2
- package/dist/types/encoders.js +1 -1
- package/dist/types/encoders.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,191 @@
|
|
|
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
|
+
}];
|
|
1
189
|
export declare const iMarketHubEntryOnlyAbi: readonly [{
|
|
2
190
|
readonly inputs: readonly [{
|
|
3
191
|
readonly internalType: "MarketId";
|
|
@@ -3416,8 +3604,12 @@ export declare const iRouterAbi: readonly [{
|
|
|
3416
3604
|
readonly name: "batchSimulate";
|
|
3417
3605
|
readonly outputs: readonly [{
|
|
3418
3606
|
readonly internalType: "bytes[]";
|
|
3419
|
-
readonly name: "";
|
|
3607
|
+
readonly name: "results";
|
|
3420
3608
|
readonly type: "bytes[]";
|
|
3609
|
+
}, {
|
|
3610
|
+
readonly internalType: "uint256[]";
|
|
3611
|
+
readonly name: "gasUsed";
|
|
3612
|
+
readonly type: "uint256[]";
|
|
3421
3613
|
}];
|
|
3422
3614
|
readonly stateMutability: "nonpayable";
|
|
3423
3615
|
readonly type: "function";
|
|
@@ -3667,17 +3859,9 @@ export declare const iRouterAbi: readonly [{
|
|
|
3667
3859
|
}, {
|
|
3668
3860
|
readonly inputs: readonly [{
|
|
3669
3861
|
readonly components: readonly [{
|
|
3670
|
-
readonly internalType: "
|
|
3671
|
-
readonly name: "
|
|
3672
|
-
readonly type: "
|
|
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";
|
|
3862
|
+
readonly internalType: "bool";
|
|
3863
|
+
readonly name: "cross";
|
|
3864
|
+
readonly type: "bool";
|
|
3681
3865
|
}, {
|
|
3682
3866
|
readonly internalType: "MarketId";
|
|
3683
3867
|
readonly name: "marketId";
|
|
@@ -3686,40 +3870,10 @@ export declare const iRouterAbi: readonly [{
|
|
|
3686
3870
|
readonly internalType: "uint256";
|
|
3687
3871
|
readonly name: "amount";
|
|
3688
3872
|
readonly type: "uint256";
|
|
3689
|
-
}, {
|
|
3690
|
-
readonly internalType: "uint64";
|
|
3691
|
-
readonly name: "nonce";
|
|
3692
|
-
readonly type: "uint64";
|
|
3693
3873
|
}];
|
|
3694
|
-
readonly internalType: "struct IRouterEventsAndTypes.
|
|
3695
|
-
readonly name: "
|
|
3874
|
+
readonly internalType: "struct IRouterEventsAndTypes.PayTreasuryReq";
|
|
3875
|
+
readonly name: "req";
|
|
3696
3876
|
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";
|
|
3723
3877
|
}];
|
|
3724
3878
|
readonly name: "payTreasury";
|
|
3725
3879
|
readonly outputs: readonly [];
|
|
@@ -12366,21 +12520,22 @@ export declare const iTradeModuleAbi: readonly [{
|
|
|
12366
12520
|
readonly type: "function";
|
|
12367
12521
|
}, {
|
|
12368
12522
|
readonly inputs: readonly [{
|
|
12369
|
-
readonly
|
|
12370
|
-
|
|
12371
|
-
|
|
12372
|
-
|
|
12373
|
-
|
|
12374
|
-
|
|
12375
|
-
|
|
12376
|
-
|
|
12377
|
-
|
|
12378
|
-
|
|
12379
|
-
|
|
12380
|
-
|
|
12381
|
-
|
|
12382
|
-
readonly
|
|
12383
|
-
readonly
|
|
12523
|
+
readonly components: readonly [{
|
|
12524
|
+
readonly internalType: "bool";
|
|
12525
|
+
readonly name: "cross";
|
|
12526
|
+
readonly type: "bool";
|
|
12527
|
+
}, {
|
|
12528
|
+
readonly internalType: "MarketId";
|
|
12529
|
+
readonly name: "marketId";
|
|
12530
|
+
readonly type: "uint24";
|
|
12531
|
+
}, {
|
|
12532
|
+
readonly internalType: "uint256";
|
|
12533
|
+
readonly name: "amount";
|
|
12534
|
+
readonly type: "uint256";
|
|
12535
|
+
}];
|
|
12536
|
+
readonly internalType: "struct IRouterEventsAndTypes.PayTreasuryReq";
|
|
12537
|
+
readonly name: "req";
|
|
12538
|
+
readonly type: "tuple";
|
|
12384
12539
|
}];
|
|
12385
12540
|
readonly name: "payTreasury";
|
|
12386
12541
|
readonly outputs: readonly [];
|
|
@@ -12959,18 +13114,10 @@ export declare const iAuthModuleAbi: readonly [{
|
|
|
12959
13114
|
readonly internalType: "address";
|
|
12960
13115
|
readonly name: "root";
|
|
12961
13116
|
readonly type: "address";
|
|
12962
|
-
}, {
|
|
12963
|
-
readonly internalType: "uint8";
|
|
12964
|
-
readonly name: "accountId";
|
|
12965
|
-
readonly type: "uint8";
|
|
12966
13117
|
}, {
|
|
12967
13118
|
readonly internalType: "TokenId";
|
|
12968
13119
|
readonly name: "tokenId";
|
|
12969
13120
|
readonly type: "uint16";
|
|
12970
|
-
}, {
|
|
12971
|
-
readonly internalType: "MarketId";
|
|
12972
|
-
readonly name: "marketId";
|
|
12973
|
-
readonly type: "uint24";
|
|
12974
13121
|
}, {
|
|
12975
13122
|
readonly internalType: "uint256";
|
|
12976
13123
|
readonly name: "amount";
|
|
@@ -12980,7 +13127,7 @@ export declare const iAuthModuleAbi: readonly [{
|
|
|
12980
13127
|
readonly name: "nonce";
|
|
12981
13128
|
readonly type: "uint64";
|
|
12982
13129
|
}];
|
|
12983
|
-
readonly internalType: "struct IRouterEventsAndTypes.
|
|
13130
|
+
readonly internalType: "struct IRouterEventsAndTypes.RequestVaultWithdrawalMessage";
|
|
12984
13131
|
readonly name: "message";
|
|
12985
13132
|
readonly type: "tuple";
|
|
12986
13133
|
}, {
|
|
@@ -12988,7 +13135,7 @@ export declare const iAuthModuleAbi: readonly [{
|
|
|
12988
13135
|
readonly name: "signature";
|
|
12989
13136
|
readonly type: "bytes";
|
|
12990
13137
|
}];
|
|
12991
|
-
readonly name: "
|
|
13138
|
+
readonly name: "requestVaultWithdrawal";
|
|
12992
13139
|
readonly outputs: readonly [];
|
|
12993
13140
|
readonly stateMutability: "nonpayable";
|
|
12994
13141
|
readonly type: "function";
|
|
@@ -12999,40 +13146,9 @@ export declare const iAuthModuleAbi: readonly [{
|
|
|
12999
13146
|
readonly name: "root";
|
|
13000
13147
|
readonly type: "address";
|
|
13001
13148
|
}, {
|
|
13002
|
-
readonly internalType: "
|
|
13003
|
-
readonly name: "
|
|
13004
|
-
readonly type: "
|
|
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";
|
|
13149
|
+
readonly internalType: "uint8";
|
|
13150
|
+
readonly name: "accountId";
|
|
13151
|
+
readonly type: "uint8";
|
|
13036
13152
|
}, {
|
|
13037
13153
|
readonly internalType: "address[]";
|
|
13038
13154
|
readonly name: "agents";
|
|
@@ -14017,3 +14133,463 @@ export declare const iBOROS20Abi: readonly [{
|
|
|
14017
14133
|
readonly stateMutability: "view";
|
|
14018
14134
|
readonly type: "function";
|
|
14019
14135
|
}];
|
|
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
|
+
}];
|