rarimo

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 (*StateUpdateMessageMaker) GISTUpdateMsgByGISTs added in v1.0.7

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)

Jump to

Keyboard shortcuts

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