@yodlpay/tokenlists 0.5.6 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/routerlist-v1.json +49 -0
- package/dist/tokenlists.cjs.development.js +1037 -0
- 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 +1037 -0
- package/dist/tokenlists.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -3309,6 +3309,13 @@ var routers = [
|
|
|
3309
3309
|
version: "0.5",
|
|
3310
3310
|
fee: "0.002"
|
|
3311
3311
|
},
|
|
3312
|
+
{
|
|
3313
|
+
chainId: 1,
|
|
3314
|
+
address: "0x9179F20b028eCbfcb7C3ADa495b5A30D4c437ffd",
|
|
3315
|
+
timestamp: "2024-07-17T00:00:00+00:00",
|
|
3316
|
+
version: "0.6",
|
|
3317
|
+
fee: "0.002"
|
|
3318
|
+
},
|
|
3312
3319
|
{
|
|
3313
3320
|
chainId: 5,
|
|
3314
3321
|
address: "0x8412D3c11aa605EbaF14D0b6BC7705ab45143Ee8",
|
|
@@ -3351,6 +3358,13 @@ var routers = [
|
|
|
3351
3358
|
version: "0.5",
|
|
3352
3359
|
fee: "0.002"
|
|
3353
3360
|
},
|
|
3361
|
+
{
|
|
3362
|
+
chainId: 10,
|
|
3363
|
+
address: "0xB771B043328FF491D52EC0AAaf78BE2EF5aBC2A5",
|
|
3364
|
+
timestamp: "2024-07-17T00:00:00+00:00",
|
|
3365
|
+
version: "0.6",
|
|
3366
|
+
fee: "0.002"
|
|
3367
|
+
},
|
|
3354
3368
|
{
|
|
3355
3369
|
chainId: 42161,
|
|
3356
3370
|
address: "0x334264f4fbb56a84f80df722ba765d210f0cf555",
|
|
@@ -3386,6 +3400,13 @@ var routers = [
|
|
|
3386
3400
|
version: "0.5",
|
|
3387
3401
|
fee: "0.002"
|
|
3388
3402
|
},
|
|
3403
|
+
{
|
|
3404
|
+
chainId: 42161,
|
|
3405
|
+
address: "0x65d3B655BAdDbb6abe14faFFe25d866fE84DF55c",
|
|
3406
|
+
timestamp: "2024-07-17T00:00:00+00:00",
|
|
3407
|
+
version: "0.6",
|
|
3408
|
+
fee: "0.002"
|
|
3409
|
+
},
|
|
3389
3410
|
{
|
|
3390
3411
|
chainId: 100,
|
|
3391
3412
|
address: "0x448fabd2d16bc48ecdbe68890414de7a1b6348fd",
|
|
@@ -3421,6 +3442,13 @@ var routers = [
|
|
|
3421
3442
|
version: "0.5",
|
|
3422
3443
|
fee: "0.002"
|
|
3423
3444
|
},
|
|
3445
|
+
{
|
|
3446
|
+
chainId: 100,
|
|
3447
|
+
address: "0x820F8C0113bbbAA6A27d97736EA5c6bb57Ea8F08",
|
|
3448
|
+
timestamp: "2024-07-17T00:00:00+00:00",
|
|
3449
|
+
version: "0.6",
|
|
3450
|
+
fee: "0.002"
|
|
3451
|
+
},
|
|
3424
3452
|
{
|
|
3425
3453
|
chainId: 137,
|
|
3426
3454
|
address: "0x8866DAFa2762346c85098C5b2201fA7CB2dA6100",
|
|
@@ -3449,6 +3477,13 @@ var routers = [
|
|
|
3449
3477
|
version: "0.5",
|
|
3450
3478
|
fee: "0.002"
|
|
3451
3479
|
},
|
|
3480
|
+
{
|
|
3481
|
+
chainId: 137,
|
|
3482
|
+
address: "0x2185406360F8A4b32f5f47337da8befD2D3182c9",
|
|
3483
|
+
timestamp: "2024-07-17T00:00:00+00:00",
|
|
3484
|
+
version: "0.6",
|
|
3485
|
+
fee: "0.002"
|
|
3486
|
+
},
|
|
3452
3487
|
{
|
|
3453
3488
|
chainId: 8453,
|
|
3454
3489
|
address: "0x2BaE9Bb53BCe89c760dBfA55D854D43ab96EE19f",
|
|
@@ -3484,12 +3519,26 @@ var routers = [
|
|
|
3484
3519
|
version: "0.5",
|
|
3485
3520
|
fee: "0.002"
|
|
3486
3521
|
},
|
|
3522
|
+
{
|
|
3523
|
+
chainId: 8453,
|
|
3524
|
+
address: "0x5D3D61ea8619cB78E4692fb6518c1c79E1AEF420",
|
|
3525
|
+
timestamp: "2024-07-17T00:00:00+00:00",
|
|
3526
|
+
version: "0.6",
|
|
3527
|
+
fee: "0.002"
|
|
3528
|
+
},
|
|
3487
3529
|
{
|
|
3488
3530
|
chainId: 56,
|
|
3489
3531
|
address: "0x34d327475e4e96a738e21cfc1a5d0f2256c62c34",
|
|
3490
3532
|
timestamp: "2024-07-17T00:00:00+00:00",
|
|
3491
3533
|
version: "0.5",
|
|
3492
3534
|
fee: "0.002"
|
|
3535
|
+
},
|
|
3536
|
+
{
|
|
3537
|
+
chainId: 56,
|
|
3538
|
+
address: "0x01E5654694BC495Da858A8A0dF28456f136421A5",
|
|
3539
|
+
timestamp: "2024-07-17T00:00:00+00:00",
|
|
3540
|
+
version: "0.6",
|
|
3541
|
+
fee: "0.002"
|
|
3493
3542
|
}
|
|
3494
3543
|
];
|
|
3495
3544
|
var routerlist = {
|
|
@@ -13644,12 +13693,1000 @@ var YodlRouterV05 = [
|
|
|
13644
13693
|
}
|
|
13645
13694
|
];
|
|
13646
13695
|
|
|
13696
|
+
var YodlRouterV06 = [
|
|
13697
|
+
{
|
|
13698
|
+
inputs: [
|
|
13699
|
+
],
|
|
13700
|
+
stateMutability: "nonpayable",
|
|
13701
|
+
type: "constructor"
|
|
13702
|
+
},
|
|
13703
|
+
{
|
|
13704
|
+
anonymous: false,
|
|
13705
|
+
inputs: [
|
|
13706
|
+
{
|
|
13707
|
+
indexed: true,
|
|
13708
|
+
internalType: "address",
|
|
13709
|
+
name: "priceFeed0",
|
|
13710
|
+
type: "address"
|
|
13711
|
+
},
|
|
13712
|
+
{
|
|
13713
|
+
indexed: true,
|
|
13714
|
+
internalType: "address",
|
|
13715
|
+
name: "priceFeed1",
|
|
13716
|
+
type: "address"
|
|
13717
|
+
},
|
|
13718
|
+
{
|
|
13719
|
+
indexed: false,
|
|
13720
|
+
internalType: "int256",
|
|
13721
|
+
name: "exchangeRate0",
|
|
13722
|
+
type: "int256"
|
|
13723
|
+
},
|
|
13724
|
+
{
|
|
13725
|
+
indexed: false,
|
|
13726
|
+
internalType: "int256",
|
|
13727
|
+
name: "exchangeRate1",
|
|
13728
|
+
type: "int256"
|
|
13729
|
+
}
|
|
13730
|
+
],
|
|
13731
|
+
name: "Convert",
|
|
13732
|
+
type: "event"
|
|
13733
|
+
},
|
|
13734
|
+
{
|
|
13735
|
+
anonymous: false,
|
|
13736
|
+
inputs: [
|
|
13737
|
+
{
|
|
13738
|
+
indexed: true,
|
|
13739
|
+
internalType: "string",
|
|
13740
|
+
name: "currency0",
|
|
13741
|
+
type: "string"
|
|
13742
|
+
},
|
|
13743
|
+
{
|
|
13744
|
+
indexed: true,
|
|
13745
|
+
internalType: "address",
|
|
13746
|
+
name: "priceFeed1",
|
|
13747
|
+
type: "address"
|
|
13748
|
+
},
|
|
13749
|
+
{
|
|
13750
|
+
indexed: false,
|
|
13751
|
+
internalType: "int256",
|
|
13752
|
+
name: "exchangeRate0",
|
|
13753
|
+
type: "int256"
|
|
13754
|
+
},
|
|
13755
|
+
{
|
|
13756
|
+
indexed: false,
|
|
13757
|
+
internalType: "int256",
|
|
13758
|
+
name: "exchangeRate1",
|
|
13759
|
+
type: "int256"
|
|
13760
|
+
}
|
|
13761
|
+
],
|
|
13762
|
+
name: "ConvertWithExternalRate",
|
|
13763
|
+
type: "event"
|
|
13764
|
+
},
|
|
13765
|
+
{
|
|
13766
|
+
anonymous: false,
|
|
13767
|
+
inputs: [
|
|
13768
|
+
{
|
|
13769
|
+
indexed: true,
|
|
13770
|
+
internalType: "address",
|
|
13771
|
+
name: "sender",
|
|
13772
|
+
type: "address"
|
|
13773
|
+
},
|
|
13774
|
+
{
|
|
13775
|
+
indexed: true,
|
|
13776
|
+
internalType: "address",
|
|
13777
|
+
name: "receiver",
|
|
13778
|
+
type: "address"
|
|
13779
|
+
},
|
|
13780
|
+
{
|
|
13781
|
+
indexed: false,
|
|
13782
|
+
internalType: "address",
|
|
13783
|
+
name: "token",
|
|
13784
|
+
type: "address"
|
|
13785
|
+
},
|
|
13786
|
+
{
|
|
13787
|
+
indexed: false,
|
|
13788
|
+
internalType: "uint256",
|
|
13789
|
+
name: "amount",
|
|
13790
|
+
type: "uint256"
|
|
13791
|
+
},
|
|
13792
|
+
{
|
|
13793
|
+
indexed: false,
|
|
13794
|
+
internalType: "uint256",
|
|
13795
|
+
name: "fees",
|
|
13796
|
+
type: "uint256"
|
|
13797
|
+
},
|
|
13798
|
+
{
|
|
13799
|
+
indexed: false,
|
|
13800
|
+
internalType: "bytes32",
|
|
13801
|
+
name: "memo",
|
|
13802
|
+
type: "bytes32"
|
|
13803
|
+
}
|
|
13804
|
+
],
|
|
13805
|
+
name: "Yodl",
|
|
13806
|
+
type: "event"
|
|
13807
|
+
},
|
|
13808
|
+
{
|
|
13809
|
+
anonymous: false,
|
|
13810
|
+
inputs: [
|
|
13811
|
+
{
|
|
13812
|
+
indexed: true,
|
|
13813
|
+
internalType: "address",
|
|
13814
|
+
name: "sender",
|
|
13815
|
+
type: "address"
|
|
13816
|
+
},
|
|
13817
|
+
{
|
|
13818
|
+
indexed: true,
|
|
13819
|
+
internalType: "address",
|
|
13820
|
+
name: "receiver",
|
|
13821
|
+
type: "address"
|
|
13822
|
+
},
|
|
13823
|
+
{
|
|
13824
|
+
indexed: true,
|
|
13825
|
+
internalType: "uint256",
|
|
13826
|
+
name: "amount",
|
|
13827
|
+
type: "uint256"
|
|
13828
|
+
}
|
|
13829
|
+
],
|
|
13830
|
+
name: "YodlNativeTokenTransfer",
|
|
13831
|
+
type: "event"
|
|
13832
|
+
},
|
|
13833
|
+
{
|
|
13834
|
+
inputs: [
|
|
13835
|
+
],
|
|
13836
|
+
name: "CHAINLINK_FEED",
|
|
13837
|
+
outputs: [
|
|
13838
|
+
{
|
|
13839
|
+
internalType: "int8",
|
|
13840
|
+
name: "",
|
|
13841
|
+
type: "int8"
|
|
13842
|
+
}
|
|
13843
|
+
],
|
|
13844
|
+
stateMutability: "view",
|
|
13845
|
+
type: "function"
|
|
13846
|
+
},
|
|
13847
|
+
{
|
|
13848
|
+
inputs: [
|
|
13849
|
+
],
|
|
13850
|
+
name: "EXTERNAL_FEED",
|
|
13851
|
+
outputs: [
|
|
13852
|
+
{
|
|
13853
|
+
internalType: "int8",
|
|
13854
|
+
name: "",
|
|
13855
|
+
type: "int8"
|
|
13856
|
+
}
|
|
13857
|
+
],
|
|
13858
|
+
stateMutability: "view",
|
|
13859
|
+
type: "function"
|
|
13860
|
+
},
|
|
13861
|
+
{
|
|
13862
|
+
inputs: [
|
|
13863
|
+
],
|
|
13864
|
+
name: "MAX_EXTRA_FEE_BPS",
|
|
13865
|
+
outputs: [
|
|
13866
|
+
{
|
|
13867
|
+
internalType: "uint256",
|
|
13868
|
+
name: "",
|
|
13869
|
+
type: "uint256"
|
|
13870
|
+
}
|
|
13871
|
+
],
|
|
13872
|
+
stateMutability: "view",
|
|
13873
|
+
type: "function"
|
|
13874
|
+
},
|
|
13875
|
+
{
|
|
13876
|
+
inputs: [
|
|
13877
|
+
],
|
|
13878
|
+
name: "NATIVE_TOKEN",
|
|
13879
|
+
outputs: [
|
|
13880
|
+
{
|
|
13881
|
+
internalType: "address",
|
|
13882
|
+
name: "",
|
|
13883
|
+
type: "address"
|
|
13884
|
+
}
|
|
13885
|
+
],
|
|
13886
|
+
stateMutability: "view",
|
|
13887
|
+
type: "function"
|
|
13888
|
+
},
|
|
13889
|
+
{
|
|
13890
|
+
inputs: [
|
|
13891
|
+
],
|
|
13892
|
+
name: "RATE_VERIFIER",
|
|
13893
|
+
outputs: [
|
|
13894
|
+
{
|
|
13895
|
+
internalType: "address",
|
|
13896
|
+
name: "",
|
|
13897
|
+
type: "address"
|
|
13898
|
+
}
|
|
13899
|
+
],
|
|
13900
|
+
stateMutability: "view",
|
|
13901
|
+
type: "function"
|
|
13902
|
+
},
|
|
13903
|
+
{
|
|
13904
|
+
inputs: [
|
|
13905
|
+
{
|
|
13906
|
+
internalType: "uint256",
|
|
13907
|
+
name: "amount",
|
|
13908
|
+
type: "uint256"
|
|
13909
|
+
},
|
|
13910
|
+
{
|
|
13911
|
+
internalType: "uint256",
|
|
13912
|
+
name: "feeBps",
|
|
13913
|
+
type: "uint256"
|
|
13914
|
+
}
|
|
13915
|
+
],
|
|
13916
|
+
name: "calculateFee",
|
|
13917
|
+
outputs: [
|
|
13918
|
+
{
|
|
13919
|
+
internalType: "uint256",
|
|
13920
|
+
name: "",
|
|
13921
|
+
type: "uint256"
|
|
13922
|
+
}
|
|
13923
|
+
],
|
|
13924
|
+
stateMutability: "pure",
|
|
13925
|
+
type: "function"
|
|
13926
|
+
},
|
|
13927
|
+
{
|
|
13928
|
+
inputs: [
|
|
13929
|
+
{
|
|
13930
|
+
components: [
|
|
13931
|
+
{
|
|
13932
|
+
internalType: "address",
|
|
13933
|
+
name: "feedAddress",
|
|
13934
|
+
type: "address"
|
|
13935
|
+
},
|
|
13936
|
+
{
|
|
13937
|
+
internalType: "int8",
|
|
13938
|
+
name: "feedType",
|
|
13939
|
+
type: "int8"
|
|
13940
|
+
},
|
|
13941
|
+
{
|
|
13942
|
+
internalType: "string",
|
|
13943
|
+
name: "currency",
|
|
13944
|
+
type: "string"
|
|
13945
|
+
},
|
|
13946
|
+
{
|
|
13947
|
+
internalType: "uint256",
|
|
13948
|
+
name: "amount",
|
|
13949
|
+
type: "uint256"
|
|
13950
|
+
},
|
|
13951
|
+
{
|
|
13952
|
+
internalType: "uint256",
|
|
13953
|
+
name: "deadline",
|
|
13954
|
+
type: "uint256"
|
|
13955
|
+
},
|
|
13956
|
+
{
|
|
13957
|
+
internalType: "bytes",
|
|
13958
|
+
name: "signature",
|
|
13959
|
+
type: "bytes"
|
|
13960
|
+
}
|
|
13961
|
+
],
|
|
13962
|
+
internalType: "struct AbstractYodlRouter.PriceFeed[2]",
|
|
13963
|
+
name: "priceFeeds",
|
|
13964
|
+
type: "tuple[2]"
|
|
13965
|
+
},
|
|
13966
|
+
{
|
|
13967
|
+
internalType: "uint256",
|
|
13968
|
+
name: "amount",
|
|
13969
|
+
type: "uint256"
|
|
13970
|
+
}
|
|
13971
|
+
],
|
|
13972
|
+
name: "exchangeRate",
|
|
13973
|
+
outputs: [
|
|
13974
|
+
{
|
|
13975
|
+
internalType: "uint256",
|
|
13976
|
+
name: "converted",
|
|
13977
|
+
type: "uint256"
|
|
13978
|
+
},
|
|
13979
|
+
{
|
|
13980
|
+
internalType: "address[2]",
|
|
13981
|
+
name: "priceFeedsUsed",
|
|
13982
|
+
type: "address[2]"
|
|
13983
|
+
},
|
|
13984
|
+
{
|
|
13985
|
+
internalType: "int256[2]",
|
|
13986
|
+
name: "prices",
|
|
13987
|
+
type: "int256[2]"
|
|
13988
|
+
}
|
|
13989
|
+
],
|
|
13990
|
+
stateMutability: "nonpayable",
|
|
13991
|
+
type: "function"
|
|
13992
|
+
},
|
|
13993
|
+
{
|
|
13994
|
+
inputs: [
|
|
13995
|
+
{
|
|
13996
|
+
internalType: "address",
|
|
13997
|
+
name: "token",
|
|
13998
|
+
type: "address"
|
|
13999
|
+
}
|
|
14000
|
+
],
|
|
14001
|
+
name: "sweep",
|
|
14002
|
+
outputs: [
|
|
14003
|
+
],
|
|
14004
|
+
stateMutability: "nonpayable",
|
|
14005
|
+
type: "function"
|
|
14006
|
+
},
|
|
14007
|
+
{
|
|
14008
|
+
inputs: [
|
|
14009
|
+
{
|
|
14010
|
+
internalType: "uint256",
|
|
14011
|
+
name: "amount",
|
|
14012
|
+
type: "uint256"
|
|
14013
|
+
},
|
|
14014
|
+
{
|
|
14015
|
+
internalType: "uint256",
|
|
14016
|
+
name: "feeBps",
|
|
14017
|
+
type: "uint256"
|
|
14018
|
+
},
|
|
14019
|
+
{
|
|
14020
|
+
internalType: "address",
|
|
14021
|
+
name: "token",
|
|
14022
|
+
type: "address"
|
|
14023
|
+
},
|
|
14024
|
+
{
|
|
14025
|
+
internalType: "address",
|
|
14026
|
+
name: "from",
|
|
14027
|
+
type: "address"
|
|
14028
|
+
},
|
|
14029
|
+
{
|
|
14030
|
+
internalType: "address",
|
|
14031
|
+
name: "to",
|
|
14032
|
+
type: "address"
|
|
14033
|
+
}
|
|
14034
|
+
],
|
|
14035
|
+
name: "transferFee",
|
|
14036
|
+
outputs: [
|
|
14037
|
+
{
|
|
14038
|
+
internalType: "uint256",
|
|
14039
|
+
name: "",
|
|
14040
|
+
type: "uint256"
|
|
14041
|
+
}
|
|
14042
|
+
],
|
|
14043
|
+
stateMutability: "nonpayable",
|
|
14044
|
+
type: "function"
|
|
14045
|
+
},
|
|
14046
|
+
{
|
|
14047
|
+
inputs: [
|
|
14048
|
+
],
|
|
14049
|
+
name: "uniswapRouter",
|
|
14050
|
+
outputs: [
|
|
14051
|
+
{
|
|
14052
|
+
internalType: "contract ISwapRouter02",
|
|
14053
|
+
name: "",
|
|
14054
|
+
type: "address"
|
|
14055
|
+
}
|
|
14056
|
+
],
|
|
14057
|
+
stateMutability: "view",
|
|
14058
|
+
type: "function"
|
|
14059
|
+
},
|
|
14060
|
+
{
|
|
14061
|
+
inputs: [
|
|
14062
|
+
{
|
|
14063
|
+
components: [
|
|
14064
|
+
{
|
|
14065
|
+
internalType: "address",
|
|
14066
|
+
name: "feedAddress",
|
|
14067
|
+
type: "address"
|
|
14068
|
+
},
|
|
14069
|
+
{
|
|
14070
|
+
internalType: "int8",
|
|
14071
|
+
name: "feedType",
|
|
14072
|
+
type: "int8"
|
|
14073
|
+
},
|
|
14074
|
+
{
|
|
14075
|
+
internalType: "string",
|
|
14076
|
+
name: "currency",
|
|
14077
|
+
type: "string"
|
|
14078
|
+
},
|
|
14079
|
+
{
|
|
14080
|
+
internalType: "uint256",
|
|
14081
|
+
name: "amount",
|
|
14082
|
+
type: "uint256"
|
|
14083
|
+
},
|
|
14084
|
+
{
|
|
14085
|
+
internalType: "uint256",
|
|
14086
|
+
name: "deadline",
|
|
14087
|
+
type: "uint256"
|
|
14088
|
+
},
|
|
14089
|
+
{
|
|
14090
|
+
internalType: "bytes",
|
|
14091
|
+
name: "signature",
|
|
14092
|
+
type: "bytes"
|
|
14093
|
+
}
|
|
14094
|
+
],
|
|
14095
|
+
internalType: "struct AbstractYodlRouter.PriceFeed",
|
|
14096
|
+
name: "priceFeed",
|
|
14097
|
+
type: "tuple"
|
|
14098
|
+
}
|
|
14099
|
+
],
|
|
14100
|
+
name: "verifyRateSignature",
|
|
14101
|
+
outputs: [
|
|
14102
|
+
{
|
|
14103
|
+
internalType: "bool",
|
|
14104
|
+
name: "",
|
|
14105
|
+
type: "bool"
|
|
14106
|
+
}
|
|
14107
|
+
],
|
|
14108
|
+
stateMutability: "view",
|
|
14109
|
+
type: "function"
|
|
14110
|
+
},
|
|
14111
|
+
{
|
|
14112
|
+
inputs: [
|
|
14113
|
+
],
|
|
14114
|
+
name: "version",
|
|
14115
|
+
outputs: [
|
|
14116
|
+
{
|
|
14117
|
+
internalType: "string",
|
|
14118
|
+
name: "",
|
|
14119
|
+
type: "string"
|
|
14120
|
+
}
|
|
14121
|
+
],
|
|
14122
|
+
stateMutability: "view",
|
|
14123
|
+
type: "function"
|
|
14124
|
+
},
|
|
14125
|
+
{
|
|
14126
|
+
inputs: [
|
|
14127
|
+
],
|
|
14128
|
+
name: "wrappedNativeToken",
|
|
14129
|
+
outputs: [
|
|
14130
|
+
{
|
|
14131
|
+
internalType: "contract IWETH9",
|
|
14132
|
+
name: "",
|
|
14133
|
+
type: "address"
|
|
14134
|
+
}
|
|
14135
|
+
],
|
|
14136
|
+
stateMutability: "view",
|
|
14137
|
+
type: "function"
|
|
14138
|
+
},
|
|
14139
|
+
{
|
|
14140
|
+
inputs: [
|
|
14141
|
+
],
|
|
14142
|
+
name: "yodlFeeBps",
|
|
14143
|
+
outputs: [
|
|
14144
|
+
{
|
|
14145
|
+
internalType: "uint256",
|
|
14146
|
+
name: "",
|
|
14147
|
+
type: "uint256"
|
|
14148
|
+
}
|
|
14149
|
+
],
|
|
14150
|
+
stateMutability: "view",
|
|
14151
|
+
type: "function"
|
|
14152
|
+
},
|
|
14153
|
+
{
|
|
14154
|
+
inputs: [
|
|
14155
|
+
],
|
|
14156
|
+
name: "yodlFeeTreasury",
|
|
14157
|
+
outputs: [
|
|
14158
|
+
{
|
|
14159
|
+
internalType: "address",
|
|
14160
|
+
name: "",
|
|
14161
|
+
type: "address"
|
|
14162
|
+
}
|
|
14163
|
+
],
|
|
14164
|
+
stateMutability: "view",
|
|
14165
|
+
type: "function"
|
|
14166
|
+
},
|
|
14167
|
+
{
|
|
14168
|
+
inputs: [
|
|
14169
|
+
{
|
|
14170
|
+
components: [
|
|
14171
|
+
{
|
|
14172
|
+
internalType: "address",
|
|
14173
|
+
name: "sender",
|
|
14174
|
+
type: "address"
|
|
14175
|
+
},
|
|
14176
|
+
{
|
|
14177
|
+
internalType: "address",
|
|
14178
|
+
name: "receiver",
|
|
14179
|
+
type: "address"
|
|
14180
|
+
},
|
|
14181
|
+
{
|
|
14182
|
+
internalType: "uint256",
|
|
14183
|
+
name: "amountIn",
|
|
14184
|
+
type: "uint256"
|
|
14185
|
+
},
|
|
14186
|
+
{
|
|
14187
|
+
internalType: "uint256",
|
|
14188
|
+
name: "amountOut",
|
|
14189
|
+
type: "uint256"
|
|
14190
|
+
},
|
|
14191
|
+
{
|
|
14192
|
+
internalType: "bytes32",
|
|
14193
|
+
name: "memo",
|
|
14194
|
+
type: "bytes32"
|
|
14195
|
+
},
|
|
14196
|
+
{
|
|
14197
|
+
internalType: "bytes",
|
|
14198
|
+
name: "path",
|
|
14199
|
+
type: "bytes"
|
|
14200
|
+
},
|
|
14201
|
+
{
|
|
14202
|
+
components: [
|
|
14203
|
+
{
|
|
14204
|
+
internalType: "address",
|
|
14205
|
+
name: "feedAddress",
|
|
14206
|
+
type: "address"
|
|
14207
|
+
},
|
|
14208
|
+
{
|
|
14209
|
+
internalType: "int8",
|
|
14210
|
+
name: "feedType",
|
|
14211
|
+
type: "int8"
|
|
14212
|
+
},
|
|
14213
|
+
{
|
|
14214
|
+
internalType: "string",
|
|
14215
|
+
name: "currency",
|
|
14216
|
+
type: "string"
|
|
14217
|
+
},
|
|
14218
|
+
{
|
|
14219
|
+
internalType: "uint256",
|
|
14220
|
+
name: "amount",
|
|
14221
|
+
type: "uint256"
|
|
14222
|
+
},
|
|
14223
|
+
{
|
|
14224
|
+
internalType: "uint256",
|
|
14225
|
+
name: "deadline",
|
|
14226
|
+
type: "uint256"
|
|
14227
|
+
},
|
|
14228
|
+
{
|
|
14229
|
+
internalType: "bytes",
|
|
14230
|
+
name: "signature",
|
|
14231
|
+
type: "bytes"
|
|
14232
|
+
}
|
|
14233
|
+
],
|
|
14234
|
+
internalType: "struct AbstractYodlRouter.PriceFeed[2]",
|
|
14235
|
+
name: "priceFeeds",
|
|
14236
|
+
type: "tuple[2]"
|
|
14237
|
+
},
|
|
14238
|
+
{
|
|
14239
|
+
internalType: "address",
|
|
14240
|
+
name: "extraFeeReceiver",
|
|
14241
|
+
type: "address"
|
|
14242
|
+
},
|
|
14243
|
+
{
|
|
14244
|
+
internalType: "uint256",
|
|
14245
|
+
name: "extraFeeBps",
|
|
14246
|
+
type: "uint256"
|
|
14247
|
+
},
|
|
14248
|
+
{
|
|
14249
|
+
internalType: "enum YodlUniswapRouter.SwapType",
|
|
14250
|
+
name: "swapType",
|
|
14251
|
+
type: "uint8"
|
|
14252
|
+
},
|
|
14253
|
+
{
|
|
14254
|
+
internalType: "uint256",
|
|
14255
|
+
name: "yd",
|
|
14256
|
+
type: "uint256"
|
|
14257
|
+
},
|
|
14258
|
+
{
|
|
14259
|
+
components: [
|
|
14260
|
+
{
|
|
14261
|
+
internalType: "address",
|
|
14262
|
+
name: "yApp",
|
|
14263
|
+
type: "address"
|
|
14264
|
+
},
|
|
14265
|
+
{
|
|
14266
|
+
internalType: "uint256",
|
|
14267
|
+
name: "sessionId",
|
|
14268
|
+
type: "uint256"
|
|
14269
|
+
},
|
|
14270
|
+
{
|
|
14271
|
+
internalType: "bytes[]",
|
|
14272
|
+
name: "payload",
|
|
14273
|
+
type: "bytes[]"
|
|
14274
|
+
}
|
|
14275
|
+
],
|
|
14276
|
+
internalType: "struct AbstractYodlRouter.YApp[]",
|
|
14277
|
+
name: "yAppList",
|
|
14278
|
+
type: "tuple[]"
|
|
14279
|
+
}
|
|
14280
|
+
],
|
|
14281
|
+
internalType: "struct YodlUniswapRouter.YodlUniswapParams",
|
|
14282
|
+
name: "params",
|
|
14283
|
+
type: "tuple"
|
|
14284
|
+
}
|
|
14285
|
+
],
|
|
14286
|
+
name: "yodlWithPancake",
|
|
14287
|
+
outputs: [
|
|
14288
|
+
{
|
|
14289
|
+
internalType: "uint256",
|
|
14290
|
+
name: "",
|
|
14291
|
+
type: "uint256"
|
|
14292
|
+
}
|
|
14293
|
+
],
|
|
14294
|
+
stateMutability: "payable",
|
|
14295
|
+
type: "function"
|
|
14296
|
+
},
|
|
14297
|
+
{
|
|
14298
|
+
inputs: [
|
|
14299
|
+
{
|
|
14300
|
+
components: [
|
|
14301
|
+
{
|
|
14302
|
+
internalType: "bytes32",
|
|
14303
|
+
name: "memo",
|
|
14304
|
+
type: "bytes32"
|
|
14305
|
+
},
|
|
14306
|
+
{
|
|
14307
|
+
internalType: "uint256",
|
|
14308
|
+
name: "amount",
|
|
14309
|
+
type: "uint256"
|
|
14310
|
+
},
|
|
14311
|
+
{
|
|
14312
|
+
components: [
|
|
14313
|
+
{
|
|
14314
|
+
internalType: "address",
|
|
14315
|
+
name: "feedAddress",
|
|
14316
|
+
type: "address"
|
|
14317
|
+
},
|
|
14318
|
+
{
|
|
14319
|
+
internalType: "int8",
|
|
14320
|
+
name: "feedType",
|
|
14321
|
+
type: "int8"
|
|
14322
|
+
},
|
|
14323
|
+
{
|
|
14324
|
+
internalType: "string",
|
|
14325
|
+
name: "currency",
|
|
14326
|
+
type: "string"
|
|
14327
|
+
},
|
|
14328
|
+
{
|
|
14329
|
+
internalType: "uint256",
|
|
14330
|
+
name: "amount",
|
|
14331
|
+
type: "uint256"
|
|
14332
|
+
},
|
|
14333
|
+
{
|
|
14334
|
+
internalType: "uint256",
|
|
14335
|
+
name: "deadline",
|
|
14336
|
+
type: "uint256"
|
|
14337
|
+
},
|
|
14338
|
+
{
|
|
14339
|
+
internalType: "bytes",
|
|
14340
|
+
name: "signature",
|
|
14341
|
+
type: "bytes"
|
|
14342
|
+
}
|
|
14343
|
+
],
|
|
14344
|
+
internalType: "struct AbstractYodlRouter.PriceFeed[2]",
|
|
14345
|
+
name: "priceFeeds",
|
|
14346
|
+
type: "tuple[2]"
|
|
14347
|
+
},
|
|
14348
|
+
{
|
|
14349
|
+
internalType: "address",
|
|
14350
|
+
name: "token",
|
|
14351
|
+
type: "address"
|
|
14352
|
+
},
|
|
14353
|
+
{
|
|
14354
|
+
internalType: "address",
|
|
14355
|
+
name: "receiver",
|
|
14356
|
+
type: "address"
|
|
14357
|
+
},
|
|
14358
|
+
{
|
|
14359
|
+
internalType: "address",
|
|
14360
|
+
name: "extraFeeReceiver",
|
|
14361
|
+
type: "address"
|
|
14362
|
+
},
|
|
14363
|
+
{
|
|
14364
|
+
internalType: "uint256",
|
|
14365
|
+
name: "extraFeeBps",
|
|
14366
|
+
type: "uint256"
|
|
14367
|
+
},
|
|
14368
|
+
{
|
|
14369
|
+
internalType: "uint256",
|
|
14370
|
+
name: "yd",
|
|
14371
|
+
type: "uint256"
|
|
14372
|
+
},
|
|
14373
|
+
{
|
|
14374
|
+
components: [
|
|
14375
|
+
{
|
|
14376
|
+
internalType: "address",
|
|
14377
|
+
name: "yApp",
|
|
14378
|
+
type: "address"
|
|
14379
|
+
},
|
|
14380
|
+
{
|
|
14381
|
+
internalType: "uint256",
|
|
14382
|
+
name: "sessionId",
|
|
14383
|
+
type: "uint256"
|
|
14384
|
+
},
|
|
14385
|
+
{
|
|
14386
|
+
internalType: "bytes[]",
|
|
14387
|
+
name: "payload",
|
|
14388
|
+
type: "bytes[]"
|
|
14389
|
+
}
|
|
14390
|
+
],
|
|
14391
|
+
internalType: "struct AbstractYodlRouter.YApp[]",
|
|
14392
|
+
name: "yAppList",
|
|
14393
|
+
type: "tuple[]"
|
|
14394
|
+
}
|
|
14395
|
+
],
|
|
14396
|
+
internalType: "struct YodlTransferRouter.YodlTransferParams",
|
|
14397
|
+
name: "params",
|
|
14398
|
+
type: "tuple"
|
|
14399
|
+
}
|
|
14400
|
+
],
|
|
14401
|
+
name: "yodlWithToken",
|
|
14402
|
+
outputs: [
|
|
14403
|
+
{
|
|
14404
|
+
internalType: "uint256",
|
|
14405
|
+
name: "",
|
|
14406
|
+
type: "uint256"
|
|
14407
|
+
}
|
|
14408
|
+
],
|
|
14409
|
+
stateMutability: "payable",
|
|
14410
|
+
type: "function"
|
|
14411
|
+
},
|
|
14412
|
+
{
|
|
14413
|
+
inputs: [
|
|
14414
|
+
{
|
|
14415
|
+
components: [
|
|
14416
|
+
{
|
|
14417
|
+
internalType: "address",
|
|
14418
|
+
name: "sender",
|
|
14419
|
+
type: "address"
|
|
14420
|
+
},
|
|
14421
|
+
{
|
|
14422
|
+
internalType: "address",
|
|
14423
|
+
name: "receiver",
|
|
14424
|
+
type: "address"
|
|
14425
|
+
},
|
|
14426
|
+
{
|
|
14427
|
+
internalType: "uint256",
|
|
14428
|
+
name: "amountIn",
|
|
14429
|
+
type: "uint256"
|
|
14430
|
+
},
|
|
14431
|
+
{
|
|
14432
|
+
internalType: "uint256",
|
|
14433
|
+
name: "amountOut",
|
|
14434
|
+
type: "uint256"
|
|
14435
|
+
},
|
|
14436
|
+
{
|
|
14437
|
+
internalType: "bytes32",
|
|
14438
|
+
name: "memo",
|
|
14439
|
+
type: "bytes32"
|
|
14440
|
+
},
|
|
14441
|
+
{
|
|
14442
|
+
internalType: "bytes",
|
|
14443
|
+
name: "path",
|
|
14444
|
+
type: "bytes"
|
|
14445
|
+
},
|
|
14446
|
+
{
|
|
14447
|
+
components: [
|
|
14448
|
+
{
|
|
14449
|
+
internalType: "address",
|
|
14450
|
+
name: "feedAddress",
|
|
14451
|
+
type: "address"
|
|
14452
|
+
},
|
|
14453
|
+
{
|
|
14454
|
+
internalType: "int8",
|
|
14455
|
+
name: "feedType",
|
|
14456
|
+
type: "int8"
|
|
14457
|
+
},
|
|
14458
|
+
{
|
|
14459
|
+
internalType: "string",
|
|
14460
|
+
name: "currency",
|
|
14461
|
+
type: "string"
|
|
14462
|
+
},
|
|
14463
|
+
{
|
|
14464
|
+
internalType: "uint256",
|
|
14465
|
+
name: "amount",
|
|
14466
|
+
type: "uint256"
|
|
14467
|
+
},
|
|
14468
|
+
{
|
|
14469
|
+
internalType: "uint256",
|
|
14470
|
+
name: "deadline",
|
|
14471
|
+
type: "uint256"
|
|
14472
|
+
},
|
|
14473
|
+
{
|
|
14474
|
+
internalType: "bytes",
|
|
14475
|
+
name: "signature",
|
|
14476
|
+
type: "bytes"
|
|
14477
|
+
}
|
|
14478
|
+
],
|
|
14479
|
+
internalType: "struct AbstractYodlRouter.PriceFeed[2]",
|
|
14480
|
+
name: "priceFeeds",
|
|
14481
|
+
type: "tuple[2]"
|
|
14482
|
+
},
|
|
14483
|
+
{
|
|
14484
|
+
internalType: "address",
|
|
14485
|
+
name: "extraFeeReceiver",
|
|
14486
|
+
type: "address"
|
|
14487
|
+
},
|
|
14488
|
+
{
|
|
14489
|
+
internalType: "uint256",
|
|
14490
|
+
name: "extraFeeBps",
|
|
14491
|
+
type: "uint256"
|
|
14492
|
+
},
|
|
14493
|
+
{
|
|
14494
|
+
internalType: "enum YodlUniswapRouter.SwapType",
|
|
14495
|
+
name: "swapType",
|
|
14496
|
+
type: "uint8"
|
|
14497
|
+
},
|
|
14498
|
+
{
|
|
14499
|
+
internalType: "uint256",
|
|
14500
|
+
name: "yd",
|
|
14501
|
+
type: "uint256"
|
|
14502
|
+
},
|
|
14503
|
+
{
|
|
14504
|
+
components: [
|
|
14505
|
+
{
|
|
14506
|
+
internalType: "address",
|
|
14507
|
+
name: "yApp",
|
|
14508
|
+
type: "address"
|
|
14509
|
+
},
|
|
14510
|
+
{
|
|
14511
|
+
internalType: "uint256",
|
|
14512
|
+
name: "sessionId",
|
|
14513
|
+
type: "uint256"
|
|
14514
|
+
},
|
|
14515
|
+
{
|
|
14516
|
+
internalType: "bytes[]",
|
|
14517
|
+
name: "payload",
|
|
14518
|
+
type: "bytes[]"
|
|
14519
|
+
}
|
|
14520
|
+
],
|
|
14521
|
+
internalType: "struct AbstractYodlRouter.YApp[]",
|
|
14522
|
+
name: "yAppList",
|
|
14523
|
+
type: "tuple[]"
|
|
14524
|
+
}
|
|
14525
|
+
],
|
|
14526
|
+
internalType: "struct YodlUniswapRouter.YodlUniswapParams",
|
|
14527
|
+
name: "params",
|
|
14528
|
+
type: "tuple"
|
|
14529
|
+
}
|
|
14530
|
+
],
|
|
14531
|
+
name: "yodlWithUniswap",
|
|
14532
|
+
outputs: [
|
|
14533
|
+
{
|
|
14534
|
+
internalType: "uint256",
|
|
14535
|
+
name: "",
|
|
14536
|
+
type: "uint256"
|
|
14537
|
+
}
|
|
14538
|
+
],
|
|
14539
|
+
stateMutability: "payable",
|
|
14540
|
+
type: "function"
|
|
14541
|
+
},
|
|
14542
|
+
{
|
|
14543
|
+
stateMutability: "payable",
|
|
14544
|
+
type: "receive"
|
|
14545
|
+
},
|
|
14546
|
+
{
|
|
14547
|
+
inputs: [
|
|
14548
|
+
{
|
|
14549
|
+
components: [
|
|
14550
|
+
{
|
|
14551
|
+
internalType: "address",
|
|
14552
|
+
name: "sender",
|
|
14553
|
+
type: "address"
|
|
14554
|
+
},
|
|
14555
|
+
{
|
|
14556
|
+
internalType: "address",
|
|
14557
|
+
name: "receiver",
|
|
14558
|
+
type: "address"
|
|
14559
|
+
},
|
|
14560
|
+
{
|
|
14561
|
+
internalType: "uint256",
|
|
14562
|
+
name: "amountIn",
|
|
14563
|
+
type: "uint256"
|
|
14564
|
+
},
|
|
14565
|
+
{
|
|
14566
|
+
internalType: "uint256",
|
|
14567
|
+
name: "amountOut",
|
|
14568
|
+
type: "uint256"
|
|
14569
|
+
},
|
|
14570
|
+
{
|
|
14571
|
+
internalType: "bytes32",
|
|
14572
|
+
name: "memo",
|
|
14573
|
+
type: "bytes32"
|
|
14574
|
+
},
|
|
14575
|
+
{
|
|
14576
|
+
internalType: "address[9]",
|
|
14577
|
+
name: "route",
|
|
14578
|
+
type: "address[9]"
|
|
14579
|
+
},
|
|
14580
|
+
{
|
|
14581
|
+
internalType: "uint256[3][4]",
|
|
14582
|
+
name: "swapParams",
|
|
14583
|
+
type: "uint256[3][4]"
|
|
14584
|
+
},
|
|
14585
|
+
{
|
|
14586
|
+
internalType: "address[4]",
|
|
14587
|
+
name: "factoryAddresses",
|
|
14588
|
+
type: "address[4]"
|
|
14589
|
+
},
|
|
14590
|
+
{
|
|
14591
|
+
components: [
|
|
14592
|
+
{
|
|
14593
|
+
internalType: "address",
|
|
14594
|
+
name: "feedAddress",
|
|
14595
|
+
type: "address"
|
|
14596
|
+
},
|
|
14597
|
+
{
|
|
14598
|
+
internalType: "int8",
|
|
14599
|
+
name: "feedType",
|
|
14600
|
+
type: "int8"
|
|
14601
|
+
},
|
|
14602
|
+
{
|
|
14603
|
+
internalType: "string",
|
|
14604
|
+
name: "currency",
|
|
14605
|
+
type: "string"
|
|
14606
|
+
},
|
|
14607
|
+
{
|
|
14608
|
+
internalType: "uint256",
|
|
14609
|
+
name: "amount",
|
|
14610
|
+
type: "uint256"
|
|
14611
|
+
},
|
|
14612
|
+
{
|
|
14613
|
+
internalType: "uint256",
|
|
14614
|
+
name: "deadline",
|
|
14615
|
+
type: "uint256"
|
|
14616
|
+
},
|
|
14617
|
+
{
|
|
14618
|
+
internalType: "bytes",
|
|
14619
|
+
name: "signature",
|
|
14620
|
+
type: "bytes"
|
|
14621
|
+
}
|
|
14622
|
+
],
|
|
14623
|
+
internalType: "struct AbstractYodlRouter.PriceFeed[2]",
|
|
14624
|
+
name: "priceFeeds",
|
|
14625
|
+
type: "tuple[2]"
|
|
14626
|
+
},
|
|
14627
|
+
{
|
|
14628
|
+
internalType: "address",
|
|
14629
|
+
name: "extraFeeReceiver",
|
|
14630
|
+
type: "address"
|
|
14631
|
+
},
|
|
14632
|
+
{
|
|
14633
|
+
internalType: "uint256",
|
|
14634
|
+
name: "extraFeeBps",
|
|
14635
|
+
type: "uint256"
|
|
14636
|
+
},
|
|
14637
|
+
{
|
|
14638
|
+
internalType: "uint256",
|
|
14639
|
+
name: "yd",
|
|
14640
|
+
type: "uint256"
|
|
14641
|
+
},
|
|
14642
|
+
{
|
|
14643
|
+
components: [
|
|
14644
|
+
{
|
|
14645
|
+
internalType: "address",
|
|
14646
|
+
name: "yApp",
|
|
14647
|
+
type: "address"
|
|
14648
|
+
},
|
|
14649
|
+
{
|
|
14650
|
+
internalType: "uint256",
|
|
14651
|
+
name: "sessionId",
|
|
14652
|
+
type: "uint256"
|
|
14653
|
+
},
|
|
14654
|
+
{
|
|
14655
|
+
internalType: "bytes[]",
|
|
14656
|
+
name: "payload",
|
|
14657
|
+
type: "bytes[]"
|
|
14658
|
+
}
|
|
14659
|
+
],
|
|
14660
|
+
internalType: "struct AbstractYodlRouter.YApp[]",
|
|
14661
|
+
name: "yAppList",
|
|
14662
|
+
type: "tuple[]"
|
|
14663
|
+
}
|
|
14664
|
+
],
|
|
14665
|
+
internalType: "struct YodlCurveRouter.YodlCurveParams",
|
|
14666
|
+
name: "params",
|
|
14667
|
+
type: "tuple"
|
|
14668
|
+
}
|
|
14669
|
+
],
|
|
14670
|
+
name: "yodlWithCurve",
|
|
14671
|
+
outputs: [
|
|
14672
|
+
{
|
|
14673
|
+
internalType: "uint256",
|
|
14674
|
+
name: "",
|
|
14675
|
+
type: "uint256"
|
|
14676
|
+
}
|
|
14677
|
+
],
|
|
14678
|
+
stateMutability: "payable",
|
|
14679
|
+
type: "function"
|
|
14680
|
+
}
|
|
14681
|
+
];
|
|
14682
|
+
|
|
13647
14683
|
var YODL_ROUTER_ABIS = {
|
|
13648
14684
|
"0.1": YodlRouterV01,
|
|
13649
14685
|
"0.2": YodlRouterV02,
|
|
13650
14686
|
"0.3": YodlRouterV03,
|
|
13651
14687
|
"0.4": YodlRouterV04,
|
|
13652
14688
|
"0.5": YodlRouterV05,
|
|
14689
|
+
"0.6": YodlRouterV06,
|
|
13653
14690
|
"test": YodlRouterV03
|
|
13654
14691
|
};
|
|
13655
14692
|
var CURVE_ROUTER_ABI = CurveRouterV13Abi;
|