Skip to content

Commit

Permalink
Merge pull request #93 from hansmrtn/contract-update
Browse files Browse the repository at this point in the history
ABI updated
  • Loading branch information
hmrtn authored Jan 5, 2022
2 parents ce92cad + f254828 commit 912a0a1
Show file tree
Hide file tree
Showing 2 changed files with 218 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-app/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ function App(props) {
<ChevronDownIcon />
</MenuButton>
<MenuList>
<MenuOptionGroup defaultValue="goerli" title="network" type="radio">
<MenuOptionGroup defaultValue={process.env.REACT_APP_NETWORK_NAME} title="select network" type="radio">
{options}
</MenuOptionGroup>
</MenuList>
Expand Down
218 changes: 217 additions & 1 deletion packages/react-app/src/contracts/hardhat_contracts.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,227 @@
{
"1": {
"mainnet": {
"name": "mainnet",
"chainId": "1",
"contracts": {
"Distributor": {
"address": "0x3E1516166E38eF3C995BDad7a27e8B1643e3450D",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": true,
"internalType": "string",
"name": "id",
"type": "string"
}
],
"name": "ethDistributed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "token",
"type": "address"
},
{
"indexed": true,
"internalType": "string",
"name": "id",
"type": "string"
}
],
"name": "tokenDistributed",
"type": "event"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "recipients",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "values",
"type": "uint256[]"
},
{
"internalType": "string",
"name": "id",
"type": "string"
}
],
"name": "distributeEther",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract ERC20",
"name": "token",
"type": "address"
},
{
"internalType": "address[]",
"name": "recipients",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "values",
"type": "uint256[]"
},
{
"internalType": "string",
"name": "id",
"type": "string"
}
],
"name": "distributeToken",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
}
}
}
},
"4": {
"rinkeby": {
"name": "rinkeby",
"chainId": "4",
"contracts": {
"Distributor": {
"address": "0x0e76C65F57D88DD35079E19CEa92a3bA197C18D4",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": true,
"internalType": "string",
"name": "id",
"type": "string"
}
],
"name": "ethDistributed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "token",
"type": "address"
},
{
"indexed": true,
"internalType": "string",
"name": "id",
"type": "string"
}
],
"name": "tokenDistributed",
"type": "event"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "recipients",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "values",
"type": "uint256[]"
},
{
"internalType": "string",
"name": "id",
"type": "string"
}
],
"name": "distributeEther",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract ERC20",
"name": "token",
"type": "address"
},
{
"internalType": "address[]",
"name": "recipients",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "values",
"type": "uint256[]"
},
{
"internalType": "string",
"name": "id",
"type": "string"
}
],
"name": "distributeToken",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
}
}
}
},
"5": {
"goerli": {
"name": "goerli",
"chainId": "5",
"contracts": {
"Distributor": {
"address": "0x7B31B672aF3160F7f90799D41223Ab05840c3097",
"address": "0x80fB8Dc425f13b9118d8B382803cAA5289F93218",
"abi": [
{
"anonymous": false,
Expand Down

0 comments on commit 912a0a1

Please sign in to comment.