Versions in this module Expand all Collapse all v0 v0.1.2 Oct 31, 2022 v0.1.1 Oct 31, 2022 Changes in this version + const AccessRightAdd + const AccessRightAddWrite + const AccessRightNone + const AccessRightRead + const AccessRightReadAdd + const AccessRightReadAddWrite + const AccessRightReadWrite + const AccessRightWrite + const URefPrefix + func UnmarshalCLValue(src []byte, dest *CLValue) (int, error) + type AccessRight byte + type CLMap struct + KeyType CLType + Raw map[string]CLValue + ValueType CLType + func (clmap CLMap) Marshal(w io.Writer) (int, error) + type CLType byte + const CLTypeAny + const CLTypeBool + const CLTypeByteArray + const CLTypeI32 + const CLTypeI64 + const CLTypeKey + const CLTypeList + const CLTypeMap + const CLTypeOption + const CLTypePublicKey + const CLTypeResult + const CLTypeString + const CLTypeTuple1 + const CLTypeTuple2 + const CLTypeTuple3 + const CLTypeU128 + const CLTypeU256 + const CLTypeU32 + const CLTypeU512 + const CLTypeU64 + const CLTypeU8 + const CLTypeURef + const CLTypeUnit + func FromString(clType string) CLType + func (t CLType) ToString() string + type CLValue struct + Bool *bool + ByteArray *FixedByteArray + I32 *int32 + I64 *int64 + Key *Key + List *[]CLValue + Map *CLMap + Option *CLValue + PublicKey *keypair.PublicKey + Result *CLValueResult + String *string + Tuple1 *[1]CLValue + Tuple2 *[2]CLValue + Tuple3 *[3]CLValue + Type CLType + U128 *big.Int + U256 *big.Int + U32 *uint32 + U512 *big.Int + U64 *uint64 + U8 *byte + URef *URef + func (v CLValue) ArmForSwitch(sw byte) (string, bool) + func (v CLValue) SwitchFieldName() string + type CLValueResult struct + Error *CLValue + IsSuccess bool + Success *CLValue + func (r CLValueResult) ErrorFieldName() string + func (r CLValueResult) ResultFieldName() string + func (r CLValueResult) SuccessFieldName() string + type FixedByteArray []byte + func (c FixedByteArray) Marshal(w io.Writer) (int, error) + type Key struct + Account [32]byte + Balance [32]byte + Bid [32]byte + DeployInfo [32]byte + EraId *uint64 + Hash [32]byte + Transfer [32]byte + Type KeyType + URef *URef + Withdraw [32]byte + func (u *Key) Unmarshal(data []byte) (int, error) + func (u Key) ArmForSwitch(sw byte) (string, bool) + func (u Key) Marshal(w io.Writer) (int, error) + func (u Key) SwitchFieldName() string + type KeyType byte + const KeyTypeAccount + const KeyTypeBalance + const KeyTypeBid + const KeyTypeDeployInfo + const KeyTypeEraId + const KeyTypeHash + const KeyTypeTransfer + const KeyTypeURef + const KeyTypeWithdraw + type Signature struct + SignatureData []byte + Tag keypair.KeyTag + func (key Signature) Marshal(w io.Writer) (int, error) + type URef struct + AccessRight AccessRight + Address [32]byte + func URefFromFormattedString(str string) (*URef, error) + func (uRef *URef) Unmarshal(data []byte) (int, error) + func (uRef URef) Marshal(w io.Writer) (int, error) + func (uRef URef) ToFormattedString() string