Skip to content

Commit

Permalink
chore: Add configuration properties for HIP-904 System Contracts (#15800
Browse files Browse the repository at this point in the history
)

Signed-off-by: Stanimir Stoyanov <[email protected]>
  • Loading branch information
stoyanov-st authored Oct 4, 2024
1 parent 273d6e8 commit bb30020
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hedera-node/configuration/dev/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ contracts.chainId=298
contracts.maxGasPerSec=15000000000
contracts.systemContract.tokenInfo.v2.enabled=true
contracts.systemContract.updateNFTsMetadata.enabled=true
contracts.systemContract.airdropTokens.enabled=true
contracts.systemContract.cancelAirdrops.enabled=true
contracts.systemContract.claimAirdrops.enabled=true
contracts.systemContract.rejectTokens.enabled=true
contracts.systemContract.setUnlimitedAutoAssociations.enabled=true
# Needed for end-end tests running on mod-service code
staking.periodMins=1
staking.fees.nodeRewardPercentage=10
Expand Down
5 changes: 5 additions & 0 deletions hedera-node/configuration/previewnet/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@
bootstrap.genesisPublicKey=c249a323c878f5b5e2daccda6d731e6fdc32f870228d1cd4fae559d947dbc36c
contracts.chainId=297
contracts.systemContract.updateNFTsMetadata.enabled=true
contracts.systemContract.airdropTokens.enabled=true
contracts.systemContract.cancelAirdrops.enabled=true
contracts.systemContract.claimAirdrops.enabled=true
contracts.systemContract.rejectTokens.enabled=true
contracts.systemContract.setUnlimitedAutoAssociations.enabled=true
ledger.id=0x02
entities.unlimitedAutoAssociationsEnabled=true
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,16 @@ public record ContractsConfig(
boolean isCanonicalViewGasEnabled,
@ConfigProperty(value = "systemContract.updateNFTsMetadata.enabled", defaultValue = "false") @NetworkProperty
boolean systemContractUpdateNFTsMetadataEnabled,
@ConfigProperty(value = "systemContract.airdropTokens.enabled", defaultValue = "false")
boolean systemContractAirdropTokensEnabled,
@ConfigProperty(value = "systemContract.cancelAirdrops.enabled", defaultValue = "false")
boolean systemContractCancelAirdropsEnabled,
@ConfigProperty(value = "systemContract.claimAirdrops.enabled", defaultValue = "false")
boolean systemContractClaimAirdropsEnabled,
@ConfigProperty(value = "systemContract.rejectTokens.enabled", defaultValue = "false")
boolean systemContractRejectTokensEnabled,
@ConfigProperty(value = "systemContract.setUnlimitedAutoAssociations.enabled", defaultValue = "false")
boolean systemContractSetUnlimitedAutoAssociationsEnabled,
@ConfigProperty(value = "evm.version.dynamic", defaultValue = "false") @NetworkProperty
boolean evmVersionDynamic,
@ConfigProperty(value = "evm.allowCallsToNonContractAccounts", defaultValue = "true") @NetworkProperty
Expand Down

0 comments on commit bb30020

Please sign in to comment.