Documentation ¶
Index ¶
- Variables
- func OperationHinter(ht hint.Hint) currency.BaseOperation
- type ConfigContractAccount
- type ConfigContractAccountFact
- func (fact ConfigContractAccountFact) Addresses() ([]base.Address, error)
- func (fact ConfigContractAccountFact) Bytes() []byte
- func (fact ConfigContractAccountFact) Currency() currency.CurrencyID
- func (fact ConfigContractAccountFact) GenerateHash() valuehash.Hash
- func (fact ConfigContractAccountFact) Hash() valuehash.Hash
- func (fact ConfigContractAccountFact) IsValid(b []byte) error
- func (fact ConfigContractAccountFact) MarshalBSON() ([]byte, error)
- func (fact ConfigContractAccountFact) MarshalJSON() ([]byte, error)
- func (fact ConfigContractAccountFact) Sender() base.Address
- func (fact ConfigContractAccountFact) Target() base.Address
- func (fact ConfigContractAccountFact) Token() []byte
- func (fact *ConfigContractAccountFact) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *ConfigContractAccountFact) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
- type ConfigContractAccountFactBSONUnpacker
- type ConfigContractAccountFactJSONPacker
- type ConfigContractAccountFactJSONUnpacker
- type ContractAccountKeys
- func (ks ContractAccountKeys) Bytes() []byte
- func (ks ContractAccountKeys) Equal(b currency.AccountKeys) bool
- func (ks ContractAccountKeys) GenerateHash() (valuehash.Hash, error)
- func (ks ContractAccountKeys) Hash() valuehash.Hash
- func (ks ContractAccountKeys) IsValid([]byte) error
- func (ks ContractAccountKeys) Key(k key.Publickey) (currency.AccountKey, bool)
- func (ks ContractAccountKeys) Keys() []currency.AccountKey
- func (ks ContractAccountKeys) Threshold() uint
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConfigContractAccountFactType = hint.Type("mitum-currency-config-contract-account-operation-fact") ConfigContractAccountFactHint = hint.NewHint(ConfigContractAccountFactType, "v0.0.1") ConfigContractAccountFactHinter = ConfigContractAccountFact{BaseHinter: hint.NewBaseHinter(ConfigContractAccountFactHint)} ConfigContractAccountType = hint.Type("mitum-currency-config-contract-account-operation") ConfigContractAccountHint = hint.NewHint(ConfigContractAccountType, "v0.0.1") ConfigContractAccountHinter = ConfigContractAccount{BaseOperation: OperationHinter(ConfigContractAccountHint)} )
View Source
var ( ContractAccountKeysType = hint.Type("mitum-currency-contract-account-keys") ContractAccountKeysHint = hint.NewHint(ContractAccountKeysType, "v0.0.1") ContractAccountKeysHinter = ContractAccountKeys{BaseHinter: hint.NewBaseHinter(ContractAccountKeysHint)} )
Functions ¶
func OperationHinter ¶
func OperationHinter(ht hint.Hint) currency.BaseOperation
Types ¶
type ConfigContractAccount ¶
type ConfigContractAccount struct {
currency.BaseOperation
}
func NewConfigContractAccount ¶
func NewConfigContractAccount(fact ConfigContractAccountFact, fs []base.FactSign, memo string) (ConfigContractAccount, error)
func (*ConfigContractAccount) UnpackBSON ¶
func (op *ConfigContractAccount) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
func (*ConfigContractAccount) UnpackJSON ¶
func (op *ConfigContractAccount) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
type ConfigContractAccountFact ¶
type ConfigContractAccountFact struct { hint.BaseHinter // contains filtered or unexported fields }
func NewConfigContractAccountFact ¶
func NewConfigContractAccountFact(token []byte, sender, target base.Address, currency currency.CurrencyID) ConfigContractAccountFact
func (ConfigContractAccountFact) Addresses ¶
func (fact ConfigContractAccountFact) Addresses() ([]base.Address, error)
func (ConfigContractAccountFact) Bytes ¶
func (fact ConfigContractAccountFact) Bytes() []byte
func (ConfigContractAccountFact) Currency ¶
func (fact ConfigContractAccountFact) Currency() currency.CurrencyID
func (ConfigContractAccountFact) GenerateHash ¶
func (fact ConfigContractAccountFact) GenerateHash() valuehash.Hash
func (ConfigContractAccountFact) Hash ¶
func (fact ConfigContractAccountFact) Hash() valuehash.Hash
func (ConfigContractAccountFact) IsValid ¶
func (fact ConfigContractAccountFact) IsValid(b []byte) error
func (ConfigContractAccountFact) MarshalBSON ¶
func (fact ConfigContractAccountFact) MarshalBSON() ([]byte, error)
func (ConfigContractAccountFact) MarshalJSON ¶
func (fact ConfigContractAccountFact) MarshalJSON() ([]byte, error)
func (ConfigContractAccountFact) Sender ¶
func (fact ConfigContractAccountFact) Sender() base.Address
func (ConfigContractAccountFact) Target ¶
func (fact ConfigContractAccountFact) Target() base.Address
func (ConfigContractAccountFact) Token ¶
func (fact ConfigContractAccountFact) Token() []byte
func (*ConfigContractAccountFact) UnpackBSON ¶
func (fact *ConfigContractAccountFact) UnpackBSON(b []byte, enc *bsonenc.Encoder) error
func (*ConfigContractAccountFact) UnpackJSON ¶
func (fact *ConfigContractAccountFact) UnpackJSON(b []byte, enc *jsonenc.Encoder) error
type ConfigContractAccountFactBSONUnpacker ¶
type ConfigContractAccountFactBSONUnpacker struct { H valuehash.Bytes `bson:"hash"` TK []byte `bson:"token"` SD base.AddressDecoder `bson:"sender"` TG base.AddressDecoder `bson:"target"` CR string `bson:"currency"` }
type ConfigContractAccountFactJSONUnpacker ¶
type ConfigContractAccountFactJSONUnpacker struct { H valuehash.Bytes `json:"hash"` TK []byte `json:"token"` SD base.AddressDecoder `json:"sender"` TG base.AddressDecoder `json:"target"` CR string `json:"currency"` }
type ContractAccountKeys ¶
type ContractAccountKeys struct { hint.BaseHinter // contains filtered or unexported fields }
func NewContractAccountKeys ¶
func NewContractAccountKeys() ContractAccountKeys
func (ContractAccountKeys) Bytes ¶
func (ks ContractAccountKeys) Bytes() []byte
func (ContractAccountKeys) Equal ¶
func (ks ContractAccountKeys) Equal(b currency.AccountKeys) bool
func (ContractAccountKeys) GenerateHash ¶
func (ks ContractAccountKeys) GenerateHash() (valuehash.Hash, error)
func (ContractAccountKeys) Hash ¶
func (ks ContractAccountKeys) Hash() valuehash.Hash
func (ContractAccountKeys) IsValid ¶
func (ks ContractAccountKeys) IsValid([]byte) error
func (ContractAccountKeys) Key ¶
func (ks ContractAccountKeys) Key(k key.Publickey) (currency.AccountKey, bool)
func (ContractAccountKeys) Keys ¶
func (ks ContractAccountKeys) Keys() []currency.AccountKey
func (ContractAccountKeys) Threshold ¶
func (ks ContractAccountKeys) Threshold() uint
Click to show internal directories.
Click to hide internal directories.