Documentation ¶
Index ¶
- Variables
- func NewIssueProcessor() currencytypes.GetNewProcessorWithProposal
- func NewRegisterModelProcessor() currencytypes.GetNewProcessor
- type Issue
- func (op *Issue) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (op *Issue) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (op Issue) MarshalBSON() ([]byte, error)
- func (op Issue) MarshalJSON() ([]byte, error)
- func (Issue) Process(_ context.Context, _ mitumbase.GetStateFunc) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
- type IssueFact
- func (fact IssueFact) Addresses() ([]mitumbase.Address, error)
- func (fact IssueFact) Bytes() []byte
- func (fact IssueFact) Contract() mitumbase.Address
- func (fact IssueFact) Currency() currencytypes.CurrencyID
- func (fact IssueFact) Data() string
- func (fact *IssueFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *IssueFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact IssueFact) GenerateHash() util.Hash
- func (fact IssueFact) Hash() util.Hash
- func (fact IssueFact) IsValid(b []byte) error
- func (fact IssueFact) MarshalBSON() ([]byte, error)
- func (fact IssueFact) MarshalJSON() ([]byte, error)
- func (fact IssueFact) ProjectId() string
- func (fact IssueFact) RequestTimeStamp() uint64
- func (fact IssueFact) Sender() mitumbase.Address
- func (fact IssueFact) Token() mitumbase.Token
- type IssueFactBSONUnmarshaler
- type IssueFactJSONMarshaler
- type IssueFactJSONUnmarshaler
- type IssueProcessor
- func (opp *IssueProcessor) Close() error
- func (opp *IssueProcessor) PreProcess(ctx context.Context, op mitumbase.Operation, ...) (context.Context, mitumbase.OperationProcessReasonError, error)
- func (opp *IssueProcessor) Process(_ context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
- type RegisterModel
- type RegisterModelFact
- func (fact RegisterModelFact) Addresses() ([]mitumbase.Address, error)
- func (fact RegisterModelFact) Bytes() []byte
- func (fact RegisterModelFact) Contract() mitumbase.Address
- func (fact RegisterModelFact) Currency() types.CurrencyID
- func (fact *RegisterModelFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *RegisterModelFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact RegisterModelFact) GenerateHash() util.Hash
- func (fact RegisterModelFact) Hash() util.Hash
- func (fact RegisterModelFact) IsValid(b []byte) error
- func (fact RegisterModelFact) MarshalBSON() ([]byte, error)
- func (fact RegisterModelFact) MarshalJSON() ([]byte, error)
- func (fact RegisterModelFact) Sender() mitumbase.Address
- func (fact RegisterModelFact) Token() mitumbase.Token
- type RegisterModelFactBSONUnmarshaler
- type RegisterModelFactJSONMarshaler
- type RegisterModelFactJSONUnmarshaler
- type RegisterModelProcessor
- func (opp *RegisterModelProcessor) Close() error
- func (opp *RegisterModelProcessor) PreProcess(ctx context.Context, op mitumbase.Operation, ...) (context.Context, mitumbase.OperationProcessReasonError, error)
- func (opp *RegisterModelProcessor) Process(_ context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
- type TestIssueProcessor
- func (t *TestIssueProcessor) Create() *TestIssueProcessor
- func (t *TestIssueProcessor) LoadOperation(fileName string) *TestIssueProcessor
- func (t *TestIssueProcessor) MakeOperation(sender base.Address, privatekey base.Privatekey, contract base.Address, ...) *TestIssueProcessor
- func (t *TestIssueProcessor) Print(fileName string) *TestIssueProcessor
- func (t *TestIssueProcessor) RunPreProcess() *TestIssueProcessor
- func (t *TestIssueProcessor) RunProcess() *TestIssueProcessor
- func (t *TestIssueProcessor) SetAccount(priv string, amount int64, cid currencytypes.CurrencyID, target []test.Account, ...) *TestIssueProcessor
- func (t *TestIssueProcessor) SetAmount(am int64, cid currencytypes.CurrencyID, target []currencytypes.Amount) *TestIssueProcessor
- func (t *TestIssueProcessor) SetContractAccount(owner base.Address, priv string, amount int64, cid currencytypes.CurrencyID, ...) *TestIssueProcessor
- func (t *TestIssueProcessor) SetCurrency(cid string, am int64, addr base.Address, target []currencytypes.CurrencyID, ...) *TestIssueProcessor
- func (t *TestIssueProcessor) SetService(contract base.Address) *TestIssueProcessor
- type TestRegisterModelProcessor
- func (t *TestRegisterModelProcessor) Create() *TestRegisterModelProcessor
- func (t *TestRegisterModelProcessor) LoadOperation(fileName string) *TestRegisterModelProcessor
- func (t *TestRegisterModelProcessor) MakeOperation(sender base.Address, privatekey base.Privatekey, contract base.Address, ...) *TestRegisterModelProcessor
- func (t *TestRegisterModelProcessor) Print(fileName string) *TestRegisterModelProcessor
- func (t *TestRegisterModelProcessor) RunPreProcess() *TestRegisterModelProcessor
- func (t *TestRegisterModelProcessor) RunProcess() *TestRegisterModelProcessor
- func (t *TestRegisterModelProcessor) SetAccount(priv string, amount int64, cid currencytypes.CurrencyID, target []test.Account, ...) *TestRegisterModelProcessor
- func (t *TestRegisterModelProcessor) SetAmount(am int64, cid currencytypes.CurrencyID, target []currencytypes.Amount) *TestRegisterModelProcessor
- func (t *TestRegisterModelProcessor) SetContractAccount(owner base.Address, priv string, amount int64, cid currencytypes.CurrencyID, ...) *TestRegisterModelProcessor
- func (t *TestRegisterModelProcessor) SetCurrency(cid string, am int64, addr base.Address, target []currencytypes.CurrencyID, ...) *TestRegisterModelProcessor
- func (t *TestRegisterModelProcessor) SetService(contract base.Address) *TestRegisterModelProcessor
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IssueFactHint = hint.MustNewHint("mitum-timestamp-issue-operation-fact-v0.0.1") IssueHint = hint.MustNewHint("mitum-timestamp-issue-operation-v0.0.1") )
View Source
var ( RegisterModelFactHint = hint.MustNewHint("mitum-timestamp-register-model-operation-fact-v0.0.1") RegisterModelHint = hint.MustNewHint("mitum-timestamp-register-model-operation-v0.0.1") )
Functions ¶
func NewIssueProcessor ¶
func NewIssueProcessor() currencytypes.GetNewProcessorWithProposal
func NewRegisterModelProcessor ¶
func NewRegisterModelProcessor() currencytypes.GetNewProcessor
Types ¶
type Issue ¶
type Issue struct {
common.BaseOperation
}
func (Issue) MarshalBSON ¶
func (Issue) MarshalJSON ¶
func (Issue) Process ¶
func (Issue) Process( _ context.Context, _ mitumbase.GetStateFunc, ) ([]mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error)
type IssueFact ¶
func NewIssueFact ¶
func NewIssueFact( token []byte, sender, contract mitumbase.Address, projectID string, requestTimeStamp uint64, data string, currency currencytypes.CurrencyID) IssueFact
func (IssueFact) Currency ¶
func (fact IssueFact) Currency() currencytypes.CurrencyID
func (*IssueFact) DecodeBSON ¶
func (*IssueFact) DecodeJSON ¶
func (IssueFact) GenerateHash ¶
func (IssueFact) MarshalBSON ¶
func (IssueFact) MarshalJSON ¶
func (IssueFact) RequestTimeStamp ¶
type IssueFactJSONMarshaler ¶
type IssueFactJSONMarshaler struct { mitumbase.BaseFactJSONMarshaler Sender mitumbase.Address `json:"sender"` Contract mitumbase.Address `json:"contract"` ProjectID string `json:"project_id"` RequestTimeStamp uint64 `json:"request_timestamp"` Data string `json:"data"` Currency types.CurrencyID `json:"currency"` }
type IssueProcessor ¶
type IssueProcessor struct { *mitumbase.BaseOperationProcessor // contains filtered or unexported fields }
func (*IssueProcessor) Close ¶
func (opp *IssueProcessor) Close() error
func (*IssueProcessor) PreProcess ¶
func (opp *IssueProcessor) PreProcess( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc, ) (context.Context, mitumbase.OperationProcessReasonError, error)
func (*IssueProcessor) Process ¶
func (opp *IssueProcessor) Process( _ context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc) ( []mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error, )
type RegisterModel ¶
type RegisterModel struct {
common.BaseOperation
}
func NewRegisterModel ¶
func NewRegisterModel(fact RegisterModelFact) (RegisterModel, error)
func (*RegisterModel) DecodeBSON ¶
func (op *RegisterModel) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*RegisterModel) DecodeJSON ¶
func (op *RegisterModel) DecodeJSON(b []byte, enc encoder.Encoder) error
func (RegisterModel) MarshalBSON ¶
func (op RegisterModel) MarshalBSON() ([]byte, error)
func (RegisterModel) MarshalJSON ¶
func (op RegisterModel) MarshalJSON() ([]byte, error)
type RegisterModelFact ¶
func NewRegisterModelFact ¶
func NewRegisterModelFact(token []byte, sender, contract mitumbase.Address, currency types.CurrencyID) RegisterModelFact
func (RegisterModelFact) Addresses ¶
func (fact RegisterModelFact) Addresses() ([]mitumbase.Address, error)
func (RegisterModelFact) Bytes ¶
func (fact RegisterModelFact) Bytes() []byte
func (RegisterModelFact) Contract ¶
func (fact RegisterModelFact) Contract() mitumbase.Address
func (RegisterModelFact) Currency ¶
func (fact RegisterModelFact) Currency() types.CurrencyID
func (*RegisterModelFact) DecodeBSON ¶
func (fact *RegisterModelFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*RegisterModelFact) DecodeJSON ¶
func (fact *RegisterModelFact) DecodeJSON(b []byte, enc encoder.Encoder) error
func (RegisterModelFact) GenerateHash ¶
func (fact RegisterModelFact) GenerateHash() util.Hash
func (RegisterModelFact) Hash ¶
func (fact RegisterModelFact) Hash() util.Hash
func (RegisterModelFact) IsValid ¶
func (fact RegisterModelFact) IsValid(b []byte) error
func (RegisterModelFact) MarshalBSON ¶
func (fact RegisterModelFact) MarshalBSON() ([]byte, error)
func (RegisterModelFact) MarshalJSON ¶
func (fact RegisterModelFact) MarshalJSON() ([]byte, error)
func (RegisterModelFact) Sender ¶
func (fact RegisterModelFact) Sender() mitumbase.Address
func (RegisterModelFact) Token ¶
func (fact RegisterModelFact) Token() mitumbase.Token
type RegisterModelFactJSONMarshaler ¶
type RegisterModelFactJSONMarshaler struct { mitumbase.BaseFactJSONMarshaler Sender mitumbase.Address `json:"sender"` Contract mitumbase.Address `json:"contract"` Currency types.CurrencyID `json:"currency"` }
type RegisterModelFactJSONUnmarshaler ¶
type RegisterModelFactJSONUnmarshaler struct { mitumbase.BaseFactJSONUnmarshaler Sender string `json:"sender"` Contract string `json:"contract"` Currency string `json:"currency"` }
type RegisterModelProcessor ¶
type RegisterModelProcessor struct {
*mitumbase.BaseOperationProcessor
}
func (*RegisterModelProcessor) Close ¶
func (opp *RegisterModelProcessor) Close() error
func (*RegisterModelProcessor) PreProcess ¶
func (opp *RegisterModelProcessor) PreProcess( ctx context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc, ) (context.Context, mitumbase.OperationProcessReasonError, error)
func (*RegisterModelProcessor) Process ¶
func (opp *RegisterModelProcessor) Process( _ context.Context, op mitumbase.Operation, getStateFunc mitumbase.GetStateFunc) ( []mitumbase.StateMergeValue, mitumbase.OperationProcessReasonError, error, )
type TestIssueProcessor ¶
type TestIssueProcessor struct { *test.BaseTestOperationProcessorNoItem[Issue] }
func NewTestIssueProcessor ¶
func NewTestIssueProcessor(tp *test.TestProcessor) TestIssueProcessor
func (*TestIssueProcessor) Create ¶
func (t *TestIssueProcessor) Create() *TestIssueProcessor
func (*TestIssueProcessor) LoadOperation ¶
func (t *TestIssueProcessor) LoadOperation(fileName string, ) *TestIssueProcessor
func (*TestIssueProcessor) MakeOperation ¶
func (t *TestIssueProcessor) MakeOperation( sender base.Address, privatekey base.Privatekey, contract base.Address, projectID string, requestTimeStamp uint64, data string, currency currencytypes.CurrencyID, ) *TestIssueProcessor
func (*TestIssueProcessor) Print ¶
func (t *TestIssueProcessor) Print(fileName string, ) *TestIssueProcessor
func (*TestIssueProcessor) RunPreProcess ¶
func (t *TestIssueProcessor) RunPreProcess() *TestIssueProcessor
func (*TestIssueProcessor) RunProcess ¶
func (t *TestIssueProcessor) RunProcess() *TestIssueProcessor
func (*TestIssueProcessor) SetAccount ¶
func (t *TestIssueProcessor) SetAccount( priv string, amount int64, cid currencytypes.CurrencyID, target []test.Account, inState bool, ) *TestIssueProcessor
func (*TestIssueProcessor) SetAmount ¶
func (t *TestIssueProcessor) SetAmount( am int64, cid currencytypes.CurrencyID, target []currencytypes.Amount, ) *TestIssueProcessor
func (*TestIssueProcessor) SetContractAccount ¶
func (t *TestIssueProcessor) SetContractAccount( owner base.Address, priv string, amount int64, cid currencytypes.CurrencyID, target []test.Account, inState bool, ) *TestIssueProcessor
func (*TestIssueProcessor) SetCurrency ¶
func (t *TestIssueProcessor) SetCurrency( cid string, am int64, addr base.Address, target []currencytypes.CurrencyID, instate bool, ) *TestIssueProcessor
func (*TestIssueProcessor) SetService ¶
func (t *TestIssueProcessor) SetService( contract base.Address, ) *TestIssueProcessor
type TestRegisterModelProcessor ¶
type TestRegisterModelProcessor struct { *test.BaseTestOperationProcessorNoItem[RegisterModel] }
func NewTestRegisterModelProcessor ¶
func NewTestRegisterModelProcessor(tp *test.TestProcessor) TestRegisterModelProcessor
func (*TestRegisterModelProcessor) Create ¶
func (t *TestRegisterModelProcessor) Create() *TestRegisterModelProcessor
func (*TestRegisterModelProcessor) LoadOperation ¶
func (t *TestRegisterModelProcessor) LoadOperation(fileName string, ) *TestRegisterModelProcessor
func (*TestRegisterModelProcessor) MakeOperation ¶
func (t *TestRegisterModelProcessor) MakeOperation( sender base.Address, privatekey base.Privatekey, contract base.Address, currency currencytypes.CurrencyID, ) *TestRegisterModelProcessor
func (*TestRegisterModelProcessor) Print ¶
func (t *TestRegisterModelProcessor) Print(fileName string, ) *TestRegisterModelProcessor
func (*TestRegisterModelProcessor) RunPreProcess ¶
func (t *TestRegisterModelProcessor) RunPreProcess() *TestRegisterModelProcessor
func (*TestRegisterModelProcessor) RunProcess ¶
func (t *TestRegisterModelProcessor) RunProcess() *TestRegisterModelProcessor
func (*TestRegisterModelProcessor) SetAccount ¶
func (t *TestRegisterModelProcessor) SetAccount( priv string, amount int64, cid currencytypes.CurrencyID, target []test.Account, inState bool, ) *TestRegisterModelProcessor
func (*TestRegisterModelProcessor) SetAmount ¶
func (t *TestRegisterModelProcessor) SetAmount( am int64, cid currencytypes.CurrencyID, target []currencytypes.Amount, ) *TestRegisterModelProcessor
func (*TestRegisterModelProcessor) SetContractAccount ¶
func (t *TestRegisterModelProcessor) SetContractAccount( owner base.Address, priv string, amount int64, cid currencytypes.CurrencyID, target []test.Account, inState bool, ) *TestRegisterModelProcessor
func (*TestRegisterModelProcessor) SetCurrency ¶
func (t *TestRegisterModelProcessor) SetCurrency( cid string, am int64, addr base.Address, target []currencytypes.CurrencyID, instate bool, ) *TestRegisterModelProcessor
func (*TestRegisterModelProcessor) SetService ¶
func (t *TestRegisterModelProcessor) SetService( contract base.Address, ) *TestRegisterModelProcessor
Click to show internal directories.
Click to hide internal directories.