Move solidity source to subfolder
This commit is contained in:
12
solidity/AccountsIndex.sol
Normal file
12
solidity/AccountsIndex.sol
Normal file
@@ -0,0 +1,12 @@
|
||||
pragma solidity >=0.6.12;
|
||||
|
||||
// Author: Louis Holbrook <dev@holbrook.no> 0826EDA1702D1E87C6E2875121D2E7BB88C2A746
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
// File-version: 3
|
||||
|
||||
interface AccountsIndex {
|
||||
function entryCount() external view returns (uint256);
|
||||
function entry(uint256) external view returns (address);
|
||||
function add(address _account) external returns (bool);
|
||||
function have(address _account) external view returns (bool);
|
||||
}
|
||||
14
solidity/Declarator.sol
Normal file
14
solidity/Declarator.sol
Normal file
@@ -0,0 +1,14 @@
|
||||
pragma solidity >=0.6.12;
|
||||
|
||||
// Author: Louis Holbrook <dev@holbrook.no> 0826EDA1702D1E87C6E2875121D2E7BB88C2A746
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
// File-version: 1
|
||||
|
||||
interface Declarator {
|
||||
function declaration(address _declarator, address _subject) external view returns ( bytes32[] memory );
|
||||
function declarationCount(address _declarator) external view returns ( uint256 );
|
||||
function declarationAddressAt(address _declarator, uint256 _idx) external view returns ( address );
|
||||
function addDeclaration(address _subject, bytes32 _proof) external returns ( bool );
|
||||
function declaratorAddressAt(address _subject, uint256 _idx) external view returns ( address );
|
||||
function declaratorCount(address _subject) external view returns ( uint256 );
|
||||
}
|
||||
12
solidity/Faucet.sol
Normal file
12
solidity/Faucet.sol
Normal file
@@ -0,0 +1,12 @@
|
||||
pragma solidity >=0.6.12;
|
||||
|
||||
// Author: Louis Holbrook <dev@holbrook.no> 0826EDA1702D1E87C6E2875121D2E7BB88C2A746
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
// File-version: 5
|
||||
|
||||
interface Faucet {
|
||||
function token() external returns (address);
|
||||
function amount() external returns (uint256);
|
||||
function setAmount(uint256 _amount) external returns (bool);
|
||||
function giveTo(address _recipient) external returns (bool);
|
||||
}
|
||||
9
solidity/Registry.sol
Normal file
9
solidity/Registry.sol
Normal file
@@ -0,0 +1,9 @@
|
||||
pragma solidity >=0.6.12;
|
||||
|
||||
// Author: Louis Holbrook <dev@holbrook.no> 0826EDA1702D1E87C6E2875121D2E7BB88C2A746
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
// File-version: 2
|
||||
|
||||
interface RegistryClient {
|
||||
function addressOf(bytes32) external view returns (address);
|
||||
}
|
||||
Reference in New Issue
Block a user