Documentation ¶
Index ¶
- type StateDataProvider
- type StateUpdateMessageMaker
- func (m *StateUpdateMessageMaker) GISTUpdateMsgByBlock(ctx context.Context, block *big.Int) (*oracletypes.MsgCreateIdentityGISTTransferOp, error)
- func (m *StateUpdateMessageMaker) GISTUpdateMsgByGISTs(_ context.Context, latestGIST, replacedGIST statebind.IStateGistRootInfo) (*oracletypes.MsgCreateIdentityGISTTransferOp, error)
- func (m *StateUpdateMessageMaker) GISTUpdateMsgByHashes(ctx context.Context, latestGISTHash, replacedGISTHash string) (*oracletypes.MsgCreateIdentityGISTTransferOp, error)
- func (m *StateUpdateMessageMaker) StateUpdateMsgByBlock(ctx context.Context, issuer, block *big.Int) (*oracletypes.MsgCreateIdentityStateTransferOp, error)
- func (m *StateUpdateMessageMaker) StateUpdateMsgByHashes(ctx context.Context, issuer, latestStateHash, replacedStateHash string) (*oracletypes.MsgCreateIdentityStateTransferOp, error)
- func (m *StateUpdateMessageMaker) StateUpdateMsgByStates(_ context.Context, latestState, replacedState statebind.IStateStateInfo) (*oracletypes.MsgCreateIdentityStateTransferOp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateDataProvider ¶
type StateDataProvider interface { GetStateInfoByIdAndState(opts *bind.CallOpts, id *big.Int, state *big.Int) (statebind.IStateStateInfo, error) GetGISTRootInfo(opts *bind.CallOpts, root *big.Int) (statebind.IStateGistRootInfo, error) GetStateInfoHistoryLengthById(opts *bind.CallOpts, id *big.Int) (*big.Int, error) GetStateInfoHistoryById(opts *bind.CallOpts, id *big.Int, startIndex *big.Int, length *big.Int) ([]statebind.IStateStateInfo, error) GetGISTRootHistory(opts *bind.CallOpts, start *big.Int, length *big.Int) ([]statebind.IStateGistRootInfo, error) GetGISTRootHistoryLength(opts *bind.CallOpts) (*big.Int, error) }
type StateUpdateMessageMaker ¶
type StateUpdateMessageMaker struct {
// contains filtered or unexported fields
}
func NewStateUpdateMessageMaker ¶
func NewStateUpdateMessageMaker(txCreatorAddr string, contract string, homeChain string, statesPerRequest int64, stateDataProvider StateDataProvider) *StateUpdateMessageMaker
func (*StateUpdateMessageMaker) GISTUpdateMsgByBlock ¶ added in v1.0.7
func (m *StateUpdateMessageMaker) GISTUpdateMsgByBlock(ctx context.Context, block *big.Int) (*oracletypes.MsgCreateIdentityGISTTransferOp, error)
func (*StateUpdateMessageMaker) GISTUpdateMsgByGISTs ¶ added in v1.0.7
func (m *StateUpdateMessageMaker) GISTUpdateMsgByGISTs(_ context.Context, latestGIST, replacedGIST statebind.IStateGistRootInfo) (*oracletypes.MsgCreateIdentityGISTTransferOp, error)
func (*StateUpdateMessageMaker) GISTUpdateMsgByHashes ¶ added in v1.0.7
func (m *StateUpdateMessageMaker) GISTUpdateMsgByHashes(ctx context.Context, latestGISTHash, replacedGISTHash string) (*oracletypes.MsgCreateIdentityGISTTransferOp, error)
func (*StateUpdateMessageMaker) StateUpdateMsgByBlock ¶
func (m *StateUpdateMessageMaker) StateUpdateMsgByBlock(ctx context.Context, issuer, block *big.Int) (*oracletypes.MsgCreateIdentityStateTransferOp, error)
func (*StateUpdateMessageMaker) StateUpdateMsgByHashes ¶
func (m *StateUpdateMessageMaker) StateUpdateMsgByHashes(ctx context.Context, issuer, latestStateHash, replacedStateHash string) (*oracletypes.MsgCreateIdentityStateTransferOp, error)
func (*StateUpdateMessageMaker) StateUpdateMsgByStates ¶
func (m *StateUpdateMessageMaker) StateUpdateMsgByStates(_ context.Context, latestState, replacedState statebind.IStateStateInfo) (*oracletypes.MsgCreateIdentityStateTransferOp, error)
Click to show internal directories.
Click to hide internal directories.