Skip to content

Commit

Permalink
fix: updated .gitignore to include the necessary artifacts for System…
Browse files Browse the repository at this point in the history
… Contract DApp

Signed-off-by: Logan Nguyen <[email protected]>
  • Loading branch information
quiet-node committed Mar 4, 2024
1 parent f2391d5 commit 9f34fe3
Show file tree
Hide file tree
Showing 17 changed files with 7,092 additions and 9 deletions.
25 changes: 23 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,36 @@ cache
.idea

# ignore non repo contract related aritifacts
artifacts/
.openzeppelin/unknown-298.json
.env
test-results.*
contracts-abi/*
!contracts-abi/contracts

## --- Foundry Gitignore ---
# Ignore all default artifacts except for TokenCreateCustomContract, TokenManagementContract, TokenQueryContract, TokenTransferContract, IHRC729Contract, PrngSystemContract, ERC20Mock, ERC721Mock
# because the System Contract DApp requires the bytecode of these contracts
artifacts/contracts/*
artifacts/build-info
artifacts/@openzeppelin
artifacts/contracts/**/**/*.dbg.json

!artifacts/contracts/hts-precompile
artifacts/contracts/hts-precompile/*
!artifacts/contracts/hts-precompile/examples
!artifacts/contracts/hts-precompile/IHRC.sol

!artifacts/contracts/exchange-rate-precompile
artifacts/contracts/exchange-rate-precompile/*
!artifacts/contracts/exchange-rate-precompile/ExchangeRateMock.sol

!artifacts/contracts/util-precompile

!artifacts/contracts/openzeppelin
artifacts/contracts/openzeppelin/*
!artifacts/contracts/openzeppelin/ERC-20
!artifacts/contracts/openzeppelin/ERC-721

## --- Foundry Gitignore ---
# Compiler files
forge-cache/
out/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "ExchangeRateMock",
"sourceName": "contracts/exchange-rate-precompile/ExchangeRateMock.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "tinybars",
"type": "uint256"
}
],
"name": "TinyBars",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "tinycents",
"type": "uint256"
}
],
"name": "TinyCents",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tinybars",
"type": "uint256"
}
],
"name": "convertTinybarsToTinycents",
"outputs": [
{
"internalType": "uint256",
"name": "tineycents",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tineycents",
"type": "uint256"
}
],
"name": "convertTinycentsToTinybars",
"outputs": [
{
"internalType": "uint256",
"name": "tinybars",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b506102dd806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80634abd27a31461003b578063677feb6714610060575b600080fd5b61004e610049366004610246565b610073565b60405190815260200160405180910390f35b61004e61006e366004610246565b6100be565b600061007e826100fc565b90507f1e2eedf37f019c356cd1ab2a7445bef30fa8b9e32be6636e6efae70244c7b3e0816040516100b191815260200190565b60405180910390a1919050565b60006100c98261020d565b90507fc399bb30ec076dee6179663a550714898c27a4a8cf23a336b2e49ec777779459816040516100b191815260200190565b600080600061016873ffffffffffffffffffffffffffffffffffffffff16632e3cff6a60e01b8560405160240161013591815260200190565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009094169390931790925290516101a0919061025f565b6000604051808303816000865af19150503d80600081146101dd576040519150601f19603f3d011682016040523d82523d6000602084013e6101e2565b606091505b5091509150816101f157600080fd5b80806020019051810190610205919061028e565b949350505050565b600080600061016873ffffffffffffffffffffffffffffffffffffffff166343a8822960e01b8560405160240161013591815260200190565b60006020828403121561025857600080fd5b5035919050565b6000825160005b818110156102805760208186018101518583015201610266565b506000920191825250919050565b6000602082840312156102a057600080fd5b505191905056fea2646970667358221220e82f7a7c1f21512f8ddf0ea800dfb9d0175d653405adeed9a4222d4c7de9f8fe64736f6c63430008170033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c80634abd27a31461003b578063677feb6714610060575b600080fd5b61004e610049366004610246565b610073565b60405190815260200160405180910390f35b61004e61006e366004610246565b6100be565b600061007e826100fc565b90507f1e2eedf37f019c356cd1ab2a7445bef30fa8b9e32be6636e6efae70244c7b3e0816040516100b191815260200190565b60405180910390a1919050565b60006100c98261020d565b90507fc399bb30ec076dee6179663a550714898c27a4a8cf23a336b2e49ec777779459816040516100b191815260200190565b600080600061016873ffffffffffffffffffffffffffffffffffffffff16632e3cff6a60e01b8560405160240161013591815260200190565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009094169390931790925290516101a0919061025f565b6000604051808303816000865af19150503d80600081146101dd576040519150601f19603f3d011682016040523d82523d6000602084013e6101e2565b606091505b5091509150816101f157600080fd5b80806020019051810190610205919061028e565b949350505050565b600080600061016873ffffffffffffffffffffffffffffffffffffffff166343a8822960e01b8560405160240161013591815260200190565b60006020828403121561025857600080fd5b5035919050565b6000825160005b818110156102805760208186018101518583015201610266565b506000920191825250919050565b6000602082840312156102a057600080fd5b505191905056fea2646970667358221220e82f7a7c1f21512f8ddf0ea800dfb9d0175d653405adeed9a4222d4c7de9f8fe64736f6c63430008170033",
"linkReferences": {},
"deployedLinkReferences": {}
}
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": {}
}
Loading

0 comments on commit 9f34fe3

Please sign in to comment.