@yodlpay/tokenlists 0.9.0-alpha.7 → 0.9.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abis-ts/YodlRouterV0.8.abi.d.ts +114 -0
- package/dist/abis-ts/YodlRouterV0.9.abi.d.ts +506 -396
- package/dist/index.d.ts +661 -437
- package/dist/tokenlist-featured.json +98 -548
- package/dist/tokenlists.cjs.development.js +857 -633
- 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 +857 -633
- package/dist/tokenlists.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/tokenlists.esm.js
CHANGED
|
@@ -4144,6 +4144,10 @@ var yodlRouterAbiV08 = [{
|
|
|
4144
4144
|
}],
|
|
4145
4145
|
name: 'ECDSAInvalidSignatureS',
|
|
4146
4146
|
type: 'error'
|
|
4147
|
+
}, {
|
|
4148
|
+
inputs: [],
|
|
4149
|
+
name: 'ReentrancyGuardReentrantCall',
|
|
4150
|
+
type: 'error'
|
|
4147
4151
|
}, {
|
|
4148
4152
|
anonymous: false,
|
|
4149
4153
|
inputs: [{
|
|
@@ -4780,6 +4784,116 @@ var yodlRouterAbiV08 = [{
|
|
|
4780
4784
|
}],
|
|
4781
4785
|
stateMutability: 'payable',
|
|
4782
4786
|
type: 'function'
|
|
4787
|
+
}, {
|
|
4788
|
+
inputs: [{
|
|
4789
|
+
components: [{
|
|
4790
|
+
internalType: 'address',
|
|
4791
|
+
name: 'sender',
|
|
4792
|
+
type: 'address'
|
|
4793
|
+
}, {
|
|
4794
|
+
internalType: 'address',
|
|
4795
|
+
name: 'receiver',
|
|
4796
|
+
type: 'address'
|
|
4797
|
+
}, {
|
|
4798
|
+
internalType: 'uint256',
|
|
4799
|
+
name: 'amountIn',
|
|
4800
|
+
type: 'uint256'
|
|
4801
|
+
}, {
|
|
4802
|
+
internalType: 'uint256',
|
|
4803
|
+
name: 'amountOut',
|
|
4804
|
+
type: 'uint256'
|
|
4805
|
+
}, {
|
|
4806
|
+
internalType: 'bytes32',
|
|
4807
|
+
name: 'memo',
|
|
4808
|
+
type: 'bytes32'
|
|
4809
|
+
}, {
|
|
4810
|
+
internalType: 'bytes',
|
|
4811
|
+
name: 'path',
|
|
4812
|
+
type: 'bytes'
|
|
4813
|
+
}, {
|
|
4814
|
+
components: [{
|
|
4815
|
+
internalType: 'address',
|
|
4816
|
+
name: 'feedAddress',
|
|
4817
|
+
type: 'address'
|
|
4818
|
+
}, {
|
|
4819
|
+
internalType: 'int8',
|
|
4820
|
+
name: 'feedType',
|
|
4821
|
+
type: 'int8'
|
|
4822
|
+
}, {
|
|
4823
|
+
internalType: 'string',
|
|
4824
|
+
name: 'currency',
|
|
4825
|
+
type: 'string'
|
|
4826
|
+
}, {
|
|
4827
|
+
internalType: 'uint256',
|
|
4828
|
+
name: 'amount',
|
|
4829
|
+
type: 'uint256'
|
|
4830
|
+
}, {
|
|
4831
|
+
internalType: 'uint256',
|
|
4832
|
+
name: 'deadline',
|
|
4833
|
+
type: 'uint256'
|
|
4834
|
+
}, {
|
|
4835
|
+
internalType: 'bytes',
|
|
4836
|
+
name: 'signature',
|
|
4837
|
+
type: 'bytes'
|
|
4838
|
+
}],
|
|
4839
|
+
internalType: 'struct AbstractYodlRouter.PriceFeed[2]',
|
|
4840
|
+
name: 'priceFeeds',
|
|
4841
|
+
type: 'tuple[2]'
|
|
4842
|
+
}, {
|
|
4843
|
+
internalType: 'address',
|
|
4844
|
+
name: 'extraFeeReceiver',
|
|
4845
|
+
type: 'address'
|
|
4846
|
+
}, {
|
|
4847
|
+
internalType: 'uint256',
|
|
4848
|
+
name: 'extraFeeBps',
|
|
4849
|
+
type: 'uint256'
|
|
4850
|
+
}, {
|
|
4851
|
+
internalType: 'enum YodlUniswapRouter.SwapType',
|
|
4852
|
+
name: 'swapType',
|
|
4853
|
+
type: 'uint8'
|
|
4854
|
+
}, {
|
|
4855
|
+
internalType: 'uint256',
|
|
4856
|
+
name: 'yd',
|
|
4857
|
+
type: 'uint256'
|
|
4858
|
+
}, {
|
|
4859
|
+
components: [{
|
|
4860
|
+
internalType: 'address',
|
|
4861
|
+
name: 'guardAddress',
|
|
4862
|
+
type: 'address'
|
|
4863
|
+
}, {
|
|
4864
|
+
internalType: 'bytes[]',
|
|
4865
|
+
name: 'payload',
|
|
4866
|
+
type: 'bytes[]'
|
|
4867
|
+
}],
|
|
4868
|
+
internalType: 'struct AbstractYodlRouter.Guard[]',
|
|
4869
|
+
name: 'guards',
|
|
4870
|
+
type: 'tuple[]'
|
|
4871
|
+
}, {
|
|
4872
|
+
components: [{
|
|
4873
|
+
internalType: 'address',
|
|
4874
|
+
name: 'webhookAddress',
|
|
4875
|
+
type: 'address'
|
|
4876
|
+
}, {
|
|
4877
|
+
internalType: 'bytes[]',
|
|
4878
|
+
name: 'payload',
|
|
4879
|
+
type: 'bytes[]'
|
|
4880
|
+
}],
|
|
4881
|
+
internalType: 'struct AbstractYodlRouter.Webhook[]',
|
|
4882
|
+
name: 'webhooks',
|
|
4883
|
+
type: 'tuple[]'
|
|
4884
|
+
}],
|
|
4885
|
+
internalType: 'struct YodlUniswapRouter.YodlUniswapParams',
|
|
4886
|
+
name: 'params',
|
|
4887
|
+
type: 'tuple'
|
|
4888
|
+
}],
|
|
4889
|
+
name: 'yodlWithPancake',
|
|
4890
|
+
outputs: [{
|
|
4891
|
+
internalType: 'uint256',
|
|
4892
|
+
name: '',
|
|
4893
|
+
type: 'uint256'
|
|
4894
|
+
}],
|
|
4895
|
+
stateMutability: 'payable',
|
|
4896
|
+
type: 'function'
|
|
4783
4897
|
}, {
|
|
4784
4898
|
inputs: [{
|
|
4785
4899
|
components: [{
|
|
@@ -4994,996 +5108,1106 @@ var yodlRouterAbiV08 = [{
|
|
|
4994
5108
|
}];
|
|
4995
5109
|
|
|
4996
5110
|
var yodlRouterAbiV09 = [{
|
|
5111
|
+
type: 'constructor',
|
|
4997
5112
|
inputs: [],
|
|
4998
|
-
stateMutability: 'nonpayable'
|
|
4999
|
-
|
|
5113
|
+
stateMutability: 'nonpayable'
|
|
5114
|
+
}, {
|
|
5115
|
+
type: 'receive',
|
|
5116
|
+
stateMutability: 'payable'
|
|
5000
5117
|
}, {
|
|
5118
|
+
type: 'function',
|
|
5119
|
+
name: 'CHAINLINK_FEED',
|
|
5001
5120
|
inputs: [],
|
|
5002
|
-
|
|
5003
|
-
|
|
5121
|
+
outputs: [{
|
|
5122
|
+
name: '',
|
|
5123
|
+
type: 'int8',
|
|
5124
|
+
internalType: 'int8'
|
|
5125
|
+
}],
|
|
5126
|
+
stateMutability: 'view'
|
|
5004
5127
|
}, {
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5128
|
+
type: 'function',
|
|
5129
|
+
name: 'EXTERNAL_FEED',
|
|
5130
|
+
inputs: [],
|
|
5131
|
+
outputs: [{
|
|
5132
|
+
name: '',
|
|
5133
|
+
type: 'int8',
|
|
5134
|
+
internalType: 'int8'
|
|
5009
5135
|
}],
|
|
5010
|
-
|
|
5011
|
-
type: 'error'
|
|
5136
|
+
stateMutability: 'view'
|
|
5012
5137
|
}, {
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5138
|
+
type: 'function',
|
|
5139
|
+
name: 'MAX_CONVENIENCE_FEE_BPS',
|
|
5140
|
+
inputs: [],
|
|
5141
|
+
outputs: [{
|
|
5142
|
+
name: '',
|
|
5143
|
+
type: 'uint256',
|
|
5144
|
+
internalType: 'uint256'
|
|
5017
5145
|
}],
|
|
5018
|
-
|
|
5019
|
-
type: 'error'
|
|
5146
|
+
stateMutability: 'view'
|
|
5020
5147
|
}, {
|
|
5148
|
+
type: 'function',
|
|
5149
|
+
name: 'MAX_EXTRA_FEE_BPS',
|
|
5021
5150
|
inputs: [],
|
|
5022
|
-
|
|
5023
|
-
|
|
5151
|
+
outputs: [{
|
|
5152
|
+
name: '',
|
|
5153
|
+
type: 'uint256',
|
|
5154
|
+
internalType: 'uint256'
|
|
5155
|
+
}],
|
|
5156
|
+
stateMutability: 'view'
|
|
5024
5157
|
}, {
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
name: '
|
|
5030
|
-
type: 'address'
|
|
5031
|
-
|
|
5032
|
-
indexed: true,
|
|
5033
|
-
internalType: 'address',
|
|
5034
|
-
name: 'priceFeed1',
|
|
5035
|
-
type: 'address'
|
|
5036
|
-
}, {
|
|
5037
|
-
indexed: false,
|
|
5038
|
-
internalType: 'int256',
|
|
5039
|
-
name: 'exchangeRate0',
|
|
5040
|
-
type: 'int256'
|
|
5041
|
-
}, {
|
|
5042
|
-
indexed: false,
|
|
5043
|
-
internalType: 'int256',
|
|
5044
|
-
name: 'exchangeRate1',
|
|
5045
|
-
type: 'int256'
|
|
5158
|
+
type: 'function',
|
|
5159
|
+
name: 'NATIVE_TOKEN',
|
|
5160
|
+
inputs: [],
|
|
5161
|
+
outputs: [{
|
|
5162
|
+
name: '',
|
|
5163
|
+
type: 'address',
|
|
5164
|
+
internalType: 'address'
|
|
5046
5165
|
}],
|
|
5047
|
-
|
|
5048
|
-
type: 'event'
|
|
5166
|
+
stateMutability: 'view'
|
|
5049
5167
|
}, {
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
name: '
|
|
5055
|
-
type: '
|
|
5056
|
-
|
|
5057
|
-
indexed: true,
|
|
5058
|
-
internalType: 'address',
|
|
5059
|
-
name: 'priceFeed1',
|
|
5060
|
-
type: 'address'
|
|
5061
|
-
}, {
|
|
5062
|
-
indexed: false,
|
|
5063
|
-
internalType: 'int256',
|
|
5064
|
-
name: 'exchangeRate0',
|
|
5065
|
-
type: 'int256'
|
|
5066
|
-
}, {
|
|
5067
|
-
indexed: false,
|
|
5068
|
-
internalType: 'int256',
|
|
5069
|
-
name: 'exchangeRate1',
|
|
5070
|
-
type: 'int256'
|
|
5168
|
+
type: 'function',
|
|
5169
|
+
name: 'NULL_FEED',
|
|
5170
|
+
inputs: [],
|
|
5171
|
+
outputs: [{
|
|
5172
|
+
name: '',
|
|
5173
|
+
type: 'int8',
|
|
5174
|
+
internalType: 'int8'
|
|
5071
5175
|
}],
|
|
5072
|
-
|
|
5073
|
-
type: 'event'
|
|
5176
|
+
stateMutability: 'view'
|
|
5074
5177
|
}, {
|
|
5075
|
-
|
|
5178
|
+
type: 'function',
|
|
5179
|
+
name: 'RATE_VERIFIER',
|
|
5180
|
+
inputs: [],
|
|
5181
|
+
outputs: [{
|
|
5182
|
+
name: '',
|
|
5183
|
+
type: 'address',
|
|
5184
|
+
internalType: 'address'
|
|
5185
|
+
}],
|
|
5186
|
+
stateMutability: 'view'
|
|
5187
|
+
}, {
|
|
5188
|
+
type: 'function',
|
|
5189
|
+
name: 'acrossSpokePool',
|
|
5190
|
+
inputs: [],
|
|
5191
|
+
outputs: [{
|
|
5192
|
+
name: '',
|
|
5193
|
+
type: 'address',
|
|
5194
|
+
internalType: 'contract V3SpokePoolInterface'
|
|
5195
|
+
}],
|
|
5196
|
+
stateMutability: 'view'
|
|
5197
|
+
}, {
|
|
5198
|
+
type: 'function',
|
|
5199
|
+
name: 'calculateFee',
|
|
5076
5200
|
inputs: [{
|
|
5077
|
-
indexed: true,
|
|
5078
|
-
internalType: 'address',
|
|
5079
|
-
name: 'sender',
|
|
5080
|
-
type: 'address'
|
|
5081
|
-
}, {
|
|
5082
|
-
indexed: true,
|
|
5083
|
-
internalType: 'address',
|
|
5084
|
-
name: 'receiver',
|
|
5085
|
-
type: 'address'
|
|
5086
|
-
}, {
|
|
5087
|
-
indexed: false,
|
|
5088
|
-
internalType: 'address',
|
|
5089
|
-
name: 'token',
|
|
5090
|
-
type: 'address'
|
|
5091
|
-
}, {
|
|
5092
|
-
indexed: false,
|
|
5093
|
-
internalType: 'uint256',
|
|
5094
|
-
name: 'amount',
|
|
5095
|
-
type: 'uint256'
|
|
5096
|
-
}, {
|
|
5097
|
-
indexed: false,
|
|
5098
|
-
internalType: 'uint256',
|
|
5099
|
-
name: 'fees',
|
|
5100
|
-
type: 'uint256'
|
|
5101
|
-
}, {
|
|
5102
|
-
indexed: false,
|
|
5103
|
-
internalType: 'bytes32',
|
|
5104
|
-
name: 'memo',
|
|
5105
|
-
type: 'bytes32'
|
|
5106
|
-
}],
|
|
5107
|
-
name: 'Yodl',
|
|
5108
|
-
type: 'event'
|
|
5109
|
-
}, {
|
|
5110
|
-
anonymous: false,
|
|
5111
|
-
inputs: [{
|
|
5112
|
-
indexed: true,
|
|
5113
|
-
internalType: 'address',
|
|
5114
|
-
name: 'sender',
|
|
5115
|
-
type: 'address'
|
|
5116
|
-
}, {
|
|
5117
|
-
indexed: true,
|
|
5118
|
-
internalType: 'address',
|
|
5119
|
-
name: 'receiver',
|
|
5120
|
-
type: 'address'
|
|
5121
|
-
}, {
|
|
5122
|
-
indexed: true,
|
|
5123
|
-
internalType: 'uint256',
|
|
5124
|
-
name: 'amount',
|
|
5125
|
-
type: 'uint256'
|
|
5126
|
-
}],
|
|
5127
|
-
name: 'YodlNativeTokenTransfer',
|
|
5128
|
-
type: 'event'
|
|
5129
|
-
}, {
|
|
5130
|
-
inputs: [],
|
|
5131
|
-
name: 'CHAINLINK_FEED',
|
|
5132
|
-
outputs: [{
|
|
5133
|
-
internalType: 'int8',
|
|
5134
|
-
name: '',
|
|
5135
|
-
type: 'int8'
|
|
5136
|
-
}],
|
|
5137
|
-
stateMutability: 'view',
|
|
5138
|
-
type: 'function'
|
|
5139
|
-
}, {
|
|
5140
|
-
inputs: [],
|
|
5141
|
-
name: 'EXTERNAL_FEED',
|
|
5142
|
-
outputs: [{
|
|
5143
|
-
internalType: 'int8',
|
|
5144
|
-
name: '',
|
|
5145
|
-
type: 'int8'
|
|
5146
|
-
}],
|
|
5147
|
-
stateMutability: 'view',
|
|
5148
|
-
type: 'function'
|
|
5149
|
-
}, {
|
|
5150
|
-
inputs: [],
|
|
5151
|
-
name: 'MAX_CONVENIENCE_FEE_BPS',
|
|
5152
|
-
outputs: [{
|
|
5153
|
-
internalType: 'uint256',
|
|
5154
|
-
name: '',
|
|
5155
|
-
type: 'uint256'
|
|
5156
|
-
}],
|
|
5157
|
-
stateMutability: 'view',
|
|
5158
|
-
type: 'function'
|
|
5159
|
-
}, {
|
|
5160
|
-
inputs: [],
|
|
5161
|
-
name: 'MAX_EXTRA_FEE_BPS',
|
|
5162
|
-
outputs: [{
|
|
5163
|
-
internalType: 'uint256',
|
|
5164
|
-
name: '',
|
|
5165
|
-
type: 'uint256'
|
|
5166
|
-
}],
|
|
5167
|
-
stateMutability: 'view',
|
|
5168
|
-
type: 'function'
|
|
5169
|
-
}, {
|
|
5170
|
-
inputs: [],
|
|
5171
|
-
name: 'NATIVE_TOKEN',
|
|
5172
|
-
outputs: [{
|
|
5173
|
-
internalType: 'address',
|
|
5174
|
-
name: '',
|
|
5175
|
-
type: 'address'
|
|
5176
|
-
}],
|
|
5177
|
-
stateMutability: 'view',
|
|
5178
|
-
type: 'function'
|
|
5179
|
-
}, {
|
|
5180
|
-
inputs: [],
|
|
5181
|
-
name: 'NULL_FEED',
|
|
5182
|
-
outputs: [{
|
|
5183
|
-
internalType: 'int8',
|
|
5184
|
-
name: '',
|
|
5185
|
-
type: 'int8'
|
|
5186
|
-
}],
|
|
5187
|
-
stateMutability: 'view',
|
|
5188
|
-
type: 'function'
|
|
5189
|
-
}, {
|
|
5190
|
-
inputs: [],
|
|
5191
|
-
name: 'RATE_VERIFIER',
|
|
5192
|
-
outputs: [{
|
|
5193
|
-
internalType: 'address',
|
|
5194
|
-
name: '',
|
|
5195
|
-
type: 'address'
|
|
5196
|
-
}],
|
|
5197
|
-
stateMutability: 'view',
|
|
5198
|
-
type: 'function'
|
|
5199
|
-
}, {
|
|
5200
|
-
inputs: [],
|
|
5201
|
-
name: 'acrossSpokePool',
|
|
5202
|
-
outputs: [{
|
|
5203
|
-
internalType: 'contract V3SpokePoolInterface',
|
|
5204
|
-
name: '',
|
|
5205
|
-
type: 'address'
|
|
5206
|
-
}],
|
|
5207
|
-
stateMutability: 'view',
|
|
5208
|
-
type: 'function'
|
|
5209
|
-
}, {
|
|
5210
|
-
inputs: [{
|
|
5211
|
-
internalType: 'uint256',
|
|
5212
5201
|
name: 'amount',
|
|
5213
|
-
type: 'uint256'
|
|
5202
|
+
type: 'uint256',
|
|
5203
|
+
internalType: 'uint256'
|
|
5214
5204
|
}, {
|
|
5215
|
-
internalType: 'uint256',
|
|
5216
5205
|
name: 'feeBps',
|
|
5217
|
-
type: 'uint256'
|
|
5206
|
+
type: 'uint256',
|
|
5207
|
+
internalType: 'uint256'
|
|
5218
5208
|
}],
|
|
5219
|
-
name: 'calculateFee',
|
|
5220
5209
|
outputs: [{
|
|
5221
|
-
internalType: 'uint256',
|
|
5222
5210
|
name: '',
|
|
5223
|
-
type: 'uint256'
|
|
5211
|
+
type: 'uint256',
|
|
5212
|
+
internalType: 'uint256'
|
|
5224
5213
|
}],
|
|
5225
|
-
stateMutability: 'pure'
|
|
5226
|
-
type: 'function'
|
|
5214
|
+
stateMutability: 'pure'
|
|
5227
5215
|
}, {
|
|
5228
|
-
|
|
5216
|
+
type: 'function',
|
|
5229
5217
|
name: 'curveRouter',
|
|
5218
|
+
inputs: [],
|
|
5230
5219
|
outputs: [{
|
|
5231
|
-
internalType: 'contract ICurveRouterNG',
|
|
5232
5220
|
name: '',
|
|
5233
|
-
type: 'address'
|
|
5221
|
+
type: 'address',
|
|
5222
|
+
internalType: 'contract ICurveRouterNG'
|
|
5234
5223
|
}],
|
|
5235
|
-
stateMutability: 'view'
|
|
5236
|
-
type: 'function'
|
|
5224
|
+
stateMutability: 'view'
|
|
5237
5225
|
}, {
|
|
5226
|
+
type: 'function',
|
|
5227
|
+
name: 'emitConversionEvent',
|
|
5238
5228
|
inputs: [{
|
|
5229
|
+
name: 'priceFeeds',
|
|
5230
|
+
type: 'tuple[2]',
|
|
5231
|
+
internalType: 'struct AbstractYodlRouter.PriceFeed[2]',
|
|
5239
5232
|
components: [{
|
|
5240
|
-
internalType: 'address',
|
|
5241
5233
|
name: 'feedAddress',
|
|
5242
|
-
type: 'address'
|
|
5234
|
+
type: 'address',
|
|
5235
|
+
internalType: 'address'
|
|
5243
5236
|
}, {
|
|
5244
|
-
internalType: 'int8',
|
|
5245
5237
|
name: 'feedType',
|
|
5246
|
-
type: 'int8'
|
|
5238
|
+
type: 'int8',
|
|
5239
|
+
internalType: 'int8'
|
|
5247
5240
|
}, {
|
|
5248
|
-
internalType: 'string',
|
|
5249
5241
|
name: 'currency',
|
|
5250
|
-
type: 'string'
|
|
5242
|
+
type: 'string',
|
|
5243
|
+
internalType: 'string'
|
|
5251
5244
|
}, {
|
|
5252
|
-
internalType: 'uint256',
|
|
5253
5245
|
name: 'amount',
|
|
5254
|
-
type: 'uint256'
|
|
5246
|
+
type: 'uint256',
|
|
5247
|
+
internalType: 'uint256'
|
|
5255
5248
|
}, {
|
|
5256
|
-
internalType: 'uint256',
|
|
5257
5249
|
name: 'deadline',
|
|
5258
|
-
type: 'uint256'
|
|
5250
|
+
type: 'uint256',
|
|
5251
|
+
internalType: 'uint256'
|
|
5259
5252
|
}, {
|
|
5260
|
-
internalType: 'bytes',
|
|
5261
5253
|
name: 'signature',
|
|
5262
|
-
type: 'bytes'
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
name: 'priceFeeds',
|
|
5266
|
-
type: 'tuple[2]'
|
|
5254
|
+
type: 'bytes',
|
|
5255
|
+
internalType: 'bytes'
|
|
5256
|
+
}]
|
|
5267
5257
|
}, {
|
|
5268
|
-
internalType: 'int256[2]',
|
|
5269
5258
|
name: 'prices',
|
|
5270
|
-
type: 'int256[2]'
|
|
5259
|
+
type: 'int256[2]',
|
|
5260
|
+
internalType: 'int256[2]'
|
|
5271
5261
|
}],
|
|
5272
|
-
name: 'emitConversionEvent',
|
|
5273
5262
|
outputs: [],
|
|
5274
|
-
stateMutability: 'nonpayable'
|
|
5275
|
-
type: 'function'
|
|
5263
|
+
stateMutability: 'nonpayable'
|
|
5276
5264
|
}, {
|
|
5265
|
+
type: 'function',
|
|
5266
|
+
name: 'exchangeRate',
|
|
5277
5267
|
inputs: [{
|
|
5268
|
+
name: 'priceFeeds',
|
|
5269
|
+
type: 'tuple[2]',
|
|
5270
|
+
internalType: 'struct AbstractYodlRouter.PriceFeed[2]',
|
|
5278
5271
|
components: [{
|
|
5279
|
-
internalType: 'address',
|
|
5280
5272
|
name: 'feedAddress',
|
|
5281
|
-
type: 'address'
|
|
5273
|
+
type: 'address',
|
|
5274
|
+
internalType: 'address'
|
|
5282
5275
|
}, {
|
|
5283
|
-
internalType: 'int8',
|
|
5284
5276
|
name: 'feedType',
|
|
5285
|
-
type: 'int8'
|
|
5277
|
+
type: 'int8',
|
|
5278
|
+
internalType: 'int8'
|
|
5286
5279
|
}, {
|
|
5287
|
-
internalType: 'string',
|
|
5288
5280
|
name: 'currency',
|
|
5289
|
-
type: 'string'
|
|
5281
|
+
type: 'string',
|
|
5282
|
+
internalType: 'string'
|
|
5290
5283
|
}, {
|
|
5291
|
-
internalType: 'uint256',
|
|
5292
5284
|
name: 'amount',
|
|
5293
|
-
type: 'uint256'
|
|
5285
|
+
type: 'uint256',
|
|
5286
|
+
internalType: 'uint256'
|
|
5294
5287
|
}, {
|
|
5295
|
-
internalType: 'uint256',
|
|
5296
5288
|
name: 'deadline',
|
|
5297
|
-
type: 'uint256'
|
|
5289
|
+
type: 'uint256',
|
|
5290
|
+
internalType: 'uint256'
|
|
5298
5291
|
}, {
|
|
5299
|
-
internalType: 'bytes',
|
|
5300
5292
|
name: 'signature',
|
|
5301
|
-
type: 'bytes'
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
name: 'priceFeeds',
|
|
5305
|
-
type: 'tuple[2]'
|
|
5293
|
+
type: 'bytes',
|
|
5294
|
+
internalType: 'bytes'
|
|
5295
|
+
}]
|
|
5306
5296
|
}, {
|
|
5307
|
-
internalType: 'uint256',
|
|
5308
5297
|
name: 'amount',
|
|
5309
|
-
type: 'uint256'
|
|
5298
|
+
type: 'uint256',
|
|
5299
|
+
internalType: 'uint256'
|
|
5310
5300
|
}],
|
|
5311
|
-
name: 'exchangeRate',
|
|
5312
5301
|
outputs: [{
|
|
5313
|
-
internalType: 'uint256',
|
|
5314
5302
|
name: 'converted',
|
|
5315
|
-
type: 'uint256'
|
|
5303
|
+
type: 'uint256',
|
|
5304
|
+
internalType: 'uint256'
|
|
5316
5305
|
}, {
|
|
5317
|
-
internalType: 'address[2]',
|
|
5318
5306
|
name: 'priceFeedsUsed',
|
|
5319
|
-
type: 'address[2]'
|
|
5307
|
+
type: 'address[2]',
|
|
5308
|
+
internalType: 'address[2]'
|
|
5320
5309
|
}, {
|
|
5321
|
-
internalType: 'int256[2]',
|
|
5322
5310
|
name: 'prices',
|
|
5323
|
-
type: 'int256[2]'
|
|
5311
|
+
type: 'int256[2]',
|
|
5312
|
+
internalType: 'int256[2]'
|
|
5324
5313
|
}],
|
|
5325
|
-
stateMutability: 'view'
|
|
5326
|
-
type: 'function'
|
|
5314
|
+
stateMutability: 'view'
|
|
5327
5315
|
}, {
|
|
5316
|
+
type: 'function',
|
|
5317
|
+
name: 'sweep',
|
|
5328
5318
|
inputs: [{
|
|
5329
|
-
internalType: 'address',
|
|
5330
5319
|
name: 'token',
|
|
5331
|
-
type: 'address'
|
|
5320
|
+
type: 'address',
|
|
5321
|
+
internalType: 'address'
|
|
5332
5322
|
}],
|
|
5333
|
-
name: 'sweep',
|
|
5334
5323
|
outputs: [],
|
|
5335
|
-
stateMutability: 'nonpayable'
|
|
5336
|
-
type: 'function'
|
|
5324
|
+
stateMutability: 'nonpayable'
|
|
5337
5325
|
}, {
|
|
5338
|
-
|
|
5326
|
+
type: 'function',
|
|
5339
5327
|
name: 'uniswapRouter',
|
|
5328
|
+
inputs: [],
|
|
5340
5329
|
outputs: [{
|
|
5341
|
-
internalType: 'contract ISwapRouter02',
|
|
5342
5330
|
name: '',
|
|
5343
|
-
type: 'address'
|
|
5331
|
+
type: 'address',
|
|
5332
|
+
internalType: 'contract ISwapRouter02'
|
|
5344
5333
|
}],
|
|
5345
|
-
stateMutability: 'view'
|
|
5346
|
-
type: 'function'
|
|
5334
|
+
stateMutability: 'view'
|
|
5347
5335
|
}, {
|
|
5336
|
+
type: 'function',
|
|
5337
|
+
name: 'verifyRateSignature',
|
|
5348
5338
|
inputs: [{
|
|
5339
|
+
name: 'priceFeed',
|
|
5340
|
+
type: 'tuple',
|
|
5341
|
+
internalType: 'struct AbstractYodlRouter.PriceFeed',
|
|
5349
5342
|
components: [{
|
|
5350
|
-
internalType: 'address',
|
|
5351
5343
|
name: 'feedAddress',
|
|
5352
|
-
type: 'address'
|
|
5344
|
+
type: 'address',
|
|
5345
|
+
internalType: 'address'
|
|
5353
5346
|
}, {
|
|
5354
|
-
internalType: 'int8',
|
|
5355
5347
|
name: 'feedType',
|
|
5356
|
-
type: 'int8'
|
|
5348
|
+
type: 'int8',
|
|
5349
|
+
internalType: 'int8'
|
|
5357
5350
|
}, {
|
|
5358
|
-
internalType: 'string',
|
|
5359
5351
|
name: 'currency',
|
|
5360
|
-
type: 'string'
|
|
5352
|
+
type: 'string',
|
|
5353
|
+
internalType: 'string'
|
|
5361
5354
|
}, {
|
|
5362
|
-
internalType: 'uint256',
|
|
5363
5355
|
name: 'amount',
|
|
5364
|
-
type: 'uint256'
|
|
5356
|
+
type: 'uint256',
|
|
5357
|
+
internalType: 'uint256'
|
|
5365
5358
|
}, {
|
|
5366
|
-
internalType: 'uint256',
|
|
5367
5359
|
name: 'deadline',
|
|
5368
|
-
type: 'uint256'
|
|
5360
|
+
type: 'uint256',
|
|
5361
|
+
internalType: 'uint256'
|
|
5369
5362
|
}, {
|
|
5370
|
-
internalType: 'bytes',
|
|
5371
5363
|
name: 'signature',
|
|
5372
|
-
type: 'bytes'
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
name: 'priceFeed',
|
|
5376
|
-
type: 'tuple'
|
|
5364
|
+
type: 'bytes',
|
|
5365
|
+
internalType: 'bytes'
|
|
5366
|
+
}]
|
|
5377
5367
|
}],
|
|
5378
|
-
name: 'verifyRateSignature',
|
|
5379
5368
|
outputs: [{
|
|
5380
|
-
internalType: 'bool',
|
|
5381
5369
|
name: '',
|
|
5382
|
-
type: 'bool'
|
|
5370
|
+
type: 'bool',
|
|
5371
|
+
internalType: 'bool'
|
|
5383
5372
|
}],
|
|
5384
|
-
stateMutability: 'view'
|
|
5385
|
-
type: 'function'
|
|
5373
|
+
stateMutability: 'view'
|
|
5386
5374
|
}, {
|
|
5387
|
-
|
|
5375
|
+
type: 'function',
|
|
5388
5376
|
name: 'version',
|
|
5377
|
+
inputs: [],
|
|
5389
5378
|
outputs: [{
|
|
5390
|
-
internalType: 'string',
|
|
5391
5379
|
name: '',
|
|
5392
|
-
type: 'string'
|
|
5380
|
+
type: 'string',
|
|
5381
|
+
internalType: 'string'
|
|
5393
5382
|
}],
|
|
5394
|
-
stateMutability: 'view'
|
|
5395
|
-
type: 'function'
|
|
5383
|
+
stateMutability: 'view'
|
|
5396
5384
|
}, {
|
|
5397
|
-
|
|
5385
|
+
type: 'function',
|
|
5398
5386
|
name: 'wrappedNativeToken',
|
|
5387
|
+
inputs: [],
|
|
5399
5388
|
outputs: [{
|
|
5400
|
-
internalType: 'contract IWETH9',
|
|
5401
5389
|
name: '',
|
|
5402
|
-
type: 'address'
|
|
5390
|
+
type: 'address',
|
|
5391
|
+
internalType: 'contract IWETH9'
|
|
5403
5392
|
}],
|
|
5404
|
-
stateMutability: 'view'
|
|
5405
|
-
type: 'function'
|
|
5393
|
+
stateMutability: 'view'
|
|
5406
5394
|
}, {
|
|
5407
|
-
|
|
5395
|
+
type: 'function',
|
|
5408
5396
|
name: 'yodlFeeBps',
|
|
5397
|
+
inputs: [],
|
|
5409
5398
|
outputs: [{
|
|
5410
|
-
internalType: 'uint256',
|
|
5411
5399
|
name: '',
|
|
5412
|
-
type: 'uint256'
|
|
5400
|
+
type: 'uint256',
|
|
5401
|
+
internalType: 'uint256'
|
|
5413
5402
|
}],
|
|
5414
|
-
stateMutability: 'view'
|
|
5415
|
-
type: 'function'
|
|
5403
|
+
stateMutability: 'view'
|
|
5416
5404
|
}, {
|
|
5417
|
-
|
|
5405
|
+
type: 'function',
|
|
5418
5406
|
name: 'yodlFeeTreasury',
|
|
5407
|
+
inputs: [],
|
|
5419
5408
|
outputs: [{
|
|
5420
|
-
internalType: 'address',
|
|
5421
5409
|
name: '',
|
|
5422
|
-
type: 'address'
|
|
5410
|
+
type: 'address',
|
|
5411
|
+
internalType: 'address'
|
|
5423
5412
|
}],
|
|
5424
|
-
stateMutability: 'view'
|
|
5425
|
-
type: 'function'
|
|
5413
|
+
stateMutability: 'view'
|
|
5426
5414
|
}, {
|
|
5415
|
+
type: 'function',
|
|
5416
|
+
name: 'yodlWithAcross',
|
|
5427
5417
|
inputs: [{
|
|
5418
|
+
name: 'params',
|
|
5419
|
+
type: 'tuple',
|
|
5420
|
+
internalType: 'struct YodlAcrossRouter.YodlAcrossParams',
|
|
5428
5421
|
components: [{
|
|
5429
|
-
internalType: 'bytes32',
|
|
5430
5422
|
name: 'memo',
|
|
5431
|
-
type: 'bytes32'
|
|
5423
|
+
type: 'bytes32',
|
|
5424
|
+
internalType: 'bytes32'
|
|
5432
5425
|
}, {
|
|
5433
|
-
internalType: 'uint256',
|
|
5434
5426
|
name: 'amount',
|
|
5435
|
-
type: 'uint256'
|
|
5427
|
+
type: 'uint256',
|
|
5428
|
+
internalType: 'uint256'
|
|
5436
5429
|
}, {
|
|
5430
|
+
name: 'priceFeeds',
|
|
5431
|
+
type: 'tuple[2]',
|
|
5432
|
+
internalType: 'struct AbstractYodlRouter.PriceFeed[2]',
|
|
5437
5433
|
components: [{
|
|
5438
|
-
internalType: 'address',
|
|
5439
5434
|
name: 'feedAddress',
|
|
5440
|
-
type: 'address'
|
|
5435
|
+
type: 'address',
|
|
5436
|
+
internalType: 'address'
|
|
5441
5437
|
}, {
|
|
5442
|
-
internalType: 'int8',
|
|
5443
5438
|
name: 'feedType',
|
|
5444
|
-
type: 'int8'
|
|
5439
|
+
type: 'int8',
|
|
5440
|
+
internalType: 'int8'
|
|
5445
5441
|
}, {
|
|
5446
|
-
internalType: 'string',
|
|
5447
5442
|
name: 'currency',
|
|
5448
|
-
type: 'string'
|
|
5443
|
+
type: 'string',
|
|
5444
|
+
internalType: 'string'
|
|
5449
5445
|
}, {
|
|
5450
|
-
internalType: 'uint256',
|
|
5451
5446
|
name: 'amount',
|
|
5452
|
-
type: 'uint256'
|
|
5447
|
+
type: 'uint256',
|
|
5448
|
+
internalType: 'uint256'
|
|
5453
5449
|
}, {
|
|
5454
|
-
internalType: 'uint256',
|
|
5455
5450
|
name: 'deadline',
|
|
5456
|
-
type: 'uint256'
|
|
5451
|
+
type: 'uint256',
|
|
5452
|
+
internalType: 'uint256'
|
|
5457
5453
|
}, {
|
|
5458
|
-
internalType: 'bytes',
|
|
5459
5454
|
name: 'signature',
|
|
5460
|
-
type: 'bytes'
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
name: 'priceFeeds',
|
|
5464
|
-
type: 'tuple[2]'
|
|
5455
|
+
type: 'bytes',
|
|
5456
|
+
internalType: 'bytes'
|
|
5457
|
+
}]
|
|
5465
5458
|
}, {
|
|
5466
|
-
internalType: 'address',
|
|
5467
5459
|
name: 'token',
|
|
5468
|
-
type: 'address'
|
|
5460
|
+
type: 'address',
|
|
5461
|
+
internalType: 'address'
|
|
5469
5462
|
}, {
|
|
5470
|
-
internalType: 'address',
|
|
5471
5463
|
name: 'receiver',
|
|
5472
|
-
type: 'address'
|
|
5464
|
+
type: 'address',
|
|
5465
|
+
internalType: 'address'
|
|
5473
5466
|
}, {
|
|
5474
|
-
internalType: 'address',
|
|
5475
5467
|
name: 'extraFeeReceiver',
|
|
5476
|
-
type: 'address'
|
|
5468
|
+
type: 'address',
|
|
5469
|
+
internalType: 'address'
|
|
5477
5470
|
}, {
|
|
5478
|
-
internalType: 'uint256',
|
|
5479
5471
|
name: 'extraFeeBps',
|
|
5480
|
-
type: 'uint256'
|
|
5472
|
+
type: 'uint256',
|
|
5473
|
+
internalType: 'uint256'
|
|
5481
5474
|
}, {
|
|
5482
|
-
internalType: 'uint256',
|
|
5483
5475
|
name: 'yd',
|
|
5484
|
-
type: 'uint256'
|
|
5476
|
+
type: 'uint256',
|
|
5477
|
+
internalType: 'uint256'
|
|
5485
5478
|
}, {
|
|
5479
|
+
name: 'guards',
|
|
5480
|
+
type: 'tuple[]',
|
|
5481
|
+
internalType: 'struct AbstractYodlRouter.Guard[]',
|
|
5486
5482
|
components: [{
|
|
5487
|
-
internalType: 'address',
|
|
5488
5483
|
name: 'guardAddress',
|
|
5489
|
-
type: 'address'
|
|
5484
|
+
type: 'address',
|
|
5485
|
+
internalType: 'address'
|
|
5490
5486
|
}, {
|
|
5491
|
-
internalType: 'bytes[]',
|
|
5492
5487
|
name: 'payload',
|
|
5493
|
-
type: 'bytes[]'
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
name: 'guards',
|
|
5497
|
-
type: 'tuple[]'
|
|
5488
|
+
type: 'bytes[]',
|
|
5489
|
+
internalType: 'bytes[]'
|
|
5490
|
+
}]
|
|
5498
5491
|
}, {
|
|
5492
|
+
name: 'webhooks',
|
|
5493
|
+
type: 'tuple[]',
|
|
5494
|
+
internalType: 'struct AbstractYodlRouter.Webhook[]',
|
|
5499
5495
|
components: [{
|
|
5500
|
-
internalType: 'address',
|
|
5501
5496
|
name: 'webhookAddress',
|
|
5502
|
-
type: 'address'
|
|
5497
|
+
type: 'address',
|
|
5498
|
+
internalType: 'address'
|
|
5503
5499
|
}, {
|
|
5504
|
-
internalType: 'bytes[]',
|
|
5505
5500
|
name: 'payload',
|
|
5506
|
-
type: 'bytes[]'
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
name: 'webhooks',
|
|
5510
|
-
type: 'tuple[]'
|
|
5501
|
+
type: 'bytes[]',
|
|
5502
|
+
internalType: 'bytes[]'
|
|
5503
|
+
}]
|
|
5511
5504
|
}, {
|
|
5512
|
-
internalType: 'address',
|
|
5513
5505
|
name: 'outputToken',
|
|
5514
|
-
type: 'address'
|
|
5506
|
+
type: 'address',
|
|
5507
|
+
internalType: 'address'
|
|
5515
5508
|
}, {
|
|
5516
|
-
internalType: 'uint256',
|
|
5517
5509
|
name: 'outputAmount',
|
|
5518
|
-
type: 'uint256'
|
|
5510
|
+
type: 'uint256',
|
|
5511
|
+
internalType: 'uint256'
|
|
5519
5512
|
}, {
|
|
5520
|
-
internalType: 'uint256',
|
|
5521
5513
|
name: 'destinationChainId',
|
|
5522
|
-
type: 'uint256'
|
|
5514
|
+
type: 'uint256',
|
|
5515
|
+
internalType: 'uint256'
|
|
5523
5516
|
}, {
|
|
5524
|
-
internalType: 'address',
|
|
5525
5517
|
name: 'exclusiveRelayer',
|
|
5526
|
-
type: 'address'
|
|
5518
|
+
type: 'address',
|
|
5519
|
+
internalType: 'address'
|
|
5527
5520
|
}, {
|
|
5528
|
-
internalType: 'uint32',
|
|
5529
5521
|
name: 'quoteTimestamp',
|
|
5530
|
-
type: 'uint32'
|
|
5522
|
+
type: 'uint32',
|
|
5523
|
+
internalType: 'uint32'
|
|
5531
5524
|
}, {
|
|
5532
|
-
internalType: 'uint32',
|
|
5533
5525
|
name: 'fillDeadline',
|
|
5534
|
-
type: 'uint32'
|
|
5526
|
+
type: 'uint32',
|
|
5527
|
+
internalType: 'uint32'
|
|
5535
5528
|
}, {
|
|
5536
|
-
internalType: 'uint32',
|
|
5537
5529
|
name: 'exclusivityDeadline',
|
|
5538
|
-
type: 'uint32'
|
|
5530
|
+
type: 'uint32',
|
|
5531
|
+
internalType: 'uint32'
|
|
5539
5532
|
}, {
|
|
5540
|
-
internalType: 'bytes',
|
|
5541
5533
|
name: 'message',
|
|
5542
|
-
type: 'bytes'
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
name: 'params',
|
|
5546
|
-
type: 'tuple'
|
|
5534
|
+
type: 'bytes',
|
|
5535
|
+
internalType: 'bytes'
|
|
5536
|
+
}]
|
|
5547
5537
|
}],
|
|
5548
|
-
name: 'yodlWithAcross',
|
|
5549
5538
|
outputs: [{
|
|
5550
|
-
internalType: 'uint256',
|
|
5551
5539
|
name: '',
|
|
5552
|
-
type: 'uint256'
|
|
5540
|
+
type: 'uint256',
|
|
5541
|
+
internalType: 'uint256'
|
|
5553
5542
|
}],
|
|
5554
|
-
stateMutability: 'payable'
|
|
5555
|
-
type: 'function'
|
|
5543
|
+
stateMutability: 'payable'
|
|
5556
5544
|
}, {
|
|
5545
|
+
type: 'function',
|
|
5546
|
+
name: 'yodlWithCurve',
|
|
5557
5547
|
inputs: [{
|
|
5548
|
+
name: 'params',
|
|
5549
|
+
type: 'tuple',
|
|
5550
|
+
internalType: 'struct YodlCurveRouter.YodlCurveParams',
|
|
5558
5551
|
components: [{
|
|
5559
|
-
internalType: 'address',
|
|
5560
5552
|
name: 'sender',
|
|
5561
|
-
type: 'address'
|
|
5553
|
+
type: 'address',
|
|
5554
|
+
internalType: 'address'
|
|
5562
5555
|
}, {
|
|
5563
|
-
internalType: 'address',
|
|
5564
5556
|
name: 'receiver',
|
|
5565
|
-
type: 'address'
|
|
5557
|
+
type: 'address',
|
|
5558
|
+
internalType: 'address'
|
|
5566
5559
|
}, {
|
|
5567
|
-
internalType: 'uint256',
|
|
5568
5560
|
name: 'amountIn',
|
|
5569
|
-
type: 'uint256'
|
|
5561
|
+
type: 'uint256',
|
|
5562
|
+
internalType: 'uint256'
|
|
5570
5563
|
}, {
|
|
5571
|
-
internalType: 'uint256',
|
|
5572
5564
|
name: 'amountOut',
|
|
5573
|
-
type: 'uint256'
|
|
5565
|
+
type: 'uint256',
|
|
5566
|
+
internalType: 'uint256'
|
|
5574
5567
|
}, {
|
|
5575
|
-
internalType: 'bytes32',
|
|
5576
5568
|
name: 'memo',
|
|
5577
|
-
type: 'bytes32'
|
|
5569
|
+
type: 'bytes32',
|
|
5570
|
+
internalType: 'bytes32'
|
|
5578
5571
|
}, {
|
|
5579
|
-
internalType: 'address[11]',
|
|
5580
5572
|
name: 'route',
|
|
5581
|
-
type: 'address[11]'
|
|
5573
|
+
type: 'address[11]',
|
|
5574
|
+
internalType: 'address[11]'
|
|
5582
5575
|
}, {
|
|
5583
|
-
internalType: 'uint256[5][5]',
|
|
5584
5576
|
name: 'swapParams',
|
|
5585
|
-
type: 'uint256[5][5]'
|
|
5577
|
+
type: 'uint256[5][5]',
|
|
5578
|
+
internalType: 'uint256[5][5]'
|
|
5586
5579
|
}, {
|
|
5587
|
-
internalType: 'address[5]',
|
|
5588
5580
|
name: 'pools',
|
|
5589
|
-
type: 'address[5]'
|
|
5581
|
+
type: 'address[5]',
|
|
5582
|
+
internalType: 'address[5]'
|
|
5590
5583
|
}, {
|
|
5584
|
+
name: 'priceFeeds',
|
|
5585
|
+
type: 'tuple[2]',
|
|
5586
|
+
internalType: 'struct AbstractYodlRouter.PriceFeed[2]',
|
|
5591
5587
|
components: [{
|
|
5592
|
-
internalType: 'address',
|
|
5593
5588
|
name: 'feedAddress',
|
|
5594
|
-
type: 'address'
|
|
5589
|
+
type: 'address',
|
|
5590
|
+
internalType: 'address'
|
|
5595
5591
|
}, {
|
|
5596
|
-
internalType: 'int8',
|
|
5597
5592
|
name: 'feedType',
|
|
5598
|
-
type: 'int8'
|
|
5593
|
+
type: 'int8',
|
|
5594
|
+
internalType: 'int8'
|
|
5599
5595
|
}, {
|
|
5600
|
-
internalType: 'string',
|
|
5601
5596
|
name: 'currency',
|
|
5602
|
-
type: 'string'
|
|
5597
|
+
type: 'string',
|
|
5598
|
+
internalType: 'string'
|
|
5603
5599
|
}, {
|
|
5604
|
-
internalType: 'uint256',
|
|
5605
5600
|
name: 'amount',
|
|
5606
|
-
type: 'uint256'
|
|
5601
|
+
type: 'uint256',
|
|
5602
|
+
internalType: 'uint256'
|
|
5607
5603
|
}, {
|
|
5608
|
-
internalType: 'uint256',
|
|
5609
5604
|
name: 'deadline',
|
|
5610
|
-
type: 'uint256'
|
|
5605
|
+
type: 'uint256',
|
|
5606
|
+
internalType: 'uint256'
|
|
5611
5607
|
}, {
|
|
5612
|
-
internalType: 'bytes',
|
|
5613
5608
|
name: 'signature',
|
|
5614
|
-
type: 'bytes'
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
name: 'priceFeeds',
|
|
5618
|
-
type: 'tuple[2]'
|
|
5609
|
+
type: 'bytes',
|
|
5610
|
+
internalType: 'bytes'
|
|
5611
|
+
}]
|
|
5619
5612
|
}, {
|
|
5620
|
-
internalType: 'address',
|
|
5621
5613
|
name: 'extraFeeReceiver',
|
|
5622
|
-
type: 'address'
|
|
5614
|
+
type: 'address',
|
|
5615
|
+
internalType: 'address'
|
|
5623
5616
|
}, {
|
|
5624
|
-
internalType: 'uint256',
|
|
5625
5617
|
name: 'extraFeeBps',
|
|
5626
|
-
type: 'uint256'
|
|
5618
|
+
type: 'uint256',
|
|
5619
|
+
internalType: 'uint256'
|
|
5627
5620
|
}, {
|
|
5628
|
-
internalType: 'uint256',
|
|
5629
5621
|
name: 'yd',
|
|
5630
|
-
type: 'uint256'
|
|
5622
|
+
type: 'uint256',
|
|
5623
|
+
internalType: 'uint256'
|
|
5631
5624
|
}, {
|
|
5625
|
+
name: 'guards',
|
|
5626
|
+
type: 'tuple[]',
|
|
5627
|
+
internalType: 'struct AbstractYodlRouter.Guard[]',
|
|
5632
5628
|
components: [{
|
|
5633
|
-
internalType: 'address',
|
|
5634
5629
|
name: 'guardAddress',
|
|
5635
|
-
type: 'address'
|
|
5630
|
+
type: 'address',
|
|
5631
|
+
internalType: 'address'
|
|
5636
5632
|
}, {
|
|
5637
|
-
internalType: 'bytes[]',
|
|
5638
5633
|
name: 'payload',
|
|
5639
|
-
type: 'bytes[]'
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
name: 'guards',
|
|
5643
|
-
type: 'tuple[]'
|
|
5634
|
+
type: 'bytes[]',
|
|
5635
|
+
internalType: 'bytes[]'
|
|
5636
|
+
}]
|
|
5644
5637
|
}, {
|
|
5638
|
+
name: 'webhooks',
|
|
5639
|
+
type: 'tuple[]',
|
|
5640
|
+
internalType: 'struct AbstractYodlRouter.Webhook[]',
|
|
5645
5641
|
components: [{
|
|
5646
|
-
internalType: 'address',
|
|
5647
5642
|
name: 'webhookAddress',
|
|
5648
|
-
type: 'address'
|
|
5643
|
+
type: 'address',
|
|
5644
|
+
internalType: 'address'
|
|
5649
5645
|
}, {
|
|
5650
|
-
internalType: 'bytes[]',
|
|
5651
5646
|
name: 'payload',
|
|
5652
|
-
type: 'bytes[]'
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5647
|
+
type: 'bytes[]',
|
|
5648
|
+
internalType: 'bytes[]'
|
|
5649
|
+
}]
|
|
5650
|
+
}]
|
|
5651
|
+
}],
|
|
5652
|
+
outputs: [{
|
|
5653
|
+
name: '',
|
|
5654
|
+
type: 'uint256',
|
|
5655
|
+
internalType: 'uint256'
|
|
5656
|
+
}],
|
|
5657
|
+
stateMutability: 'payable'
|
|
5658
|
+
}, {
|
|
5659
|
+
type: 'function',
|
|
5660
|
+
name: 'yodlWithExternal',
|
|
5661
|
+
inputs: [{
|
|
5659
5662
|
name: 'params',
|
|
5660
|
-
type: 'tuple'
|
|
5663
|
+
type: 'tuple',
|
|
5664
|
+
internalType: 'struct YodlExternalFundingRouter.YodlExternalFundingParams',
|
|
5665
|
+
components: [{
|
|
5666
|
+
name: 'memo',
|
|
5667
|
+
type: 'bytes32',
|
|
5668
|
+
internalType: 'bytes32'
|
|
5669
|
+
}, {
|
|
5670
|
+
name: 'outAmountGross',
|
|
5671
|
+
type: 'uint256',
|
|
5672
|
+
internalType: 'uint256'
|
|
5673
|
+
}, {
|
|
5674
|
+
name: 'invoiceAmount',
|
|
5675
|
+
type: 'uint256',
|
|
5676
|
+
internalType: 'uint256'
|
|
5677
|
+
}, {
|
|
5678
|
+
name: 'priceFeeds',
|
|
5679
|
+
type: 'tuple[2]',
|
|
5680
|
+
internalType: 'struct AbstractYodlRouter.PriceFeed[2]',
|
|
5681
|
+
components: [{
|
|
5682
|
+
name: 'feedAddress',
|
|
5683
|
+
type: 'address',
|
|
5684
|
+
internalType: 'address'
|
|
5685
|
+
}, {
|
|
5686
|
+
name: 'feedType',
|
|
5687
|
+
type: 'int8',
|
|
5688
|
+
internalType: 'int8'
|
|
5689
|
+
}, {
|
|
5690
|
+
name: 'currency',
|
|
5691
|
+
type: 'string',
|
|
5692
|
+
internalType: 'string'
|
|
5693
|
+
}, {
|
|
5694
|
+
name: 'amount',
|
|
5695
|
+
type: 'uint256',
|
|
5696
|
+
internalType: 'uint256'
|
|
5697
|
+
}, {
|
|
5698
|
+
name: 'deadline',
|
|
5699
|
+
type: 'uint256',
|
|
5700
|
+
internalType: 'uint256'
|
|
5701
|
+
}, {
|
|
5702
|
+
name: 'signature',
|
|
5703
|
+
type: 'bytes',
|
|
5704
|
+
internalType: 'bytes'
|
|
5705
|
+
}]
|
|
5706
|
+
}, {
|
|
5707
|
+
name: 'token',
|
|
5708
|
+
type: 'address',
|
|
5709
|
+
internalType: 'address'
|
|
5710
|
+
}, {
|
|
5711
|
+
name: 'receiver',
|
|
5712
|
+
type: 'address',
|
|
5713
|
+
internalType: 'address'
|
|
5714
|
+
}, {
|
|
5715
|
+
name: 'extraFeeReceiver',
|
|
5716
|
+
type: 'address',
|
|
5717
|
+
internalType: 'address'
|
|
5718
|
+
}, {
|
|
5719
|
+
name: 'extraFeeBps',
|
|
5720
|
+
type: 'uint256',
|
|
5721
|
+
internalType: 'uint256'
|
|
5722
|
+
}, {
|
|
5723
|
+
name: 'yd',
|
|
5724
|
+
type: 'uint256',
|
|
5725
|
+
internalType: 'uint256'
|
|
5726
|
+
}, {
|
|
5727
|
+
name: 'guards',
|
|
5728
|
+
type: 'tuple[]',
|
|
5729
|
+
internalType: 'struct AbstractYodlRouter.Guard[]',
|
|
5730
|
+
components: [{
|
|
5731
|
+
name: 'guardAddress',
|
|
5732
|
+
type: 'address',
|
|
5733
|
+
internalType: 'address'
|
|
5734
|
+
}, {
|
|
5735
|
+
name: 'payload',
|
|
5736
|
+
type: 'bytes[]',
|
|
5737
|
+
internalType: 'bytes[]'
|
|
5738
|
+
}]
|
|
5739
|
+
}, {
|
|
5740
|
+
name: 'webhooks',
|
|
5741
|
+
type: 'tuple[]',
|
|
5742
|
+
internalType: 'struct AbstractYodlRouter.Webhook[]',
|
|
5743
|
+
components: [{
|
|
5744
|
+
name: 'webhookAddress',
|
|
5745
|
+
type: 'address',
|
|
5746
|
+
internalType: 'address'
|
|
5747
|
+
}, {
|
|
5748
|
+
name: 'payload',
|
|
5749
|
+
type: 'bytes[]',
|
|
5750
|
+
internalType: 'bytes[]'
|
|
5751
|
+
}]
|
|
5752
|
+
}, {
|
|
5753
|
+
name: 'convenienceFeeBps',
|
|
5754
|
+
type: 'uint256',
|
|
5755
|
+
internalType: 'uint256'
|
|
5756
|
+
}]
|
|
5661
5757
|
}],
|
|
5662
|
-
name: 'yodlWithCurve',
|
|
5663
5758
|
outputs: [{
|
|
5664
|
-
internalType: 'uint256',
|
|
5665
5759
|
name: '',
|
|
5666
|
-
type: 'uint256'
|
|
5760
|
+
type: 'uint256',
|
|
5761
|
+
internalType: 'uint256'
|
|
5667
5762
|
}],
|
|
5668
|
-
stateMutability: 'payable'
|
|
5669
|
-
type: 'function'
|
|
5763
|
+
stateMutability: 'payable'
|
|
5670
5764
|
}, {
|
|
5765
|
+
type: 'function',
|
|
5766
|
+
name: 'yodlWithPancake',
|
|
5671
5767
|
inputs: [{
|
|
5768
|
+
name: 'params',
|
|
5769
|
+
type: 'tuple',
|
|
5770
|
+
internalType: 'struct YodlUniswapRouter.YodlUniswapParams',
|
|
5672
5771
|
components: [{
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5772
|
+
name: 'sender',
|
|
5773
|
+
type: 'address',
|
|
5774
|
+
internalType: 'address'
|
|
5676
5775
|
}, {
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5776
|
+
name: 'receiver',
|
|
5777
|
+
type: 'address',
|
|
5778
|
+
internalType: 'address'
|
|
5680
5779
|
}, {
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5780
|
+
name: 'amountIn',
|
|
5781
|
+
type: 'uint256',
|
|
5782
|
+
internalType: 'uint256'
|
|
5684
5783
|
}, {
|
|
5784
|
+
name: 'amountOut',
|
|
5785
|
+
type: 'uint256',
|
|
5786
|
+
internalType: 'uint256'
|
|
5787
|
+
}, {
|
|
5788
|
+
name: 'memo',
|
|
5789
|
+
type: 'bytes32',
|
|
5790
|
+
internalType: 'bytes32'
|
|
5791
|
+
}, {
|
|
5792
|
+
name: 'path',
|
|
5793
|
+
type: 'bytes',
|
|
5794
|
+
internalType: 'bytes'
|
|
5795
|
+
}, {
|
|
5796
|
+
name: 'priceFeeds',
|
|
5797
|
+
type: 'tuple[2]',
|
|
5798
|
+
internalType: 'struct AbstractYodlRouter.PriceFeed[2]',
|
|
5685
5799
|
components: [{
|
|
5686
|
-
internalType: 'address',
|
|
5687
5800
|
name: 'feedAddress',
|
|
5688
|
-
type: 'address'
|
|
5801
|
+
type: 'address',
|
|
5802
|
+
internalType: 'address'
|
|
5689
5803
|
}, {
|
|
5690
|
-
internalType: 'int8',
|
|
5691
5804
|
name: 'feedType',
|
|
5692
|
-
type: 'int8'
|
|
5805
|
+
type: 'int8',
|
|
5806
|
+
internalType: 'int8'
|
|
5693
5807
|
}, {
|
|
5694
|
-
internalType: 'string',
|
|
5695
5808
|
name: 'currency',
|
|
5696
|
-
type: 'string'
|
|
5809
|
+
type: 'string',
|
|
5810
|
+
internalType: 'string'
|
|
5697
5811
|
}, {
|
|
5698
|
-
internalType: 'uint256',
|
|
5699
5812
|
name: 'amount',
|
|
5700
|
-
type: 'uint256'
|
|
5813
|
+
type: 'uint256',
|
|
5814
|
+
internalType: 'uint256'
|
|
5701
5815
|
}, {
|
|
5702
|
-
internalType: 'uint256',
|
|
5703
5816
|
name: 'deadline',
|
|
5704
|
-
type: 'uint256'
|
|
5817
|
+
type: 'uint256',
|
|
5818
|
+
internalType: 'uint256'
|
|
5705
5819
|
}, {
|
|
5706
|
-
internalType: 'bytes',
|
|
5707
5820
|
name: 'signature',
|
|
5708
|
-
type: 'bytes'
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
name: 'priceFeeds',
|
|
5712
|
-
type: 'tuple[2]'
|
|
5713
|
-
}, {
|
|
5714
|
-
internalType: 'address',
|
|
5715
|
-
name: 'token',
|
|
5716
|
-
type: 'address'
|
|
5717
|
-
}, {
|
|
5718
|
-
internalType: 'address',
|
|
5719
|
-
name: 'receiver',
|
|
5720
|
-
type: 'address'
|
|
5821
|
+
type: 'bytes',
|
|
5822
|
+
internalType: 'bytes'
|
|
5823
|
+
}]
|
|
5721
5824
|
}, {
|
|
5722
|
-
internalType: 'address',
|
|
5723
5825
|
name: 'extraFeeReceiver',
|
|
5724
|
-
type: 'address'
|
|
5826
|
+
type: 'address',
|
|
5827
|
+
internalType: 'address'
|
|
5725
5828
|
}, {
|
|
5726
|
-
internalType: 'uint256',
|
|
5727
5829
|
name: 'extraFeeBps',
|
|
5728
|
-
type: 'uint256'
|
|
5830
|
+
type: 'uint256',
|
|
5831
|
+
internalType: 'uint256'
|
|
5832
|
+
}, {
|
|
5833
|
+
name: 'swapType',
|
|
5834
|
+
type: 'uint8',
|
|
5835
|
+
internalType: 'enum YodlUniswapRouter.SwapType'
|
|
5729
5836
|
}, {
|
|
5730
|
-
internalType: 'uint256',
|
|
5731
5837
|
name: 'yd',
|
|
5732
|
-
type: 'uint256'
|
|
5838
|
+
type: 'uint256',
|
|
5839
|
+
internalType: 'uint256'
|
|
5733
5840
|
}, {
|
|
5841
|
+
name: 'guards',
|
|
5842
|
+
type: 'tuple[]',
|
|
5843
|
+
internalType: 'struct AbstractYodlRouter.Guard[]',
|
|
5734
5844
|
components: [{
|
|
5735
|
-
internalType: 'address',
|
|
5736
5845
|
name: 'guardAddress',
|
|
5737
|
-
type: 'address'
|
|
5846
|
+
type: 'address',
|
|
5847
|
+
internalType: 'address'
|
|
5738
5848
|
}, {
|
|
5739
|
-
internalType: 'bytes[]',
|
|
5740
5849
|
name: 'payload',
|
|
5741
|
-
type: 'bytes[]'
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
name: 'guards',
|
|
5745
|
-
type: 'tuple[]'
|
|
5850
|
+
type: 'bytes[]',
|
|
5851
|
+
internalType: 'bytes[]'
|
|
5852
|
+
}]
|
|
5746
5853
|
}, {
|
|
5854
|
+
name: 'webhooks',
|
|
5855
|
+
type: 'tuple[]',
|
|
5856
|
+
internalType: 'struct AbstractYodlRouter.Webhook[]',
|
|
5747
5857
|
components: [{
|
|
5748
|
-
internalType: 'address',
|
|
5749
5858
|
name: 'webhookAddress',
|
|
5750
|
-
type: 'address'
|
|
5859
|
+
type: 'address',
|
|
5860
|
+
internalType: 'address'
|
|
5751
5861
|
}, {
|
|
5752
|
-
internalType: 'bytes[]',
|
|
5753
5862
|
name: 'payload',
|
|
5754
|
-
type: 'bytes[]'
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
type: 'tuple[]'
|
|
5759
|
-
}, {
|
|
5760
|
-
internalType: 'uint256',
|
|
5761
|
-
name: 'convenienceFeeBps',
|
|
5762
|
-
type: 'uint256'
|
|
5763
|
-
}],
|
|
5764
|
-
internalType: 'struct YodlExternalFundingRouter.YodlExternalFundingParams',
|
|
5765
|
-
name: 'params',
|
|
5766
|
-
type: 'tuple'
|
|
5863
|
+
type: 'bytes[]',
|
|
5864
|
+
internalType: 'bytes[]'
|
|
5865
|
+
}]
|
|
5866
|
+
}]
|
|
5767
5867
|
}],
|
|
5768
|
-
name: 'yodlWithExternal',
|
|
5769
5868
|
outputs: [{
|
|
5770
|
-
internalType: 'uint256',
|
|
5771
5869
|
name: '',
|
|
5772
|
-
type: 'uint256'
|
|
5870
|
+
type: 'uint256',
|
|
5871
|
+
internalType: 'uint256'
|
|
5773
5872
|
}],
|
|
5774
|
-
stateMutability: 'payable'
|
|
5775
|
-
type: 'function'
|
|
5873
|
+
stateMutability: 'payable'
|
|
5776
5874
|
}, {
|
|
5875
|
+
type: 'function',
|
|
5876
|
+
name: 'yodlWithToken',
|
|
5777
5877
|
inputs: [{
|
|
5878
|
+
name: 'params',
|
|
5879
|
+
type: 'tuple',
|
|
5880
|
+
internalType: 'struct YodlTransferRouter.YodlTransferParams',
|
|
5778
5881
|
components: [{
|
|
5779
|
-
internalType: 'bytes32',
|
|
5780
5882
|
name: 'memo',
|
|
5781
|
-
type: 'bytes32'
|
|
5883
|
+
type: 'bytes32',
|
|
5884
|
+
internalType: 'bytes32'
|
|
5782
5885
|
}, {
|
|
5783
|
-
internalType: 'uint256',
|
|
5784
5886
|
name: 'amount',
|
|
5785
|
-
type: 'uint256'
|
|
5887
|
+
type: 'uint256',
|
|
5888
|
+
internalType: 'uint256'
|
|
5786
5889
|
}, {
|
|
5890
|
+
name: 'priceFeeds',
|
|
5891
|
+
type: 'tuple[2]',
|
|
5892
|
+
internalType: 'struct AbstractYodlRouter.PriceFeed[2]',
|
|
5787
5893
|
components: [{
|
|
5788
|
-
internalType: 'address',
|
|
5789
5894
|
name: 'feedAddress',
|
|
5790
|
-
type: 'address'
|
|
5895
|
+
type: 'address',
|
|
5896
|
+
internalType: 'address'
|
|
5791
5897
|
}, {
|
|
5792
|
-
internalType: 'int8',
|
|
5793
5898
|
name: 'feedType',
|
|
5794
|
-
type: 'int8'
|
|
5899
|
+
type: 'int8',
|
|
5900
|
+
internalType: 'int8'
|
|
5795
5901
|
}, {
|
|
5796
|
-
internalType: 'string',
|
|
5797
5902
|
name: 'currency',
|
|
5798
|
-
type: 'string'
|
|
5903
|
+
type: 'string',
|
|
5904
|
+
internalType: 'string'
|
|
5799
5905
|
}, {
|
|
5800
|
-
internalType: 'uint256',
|
|
5801
5906
|
name: 'amount',
|
|
5802
|
-
type: 'uint256'
|
|
5907
|
+
type: 'uint256',
|
|
5908
|
+
internalType: 'uint256'
|
|
5803
5909
|
}, {
|
|
5804
|
-
internalType: 'uint256',
|
|
5805
5910
|
name: 'deadline',
|
|
5806
|
-
type: 'uint256'
|
|
5911
|
+
type: 'uint256',
|
|
5912
|
+
internalType: 'uint256'
|
|
5807
5913
|
}, {
|
|
5808
|
-
internalType: 'bytes',
|
|
5809
5914
|
name: 'signature',
|
|
5810
|
-
type: 'bytes'
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
name: 'priceFeeds',
|
|
5814
|
-
type: 'tuple[2]'
|
|
5915
|
+
type: 'bytes',
|
|
5916
|
+
internalType: 'bytes'
|
|
5917
|
+
}]
|
|
5815
5918
|
}, {
|
|
5816
|
-
internalType: 'address',
|
|
5817
5919
|
name: 'token',
|
|
5818
|
-
type: 'address'
|
|
5920
|
+
type: 'address',
|
|
5921
|
+
internalType: 'address'
|
|
5819
5922
|
}, {
|
|
5820
|
-
internalType: 'address',
|
|
5821
5923
|
name: 'receiver',
|
|
5822
|
-
type: 'address'
|
|
5924
|
+
type: 'address',
|
|
5925
|
+
internalType: 'address'
|
|
5823
5926
|
}, {
|
|
5824
|
-
internalType: 'address',
|
|
5825
5927
|
name: 'extraFeeReceiver',
|
|
5826
|
-
type: 'address'
|
|
5928
|
+
type: 'address',
|
|
5929
|
+
internalType: 'address'
|
|
5827
5930
|
}, {
|
|
5828
|
-
internalType: 'uint256',
|
|
5829
5931
|
name: 'extraFeeBps',
|
|
5830
|
-
type: 'uint256'
|
|
5932
|
+
type: 'uint256',
|
|
5933
|
+
internalType: 'uint256'
|
|
5831
5934
|
}, {
|
|
5832
|
-
internalType: 'uint256',
|
|
5833
5935
|
name: 'yd',
|
|
5834
|
-
type: 'uint256'
|
|
5936
|
+
type: 'uint256',
|
|
5937
|
+
internalType: 'uint256'
|
|
5835
5938
|
}, {
|
|
5939
|
+
name: 'guards',
|
|
5940
|
+
type: 'tuple[]',
|
|
5941
|
+
internalType: 'struct AbstractYodlRouter.Guard[]',
|
|
5836
5942
|
components: [{
|
|
5837
|
-
internalType: 'address',
|
|
5838
5943
|
name: 'guardAddress',
|
|
5839
|
-
type: 'address'
|
|
5944
|
+
type: 'address',
|
|
5945
|
+
internalType: 'address'
|
|
5840
5946
|
}, {
|
|
5841
|
-
internalType: 'bytes[]',
|
|
5842
5947
|
name: 'payload',
|
|
5843
|
-
type: 'bytes[]'
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
name: 'guards',
|
|
5847
|
-
type: 'tuple[]'
|
|
5948
|
+
type: 'bytes[]',
|
|
5949
|
+
internalType: 'bytes[]'
|
|
5950
|
+
}]
|
|
5848
5951
|
}, {
|
|
5952
|
+
name: 'webhooks',
|
|
5953
|
+
type: 'tuple[]',
|
|
5954
|
+
internalType: 'struct AbstractYodlRouter.Webhook[]',
|
|
5849
5955
|
components: [{
|
|
5850
|
-
internalType: 'address',
|
|
5851
5956
|
name: 'webhookAddress',
|
|
5852
|
-
type: 'address'
|
|
5957
|
+
type: 'address',
|
|
5958
|
+
internalType: 'address'
|
|
5853
5959
|
}, {
|
|
5854
|
-
internalType: 'bytes[]',
|
|
5855
5960
|
name: 'payload',
|
|
5856
|
-
type: 'bytes[]'
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
type: 'tuple[]'
|
|
5861
|
-
}],
|
|
5862
|
-
internalType: 'struct YodlTransferRouter.YodlTransferParams',
|
|
5863
|
-
name: 'params',
|
|
5864
|
-
type: 'tuple'
|
|
5961
|
+
type: 'bytes[]',
|
|
5962
|
+
internalType: 'bytes[]'
|
|
5963
|
+
}]
|
|
5964
|
+
}]
|
|
5865
5965
|
}],
|
|
5866
|
-
name: 'yodlWithToken',
|
|
5867
5966
|
outputs: [{
|
|
5868
|
-
internalType: 'uint256',
|
|
5869
5967
|
name: '',
|
|
5870
|
-
type: 'uint256'
|
|
5968
|
+
type: 'uint256',
|
|
5969
|
+
internalType: 'uint256'
|
|
5871
5970
|
}],
|
|
5872
|
-
stateMutability: 'payable'
|
|
5873
|
-
type: 'function'
|
|
5971
|
+
stateMutability: 'payable'
|
|
5874
5972
|
}, {
|
|
5973
|
+
type: 'function',
|
|
5974
|
+
name: 'yodlWithUniswap',
|
|
5875
5975
|
inputs: [{
|
|
5976
|
+
name: 'params',
|
|
5977
|
+
type: 'tuple',
|
|
5978
|
+
internalType: 'struct YodlUniswapRouter.YodlUniswapParams',
|
|
5876
5979
|
components: [{
|
|
5877
|
-
internalType: 'address',
|
|
5878
5980
|
name: 'sender',
|
|
5879
|
-
type: 'address'
|
|
5981
|
+
type: 'address',
|
|
5982
|
+
internalType: 'address'
|
|
5880
5983
|
}, {
|
|
5881
|
-
internalType: 'address',
|
|
5882
5984
|
name: 'receiver',
|
|
5883
|
-
type: 'address'
|
|
5985
|
+
type: 'address',
|
|
5986
|
+
internalType: 'address'
|
|
5884
5987
|
}, {
|
|
5885
|
-
internalType: 'uint256',
|
|
5886
5988
|
name: 'amountIn',
|
|
5887
|
-
type: 'uint256'
|
|
5989
|
+
type: 'uint256',
|
|
5990
|
+
internalType: 'uint256'
|
|
5888
5991
|
}, {
|
|
5889
|
-
internalType: 'uint256',
|
|
5890
5992
|
name: 'amountOut',
|
|
5891
|
-
type: 'uint256'
|
|
5993
|
+
type: 'uint256',
|
|
5994
|
+
internalType: 'uint256'
|
|
5892
5995
|
}, {
|
|
5893
|
-
internalType: 'bytes32',
|
|
5894
5996
|
name: 'memo',
|
|
5895
|
-
type: 'bytes32'
|
|
5997
|
+
type: 'bytes32',
|
|
5998
|
+
internalType: 'bytes32'
|
|
5896
5999
|
}, {
|
|
5897
|
-
internalType: 'bytes',
|
|
5898
6000
|
name: 'path',
|
|
5899
|
-
type: 'bytes'
|
|
6001
|
+
type: 'bytes',
|
|
6002
|
+
internalType: 'bytes'
|
|
5900
6003
|
}, {
|
|
6004
|
+
name: 'priceFeeds',
|
|
6005
|
+
type: 'tuple[2]',
|
|
6006
|
+
internalType: 'struct AbstractYodlRouter.PriceFeed[2]',
|
|
5901
6007
|
components: [{
|
|
5902
|
-
internalType: 'address',
|
|
5903
6008
|
name: 'feedAddress',
|
|
5904
|
-
type: 'address'
|
|
6009
|
+
type: 'address',
|
|
6010
|
+
internalType: 'address'
|
|
5905
6011
|
}, {
|
|
5906
|
-
internalType: 'int8',
|
|
5907
6012
|
name: 'feedType',
|
|
5908
|
-
type: 'int8'
|
|
6013
|
+
type: 'int8',
|
|
6014
|
+
internalType: 'int8'
|
|
5909
6015
|
}, {
|
|
5910
|
-
internalType: 'string',
|
|
5911
6016
|
name: 'currency',
|
|
5912
|
-
type: 'string'
|
|
6017
|
+
type: 'string',
|
|
6018
|
+
internalType: 'string'
|
|
5913
6019
|
}, {
|
|
5914
|
-
internalType: 'uint256',
|
|
5915
6020
|
name: 'amount',
|
|
5916
|
-
type: 'uint256'
|
|
6021
|
+
type: 'uint256',
|
|
6022
|
+
internalType: 'uint256'
|
|
5917
6023
|
}, {
|
|
5918
|
-
internalType: 'uint256',
|
|
5919
6024
|
name: 'deadline',
|
|
5920
|
-
type: 'uint256'
|
|
6025
|
+
type: 'uint256',
|
|
6026
|
+
internalType: 'uint256'
|
|
5921
6027
|
}, {
|
|
5922
|
-
internalType: 'bytes',
|
|
5923
6028
|
name: 'signature',
|
|
5924
|
-
type: 'bytes'
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
name: 'priceFeeds',
|
|
5928
|
-
type: 'tuple[2]'
|
|
6029
|
+
type: 'bytes',
|
|
6030
|
+
internalType: 'bytes'
|
|
6031
|
+
}]
|
|
5929
6032
|
}, {
|
|
5930
|
-
internalType: 'address',
|
|
5931
6033
|
name: 'extraFeeReceiver',
|
|
5932
|
-
type: 'address'
|
|
6034
|
+
type: 'address',
|
|
6035
|
+
internalType: 'address'
|
|
5933
6036
|
}, {
|
|
5934
|
-
internalType: 'uint256',
|
|
5935
6037
|
name: 'extraFeeBps',
|
|
5936
|
-
type: 'uint256'
|
|
6038
|
+
type: 'uint256',
|
|
6039
|
+
internalType: 'uint256'
|
|
5937
6040
|
}, {
|
|
5938
|
-
internalType: 'enum YodlUniswapRouter.SwapType',
|
|
5939
6041
|
name: 'swapType',
|
|
5940
|
-
type: 'uint8'
|
|
6042
|
+
type: 'uint8',
|
|
6043
|
+
internalType: 'enum YodlUniswapRouter.SwapType'
|
|
5941
6044
|
}, {
|
|
5942
|
-
internalType: 'uint256',
|
|
5943
6045
|
name: 'yd',
|
|
5944
|
-
type: 'uint256'
|
|
6046
|
+
type: 'uint256',
|
|
6047
|
+
internalType: 'uint256'
|
|
5945
6048
|
}, {
|
|
6049
|
+
name: 'guards',
|
|
6050
|
+
type: 'tuple[]',
|
|
6051
|
+
internalType: 'struct AbstractYodlRouter.Guard[]',
|
|
5946
6052
|
components: [{
|
|
5947
|
-
internalType: 'address',
|
|
5948
6053
|
name: 'guardAddress',
|
|
5949
|
-
type: 'address'
|
|
6054
|
+
type: 'address',
|
|
6055
|
+
internalType: 'address'
|
|
5950
6056
|
}, {
|
|
5951
|
-
internalType: 'bytes[]',
|
|
5952
6057
|
name: 'payload',
|
|
5953
|
-
type: 'bytes[]'
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
name: 'guards',
|
|
5957
|
-
type: 'tuple[]'
|
|
6058
|
+
type: 'bytes[]',
|
|
6059
|
+
internalType: 'bytes[]'
|
|
6060
|
+
}]
|
|
5958
6061
|
}, {
|
|
6062
|
+
name: 'webhooks',
|
|
6063
|
+
type: 'tuple[]',
|
|
6064
|
+
internalType: 'struct AbstractYodlRouter.Webhook[]',
|
|
5959
6065
|
components: [{
|
|
5960
|
-
internalType: 'address',
|
|
5961
6066
|
name: 'webhookAddress',
|
|
5962
|
-
type: 'address'
|
|
6067
|
+
type: 'address',
|
|
6068
|
+
internalType: 'address'
|
|
5963
6069
|
}, {
|
|
5964
|
-
internalType: 'bytes[]',
|
|
5965
6070
|
name: 'payload',
|
|
5966
|
-
type: 'bytes[]'
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
type: 'tuple[]'
|
|
5971
|
-
}],
|
|
5972
|
-
internalType: 'struct YodlUniswapRouter.YodlUniswapParams',
|
|
5973
|
-
name: 'params',
|
|
5974
|
-
type: 'tuple'
|
|
6071
|
+
type: 'bytes[]',
|
|
6072
|
+
internalType: 'bytes[]'
|
|
6073
|
+
}]
|
|
6074
|
+
}]
|
|
5975
6075
|
}],
|
|
5976
|
-
name: 'yodlWithUniswap',
|
|
5977
6076
|
outputs: [{
|
|
5978
|
-
internalType: 'uint256',
|
|
5979
6077
|
name: '',
|
|
5980
|
-
type: 'uint256'
|
|
6078
|
+
type: 'uint256',
|
|
6079
|
+
internalType: 'uint256'
|
|
5981
6080
|
}],
|
|
5982
|
-
stateMutability: 'payable'
|
|
5983
|
-
type: 'function'
|
|
6081
|
+
stateMutability: 'payable'
|
|
5984
6082
|
}, {
|
|
5985
|
-
|
|
5986
|
-
|
|
6083
|
+
type: 'event',
|
|
6084
|
+
name: 'Convert',
|
|
6085
|
+
inputs: [{
|
|
6086
|
+
name: 'priceFeed0',
|
|
6087
|
+
type: 'address',
|
|
6088
|
+
indexed: true,
|
|
6089
|
+
internalType: 'address'
|
|
6090
|
+
}, {
|
|
6091
|
+
name: 'priceFeed1',
|
|
6092
|
+
type: 'address',
|
|
6093
|
+
indexed: true,
|
|
6094
|
+
internalType: 'address'
|
|
6095
|
+
}, {
|
|
6096
|
+
name: 'exchangeRate0',
|
|
6097
|
+
type: 'int256',
|
|
6098
|
+
indexed: false,
|
|
6099
|
+
internalType: 'int256'
|
|
6100
|
+
}, {
|
|
6101
|
+
name: 'exchangeRate1',
|
|
6102
|
+
type: 'int256',
|
|
6103
|
+
indexed: false,
|
|
6104
|
+
internalType: 'int256'
|
|
6105
|
+
}],
|
|
6106
|
+
anonymous: false
|
|
6107
|
+
}, {
|
|
6108
|
+
type: 'event',
|
|
6109
|
+
name: 'ConvertWithExternalRate',
|
|
6110
|
+
inputs: [{
|
|
6111
|
+
name: 'currency0',
|
|
6112
|
+
type: 'string',
|
|
6113
|
+
indexed: true,
|
|
6114
|
+
internalType: 'string'
|
|
6115
|
+
}, {
|
|
6116
|
+
name: 'priceFeed1',
|
|
6117
|
+
type: 'address',
|
|
6118
|
+
indexed: true,
|
|
6119
|
+
internalType: 'address'
|
|
6120
|
+
}, {
|
|
6121
|
+
name: 'exchangeRate0',
|
|
6122
|
+
type: 'int256',
|
|
6123
|
+
indexed: false,
|
|
6124
|
+
internalType: 'int256'
|
|
6125
|
+
}, {
|
|
6126
|
+
name: 'exchangeRate1',
|
|
6127
|
+
type: 'int256',
|
|
6128
|
+
indexed: false,
|
|
6129
|
+
internalType: 'int256'
|
|
6130
|
+
}],
|
|
6131
|
+
anonymous: false
|
|
6132
|
+
}, {
|
|
6133
|
+
type: 'event',
|
|
6134
|
+
name: 'Yodl',
|
|
6135
|
+
inputs: [{
|
|
6136
|
+
name: 'sender',
|
|
6137
|
+
type: 'address',
|
|
6138
|
+
indexed: true,
|
|
6139
|
+
internalType: 'address'
|
|
6140
|
+
}, {
|
|
6141
|
+
name: 'receiver',
|
|
6142
|
+
type: 'address',
|
|
6143
|
+
indexed: true,
|
|
6144
|
+
internalType: 'address'
|
|
6145
|
+
}, {
|
|
6146
|
+
name: 'token',
|
|
6147
|
+
type: 'address',
|
|
6148
|
+
indexed: false,
|
|
6149
|
+
internalType: 'address'
|
|
6150
|
+
}, {
|
|
6151
|
+
name: 'amount',
|
|
6152
|
+
type: 'uint256',
|
|
6153
|
+
indexed: false,
|
|
6154
|
+
internalType: 'uint256'
|
|
6155
|
+
}, {
|
|
6156
|
+
name: 'fees',
|
|
6157
|
+
type: 'uint256',
|
|
6158
|
+
indexed: false,
|
|
6159
|
+
internalType: 'uint256'
|
|
6160
|
+
}, {
|
|
6161
|
+
name: 'memo',
|
|
6162
|
+
type: 'bytes32',
|
|
6163
|
+
indexed: false,
|
|
6164
|
+
internalType: 'bytes32'
|
|
6165
|
+
}],
|
|
6166
|
+
anonymous: false
|
|
6167
|
+
}, {
|
|
6168
|
+
type: 'event',
|
|
6169
|
+
name: 'YodlNativeTokenTransfer',
|
|
6170
|
+
inputs: [{
|
|
6171
|
+
name: 'sender',
|
|
6172
|
+
type: 'address',
|
|
6173
|
+
indexed: true,
|
|
6174
|
+
internalType: 'address'
|
|
6175
|
+
}, {
|
|
6176
|
+
name: 'receiver',
|
|
6177
|
+
type: 'address',
|
|
6178
|
+
indexed: true,
|
|
6179
|
+
internalType: 'address'
|
|
6180
|
+
}, {
|
|
6181
|
+
name: 'amount',
|
|
6182
|
+
type: 'uint256',
|
|
6183
|
+
indexed: true,
|
|
6184
|
+
internalType: 'uint256'
|
|
6185
|
+
}],
|
|
6186
|
+
anonymous: false
|
|
6187
|
+
}, {
|
|
6188
|
+
type: 'error',
|
|
6189
|
+
name: 'ECDSAInvalidSignature',
|
|
6190
|
+
inputs: []
|
|
6191
|
+
}, {
|
|
6192
|
+
type: 'error',
|
|
6193
|
+
name: 'ECDSAInvalidSignatureLength',
|
|
6194
|
+
inputs: [{
|
|
6195
|
+
name: 'length',
|
|
6196
|
+
type: 'uint256',
|
|
6197
|
+
internalType: 'uint256'
|
|
6198
|
+
}]
|
|
6199
|
+
}, {
|
|
6200
|
+
type: 'error',
|
|
6201
|
+
name: 'ECDSAInvalidSignatureS',
|
|
6202
|
+
inputs: [{
|
|
6203
|
+
name: 's',
|
|
6204
|
+
type: 'bytes32',
|
|
6205
|
+
internalType: 'bytes32'
|
|
6206
|
+
}]
|
|
6207
|
+
}, {
|
|
6208
|
+
type: 'error',
|
|
6209
|
+
name: 'ReentrancyGuardReentrantCall',
|
|
6210
|
+
inputs: []
|
|
5987
6211
|
}];
|
|
5988
6212
|
|
|
5989
6213
|
var YODL_ROUTER_ABIS = {
|
|
@@ -24010,7 +24234,7 @@ var tokens = [
|
|
|
24010
24234
|
},
|
|
24011
24235
|
{
|
|
24012
24236
|
chainId: 56,
|
|
24013
|
-
coinGeckoId: "
|
|
24237
|
+
coinGeckoId: "binancecoin",
|
|
24014
24238
|
name: "BNB",
|
|
24015
24239
|
symbol: "BNB",
|
|
24016
24240
|
logoUri: "https://kuezuu6pdfndtxdd.public.blob.vercel-storage.com/chains/56/logo.svg",
|
|
@@ -24024,7 +24248,7 @@ var tokens = [
|
|
|
24024
24248
|
},
|
|
24025
24249
|
{
|
|
24026
24250
|
chainId: 56,
|
|
24027
|
-
coinGeckoId: "
|
|
24251
|
+
coinGeckoId: "wbnb",
|
|
24028
24252
|
name: "WBNB",
|
|
24029
24253
|
symbol: "WBNB",
|
|
24030
24254
|
logoUri: "https://kuezuu6pdfndtxdd.public.blob.vercel-storage.com/chains/56/logo.svg",
|