Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SWA-134][IMPROVEMENT] - Fix CoW Trade type errors #335

Merged
Merged
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions dist/abis/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import ERC20_ABI from './source/ERC20.json';
import MULTICALL2_ABI from './source/multicall2.json';
import ROUTER_ABI from './source/router.json';
import STAKING_REWARDS_DISTRIBUTION_ABI from './source/staking-rewards-distribution.json';
import STAKING_REWARDS_FACTORY_ABI from './source/staking-rewards-distribution-factory.json';
import SWPR_CLAIMER_ABI from './source/swpr-claimer.json';
export { ERC20_ABI, MULTICALL2_ABI, ROUTER_ABI, STAKING_REWARDS_DISTRIBUTION_ABI, STAKING_REWARDS_FACTORY_ABI, SWPR_CLAIMER_ABI, };
17 changes: 17 additions & 0 deletions dist/abis/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/abis/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions dist/abis/source/ERC20.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[
{
"constant": true,
"inputs": [],
"name": "decimals",
"outputs": [{ "name": "", "type": "uint8" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "symbol",
"outputs": [{ "name": "", "type": "string" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [{ "name": "", "type": "string" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "", "type": "address" }],
"name": "balanceOf",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
}
]
1 change: 1 addition & 0 deletions dist/abis/source/multicall2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{ "type": "function", "stateMutability": "nonpayable", "outputs": [{ "type": "uint256", "name": "blockNumber", "internalType": "uint256" }, { "type": "bytes[]", "name": "returnData", "internalType": "bytes[]" }], "name": "aggregate", "inputs": [{ "type": "tuple[]", "name": "calls", "internalType": "struct Multicall2.Call[]", "components": [{ "type": "address", "name": "target", "internalType": "address" }, { "type": "bytes", "name": "callData", "internalType": "bytes" }] }] }, { "type": "function", "stateMutability": "nonpayable", "outputs": [{ "type": "uint256", "name": "blockNumber", "internalType": "uint256" }, { "type": "bytes32", "name": "blockHash", "internalType": "bytes32" }, { "type": "tuple[]", "name": "returnData", "internalType": "struct Multicall2.Result[]", "components": [{ "type": "bool", "name": "success", "internalType": "bool" }, { "type": "bytes", "name": "returnData", "internalType": "bytes" }] }], "name": "blockAndAggregate", "inputs": [{ "type": "tuple[]", "name": "calls", "internalType": "struct Multicall2.Call[]", "components": [{ "type": "address", "name": "target", "internalType": "address" }, { "type": "bytes", "name": "callData", "internalType": "bytes" }] }] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "bytes32", "name": "blockHash", "internalType": "bytes32" }], "name": "getBlockHash", "inputs": [{ "type": "uint256", "name": "blockNumber", "internalType": "uint256" }] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "uint256", "name": "blockNumber", "internalType": "uint256" }], "name": "getBlockNumber", "inputs": [] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "address", "name": "coinbase", "internalType": "address" }], "name": "getCurrentBlockCoinbase", "inputs": [] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "uint256", "name": "difficulty", "internalType": "uint256" }], "name": "getCurrentBlockDifficulty", "inputs": [] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "uint256", "name": "gaslimit", "internalType": "uint256" }], "name": "getCurrentBlockGasLimit", "inputs": [] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "uint256", "name": "timestamp", "internalType": "uint256" }], "name": "getCurrentBlockTimestamp", "inputs": [] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "uint256", "name": "balance", "internalType": "uint256" }], "name": "getEthBalance", "inputs": [{ "type": "address", "name": "addr", "internalType": "address" }] }, { "type": "function", "stateMutability": "view", "outputs": [{ "type": "bytes32", "name": "blockHash", "internalType": "bytes32" }], "name": "getLastBlockHash", "inputs": [] }, { "type": "function", "stateMutability": "nonpayable", "outputs": [{ "type": "tuple[]", "name": "returnData", "internalType": "struct Multicall2.Result[]", "components": [{ "type": "bool", "name": "success", "internalType": "bool" }, { "type": "bytes", "name": "returnData", "internalType": "bytes" }] }], "name": "tryAggregate", "inputs": [{ "type": "bool", "name": "requireSuccess", "internalType": "bool" }, { "type": "tuple[]", "name": "calls", "internalType": "struct Multicall2.Call[]", "components": [{ "type": "address", "name": "target", "internalType": "address" }, { "type": "bytes", "name": "callData", "internalType": "bytes" }] }] }, { "type": "function", "stateMutability": "nonpayable", "outputs": [{ "type": "uint256", "name": "blockNumber", "internalType": "uint256" }, { "type": "bytes32", "name": "blockHash", "internalType": "bytes32" }, { "type": "tuple[]", "name": "returnData", "internalType": "struct Multicall2.Result[]", "components": [{ "type": "bool", "name": "success", "internalType": "bool" }, { "type": "bytes", "name": "returnData", "internalType": "bytes" }] }], "name": "tryBlockAndAggregate", "inputs": [{ "type": "bool", "name": "requireSuccess", "internalType": "bool" }, { "type": "tuple[]", "name": "calls", "internalType": "struct Multicall2.Call[]", "components": [{ "type": "address", "name": "target", "internalType": "address" }, { "type": "bytes", "name": "callData", "internalType": "bytes" }] }] }]
Loading
Loading