Skip to content

Commit

Permalink
add abis
Browse files Browse the repository at this point in the history
  • Loading branch information
thurendous committed Nov 2, 2023
1 parent fc6cfe3 commit 80579be
Show file tree
Hide file tree
Showing 2 changed files with 660 additions and 0 deletions.
130 changes: 130 additions & 0 deletions abi/Distributor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "factoryAddress",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "Distributor__InvalidTokenAddress",
"type": "error"
},
{
"inputs": [],
"name": "Distributor__MismatchedArrays",
"type": "error"
},
{
"inputs": [],
"name": "Distributor__MismatchedPercentages",
"type": "error"
},
{
"inputs": [],
"name": "Distributor__NoTokenToDistribute",
"type": "error"
},
{
"inputs": [],
"name": "Distributor__NoZeroAddress",
"type": "error"
},
{
"inputs": [],
"name": "Distributor__OnlyFactoryAddressIsAllowed",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "token",
"type": "address"
},
{
"indexed": false,
"internalType": "address[]",
"name": "winners",
"type": "address[]"
},
{
"indexed": false,
"internalType": "uint256[]",
"name": "percentages",
"type": "uint256[]"
},
{
"indexed": false,
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "Distributed",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "address[]",
"name": "winners",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "percentages",
"type": "uint256[]"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "distribute",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getConstants",
"outputs": [
{
"internalType": "address",
"name": "_FACTORY_ADDRESS",
"type": "address"
},
{
"internalType": "address",
"name": "_STADIUM_ADDRESS",
"type": "address"
},
{
"internalType": "uint256",
"name": "_COMMISSION_FEE",
"type": "uint256"
},
{
"internalType": "uint8",
"name": "_VERSION",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
}
]
Loading

0 comments on commit 80579be

Please sign in to comment.