Created
July 7, 2020 11:59
-
-
Save hrkrshnn/09bd5673b60051256c38b615fac1a0b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
======= /tmp/deposit.sol:DepositContract ======= | |
Developer Documentation | |
{ | |
"kind": "dev", | |
"methods": | |
{ | |
"deposit(bytes,bytes,bytes,bytes32)": | |
{ | |
"params": | |
{ | |
"deposit_data_root": "The SHA-256 hash of the SSZ-encoded DepositData object. Used as a protection against malformed input.", | |
"pubkey": "A BLS12-381 public key.", | |
"signature": "A BLS12-381 signature.", | |
"withdrawal_credentials": "Commitment to a public key for withdrawals." | |
} | |
}, | |
"get_deposit_count()": | |
{ | |
"returns": | |
{ | |
"_0": "The deposit count encoded as a little endian 64-bit number." | |
} | |
}, | |
"get_deposit_root()": | |
{ | |
"returns": | |
{ | |
"_0": "The deposit root hash." | |
} | |
}, | |
"supportsInterface(bytes4)": | |
{ | |
"details": "Interface identification is specified in ERC-165. This function uses less than 30,000 gas.", | |
"params": | |
{ | |
"interfaceId": "The interface identifier, as specified in ERC-165" | |
}, | |
"returns": | |
{ | |
"_0": "`true` if the contract implements `interfaceId` and `interfaceId` is not 0xffffffff, `false` otherwise" | |
} | |
} | |
}, | |
"version": 1 | |
} | |
User Documentation | |
{ | |
"events": | |
{ | |
"DepositEvent(bytes,bytes,bytes,bytes,bytes)": | |
{ | |
"notice": "A processed deposit event." | |
} | |
}, | |
"kind": "user", | |
"methods": | |
{ | |
"deposit(bytes,bytes,bytes,bytes32)": | |
{ | |
"notice": "Submit a Phase 0 DepositData object." | |
}, | |
"get_deposit_count()": | |
{ | |
"notice": "Query the current deposit count." | |
}, | |
"get_deposit_root()": | |
{ | |
"notice": "Query the current deposit root hash." | |
}, | |
"supportsInterface(bytes4)": | |
{ | |
"notice": "Query if a contract implements an interface" | |
} | |
}, | |
"notice": "This is the Ethereum 2.0 deposit contract interface. For more information see the Phase 0 specification under https://github.com/ethereum/eth2.0-specs", | |
"version": 1 | |
} | |
======= /tmp/deposit.sol:ERC165 ======= | |
Developer Documentation | |
{ | |
"kind": "dev", | |
"methods": | |
{ | |
"supportsInterface(bytes4)": | |
{ | |
"details": "Interface identification is specified in ERC-165. This function uses less than 30,000 gas.", | |
"params": | |
{ | |
"interfaceId": "The interface identifier, as specified in ERC-165" | |
}, | |
"returns": | |
{ | |
"_0": "`true` if the contract implements `interfaceId` and `interfaceId` is not 0xffffffff, `false` otherwise" | |
} | |
} | |
}, | |
"version": 1 | |
} | |
User Documentation | |
{ | |
"kind": "user", | |
"methods": | |
{ | |
"supportsInterface(bytes4)": | |
{ | |
"notice": "Query if a contract implements an interface" | |
} | |
}, | |
"version": 1 | |
} | |
======= /tmp/deposit.sol:IDepositContract ======= | |
Developer Documentation | |
{ | |
"kind": "dev", | |
"methods": | |
{ | |
"deposit(bytes,bytes,bytes,bytes32)": | |
{ | |
"params": | |
{ | |
"deposit_data_root": "The SHA-256 hash of the SSZ-encoded DepositData object. Used as a protection against malformed input.", | |
"pubkey": "A BLS12-381 public key.", | |
"signature": "A BLS12-381 signature.", | |
"withdrawal_credentials": "Commitment to a public key for withdrawals." | |
} | |
}, | |
"get_deposit_count()": | |
{ | |
"returns": | |
{ | |
"_0": "The deposit count encoded as a little endian 64-bit number." | |
} | |
}, | |
"get_deposit_root()": | |
{ | |
"returns": | |
{ | |
"_0": "The deposit root hash." | |
} | |
} | |
}, | |
"version": 1 | |
} | |
User Documentation | |
{ | |
"events": | |
{ | |
"DepositEvent(bytes,bytes,bytes,bytes,bytes)": | |
{ | |
"notice": "A processed deposit event." | |
} | |
}, | |
"kind": "user", | |
"methods": | |
{ | |
"deposit(bytes,bytes,bytes,bytes32)": | |
{ | |
"notice": "Submit a Phase 0 DepositData object." | |
}, | |
"get_deposit_count()": | |
{ | |
"notice": "Query the current deposit count." | |
}, | |
"get_deposit_root()": | |
{ | |
"notice": "Query the current deposit root hash." | |
} | |
}, | |
"notice": "This is the Ethereum 2.0 deposit contract interface. For more information see the Phase 0 specification under https://github.com/ethereum/eth2.0-specs", | |
"version": 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment