-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from portals-fi/Portals-Quoter
Portals quoter
- Loading branch information
Showing
43 changed files
with
2,047 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
[ | ||
{ | ||
"type": "constructor", | ||
"inputs": [], | ||
"stateMutability": "nonpayable" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "quote", | ||
"inputs": [ | ||
{ | ||
"name": "paramsArray", | ||
"type": "tuple[]", | ||
"internalType": "struct IPortalsQuoter.QuoteParams[]", | ||
"components": [ | ||
{ | ||
"name": "protocol", | ||
"type": "uint8", | ||
"internalType": "uint8" | ||
}, | ||
{ | ||
"name": "fee", | ||
"type": "uint24", | ||
"internalType": "uint24" | ||
}, | ||
{ | ||
"name": "pool", | ||
"type": "address", | ||
"internalType": "address" | ||
}, | ||
{ | ||
"name": "tokenIn", | ||
"type": "address", | ||
"internalType": "address" | ||
}, | ||
{ | ||
"name": "tokenOut", | ||
"type": "address", | ||
"internalType": "address" | ||
}, | ||
{ | ||
"name": "quoteContract", | ||
"type": "address", | ||
"internalType": "address" | ||
}, | ||
{ | ||
"name": "amount", | ||
"type": "uint256", | ||
"internalType": "uint256" | ||
} | ||
] | ||
} | ||
], | ||
"outputs": [ | ||
{ | ||
"name": "", | ||
"type": "uint256", | ||
"internalType": "uint256" | ||
} | ||
], | ||
"stateMutability": "view" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"transactions": [ | ||
{ | ||
"hash": "0xe159b1fd2ce6701540d68186f0ef1fd236cfe0b9f95942e4515766ee7a4d5ae9", | ||
"transactionType": "CREATE", | ||
"contractName": "PortalsQuoter", | ||
"contractAddress": "0xF5091Ef874f5ED438811c56BEEA8148aA7769a0F", | ||
"function": null, | ||
"arguments": null, | ||
"transaction": { | ||
"type": "0x02", | ||
"from": "0xb27446d86890f3f35d010b9adaeb135d2771a720", | ||
"gas": "0x115161", | ||
"value": "0x0", | ||
"data": "0x608060405234801561001057600080fd5b50610ee7806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80636debb29b14610030575b600080fd5b61004361003e3660046109c9565b610055565b60405190815260200160405180910390f35b60008082815b8181101561012757600086868381811061007757610077610a3e565b905060e0020180360381019061008d9190610ac6565b9050836000036100a3578060c0015193506100ab565b60c081018490525b805160ff166000036100c7576100c081610133565b935061011e565b805160ff166001036100dc576100c0816101bb565b805160ff166002036100f1576100c0816102d7565b805160ff16600303610106576100c0816104c3565b805160ff1660040361011e5761011b8161058f565b93505b5060010161005b565b50909150505b92915050565b600080600061014f84604001518560600151866080015161074b565b91509150600084602001516127106101679190610bc8565b62ffffff168560c0015161017b9190610beb565b905060006101898383610beb565b905060008261019a86612710610beb565b6101a49190610c02565b90506101b08183610c15565b979650505050505050565b60a0818101516040805192830181526000808452602080850182815285840183815260608088018581526080808a01878152928b015173ffffffffffffffffffffffffffffffffffffffff9081168b52908b01518116855260c08b01518452948a015162ffffff908116825296517fc6a5026a00000000000000000000000000000000000000000000000000000000815289518616600482015293518516602485015291516044840152905190941660648201529251811660848401529093919083169063c6a5026a9060a4016080604051808303816000875af11580156102a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102cb9190610c64565b50919695505050505050565b60408101516000908180805b81830361040e576040517fc66106570000000000000000000000000000000000000000000000000000000081526004810182905260009073ffffffffffffffffffffffffffffffffffffffff86169063c661065790602401602060405180830381865afa158015610358573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037c9190610caa565b9050866060015173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036103bd578193506103f8565b866080015173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036103f8578192505b828414610405575061040e565b506001016102e3565b60408087015160c088015191517f5e0d443f000000000000000000000000000000000000000000000000000000008152600f86810b600483015285900b6024820152604481019290925273ffffffffffffffffffffffffffffffffffffffff1690635e0d443f90606401602060405180830381865afa158015610495573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b99190610cc7565b9695505050505050565b60a081015160c082015160608301516040517ff140a35a0000000000000000000000000000000000000000000000000000000081526000939273ffffffffffffffffffffffffffffffffffffffff84169263f140a35a9261054792919060040191825273ffffffffffffffffffffffffffffffffffffffff16602082015260400190565b602060405180830381865afa158015610564573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105889190610cc7565b9392505050565b60008160a0015173ffffffffffffffffffffffffffffffffffffffff1663e969f6b36040518060c00160405280856040015173ffffffffffffffffffffffffffffffffffffffff166338fff2d06040518163ffffffff1660e01b8152600401602060405180830381865afa15801561060b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062f9190610cc7565b815260200160008152602001856060015173ffffffffffffffffffffffffffffffffffffffff168152602001856080015173ffffffffffffffffffffffffffffffffffffffff1681526020018560c0015181526020016040518060200160405280600081525081525060405180608001604052803073ffffffffffffffffffffffffffffffffffffffff1681526020016000151581526020013073ffffffffffffffffffffffffffffffffffffffff168152602001600015158152506040518363ffffffff1660e01b8152600401610708929190610d44565b6020604051808303816000875af1158015610727573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061012d9190610cc7565b600080600061075a8585610840565b5090506000808773ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa1580156107ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107cf9190610e6e565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff1691508273ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff161461082e578082610831565b81815b90999098509650505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610903576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f556e697377617056324c6962726172793a204944454e544943414c5f4144445260448201527f455353455300000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161061093d578284610940565b83835b909250905073ffffffffffffffffffffffffffffffffffffffff82166109c2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f41444452455353000060448201526064016108fa565b9250929050565b600080602083850312156109dc57600080fd5b823567ffffffffffffffff808211156109f457600080fd5b818501915085601f830112610a0857600080fd5b813581811115610a1757600080fd5b86602060e083028501011115610a2c57600080fd5b60209290920196919550909350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b803560ff81168114610a7e57600080fd5b919050565b803562ffffff81168114610a7e57600080fd5b73ffffffffffffffffffffffffffffffffffffffff81168114610ab857600080fd5b50565b8035610a7e81610a96565b600060e08284031215610ad857600080fd5b60405160e0810181811067ffffffffffffffff82111715610b22577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604052610b2e83610a6d565b8152610b3c60208401610a83565b6020820152610b4d60408401610abb565b6040820152610b5e60608401610abb565b6060820152610b6f60808401610abb565b6080820152610b8060a08401610abb565b60a082015260c083013560c08201528091505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b62ffffff828116828216039080821115610be457610be4610b99565b5092915050565b808202811582820484141761012d5761012d610b99565b8082018082111561012d5761012d610b99565b600082610c4b577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b805163ffffffff81168114610a7e57600080fd5b60008060008060808587031215610c7a57600080fd5b845193506020850151610c8c81610a96565b9250610c9a60408601610c50565b6060959095015193969295505050565b600060208284031215610cbc57600080fd5b815161058881610a96565b600060208284031215610cd957600080fd5b5051919050565b6000815180845260005b81811015610d0657602081850181015186830182015201610cea565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b60a08152825160a08201526000602084015160028110610d8d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60c0830152604084015173ffffffffffffffffffffffffffffffffffffffff1660e08301526060840151610dda61010084018273ffffffffffffffffffffffffffffffffffffffff169052565b50608084015161012083015260a084015160c0610140840152610e01610160840182610ce0565b915050610588602083018473ffffffffffffffffffffffffffffffffffffffff808251168352602082015115156020840152806040830151166040840152506060810151151560608301525050565b80516dffffffffffffffffffffffffffff81168114610a7e57600080fd5b600080600060608486031215610e8357600080fd5b610e8c84610e50565b9250610e9a60208501610e50565b9150610ea860408501610c50565b9050925092509256fea2646970667358221220d95a7e321a6f14f7167beee348dcdb27f3dd6f0b617b797156e6d7b998566cb864736f6c63430008130033", | ||
"nonce": "0x31", | ||
"accessList": [] | ||
}, | ||
"additionalContracts": [], | ||
"isFixedGasLimit": false | ||
} | ||
], | ||
"receipts": [ | ||
{ | ||
"transactionHash": "0xe159b1fd2ce6701540d68186f0ef1fd236cfe0b9f95942e4515766ee7a4d5ae9", | ||
"transactionIndex": "0x19", | ||
"blockHash": "0x43c32237123b7e7c8c9ebe359721d82a6f1ed23d8aa227d04f6d1a952db89de8", | ||
"blockNumber": "0x12cc5e1", | ||
"from": "0xB27446d86890F3F35d010b9aDAEB135D2771a720", | ||
"to": null, | ||
"cumulativeGasUsed": "0x2df0ea", | ||
"gasUsed": "0xd533d", | ||
"contractAddress": "0xF5091Ef874f5ED438811c56BEEA8148aA7769a0F", | ||
"logs": [], | ||
"status": "0x1", | ||
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | ||
"type": "0x2", | ||
"effectiveGasPrice": "0x5251cbd4b" | ||
} | ||
], | ||
"libraries": [], | ||
"pending": [], | ||
"returns": {}, | ||
"timestamp": 1713795159, | ||
"chain": 1, | ||
"commit": "6e491ea" | ||
} |
Oops, something went wrong.