Skip to content

Commit

Permalink
Add config settings for contract data limits (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayz22 authored Apr 28, 2023
1 parent 4f83bee commit e288e22
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Stellar-contract-config-setting.x
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ enum ConfigSettingID
CONFIG_SETTING_CONTRACT_META_DATA_V0 = 4,
CONFIG_SETTING_CONTRACT_BANDWIDTH_V0 = 5,
CONFIG_SETTING_CONTRACT_COST_PARAMS_CPU_INSTRUCTIONS = 6,
CONFIG_SETTING_CONTRACT_COST_PARAMS_MEMORY_BYTES = 7
CONFIG_SETTING_CONTRACT_COST_PARAMS_MEMORY_BYTES = 7,
CONFIG_SETTING_CONTRACT_DATA_KEY_SIZE_BYTES = 8,
CONFIG_SETTING_CONTRACT_DATA_ENTRY_SIZE_BYTES = 9
};

union ConfigSettingEntry switch (ConfigSettingID configSettingID)
Expand All @@ -170,6 +172,10 @@ case CONFIG_SETTING_CONTRACT_BANDWIDTH_V0:
case CONFIG_SETTING_CONTRACT_COST_PARAMS_CPU_INSTRUCTIONS:
ContractCostParams contractCostParamsCpuInsns;
case CONFIG_SETTING_CONTRACT_COST_PARAMS_MEMORY_BYTES:
ContractCostParams contractCostParamsMemBytes;
ContractCostParams contractCostParamsMemBytes;
case CONFIG_SETTING_CONTRACT_DATA_KEY_SIZE_BYTES:
uint32 contractDataKeySizeBytes;
case CONFIG_SETTING_CONTRACT_DATA_ENTRY_SIZE_BYTES:
uint32 contractDataEntrySizeBytes;
};
}

0 comments on commit e288e22

Please sign in to comment.