@yodlpay/tokenlists 0.9.0-alpha.8 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abis-ts/YodlRouterV0.8.abi.d.ts +114 -0
- package/dist/abis-ts/YodlRouterV0.9.abi.d.ts +2 -16
- package/dist/chainlist-v1.json +6 -6
- package/dist/fiatCurrencies.json +7 -1
- package/dist/index.d.ts +116 -16
- package/dist/tokenlist-featured.json +554 -155
- package/dist/tokenlist-generated.json +25 -13
- package/dist/tokenlists.cjs.development.js +287 -247
- 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 +288 -250
- package/dist/tokenlists.esm.js.map +1 -1
- package/dist/types.d.ts +2 -14
- package/package.json +2 -2
|
@@ -22,6 +22,10 @@ export declare const yodlRouterAbiV08: readonly [{
|
|
|
22
22
|
}];
|
|
23
23
|
readonly name: "ECDSAInvalidSignatureS";
|
|
24
24
|
readonly type: "error";
|
|
25
|
+
}, {
|
|
26
|
+
readonly inputs: readonly [];
|
|
27
|
+
readonly name: "ReentrancyGuardReentrantCall";
|
|
28
|
+
readonly type: "error";
|
|
25
29
|
}, {
|
|
26
30
|
readonly anonymous: false;
|
|
27
31
|
readonly inputs: readonly [{
|
|
@@ -658,6 +662,116 @@ export declare const yodlRouterAbiV08: readonly [{
|
|
|
658
662
|
}];
|
|
659
663
|
readonly stateMutability: "payable";
|
|
660
664
|
readonly type: "function";
|
|
665
|
+
}, {
|
|
666
|
+
readonly inputs: readonly [{
|
|
667
|
+
readonly components: readonly [{
|
|
668
|
+
readonly internalType: "address";
|
|
669
|
+
readonly name: "sender";
|
|
670
|
+
readonly type: "address";
|
|
671
|
+
}, {
|
|
672
|
+
readonly internalType: "address";
|
|
673
|
+
readonly name: "receiver";
|
|
674
|
+
readonly type: "address";
|
|
675
|
+
}, {
|
|
676
|
+
readonly internalType: "uint256";
|
|
677
|
+
readonly name: "amountIn";
|
|
678
|
+
readonly type: "uint256";
|
|
679
|
+
}, {
|
|
680
|
+
readonly internalType: "uint256";
|
|
681
|
+
readonly name: "amountOut";
|
|
682
|
+
readonly type: "uint256";
|
|
683
|
+
}, {
|
|
684
|
+
readonly internalType: "bytes32";
|
|
685
|
+
readonly name: "memo";
|
|
686
|
+
readonly type: "bytes32";
|
|
687
|
+
}, {
|
|
688
|
+
readonly internalType: "bytes";
|
|
689
|
+
readonly name: "path";
|
|
690
|
+
readonly type: "bytes";
|
|
691
|
+
}, {
|
|
692
|
+
readonly components: readonly [{
|
|
693
|
+
readonly internalType: "address";
|
|
694
|
+
readonly name: "feedAddress";
|
|
695
|
+
readonly type: "address";
|
|
696
|
+
}, {
|
|
697
|
+
readonly internalType: "int8";
|
|
698
|
+
readonly name: "feedType";
|
|
699
|
+
readonly type: "int8";
|
|
700
|
+
}, {
|
|
701
|
+
readonly internalType: "string";
|
|
702
|
+
readonly name: "currency";
|
|
703
|
+
readonly type: "string";
|
|
704
|
+
}, {
|
|
705
|
+
readonly internalType: "uint256";
|
|
706
|
+
readonly name: "amount";
|
|
707
|
+
readonly type: "uint256";
|
|
708
|
+
}, {
|
|
709
|
+
readonly internalType: "uint256";
|
|
710
|
+
readonly name: "deadline";
|
|
711
|
+
readonly type: "uint256";
|
|
712
|
+
}, {
|
|
713
|
+
readonly internalType: "bytes";
|
|
714
|
+
readonly name: "signature";
|
|
715
|
+
readonly type: "bytes";
|
|
716
|
+
}];
|
|
717
|
+
readonly internalType: "struct AbstractYodlRouter.PriceFeed[2]";
|
|
718
|
+
readonly name: "priceFeeds";
|
|
719
|
+
readonly type: "tuple[2]";
|
|
720
|
+
}, {
|
|
721
|
+
readonly internalType: "address";
|
|
722
|
+
readonly name: "extraFeeReceiver";
|
|
723
|
+
readonly type: "address";
|
|
724
|
+
}, {
|
|
725
|
+
readonly internalType: "uint256";
|
|
726
|
+
readonly name: "extraFeeBps";
|
|
727
|
+
readonly type: "uint256";
|
|
728
|
+
}, {
|
|
729
|
+
readonly internalType: "enum YodlUniswapRouter.SwapType";
|
|
730
|
+
readonly name: "swapType";
|
|
731
|
+
readonly type: "uint8";
|
|
732
|
+
}, {
|
|
733
|
+
readonly internalType: "uint256";
|
|
734
|
+
readonly name: "yd";
|
|
735
|
+
readonly type: "uint256";
|
|
736
|
+
}, {
|
|
737
|
+
readonly components: readonly [{
|
|
738
|
+
readonly internalType: "address";
|
|
739
|
+
readonly name: "guardAddress";
|
|
740
|
+
readonly type: "address";
|
|
741
|
+
}, {
|
|
742
|
+
readonly internalType: "bytes[]";
|
|
743
|
+
readonly name: "payload";
|
|
744
|
+
readonly type: "bytes[]";
|
|
745
|
+
}];
|
|
746
|
+
readonly internalType: "struct AbstractYodlRouter.Guard[]";
|
|
747
|
+
readonly name: "guards";
|
|
748
|
+
readonly type: "tuple[]";
|
|
749
|
+
}, {
|
|
750
|
+
readonly components: readonly [{
|
|
751
|
+
readonly internalType: "address";
|
|
752
|
+
readonly name: "webhookAddress";
|
|
753
|
+
readonly type: "address";
|
|
754
|
+
}, {
|
|
755
|
+
readonly internalType: "bytes[]";
|
|
756
|
+
readonly name: "payload";
|
|
757
|
+
readonly type: "bytes[]";
|
|
758
|
+
}];
|
|
759
|
+
readonly internalType: "struct AbstractYodlRouter.Webhook[]";
|
|
760
|
+
readonly name: "webhooks";
|
|
761
|
+
readonly type: "tuple[]";
|
|
762
|
+
}];
|
|
763
|
+
readonly internalType: "struct YodlUniswapRouter.YodlUniswapParams";
|
|
764
|
+
readonly name: "params";
|
|
765
|
+
readonly type: "tuple";
|
|
766
|
+
}];
|
|
767
|
+
readonly name: "yodlWithPancake";
|
|
768
|
+
readonly outputs: readonly [{
|
|
769
|
+
readonly internalType: "uint256";
|
|
770
|
+
readonly name: "";
|
|
771
|
+
readonly type: "uint256";
|
|
772
|
+
}];
|
|
773
|
+
readonly stateMutability: "payable";
|
|
774
|
+
readonly type: "function";
|
|
661
775
|
}, {
|
|
662
776
|
readonly inputs: readonly [{
|
|
663
777
|
readonly components: readonly [{
|
|
@@ -151,16 +151,6 @@ export declare const yodlRouterAbiV09: readonly [{
|
|
|
151
151
|
}];
|
|
152
152
|
readonly stateMutability: "view";
|
|
153
153
|
readonly type: "function";
|
|
154
|
-
}, {
|
|
155
|
-
readonly inputs: readonly [];
|
|
156
|
-
readonly name: "MAX_CONVENIENCE_FEE_BPS";
|
|
157
|
-
readonly outputs: readonly [{
|
|
158
|
-
readonly internalType: "uint256";
|
|
159
|
-
readonly name: "";
|
|
160
|
-
readonly type: "uint256";
|
|
161
|
-
}];
|
|
162
|
-
readonly stateMutability: "view";
|
|
163
|
-
readonly type: "function";
|
|
164
154
|
}, {
|
|
165
155
|
readonly inputs: readonly [];
|
|
166
156
|
readonly name: "MAX_EXTRA_FEE_BPS";
|
|
@@ -680,11 +670,7 @@ export declare const yodlRouterAbiV09: readonly [{
|
|
|
680
670
|
readonly type: "bytes32";
|
|
681
671
|
}, {
|
|
682
672
|
readonly internalType: "uint256";
|
|
683
|
-
readonly name: "
|
|
684
|
-
readonly type: "uint256";
|
|
685
|
-
}, {
|
|
686
|
-
readonly internalType: "uint256";
|
|
687
|
-
readonly name: "invoiceAmount";
|
|
673
|
+
readonly name: "amount";
|
|
688
674
|
readonly type: "uint256";
|
|
689
675
|
}, {
|
|
690
676
|
readonly components: readonly [{
|
|
@@ -770,7 +756,7 @@ export declare const yodlRouterAbiV09: readonly [{
|
|
|
770
756
|
readonly name: "params";
|
|
771
757
|
readonly type: "tuple";
|
|
772
758
|
}];
|
|
773
|
-
readonly name: "
|
|
759
|
+
readonly name: "yodlWithSwappedToken";
|
|
774
760
|
readonly outputs: readonly [{
|
|
775
761
|
readonly internalType: "uint256";
|
|
776
762
|
readonly name: "";
|
package/dist/chainlist-v1.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"timestamp": "2024-06-20T08:16:18.193Z",
|
|
22
22
|
"feeTreasury": "0x9C48d180e4eEE0dA2A899EE1E4c533cA5e92db77",
|
|
23
23
|
"curveRouterAddress": "0x16C6521Dff6baB339122a0FE25a9116693265353",
|
|
24
|
-
"dexes": ["UNISWAP", "CURVE", "ODOS", "ONE_INCH"
|
|
24
|
+
"dexes": ["UNISWAP", "CURVE", "ODOS", "ONE_INCH"]
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"chainName": "Arbitrum One",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"timestamp": "2024-06-20T08:16:18.932Z",
|
|
37
37
|
"feeTreasury": "0x5f0947253a8218894af13438ac2e2e0ced30d234",
|
|
38
38
|
"curveRouterAddress": "0x2191718CD32d02B8E60BAdFFeA33E4B5DD9A0A0D",
|
|
39
|
-
"dexes": ["UNISWAP", "CURVE", "ODOS", "ONE_INCH"
|
|
39
|
+
"dexes": ["UNISWAP", "CURVE", "ODOS", "ONE_INCH"]
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"chainName": "Optimism",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"timestamp": "2024-06-20T08:16:19.165Z",
|
|
52
52
|
"feeTreasury": "0x5f0947253a8218894af13438ac2e2e0ced30d234",
|
|
53
53
|
"curveRouterAddress": "0x0DCDED3545D565bA3B19E683431381007245d983",
|
|
54
|
-
"dexes": ["UNISWAP", "CURVE", "ODOS", "ONE_INCH"
|
|
54
|
+
"dexes": ["UNISWAP", "CURVE", "ODOS", "ONE_INCH"]
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
"chainName": "Gnosis",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"timestamp": "2024-06-20T08:16:19.051Z",
|
|
82
82
|
"feeTreasury": "0x46959a8a332eca1a05Bd4F18115b8F2E1C2F2f05",
|
|
83
83
|
"curveRouterAddress": "0x4f37A9d177470499A2dD084621020b023fcffc1F",
|
|
84
|
-
"dexes": ["UNISWAP", "CURVE", "ODOS", "ONE_INCH"
|
|
84
|
+
"dexes": ["UNISWAP", "CURVE", "ODOS", "ONE_INCH"]
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"chainName": "Polygon",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"timestamp": "2024-06-20T08:16:18.717Z",
|
|
97
97
|
"feeTreasury": "0x5f0947253a8218894af13438ac2e2E0CeD30d234",
|
|
98
98
|
"curveRouterAddress": "0x0DCDED3545D565bA3B19E683431381007245d983",
|
|
99
|
-
"dexes": ["UNISWAP", "CURVE", "ODOS", "ONE_INCH"
|
|
99
|
+
"dexes": ["UNISWAP", "CURVE", "ODOS", "ONE_INCH"]
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"chainName": "BNB Smart Chain",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"timestamp": "2024-07-24T08:16:18.717Z",
|
|
117
117
|
"feeTreasury": "0x698609f1ae8E0ce7e65d3028d1f00297A6bF21e5",
|
|
118
118
|
"curveRouterAddress": "0xA72C85C258A81761433B4e8da60505Fe3Dd551CC",
|
|
119
|
-
"dexes": ["PANCAKE", "CURVE", "ODOS", "ONE_INCH"
|
|
119
|
+
"dexes": ["PANCAKE", "CURVE", "ODOS", "ONE_INCH"]
|
|
120
120
|
}
|
|
121
121
|
]
|
|
122
122
|
}
|
package/dist/fiatCurrencies.json
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -3632,6 +3632,10 @@ export declare function getRouterAbi(version: AbiVersion): readonly [{
|
|
|
3632
3632
|
}];
|
|
3633
3633
|
readonly name: "ECDSAInvalidSignatureS";
|
|
3634
3634
|
readonly type: "error";
|
|
3635
|
+
}, {
|
|
3636
|
+
readonly inputs: readonly [];
|
|
3637
|
+
readonly name: "ReentrancyGuardReentrantCall";
|
|
3638
|
+
readonly type: "error";
|
|
3635
3639
|
}, {
|
|
3636
3640
|
readonly anonymous: false;
|
|
3637
3641
|
readonly inputs: readonly [{
|
|
@@ -4268,6 +4272,116 @@ export declare function getRouterAbi(version: AbiVersion): readonly [{
|
|
|
4268
4272
|
}];
|
|
4269
4273
|
readonly stateMutability: "payable";
|
|
4270
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";
|
|
4271
4385
|
}, {
|
|
4272
4386
|
readonly inputs: readonly [{
|
|
4273
4387
|
readonly components: readonly [{
|
|
@@ -4632,16 +4746,6 @@ export declare function getRouterAbi(version: AbiVersion): readonly [{
|
|
|
4632
4746
|
}];
|
|
4633
4747
|
readonly stateMutability: "view";
|
|
4634
4748
|
readonly type: "function";
|
|
4635
|
-
}, {
|
|
4636
|
-
readonly inputs: readonly [];
|
|
4637
|
-
readonly name: "MAX_CONVENIENCE_FEE_BPS";
|
|
4638
|
-
readonly outputs: readonly [{
|
|
4639
|
-
readonly internalType: "uint256";
|
|
4640
|
-
readonly name: "";
|
|
4641
|
-
readonly type: "uint256";
|
|
4642
|
-
}];
|
|
4643
|
-
readonly stateMutability: "view";
|
|
4644
|
-
readonly type: "function";
|
|
4645
4749
|
}, {
|
|
4646
4750
|
readonly inputs: readonly [];
|
|
4647
4751
|
readonly name: "MAX_EXTRA_FEE_BPS";
|
|
@@ -5161,11 +5265,7 @@ export declare function getRouterAbi(version: AbiVersion): readonly [{
|
|
|
5161
5265
|
readonly type: "bytes32";
|
|
5162
5266
|
}, {
|
|
5163
5267
|
readonly internalType: "uint256";
|
|
5164
|
-
readonly name: "
|
|
5165
|
-
readonly type: "uint256";
|
|
5166
|
-
}, {
|
|
5167
|
-
readonly internalType: "uint256";
|
|
5168
|
-
readonly name: "invoiceAmount";
|
|
5268
|
+
readonly name: "amount";
|
|
5169
5269
|
readonly type: "uint256";
|
|
5170
5270
|
}, {
|
|
5171
5271
|
readonly components: readonly [{
|
|
@@ -5251,7 +5351,7 @@ export declare function getRouterAbi(version: AbiVersion): readonly [{
|
|
|
5251
5351
|
readonly name: "params";
|
|
5252
5352
|
readonly type: "tuple";
|
|
5253
5353
|
}];
|
|
5254
|
-
readonly name: "
|
|
5354
|
+
readonly name: "yodlWithSwappedToken";
|
|
5255
5355
|
readonly outputs: readonly [{
|
|
5256
5356
|
readonly internalType: "uint256";
|
|
5257
5357
|
readonly name: "";
|