example

package
v0.0.0-...-bbac14e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2022 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

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 (ConfigContractAccountFact) GenerateHash

func (fact ConfigContractAccountFact) GenerateHash() valuehash.Hash

func (ConfigContractAccountFact) 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 ConfigContractAccountFactJSONPacker

type ConfigContractAccountFactJSONPacker struct {
	jsonenc.HintedHead
	H  valuehash.Hash      `json:"hash"`
	TK []byte              `json:"token"`
	SD base.Address        `json:"sender"`
	TG base.Address        `json:"target"`
	CR currency.CurrencyID `json:"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 (ContractAccountKeys) GenerateHash

func (ks ContractAccountKeys) GenerateHash() (valuehash.Hash, error)

func (ContractAccountKeys) Hash

func (ContractAccountKeys) IsValid

func (ks ContractAccountKeys) IsValid([]byte) error

func (ContractAccountKeys) Key

func (ContractAccountKeys) Keys

func (ContractAccountKeys) Threshold

func (ks ContractAccountKeys) Threshold() uint

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL