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

Add ConfigParam45 #301

Merged
merged 1 commit into from
Sep 21, 2024
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
14 changes: 14 additions & 0 deletions tlb/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,20 @@ type ConfigParam44 struct {
SuspendedAddressList SuspendedAddressList
}

type PrecompiledSmc struct {
Magic Magic `tlb:"#b0"`
GasUsage uint64
}

type PrecompiledContractsConfig struct {
Magic Magic `tlb:"#c0"`
List HashmapE[Bits256, PrecompiledSmc]
}

type ConfigParam45 struct {
PrecompiledContractsConfig PrecompiledContractsConfig
}

type OracleBridgeParams struct {
BridgeAddress Bits256
OracleMutlisigAddress Bits256
Expand Down
4 changes: 4 additions & 0 deletions tlb/config.tlb
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ _ SizeLimitsConfig = ConfigParam 43;
suspended_address_list#00 addresses:(HashmapE AddressWithWorkchain Unit) suspended_until:uint32 = SuspendedAddressList;
_ SuspendedAddressList = ConfigParam 44;

precompiled_smc#b0 gas_usage:uint64 = PrecompiledSmc;
precompiled_contracts_config#c0 list:(HashmapE 256 PrecompiledSmc) = PrecompiledContractsConfig;
_ PrecompiledContractsConfig = ConfigParam 45;

oracle_bridge_params#_ bridge_address:bits256 oracle_mutlisig_address:bits256 oracles:(HashmapE 256 bits256) external_chain_address:bits256 = OracleBridgeParams;
_ OracleBridgeParams = ConfigParam 71; // Ethereum bridge
_ OracleBridgeParams = ConfigParam 72; // Binance Smart Chain bridge
Expand Down
1 change: 1 addition & 0 deletions ton/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ type BlockchainConfig struct {
ConfigParam40 *tlb.ConfigParam40 `json:",omitempty"`
ConfigParam43 *tlb.ConfigParam43 `json:",omitempty"`
ConfigParam44 *tlb.ConfigParam44 `json:",omitempty"`
ConfigParam45 *tlb.ConfigParam45 `json:",omitempty"`

ConfigParam71 *tlb.ConfigParam71 `json:",omitempty"`
ConfigParam72 *tlb.ConfigParam72 `json:",omitempty"`
Expand Down
Loading