Skip to content

Commit

Permalink
Update contracts.maxNumWithHapiSigsAccess to 0 and update test (#245) (
Browse files Browse the repository at this point in the history
…#255)

* Edit tests



* Bump local node version



* Edit versions



* Add debug



* Edit versions



* Fix tests



* Fix IERC20 tests



* FIx token management tests



* Add timeouts



* Edit token create contract



* Bump network node version



* add hardhat config for testnet and previewnet



* Remove getSDKClientOperator function from utils



* Update functions in Utils



* Remove duplicate variables



---------

Signed-off-by: nikolay <[email protected]>
Signed-off-by: Aleksandrina Todorova <[email protected]>
Signed-off-by: ebadiere <[email protected]>
Co-authored-by: Nikolay Atanasow <[email protected]>
Co-authored-by: Aleksandrina Todorova <[email protected]>
  • Loading branch information
3 people authored Jun 23, 2023
1 parent 4768437 commit 6cf0c36
Show file tree
Hide file tree
Showing 17 changed files with 2,491 additions and 1,288 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ on:
type: string

env:
RELAY_IMAGE_TAG: main
NETWORK_NODE_IMAGE_TAG: 0.38.0-alpha.0
HAVEGED_IMAGE_TAG: 0.38.0-alpha.0
MIRROR_IMAGE_TAG: 0.79.0-beta1
RELAY_IMAGE_TAG: 0.23.3
NETWORK_NODE_IMAGE_TAG: 0.39.0-alpha.0
HAVEGED_IMAGE_TAG: 0.39.0-alpha.0
MIRROR_IMAGE_TAG: 0.81.0-rc1

jobs:
acceptance-workflow:
Expand Down
37 changes: 37 additions & 0 deletions artifacts/contracts/hts-precompile/IHRC.sol/IHRC.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "IHRC",
"sourceName": "contracts/hts-precompile/IHRC.sol",
"abi": [
{
"inputs": [],
"name": "associate",
"outputs": [
{
"internalType": "uint256",
"name": "responseCode",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "dissociate",
"outputs": [
{
"internalType": "uint256",
"name": "responseCode",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "HRCContract",
"sourceName": "contracts/hts-precompile/examples/hrc/HRCContract.sol",
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"name": "associate",
"outputs": [
{
"internalType": "uint256",
"name": "responseCode",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"name": "dissociate",
"outputs": [
{
"internalType": "uint256",
"name": "responseCode",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b506101aa806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063322e35501461003b578063d89f312314610060575b600080fd5b61004e61004936600461012b565b610073565b60405190815260200160405180910390f35b61004e61006e36600461012b565b6100ee565b6000816001600160a01b0316635c9217e06040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156100b057600080fd5b505af11580156100c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e8919061015b565b92915050565b6000816001600160a01b0316630a754de66040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156100b057600080fd5b60006020828403121561013d57600080fd5b81356001600160a01b038116811461015457600080fd5b9392505050565b60006020828403121561016d57600080fd5b505191905056fea2646970667358221220eaff249d24ad68e168d32795857140ae0542092b635f95480b67fc1f99f7ded664736f6c63430008090033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063322e35501461003b578063d89f312314610060575b600080fd5b61004e61004936600461012b565b610073565b60405190815260200160405180910390f35b61004e61006e36600461012b565b6100ee565b6000816001600160a01b0316635c9217e06040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156100b057600080fd5b505af11580156100c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e8919061015b565b92915050565b6000816001600160a01b0316630a754de66040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156100b057600080fd5b60006020828403121561013d57600080fd5b81356001600160a01b038116811461015457600080fd5b9392505050565b60006020828403121561016d57600080fd5b505191905056fea2646970667358221220eaff249d24ad68e168d32795857140ae0542092b635f95480b67fc1f99f7ded664736f6c63430008090033",
"linkReferences": {},
"deployedLinkReferences": {}
}

Large diffs are not rendered by default.

39 changes: 38 additions & 1 deletion hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,43 @@ module.exports = {
"0x45a5a7108a18dd5013cf2d5857a28144beadc9c70b3bdbd914e38df4e804b8d8",
],
chainId: 298,
sdkClient: {
operatorId: '0.0.2',
operatorKey: '302e020100300506032b65700422042091132178e72057a1d7528025956fe39b0b847f200ab59b2fdd367017f3087137',
networkNodeUrl: '127.0.0.1:50211',
nodeId: '3',
mirrorNode: '127.0.0.1:5600'
}
},
},
testnet: {
url: "https://testnet.hashio.io/api",
accounts: [
"0x2e1d968b041d84dd120a5860cee60cd83f9374e0000000000000000000000000", //Add valid account for testnet
"0x45a5a7108a18dd5013cf2d5857a28144beadc9c0000000000000000000000000", //Add valid account for testnet
],
chainId: 296,
sdkClient: {
operatorId: '', //Format 0.0.ID
operatorKey: '302e...',
networkNodeUrl: 'https://testnet.hedera.com',
nodeId: '3',
mirrorNode: 'https://testnet.mirrornode.hedera.com'
}
},
previewnet: {
url: "https://previewnet.hashio.io/api",
accounts: [
"0x2e1d968b041d84dd120a5860cee60cd83f9374e0000000000000000000000000", //Add valid account for previewnet
"0x45a5a7108a18dd5013cf2d5857a28144beadc9c0000000000000000000000000", //Add valid account for previewnet
],
chainId: 297,
sdkClient: {
operatorId: '', //Format 0.0.ID
operatorKey: '302e...',
networkNodeUrl: 'https://previewnet.hedera.com',
nodeId: '3',
mirrorNode: 'https://previewnet.mirrornode.hedera.com'
}
},
}
};
Loading

0 comments on commit 6cf0c36

Please sign in to comment.