-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add facade specifictions and add exapand README tables
Signed-off-by: Nana Essilfie-Conduah <[email protected]>
- Loading branch information
Showing
11 changed files
with
268 additions
and
25 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...ystem-contracts/hedera-account-service/IHRC904AccountFacade.sol/IHRC904AccountFacade.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[ | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "enableAutoAssociations", | ||
"type": "bool" | ||
} | ||
], | ||
"name": "setUnlimitedAutomaticAssociations", | ||
"outputs": [ | ||
{ | ||
"internalType": "int64", | ||
"name": "responseCode", | ||
"type": "int64" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
] |
50 changes: 50 additions & 0 deletions
50
...ystem-contracts/hedera-account-service/IHRC906AccountFacade.sol/IHRC906AccountFacade.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
[ | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "spender", | ||
"type": "address" | ||
} | ||
], | ||
"name": "hbarAllowance", | ||
"outputs": [ | ||
{ | ||
"internalType": "int64", | ||
"name": "responseCode", | ||
"type": "int64" | ||
}, | ||
{ | ||
"internalType": "int256", | ||
"name": "amount", | ||
"type": "int256" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "spender", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "int256", | ||
"name": "amount", | ||
"type": "int256" | ||
} | ||
], | ||
"name": "hbarApprove", | ||
"outputs": [ | ||
{ | ||
"internalType": "int64", | ||
"name": "responseCode", | ||
"type": "int64" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
] |
21 changes: 21 additions & 0 deletions
21
.../system-contracts/hedera-token-service/IHRC904AccountFacade.sol/IHRC904AccountFacade.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[ | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "bool", | ||
"name": "enableAutoAssociations", | ||
"type": "bool" | ||
} | ||
], | ||
"name": "setUnlimitedAutomaticAssociations", | ||
"outputs": [ | ||
{ | ||
"internalType": "int64", | ||
"name": "responseCode", | ||
"type": "int64" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
] |
120 changes: 120 additions & 0 deletions
120
...acts/system-contracts/hedera-token-service/IHRC904TokenFacade.sol/IHRC904TokenFacade.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
[ | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "receiverAddress", | ||
"type": "address" | ||
} | ||
], | ||
"name": "cancelAirdropFT", | ||
"outputs": [ | ||
{ | ||
"internalType": "int64", | ||
"name": "responseCode", | ||
"type": "int64" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "receiverAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "int64", | ||
"name": "serialNumber", | ||
"type": "int64" | ||
} | ||
], | ||
"name": "cancelAirdropNFT", | ||
"outputs": [ | ||
{ | ||
"internalType": "int64", | ||
"name": "responseCode", | ||
"type": "int64" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "senderAddress", | ||
"type": "address" | ||
} | ||
], | ||
"name": "claimAirdropFT", | ||
"outputs": [ | ||
{ | ||
"internalType": "int64", | ||
"name": "responseCode", | ||
"type": "int64" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "senderAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "int64", | ||
"name": "serialNumber", | ||
"type": "int64" | ||
} | ||
], | ||
"name": "claimAirdropNFT", | ||
"outputs": [ | ||
{ | ||
"internalType": "int64", | ||
"name": "responseCode", | ||
"type": "int64" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "rejectTokenFT", | ||
"outputs": [ | ||
{ | ||
"internalType": "int64", | ||
"name": "responseCode", | ||
"type": "int64" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "int64[]", | ||
"name": "serialNumbers", | ||
"type": "int64[]" | ||
} | ||
], | ||
"name": "rejectTokenNFTs", | ||
"outputs": [ | ||
{ | ||
"internalType": "int64", | ||
"name": "responseCode", | ||
"type": "int64" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
] |
13 changes: 13 additions & 0 deletions
13
contracts/system-contracts/hedera-account-service/IHRC904AccountFacade.sol
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity >=0.4.9 <0.9.0; | ||
|
||
/** | ||
* notice: This interface is applicable when msg.sender is an EOA or a smart contract and the target address is the same. | ||
*/ | ||
interface IHRC904AccountFacade { | ||
/// @notice Enables or disables automatic token associations for the calling account | ||
/// @notice Responsible service: HAS | ||
/// @param enableAutoAssociations True to enable unlimited automatic associations, false to disable | ||
/// @return responseCode The response code indicating the result of the operation | ||
function setUnlimitedAutomaticAssociations(bool enableAutoAssociations) external returns (int64 responseCode); | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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