types

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChainType          = "sui"
	XcallContract      = "xcall"
	ConnectionContract = "connection"

	InvalidEventError = "invalid_event_err"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CallMsgEvent

type CallMsgEvent struct {
	Sn              string         `json:"sn"`
	From            NetworkAddress `json:"from"`
	ReqId           string         `json:"req_id"`
	Data            []byte         `json:"data"`
	DappModuleCapId string         `json:"to"`
}

type CheckpointResponse

type CheckpointResponse struct {
	Epoch                      string                     `json:"epoch"`
	SequenceNumber             string                     `json:"sequenceNumber"`
	Digest                     string                     `json:"digest"`
	NetworkTotalTransactions   string                     `json:"networkTotalTransactions"`
	PreviousDigest             string                     `json:"previousDigest"`
	EpochRollingGasCostSummary EpochRollingGasCostSummary `json:"epochRollingGasCostSummary"`
	TimestampMs                string                     `json:"timestampMs"`
	Transactions               []string                   `json:"transactions"`
	CheckpointCommitments      []interface{}              `json:"checkpointCommitments"`
	ValidatorSignature         string                     `json:"validatorSignature"`
}

type EmitEvent

type EmitEvent struct {
	Sn           string `json:"conn_sn"`
	Msg          []byte `json:"msg"`
	To           string `json:"to"`
	ConnectionID string `json:"connection_id"`
}

type EpochRollingGasCostSummary

type EpochRollingGasCostSummary struct {
	ComputationCost         string `json:"computationCost"`
	StorageCost             string `json:"storageCost"`
	StorageRebate           string `json:"storageRebate"`
	NonRefundableStorageFee string `json:"nonRefundableStorageFee"`
}

type EventResponse

type EventResponse struct {
	cctypes.SuiEvent
	Checkpoint *cctypes.SafeSuiBigInt[uint64]
}

type NetworkAddress

type NetworkAddress struct {
	Addr  string `json:"addr"`
	NetID string `json:"net_id"`
}

type RollbackMsgEvent

type RollbackMsgEvent struct {
	Sn              string `json:"sn"`
	Data            []byte `json:"data"`
	DappModuleCapId string `json:"dapp"`
}

type SuiMethod

type SuiMethod string

func (SuiMethod) String

func (sm SuiMethod) String() string

type TxInfo

type TxInfo struct {
	TxDigest string `json:"tx_digest"`
}

func (*TxInfo) Deserialize

func (txi *TxInfo) Deserialize(bytesVal []byte) error

func (*TxInfo) Serialize

func (txi *TxInfo) Serialize() ([]byte, error)

Jump to

Keyboard shortcuts

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