Documentation
¶
Index ¶
- Variables
- func NewCreateContractAccountProcessor() types.GetNewProcessor
- func NewUpdateHandlerProcessor() types.GetNewProcessor
- func NewUpdateRecipientProcessor() types.GetNewProcessor
- func NewWithdrawProcessor() types.GetNewProcessor
- type BaseCreateContractAccountItem
- func (it BaseCreateContractAccountItem) Address() (base.Address, error)
- func (it BaseCreateContractAccountItem) Amounts() []types.Amount
- func (it BaseCreateContractAccountItem) Bytes() []byte
- func (it *BaseCreateContractAccountItem) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (it *BaseCreateContractAccountItem) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (it BaseCreateContractAccountItem) IsValid([]byte) error
- func (it BaseCreateContractAccountItem) Keys() types.AccountKeys
- func (it BaseCreateContractAccountItem) MarshalBSON() ([]byte, error)
- func (it BaseCreateContractAccountItem) MarshalJSON() ([]byte, error)
- func (it BaseCreateContractAccountItem) Rebuild() CreateContractAccountItem
- type BaseWithdrawItem
- func (it BaseWithdrawItem) Amounts() []types.Amount
- func (it BaseWithdrawItem) Bytes() []byte
- func (it *BaseWithdrawItem) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (it *BaseWithdrawItem) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (it BaseWithdrawItem) IsValid([]byte) error
- func (it BaseWithdrawItem) MarshalBSON() ([]byte, error)
- func (it BaseWithdrawItem) MarshalJSON() ([]byte, error)
- func (it BaseWithdrawItem) Rebuild() WithdrawItem
- func (it BaseWithdrawItem) Target() base.Address
- type BaseWithdrawItemBSONUnmarshaler
- type BaseWithdrawItemJSONMarshaler
- type BaseWithdrawItemJSONUnmarshaler
- type CreateContractAccount
- func (op *CreateContractAccount) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (op *CreateContractAccount) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (op CreateContractAccount) MarshalBSON() ([]byte, error)
- func (op CreateContractAccount) MarshalJSON() ([]byte, error)
- func (CreateContractAccount) Process(_ context.Context, _ base.GetStateFunc) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
- type CreateContractAccountFact
- func (fact CreateContractAccountFact) Addresses() ([]base.Address, error)
- func (fact CreateContractAccountFact) Bytes() []byte
- func (fact *CreateContractAccountFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *CreateContractAccountFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact CreateContractAccountFact) FactUser() base.Address
- func (fact CreateContractAccountFact) FeeBase() map[types.CurrencyID][]common.Big
- func (fact CreateContractAccountFact) FeePayer() base.Address
- func (fact CreateContractAccountFact) GenerateHash() util.Hash
- func (fact CreateContractAccountFact) Hash() util.Hash
- func (fact CreateContractAccountFact) IsValid(b []byte) error
- func (fact CreateContractAccountFact) Items() []CreateContractAccountItem
- func (fact CreateContractAccountFact) MarshalBSON() ([]byte, error)
- func (fact CreateContractAccountFact) MarshalJSON() ([]byte, error)
- func (fact CreateContractAccountFact) Rebuild() CreateContractAccountFact
- func (fact CreateContractAccountFact) Sender() base.Address
- func (fact CreateContractAccountFact) Signer() base.Address
- func (fact CreateContractAccountFact) Targets() ([]base.Address, error)
- func (fact CreateContractAccountFact) Token() base.Token
- type CreateContractAccountFactBSONUnmarshaler
- type CreateContractAccountFactJSONMarshaler
- type CreateContractAccountFactJSONUnMarshaler
- type CreateContractAccountItem
- type CreateContractAccountItemBSONUnmarshaler
- type CreateContractAccountItemJSONMarshaler
- type CreateContractAccountItemJSONUnMarshaler
- type CreateContractAccountItemMultiAmounts
- type CreateContractAccountItemProcessor
- func (opp *CreateContractAccountItemProcessor) Close()
- func (opp *CreateContractAccountItemProcessor) PreProcess(_ context.Context, _ base.Operation, getStateFunc base.GetStateFunc) error
- func (opp *CreateContractAccountItemProcessor) Process(_ context.Context, _ base.Operation, _ base.GetStateFunc) ([]base.StateMergeValue, error)
- type CreateContractAccountItemSingleAmount
- type CreateContractAccountProcessor
- func (opp *CreateContractAccountProcessor) Close() error
- func (opp *CreateContractAccountProcessor) PreProcess(ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc) (context.Context, base.OperationProcessReasonError, error)
- func (opp *CreateContractAccountProcessor) Process(ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
- type OperationMarshaler
- type TestCreateContractAccountProcessor
- func (t *TestCreateContractAccountProcessor) Create() *TestCreateContractAccountProcessor
- func (t *TestCreateContractAccountProcessor) Decode(fileName string) *TestCreateContractAccountProcessor
- func (t *TestCreateContractAccountProcessor) IsValid() *TestCreateContractAccountProcessor
- func (t *TestCreateContractAccountProcessor) LoadOperation(fileName string) *TestCreateContractAccountProcessor
- func (t *TestCreateContractAccountProcessor) MakeItem(target test.Account, amounts []types.Amount, ...) *TestCreateContractAccountProcessor
- func (t *TestCreateContractAccountProcessor) MakeOperation(sender base.Address, privatekey base.Privatekey, ...) *TestCreateContractAccountProcessor
- func (t *TestCreateContractAccountProcessor) Print(fileName string) *TestCreateContractAccountProcessor
- func (t *TestCreateContractAccountProcessor) RunPreProcess() *TestCreateContractAccountProcessor
- func (t *TestCreateContractAccountProcessor) RunProcess() *TestCreateContractAccountProcessor
- func (t *TestCreateContractAccountProcessor) SetAccount(priv string, amount int64, cid types.CurrencyID, target []test.Account, ...) *TestCreateContractAccountProcessor
- func (t *TestCreateContractAccountProcessor) SetAmount(am int64, cid types.CurrencyID, target []types.Amount) *TestCreateContractAccountProcessor
- func (t *TestCreateContractAccountProcessor) SetContractAccount(owner base.Address, priv string, amount int64, cid types.CurrencyID, ...) *TestCreateContractAccountProcessor
- func (t *TestCreateContractAccountProcessor) SetCurrency(cid string, am int64, addr base.Address, target []types.CurrencyID, ...) *TestCreateContractAccountProcessor
- type TestUpdateHandlerProcessor
- func (t *TestUpdateHandlerProcessor) Create() *TestUpdateHandlerProcessor
- func (t *TestUpdateHandlerProcessor) Decode(fileName string) *TestUpdateHandlerProcessor
- func (t *TestUpdateHandlerProcessor) IsValid() *TestUpdateHandlerProcessor
- func (t *TestUpdateHandlerProcessor) LoadOperation(fileName string) *TestUpdateHandlerProcessor
- func (t *TestUpdateHandlerProcessor) MakeOperation(sender base.Address, privatekey base.Privatekey, contract base.Address, ...) *TestUpdateHandlerProcessor
- func (t *TestUpdateHandlerProcessor) Print(fileName string) *TestUpdateHandlerProcessor
- func (t *TestUpdateHandlerProcessor) RunPreProcess() *TestUpdateHandlerProcessor
- func (t *TestUpdateHandlerProcessor) RunProcess() *TestUpdateHandlerProcessor
- func (t *TestUpdateHandlerProcessor) SetAccount(priv string, amount int64, cid types.CurrencyID, target []test.Account, ...) *TestUpdateHandlerProcessor
- func (t *TestUpdateHandlerProcessor) SetAmount(am int64, cid types.CurrencyID, target []types.Amount) *TestUpdateHandlerProcessor
- func (t *TestUpdateHandlerProcessor) SetContractAccount(owner base.Address, priv string, amount int64, cid types.CurrencyID, ...) *TestUpdateHandlerProcessor
- func (t *TestUpdateHandlerProcessor) SetCurrency(cid string, am int64, addr base.Address, target []types.CurrencyID, ...) *TestUpdateHandlerProcessor
- type TestWithdrawProcessor
- func (t *TestWithdrawProcessor) Create() *TestWithdrawProcessor
- func (t *TestWithdrawProcessor) Decode(fileName string) *TestWithdrawProcessor
- func (t *TestWithdrawProcessor) IsValid() *TestWithdrawProcessor
- func (t *TestWithdrawProcessor) LoadOperation(fileName string) *TestWithdrawProcessor
- func (t *TestWithdrawProcessor) MakeItem(target test.Account, amounts []types.Amount, targetItems []WithdrawItem) *TestWithdrawProcessor
- func (t *TestWithdrawProcessor) MakeOperation(sender base.Address, privatekey base.Privatekey, items []WithdrawItem) *TestWithdrawProcessor
- func (t *TestWithdrawProcessor) Print(fileName string) *TestWithdrawProcessor
- func (t *TestWithdrawProcessor) RunPreProcess() *TestWithdrawProcessor
- func (t *TestWithdrawProcessor) RunProcess() *TestWithdrawProcessor
- func (t *TestWithdrawProcessor) SetAccount(priv string, amount int64, cid types.CurrencyID, target []test.Account, ...) *TestWithdrawProcessor
- func (t *TestWithdrawProcessor) SetAmount(am int64, cid types.CurrencyID, target []types.Amount) *TestWithdrawProcessor
- func (t *TestWithdrawProcessor) SetContractAccount(owner base.Address, priv string, amount int64, cid types.CurrencyID, ...) *TestWithdrawProcessor
- func (t *TestWithdrawProcessor) SetCurrency(cid string, am int64, addr base.Address, target []types.CurrencyID, ...) *TestWithdrawProcessor
- type UpdatHandlerFactJSONUnMarshaler
- type UpdatRecipientsFactJSONUnMarshaler
- type UpdateHandler
- func (op *UpdateHandler) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (op *UpdateHandler) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (op UpdateHandler) MarshalBSON() ([]byte, error)
- func (op UpdateHandler) MarshalJSON() ([]byte, error)
- func (UpdateHandler) Process(_ context.Context, _ base.GetStateFunc) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
- type UpdateHandlerFact
- func (fact UpdateHandlerFact) Addresses() ([]base.Address, error)
- func (fact UpdateHandlerFact) Bytes() []byte
- func (fact UpdateHandlerFact) Contract() base.Address
- func (fact UpdateHandlerFact) ContractOwnerOnly() [][2]base.Address
- func (fact UpdateHandlerFact) Currency() types.CurrencyID
- func (fact *UpdateHandlerFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *UpdateHandlerFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact UpdateHandlerFact) FactUser() base.Address
- func (fact UpdateHandlerFact) FeeBase() map[types.CurrencyID][]common.Big
- func (fact UpdateHandlerFact) FeePayer() base.Address
- func (fact UpdateHandlerFact) GenerateHash() util.Hash
- func (fact UpdateHandlerFact) Handlers() []base.Address
- func (fact UpdateHandlerFact) Hash() util.Hash
- func (fact UpdateHandlerFact) IsValid(b []byte) error
- func (fact UpdateHandlerFact) MarshalBSON() ([]byte, error)
- func (fact UpdateHandlerFact) MarshalJSON() ([]byte, error)
- func (fact UpdateHandlerFact) Sender() base.Address
- func (fact UpdateHandlerFact) Signer() base.Address
- func (fact UpdateHandlerFact) Token() base.Token
- type UpdateHandlerFactBSONUnmarshaler
- type UpdateHandlerFactJSONMarshaler
- type UpdateHandlerProcessor
- func (opp *UpdateHandlerProcessor) Close() error
- func (opp *UpdateHandlerProcessor) PreProcess(ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc) (context.Context, base.OperationProcessReasonError, error)
- func (opp *UpdateHandlerProcessor) Process(_ context.Context, op base.Operation, getStateFunc base.GetStateFunc) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
- type UpdateRecipient
- func (op *UpdateRecipient) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (op *UpdateRecipient) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (op UpdateRecipient) MarshalBSON() ([]byte, error)
- func (op UpdateRecipient) MarshalJSON() ([]byte, error)
- func (UpdateRecipient) Process(_ context.Context, _ base.GetStateFunc) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
- type UpdateRecipientFact
- func (fact UpdateRecipientFact) Addresses() ([]base.Address, error)
- func (fact UpdateRecipientFact) Bytes() []byte
- func (fact UpdateRecipientFact) Contract() base.Address
- func (fact UpdateRecipientFact) ContractOwnerOnly() [][2]base.Address
- func (fact UpdateRecipientFact) Currency() types.CurrencyID
- func (fact *UpdateRecipientFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *UpdateRecipientFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact UpdateRecipientFact) FactUser() base.Address
- func (fact UpdateRecipientFact) FeeBase() map[types.CurrencyID][]common.Big
- func (fact UpdateRecipientFact) FeePayer() base.Address
- func (fact UpdateRecipientFact) GenerateHash() util.Hash
- func (fact UpdateRecipientFact) Hash() util.Hash
- func (fact UpdateRecipientFact) IsValid(b []byte) error
- func (fact UpdateRecipientFact) MarshalBSON() ([]byte, error)
- func (fact UpdateRecipientFact) MarshalJSON() ([]byte, error)
- func (fact UpdateRecipientFact) Recipients() []base.Address
- func (fact UpdateRecipientFact) Sender() base.Address
- func (fact UpdateRecipientFact) Signer() base.Address
- func (fact UpdateRecipientFact) Token() base.Token
- type UpdateRecipientProcessor
- func (opp *UpdateRecipientProcessor) Close() error
- func (opp *UpdateRecipientProcessor) PreProcess(ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc) (context.Context, base.OperationProcessReasonError, error)
- func (opp *UpdateRecipientProcessor) Process(_ context.Context, op base.Operation, getStateFunc base.GetStateFunc) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
- type UpdateRecipientsFactBSONUnmarshaler
- type UpdateRecipientsFactJSONMarshaler
- type Withdraw
- func (op *Withdraw) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (op *Withdraw) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (op Withdraw) MarshalBSON() ([]byte, error)
- func (op Withdraw) MarshalJSON() ([]byte, error)
- func (Withdraw) Process(_ context.Context, _ base.GetStateFunc) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
- type WithdrawFact
- func (fact WithdrawFact) Addresses() ([]base.Address, error)
- func (fact WithdrawFact) Bytes() []byte
- func (fact WithdrawFact) ContractOwnerOnly() [][2]base.Address
- func (fact *WithdrawFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *WithdrawFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact WithdrawFact) FactUser() base.Address
- func (fact WithdrawFact) FeeBase() map[types.CurrencyID][]common.Big
- func (fact WithdrawFact) FeePayer() base.Address
- func (fact WithdrawFact) GenerateHash() util.Hash
- func (fact WithdrawFact) Hash() util.Hash
- func (fact WithdrawFact) IsValid(b []byte) error
- func (fact WithdrawFact) Items() []WithdrawItem
- func (fact WithdrawFact) MarshalBSON() ([]byte, error)
- func (fact WithdrawFact) MarshalJSON() ([]byte, error)
- func (fact WithdrawFact) Rebuild() WithdrawFact
- func (fact WithdrawFact) Sender() base.Address
- func (fact WithdrawFact) Signer() base.Address
- func (fact WithdrawFact) Token() base.Token
- type WithdrawFactBSONUnmarshaler
- type WithdrawFactJSONMarshaler
- type WithdrawFactJSONUnmarshaler
- type WithdrawItem
- type WithdrawItemMultiAmounts
- type WithdrawItemProcessor
- type WithdrawItemSingleAmount
- type WithdrawProcessor
- func (opp *WithdrawProcessor) Close() error
- func (opp *WithdrawProcessor) PreProcess(ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc) (context.Context, base.OperationProcessReasonError, error)
- func (opp *WithdrawProcessor) Process(ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CreateContractAccountFactHint = hint.MustNewHint("mitum-extension-create-contract-account-operation-fact-v0.0.1") CreateContractAccountHint = hint.MustNewHint("mitum-extension-create-contract-account-operation-v0.0.1") )
View Source
var ( UpdateHandlerFactHint = hint.MustNewHint("mitum-extension-update-handler-operation-fact-v0.0.1") UpdateHandlerHint = hint.MustNewHint("mitum-extension-update-handler-operation-v0.0.1") )
View Source
var ( UpdateRecipientFactHint = hint.MustNewHint("mitum-extension-update-recipient-operation-fact-v0.0.1") UpdateRecipientHint = hint.MustNewHint("mitum-extension-update-recipient-operation-v0.0.1") )
View Source
var ( WithdrawFactHint = hint.MustNewHint("mitum-extension-withdraw-operation-fact-v0.0.1") WithdrawHint = hint.MustNewHint("mitum-extension-withdraw-operation-v0.0.1") )
View Source
var (
CreateContractAccountItemMultiAmountsHint = hint.MustNewHint("mitum-extension-create-contract-account-multiple-amounts-v0.0.1")
)
View Source
var (
CreateContractAccountItemSingleAmountHint = hint.MustNewHint("mitum-extension-create-contract-account-single-amount-v0.0.1")
)
View Source
var MaxCreateContractAccountItems uint = 1000
View Source
var MaxWithdrawItems uint = 1000
View Source
var UpdateHandlerProcessorPool = sync.Pool{ New: func() interface{} { return new(UpdateHandlerProcessor) }, }
View Source
var UpdateRecipientProcessorPool = sync.Pool{ New: func() interface{} { return new(UpdateRecipientProcessor) }, }
View Source
var (
WithdrawItemMultiAmountsHint = hint.MustNewHint("mitum-extension-contract-account-withdraw-multi-amounts-v0.0.1")
)
View Source
var (
WithdrawItemSingleAmountHint = hint.MustNewHint("mitum-extension-contract-account-withdraw-single-amount-v0.0.1")
)
Functions ¶
func NewCreateContractAccountProcessor ¶
func NewCreateContractAccountProcessor() types.GetNewProcessor
func NewUpdateHandlerProcessor ¶
func NewUpdateHandlerProcessor() types.GetNewProcessor
func NewUpdateRecipientProcessor ¶
func NewUpdateRecipientProcessor() types.GetNewProcessor
func NewWithdrawProcessor ¶
func NewWithdrawProcessor() types.GetNewProcessor
Types ¶
type BaseCreateContractAccountItem ¶
type BaseCreateContractAccountItem struct { hint.BaseHinter // contains filtered or unexported fields }
func NewBaseCreateContractAccountItem ¶
func NewBaseCreateContractAccountItem(ht hint.Hint, keys types.AccountKeys, amounts []types.Amount) BaseCreateContractAccountItem
func (BaseCreateContractAccountItem) Address ¶
func (it BaseCreateContractAccountItem) Address() (base.Address, error)
func (BaseCreateContractAccountItem) Amounts ¶
func (it BaseCreateContractAccountItem) Amounts() []types.Amount
func (BaseCreateContractAccountItem) Bytes ¶
func (it BaseCreateContractAccountItem) Bytes() []byte
func (*BaseCreateContractAccountItem) DecodeBSON ¶
func (it *BaseCreateContractAccountItem) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*BaseCreateContractAccountItem) DecodeJSON ¶
func (it *BaseCreateContractAccountItem) DecodeJSON(b []byte, enc encoder.Encoder) error
func (BaseCreateContractAccountItem) IsValid ¶
func (it BaseCreateContractAccountItem) IsValid([]byte) error
func (BaseCreateContractAccountItem) Keys ¶
func (it BaseCreateContractAccountItem) Keys() types.AccountKeys
func (BaseCreateContractAccountItem) MarshalBSON ¶
func (it BaseCreateContractAccountItem) MarshalBSON() ([]byte, error)
func (BaseCreateContractAccountItem) MarshalJSON ¶
func (it BaseCreateContractAccountItem) MarshalJSON() ([]byte, error)
func (BaseCreateContractAccountItem) Rebuild ¶
func (it BaseCreateContractAccountItem) Rebuild() CreateContractAccountItem
type BaseWithdrawItem ¶
type BaseWithdrawItem struct { hint.BaseHinter // contains filtered or unexported fields }
func NewBaseWithdrawItem ¶
func (BaseWithdrawItem) Amounts ¶
func (it BaseWithdrawItem) Amounts() []types.Amount
func (BaseWithdrawItem) Bytes ¶
func (it BaseWithdrawItem) Bytes() []byte
func (*BaseWithdrawItem) DecodeBSON ¶
func (it *BaseWithdrawItem) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*BaseWithdrawItem) DecodeJSON ¶
func (it *BaseWithdrawItem) DecodeJSON(b []byte, enc encoder.Encoder) error
func (BaseWithdrawItem) IsValid ¶
func (it BaseWithdrawItem) IsValid([]byte) error
func (BaseWithdrawItem) MarshalBSON ¶
func (it BaseWithdrawItem) MarshalBSON() ([]byte, error)
func (BaseWithdrawItem) MarshalJSON ¶
func (it BaseWithdrawItem) MarshalJSON() ([]byte, error)
func (BaseWithdrawItem) Rebuild ¶
func (it BaseWithdrawItem) Rebuild() WithdrawItem
func (BaseWithdrawItem) Target ¶
func (it BaseWithdrawItem) Target() base.Address
type BaseWithdrawItemJSONUnmarshaler ¶
type BaseWithdrawItemJSONUnmarshaler struct { Hint hint.Hint `json:"_hint"` Target string `json:"target"` Amounts json.RawMessage `json:"amounts"` }
type CreateContractAccount ¶
type CreateContractAccount struct {
extras.ExtendedOperation
}
func NewCreateContractAccount ¶
func NewCreateContractAccount(fact CreateContractAccountFact) (CreateContractAccount, error)
func (*CreateContractAccount) DecodeBSON ¶
func (op *CreateContractAccount) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*CreateContractAccount) DecodeJSON ¶
func (op *CreateContractAccount) DecodeJSON(b []byte, enc encoder.Encoder) error
func (CreateContractAccount) MarshalBSON ¶
func (op CreateContractAccount) MarshalBSON() ([]byte, error)
func (CreateContractAccount) MarshalJSON ¶
func (op CreateContractAccount) MarshalJSON() ([]byte, error)
func (CreateContractAccount) Process ¶
func (CreateContractAccount) Process( _ context.Context, _ base.GetStateFunc, ) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
type CreateContractAccountFact ¶
func NewCreateContractAccountFact ¶
func NewCreateContractAccountFact(token []byte, sender base.Address, items []CreateContractAccountItem) CreateContractAccountFact
func (CreateContractAccountFact) Addresses ¶
func (fact CreateContractAccountFact) Addresses() ([]base.Address, error)
func (CreateContractAccountFact) Bytes ¶
func (fact CreateContractAccountFact) Bytes() []byte
func (*CreateContractAccountFact) DecodeBSON ¶
func (fact *CreateContractAccountFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*CreateContractAccountFact) DecodeJSON ¶
func (fact *CreateContractAccountFact) DecodeJSON(b []byte, enc encoder.Encoder) error
func (CreateContractAccountFact) FactUser ¶
func (fact CreateContractAccountFact) FactUser() base.Address
func (CreateContractAccountFact) FeeBase ¶
func (fact CreateContractAccountFact) FeeBase() map[types.CurrencyID][]common.Big
func (CreateContractAccountFact) FeePayer ¶
func (fact CreateContractAccountFact) FeePayer() base.Address
func (CreateContractAccountFact) GenerateHash ¶
func (fact CreateContractAccountFact) GenerateHash() util.Hash
func (CreateContractAccountFact) Hash ¶
func (fact CreateContractAccountFact) Hash() util.Hash
func (CreateContractAccountFact) IsValid ¶
func (fact CreateContractAccountFact) IsValid(b []byte) error
func (CreateContractAccountFact) Items ¶
func (fact CreateContractAccountFact) Items() []CreateContractAccountItem
func (CreateContractAccountFact) MarshalBSON ¶
func (fact CreateContractAccountFact) MarshalBSON() ([]byte, error)
func (CreateContractAccountFact) MarshalJSON ¶
func (fact CreateContractAccountFact) MarshalJSON() ([]byte, error)
func (CreateContractAccountFact) Rebuild ¶
func (fact CreateContractAccountFact) Rebuild() CreateContractAccountFact
func (CreateContractAccountFact) Sender ¶
func (fact CreateContractAccountFact) Sender() base.Address
func (CreateContractAccountFact) Signer ¶
func (fact CreateContractAccountFact) Signer() base.Address
func (CreateContractAccountFact) Targets ¶
func (fact CreateContractAccountFact) Targets() ([]base.Address, error)
func (CreateContractAccountFact) Token ¶
func (fact CreateContractAccountFact) Token() base.Token
type CreateContractAccountFactJSONMarshaler ¶
type CreateContractAccountFactJSONMarshaler struct { base.BaseFactJSONMarshaler Owner base.Address `json:"sender"` Items []CreateContractAccountItem `json:"items"` }
type CreateContractAccountFactJSONUnMarshaler ¶
type CreateContractAccountFactJSONUnMarshaler struct { base.BaseFactJSONUnmarshaler Owner string `json:"sender"` Items json.RawMessage `json:"items"` }
type CreateContractAccountItem ¶
type CreateContractAccountItem interface { hint.Hinter util.IsValider currency.AmountsItem Bytes() []byte Keys() types.AccountKeys Address() (base.Address, error) Rebuild() CreateContractAccountItem }
type CreateContractAccountItemJSONMarshaler ¶
type CreateContractAccountItemJSONMarshaler struct { hint.BaseHinter Keys types.AccountKeys `json:"keys"` Amounts []types.Amount `json:"amounts"` }
type CreateContractAccountItemJSONUnMarshaler ¶
type CreateContractAccountItemJSONUnMarshaler struct { Hint hint.Hint `json:"_hint"` Keys json.RawMessage `json:"keys"` Amounts json.RawMessage `json:"amounts"` }
type CreateContractAccountItemMultiAmounts ¶
type CreateContractAccountItemMultiAmounts struct {
BaseCreateContractAccountItem
}
func NewCreateContractAccountItemMultiAmounts ¶
func NewCreateContractAccountItemMultiAmounts(keys types.AccountKeys, amounts []types.Amount) CreateContractAccountItemMultiAmounts
func (CreateContractAccountItemMultiAmounts) IsValid ¶
func (it CreateContractAccountItemMultiAmounts) IsValid([]byte) error
func (CreateContractAccountItemMultiAmounts) Rebuild ¶
func (it CreateContractAccountItemMultiAmounts) Rebuild() CreateContractAccountItem
type CreateContractAccountItemProcessor ¶
type CreateContractAccountItemProcessor struct {
// contains filtered or unexported fields
}
func (*CreateContractAccountItemProcessor) Close ¶
func (opp *CreateContractAccountItemProcessor) Close()
func (*CreateContractAccountItemProcessor) PreProcess ¶
func (opp *CreateContractAccountItemProcessor) PreProcess( _ context.Context, _ base.Operation, getStateFunc base.GetStateFunc, ) error
func (*CreateContractAccountItemProcessor) Process ¶
func (opp *CreateContractAccountItemProcessor) Process( _ context.Context, _ base.Operation, _ base.GetStateFunc, ) ([]base.StateMergeValue, error)
type CreateContractAccountItemSingleAmount ¶
type CreateContractAccountItemSingleAmount struct {
BaseCreateContractAccountItem
}
func NewCreateContractAccountItemSingleAmount ¶
func NewCreateContractAccountItemSingleAmount(keys types.AccountKeys, amount types.Amount) CreateContractAccountItemSingleAmount
func (CreateContractAccountItemSingleAmount) IsValid ¶
func (it CreateContractAccountItemSingleAmount) IsValid([]byte) error
func (CreateContractAccountItemSingleAmount) Rebuild ¶
func (it CreateContractAccountItemSingleAmount) Rebuild() CreateContractAccountItem
type CreateContractAccountProcessor ¶
type CreateContractAccountProcessor struct { *base.BaseOperationProcessor // contains filtered or unexported fields }
func (*CreateContractAccountProcessor) Close ¶
func (opp *CreateContractAccountProcessor) Close() error
func (*CreateContractAccountProcessor) PreProcess ¶
func (opp *CreateContractAccountProcessor) PreProcess( ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc, ) (context.Context, base.OperationProcessReasonError, error)
func (*CreateContractAccountProcessor) Process ¶
func (opp *CreateContractAccountProcessor) Process( ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc) ( []base.StateMergeValue, base.OperationProcessReasonError, error, )
type OperationMarshaler ¶
type OperationMarshaler struct { common.BaseOperationJSONMarshaler extras.BaseOperationExtensionsJSONMarshaler }
type TestCreateContractAccountProcessor ¶
type TestCreateContractAccountProcessor struct { *test.BaseTestOperationProcessorWithItem[CreateContractAccount, CreateContractAccountItem] }
func NewTestCreateContractAccountProcessor ¶
func NewTestCreateContractAccountProcessor( tp *test.TestProcessor, ) TestCreateContractAccountProcessor
func (*TestCreateContractAccountProcessor) Create ¶
func (t *TestCreateContractAccountProcessor) Create() *TestCreateContractAccountProcessor
func (*TestCreateContractAccountProcessor) Decode ¶
func (t *TestCreateContractAccountProcessor) Decode(fileName string) *TestCreateContractAccountProcessor
func (*TestCreateContractAccountProcessor) IsValid ¶
func (t *TestCreateContractAccountProcessor) IsValid() *TestCreateContractAccountProcessor
func (*TestCreateContractAccountProcessor) LoadOperation ¶
func (t *TestCreateContractAccountProcessor) LoadOperation(fileName string) *TestCreateContractAccountProcessor
func (*TestCreateContractAccountProcessor) MakeItem ¶
func (t *TestCreateContractAccountProcessor) MakeItem( target test.Account, amounts []types.Amount, targetItems []CreateContractAccountItem, ) *TestCreateContractAccountProcessor
func (*TestCreateContractAccountProcessor) MakeOperation ¶
func (t *TestCreateContractAccountProcessor) MakeOperation( sender base.Address, privatekey base.Privatekey, items []CreateContractAccountItem, ) *TestCreateContractAccountProcessor
func (*TestCreateContractAccountProcessor) Print ¶
func (t *TestCreateContractAccountProcessor) Print(fileName string) *TestCreateContractAccountProcessor
func (*TestCreateContractAccountProcessor) RunPreProcess ¶
func (t *TestCreateContractAccountProcessor) RunPreProcess() *TestCreateContractAccountProcessor
func (*TestCreateContractAccountProcessor) RunProcess ¶
func (t *TestCreateContractAccountProcessor) RunProcess() *TestCreateContractAccountProcessor
func (*TestCreateContractAccountProcessor) SetAccount ¶
func (t *TestCreateContractAccountProcessor) SetAccount( priv string, amount int64, cid types.CurrencyID, target []test.Account, inState bool) *TestCreateContractAccountProcessor
func (*TestCreateContractAccountProcessor) SetAmount ¶
func (t *TestCreateContractAccountProcessor) SetAmount(am int64, cid types.CurrencyID, target []types.Amount) *TestCreateContractAccountProcessor
func (*TestCreateContractAccountProcessor) SetContractAccount ¶
func (t *TestCreateContractAccountProcessor) SetContractAccount( owner base.Address, priv string, amount int64, cid types.CurrencyID, target []test.Account, inState bool, ) *TestCreateContractAccountProcessor
func (*TestCreateContractAccountProcessor) SetCurrency ¶
func (t *TestCreateContractAccountProcessor) SetCurrency( cid string, am int64, addr base.Address, target []types.CurrencyID, instate bool) *TestCreateContractAccountProcessor
type TestUpdateHandlerProcessor ¶
type TestUpdateHandlerProcessor struct { *test.BaseTestOperationProcessorNoItem[UpdateHandler] }
func NewTestUpdateHandlerProcessor ¶
func NewTestUpdateHandlerProcessor( tp *test.TestProcessor, ) TestUpdateHandlerProcessor
func (*TestUpdateHandlerProcessor) Create ¶
func (t *TestUpdateHandlerProcessor) Create() *TestUpdateHandlerProcessor
func (*TestUpdateHandlerProcessor) Decode ¶
func (t *TestUpdateHandlerProcessor) Decode(fileName string) *TestUpdateHandlerProcessor
func (*TestUpdateHandlerProcessor) IsValid ¶
func (t *TestUpdateHandlerProcessor) IsValid() *TestUpdateHandlerProcessor
func (*TestUpdateHandlerProcessor) LoadOperation ¶
func (t *TestUpdateHandlerProcessor) LoadOperation(fileName string, ) *TestUpdateHandlerProcessor
func (*TestUpdateHandlerProcessor) MakeOperation ¶
func (t *TestUpdateHandlerProcessor) MakeOperation( sender base.Address, privatekey base.Privatekey, contract base.Address, handlers []test.Account, currency types.CurrencyID, ) *TestUpdateHandlerProcessor
func (*TestUpdateHandlerProcessor) Print ¶
func (t *TestUpdateHandlerProcessor) Print(fileName string, ) *TestUpdateHandlerProcessor
func (*TestUpdateHandlerProcessor) RunPreProcess ¶
func (t *TestUpdateHandlerProcessor) RunPreProcess() *TestUpdateHandlerProcessor
func (*TestUpdateHandlerProcessor) RunProcess ¶
func (t *TestUpdateHandlerProcessor) RunProcess() *TestUpdateHandlerProcessor
func (*TestUpdateHandlerProcessor) SetAccount ¶
func (t *TestUpdateHandlerProcessor) SetAccount( priv string, amount int64, cid types.CurrencyID, target []test.Account, inState bool, ) *TestUpdateHandlerProcessor
func (*TestUpdateHandlerProcessor) SetAmount ¶
func (t *TestUpdateHandlerProcessor) SetAmount( am int64, cid types.CurrencyID, target []types.Amount, ) *TestUpdateHandlerProcessor
func (*TestUpdateHandlerProcessor) SetContractAccount ¶
func (t *TestUpdateHandlerProcessor) SetContractAccount( owner base.Address, priv string, amount int64, cid types.CurrencyID, target []test.Account, inState bool, ) *TestUpdateHandlerProcessor
func (*TestUpdateHandlerProcessor) SetCurrency ¶
func (t *TestUpdateHandlerProcessor) SetCurrency( cid string, am int64, addr base.Address, target []types.CurrencyID, instate bool, ) *TestUpdateHandlerProcessor
type TestWithdrawProcessor ¶
type TestWithdrawProcessor struct { *test.BaseTestOperationProcessorWithItem[Withdraw, WithdrawItem] }
func NewTestWithdrawProcessor ¶
func NewTestWithdrawProcessor( tp *test.TestProcessor, ) TestWithdrawProcessor
func (*TestWithdrawProcessor) Create ¶
func (t *TestWithdrawProcessor) Create() *TestWithdrawProcessor
func (*TestWithdrawProcessor) Decode ¶
func (t *TestWithdrawProcessor) Decode(fileName string) *TestWithdrawProcessor
func (*TestWithdrawProcessor) IsValid ¶
func (t *TestWithdrawProcessor) IsValid() *TestWithdrawProcessor
func (*TestWithdrawProcessor) LoadOperation ¶
func (t *TestWithdrawProcessor) LoadOperation(fileName string) *TestWithdrawProcessor
func (*TestWithdrawProcessor) MakeItem ¶
func (t *TestWithdrawProcessor) MakeItem( target test.Account, amounts []types.Amount, targetItems []WithdrawItem, ) *TestWithdrawProcessor
func (*TestWithdrawProcessor) MakeOperation ¶
func (t *TestWithdrawProcessor) MakeOperation( sender base.Address, privatekey base.Privatekey, items []WithdrawItem, ) *TestWithdrawProcessor
func (*TestWithdrawProcessor) Print ¶
func (t *TestWithdrawProcessor) Print(fileName string) *TestWithdrawProcessor
func (*TestWithdrawProcessor) RunPreProcess ¶
func (t *TestWithdrawProcessor) RunPreProcess() *TestWithdrawProcessor
func (*TestWithdrawProcessor) RunProcess ¶
func (t *TestWithdrawProcessor) RunProcess() *TestWithdrawProcessor
func (*TestWithdrawProcessor) SetAccount ¶
func (t *TestWithdrawProcessor) SetAccount( priv string, amount int64, cid types.CurrencyID, target []test.Account, inState bool) *TestWithdrawProcessor
func (*TestWithdrawProcessor) SetAmount ¶
func (t *TestWithdrawProcessor) SetAmount(am int64, cid types.CurrencyID, target []types.Amount) *TestWithdrawProcessor
func (*TestWithdrawProcessor) SetContractAccount ¶
func (t *TestWithdrawProcessor) SetContractAccount( owner base.Address, priv string, amount int64, cid types.CurrencyID, target []test.Account, inState bool, ) *TestWithdrawProcessor
func (*TestWithdrawProcessor) SetCurrency ¶
func (t *TestWithdrawProcessor) SetCurrency( cid string, am int64, addr base.Address, target []types.CurrencyID, instate bool) *TestWithdrawProcessor
type UpdateHandler ¶
type UpdateHandler struct {
extras.ExtendedOperation
}
func NewUpdateHandler ¶
func NewUpdateHandler(fact UpdateHandlerFact) (UpdateHandler, error)
func (*UpdateHandler) DecodeBSON ¶
func (op *UpdateHandler) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*UpdateHandler) DecodeJSON ¶
func (op *UpdateHandler) DecodeJSON(b []byte, enc encoder.Encoder) error
func (UpdateHandler) MarshalBSON ¶
func (op UpdateHandler) MarshalBSON() ([]byte, error)
func (UpdateHandler) MarshalJSON ¶
func (op UpdateHandler) MarshalJSON() ([]byte, error)
func (UpdateHandler) Process ¶
func (UpdateHandler) Process( _ context.Context, _ base.GetStateFunc, ) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
type UpdateHandlerFact ¶
func NewUpdateHandlerFact ¶
func NewUpdateHandlerFact( token []byte, sender, contract base.Address, handlers []base.Address, currency types.CurrencyID, ) UpdateHandlerFact
func (UpdateHandlerFact) Addresses ¶
func (fact UpdateHandlerFact) Addresses() ([]base.Address, error)
func (UpdateHandlerFact) Bytes ¶
func (fact UpdateHandlerFact) Bytes() []byte
func (UpdateHandlerFact) Contract ¶
func (fact UpdateHandlerFact) Contract() base.Address
func (UpdateHandlerFact) ContractOwnerOnly ¶
func (fact UpdateHandlerFact) ContractOwnerOnly() [][2]base.Address
func (UpdateHandlerFact) Currency ¶
func (fact UpdateHandlerFact) Currency() types.CurrencyID
func (*UpdateHandlerFact) DecodeBSON ¶
func (fact *UpdateHandlerFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*UpdateHandlerFact) DecodeJSON ¶
func (fact *UpdateHandlerFact) DecodeJSON(b []byte, enc encoder.Encoder) error
func (UpdateHandlerFact) FactUser ¶
func (fact UpdateHandlerFact) FactUser() base.Address
func (UpdateHandlerFact) FeeBase ¶
func (fact UpdateHandlerFact) FeeBase() map[types.CurrencyID][]common.Big
func (UpdateHandlerFact) FeePayer ¶
func (fact UpdateHandlerFact) FeePayer() base.Address
func (UpdateHandlerFact) GenerateHash ¶
func (fact UpdateHandlerFact) GenerateHash() util.Hash
func (UpdateHandlerFact) Handlers ¶
func (fact UpdateHandlerFact) Handlers() []base.Address
func (UpdateHandlerFact) Hash ¶
func (fact UpdateHandlerFact) Hash() util.Hash
func (UpdateHandlerFact) IsValid ¶
func (fact UpdateHandlerFact) IsValid(b []byte) error
func (UpdateHandlerFact) MarshalBSON ¶
func (fact UpdateHandlerFact) MarshalBSON() ([]byte, error)
func (UpdateHandlerFact) MarshalJSON ¶
func (fact UpdateHandlerFact) MarshalJSON() ([]byte, error)
func (UpdateHandlerFact) Sender ¶
func (fact UpdateHandlerFact) Sender() base.Address
func (UpdateHandlerFact) Signer ¶
func (fact UpdateHandlerFact) Signer() base.Address
func (UpdateHandlerFact) Token ¶
func (fact UpdateHandlerFact) Token() base.Token
type UpdateHandlerFactJSONMarshaler ¶
type UpdateHandlerFactJSONMarshaler struct { base.BaseFactJSONMarshaler Sender base.Address `json:"sender"` Contract base.Address `json:"contract"` Handlers []base.Address `json:"handlers"` Currency types.CurrencyID `json:"currency"` }
type UpdateHandlerProcessor ¶
type UpdateHandlerProcessor struct { *base.BaseOperationProcessor // contains filtered or unexported fields }
func (*UpdateHandlerProcessor) Close ¶
func (opp *UpdateHandlerProcessor) Close() error
func (*UpdateHandlerProcessor) PreProcess ¶
func (opp *UpdateHandlerProcessor) PreProcess( ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc, ) (context.Context, base.OperationProcessReasonError, error)
func (*UpdateHandlerProcessor) Process ¶
func (opp *UpdateHandlerProcessor) Process( _ context.Context, op base.Operation, getStateFunc base.GetStateFunc) ( []base.StateMergeValue, base.OperationProcessReasonError, error, )
type UpdateRecipient ¶
type UpdateRecipient struct {
extras.ExtendedOperation
}
func NewUpdateRecipient ¶
func NewUpdateRecipient(fact UpdateRecipientFact) (UpdateRecipient, error)
func (*UpdateRecipient) DecodeBSON ¶
func (op *UpdateRecipient) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*UpdateRecipient) DecodeJSON ¶
func (op *UpdateRecipient) DecodeJSON(b []byte, enc encoder.Encoder) error
func (UpdateRecipient) MarshalBSON ¶
func (op UpdateRecipient) MarshalBSON() ([]byte, error)
func (UpdateRecipient) MarshalJSON ¶
func (op UpdateRecipient) MarshalJSON() ([]byte, error)
func (UpdateRecipient) Process ¶
func (UpdateRecipient) Process( _ context.Context, _ base.GetStateFunc, ) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
type UpdateRecipientFact ¶
func NewUpdateRecipientFact ¶
func NewUpdateRecipientFact( token []byte, sender, contract base.Address, recipients []base.Address, currency types.CurrencyID, ) UpdateRecipientFact
func (UpdateRecipientFact) Addresses ¶
func (fact UpdateRecipientFact) Addresses() ([]base.Address, error)
func (UpdateRecipientFact) Bytes ¶
func (fact UpdateRecipientFact) Bytes() []byte
func (UpdateRecipientFact) Contract ¶
func (fact UpdateRecipientFact) Contract() base.Address
func (UpdateRecipientFact) ContractOwnerOnly ¶
func (fact UpdateRecipientFact) ContractOwnerOnly() [][2]base.Address
func (UpdateRecipientFact) Currency ¶
func (fact UpdateRecipientFact) Currency() types.CurrencyID
func (*UpdateRecipientFact) DecodeBSON ¶
func (fact *UpdateRecipientFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*UpdateRecipientFact) DecodeJSON ¶
func (fact *UpdateRecipientFact) DecodeJSON(b []byte, enc encoder.Encoder) error
func (UpdateRecipientFact) FactUser ¶
func (fact UpdateRecipientFact) FactUser() base.Address
func (UpdateRecipientFact) FeeBase ¶
func (fact UpdateRecipientFact) FeeBase() map[types.CurrencyID][]common.Big
func (UpdateRecipientFact) FeePayer ¶
func (fact UpdateRecipientFact) FeePayer() base.Address
func (UpdateRecipientFact) GenerateHash ¶
func (fact UpdateRecipientFact) GenerateHash() util.Hash
func (UpdateRecipientFact) Hash ¶
func (fact UpdateRecipientFact) Hash() util.Hash
func (UpdateRecipientFact) IsValid ¶
func (fact UpdateRecipientFact) IsValid(b []byte) error
func (UpdateRecipientFact) MarshalBSON ¶
func (fact UpdateRecipientFact) MarshalBSON() ([]byte, error)
func (UpdateRecipientFact) MarshalJSON ¶
func (fact UpdateRecipientFact) MarshalJSON() ([]byte, error)
func (UpdateRecipientFact) Recipients ¶
func (fact UpdateRecipientFact) Recipients() []base.Address
func (UpdateRecipientFact) Sender ¶
func (fact UpdateRecipientFact) Sender() base.Address
func (UpdateRecipientFact) Signer ¶
func (fact UpdateRecipientFact) Signer() base.Address
func (UpdateRecipientFact) Token ¶
func (fact UpdateRecipientFact) Token() base.Token
type UpdateRecipientProcessor ¶
type UpdateRecipientProcessor struct { *base.BaseOperationProcessor // contains filtered or unexported fields }
func (*UpdateRecipientProcessor) Close ¶
func (opp *UpdateRecipientProcessor) Close() error
func (*UpdateRecipientProcessor) PreProcess ¶
func (opp *UpdateRecipientProcessor) PreProcess( ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc, ) (context.Context, base.OperationProcessReasonError, error)
func (*UpdateRecipientProcessor) Process ¶
func (opp *UpdateRecipientProcessor) Process( _ context.Context, op base.Operation, getStateFunc base.GetStateFunc) ( []base.StateMergeValue, base.OperationProcessReasonError, error, )
type UpdateRecipientsFactJSONMarshaler ¶
type UpdateRecipientsFactJSONMarshaler struct { base.BaseFactJSONMarshaler Sender base.Address `json:"sender"` Contract base.Address `json:"contract"` Recipients []base.Address `json:"recipients"` Currency types.CurrencyID `json:"currency"` }
type Withdraw ¶
type Withdraw struct {
extras.ExtendedOperation
}
func NewWithdraw ¶
func NewWithdraw(fact WithdrawFact) (Withdraw, error)
func (Withdraw) MarshalBSON ¶
func (Withdraw) MarshalJSON ¶
func (Withdraw) Process ¶
func (Withdraw) Process( _ context.Context, _ base.GetStateFunc, ) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
type WithdrawFact ¶
func NewWithdrawFact ¶
func NewWithdrawFact(token []byte, sender base.Address, items []WithdrawItem) WithdrawFact
func (WithdrawFact) Bytes ¶
func (fact WithdrawFact) Bytes() []byte
func (WithdrawFact) ContractOwnerOnly ¶
func (fact WithdrawFact) ContractOwnerOnly() [][2]base.Address
func (*WithdrawFact) DecodeBSON ¶
func (fact *WithdrawFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*WithdrawFact) DecodeJSON ¶
func (fact *WithdrawFact) DecodeJSON(b []byte, enc encoder.Encoder) error
func (WithdrawFact) FactUser ¶
func (fact WithdrawFact) FactUser() base.Address
func (WithdrawFact) FeeBase ¶
func (fact WithdrawFact) FeeBase() map[types.CurrencyID][]common.Big
func (WithdrawFact) FeePayer ¶
func (fact WithdrawFact) FeePayer() base.Address
func (WithdrawFact) GenerateHash ¶
func (fact WithdrawFact) GenerateHash() util.Hash
func (WithdrawFact) Hash ¶
func (fact WithdrawFact) Hash() util.Hash
func (WithdrawFact) IsValid ¶
func (fact WithdrawFact) IsValid(b []byte) error
func (WithdrawFact) Items ¶
func (fact WithdrawFact) Items() []WithdrawItem
func (WithdrawFact) MarshalBSON ¶
func (fact WithdrawFact) MarshalBSON() ([]byte, error)
func (WithdrawFact) MarshalJSON ¶
func (fact WithdrawFact) MarshalJSON() ([]byte, error)
func (WithdrawFact) Rebuild ¶
func (fact WithdrawFact) Rebuild() WithdrawFact
func (WithdrawFact) Sender ¶
func (fact WithdrawFact) Sender() base.Address
func (WithdrawFact) Signer ¶
func (fact WithdrawFact) Signer() base.Address
func (WithdrawFact) Token ¶
func (fact WithdrawFact) Token() base.Token
type WithdrawFactJSONMarshaler ¶
type WithdrawFactJSONMarshaler struct { base.BaseFactJSONMarshaler Sender base.Address `json:"sender"` Items []WithdrawItem `json:"items"` }
type WithdrawFactJSONUnmarshaler ¶
type WithdrawFactJSONUnmarshaler struct { base.BaseFactJSONUnmarshaler Sender string `json:"sender"` Items json.RawMessage `json:"items"` }
type WithdrawItem ¶
type WithdrawItem interface { hint.Hinter util.IsValider currency.AmountsItem Bytes() []byte Target() base.Address Rebuild() WithdrawItem }
type WithdrawItemMultiAmounts ¶
type WithdrawItemMultiAmounts struct {
BaseWithdrawItem
}
func NewWithdrawItemMultiAmounts ¶
func NewWithdrawItemMultiAmounts(target base.Address, amounts []types.Amount) WithdrawItemMultiAmounts
func (WithdrawItemMultiAmounts) IsValid ¶
func (it WithdrawItemMultiAmounts) IsValid([]byte) error
func (WithdrawItemMultiAmounts) Rebuild ¶
func (it WithdrawItemMultiAmounts) Rebuild() WithdrawItem
type WithdrawItemProcessor ¶
type WithdrawItemProcessor struct {
// contains filtered or unexported fields
}
func (*WithdrawItemProcessor) Close ¶
func (opp *WithdrawItemProcessor) Close()
func (*WithdrawItemProcessor) PreProcess ¶
func (opp *WithdrawItemProcessor) PreProcess( _ context.Context, _ base.Operation, getStateFunc base.GetStateFunc, ) error
func (*WithdrawItemProcessor) Process ¶
func (opp *WithdrawItemProcessor) Process( _ context.Context, _ base.Operation, _ base.GetStateFunc, ) ([]base.StateMergeValue, error)
type WithdrawItemSingleAmount ¶
type WithdrawItemSingleAmount struct {
BaseWithdrawItem
}
func NewWithdrawItemSingleAmount ¶
func NewWithdrawItemSingleAmount(target base.Address, amount types.Amount) WithdrawItemSingleAmount
func (WithdrawItemSingleAmount) IsValid ¶
func (it WithdrawItemSingleAmount) IsValid([]byte) error
func (WithdrawItemSingleAmount) Rebuild ¶
func (it WithdrawItemSingleAmount) Rebuild() WithdrawItem
type WithdrawProcessor ¶
type WithdrawProcessor struct { *base.BaseOperationProcessor // contains filtered or unexported fields }
func (*WithdrawProcessor) Close ¶
func (opp *WithdrawProcessor) Close() error
func (*WithdrawProcessor) PreProcess ¶
func (opp *WithdrawProcessor) PreProcess( ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc, ) (context.Context, base.OperationProcessReasonError, error)
func (*WithdrawProcessor) Process ¶
func (opp *WithdrawProcessor) Process( ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc) ( []base.StateMergeValue, base.OperationProcessReasonError, error, )
Source Files
¶
- create_contract_account.go
- create_contract_account_bson.go
- create_contract_account_encode.go
- create_contract_account_item.go
- create_contract_account_item_bson.go
- create_contract_account_item_encode.go
- create_contract_account_item_json.go
- create_contract_account_json.go
- create_contract_account_multi_amounts.go
- create_contract_account_process.go
- create_contract_account_single_amount.go
- test_create_contract_account.go
- test_update_handler.go
- test_withdraw.go
- update_handler.go
- update_handler_bson.go
- update_handler_encode.go
- update_handler_json.go
- update_handler_process.go
- update_recipient.go
- update_recipient_bson.go
- update_recipient_encode.go
- update_recipient_json.go
- update_recipient_process.go
- withdraw.go
- withdraw_bson.go
- withdraw_encode.go
- withdraw_item.go
- withdraw_item_bson.go
- withdraw_item_encode.go
- withdraw_item_json.go
- withdraw_json.go
- withdraw_multi_amounts.go
- withdraw_process.go
- withdraw_single_amount.go
Click to show internal directories.
Click to hide internal directories.