Genesis合约
部署和升级合约
message SmartContractRegistration {
// The category of contract code(0: C#).
sint32 category = 1;
// The byte array of the contract code.
bytes code = 2;
// The hash of the contract code.
Hash code_hash = 3;
// Whether it is a system contract.
bool is_system_contract = 4;
// The version of the current contract.
int32 version = 5;
}public MappedState<Hash, SmartContractRegistration> SmartContractRegistrations { get; set; }message ContractInfo
{
// The serial number of the contract.
int64 serial_number = 1;
// The author of the contract, this is the person who deployed the contract.
aelf.Address author = 2;C#
// The category of contract code(0: C#).
sint32 category = 3;
// The hash of the contract code.
aelf.Hash code_hash = 4;
// Whether it is a system contract.
bool is_system_contract = 5;
// The version of the current contract.
int32 version = 6;
}合约地址的计算
合约部署和升级过程
Last updated