Add declarator python meta interface
This commit is contained in:
parent
33c230dedf
commit
f33537e988
@ -6,10 +6,16 @@ pragma solidity >=0.6.12;
|
||||
|
||||
|
||||
interface TransferAuthorization {
|
||||
|
||||
event NewRequest(address indexed _sender, address indexed _recipient, address indexed _token, uint256 _value, uint256 _serial);
|
||||
event NewExecution(uint256 serial);
|
||||
event NewRejection(uint256 serial);
|
||||
event TransferFail(uint256 serial);
|
||||
event Executed(uint256 _serial);
|
||||
event TransferFail(uint256 _serial);
|
||||
event QuorumSet(uint256 _quorum, uint256 _vetoThreshold, uint256 _signerCount);
|
||||
event SignerAdded(address _signer);
|
||||
event SignerRemoved(address _signer);
|
||||
event Vetoed(uint256 indexed _serial, uint256 _yays, uint256 _nays);
|
||||
event Approved(uint256 indexed _serial, uint256 _yays, uint256 _nays);
|
||||
event Rejected(uint256 indexed _serial, uint256 _yays, uint256 _nays);
|
||||
|
||||
struct Transaction {
|
||||
uint256 serial;
|
||||
@ -17,15 +23,26 @@ interface TransferAuthorization {
|
||||
address recipient;
|
||||
address token;
|
||||
uint256 value;
|
||||
uint256 yay;
|
||||
uint256 nay;
|
||||
uint256 blockNumber;
|
||||
int8 result; // -1 rejected/vetoed, 0 = completed, 1 = voting, 2 = approved
|
||||
}
|
||||
|
||||
function approvers() external view returns (address[] memory);
|
||||
function signers(address) external view returns (bool);
|
||||
function vote(uint256, address) external view returns (int8);
|
||||
function voters(uint256) external view returns (address);
|
||||
function count() external view returns (uint256);
|
||||
function quorum() external view returns (uint256);
|
||||
function vetoThreshold() external view returns (uint256);
|
||||
function signerCount() external view returns (uint256);
|
||||
function lastSerial() external view returns (uint256);
|
||||
function nextSerial() external view returns (uint256);
|
||||
function getSerialAt(uint256 _idx) external view returns (uint256);
|
||||
function requests(uint256 _serial) external view returns (Transaction memory);
|
||||
function createRequest(address _recipient, address _token, uint256 _value) external returns (uint256);
|
||||
function executeRequest(uint256 _serial) external returns (bool);
|
||||
function rejectRequest(uint256 _serial) external returns (bool);
|
||||
function requestSenderIndex(address _sender, uint256 _idx) external view returns (uint256);
|
||||
function requestRecipientIndex(address _recipient, uint256 _idx) external view returns (uint256);
|
||||
function createRequest(address _sender, address _recipient, address _token, uint256 _value) external returns (uint256);
|
||||
function yay(uint256 _serial) external returns (bool);
|
||||
function nay(uint256 _serial) external returns (bool);
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_recipient","type":"address"},{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"FaucetFail","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_recipient","type":"address"},{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"FaucetUsed","type":"event"},{"inputs":[],"name":"amount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"giveTo","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
|
||||
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"FaucetAmountChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_recipient","type":"address"},{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"FaucetFail","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_recipient","type":"address"},{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"FaucetUsed","type":"event"},{"inputs":[],"name":"amount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"cooldown","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"giveTo","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
|
||||
|
1
abis/Minter.json
Normal file
1
abis/Minter.json
Normal file
@ -0,0 +1 @@
|
||||
[{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"mintTo","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
|
@ -1 +1 @@
|
||||
[{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"addressOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
|
||||
[{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"addressOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"entry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"registryCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
|
||||
|
1
abis/TokenEndorsement.json
Normal file
1
abis/TokenEndorsement.json
Normal file
@ -0,0 +1 @@
|
||||
[{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"getBySymbol","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"}]
|
@ -1 +0,0 @@
|
||||
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"serial","type":"uint256"}],"name":"NewExecution","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"serial","type":"uint256"}],"name":"NewRejection","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_sender","type":"address"},{"indexed":true,"internalType":"address","name":"_recipient","type":"address"},{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_serial","type":"uint256"}],"name":"NewRequest","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"approvers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_serial","type":"uint256"}],"name":"execute","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_serial","type":"uint256"}],"name":"reject","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"request","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"requests","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"serial","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user