sui_json_rpc_types

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorityQuorumSignInfo

type AuthorityQuorumSignInfo struct {
	Epoch      uint64   `json:"epoch,omitempty"`
	Signature  []string `json:"signature,omitempty"`
	SignersMap []uint64 `json:"signers_map,omitempty"`
}

type Call

type Call struct {
	Package       sui_types.SuiObjectRef `json:"package"`
	Module        string                 `json:"module"`
	Function      string                 `json:"function"`
	TypeArguments []interface{}          `json:"typeArguments"`
	Arguments     []interface{}          `json:"arguments"`
}

type ChangeEpoch

type ChangeEpoch struct {
	Epoch             uint64 `json:"epoch"`
	StorageCharge     uint64 `json:"storageCharge"`
	ComputationCharge uint64 `json:"computationCharge"`
}

type MoveEvent

type MoveEvent struct {
	PackageID string `json:"packageID,omitempty"`
}

type OwnedObjectRef

type OwnedObjectRef struct {
	Owner     sui_types.Owner        `json:"owner,omitempty"`
	Reference sui_types.SuiObjectRef `json:"reference,omitempty"`
}

type Publish

type Publish struct {
	Modules [][]byte `json:"modules,omitempty"`
}

type SuiCertifiedTransaction

type SuiCertifiedTransaction struct {
	TransactionDigest string                  `json:"transactionDigest,omitempty"`
	Data              SuiTransactionData      `json:"data,omitempty"`
	TxSignature       string                  `json:"txSignature,omitempty"`
	AuthSignInfo      AuthorityQuorumSignInfo `json:"authSignInfo,omitempty"`
}

type SuiEvent

type SuiEvent struct {
	MoveEvent MoveEvent `json:"moveEvent,omitempty"`
	Publish   Publish   `json:"publish,omitempty"`
}

type SuiEventEnvelop

type SuiEventEnvelop struct {
	Timestamp uint64 `json:"timestamp"`
	TxDigest  string `json:"txDigest,omitempty"`
	SuiEvent
}

type SuiExecutionStatus

type SuiExecutionStatus struct {
	Status string `json:"status"`
}

type SuiGasCostSummary

type SuiGasCostSummary struct {
	ComputationCost uint64 `json:"computationCost"`
	StorageCost     uint64 `json:"storageCost"`
	StorageRebate   uint64 `json:"storageRebate"`
}

type SuiMoveModuleId

type SuiMoveModuleId struct {
	Address string `json:"address"`
	Name    string `json:"name"`
}

type SuiMoveNormalizedFunction

type SuiMoveNormalizedFunction struct {
	Visibility interface{}   `json:"visibility"`
	IsEntry    bool          `json:"isEntry"`
	Parameters []interface{} `json:"parameters"`
	Return_    []interface{} `json:"return_"`
}

type SuiMoveNormalizedModule

type SuiMoveNormalizedModule struct {
	FileFormatVersion uint32                 `json:"fileFormatVersion"`
	Address           string                 `json:"address"`
	Name              string                 `json:"name"`
	Friends           []SuiMoveModuleId      `json:"friends"`
	Structs           map[string]interface{} `json:"structs"`
	ExposedFunctions  map[string]interface{} `json:"exposedFunctions"`
}

type SuiMoveNormalizedStruct

type SuiMoveNormalizedStruct struct {
	Abilities      interface{}   `json:"abilities"`
	TypeParameters []interface{} `json:"typeParameters"`
	Fields         []interface{} `json:"fields"`
}

type SuiObjectInfo

type SuiObjectInfo struct {
	OwnedObjectRef `json:"owner"`
}

type SuiParsedMergeCoinResponse

type SuiParsedMergeCoinResponse struct {
}

type SuiParsedMoveObject

type SuiParsedMoveObject struct {
	DataType          string                 `json:"dataType"`
	Type              string                 `json:"type"`
	HasPublicTransfer bool                   `json:"has_public_transfer"`
	Fields            map[string]interface{} `json:"fields"`
	BcsBytes          []byte                 `json:"bcs_bytes,omitempty"`
}

type SuiParsedPublishResponse

type SuiParsedPublishResponse struct {
	Package sui_types.SuiObjectRef `json:"package"`
}

type SuiParsedSplitCoinResponse

type SuiParsedSplitCoinResponse struct {
}

type SuiParsedTransactionResponse

type SuiParsedTransactionResponse struct {
	Publish   SuiParsedPublishResponse   `json:"publish,omitempty"`
	MergeCoin SuiParsedMergeCoinResponse `json:"mergeCoin,omitempty"`
	SplitCoin SuiParsedSplitCoinResponse `json:"splitCoin,omitempty"`
}

type SuiTransactionData

type SuiTransactionData struct {
	Transactions []SuiTransactionKind   `json:"transactions,omitempty"`
	Sender       string                 `json:"sender,omitempty"`
	GasPayment   sui_types.SuiObjectRef `json:"gasPayment,omitempty"`
	GasBudget    uint64                 `json:"gasBudget,omitempty"`
}

type SuiTransactionEffects

type SuiTransactionEffects struct {
	Status            SuiExecutionStatus       `json:"status"`
	GasUsed           SuiGasCostSummary        `json:"gasUsed"`
	ShareObjects      []sui_types.SuiObjectRef `json:"shareObjects,omitempty"`
	TransactionDigest string                   `json:"transactionDigest"`
	Created           []OwnedObjectRef         `json:"created,omitempty"`
	Mutated           []OwnedObjectRef         `json:"mutated,omitempty"`
	Unwrapped         []OwnedObjectRef         `json:"unwrapped,omitempty"`
	Deleted           []sui_types.SuiObjectRef `json:"deleted,omitempty"`
	Wrapped           []sui_types.SuiObjectRef `json:"wrapped,omitempty"`
	GasObject         OwnedObjectRef           `json:"gasObject,omitempty"`
	Events            []SuiEvent               `json:"events,omitempty"`
	Dependencies      []string                 `json:"dependencies,omitempty"`
}

type SuiTransactionKind

type SuiTransactionKind struct {
	TransferObject TransferObject `json:"transferObject,omitempty"`
	Publish        Publish        `json:"publish,omitempty"`
	Call           Call           `json:"call,omitempty"`
	TransferSui    TransferSui    `json:"transferSui,omitempty"`
	ChangeEpoch    ChangeEpoch    `json:"changeEpoch,omitempty"`
}

type TransferObject

type TransferObject struct {
	Recipient string                 `json:"recipient,omitempty"`
	ObjectRef sui_types.SuiObjectRef `json:"objectRef,omitempty"`
}

type TransferSui

type TransferSui struct {
	Recipient string `json:"recipient,omitempty"`
	Amount    uint64 `json:"amount,omitempty"`
}

Jump to

Keyboard shortcuts

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