Skip to content

Commit

Permalink
New contracts generation (#101)
Browse files Browse the repository at this point in the history
* Refactor contracts generation

* Fix RewardDistributor manual contract name

* Update code for the new contracts file structure

* Generate importers

* Deps

* Reuse prettier config

* Import types properly

* Fix build scripts
  • Loading branch information
noisekit authored Oct 20, 2023
1 parent ba44b2b commit ce6abe5
Show file tree
Hide file tree
Showing 458 changed files with 93,934 additions and 190,761 deletions.
Binary file not shown.
Binary file not shown.
391 changes: 256 additions & 135 deletions contracts/codegen.js

Large diffs are not rendered by default.

808 changes: 808 additions & 0 deletions contracts/deployments/1/AccountProxy.json

Large diffs are not rendered by default.

47 changes: 47 additions & 0 deletions contracts/deployments/1/CCIP.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[
{
"inputs": [
{
"internalType": "uint256",
"name": "destChainId",
"type": "uint256"
},
{
"components": [
{
"internalType": "bytes",
"name": "receiver",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
},
{
"internalType": "contract IERC20[]",
"name": "tokens",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "amounts",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "gasLimit",
"type": "uint256"
}
],
"internalType": "struct IEVM2AnySubscriptionOnRampRouterInterface.EVM2AnySubscriptionMessage",
"name": "message",
"type": "tuple"
}
],
"name": "ccipSend",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
305 changes: 305 additions & 0 deletions contracts/deployments/1/ChainlinkAggregator.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,305 @@
[
{
"type": "constructor",
"payable": false,
"inputs": []
},
{
"type": "function",
"name": "allRoundDataShouldRevert",
"constant": true,
"stateMutability": "view",
"payable": false,
"inputs": [],
"outputs": [
{
"type": "bool",
"name": ""
}
]
},
{
"type": "function",
"name": "decimals",
"constant": true,
"stateMutability": "view",
"payable": false,
"inputs": [],
"outputs": [
{
"type": "uint8",
"name": ""
}
]
},
{
"type": "function",
"name": "entries",
"constant": true,
"stateMutability": "view",
"payable": false,
"inputs": [
{
"type": "uint256"
}
],
"outputs": [
{
"type": "uint80",
"name": "roundId"
},
{
"type": "int256",
"name": "answer"
},
{
"type": "uint256",
"name": "startedAt"
},
{
"type": "uint256",
"name": "updatedAt"
},
{
"type": "uint80",
"name": "answeredInRound"
}
]
},
{
"type": "function",
"name": "getAnswer",
"constant": true,
"stateMutability": "view",
"payable": false,
"inputs": [
{
"type": "uint256",
"name": "_roundId"
}
],
"outputs": [
{
"type": "int256",
"name": ""
}
]
},
{
"type": "function",
"name": "getRoundData",
"constant": true,
"stateMutability": "view",
"payable": false,
"inputs": [
{
"type": "uint80",
"name": "_roundId"
}
],
"outputs": [
{
"type": "uint80",
"name": ""
},
{
"type": "int256",
"name": ""
},
{
"type": "uint256",
"name": ""
},
{
"type": "uint256",
"name": ""
},
{
"type": "uint80",
"name": ""
}
]
},
{
"type": "function",
"name": "getTimestamp",
"constant": true,
"stateMutability": "view",
"payable": false,
"inputs": [
{
"type": "uint256",
"name": "_roundId"
}
],
"outputs": [
{
"type": "uint256",
"name": ""
}
]
},
{
"type": "function",
"name": "keyDecimals",
"constant": true,
"stateMutability": "view",
"payable": false,
"inputs": [],
"outputs": [
{
"type": "uint8",
"name": ""
}
]
},
{
"type": "function",
"name": "latestRound",
"constant": true,
"stateMutability": "view",
"payable": false,
"inputs": [],
"outputs": [
{
"type": "uint256",
"name": ""
}
]
},
{
"type": "function",
"name": "latestRoundData",
"constant": true,
"stateMutability": "view",
"payable": false,
"inputs": [],
"outputs": [
{
"type": "uint80",
"name": ""
},
{
"type": "int256",
"name": ""
},
{
"type": "uint256",
"name": ""
},
{
"type": "uint256",
"name": ""
},
{
"type": "uint80",
"name": ""
}
]
},
{
"type": "function",
"name": "latestRoundDataShouldRevert",
"constant": true,
"stateMutability": "view",
"payable": false,
"inputs": [],
"outputs": [
{
"type": "bool",
"name": ""
}
]
},
{
"type": "function",
"name": "roundId",
"constant": true,
"stateMutability": "view",
"payable": false,
"inputs": [],
"outputs": [
{
"type": "uint80",
"name": ""
}
]
},
{
"type": "function",
"name": "setAllRoundDataShouldRevert",
"constant": false,
"payable": false,
"inputs": [
{
"type": "bool",
"name": "_shouldRevert"
}
],
"outputs": []
},
{
"type": "function",
"name": "setDecimals",
"constant": false,
"payable": false,
"inputs": [
{
"type": "uint8",
"name": "_decimals"
}
],
"outputs": []
},
{
"type": "function",
"name": "setLatestAnswer",
"constant": false,
"payable": false,
"inputs": [
{
"type": "int256",
"name": "answer"
},
{
"type": "uint256",
"name": "timestamp"
}
],
"outputs": []
},
{
"type": "function",
"name": "setLatestAnswerWithRound",
"constant": false,
"payable": false,
"inputs": [
{
"type": "int256",
"name": "answer"
},
{
"type": "uint256",
"name": "timestamp"
},
{
"type": "uint80",
"name": "_roundId"
}
],
"outputs": []
},
{
"type": "function",
"name": "setLatestRoundDataShouldRevert",
"constant": false,
"payable": false,
"inputs": [
{
"type": "bool",
"name": "_shouldRevert"
}
],
"outputs": []
}
]
Loading

0 comments on commit ce6abe5

Please sign in to comment.