@yodlpay/tokenlists 0.9.0-alpha.1 → 0.9.0-alpha.10
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/abis-ts/YodlRouterV0.8.abi.d.ts +114 -0
- package/dist/abis-ts/YodlRouterV0.9.abi.d.ts +512 -392
- package/dist/chainlist-v1.json +6 -6
- package/dist/fiatCurrencies.json +94 -43
- package/dist/index.d.ts +730 -436
- package/dist/pricefeeds.json +12224 -2333
- package/dist/tokenlist-featured.json +284 -213
- package/dist/tokenlist-generated.json +1694 -511
- package/dist/tokenlists.cjs.development.js +23582 -12163
- package/dist/tokenlists.cjs.development.js.map +1 -1
- package/dist/tokenlists.cjs.production.min.js +1 -1
- package/dist/tokenlists.cjs.production.min.js.map +1 -1
- package/dist/tokenlists.esm.js +23585 -12168
- package/dist/tokenlists.esm.js.map +1 -1
- package/dist/types.d.ts +8 -15
- package/dist/update.d.ts +27 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,44 +1,14 @@
|
|
|
1
|
-
import { ChainInfo, RouterInfo, TokenInfo } from './types';
|
|
2
1
|
import { AbiVersion } from './abis';
|
|
2
|
+
import { ChainInfo, RouterInfo, TokenInfo } from './types';
|
|
3
3
|
export * from './abis';
|
|
4
|
-
export * from './types';
|
|
5
|
-
export * from './isVersionUpdate';
|
|
6
|
-
export * from './getVersionUpgrade';
|
|
7
4
|
export * from './diffTokenLists';
|
|
5
|
+
export * from './getVersionUpgrade';
|
|
6
|
+
export * from './isVersionUpdate';
|
|
8
7
|
export * from './minVersionBump';
|
|
9
8
|
export * from './nextVersion';
|
|
9
|
+
export * from './types';
|
|
10
10
|
export * from './versionComparator';
|
|
11
|
-
export declare const tokenlist:
|
|
12
|
-
chainId: number;
|
|
13
|
-
coinGeckoId: string;
|
|
14
|
-
name: string;
|
|
15
|
-
symbol: string;
|
|
16
|
-
logoUri: string;
|
|
17
|
-
decimals: number;
|
|
18
|
-
tags: string[];
|
|
19
|
-
address: string;
|
|
20
|
-
currency?: undefined;
|
|
21
|
-
} | {
|
|
22
|
-
chainId: number;
|
|
23
|
-
coinGeckoId: string;
|
|
24
|
-
name: string;
|
|
25
|
-
symbol: string;
|
|
26
|
-
currency: string;
|
|
27
|
-
logoUri: string;
|
|
28
|
-
decimals: number;
|
|
29
|
-
tags: string[];
|
|
30
|
-
address: string;
|
|
31
|
-
} | {
|
|
32
|
-
chainId: number;
|
|
33
|
-
name: string;
|
|
34
|
-
symbol: string;
|
|
35
|
-
logoUri: string;
|
|
36
|
-
decimals: number;
|
|
37
|
-
tags: string[];
|
|
38
|
-
address: string;
|
|
39
|
-
coinGeckoId?: undefined;
|
|
40
|
-
currency?: undefined;
|
|
41
|
-
})[];
|
|
11
|
+
export declare const tokenlist: TokenInfo[];
|
|
42
12
|
export declare function getCurveRouterAddress(chainId: number): string;
|
|
43
13
|
export declare function getChains(): ChainInfo[];
|
|
44
14
|
export declare function getChain(chainId: number): ChainInfo;
|
|
@@ -54,6 +24,28 @@ export declare function getPriceFeeds(chainId: number): ({
|
|
|
54
24
|
output: string;
|
|
55
25
|
type: string;
|
|
56
26
|
updateInterval: number;
|
|
27
|
+
} | {
|
|
28
|
+
decimals: number;
|
|
29
|
+
chainId: number;
|
|
30
|
+
name: string;
|
|
31
|
+
assetName: string;
|
|
32
|
+
address: string;
|
|
33
|
+
path: string;
|
|
34
|
+
input: string;
|
|
35
|
+
type: string;
|
|
36
|
+
updateInterval: number;
|
|
37
|
+
output?: undefined;
|
|
38
|
+
} | {
|
|
39
|
+
decimals: number;
|
|
40
|
+
chainId: number;
|
|
41
|
+
name: string;
|
|
42
|
+
address: string;
|
|
43
|
+
path: string;
|
|
44
|
+
type: string;
|
|
45
|
+
updateInterval: number;
|
|
46
|
+
assetName?: undefined;
|
|
47
|
+
input?: undefined;
|
|
48
|
+
output?: undefined;
|
|
57
49
|
} | {
|
|
58
50
|
decimals: number;
|
|
59
51
|
chainId: number;
|
|
@@ -77,6 +69,28 @@ export declare function getTokenFeeds(chainId: number): ({
|
|
|
77
69
|
output: string;
|
|
78
70
|
type: string;
|
|
79
71
|
updateInterval: number;
|
|
72
|
+
} | {
|
|
73
|
+
decimals: number;
|
|
74
|
+
chainId: number;
|
|
75
|
+
name: string;
|
|
76
|
+
assetName: string;
|
|
77
|
+
address: string;
|
|
78
|
+
path: string;
|
|
79
|
+
input: string;
|
|
80
|
+
type: string;
|
|
81
|
+
updateInterval: number;
|
|
82
|
+
output?: undefined;
|
|
83
|
+
} | {
|
|
84
|
+
decimals: number;
|
|
85
|
+
chainId: number;
|
|
86
|
+
name: string;
|
|
87
|
+
address: string;
|
|
88
|
+
path: string;
|
|
89
|
+
type: string;
|
|
90
|
+
updateInterval: number;
|
|
91
|
+
assetName?: undefined;
|
|
92
|
+
input?: undefined;
|
|
93
|
+
output?: undefined;
|
|
80
94
|
} | {
|
|
81
95
|
decimals: number;
|
|
82
96
|
chainId: number;
|
|
@@ -100,6 +114,28 @@ export declare function getFiatFeeds(chainId: number): ({
|
|
|
100
114
|
output: string;
|
|
101
115
|
type: string;
|
|
102
116
|
updateInterval: number;
|
|
117
|
+
} | {
|
|
118
|
+
decimals: number;
|
|
119
|
+
chainId: number;
|
|
120
|
+
name: string;
|
|
121
|
+
assetName: string;
|
|
122
|
+
address: string;
|
|
123
|
+
path: string;
|
|
124
|
+
input: string;
|
|
125
|
+
type: string;
|
|
126
|
+
updateInterval: number;
|
|
127
|
+
output?: undefined;
|
|
128
|
+
} | {
|
|
129
|
+
decimals: number;
|
|
130
|
+
chainId: number;
|
|
131
|
+
name: string;
|
|
132
|
+
address: string;
|
|
133
|
+
path: string;
|
|
134
|
+
type: string;
|
|
135
|
+
updateInterval: number;
|
|
136
|
+
assetName?: undefined;
|
|
137
|
+
input?: undefined;
|
|
138
|
+
output?: undefined;
|
|
103
139
|
} | {
|
|
104
140
|
decimals: number;
|
|
105
141
|
chainId: number;
|
|
@@ -112,15 +148,17 @@ export declare function getFiatFeeds(chainId: number): ({
|
|
|
112
148
|
assetName?: undefined;
|
|
113
149
|
input?: undefined;
|
|
114
150
|
})[];
|
|
115
|
-
export declare function getFiatCurrency(
|
|
151
|
+
export declare function getFiatCurrency(code: string): {
|
|
152
|
+
code: string;
|
|
153
|
+
decimals: number;
|
|
116
154
|
name: string;
|
|
117
155
|
symbol: string;
|
|
118
|
-
sign: string;
|
|
119
156
|
} | undefined;
|
|
120
157
|
export declare function getFiatCurrencies(): {
|
|
158
|
+
code: string;
|
|
159
|
+
decimals: number;
|
|
121
160
|
name: string;
|
|
122
161
|
symbol: string;
|
|
123
|
-
sign: string;
|
|
124
162
|
}[];
|
|
125
163
|
export declare function getPriceFeed(chainId: number, baseSymbol: string, quoteSymbol?: string): {
|
|
126
164
|
decimals: number;
|
|
@@ -133,6 +171,28 @@ export declare function getPriceFeed(chainId: number, baseSymbol: string, quoteS
|
|
|
133
171
|
output: string;
|
|
134
172
|
type: string;
|
|
135
173
|
updateInterval: number;
|
|
174
|
+
} | {
|
|
175
|
+
decimals: number;
|
|
176
|
+
chainId: number;
|
|
177
|
+
name: string;
|
|
178
|
+
assetName: string;
|
|
179
|
+
address: string;
|
|
180
|
+
path: string;
|
|
181
|
+
input: string;
|
|
182
|
+
type: string;
|
|
183
|
+
updateInterval: number;
|
|
184
|
+
output?: undefined;
|
|
185
|
+
} | {
|
|
186
|
+
decimals: number;
|
|
187
|
+
chainId: number;
|
|
188
|
+
name: string;
|
|
189
|
+
address: string;
|
|
190
|
+
path: string;
|
|
191
|
+
type: string;
|
|
192
|
+
updateInterval: number;
|
|
193
|
+
assetName?: undefined;
|
|
194
|
+
input?: undefined;
|
|
195
|
+
output?: undefined;
|
|
136
196
|
} | {
|
|
137
197
|
decimals: number;
|
|
138
198
|
chainId: number;
|
|
@@ -3572,6 +3632,10 @@ export declare function getRouterAbi(version: AbiVersion): readonly [{
|
|
|
3572
3632
|
}];
|
|
3573
3633
|
readonly name: "ECDSAInvalidSignatureS";
|
|
3574
3634
|
readonly type: "error";
|
|
3635
|
+
}, {
|
|
3636
|
+
readonly inputs: readonly [];
|
|
3637
|
+
readonly name: "ReentrancyGuardReentrantCall";
|
|
3638
|
+
readonly type: "error";
|
|
3575
3639
|
}, {
|
|
3576
3640
|
readonly anonymous: false;
|
|
3577
3641
|
readonly inputs: readonly [{
|
|
@@ -4208,6 +4272,116 @@ export declare function getRouterAbi(version: AbiVersion): readonly [{
|
|
|
4208
4272
|
}];
|
|
4209
4273
|
readonly stateMutability: "payable";
|
|
4210
4274
|
readonly type: "function";
|
|
4275
|
+
}, {
|
|
4276
|
+
readonly inputs: readonly [{
|
|
4277
|
+
readonly components: readonly [{
|
|
4278
|
+
readonly internalType: "address";
|
|
4279
|
+
readonly name: "sender";
|
|
4280
|
+
readonly type: "address";
|
|
4281
|
+
}, {
|
|
4282
|
+
readonly internalType: "address";
|
|
4283
|
+
readonly name: "receiver";
|
|
4284
|
+
readonly type: "address";
|
|
4285
|
+
}, {
|
|
4286
|
+
readonly internalType: "uint256";
|
|
4287
|
+
readonly name: "amountIn";
|
|
4288
|
+
readonly type: "uint256";
|
|
4289
|
+
}, {
|
|
4290
|
+
readonly internalType: "uint256";
|
|
4291
|
+
readonly name: "amountOut";
|
|
4292
|
+
readonly type: "uint256";
|
|
4293
|
+
}, {
|
|
4294
|
+
readonly internalType: "bytes32";
|
|
4295
|
+
readonly name: "memo";
|
|
4296
|
+
readonly type: "bytes32";
|
|
4297
|
+
}, {
|
|
4298
|
+
readonly internalType: "bytes";
|
|
4299
|
+
readonly name: "path";
|
|
4300
|
+
readonly type: "bytes";
|
|
4301
|
+
}, {
|
|
4302
|
+
readonly components: readonly [{
|
|
4303
|
+
readonly internalType: "address";
|
|
4304
|
+
readonly name: "feedAddress";
|
|
4305
|
+
readonly type: "address";
|
|
4306
|
+
}, {
|
|
4307
|
+
readonly internalType: "int8";
|
|
4308
|
+
readonly name: "feedType";
|
|
4309
|
+
readonly type: "int8";
|
|
4310
|
+
}, {
|
|
4311
|
+
readonly internalType: "string";
|
|
4312
|
+
readonly name: "currency";
|
|
4313
|
+
readonly type: "string";
|
|
4314
|
+
}, {
|
|
4315
|
+
readonly internalType: "uint256";
|
|
4316
|
+
readonly name: "amount";
|
|
4317
|
+
readonly type: "uint256";
|
|
4318
|
+
}, {
|
|
4319
|
+
readonly internalType: "uint256";
|
|
4320
|
+
readonly name: "deadline";
|
|
4321
|
+
readonly type: "uint256";
|
|
4322
|
+
}, {
|
|
4323
|
+
readonly internalType: "bytes";
|
|
4324
|
+
readonly name: "signature";
|
|
4325
|
+
readonly type: "bytes";
|
|
4326
|
+
}];
|
|
4327
|
+
readonly internalType: "struct AbstractYodlRouter.PriceFeed[2]";
|
|
4328
|
+
readonly name: "priceFeeds";
|
|
4329
|
+
readonly type: "tuple[2]";
|
|
4330
|
+
}, {
|
|
4331
|
+
readonly internalType: "address";
|
|
4332
|
+
readonly name: "extraFeeReceiver";
|
|
4333
|
+
readonly type: "address";
|
|
4334
|
+
}, {
|
|
4335
|
+
readonly internalType: "uint256";
|
|
4336
|
+
readonly name: "extraFeeBps";
|
|
4337
|
+
readonly type: "uint256";
|
|
4338
|
+
}, {
|
|
4339
|
+
readonly internalType: "enum YodlUniswapRouter.SwapType";
|
|
4340
|
+
readonly name: "swapType";
|
|
4341
|
+
readonly type: "uint8";
|
|
4342
|
+
}, {
|
|
4343
|
+
readonly internalType: "uint256";
|
|
4344
|
+
readonly name: "yd";
|
|
4345
|
+
readonly type: "uint256";
|
|
4346
|
+
}, {
|
|
4347
|
+
readonly components: readonly [{
|
|
4348
|
+
readonly internalType: "address";
|
|
4349
|
+
readonly name: "guardAddress";
|
|
4350
|
+
readonly type: "address";
|
|
4351
|
+
}, {
|
|
4352
|
+
readonly internalType: "bytes[]";
|
|
4353
|
+
readonly name: "payload";
|
|
4354
|
+
readonly type: "bytes[]";
|
|
4355
|
+
}];
|
|
4356
|
+
readonly internalType: "struct AbstractYodlRouter.Guard[]";
|
|
4357
|
+
readonly name: "guards";
|
|
4358
|
+
readonly type: "tuple[]";
|
|
4359
|
+
}, {
|
|
4360
|
+
readonly components: readonly [{
|
|
4361
|
+
readonly internalType: "address";
|
|
4362
|
+
readonly name: "webhookAddress";
|
|
4363
|
+
readonly type: "address";
|
|
4364
|
+
}, {
|
|
4365
|
+
readonly internalType: "bytes[]";
|
|
4366
|
+
readonly name: "payload";
|
|
4367
|
+
readonly type: "bytes[]";
|
|
4368
|
+
}];
|
|
4369
|
+
readonly internalType: "struct AbstractYodlRouter.Webhook[]";
|
|
4370
|
+
readonly name: "webhooks";
|
|
4371
|
+
readonly type: "tuple[]";
|
|
4372
|
+
}];
|
|
4373
|
+
readonly internalType: "struct YodlUniswapRouter.YodlUniswapParams";
|
|
4374
|
+
readonly name: "params";
|
|
4375
|
+
readonly type: "tuple";
|
|
4376
|
+
}];
|
|
4377
|
+
readonly name: "yodlWithPancake";
|
|
4378
|
+
readonly outputs: readonly [{
|
|
4379
|
+
readonly internalType: "uint256";
|
|
4380
|
+
readonly name: "";
|
|
4381
|
+
readonly type: "uint256";
|
|
4382
|
+
}];
|
|
4383
|
+
readonly stateMutability: "payable";
|
|
4384
|
+
readonly type: "function";
|
|
4211
4385
|
}, {
|
|
4212
4386
|
readonly inputs: readonly [{
|
|
4213
4387
|
readonly components: readonly [{
|
|
@@ -4420,986 +4594,1106 @@ export declare function getRouterAbi(version: AbiVersion): readonly [{
|
|
|
4420
4594
|
readonly stateMutability: "payable";
|
|
4421
4595
|
readonly type: "receive";
|
|
4422
4596
|
}] | readonly [{
|
|
4423
|
-
readonly inputs: readonly [];
|
|
4424
|
-
readonly stateMutability: "nonpayable";
|
|
4425
4597
|
readonly type: "constructor";
|
|
4426
|
-
}, {
|
|
4427
4598
|
readonly inputs: readonly [];
|
|
4428
|
-
readonly
|
|
4429
|
-
readonly type: "error";
|
|
4599
|
+
readonly stateMutability: "nonpayable";
|
|
4430
4600
|
}, {
|
|
4431
|
-
readonly
|
|
4432
|
-
|
|
4433
|
-
readonly name: "length";
|
|
4434
|
-
readonly type: "uint256";
|
|
4435
|
-
}];
|
|
4436
|
-
readonly name: "ECDSAInvalidSignatureLength";
|
|
4437
|
-
readonly type: "error";
|
|
4601
|
+
readonly type: "receive";
|
|
4602
|
+
readonly stateMutability: "payable";
|
|
4438
4603
|
}, {
|
|
4439
|
-
readonly
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4604
|
+
readonly type: "function";
|
|
4605
|
+
readonly name: "CHAINLINK_FEED";
|
|
4606
|
+
readonly inputs: readonly [];
|
|
4607
|
+
readonly outputs: readonly [{
|
|
4608
|
+
readonly name: "";
|
|
4609
|
+
readonly type: "int8";
|
|
4610
|
+
readonly internalType: "int8";
|
|
4443
4611
|
}];
|
|
4444
|
-
readonly
|
|
4445
|
-
readonly type: "error";
|
|
4612
|
+
readonly stateMutability: "view";
|
|
4446
4613
|
}, {
|
|
4614
|
+
readonly type: "function";
|
|
4615
|
+
readonly name: "EXTERNAL_FEED";
|
|
4447
4616
|
readonly inputs: readonly [];
|
|
4448
|
-
readonly name: "ReentrancyGuardReentrantCall";
|
|
4449
|
-
readonly type: "error";
|
|
4450
|
-
}, {
|
|
4451
|
-
readonly anonymous: false;
|
|
4452
|
-
readonly inputs: readonly [{
|
|
4453
|
-
readonly indexed: true;
|
|
4454
|
-
readonly internalType: "address";
|
|
4455
|
-
readonly name: "priceFeed0";
|
|
4456
|
-
readonly type: "address";
|
|
4457
|
-
}, {
|
|
4458
|
-
readonly indexed: true;
|
|
4459
|
-
readonly internalType: "address";
|
|
4460
|
-
readonly name: "priceFeed1";
|
|
4461
|
-
readonly type: "address";
|
|
4462
|
-
}, {
|
|
4463
|
-
readonly indexed: false;
|
|
4464
|
-
readonly internalType: "int256";
|
|
4465
|
-
readonly name: "exchangeRate0";
|
|
4466
|
-
readonly type: "int256";
|
|
4467
|
-
}, {
|
|
4468
|
-
readonly indexed: false;
|
|
4469
|
-
readonly internalType: "int256";
|
|
4470
|
-
readonly name: "exchangeRate1";
|
|
4471
|
-
readonly type: "int256";
|
|
4472
|
-
}];
|
|
4473
|
-
readonly name: "Convert";
|
|
4474
|
-
readonly type: "event";
|
|
4475
|
-
}, {
|
|
4476
|
-
readonly anonymous: false;
|
|
4477
|
-
readonly inputs: readonly [{
|
|
4478
|
-
readonly indexed: true;
|
|
4479
|
-
readonly internalType: "string";
|
|
4480
|
-
readonly name: "currency0";
|
|
4481
|
-
readonly type: "string";
|
|
4482
|
-
}, {
|
|
4483
|
-
readonly indexed: true;
|
|
4484
|
-
readonly internalType: "address";
|
|
4485
|
-
readonly name: "priceFeed1";
|
|
4486
|
-
readonly type: "address";
|
|
4487
|
-
}, {
|
|
4488
|
-
readonly indexed: false;
|
|
4489
|
-
readonly internalType: "int256";
|
|
4490
|
-
readonly name: "exchangeRate0";
|
|
4491
|
-
readonly type: "int256";
|
|
4492
|
-
}, {
|
|
4493
|
-
readonly indexed: false;
|
|
4494
|
-
readonly internalType: "int256";
|
|
4495
|
-
readonly name: "exchangeRate1";
|
|
4496
|
-
readonly type: "int256";
|
|
4497
|
-
}];
|
|
4498
|
-
readonly name: "ConvertWithExternalRate";
|
|
4499
|
-
readonly type: "event";
|
|
4500
|
-
}, {
|
|
4501
|
-
readonly anonymous: false;
|
|
4502
|
-
readonly inputs: readonly [{
|
|
4503
|
-
readonly indexed: true;
|
|
4504
|
-
readonly internalType: "address";
|
|
4505
|
-
readonly name: "sender";
|
|
4506
|
-
readonly type: "address";
|
|
4507
|
-
}, {
|
|
4508
|
-
readonly indexed: true;
|
|
4509
|
-
readonly internalType: "address";
|
|
4510
|
-
readonly name: "receiver";
|
|
4511
|
-
readonly type: "address";
|
|
4512
|
-
}, {
|
|
4513
|
-
readonly indexed: false;
|
|
4514
|
-
readonly internalType: "address";
|
|
4515
|
-
readonly name: "token";
|
|
4516
|
-
readonly type: "address";
|
|
4517
|
-
}, {
|
|
4518
|
-
readonly indexed: false;
|
|
4519
|
-
readonly internalType: "uint256";
|
|
4520
|
-
readonly name: "amount";
|
|
4521
|
-
readonly type: "uint256";
|
|
4522
|
-
}, {
|
|
4523
|
-
readonly indexed: false;
|
|
4524
|
-
readonly internalType: "uint256";
|
|
4525
|
-
readonly name: "fees";
|
|
4526
|
-
readonly type: "uint256";
|
|
4527
|
-
}, {
|
|
4528
|
-
readonly indexed: false;
|
|
4529
|
-
readonly internalType: "bytes32";
|
|
4530
|
-
readonly name: "memo";
|
|
4531
|
-
readonly type: "bytes32";
|
|
4532
|
-
}];
|
|
4533
|
-
readonly name: "Yodl";
|
|
4534
|
-
readonly type: "event";
|
|
4535
|
-
}, {
|
|
4536
|
-
readonly anonymous: false;
|
|
4537
|
-
readonly inputs: readonly [{
|
|
4538
|
-
readonly indexed: true;
|
|
4539
|
-
readonly internalType: "address";
|
|
4540
|
-
readonly name: "sender";
|
|
4541
|
-
readonly type: "address";
|
|
4542
|
-
}, {
|
|
4543
|
-
readonly indexed: true;
|
|
4544
|
-
readonly internalType: "address";
|
|
4545
|
-
readonly name: "receiver";
|
|
4546
|
-
readonly type: "address";
|
|
4547
|
-
}, {
|
|
4548
|
-
readonly indexed: true;
|
|
4549
|
-
readonly internalType: "uint256";
|
|
4550
|
-
readonly name: "amount";
|
|
4551
|
-
readonly type: "uint256";
|
|
4552
|
-
}];
|
|
4553
|
-
readonly name: "YodlNativeTokenTransfer";
|
|
4554
|
-
readonly type: "event";
|
|
4555
|
-
}, {
|
|
4556
|
-
readonly inputs: readonly [];
|
|
4557
|
-
readonly name: "CHAINLINK_FEED";
|
|
4558
4617
|
readonly outputs: readonly [{
|
|
4559
|
-
readonly internalType: "int8";
|
|
4560
4618
|
readonly name: "";
|
|
4561
4619
|
readonly type: "int8";
|
|
4620
|
+
readonly internalType: "int8";
|
|
4562
4621
|
}];
|
|
4563
4622
|
readonly stateMutability: "view";
|
|
4564
|
-
readonly type: "function";
|
|
4565
4623
|
}, {
|
|
4624
|
+
readonly type: "function";
|
|
4625
|
+
readonly name: "MAX_CONVENIENCE_FEE_BPS";
|
|
4566
4626
|
readonly inputs: readonly [];
|
|
4567
|
-
readonly name: "EXTERNAL_FEED";
|
|
4568
4627
|
readonly outputs: readonly [{
|
|
4569
|
-
readonly internalType: "int8";
|
|
4570
4628
|
readonly name: "";
|
|
4571
|
-
readonly type: "
|
|
4629
|
+
readonly type: "uint256";
|
|
4630
|
+
readonly internalType: "uint256";
|
|
4572
4631
|
}];
|
|
4573
4632
|
readonly stateMutability: "view";
|
|
4574
|
-
readonly type: "function";
|
|
4575
4633
|
}, {
|
|
4576
|
-
readonly
|
|
4634
|
+
readonly type: "function";
|
|
4577
4635
|
readonly name: "MAX_EXTRA_FEE_BPS";
|
|
4636
|
+
readonly inputs: readonly [];
|
|
4578
4637
|
readonly outputs: readonly [{
|
|
4579
|
-
readonly internalType: "uint256";
|
|
4580
4638
|
readonly name: "";
|
|
4581
4639
|
readonly type: "uint256";
|
|
4640
|
+
readonly internalType: "uint256";
|
|
4582
4641
|
}];
|
|
4583
4642
|
readonly stateMutability: "view";
|
|
4584
|
-
readonly type: "function";
|
|
4585
4643
|
}, {
|
|
4586
|
-
readonly
|
|
4644
|
+
readonly type: "function";
|
|
4587
4645
|
readonly name: "NATIVE_TOKEN";
|
|
4646
|
+
readonly inputs: readonly [];
|
|
4588
4647
|
readonly outputs: readonly [{
|
|
4589
|
-
readonly internalType: "address";
|
|
4590
4648
|
readonly name: "";
|
|
4591
4649
|
readonly type: "address";
|
|
4650
|
+
readonly internalType: "address";
|
|
4592
4651
|
}];
|
|
4593
4652
|
readonly stateMutability: "view";
|
|
4594
|
-
readonly type: "function";
|
|
4595
4653
|
}, {
|
|
4596
|
-
readonly
|
|
4654
|
+
readonly type: "function";
|
|
4597
4655
|
readonly name: "NULL_FEED";
|
|
4656
|
+
readonly inputs: readonly [];
|
|
4598
4657
|
readonly outputs: readonly [{
|
|
4599
|
-
readonly internalType: "int8";
|
|
4600
4658
|
readonly name: "";
|
|
4601
4659
|
readonly type: "int8";
|
|
4660
|
+
readonly internalType: "int8";
|
|
4602
4661
|
}];
|
|
4603
4662
|
readonly stateMutability: "view";
|
|
4604
|
-
readonly type: "function";
|
|
4605
4663
|
}, {
|
|
4606
|
-
readonly
|
|
4664
|
+
readonly type: "function";
|
|
4607
4665
|
readonly name: "RATE_VERIFIER";
|
|
4666
|
+
readonly inputs: readonly [];
|
|
4608
4667
|
readonly outputs: readonly [{
|
|
4609
|
-
readonly internalType: "address";
|
|
4610
4668
|
readonly name: "";
|
|
4611
4669
|
readonly type: "address";
|
|
4670
|
+
readonly internalType: "address";
|
|
4612
4671
|
}];
|
|
4613
4672
|
readonly stateMutability: "view";
|
|
4614
|
-
readonly type: "function";
|
|
4615
4673
|
}, {
|
|
4616
|
-
readonly
|
|
4674
|
+
readonly type: "function";
|
|
4617
4675
|
readonly name: "acrossSpokePool";
|
|
4676
|
+
readonly inputs: readonly [];
|
|
4618
4677
|
readonly outputs: readonly [{
|
|
4619
|
-
readonly internalType: "contract V3SpokePoolInterface";
|
|
4620
4678
|
readonly name: "";
|
|
4621
4679
|
readonly type: "address";
|
|
4680
|
+
readonly internalType: "contract V3SpokePoolInterface";
|
|
4622
4681
|
}];
|
|
4623
4682
|
readonly stateMutability: "view";
|
|
4624
|
-
readonly type: "function";
|
|
4625
4683
|
}, {
|
|
4684
|
+
readonly type: "function";
|
|
4685
|
+
readonly name: "calculateFee";
|
|
4626
4686
|
readonly inputs: readonly [{
|
|
4627
|
-
readonly internalType: "uint256";
|
|
4628
4687
|
readonly name: "amount";
|
|
4629
4688
|
readonly type: "uint256";
|
|
4630
|
-
}, {
|
|
4631
4689
|
readonly internalType: "uint256";
|
|
4690
|
+
}, {
|
|
4632
4691
|
readonly name: "feeBps";
|
|
4633
4692
|
readonly type: "uint256";
|
|
4693
|
+
readonly internalType: "uint256";
|
|
4634
4694
|
}];
|
|
4635
|
-
readonly name: "calculateFee";
|
|
4636
4695
|
readonly outputs: readonly [{
|
|
4637
|
-
readonly internalType: "uint256";
|
|
4638
4696
|
readonly name: "";
|
|
4639
4697
|
readonly type: "uint256";
|
|
4698
|
+
readonly internalType: "uint256";
|
|
4640
4699
|
}];
|
|
4641
4700
|
readonly stateMutability: "pure";
|
|
4642
|
-
readonly type: "function";
|
|
4643
4701
|
}, {
|
|
4644
|
-
readonly
|
|
4702
|
+
readonly type: "function";
|
|
4645
4703
|
readonly name: "curveRouter";
|
|
4704
|
+
readonly inputs: readonly [];
|
|
4646
4705
|
readonly outputs: readonly [{
|
|
4647
|
-
readonly internalType: "contract ICurveRouterNG";
|
|
4648
4706
|
readonly name: "";
|
|
4649
4707
|
readonly type: "address";
|
|
4708
|
+
readonly internalType: "contract ICurveRouterNG";
|
|
4650
4709
|
}];
|
|
4651
4710
|
readonly stateMutability: "view";
|
|
4652
|
-
readonly type: "function";
|
|
4653
4711
|
}, {
|
|
4712
|
+
readonly type: "function";
|
|
4713
|
+
readonly name: "emitConversionEvent";
|
|
4654
4714
|
readonly inputs: readonly [{
|
|
4715
|
+
readonly name: "priceFeeds";
|
|
4716
|
+
readonly type: "tuple[2]";
|
|
4717
|
+
readonly internalType: "struct AbstractYodlRouter.PriceFeed[2]";
|
|
4655
4718
|
readonly components: readonly [{
|
|
4656
|
-
readonly internalType: "address";
|
|
4657
4719
|
readonly name: "feedAddress";
|
|
4658
4720
|
readonly type: "address";
|
|
4721
|
+
readonly internalType: "address";
|
|
4659
4722
|
}, {
|
|
4660
|
-
readonly internalType: "int8";
|
|
4661
4723
|
readonly name: "feedType";
|
|
4662
4724
|
readonly type: "int8";
|
|
4725
|
+
readonly internalType: "int8";
|
|
4663
4726
|
}, {
|
|
4664
|
-
readonly internalType: "string";
|
|
4665
4727
|
readonly name: "currency";
|
|
4666
4728
|
readonly type: "string";
|
|
4729
|
+
readonly internalType: "string";
|
|
4667
4730
|
}, {
|
|
4668
|
-
readonly internalType: "uint256";
|
|
4669
4731
|
readonly name: "amount";
|
|
4670
4732
|
readonly type: "uint256";
|
|
4671
|
-
}, {
|
|
4672
4733
|
readonly internalType: "uint256";
|
|
4734
|
+
}, {
|
|
4673
4735
|
readonly name: "deadline";
|
|
4674
4736
|
readonly type: "uint256";
|
|
4737
|
+
readonly internalType: "uint256";
|
|
4675
4738
|
}, {
|
|
4676
|
-
readonly internalType: "bytes";
|
|
4677
4739
|
readonly name: "signature";
|
|
4678
4740
|
readonly type: "bytes";
|
|
4741
|
+
readonly internalType: "bytes";
|
|
4679
4742
|
}];
|
|
4680
|
-
readonly internalType: "struct AbstractYodlRouter.PriceFeed[2]";
|
|
4681
|
-
readonly name: "priceFeeds";
|
|
4682
|
-
readonly type: "tuple[2]";
|
|
4683
4743
|
}, {
|
|
4684
|
-
readonly internalType: "int256[2]";
|
|
4685
4744
|
readonly name: "prices";
|
|
4686
4745
|
readonly type: "int256[2]";
|
|
4746
|
+
readonly internalType: "int256[2]";
|
|
4687
4747
|
}];
|
|
4688
|
-
readonly name: "emitConversionEvent";
|
|
4689
4748
|
readonly outputs: readonly [];
|
|
4690
4749
|
readonly stateMutability: "nonpayable";
|
|
4691
|
-
readonly type: "function";
|
|
4692
4750
|
}, {
|
|
4751
|
+
readonly type: "function";
|
|
4752
|
+
readonly name: "exchangeRate";
|
|
4693
4753
|
readonly inputs: readonly [{
|
|
4754
|
+
readonly name: "priceFeeds";
|
|
4755
|
+
readonly type: "tuple[2]";
|
|
4756
|
+
readonly internalType: "struct AbstractYodlRouter.PriceFeed[2]";
|
|
4694
4757
|
readonly components: readonly [{
|
|
4695
|
-
readonly internalType: "address";
|
|
4696
4758
|
readonly name: "feedAddress";
|
|
4697
4759
|
readonly type: "address";
|
|
4760
|
+
readonly internalType: "address";
|
|
4698
4761
|
}, {
|
|
4699
|
-
readonly internalType: "int8";
|
|
4700
4762
|
readonly name: "feedType";
|
|
4701
4763
|
readonly type: "int8";
|
|
4764
|
+
readonly internalType: "int8";
|
|
4702
4765
|
}, {
|
|
4703
|
-
readonly internalType: "string";
|
|
4704
4766
|
readonly name: "currency";
|
|
4705
4767
|
readonly type: "string";
|
|
4768
|
+
readonly internalType: "string";
|
|
4706
4769
|
}, {
|
|
4707
|
-
readonly internalType: "uint256";
|
|
4708
4770
|
readonly name: "amount";
|
|
4709
4771
|
readonly type: "uint256";
|
|
4710
|
-
}, {
|
|
4711
4772
|
readonly internalType: "uint256";
|
|
4773
|
+
}, {
|
|
4712
4774
|
readonly name: "deadline";
|
|
4713
4775
|
readonly type: "uint256";
|
|
4776
|
+
readonly internalType: "uint256";
|
|
4714
4777
|
}, {
|
|
4715
|
-
readonly internalType: "bytes";
|
|
4716
4778
|
readonly name: "signature";
|
|
4717
4779
|
readonly type: "bytes";
|
|
4780
|
+
readonly internalType: "bytes";
|
|
4718
4781
|
}];
|
|
4719
|
-
readonly internalType: "struct AbstractYodlRouter.PriceFeed[2]";
|
|
4720
|
-
readonly name: "priceFeeds";
|
|
4721
|
-
readonly type: "tuple[2]";
|
|
4722
4782
|
}, {
|
|
4723
|
-
readonly internalType: "uint256";
|
|
4724
4783
|
readonly name: "amount";
|
|
4725
4784
|
readonly type: "uint256";
|
|
4785
|
+
readonly internalType: "uint256";
|
|
4726
4786
|
}];
|
|
4727
|
-
readonly name: "exchangeRate";
|
|
4728
4787
|
readonly outputs: readonly [{
|
|
4729
|
-
readonly internalType: "uint256";
|
|
4730
4788
|
readonly name: "converted";
|
|
4731
4789
|
readonly type: "uint256";
|
|
4790
|
+
readonly internalType: "uint256";
|
|
4732
4791
|
}, {
|
|
4733
|
-
readonly internalType: "address[2]";
|
|
4734
4792
|
readonly name: "priceFeedsUsed";
|
|
4735
4793
|
readonly type: "address[2]";
|
|
4794
|
+
readonly internalType: "address[2]";
|
|
4736
4795
|
}, {
|
|
4737
|
-
readonly internalType: "int256[2]";
|
|
4738
4796
|
readonly name: "prices";
|
|
4739
4797
|
readonly type: "int256[2]";
|
|
4798
|
+
readonly internalType: "int256[2]";
|
|
4740
4799
|
}];
|
|
4741
4800
|
readonly stateMutability: "view";
|
|
4742
|
-
readonly type: "function";
|
|
4743
4801
|
}, {
|
|
4802
|
+
readonly type: "function";
|
|
4803
|
+
readonly name: "sweep";
|
|
4744
4804
|
readonly inputs: readonly [{
|
|
4745
|
-
readonly internalType: "address";
|
|
4746
4805
|
readonly name: "token";
|
|
4747
4806
|
readonly type: "address";
|
|
4807
|
+
readonly internalType: "address";
|
|
4748
4808
|
}];
|
|
4749
|
-
readonly name: "sweep";
|
|
4750
4809
|
readonly outputs: readonly [];
|
|
4751
4810
|
readonly stateMutability: "nonpayable";
|
|
4752
|
-
readonly type: "function";
|
|
4753
4811
|
}, {
|
|
4754
|
-
readonly
|
|
4812
|
+
readonly type: "function";
|
|
4755
4813
|
readonly name: "uniswapRouter";
|
|
4814
|
+
readonly inputs: readonly [];
|
|
4756
4815
|
readonly outputs: readonly [{
|
|
4757
|
-
readonly internalType: "contract ISwapRouter02";
|
|
4758
4816
|
readonly name: "";
|
|
4759
4817
|
readonly type: "address";
|
|
4818
|
+
readonly internalType: "contract ISwapRouter02";
|
|
4760
4819
|
}];
|
|
4761
4820
|
readonly stateMutability: "view";
|
|
4762
|
-
readonly type: "function";
|
|
4763
4821
|
}, {
|
|
4822
|
+
readonly type: "function";
|
|
4823
|
+
readonly name: "verifyRateSignature";
|
|
4764
4824
|
readonly inputs: readonly [{
|
|
4825
|
+
readonly name: "priceFeed";
|
|
4826
|
+
readonly type: "tuple";
|
|
4827
|
+
readonly internalType: "struct AbstractYodlRouter.PriceFeed";
|
|
4765
4828
|
readonly components: readonly [{
|
|
4766
|
-
readonly internalType: "address";
|
|
4767
4829
|
readonly name: "feedAddress";
|
|
4768
4830
|
readonly type: "address";
|
|
4831
|
+
readonly internalType: "address";
|
|
4769
4832
|
}, {
|
|
4770
|
-
readonly internalType: "int8";
|
|
4771
4833
|
readonly name: "feedType";
|
|
4772
4834
|
readonly type: "int8";
|
|
4835
|
+
readonly internalType: "int8";
|
|
4773
4836
|
}, {
|
|
4774
|
-
readonly internalType: "string";
|
|
4775
4837
|
readonly name: "currency";
|
|
4776
4838
|
readonly type: "string";
|
|
4839
|
+
readonly internalType: "string";
|
|
4777
4840
|
}, {
|
|
4778
|
-
readonly internalType: "uint256";
|
|
4779
4841
|
readonly name: "amount";
|
|
4780
4842
|
readonly type: "uint256";
|
|
4781
|
-
}, {
|
|
4782
4843
|
readonly internalType: "uint256";
|
|
4844
|
+
}, {
|
|
4783
4845
|
readonly name: "deadline";
|
|
4784
4846
|
readonly type: "uint256";
|
|
4847
|
+
readonly internalType: "uint256";
|
|
4785
4848
|
}, {
|
|
4786
|
-
readonly internalType: "bytes";
|
|
4787
4849
|
readonly name: "signature";
|
|
4788
4850
|
readonly type: "bytes";
|
|
4851
|
+
readonly internalType: "bytes";
|
|
4789
4852
|
}];
|
|
4790
|
-
readonly internalType: "struct AbstractYodlRouter.PriceFeed";
|
|
4791
|
-
readonly name: "priceFeed";
|
|
4792
|
-
readonly type: "tuple";
|
|
4793
4853
|
}];
|
|
4794
|
-
readonly name: "verifyRateSignature";
|
|
4795
4854
|
readonly outputs: readonly [{
|
|
4796
|
-
readonly internalType: "bool";
|
|
4797
4855
|
readonly name: "";
|
|
4798
4856
|
readonly type: "bool";
|
|
4857
|
+
readonly internalType: "bool";
|
|
4799
4858
|
}];
|
|
4800
4859
|
readonly stateMutability: "view";
|
|
4801
|
-
readonly type: "function";
|
|
4802
4860
|
}, {
|
|
4803
|
-
readonly
|
|
4861
|
+
readonly type: "function";
|
|
4804
4862
|
readonly name: "version";
|
|
4863
|
+
readonly inputs: readonly [];
|
|
4805
4864
|
readonly outputs: readonly [{
|
|
4806
|
-
readonly internalType: "string";
|
|
4807
4865
|
readonly name: "";
|
|
4808
4866
|
readonly type: "string";
|
|
4867
|
+
readonly internalType: "string";
|
|
4809
4868
|
}];
|
|
4810
4869
|
readonly stateMutability: "view";
|
|
4811
|
-
readonly type: "function";
|
|
4812
4870
|
}, {
|
|
4813
|
-
readonly
|
|
4871
|
+
readonly type: "function";
|
|
4814
4872
|
readonly name: "wrappedNativeToken";
|
|
4873
|
+
readonly inputs: readonly [];
|
|
4815
4874
|
readonly outputs: readonly [{
|
|
4816
|
-
readonly internalType: "contract IWETH9";
|
|
4817
4875
|
readonly name: "";
|
|
4818
4876
|
readonly type: "address";
|
|
4877
|
+
readonly internalType: "contract IWETH9";
|
|
4819
4878
|
}];
|
|
4820
4879
|
readonly stateMutability: "view";
|
|
4821
|
-
readonly type: "function";
|
|
4822
4880
|
}, {
|
|
4823
|
-
readonly
|
|
4881
|
+
readonly type: "function";
|
|
4824
4882
|
readonly name: "yodlFeeBps";
|
|
4883
|
+
readonly inputs: readonly [];
|
|
4825
4884
|
readonly outputs: readonly [{
|
|
4826
|
-
readonly internalType: "uint256";
|
|
4827
4885
|
readonly name: "";
|
|
4828
4886
|
readonly type: "uint256";
|
|
4887
|
+
readonly internalType: "uint256";
|
|
4829
4888
|
}];
|
|
4830
4889
|
readonly stateMutability: "view";
|
|
4831
|
-
readonly type: "function";
|
|
4832
4890
|
}, {
|
|
4833
|
-
readonly
|
|
4891
|
+
readonly type: "function";
|
|
4834
4892
|
readonly name: "yodlFeeTreasury";
|
|
4893
|
+
readonly inputs: readonly [];
|
|
4835
4894
|
readonly outputs: readonly [{
|
|
4836
|
-
readonly internalType: "address";
|
|
4837
4895
|
readonly name: "";
|
|
4838
4896
|
readonly type: "address";
|
|
4897
|
+
readonly internalType: "address";
|
|
4839
4898
|
}];
|
|
4840
4899
|
readonly stateMutability: "view";
|
|
4841
|
-
readonly type: "function";
|
|
4842
4900
|
}, {
|
|
4901
|
+
readonly type: "function";
|
|
4902
|
+
readonly name: "yodlWithAcross";
|
|
4843
4903
|
readonly inputs: readonly [{
|
|
4904
|
+
readonly name: "params";
|
|
4905
|
+
readonly type: "tuple";
|
|
4906
|
+
readonly internalType: "struct YodlAcrossRouter.YodlAcrossParams";
|
|
4844
4907
|
readonly components: readonly [{
|
|
4845
|
-
readonly internalType: "bytes32";
|
|
4846
4908
|
readonly name: "memo";
|
|
4847
4909
|
readonly type: "bytes32";
|
|
4910
|
+
readonly internalType: "bytes32";
|
|
4848
4911
|
}, {
|
|
4849
|
-
readonly internalType: "uint256";
|
|
4850
4912
|
readonly name: "amount";
|
|
4851
4913
|
readonly type: "uint256";
|
|
4914
|
+
readonly internalType: "uint256";
|
|
4852
4915
|
}, {
|
|
4916
|
+
readonly name: "priceFeeds";
|
|
4917
|
+
readonly type: "tuple[2]";
|
|
4918
|
+
readonly internalType: "struct AbstractYodlRouter.PriceFeed[2]";
|
|
4853
4919
|
readonly components: readonly [{
|
|
4854
|
-
readonly internalType: "address";
|
|
4855
4920
|
readonly name: "feedAddress";
|
|
4856
4921
|
readonly type: "address";
|
|
4922
|
+
readonly internalType: "address";
|
|
4857
4923
|
}, {
|
|
4858
|
-
readonly internalType: "int8";
|
|
4859
4924
|
readonly name: "feedType";
|
|
4860
4925
|
readonly type: "int8";
|
|
4926
|
+
readonly internalType: "int8";
|
|
4861
4927
|
}, {
|
|
4862
|
-
readonly internalType: "string";
|
|
4863
4928
|
readonly name: "currency";
|
|
4864
4929
|
readonly type: "string";
|
|
4930
|
+
readonly internalType: "string";
|
|
4865
4931
|
}, {
|
|
4866
|
-
readonly internalType: "uint256";
|
|
4867
4932
|
readonly name: "amount";
|
|
4868
4933
|
readonly type: "uint256";
|
|
4869
|
-
}, {
|
|
4870
4934
|
readonly internalType: "uint256";
|
|
4935
|
+
}, {
|
|
4871
4936
|
readonly name: "deadline";
|
|
4872
4937
|
readonly type: "uint256";
|
|
4938
|
+
readonly internalType: "uint256";
|
|
4873
4939
|
}, {
|
|
4874
|
-
readonly internalType: "bytes";
|
|
4875
4940
|
readonly name: "signature";
|
|
4876
4941
|
readonly type: "bytes";
|
|
4942
|
+
readonly internalType: "bytes";
|
|
4877
4943
|
}];
|
|
4878
|
-
readonly internalType: "struct AbstractYodlRouter.PriceFeed[2]";
|
|
4879
|
-
readonly name: "priceFeeds";
|
|
4880
|
-
readonly type: "tuple[2]";
|
|
4881
4944
|
}, {
|
|
4882
|
-
readonly internalType: "address";
|
|
4883
4945
|
readonly name: "token";
|
|
4884
4946
|
readonly type: "address";
|
|
4885
|
-
}, {
|
|
4886
4947
|
readonly internalType: "address";
|
|
4948
|
+
}, {
|
|
4887
4949
|
readonly name: "receiver";
|
|
4888
4950
|
readonly type: "address";
|
|
4889
|
-
}, {
|
|
4890
4951
|
readonly internalType: "address";
|
|
4952
|
+
}, {
|
|
4891
4953
|
readonly name: "extraFeeReceiver";
|
|
4892
4954
|
readonly type: "address";
|
|
4955
|
+
readonly internalType: "address";
|
|
4893
4956
|
}, {
|
|
4894
|
-
readonly internalType: "uint256";
|
|
4895
4957
|
readonly name: "extraFeeBps";
|
|
4896
4958
|
readonly type: "uint256";
|
|
4897
|
-
}, {
|
|
4898
4959
|
readonly internalType: "uint256";
|
|
4960
|
+
}, {
|
|
4899
4961
|
readonly name: "yd";
|
|
4900
4962
|
readonly type: "uint256";
|
|
4963
|
+
readonly internalType: "uint256";
|
|
4901
4964
|
}, {
|
|
4965
|
+
readonly name: "guards";
|
|
4966
|
+
readonly type: "tuple[]";
|
|
4967
|
+
readonly internalType: "struct AbstractYodlRouter.Guard[]";
|
|
4902
4968
|
readonly components: readonly [{
|
|
4903
|
-
readonly internalType: "address";
|
|
4904
4969
|
readonly name: "guardAddress";
|
|
4905
4970
|
readonly type: "address";
|
|
4971
|
+
readonly internalType: "address";
|
|
4906
4972
|
}, {
|
|
4907
|
-
readonly internalType: "bytes[]";
|
|
4908
4973
|
readonly name: "payload";
|
|
4909
4974
|
readonly type: "bytes[]";
|
|
4975
|
+
readonly internalType: "bytes[]";
|
|
4910
4976
|
}];
|
|
4911
|
-
readonly internalType: "struct AbstractYodlRouter.Guard[]";
|
|
4912
|
-
readonly name: "guards";
|
|
4913
|
-
readonly type: "tuple[]";
|
|
4914
4977
|
}, {
|
|
4978
|
+
readonly name: "webhooks";
|
|
4979
|
+
readonly type: "tuple[]";
|
|
4980
|
+
readonly internalType: "struct AbstractYodlRouter.Webhook[]";
|
|
4915
4981
|
readonly components: readonly [{
|
|
4916
|
-
readonly internalType: "address";
|
|
4917
4982
|
readonly name: "webhookAddress";
|
|
4918
4983
|
readonly type: "address";
|
|
4984
|
+
readonly internalType: "address";
|
|
4919
4985
|
}, {
|
|
4920
|
-
readonly internalType: "bytes[]";
|
|
4921
4986
|
readonly name: "payload";
|
|
4922
4987
|
readonly type: "bytes[]";
|
|
4988
|
+
readonly internalType: "bytes[]";
|
|
4923
4989
|
}];
|
|
4924
|
-
readonly internalType: "struct AbstractYodlRouter.Webhook[]";
|
|
4925
|
-
readonly name: "webhooks";
|
|
4926
|
-
readonly type: "tuple[]";
|
|
4927
4990
|
}, {
|
|
4928
|
-
readonly internalType: "address";
|
|
4929
4991
|
readonly name: "outputToken";
|
|
4930
4992
|
readonly type: "address";
|
|
4993
|
+
readonly internalType: "address";
|
|
4931
4994
|
}, {
|
|
4932
|
-
readonly internalType: "uint256";
|
|
4933
4995
|
readonly name: "outputAmount";
|
|
4934
4996
|
readonly type: "uint256";
|
|
4935
|
-
}, {
|
|
4936
4997
|
readonly internalType: "uint256";
|
|
4998
|
+
}, {
|
|
4937
4999
|
readonly name: "destinationChainId";
|
|
4938
5000
|
readonly type: "uint256";
|
|
5001
|
+
readonly internalType: "uint256";
|
|
4939
5002
|
}, {
|
|
4940
|
-
readonly internalType: "address";
|
|
4941
5003
|
readonly name: "exclusiveRelayer";
|
|
4942
5004
|
readonly type: "address";
|
|
5005
|
+
readonly internalType: "address";
|
|
4943
5006
|
}, {
|
|
4944
|
-
readonly internalType: "uint32";
|
|
4945
5007
|
readonly name: "quoteTimestamp";
|
|
4946
5008
|
readonly type: "uint32";
|
|
4947
|
-
}, {
|
|
4948
5009
|
readonly internalType: "uint32";
|
|
5010
|
+
}, {
|
|
4949
5011
|
readonly name: "fillDeadline";
|
|
4950
5012
|
readonly type: "uint32";
|
|
4951
|
-
}, {
|
|
4952
5013
|
readonly internalType: "uint32";
|
|
5014
|
+
}, {
|
|
4953
5015
|
readonly name: "exclusivityDeadline";
|
|
4954
5016
|
readonly type: "uint32";
|
|
5017
|
+
readonly internalType: "uint32";
|
|
4955
5018
|
}, {
|
|
4956
|
-
readonly internalType: "bytes";
|
|
4957
5019
|
readonly name: "message";
|
|
4958
5020
|
readonly type: "bytes";
|
|
5021
|
+
readonly internalType: "bytes";
|
|
4959
5022
|
}];
|
|
4960
|
-
readonly internalType: "struct YodlAcrossRouter.YodlAcrossParams";
|
|
4961
|
-
readonly name: "params";
|
|
4962
|
-
readonly type: "tuple";
|
|
4963
5023
|
}];
|
|
4964
|
-
readonly name: "yodlWithAcross";
|
|
4965
5024
|
readonly outputs: readonly [{
|
|
4966
|
-
readonly internalType: "uint256";
|
|
4967
5025
|
readonly name: "";
|
|
4968
5026
|
readonly type: "uint256";
|
|
5027
|
+
readonly internalType: "uint256";
|
|
4969
5028
|
}];
|
|
4970
5029
|
readonly stateMutability: "payable";
|
|
4971
|
-
readonly type: "function";
|
|
4972
5030
|
}, {
|
|
5031
|
+
readonly type: "function";
|
|
5032
|
+
readonly name: "yodlWithCurve";
|
|
4973
5033
|
readonly inputs: readonly [{
|
|
5034
|
+
readonly name: "params";
|
|
5035
|
+
readonly type: "tuple";
|
|
5036
|
+
readonly internalType: "struct YodlCurveRouter.YodlCurveParams";
|
|
4974
5037
|
readonly components: readonly [{
|
|
4975
|
-
readonly internalType: "address";
|
|
4976
5038
|
readonly name: "sender";
|
|
4977
5039
|
readonly type: "address";
|
|
4978
|
-
}, {
|
|
4979
5040
|
readonly internalType: "address";
|
|
5041
|
+
}, {
|
|
4980
5042
|
readonly name: "receiver";
|
|
4981
5043
|
readonly type: "address";
|
|
5044
|
+
readonly internalType: "address";
|
|
4982
5045
|
}, {
|
|
4983
|
-
readonly internalType: "uint256";
|
|
4984
5046
|
readonly name: "amountIn";
|
|
4985
5047
|
readonly type: "uint256";
|
|
4986
|
-
}, {
|
|
4987
5048
|
readonly internalType: "uint256";
|
|
5049
|
+
}, {
|
|
4988
5050
|
readonly name: "amountOut";
|
|
4989
5051
|
readonly type: "uint256";
|
|
5052
|
+
readonly internalType: "uint256";
|
|
4990
5053
|
}, {
|
|
4991
|
-
readonly internalType: "bytes32";
|
|
4992
5054
|
readonly name: "memo";
|
|
4993
5055
|
readonly type: "bytes32";
|
|
5056
|
+
readonly internalType: "bytes32";
|
|
4994
5057
|
}, {
|
|
4995
|
-
readonly internalType: "address[11]";
|
|
4996
5058
|
readonly name: "route";
|
|
4997
5059
|
readonly type: "address[11]";
|
|
5060
|
+
readonly internalType: "address[11]";
|
|
4998
5061
|
}, {
|
|
4999
|
-
readonly internalType: "uint256[5][5]";
|
|
5000
5062
|
readonly name: "swapParams";
|
|
5001
5063
|
readonly type: "uint256[5][5]";
|
|
5064
|
+
readonly internalType: "uint256[5][5]";
|
|
5002
5065
|
}, {
|
|
5003
|
-
readonly internalType: "address[5]";
|
|
5004
5066
|
readonly name: "pools";
|
|
5005
5067
|
readonly type: "address[5]";
|
|
5068
|
+
readonly internalType: "address[5]";
|
|
5006
5069
|
}, {
|
|
5070
|
+
readonly name: "priceFeeds";
|
|
5071
|
+
readonly type: "tuple[2]";
|
|
5072
|
+
readonly internalType: "struct AbstractYodlRouter.PriceFeed[2]";
|
|
5007
5073
|
readonly components: readonly [{
|
|
5008
|
-
readonly internalType: "address";
|
|
5009
5074
|
readonly name: "feedAddress";
|
|
5010
5075
|
readonly type: "address";
|
|
5076
|
+
readonly internalType: "address";
|
|
5011
5077
|
}, {
|
|
5012
|
-
readonly internalType: "int8";
|
|
5013
5078
|
readonly name: "feedType";
|
|
5014
5079
|
readonly type: "int8";
|
|
5080
|
+
readonly internalType: "int8";
|
|
5015
5081
|
}, {
|
|
5016
|
-
readonly internalType: "string";
|
|
5017
5082
|
readonly name: "currency";
|
|
5018
5083
|
readonly type: "string";
|
|
5084
|
+
readonly internalType: "string";
|
|
5019
5085
|
}, {
|
|
5020
|
-
readonly internalType: "uint256";
|
|
5021
5086
|
readonly name: "amount";
|
|
5022
5087
|
readonly type: "uint256";
|
|
5023
|
-
}, {
|
|
5024
5088
|
readonly internalType: "uint256";
|
|
5089
|
+
}, {
|
|
5025
5090
|
readonly name: "deadline";
|
|
5026
5091
|
readonly type: "uint256";
|
|
5092
|
+
readonly internalType: "uint256";
|
|
5027
5093
|
}, {
|
|
5028
|
-
readonly internalType: "bytes";
|
|
5029
5094
|
readonly name: "signature";
|
|
5030
5095
|
readonly type: "bytes";
|
|
5096
|
+
readonly internalType: "bytes";
|
|
5031
5097
|
}];
|
|
5032
|
-
readonly internalType: "struct AbstractYodlRouter.PriceFeed[2]";
|
|
5033
|
-
readonly name: "priceFeeds";
|
|
5034
|
-
readonly type: "tuple[2]";
|
|
5035
5098
|
}, {
|
|
5036
|
-
readonly internalType: "address";
|
|
5037
5099
|
readonly name: "extraFeeReceiver";
|
|
5038
5100
|
readonly type: "address";
|
|
5101
|
+
readonly internalType: "address";
|
|
5039
5102
|
}, {
|
|
5040
|
-
readonly internalType: "uint256";
|
|
5041
5103
|
readonly name: "extraFeeBps";
|
|
5042
5104
|
readonly type: "uint256";
|
|
5043
|
-
}, {
|
|
5044
5105
|
readonly internalType: "uint256";
|
|
5106
|
+
}, {
|
|
5045
5107
|
readonly name: "yd";
|
|
5046
5108
|
readonly type: "uint256";
|
|
5109
|
+
readonly internalType: "uint256";
|
|
5047
5110
|
}, {
|
|
5111
|
+
readonly name: "guards";
|
|
5112
|
+
readonly type: "tuple[]";
|
|
5113
|
+
readonly internalType: "struct AbstractYodlRouter.Guard[]";
|
|
5048
5114
|
readonly components: readonly [{
|
|
5049
|
-
readonly internalType: "address";
|
|
5050
5115
|
readonly name: "guardAddress";
|
|
5051
5116
|
readonly type: "address";
|
|
5117
|
+
readonly internalType: "address";
|
|
5052
5118
|
}, {
|
|
5053
|
-
readonly internalType: "bytes[]";
|
|
5054
5119
|
readonly name: "payload";
|
|
5055
5120
|
readonly type: "bytes[]";
|
|
5121
|
+
readonly internalType: "bytes[]";
|
|
5056
5122
|
}];
|
|
5057
|
-
readonly internalType: "struct AbstractYodlRouter.Guard[]";
|
|
5058
|
-
readonly name: "guards";
|
|
5059
|
-
readonly type: "tuple[]";
|
|
5060
5123
|
}, {
|
|
5124
|
+
readonly name: "webhooks";
|
|
5125
|
+
readonly type: "tuple[]";
|
|
5126
|
+
readonly internalType: "struct AbstractYodlRouter.Webhook[]";
|
|
5061
5127
|
readonly components: readonly [{
|
|
5062
|
-
readonly internalType: "address";
|
|
5063
5128
|
readonly name: "webhookAddress";
|
|
5064
5129
|
readonly type: "address";
|
|
5130
|
+
readonly internalType: "address";
|
|
5065
5131
|
}, {
|
|
5066
|
-
readonly internalType: "bytes[]";
|
|
5067
5132
|
readonly name: "payload";
|
|
5068
5133
|
readonly type: "bytes[]";
|
|
5134
|
+
readonly internalType: "bytes[]";
|
|
5069
5135
|
}];
|
|
5070
|
-
readonly internalType: "struct AbstractYodlRouter.Webhook[]";
|
|
5071
|
-
readonly name: "webhooks";
|
|
5072
|
-
readonly type: "tuple[]";
|
|
5073
5136
|
}];
|
|
5074
|
-
readonly internalType: "struct YodlCurveRouter.YodlCurveParams";
|
|
5075
|
-
readonly name: "params";
|
|
5076
|
-
readonly type: "tuple";
|
|
5077
5137
|
}];
|
|
5078
|
-
readonly name: "yodlWithCurve";
|
|
5079
5138
|
readonly outputs: readonly [{
|
|
5080
|
-
readonly internalType: "uint256";
|
|
5081
5139
|
readonly name: "";
|
|
5082
5140
|
readonly type: "uint256";
|
|
5141
|
+
readonly internalType: "uint256";
|
|
5083
5142
|
}];
|
|
5084
5143
|
readonly stateMutability: "payable";
|
|
5085
|
-
readonly type: "function";
|
|
5086
5144
|
}, {
|
|
5145
|
+
readonly type: "function";
|
|
5146
|
+
readonly name: "yodlWithExternal";
|
|
5087
5147
|
readonly inputs: readonly [{
|
|
5148
|
+
readonly name: "params";
|
|
5149
|
+
readonly type: "tuple";
|
|
5150
|
+
readonly internalType: "struct YodlExternalFundingRouter.YodlExternalFundingParams";
|
|
5088
5151
|
readonly components: readonly [{
|
|
5089
|
-
readonly internalType: "bytes32";
|
|
5090
5152
|
readonly name: "memo";
|
|
5091
5153
|
readonly type: "bytes32";
|
|
5154
|
+
readonly internalType: "bytes32";
|
|
5092
5155
|
}, {
|
|
5093
|
-
readonly
|
|
5094
|
-
readonly name: "amount";
|
|
5156
|
+
readonly name: "outAmountGross";
|
|
5095
5157
|
readonly type: "uint256";
|
|
5096
|
-
}, {
|
|
5097
5158
|
readonly internalType: "uint256";
|
|
5159
|
+
}, {
|
|
5098
5160
|
readonly name: "invoiceAmount";
|
|
5099
5161
|
readonly type: "uint256";
|
|
5162
|
+
readonly internalType: "uint256";
|
|
5100
5163
|
}, {
|
|
5164
|
+
readonly name: "priceFeeds";
|
|
5165
|
+
readonly type: "tuple[2]";
|
|
5166
|
+
readonly internalType: "struct AbstractYodlRouter.PriceFeed[2]";
|
|
5101
5167
|
readonly components: readonly [{
|
|
5102
|
-
readonly internalType: "address";
|
|
5103
5168
|
readonly name: "feedAddress";
|
|
5104
5169
|
readonly type: "address";
|
|
5170
|
+
readonly internalType: "address";
|
|
5105
5171
|
}, {
|
|
5106
|
-
readonly internalType: "int8";
|
|
5107
5172
|
readonly name: "feedType";
|
|
5108
5173
|
readonly type: "int8";
|
|
5174
|
+
readonly internalType: "int8";
|
|
5109
5175
|
}, {
|
|
5110
|
-
readonly internalType: "string";
|
|
5111
5176
|
readonly name: "currency";
|
|
5112
5177
|
readonly type: "string";
|
|
5178
|
+
readonly internalType: "string";
|
|
5113
5179
|
}, {
|
|
5114
|
-
readonly internalType: "uint256";
|
|
5115
5180
|
readonly name: "amount";
|
|
5116
5181
|
readonly type: "uint256";
|
|
5117
|
-
}, {
|
|
5118
5182
|
readonly internalType: "uint256";
|
|
5183
|
+
}, {
|
|
5119
5184
|
readonly name: "deadline";
|
|
5120
5185
|
readonly type: "uint256";
|
|
5186
|
+
readonly internalType: "uint256";
|
|
5121
5187
|
}, {
|
|
5122
|
-
readonly internalType: "bytes";
|
|
5123
5188
|
readonly name: "signature";
|
|
5124
5189
|
readonly type: "bytes";
|
|
5190
|
+
readonly internalType: "bytes";
|
|
5125
5191
|
}];
|
|
5126
|
-
readonly internalType: "struct AbstractYodlRouter.PriceFeed[2]";
|
|
5127
|
-
readonly name: "priceFeeds";
|
|
5128
|
-
readonly type: "tuple[2]";
|
|
5129
5192
|
}, {
|
|
5130
|
-
readonly internalType: "address";
|
|
5131
5193
|
readonly name: "token";
|
|
5132
5194
|
readonly type: "address";
|
|
5133
|
-
}, {
|
|
5134
5195
|
readonly internalType: "address";
|
|
5196
|
+
}, {
|
|
5135
5197
|
readonly name: "receiver";
|
|
5136
5198
|
readonly type: "address";
|
|
5137
|
-
}, {
|
|
5138
5199
|
readonly internalType: "address";
|
|
5200
|
+
}, {
|
|
5139
5201
|
readonly name: "extraFeeReceiver";
|
|
5140
5202
|
readonly type: "address";
|
|
5203
|
+
readonly internalType: "address";
|
|
5141
5204
|
}, {
|
|
5142
|
-
readonly internalType: "uint256";
|
|
5143
5205
|
readonly name: "extraFeeBps";
|
|
5144
5206
|
readonly type: "uint256";
|
|
5145
|
-
}, {
|
|
5146
5207
|
readonly internalType: "uint256";
|
|
5208
|
+
}, {
|
|
5147
5209
|
readonly name: "yd";
|
|
5148
5210
|
readonly type: "uint256";
|
|
5211
|
+
readonly internalType: "uint256";
|
|
5149
5212
|
}, {
|
|
5213
|
+
readonly name: "guards";
|
|
5214
|
+
readonly type: "tuple[]";
|
|
5215
|
+
readonly internalType: "struct AbstractYodlRouter.Guard[]";
|
|
5150
5216
|
readonly components: readonly [{
|
|
5151
|
-
readonly internalType: "address";
|
|
5152
5217
|
readonly name: "guardAddress";
|
|
5153
5218
|
readonly type: "address";
|
|
5219
|
+
readonly internalType: "address";
|
|
5154
5220
|
}, {
|
|
5155
|
-
readonly internalType: "bytes[]";
|
|
5156
5221
|
readonly name: "payload";
|
|
5157
5222
|
readonly type: "bytes[]";
|
|
5223
|
+
readonly internalType: "bytes[]";
|
|
5158
5224
|
}];
|
|
5159
|
-
readonly internalType: "struct AbstractYodlRouter.Guard[]";
|
|
5160
|
-
readonly name: "guards";
|
|
5161
|
-
readonly type: "tuple[]";
|
|
5162
5225
|
}, {
|
|
5226
|
+
readonly name: "webhooks";
|
|
5227
|
+
readonly type: "tuple[]";
|
|
5228
|
+
readonly internalType: "struct AbstractYodlRouter.Webhook[]";
|
|
5163
5229
|
readonly components: readonly [{
|
|
5164
|
-
readonly internalType: "address";
|
|
5165
5230
|
readonly name: "webhookAddress";
|
|
5166
5231
|
readonly type: "address";
|
|
5232
|
+
readonly internalType: "address";
|
|
5167
5233
|
}, {
|
|
5168
|
-
readonly internalType: "bytes[]";
|
|
5169
5234
|
readonly name: "payload";
|
|
5170
5235
|
readonly type: "bytes[]";
|
|
5236
|
+
readonly internalType: "bytes[]";
|
|
5171
5237
|
}];
|
|
5172
|
-
readonly internalType: "struct AbstractYodlRouter.Webhook[]";
|
|
5173
|
-
readonly name: "webhooks";
|
|
5174
|
-
readonly type: "tuple[]";
|
|
5175
5238
|
}, {
|
|
5176
|
-
readonly internalType: "uint256";
|
|
5177
5239
|
readonly name: "convenienceFeeBps";
|
|
5178
5240
|
readonly type: "uint256";
|
|
5241
|
+
readonly internalType: "uint256";
|
|
5179
5242
|
}];
|
|
5180
|
-
readonly internalType: "struct YodlExternalFundingRouter.YodlExternalFundingParams";
|
|
5181
|
-
readonly name: "params";
|
|
5182
|
-
readonly type: "tuple";
|
|
5183
5243
|
}];
|
|
5184
|
-
readonly name: "yodlWithSwappedToken";
|
|
5185
5244
|
readonly outputs: readonly [{
|
|
5186
|
-
readonly internalType: "uint256";
|
|
5187
5245
|
readonly name: "";
|
|
5188
5246
|
readonly type: "uint256";
|
|
5247
|
+
readonly internalType: "uint256";
|
|
5189
5248
|
}];
|
|
5190
5249
|
readonly stateMutability: "payable";
|
|
5191
|
-
readonly type: "function";
|
|
5192
5250
|
}, {
|
|
5251
|
+
readonly type: "function";
|
|
5252
|
+
readonly name: "yodlWithPancake";
|
|
5193
5253
|
readonly inputs: readonly [{
|
|
5254
|
+
readonly name: "params";
|
|
5255
|
+
readonly type: "tuple";
|
|
5256
|
+
readonly internalType: "struct YodlUniswapRouter.YodlUniswapParams";
|
|
5194
5257
|
readonly components: readonly [{
|
|
5195
|
-
readonly
|
|
5196
|
-
readonly
|
|
5197
|
-
readonly
|
|
5198
|
-
}, {
|
|
5199
|
-
readonly internalType: "uint256";
|
|
5200
|
-
readonly name: "amount";
|
|
5201
|
-
readonly type: "uint256";
|
|
5258
|
+
readonly name: "sender";
|
|
5259
|
+
readonly type: "address";
|
|
5260
|
+
readonly internalType: "address";
|
|
5202
5261
|
}, {
|
|
5203
|
-
readonly
|
|
5204
|
-
|
|
5262
|
+
readonly name: "receiver";
|
|
5263
|
+
readonly type: "address";
|
|
5264
|
+
readonly internalType: "address";
|
|
5265
|
+
}, {
|
|
5266
|
+
readonly name: "amountIn";
|
|
5267
|
+
readonly type: "uint256";
|
|
5268
|
+
readonly internalType: "uint256";
|
|
5269
|
+
}, {
|
|
5270
|
+
readonly name: "amountOut";
|
|
5271
|
+
readonly type: "uint256";
|
|
5272
|
+
readonly internalType: "uint256";
|
|
5273
|
+
}, {
|
|
5274
|
+
readonly name: "memo";
|
|
5275
|
+
readonly type: "bytes32";
|
|
5276
|
+
readonly internalType: "bytes32";
|
|
5277
|
+
}, {
|
|
5278
|
+
readonly name: "path";
|
|
5279
|
+
readonly type: "bytes";
|
|
5280
|
+
readonly internalType: "bytes";
|
|
5281
|
+
}, {
|
|
5282
|
+
readonly name: "priceFeeds";
|
|
5283
|
+
readonly type: "tuple[2]";
|
|
5284
|
+
readonly internalType: "struct AbstractYodlRouter.PriceFeed[2]";
|
|
5285
|
+
readonly components: readonly [{
|
|
5205
5286
|
readonly name: "feedAddress";
|
|
5206
5287
|
readonly type: "address";
|
|
5288
|
+
readonly internalType: "address";
|
|
5207
5289
|
}, {
|
|
5208
|
-
readonly internalType: "int8";
|
|
5209
5290
|
readonly name: "feedType";
|
|
5210
5291
|
readonly type: "int8";
|
|
5292
|
+
readonly internalType: "int8";
|
|
5211
5293
|
}, {
|
|
5212
|
-
readonly internalType: "string";
|
|
5213
5294
|
readonly name: "currency";
|
|
5214
5295
|
readonly type: "string";
|
|
5296
|
+
readonly internalType: "string";
|
|
5215
5297
|
}, {
|
|
5216
|
-
readonly internalType: "uint256";
|
|
5217
5298
|
readonly name: "amount";
|
|
5218
5299
|
readonly type: "uint256";
|
|
5219
|
-
}, {
|
|
5220
5300
|
readonly internalType: "uint256";
|
|
5301
|
+
}, {
|
|
5221
5302
|
readonly name: "deadline";
|
|
5222
5303
|
readonly type: "uint256";
|
|
5304
|
+
readonly internalType: "uint256";
|
|
5223
5305
|
}, {
|
|
5224
|
-
readonly internalType: "bytes";
|
|
5225
5306
|
readonly name: "signature";
|
|
5226
5307
|
readonly type: "bytes";
|
|
5308
|
+
readonly internalType: "bytes";
|
|
5227
5309
|
}];
|
|
5228
|
-
|
|
5310
|
+
}, {
|
|
5311
|
+
readonly name: "extraFeeReceiver";
|
|
5312
|
+
readonly type: "address";
|
|
5313
|
+
readonly internalType: "address";
|
|
5314
|
+
}, {
|
|
5315
|
+
readonly name: "extraFeeBps";
|
|
5316
|
+
readonly type: "uint256";
|
|
5317
|
+
readonly internalType: "uint256";
|
|
5318
|
+
}, {
|
|
5319
|
+
readonly name: "swapType";
|
|
5320
|
+
readonly type: "uint8";
|
|
5321
|
+
readonly internalType: "enum YodlUniswapRouter.SwapType";
|
|
5322
|
+
}, {
|
|
5323
|
+
readonly name: "yd";
|
|
5324
|
+
readonly type: "uint256";
|
|
5325
|
+
readonly internalType: "uint256";
|
|
5326
|
+
}, {
|
|
5327
|
+
readonly name: "guards";
|
|
5328
|
+
readonly type: "tuple[]";
|
|
5329
|
+
readonly internalType: "struct AbstractYodlRouter.Guard[]";
|
|
5330
|
+
readonly components: readonly [{
|
|
5331
|
+
readonly name: "guardAddress";
|
|
5332
|
+
readonly type: "address";
|
|
5333
|
+
readonly internalType: "address";
|
|
5334
|
+
}, {
|
|
5335
|
+
readonly name: "payload";
|
|
5336
|
+
readonly type: "bytes[]";
|
|
5337
|
+
readonly internalType: "bytes[]";
|
|
5338
|
+
}];
|
|
5339
|
+
}, {
|
|
5340
|
+
readonly name: "webhooks";
|
|
5341
|
+
readonly type: "tuple[]";
|
|
5342
|
+
readonly internalType: "struct AbstractYodlRouter.Webhook[]";
|
|
5343
|
+
readonly components: readonly [{
|
|
5344
|
+
readonly name: "webhookAddress";
|
|
5345
|
+
readonly type: "address";
|
|
5346
|
+
readonly internalType: "address";
|
|
5347
|
+
}, {
|
|
5348
|
+
readonly name: "payload";
|
|
5349
|
+
readonly type: "bytes[]";
|
|
5350
|
+
readonly internalType: "bytes[]";
|
|
5351
|
+
}];
|
|
5352
|
+
}];
|
|
5353
|
+
}];
|
|
5354
|
+
readonly outputs: readonly [{
|
|
5355
|
+
readonly name: "";
|
|
5356
|
+
readonly type: "uint256";
|
|
5357
|
+
readonly internalType: "uint256";
|
|
5358
|
+
}];
|
|
5359
|
+
readonly stateMutability: "payable";
|
|
5360
|
+
}, {
|
|
5361
|
+
readonly type: "function";
|
|
5362
|
+
readonly name: "yodlWithToken";
|
|
5363
|
+
readonly inputs: readonly [{
|
|
5364
|
+
readonly name: "params";
|
|
5365
|
+
readonly type: "tuple";
|
|
5366
|
+
readonly internalType: "struct YodlTransferRouter.YodlTransferParams";
|
|
5367
|
+
readonly components: readonly [{
|
|
5368
|
+
readonly name: "memo";
|
|
5369
|
+
readonly type: "bytes32";
|
|
5370
|
+
readonly internalType: "bytes32";
|
|
5371
|
+
}, {
|
|
5372
|
+
readonly name: "amount";
|
|
5373
|
+
readonly type: "uint256";
|
|
5374
|
+
readonly internalType: "uint256";
|
|
5375
|
+
}, {
|
|
5229
5376
|
readonly name: "priceFeeds";
|
|
5230
5377
|
readonly type: "tuple[2]";
|
|
5378
|
+
readonly internalType: "struct AbstractYodlRouter.PriceFeed[2]";
|
|
5379
|
+
readonly components: readonly [{
|
|
5380
|
+
readonly name: "feedAddress";
|
|
5381
|
+
readonly type: "address";
|
|
5382
|
+
readonly internalType: "address";
|
|
5383
|
+
}, {
|
|
5384
|
+
readonly name: "feedType";
|
|
5385
|
+
readonly type: "int8";
|
|
5386
|
+
readonly internalType: "int8";
|
|
5387
|
+
}, {
|
|
5388
|
+
readonly name: "currency";
|
|
5389
|
+
readonly type: "string";
|
|
5390
|
+
readonly internalType: "string";
|
|
5391
|
+
}, {
|
|
5392
|
+
readonly name: "amount";
|
|
5393
|
+
readonly type: "uint256";
|
|
5394
|
+
readonly internalType: "uint256";
|
|
5395
|
+
}, {
|
|
5396
|
+
readonly name: "deadline";
|
|
5397
|
+
readonly type: "uint256";
|
|
5398
|
+
readonly internalType: "uint256";
|
|
5399
|
+
}, {
|
|
5400
|
+
readonly name: "signature";
|
|
5401
|
+
readonly type: "bytes";
|
|
5402
|
+
readonly internalType: "bytes";
|
|
5403
|
+
}];
|
|
5231
5404
|
}, {
|
|
5232
|
-
readonly internalType: "address";
|
|
5233
5405
|
readonly name: "token";
|
|
5234
5406
|
readonly type: "address";
|
|
5235
|
-
}, {
|
|
5236
5407
|
readonly internalType: "address";
|
|
5408
|
+
}, {
|
|
5237
5409
|
readonly name: "receiver";
|
|
5238
5410
|
readonly type: "address";
|
|
5239
|
-
}, {
|
|
5240
5411
|
readonly internalType: "address";
|
|
5412
|
+
}, {
|
|
5241
5413
|
readonly name: "extraFeeReceiver";
|
|
5242
5414
|
readonly type: "address";
|
|
5415
|
+
readonly internalType: "address";
|
|
5243
5416
|
}, {
|
|
5244
|
-
readonly internalType: "uint256";
|
|
5245
5417
|
readonly name: "extraFeeBps";
|
|
5246
5418
|
readonly type: "uint256";
|
|
5247
|
-
}, {
|
|
5248
5419
|
readonly internalType: "uint256";
|
|
5420
|
+
}, {
|
|
5249
5421
|
readonly name: "yd";
|
|
5250
5422
|
readonly type: "uint256";
|
|
5423
|
+
readonly internalType: "uint256";
|
|
5251
5424
|
}, {
|
|
5425
|
+
readonly name: "guards";
|
|
5426
|
+
readonly type: "tuple[]";
|
|
5427
|
+
readonly internalType: "struct AbstractYodlRouter.Guard[]";
|
|
5252
5428
|
readonly components: readonly [{
|
|
5253
|
-
readonly internalType: "address";
|
|
5254
5429
|
readonly name: "guardAddress";
|
|
5255
5430
|
readonly type: "address";
|
|
5431
|
+
readonly internalType: "address";
|
|
5256
5432
|
}, {
|
|
5257
|
-
readonly internalType: "bytes[]";
|
|
5258
5433
|
readonly name: "payload";
|
|
5259
5434
|
readonly type: "bytes[]";
|
|
5435
|
+
readonly internalType: "bytes[]";
|
|
5260
5436
|
}];
|
|
5261
|
-
readonly internalType: "struct AbstractYodlRouter.Guard[]";
|
|
5262
|
-
readonly name: "guards";
|
|
5263
|
-
readonly type: "tuple[]";
|
|
5264
5437
|
}, {
|
|
5438
|
+
readonly name: "webhooks";
|
|
5439
|
+
readonly type: "tuple[]";
|
|
5440
|
+
readonly internalType: "struct AbstractYodlRouter.Webhook[]";
|
|
5265
5441
|
readonly components: readonly [{
|
|
5266
|
-
readonly internalType: "address";
|
|
5267
5442
|
readonly name: "webhookAddress";
|
|
5268
5443
|
readonly type: "address";
|
|
5444
|
+
readonly internalType: "address";
|
|
5269
5445
|
}, {
|
|
5270
|
-
readonly internalType: "bytes[]";
|
|
5271
5446
|
readonly name: "payload";
|
|
5272
5447
|
readonly type: "bytes[]";
|
|
5448
|
+
readonly internalType: "bytes[]";
|
|
5273
5449
|
}];
|
|
5274
|
-
readonly internalType: "struct AbstractYodlRouter.Webhook[]";
|
|
5275
|
-
readonly name: "webhooks";
|
|
5276
|
-
readonly type: "tuple[]";
|
|
5277
5450
|
}];
|
|
5278
|
-
readonly internalType: "struct YodlTransferRouter.YodlTransferParams";
|
|
5279
|
-
readonly name: "params";
|
|
5280
|
-
readonly type: "tuple";
|
|
5281
5451
|
}];
|
|
5282
|
-
readonly name: "yodlWithToken";
|
|
5283
5452
|
readonly outputs: readonly [{
|
|
5284
|
-
readonly internalType: "uint256";
|
|
5285
5453
|
readonly name: "";
|
|
5286
5454
|
readonly type: "uint256";
|
|
5455
|
+
readonly internalType: "uint256";
|
|
5287
5456
|
}];
|
|
5288
5457
|
readonly stateMutability: "payable";
|
|
5289
|
-
readonly type: "function";
|
|
5290
5458
|
}, {
|
|
5459
|
+
readonly type: "function";
|
|
5460
|
+
readonly name: "yodlWithUniswap";
|
|
5291
5461
|
readonly inputs: readonly [{
|
|
5462
|
+
readonly name: "params";
|
|
5463
|
+
readonly type: "tuple";
|
|
5464
|
+
readonly internalType: "struct YodlUniswapRouter.YodlUniswapParams";
|
|
5292
5465
|
readonly components: readonly [{
|
|
5293
|
-
readonly internalType: "address";
|
|
5294
5466
|
readonly name: "sender";
|
|
5295
5467
|
readonly type: "address";
|
|
5296
|
-
}, {
|
|
5297
5468
|
readonly internalType: "address";
|
|
5469
|
+
}, {
|
|
5298
5470
|
readonly name: "receiver";
|
|
5299
5471
|
readonly type: "address";
|
|
5472
|
+
readonly internalType: "address";
|
|
5300
5473
|
}, {
|
|
5301
|
-
readonly internalType: "uint256";
|
|
5302
5474
|
readonly name: "amountIn";
|
|
5303
5475
|
readonly type: "uint256";
|
|
5304
|
-
}, {
|
|
5305
5476
|
readonly internalType: "uint256";
|
|
5477
|
+
}, {
|
|
5306
5478
|
readonly name: "amountOut";
|
|
5307
5479
|
readonly type: "uint256";
|
|
5480
|
+
readonly internalType: "uint256";
|
|
5308
5481
|
}, {
|
|
5309
|
-
readonly internalType: "bytes32";
|
|
5310
5482
|
readonly name: "memo";
|
|
5311
5483
|
readonly type: "bytes32";
|
|
5484
|
+
readonly internalType: "bytes32";
|
|
5312
5485
|
}, {
|
|
5313
|
-
readonly internalType: "bytes";
|
|
5314
5486
|
readonly name: "path";
|
|
5315
5487
|
readonly type: "bytes";
|
|
5488
|
+
readonly internalType: "bytes";
|
|
5316
5489
|
}, {
|
|
5490
|
+
readonly name: "priceFeeds";
|
|
5491
|
+
readonly type: "tuple[2]";
|
|
5492
|
+
readonly internalType: "struct AbstractYodlRouter.PriceFeed[2]";
|
|
5317
5493
|
readonly components: readonly [{
|
|
5318
|
-
readonly internalType: "address";
|
|
5319
5494
|
readonly name: "feedAddress";
|
|
5320
5495
|
readonly type: "address";
|
|
5496
|
+
readonly internalType: "address";
|
|
5321
5497
|
}, {
|
|
5322
|
-
readonly internalType: "int8";
|
|
5323
5498
|
readonly name: "feedType";
|
|
5324
5499
|
readonly type: "int8";
|
|
5500
|
+
readonly internalType: "int8";
|
|
5325
5501
|
}, {
|
|
5326
|
-
readonly internalType: "string";
|
|
5327
5502
|
readonly name: "currency";
|
|
5328
5503
|
readonly type: "string";
|
|
5504
|
+
readonly internalType: "string";
|
|
5329
5505
|
}, {
|
|
5330
|
-
readonly internalType: "uint256";
|
|
5331
5506
|
readonly name: "amount";
|
|
5332
5507
|
readonly type: "uint256";
|
|
5333
|
-
}, {
|
|
5334
5508
|
readonly internalType: "uint256";
|
|
5509
|
+
}, {
|
|
5335
5510
|
readonly name: "deadline";
|
|
5336
5511
|
readonly type: "uint256";
|
|
5512
|
+
readonly internalType: "uint256";
|
|
5337
5513
|
}, {
|
|
5338
|
-
readonly internalType: "bytes";
|
|
5339
5514
|
readonly name: "signature";
|
|
5340
5515
|
readonly type: "bytes";
|
|
5516
|
+
readonly internalType: "bytes";
|
|
5341
5517
|
}];
|
|
5342
|
-
readonly internalType: "struct AbstractYodlRouter.PriceFeed[2]";
|
|
5343
|
-
readonly name: "priceFeeds";
|
|
5344
|
-
readonly type: "tuple[2]";
|
|
5345
5518
|
}, {
|
|
5346
|
-
readonly internalType: "address";
|
|
5347
5519
|
readonly name: "extraFeeReceiver";
|
|
5348
5520
|
readonly type: "address";
|
|
5521
|
+
readonly internalType: "address";
|
|
5349
5522
|
}, {
|
|
5350
|
-
readonly internalType: "uint256";
|
|
5351
5523
|
readonly name: "extraFeeBps";
|
|
5352
5524
|
readonly type: "uint256";
|
|
5525
|
+
readonly internalType: "uint256";
|
|
5353
5526
|
}, {
|
|
5354
|
-
readonly internalType: "enum YodlUniswapRouter.SwapType";
|
|
5355
5527
|
readonly name: "swapType";
|
|
5356
5528
|
readonly type: "uint8";
|
|
5529
|
+
readonly internalType: "enum YodlUniswapRouter.SwapType";
|
|
5357
5530
|
}, {
|
|
5358
|
-
readonly internalType: "uint256";
|
|
5359
5531
|
readonly name: "yd";
|
|
5360
5532
|
readonly type: "uint256";
|
|
5533
|
+
readonly internalType: "uint256";
|
|
5361
5534
|
}, {
|
|
5535
|
+
readonly name: "guards";
|
|
5536
|
+
readonly type: "tuple[]";
|
|
5537
|
+
readonly internalType: "struct AbstractYodlRouter.Guard[]";
|
|
5362
5538
|
readonly components: readonly [{
|
|
5363
|
-
readonly internalType: "address";
|
|
5364
5539
|
readonly name: "guardAddress";
|
|
5365
5540
|
readonly type: "address";
|
|
5541
|
+
readonly internalType: "address";
|
|
5366
5542
|
}, {
|
|
5367
|
-
readonly internalType: "bytes[]";
|
|
5368
5543
|
readonly name: "payload";
|
|
5369
5544
|
readonly type: "bytes[]";
|
|
5545
|
+
readonly internalType: "bytes[]";
|
|
5370
5546
|
}];
|
|
5371
|
-
readonly internalType: "struct AbstractYodlRouter.Guard[]";
|
|
5372
|
-
readonly name: "guards";
|
|
5373
|
-
readonly type: "tuple[]";
|
|
5374
5547
|
}, {
|
|
5548
|
+
readonly name: "webhooks";
|
|
5549
|
+
readonly type: "tuple[]";
|
|
5550
|
+
readonly internalType: "struct AbstractYodlRouter.Webhook[]";
|
|
5375
5551
|
readonly components: readonly [{
|
|
5376
|
-
readonly internalType: "address";
|
|
5377
5552
|
readonly name: "webhookAddress";
|
|
5378
5553
|
readonly type: "address";
|
|
5554
|
+
readonly internalType: "address";
|
|
5379
5555
|
}, {
|
|
5380
|
-
readonly internalType: "bytes[]";
|
|
5381
5556
|
readonly name: "payload";
|
|
5382
5557
|
readonly type: "bytes[]";
|
|
5558
|
+
readonly internalType: "bytes[]";
|
|
5383
5559
|
}];
|
|
5384
|
-
readonly internalType: "struct AbstractYodlRouter.Webhook[]";
|
|
5385
|
-
readonly name: "webhooks";
|
|
5386
|
-
readonly type: "tuple[]";
|
|
5387
5560
|
}];
|
|
5388
|
-
readonly internalType: "struct YodlUniswapRouter.YodlUniswapParams";
|
|
5389
|
-
readonly name: "params";
|
|
5390
|
-
readonly type: "tuple";
|
|
5391
5561
|
}];
|
|
5392
|
-
readonly name: "yodlWithUniswap";
|
|
5393
5562
|
readonly outputs: readonly [{
|
|
5394
|
-
readonly internalType: "uint256";
|
|
5395
5563
|
readonly name: "";
|
|
5396
5564
|
readonly type: "uint256";
|
|
5565
|
+
readonly internalType: "uint256";
|
|
5397
5566
|
}];
|
|
5398
5567
|
readonly stateMutability: "payable";
|
|
5399
|
-
readonly type: "function";
|
|
5400
5568
|
}, {
|
|
5401
|
-
readonly
|
|
5402
|
-
readonly
|
|
5569
|
+
readonly type: "event";
|
|
5570
|
+
readonly name: "Convert";
|
|
5571
|
+
readonly inputs: readonly [{
|
|
5572
|
+
readonly name: "priceFeed0";
|
|
5573
|
+
readonly type: "address";
|
|
5574
|
+
readonly indexed: true;
|
|
5575
|
+
readonly internalType: "address";
|
|
5576
|
+
}, {
|
|
5577
|
+
readonly name: "priceFeed1";
|
|
5578
|
+
readonly type: "address";
|
|
5579
|
+
readonly indexed: true;
|
|
5580
|
+
readonly internalType: "address";
|
|
5581
|
+
}, {
|
|
5582
|
+
readonly name: "exchangeRate0";
|
|
5583
|
+
readonly type: "int256";
|
|
5584
|
+
readonly indexed: false;
|
|
5585
|
+
readonly internalType: "int256";
|
|
5586
|
+
}, {
|
|
5587
|
+
readonly name: "exchangeRate1";
|
|
5588
|
+
readonly type: "int256";
|
|
5589
|
+
readonly indexed: false;
|
|
5590
|
+
readonly internalType: "int256";
|
|
5591
|
+
}];
|
|
5592
|
+
readonly anonymous: false;
|
|
5593
|
+
}, {
|
|
5594
|
+
readonly type: "event";
|
|
5595
|
+
readonly name: "ConvertWithExternalRate";
|
|
5596
|
+
readonly inputs: readonly [{
|
|
5597
|
+
readonly name: "currency0";
|
|
5598
|
+
readonly type: "string";
|
|
5599
|
+
readonly indexed: true;
|
|
5600
|
+
readonly internalType: "string";
|
|
5601
|
+
}, {
|
|
5602
|
+
readonly name: "priceFeed1";
|
|
5603
|
+
readonly type: "address";
|
|
5604
|
+
readonly indexed: true;
|
|
5605
|
+
readonly internalType: "address";
|
|
5606
|
+
}, {
|
|
5607
|
+
readonly name: "exchangeRate0";
|
|
5608
|
+
readonly type: "int256";
|
|
5609
|
+
readonly indexed: false;
|
|
5610
|
+
readonly internalType: "int256";
|
|
5611
|
+
}, {
|
|
5612
|
+
readonly name: "exchangeRate1";
|
|
5613
|
+
readonly type: "int256";
|
|
5614
|
+
readonly indexed: false;
|
|
5615
|
+
readonly internalType: "int256";
|
|
5616
|
+
}];
|
|
5617
|
+
readonly anonymous: false;
|
|
5618
|
+
}, {
|
|
5619
|
+
readonly type: "event";
|
|
5620
|
+
readonly name: "Yodl";
|
|
5621
|
+
readonly inputs: readonly [{
|
|
5622
|
+
readonly name: "sender";
|
|
5623
|
+
readonly type: "address";
|
|
5624
|
+
readonly indexed: true;
|
|
5625
|
+
readonly internalType: "address";
|
|
5626
|
+
}, {
|
|
5627
|
+
readonly name: "receiver";
|
|
5628
|
+
readonly type: "address";
|
|
5629
|
+
readonly indexed: true;
|
|
5630
|
+
readonly internalType: "address";
|
|
5631
|
+
}, {
|
|
5632
|
+
readonly name: "token";
|
|
5633
|
+
readonly type: "address";
|
|
5634
|
+
readonly indexed: false;
|
|
5635
|
+
readonly internalType: "address";
|
|
5636
|
+
}, {
|
|
5637
|
+
readonly name: "amount";
|
|
5638
|
+
readonly type: "uint256";
|
|
5639
|
+
readonly indexed: false;
|
|
5640
|
+
readonly internalType: "uint256";
|
|
5641
|
+
}, {
|
|
5642
|
+
readonly name: "fees";
|
|
5643
|
+
readonly type: "uint256";
|
|
5644
|
+
readonly indexed: false;
|
|
5645
|
+
readonly internalType: "uint256";
|
|
5646
|
+
}, {
|
|
5647
|
+
readonly name: "memo";
|
|
5648
|
+
readonly type: "bytes32";
|
|
5649
|
+
readonly indexed: false;
|
|
5650
|
+
readonly internalType: "bytes32";
|
|
5651
|
+
}];
|
|
5652
|
+
readonly anonymous: false;
|
|
5653
|
+
}, {
|
|
5654
|
+
readonly type: "event";
|
|
5655
|
+
readonly name: "YodlNativeTokenTransfer";
|
|
5656
|
+
readonly inputs: readonly [{
|
|
5657
|
+
readonly name: "sender";
|
|
5658
|
+
readonly type: "address";
|
|
5659
|
+
readonly indexed: true;
|
|
5660
|
+
readonly internalType: "address";
|
|
5661
|
+
}, {
|
|
5662
|
+
readonly name: "receiver";
|
|
5663
|
+
readonly type: "address";
|
|
5664
|
+
readonly indexed: true;
|
|
5665
|
+
readonly internalType: "address";
|
|
5666
|
+
}, {
|
|
5667
|
+
readonly name: "amount";
|
|
5668
|
+
readonly type: "uint256";
|
|
5669
|
+
readonly indexed: true;
|
|
5670
|
+
readonly internalType: "uint256";
|
|
5671
|
+
}];
|
|
5672
|
+
readonly anonymous: false;
|
|
5673
|
+
}, {
|
|
5674
|
+
readonly type: "error";
|
|
5675
|
+
readonly name: "ECDSAInvalidSignature";
|
|
5676
|
+
readonly inputs: readonly [];
|
|
5677
|
+
}, {
|
|
5678
|
+
readonly type: "error";
|
|
5679
|
+
readonly name: "ECDSAInvalidSignatureLength";
|
|
5680
|
+
readonly inputs: readonly [{
|
|
5681
|
+
readonly name: "length";
|
|
5682
|
+
readonly type: "uint256";
|
|
5683
|
+
readonly internalType: "uint256";
|
|
5684
|
+
}];
|
|
5685
|
+
}, {
|
|
5686
|
+
readonly type: "error";
|
|
5687
|
+
readonly name: "ECDSAInvalidSignatureS";
|
|
5688
|
+
readonly inputs: readonly [{
|
|
5689
|
+
readonly name: "s";
|
|
5690
|
+
readonly type: "bytes32";
|
|
5691
|
+
readonly internalType: "bytes32";
|
|
5692
|
+
}];
|
|
5693
|
+
}, {
|
|
5694
|
+
readonly type: "error";
|
|
5695
|
+
readonly name: "ReentrancyGuardReentrantCall";
|
|
5696
|
+
readonly inputs: readonly [];
|
|
5403
5697
|
}];
|
|
5404
5698
|
export declare function getShortNames(): string[];
|
|
5405
5699
|
export declare function getNativeToken(chainId: number): string;
|