Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: renamed contracts/precompiles to contracts/system-contracts #848

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 8 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,14 @@ artifacts/build-info
artifacts/@openzeppelin
artifacts/contracts/**/**/*.dbg.json

!artifacts/contracts/precompile
artifacts/contracts/precompile/*
!artifacts/contracts/precompile/exchange-rate
!artifacts/contracts/precompile/pseudo-random-number-generator
!artifacts/contracts/precompile/hedera-token-service
artifacts/contracts/precompile/hedera-token-service/*
!artifacts/contracts/precompile/hedera-token-service/examples
!artifacts/contracts/precompile/hedera-token-service/IHRC719.sol

# !artifacts/contracts/hts-precompile
# artifacts/contracts/hts-precompile/*
# !artifacts/contracts/hts-precompile/examples
# !artifacts/contracts/hts-precompile/IHRC719.sol
!artifacts/contracts/system-contracts
artifacts/contracts/system-contracts/*
!artifacts/contracts/system-contracts/exchange-rate
!artifacts/contracts/system-contracts/pseudo-random-number-generator
!artifacts/contracts/system-contracts/hedera-token-service
artifacts/contracts/system-contracts/hedera-token-service/*
!artifacts/contracts/system-contracts/hedera-token-service/examples
!artifacts/contracts/system-contracts/hedera-token-service/IHRC719.sol

!artifacts/contracts/exchange-rate-precompile
artifacts/contracts/exchange-rate-precompile/*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "ExchangeRateMock",
"sourceName": "contracts/precompile/exchange-rate/ExchangeRateMock.sol",
"sourceName": "contracts/system-contracts/exchange-rate/ExchangeRateMock.sol",
"abi": [
{
"anonymous": false,
Expand Down Expand Up @@ -68,8 +68,8 @@
"type": "function"
}
],
"bytecode": "0x608060405234801561000f575f80fd5b506102c88061001d5f395ff3fe608060405234801561000f575f80fd5b5060043610610034575f3560e01c80634abd27a314610038578063677feb671461005d575b5f80fd5b61004b610046366004610238565b610070565b60405190815260200160405180910390f35b61004b61006b366004610238565b6100ba565b5f61007a826100f7565b90507f1e2eedf37f019c356cd1ab2a7445bef30fa8b9e32be6636e6efae70244c7b3e0816040516100ad91815260200190565b60405180910390a1919050565b5f6100c482610201565b90507fc399bb30ec076dee6179663a550714898c27a4a8cf23a336b2e49ec777779459816040516100ad91815260200190565b5f805f61016873ffffffffffffffffffffffffffffffffffffffff16632e3cff6a60e01b8560405160240161012e91815260200190565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909416939093179092529051610199919061024f565b5f604051808303815f865af19150503d805f81146101d2576040519150601f19603f3d011682016040523d82523d5f602084013e6101d7565b606091505b5091509150816101e5575f80fd5b808060200190518101906101f9919061027b565b949350505050565b5f805f61016873ffffffffffffffffffffffffffffffffffffffff166343a8822960e01b8560405160240161012e91815260200190565b5f60208284031215610248575f80fd5b5035919050565b5f82515f5b8181101561026e5760208186018101518583015201610254565b505f920191825250919050565b5f6020828403121561028b575f80fd5b505191905056fea2646970667358221220609915e2075e17b568f053c73e0c0055b2ca5f624e7806e373cae176e87d9e6564736f6c63430008180033",
"deployedBytecode": "0x608060405234801561000f575f80fd5b5060043610610034575f3560e01c80634abd27a314610038578063677feb671461005d575b5f80fd5b61004b610046366004610238565b610070565b60405190815260200160405180910390f35b61004b61006b366004610238565b6100ba565b5f61007a826100f7565b90507f1e2eedf37f019c356cd1ab2a7445bef30fa8b9e32be6636e6efae70244c7b3e0816040516100ad91815260200190565b60405180910390a1919050565b5f6100c482610201565b90507fc399bb30ec076dee6179663a550714898c27a4a8cf23a336b2e49ec777779459816040516100ad91815260200190565b5f805f61016873ffffffffffffffffffffffffffffffffffffffff16632e3cff6a60e01b8560405160240161012e91815260200190565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909416939093179092529051610199919061024f565b5f604051808303815f865af19150503d805f81146101d2576040519150601f19603f3d011682016040523d82523d5f602084013e6101d7565b606091505b5091509150816101e5575f80fd5b808060200190518101906101f9919061027b565b949350505050565b5f805f61016873ffffffffffffffffffffffffffffffffffffffff166343a8822960e01b8560405160240161012e91815260200190565b5f60208284031215610248575f80fd5b5035919050565b5f82515f5b8181101561026e5760208186018101518583015201610254565b505f920191825250919050565b5f6020828403121561028b575f80fd5b505191905056fea2646970667358221220609915e2075e17b568f053c73e0c0055b2ca5f624e7806e373cae176e87d9e6564736f6c63430008180033",
"bytecode": "0x608060405234801561000f575f80fd5b506102c88061001d5f395ff3fe608060405234801561000f575f80fd5b5060043610610034575f3560e01c80634abd27a314610038578063677feb671461005d575b5f80fd5b61004b610046366004610238565b610070565b60405190815260200160405180910390f35b61004b61006b366004610238565b6100ba565b5f61007a826100f7565b90507f1e2eedf37f019c356cd1ab2a7445bef30fa8b9e32be6636e6efae70244c7b3e0816040516100ad91815260200190565b60405180910390a1919050565b5f6100c482610201565b90507fc399bb30ec076dee6179663a550714898c27a4a8cf23a336b2e49ec777779459816040516100ad91815260200190565b5f805f61016873ffffffffffffffffffffffffffffffffffffffff16632e3cff6a60e01b8560405160240161012e91815260200190565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909416939093179092529051610199919061024f565b5f604051808303815f865af19150503d805f81146101d2576040519150601f19603f3d011682016040523d82523d5f602084013e6101d7565b606091505b5091509150816101e5575f80fd5b808060200190518101906101f9919061027b565b949350505050565b5f805f61016873ffffffffffffffffffffffffffffffffffffffff166343a8822960e01b8560405160240161012e91815260200190565b5f60208284031215610248575f80fd5b5035919050565b5f82515f5b8181101561026e5760208186018101518583015201610254565b505f920191825250919050565b5f6020828403121561028b575f80fd5b505191905056fea264697066735822122020c2f9bdbf9c77533dcf0e817f4538cd46ba5a1d761e8d01cc311ca4cd2cc7f864736f6c63430008180033",
"deployedBytecode": "0x608060405234801561000f575f80fd5b5060043610610034575f3560e01c80634abd27a314610038578063677feb671461005d575b5f80fd5b61004b610046366004610238565b610070565b60405190815260200160405180910390f35b61004b61006b366004610238565b6100ba565b5f61007a826100f7565b90507f1e2eedf37f019c356cd1ab2a7445bef30fa8b9e32be6636e6efae70244c7b3e0816040516100ad91815260200190565b60405180910390a1919050565b5f6100c482610201565b90507fc399bb30ec076dee6179663a550714898c27a4a8cf23a336b2e49ec777779459816040516100ad91815260200190565b5f805f61016873ffffffffffffffffffffffffffffffffffffffff16632e3cff6a60e01b8560405160240161012e91815260200190565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909416939093179092529051610199919061024f565b5f604051808303815f865af19150503d805f81146101d2576040519150601f19603f3d011682016040523d82523d5f602084013e6101d7565b606091505b5091509150816101e5575f80fd5b808060200190518101906101f9919061027b565b949350505050565b5f805f61016873ffffffffffffffffffffffffffffffffffffffff166343a8822960e01b8560405160240161012e91815260200190565b5f60208284031215610248575f80fd5b5035919050565b5f82515f5b8181101561026e5760208186018101518583015201610254565b505f920191825250919050565b5f6020828403121561028b575f80fd5b505191905056fea264697066735822122020c2f9bdbf9c77533dcf0e817f4538cd46ba5a1d761e8d01cc311ca4cd2cc7f864736f6c63430008180033",
"linkReferences": {},
"deployedLinkReferences": {}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "ExchangeRatePrecompile",
"sourceName": "contracts/precompile/exchange-rate/ExchangeRatePrecompile.sol",
"sourceName": "contracts/system-contracts/exchange-rate/ExchangeRatePrecompile.sol",
"abi": [
{
"inputs": [
Expand Down Expand Up @@ -42,8 +42,8 @@
"type": "function"
}
],
"bytecode": "0x608060405234801561000f575f80fd5b5060405161035238038061035283398101604081905261002e91610035565b5f5561004c565b5f60208284031215610045575f80fd5b5051919050565b6102f9806100595f395ff3fe608060405260043610610033575f3560e01c806303b636e61461003757806389dea1d014610041578063bff4f54f14610049575b5f80fd5b61003f610063565b005b61003f6100eb565b61005161011c565b60405190815260200160405180910390f35b60408051600481526024810182526020810180516001600160e01b031663bff4f54f60e01b17905290515f916101689161009d9190610257565b5f604051808303815f865af19150503d805f81146100d6576040519150601f19603f3d011682016040523d82523d5f602084013e6100db565b606091505b50509050806100e8575f80fd5b50565b5f8054906100fd6305f5e10083610283565b90505f6101098261012b565b905080341015610117575f80fd5b505050565b5f61012634610220565b905090565b5f805f61016873ffffffffffffffffffffffffffffffffffffffff16632e3cff6a60e01b8560405160240161016291815260200190565b60408051601f198184030181529181526020820180516001600160e01b03167fffffffff000000000000000000000000000000000000000000000000000000009094169390931790925290516101b89190610257565b5f604051808303815f865af19150503d805f81146101f1576040519150601f19603f3d011682016040523d82523d5f602084013e6101f6565b606091505b509150915081610204575f80fd5b8080602001905181019061021891906102ac565b949350505050565b5f805f61016873ffffffffffffffffffffffffffffffffffffffff166343a8822960e01b8560405160240161016291815260200190565b5f82515f5b81811015610276576020818601810151858301520161025c565b505f920191825250919050565b80820281158282048414176102a657634e487b7160e01b5f52601160045260245ffd5b92915050565b5f602082840312156102bc575f80fd5b505191905056fea2646970667358221220a2bdb289290fb168556af0a791df3285dd5ff16067a5a067923a49bf5d5ed33164736f6c63430008180033",
"deployedBytecode": "0x608060405260043610610033575f3560e01c806303b636e61461003757806389dea1d014610041578063bff4f54f14610049575b5f80fd5b61003f610063565b005b61003f6100eb565b61005161011c565b60405190815260200160405180910390f35b60408051600481526024810182526020810180516001600160e01b031663bff4f54f60e01b17905290515f916101689161009d9190610257565b5f604051808303815f865af19150503d805f81146100d6576040519150601f19603f3d011682016040523d82523d5f602084013e6100db565b606091505b50509050806100e8575f80fd5b50565b5f8054906100fd6305f5e10083610283565b90505f6101098261012b565b905080341015610117575f80fd5b505050565b5f61012634610220565b905090565b5f805f61016873ffffffffffffffffffffffffffffffffffffffff16632e3cff6a60e01b8560405160240161016291815260200190565b60408051601f198184030181529181526020820180516001600160e01b03167fffffffff000000000000000000000000000000000000000000000000000000009094169390931790925290516101b89190610257565b5f604051808303815f865af19150503d805f81146101f1576040519150601f19603f3d011682016040523d82523d5f602084013e6101f6565b606091505b509150915081610204575f80fd5b8080602001905181019061021891906102ac565b949350505050565b5f805f61016873ffffffffffffffffffffffffffffffffffffffff166343a8822960e01b8560405160240161016291815260200190565b5f82515f5b81811015610276576020818601810151858301520161025c565b505f920191825250919050565b80820281158282048414176102a657634e487b7160e01b5f52601160045260245ffd5b92915050565b5f602082840312156102bc575f80fd5b505191905056fea2646970667358221220a2bdb289290fb168556af0a791df3285dd5ff16067a5a067923a49bf5d5ed33164736f6c63430008180033",
"bytecode": "0x608060405234801561000f575f80fd5b5060405161035238038061035283398101604081905261002e91610035565b5f5561004c565b5f60208284031215610045575f80fd5b5051919050565b6102f9806100595f395ff3fe608060405260043610610033575f3560e01c806303b636e61461003757806389dea1d014610041578063bff4f54f14610049575b5f80fd5b61003f610063565b005b61003f6100eb565b61005161011c565b60405190815260200160405180910390f35b60408051600481526024810182526020810180516001600160e01b031663bff4f54f60e01b17905290515f916101689161009d9190610257565b5f604051808303815f865af19150503d805f81146100d6576040519150601f19603f3d011682016040523d82523d5f602084013e6100db565b606091505b50509050806100e8575f80fd5b50565b5f8054906100fd6305f5e10083610283565b90505f6101098261012b565b905080341015610117575f80fd5b505050565b5f61012634610220565b905090565b5f805f61016873ffffffffffffffffffffffffffffffffffffffff16632e3cff6a60e01b8560405160240161016291815260200190565b60408051601f198184030181529181526020820180516001600160e01b03167fffffffff000000000000000000000000000000000000000000000000000000009094169390931790925290516101b89190610257565b5f604051808303815f865af19150503d805f81146101f1576040519150601f19603f3d011682016040523d82523d5f602084013e6101f6565b606091505b509150915081610204575f80fd5b8080602001905181019061021891906102ac565b949350505050565b5f805f61016873ffffffffffffffffffffffffffffffffffffffff166343a8822960e01b8560405160240161016291815260200190565b5f82515f5b81811015610276576020818601810151858301520161025c565b505f920191825250919050565b80820281158282048414176102a657634e487b7160e01b5f52601160045260245ffd5b92915050565b5f602082840312156102bc575f80fd5b505191905056fea2646970667358221220f83f6730ad80a154069f534c8fb75b1cd8c7ffb9a164a8134e672f9d34f42e8564736f6c63430008180033",
"deployedBytecode": "0x608060405260043610610033575f3560e01c806303b636e61461003757806389dea1d014610041578063bff4f54f14610049575b5f80fd5b61003f610063565b005b61003f6100eb565b61005161011c565b60405190815260200160405180910390f35b60408051600481526024810182526020810180516001600160e01b031663bff4f54f60e01b17905290515f916101689161009d9190610257565b5f604051808303815f865af19150503d805f81146100d6576040519150601f19603f3d011682016040523d82523d5f602084013e6100db565b606091505b50509050806100e8575f80fd5b50565b5f8054906100fd6305f5e10083610283565b90505f6101098261012b565b905080341015610117575f80fd5b505050565b5f61012634610220565b905090565b5f805f61016873ffffffffffffffffffffffffffffffffffffffff16632e3cff6a60e01b8560405160240161016291815260200190565b60408051601f198184030181529181526020820180516001600160e01b03167fffffffff000000000000000000000000000000000000000000000000000000009094169390931790925290516101b89190610257565b5f604051808303815f865af19150503d805f81146101f1576040519150601f19603f3d011682016040523d82523d5f602084013e6101f6565b606091505b509150915081610204575f80fd5b8080602001905181019061021891906102ac565b949350505050565b5f805f61016873ffffffffffffffffffffffffffffffffffffffff166343a8822960e01b8560405160240161016291815260200190565b5f82515f5b81811015610276576020818601810151858301520161025c565b505f920191825250919050565b80820281158282048414176102a657634e487b7160e01b5f52601160045260245ffd5b92915050565b5f602082840312156102bc575f80fd5b505191905056fea2646970667358221220f83f6730ad80a154069f534c8fb75b1cd8c7ffb9a164a8134e672f9d34f42e8564736f6c63430008180033",
"linkReferences": {},
"deployedLinkReferences": {}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "IExchangeRate",
"sourceName": "contracts/precompile/exchange-rate/IExchangeRate.sol",
"sourceName": "contracts/system-contracts/exchange-rate/IExchangeRate.sol",
"abi": [
{
"inputs": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "SelfFunding",
"sourceName": "contracts/precompile/exchange-rate/SelfFunding.sol",
"sourceName": "contracts/system-contracts/exchange-rate/SelfFunding.sol",
"abi": [],
"bytecode": "0x",
"deployedBytecode": "0x",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "IHRC719",
"sourceName": "contracts/precompile/hedera-token-service/IHRC719.sol",
"sourceName": "contracts/system-contracts/hedera-token-service/IHRC719.sol",
"abi": [
{
"inputs": [],
Expand Down
Loading
Loading