types

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: GPL-2.0, GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Balance

type Balance struct {
	CoinObjectCount int               `json:"coinObjectCount"`
	CoinType        string            `json:"coinType"`
	LockedBalance   map[string]string `json:"lockedBalance"`
	TotalBalance    string            `json:"totalBalance"`
}

type BalanceChange

type BalanceChange struct {
	Owner    ObjectOwnerWrapper `json:"owner"`
	CoinType string             `json:"coinType"`
	Amount   string             `json:"amount"`
}

type Checkpoint

type Checkpoint struct {
	Epoch                      string                 `json:"epoch"`
	SequenceNumber             string                 `json:"sequenceNumber"`
	Digest                     string                 `json:"digest"`
	NetworkTotalTransactions   string                 `json:"networkTotalTransactions"`
	PreviousDigest             string                 `json:"previousDigest,omitempty"`
	EpochRollingGasCostSummary GasCostSummary         `json:"epochRollingGasCostSummary"`
	TimestampMs                string                 `json:"timestampMs"`
	EndOfEpochData             *EndOfEpochData        `json:"endOfEpochData,omitempty"`
	Transactions               []string               `json:"transactions"`
	CheckpointCommitments      []CheckpointCommitment `json:"checkpointCommitments"`
	ValidatorSignature         string                 `json:"validatorSignature"`
}

type CheckpointCommitment

type CheckpointCommitment struct {
	ECMHLiveObjectSetDigest ECMHLiveObjectSetDigest `json:"ecmhLiveObjectSetDigest"`
}

type CheckpointId

type CheckpointId string

type CheckpointPage

type CheckpointPage struct {
	Data        []Checkpoint `json:"data"`
	NextCursor  *string      `json:"nextCursor,omitempty"`
	HasNextPage bool         `json:"hasNextPage"`
}

type Claim added in v0.0.25

type Claim struct {
	IndexMod4 uint64 `json:"indexMod4"`
	Value     string `json:"value"`
}

type CoinMetadata

type CoinMetadata struct {
	Decimals    uint8  `json:"decimals"`
	Description string `json:"description"`
	IconUrl     string `json:"iconUrl,omitempty"`
	ID          string `json:"id,omitempty"`
	Name        string `json:"name"`
	Symbol      string `json:"symbol"`
}

type CoinStruct

type CoinStruct struct {
	Balance             string `json:"balance"`
	CoinObjectId        string `json:"coinObjectId"`
	CoinType            string `json:"coinType"`
	Digest              string `json:"digest"`
	PreviousTransaction string `json:"previousTransaction"`
	Version             string `json:"version"`
}

type CoinSupply

type CoinSupply struct {
	Value string `json:"value"`
}

type CommitteeInfo

type CommitteeInfo struct {
	Epoch      string      `json:"epoch"`
	Validators [][2]string `json:"validators"`
}

type CompressedSignature added in v0.0.25

type CompressedSignature interface {
	// contains filtered or unexported methods
}

--------------CompressedSignature--------------

type CompressedSignatureEd25519 added in v0.0.25

type CompressedSignatureEd25519 struct {
	Ed25519 string `json:"Ed25519"`
}

type CompressedSignatureSecp256k1 added in v0.0.25

type CompressedSignatureSecp256k1 struct {
	Secp256k1 string `json:"Secp256k1"`
}

type CompressedSignatureSecp256r1 added in v0.0.25

type CompressedSignatureSecp256r1 struct {
	Secp256r1 string `json:"Secp256r1"`
}

type CompressedSignatureWrapper added in v0.0.25

type CompressedSignatureWrapper struct {
	CompressedSignature
}

func (*CompressedSignatureWrapper) MarshalJSON added in v0.0.25

func (w *CompressedSignatureWrapper) MarshalJSON() ([]byte, error)

func (*CompressedSignatureWrapper) UnmarshalJSON added in v0.0.25

func (w *CompressedSignatureWrapper) UnmarshalJSON(data []byte) error

type ConsensusDeterminedVersionAssignments added in v0.0.25

type ConsensusDeterminedVersionAssignments struct {
	CancelledTransactions []interface{} `json:"CancelledTransactions"`
}

type DelegatedStake

type DelegatedStake struct {
	ValidatorAddress string               `json:"validatorAddress"`
	StakingPool      string               `json:"stakingPool"`
	Stakes           []StakeObjectWrapper `json:"stakes"`
}

type DevInspectResults

type DevInspectResults struct {
	Effects TransactionEffects   `json:"effects"`
	Error   string               `json:"error,omitempty"`
	Events  []SuiEvent           `json:"events"`
	Results []SuiExecutionResult `json:"results,omitempty"`
}

type DevInspectTransactionBlockParams

type DevInspectTransactionBlockParams struct {
	Sender           string      `json:"sender"`
	TransactionBlock interface{} `json:"transactionBlock"`
	GasPrice         *uint64     `json:"gasPrice,omitempty"`
	Epoch            *string     `json:"epoch,omitempty"`
}

type DisplayFieldsResponse

type DisplayFieldsResponse struct {
	Data  map[string]*string          `json:"data"`
	Error *ObjectResponseErrorWrapper `json:"error"`
}

type DryRunTransactionBlockParams

type DryRunTransactionBlockParams struct {
	TransactionBlock interface{} `json:"transactionBlock"`
}

type DryRunTransactionBlockResponse

type DryRunTransactionBlockResponse struct {
	Effects        TransactionEffects       `json:"effects"`
	Events         []SuiEvent               `json:"events"`
	ObjectChanges  []SuiObjectChangeWrapper `json:"objectChanges"`
	BalanceChanges []BalanceChange          `json:"balanceChanges"`
	Input          TransactionBlockData     `json:"input"`
}

type DynamicFieldInfo

type DynamicFieldInfo struct {
	Name       DynamicFieldName `json:"name"`
	BcsName    string           `json:"bcsName"`
	Type       DynamicFieldType `json:"type"`
	ObjectType string           `json:"objectType"`
	ObjectId   string           `json:"objectId"`
	Version    int64            `json:"version"`
	Digest     string           `json:"digest"`
}

type DynamicFieldName

type DynamicFieldName struct {
	Type  string      `json:"type"`
	Value interface{} `json:"value"`
}

type DynamicFieldPage

type DynamicFieldPage struct {
	Data        []DynamicFieldInfo `json:"data"`
	NextCursor  *string            `json:"nextCursor,omitempty"`
	HasNextPage bool               `json:"hasNextPage"`
}

type DynamicFieldType

type DynamicFieldType string
var (
	DynamicField  DynamicFieldType = "DynamicField"
	DynamicObject DynamicFieldType = "DynamicObject"
)

type ECMHLiveObjectSetDigest

type ECMHLiveObjectSetDigest struct {
	Digest []int `json:"digest"` // TODO: bytes?
}

type EndOfEpochData

type EndOfEpochData struct {
	EpochCommitments         []CheckpointCommitment `json:"epochCommitments"`
	NextEpochCommittee       [][2]string            `json:"nextEpochCommittee"`
	NextEpochProtocolVersion string                 `json:"nextEpochProtocolVersion"`
}

type EndOfEpochInfo added in v0.0.25

type EndOfEpochInfo struct {
	LastCheckpointId             string `json:"lastCheckpointId"`
	EpochEndTimestamp            string `json:"epochEndTimestamp"`
	ProtocolVersion              string `json:"protocolVersion"`
	ReferenceGasPrice            string `json:"referenceGasPrice"`
	TotalStake                   string `json:"totalStake"`
	StorageFundReinvestment      string `json:"storageFundReinvestment"`
	StorageCharge                string `json:"storageCharge"`
	StorageRebate                string `json:"storageRebate"`
	StorageFundBalance           string `json:"storageFundBalance"`
	StakeSubsidyAmount           string `json:"stakeSubsidyAmount"`
	TotalGasFees                 string `json:"totalGasFees"`
	TotalStakeRewardsDistributed string `json:"totalStakeRewardsDistributed"`
	LeftoverStorageFundInflow    string `json:"leftoverStorageFundInflow"`
}

type EpochInfo added in v0.0.25

type EpochInfo struct {
	Epoch                  string                `json:"epoch"`
	Validators             []SuiValidatorSummary `json:"validators"`
	EpochTotalTransactions string                `json:"epochTotalTransactions"`
	FirstCheckpointId      string                `json:"firstCheckpointId"`
	EpochStartTimestamp    string                `json:"epochStartTimestamp"`
	EndOfEpochInfo         *EndOfEpochInfo       `json:"endOfEpochInfo"`
	ReferenceGasPrice      *uint64               `json:"referenceGasPrice"`
}

type EpochPage added in v0.0.25

type EpochPage struct {
	Data        []EpochInfo `json:"data"`
	NextCursor  string      `json:"nextCursor,omitempty"`
	HasNextPage bool        `json:"hasNextPage"`
}

type EventId

type EventId struct {
	TxDigest string `json:"txDigest"`
	EventSeq string `json:"eventSeq"`
}

type ExecuteTransactionBlockParams

type ExecuteTransactionBlockParams struct {
	TransactionBlock []byte                              `json:"transactionBlock"`
	Signature        []string                            `json:"signature"`
	Options          *SuiTransactionBlockResponseOptions `json:"options,omitempty"`
	RequestType      *ExecuteTransactionRequestType      `json:"requestType,omitempty"`
}

type ExecuteTransactionRequestType

type ExecuteTransactionRequestType string
var (
	WaitForEffectsCert    ExecuteTransactionRequestType = "WaitForEffectsCert"
	WaitForLocalExecution ExecuteTransactionRequestType = "WaitForLocalExecution"
)

type ExecutionStatus

type ExecutionStatus struct {
	Status string `json:"status"`
	Error  string `json:"error,omitempty"`
}

type GasCostSummary

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

type GetAllBalancesParams

type GetAllBalancesParams struct {
	Owner string `json:"owner"`
}

type GetAllCoinsParams

type GetAllCoinsParams struct {
	Owner  string  `json:"owner"`
	Cursor *string `json:"cursor,omitempty"`
	Limit  *int    `json:"limit,omitempty"`
}

type GetBalanceParams

type GetBalanceParams struct {
	Owner    string  `json:"owner"`
	CoinType *string `json:"coinType,omitempty"`
}

type GetCheckpointParams

type GetCheckpointParams struct {
	ID CheckpointId `json:"id"`
}

type GetCheckpointsParams

type GetCheckpointsParams struct {
	Cursor          *string `json:"cursor,omitempty"`
	Limit           *int    `json:"limit,omitempty"`
	DescendingOrder bool    `json:"descendingOrder"`
}

type GetCoinMetadataParams

type GetCoinMetadataParams struct {
	CoinType string `json:"coinType"`
}

type GetCoinsParams

type GetCoinsParams struct {
	Owner    string  `json:"owner"`
	CoinType *string `json:"coinType,omitempty"`
	Cursor   *string `json:"cursor,omitempty"`
	Limit    *int    `json:"limit,omitempty"`
}

type GetCommitteeInfoParams

type GetCommitteeInfoParams struct {
	Epoch *string `json:"epoch,omitempty"`
}

type GetDynamicFieldObjectParams

type GetDynamicFieldObjectParams struct {
	ParentId string           `json:"parentId"`
	Name     DynamicFieldName `json:"name"`
}

type GetDynamicFieldsParams

type GetDynamicFieldsParams struct {
	ParentId string  `json:"parentId"`
	Cursor   *string `json:"cursor,omitempty"`
	Limit    *int    `json:"limit,omitempty"`
}

type GetMoveFunctionArgTypesParams

type GetMoveFunctionArgTypesParams struct {
	Package  string `json:"package"`
	Module   string `json:"module"`
	Function string `json:"function"`
}

type GetNormalizedMoveFunctionParams

type GetNormalizedMoveFunctionParams struct {
	Package  string `json:"package"`
	Module   string `json:"module"`
	Function string `json:"function"`
}

type GetNormalizedMoveModuleParams

type GetNormalizedMoveModuleParams struct {
	Package string `json:"package"`
	Module  string `json:"module"`
}

type GetNormalizedMoveModulesByPackageParams

type GetNormalizedMoveModulesByPackageParams struct {
	Package string `json:"package"`
}

type GetNormalizedMoveStructParams

type GetNormalizedMoveStructParams struct {
	Package string `json:"package"`
	Module  string `json:"module"`
	Struct  string `json:"struct"`
}

type GetObjectParams

type GetObjectParams struct {
	ID      string                `json:"id"`
	Options *SuiObjectDataOptions `json:"options,omitempty"`
}

type GetOwnedObjectsParams

type GetOwnedObjectsParams struct {
	Owner                  string                 `json:"owner"`
	Cursor                 *string                `json:"cursor,omitempty"`
	Limit                  *int                   `json:"limit,omitempty"`
	SuiObjectResponseQuery SuiObjectResponseQuery `json:",inline"`
}

type GetPastObjectRequest added in v0.0.25

type GetPastObjectRequest struct {
	ObjectID string `json:"objectId"`
	Version  string `json:"version"`
}

type GetProtocolConfigParams

type GetProtocolConfigParams struct {
	Version *string `json:"version,omitempty"`
}

type GetStakesByIdsParams

type GetStakesByIdsParams struct {
	StakedSuiIds []string `json:"stakedSuiIds"`
}

type GetStakesParams

type GetStakesParams struct {
	Owner string `json:"owner"`
}

type GetTotalSupplyParams

type GetTotalSupplyParams struct {
	CoinType string `json:"coinType"`
}

type GetTransactionBlockParams

type GetTransactionBlockParams struct {
	Digest  string                              `json:"digest"`
	Options *SuiTransactionBlockResponseOptions `json:"options,omitempty"`
}

type InputObjectKind added in v0.0.25

type InputObjectKind interface {
	// contains filtered or unexported methods
}

type InputObjectKindImmOrOwnedMoveObject added in v0.0.25

type InputObjectKindImmOrOwnedMoveObject struct {
	ImmOrOwnedMoveObject SuiObjectRef `json:"ImmOrOwnedMoveObject"`
}

type InputObjectKindMovePackage added in v0.0.25

type InputObjectKindMovePackage struct {
	MovePackage string `json:"MovePackage"`
}

type InputObjectKindSharedMoveObject added in v0.0.25

type InputObjectKindSharedMoveObject struct {
	SharedMoveObject KindSharedMoveObject `json:"SharedMoveObject"`
}

type InputObjectKindWrapper added in v0.0.25

type InputObjectKindWrapper struct {
	InputObjectKind
}

func (*InputObjectKindWrapper) MarshalJSON added in v0.0.25

func (w *InputObjectKindWrapper) MarshalJSON() ([]byte, error)

func (*InputObjectKindWrapper) UnmarshalJSON added in v0.0.25

func (w *InputObjectKindWrapper) UnmarshalJSON(data []byte) error

type KindSharedMoveObject added in v0.0.25

type KindSharedMoveObject struct {
	ID                   string `json:"id"`
	InitialSharedVersion string `json:"initial_shared_version"`
	Mutable              bool   `json:"mutable,omitempty"`
}

type LoadedChildObject added in v0.0.25

type LoadedChildObject struct {
	ObjectID       string `json:"objectId"`
	SequenceNumber string `json:"sequenceNumber"`
}

type LoadedChildObjectsResponse added in v0.0.25

type LoadedChildObjectsResponse struct {
	LoadedChildObjects []LoadedChildObject `json:"loadedChildObjects"`
}

type MoveBooleanValue added in v0.0.25

type MoveBooleanValue bool

type MoveCallParams added in v0.0.25

type MoveCallParams struct {
	Arguments       []interface{} `json:"arguments"`
	Function        string        `json:"function"`
	Module          string        `json:"module"`
	PackageObjectId string        `json:"packageObjectId"`
	TypeArguments   []string      `json:"typeArguments,omitempty"`
}

type MoveCallSuiTransaction added in v0.0.25

type MoveCallSuiTransaction struct {
	Package       string               `json:"package"`
	Module        string               `json:"module"`
	Function      string               `json:"function"`
	TypeArguments []*string            `json:"type_arguments,omitempty"`
	Arguments     []SuiArgumentWrapper `json:"arguments"`
}

type MoveIdValue added in v0.0.25

type MoveIdValue struct {
	Id string `json:"id"`
}

type MoveNumberValue added in v0.0.25

type MoveNumberValue uint64

type MoveStringValue added in v0.0.25

type MoveStringValue string

type MoveStruct added in v0.0.25

type MoveStruct interface {
	// contains filtered or unexported methods
}

type MoveStructValue added in v0.0.25

type MoveStructValue MoveStruct

type MoveStructWrapper added in v0.0.25

type MoveStructWrapper struct {
	MoveStruct
}

func (MoveStructWrapper) MarshalJSON added in v0.0.25

func (w MoveStructWrapper) MarshalJSON() ([]byte, error)

func (*MoveStructWrapper) UnmarshalJSON added in v0.0.25

func (w *MoveStructWrapper) UnmarshalJSON(data []byte) error

type MoveStruct_FieldsType added in v0.0.25

type MoveStruct_FieldsType struct {
	Type   string                      `json:"type"`
	Fields map[string]MoveValueWrapper `json:"fields"`
}

type MoveStruct_Map added in v0.0.25

type MoveStruct_Map map[string]MoveValueWrapper

type MoveStruct_MoveValue added in v0.0.25

type MoveStruct_MoveValue []MoveValueWrapper

type MoveValue added in v0.0.25

type MoveValue interface {
	// contains filtered or unexported methods
}

---------- Move Value -----------

type MoveValueWrapper added in v0.0.25

type MoveValueWrapper struct {
	MoveValue
}

func (MoveValueWrapper) MarshalJSON added in v0.0.25

func (w MoveValueWrapper) MarshalJSON() ([]byte, error)

func (*MoveValueWrapper) UnmarshalJSON added in v0.0.25

func (w *MoveValueWrapper) UnmarshalJSON(data []byte) error

type MoveValue_MoveValues added in v0.0.25

type MoveValue_MoveValues []MoveValueWrapper

type MultiGetObjectsParams

type MultiGetObjectsParams struct {
	IDs     []string              `json:"ids"`
	Options *SuiObjectDataOptions `json:"options,omitempty"`
}

type MultiGetTransactionBlocksParams

type MultiGetTransactionBlocksParams struct {
	Digests []string                            `json:"digests"`
	Options *SuiTransactionBlockResponseOptions `json:"options,omitempty"`
}

type ObjectOwner

type ObjectOwner interface {
	// contains filtered or unexported methods
}

type ObjectOwnerWrapper

type ObjectOwnerWrapper struct {
	ObjectOwner
}

func (ObjectOwnerWrapper) MarshalJSON added in v0.0.25

func (w ObjectOwnerWrapper) MarshalJSON() ([]byte, error)

func (*ObjectOwnerWrapper) UnmarshalJSON

func (w *ObjectOwnerWrapper) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller for ObjectOwnerWrapper

type ObjectOwner_AddressOwner

type ObjectOwner_AddressOwner struct {
	AddressOwner string `json:"AddressOwner"`
}

type ObjectOwner_Immutable added in v0.0.25

type ObjectOwner_Immutable string

type ObjectOwner_ObjectOwner

type ObjectOwner_ObjectOwner struct {
	ObjectOwner string `json:"ObjectOwner"`
}

type ObjectOwner_Shared

type ObjectOwner_Shared struct {
	Shared ObjectOwner_SharedData `json:"Shared"`
}

type ObjectOwner_SharedData

type ObjectOwner_SharedData struct {
	InitialSharedVersion uint64 `json:"initial_shared_version"`
}

type ObjectRead

type ObjectRead interface {
	// contains filtered or unexported methods
}

type ObjectReadObjectDeleted added in v0.0.25

type ObjectReadObjectDeleted struct {
	Details SuiObjectRef `json:"detail"`
	Status  string       `json:"status"`
}

type ObjectReadObjectNotExists added in v0.0.25

type ObjectReadObjectNotExists struct {
	Details string `json:"detail"`
	Status  string `json:"status"`
}

type ObjectReadVersionFound added in v0.0.25

type ObjectReadVersionFound struct {
	Details SuiObjectData `json:"detail"`
	Status  string        `json:"status"`
}

type ObjectReadVersionNotFound added in v0.0.25

type ObjectReadVersionNotFound struct {
	Details [2]string `json:"detail"`
	Status  string    `json:"status"`
}

type ObjectReadVersionTooHigh added in v0.0.25

type ObjectReadVersionTooHigh struct {
	Details VersionTooHighDetails `json:"detail"`
	Status  string                `json:"status"`
}

type ObjectReadWrapper added in v0.0.25

type ObjectReadWrapper struct {
	ObjectRead
}

func (ObjectReadWrapper) MarshalJSON added in v0.0.25

func (w ObjectReadWrapper) MarshalJSON() ([]byte, error)

func (*ObjectReadWrapper) UnmarshalJSON added in v0.0.25

func (w *ObjectReadWrapper) UnmarshalJSON(data []byte) error

type ObjectResponseDeletedError added in v0.0.25

type ObjectResponseDeletedError struct {
	Code     string `json:"code"`
	Digest   string `json:"digest"`
	ObjectId string `json:"object_id"`
	Version  uint64 `json:"version"`
}

type ObjectResponseDisplayErrorError added in v0.0.25

type ObjectResponseDisplayErrorError struct {
	Code  string `json:"code"`
	Error string `json:"error"`
}

type ObjectResponseDynamicFieldNotFoundError added in v0.0.25

type ObjectResponseDynamicFieldNotFoundError struct {
	Code           string `json:"code"`
	ParentObjectId string `json:"parent_object_id"`
}

type ObjectResponseError

type ObjectResponseError interface {
	// contains filtered or unexported methods
}

type ObjectResponseErrorWrapper added in v0.0.25

type ObjectResponseErrorWrapper struct {
	ObjectResponseError
}

func (*ObjectResponseErrorWrapper) MarshalJSON added in v0.0.25

func (w *ObjectResponseErrorWrapper) MarshalJSON() ([]byte, error)

func (*ObjectResponseErrorWrapper) UnmarshalJSON added in v0.0.25

func (w *ObjectResponseErrorWrapper) UnmarshalJSON(data []byte) error

type ObjectResponseNotExistsError added in v0.0.25

type ObjectResponseNotExistsError struct {
	Code     string `json:"code"`
	ObjectId string `json:"object_id"`
}

type ObjectResponseUnknownError added in v0.0.25

type ObjectResponseUnknownError struct {
	Code string `json:"code"`
}

type ObjectValueKind added in v0.0.25

type ObjectValueKind string
const (
	ByImmutableReference ObjectValueKind = "ByImmutableReference"
	ByMutableReference   ObjectValueKind = "ByMutableReference"
	ByValue              ObjectValueKind = "ByValue"
)

type OwnedObjectRef

type OwnedObjectRef struct {
	Owner     ObjectOwnerWrapper `json:"owner"`
	Reference SuiObjectRef       `json:"reference"`
}

type PaginatedCheckpoints added in v0.0.25

type PaginatedCheckpoints struct {
	Data        []Checkpoint `json:"data"`
	HasNextPage bool         `json:"hasNextPage"`
	NextCursor  *string      `json:"nextCursor,omitempty"`
}

type PaginatedCoins

type PaginatedCoins struct {
	Data        []CoinStruct `json:"data"`
	HasNextPage bool         `json:"hasNextPage"`
	NextCursor  *string      `json:"nextCursor,omitempty"`
}

type PaginatedDynamicFieldInfos added in v0.0.25

type PaginatedDynamicFieldInfos struct {
	Data        []DynamicFieldInfo `json:"data"`
	NextCursor  *string            `json:"nextCursor,omitempty"`
	HasNextPage bool               `json:"hasNextPage"`
}

type PaginatedEvents

type PaginatedEvents struct {
	Data        []SuiEvent `json:"data"`
	NextCursor  *EventId   `json:"nextCursor,omitempty"`
	HasNextPage bool       `json:"hasNextPage"`
}

type PaginatedObjectsResponse

type PaginatedObjectsResponse struct {
	Data        []SuiObjectResponse `json:"data"`
	NextCursor  *string             `json:"nextCursor,omitempty"`
	HasNextPage bool                `json:"hasNextPage"`
}

type PaginatedStrings added in v0.0.25

type PaginatedStrings struct {
	Data        []string `json:"data"`
	NextCursor  *string  `json:"nextCursor,omitempty"`
	HasNextPage bool     `json:"hasNextPage"`
}

type PaginatedTransactionResponse

type PaginatedTransactionResponse struct {
	Data        []SuiTransactionBlockResponse `json:"data"`
	NextCursor  *string                       `json:"nextCursor,omitempty"`
	HasNextPage bool                          `json:"hasNextPage"`
}

type ProgrammableTransaction added in v0.0.25

type ProgrammableTransaction struct {
	Transactions []SuiTransactionWrapper `json:"transactions"`
	Inputs       []SuiCallArgWrapper     `json:"inputs"`
}

type ProtocolConfig

type ProtocolConfig struct {
	MinSupportedProtocolVersion string                         `json:"minSupportedProtocolVersion"`
	MaxSupportedProtocolVersion string                         `json:"maxSupportedProtocolVersion"`
	ProtocolVersion             string                         `json:"protocolVersion"`
	FeatureFlags                map[string]bool                `json:"featureFlags"`
	Attributes                  map[string]ProtocolConfigValue `json:"attributes"`
}

type ProtocolConfigValue

type ProtocolConfigValue interface {
	// contains filtered or unexported methods
}

type ProtocolConfigValue_f64

type ProtocolConfigValue_f64 struct {
	F64 string `json:"f64"`
}

type ProtocolConfigValue_u32

type ProtocolConfigValue_u32 struct {
	U32 string `json:"u32"`
}

type ProtocolConfigValue_u64

type ProtocolConfigValue_u64 struct {
	U64 string `json:"u64"`
}

type QueryEventsParams

type QueryEventsParams struct {
	Query  SuiEventFilter                      `json:"query"`
	Cursor *EventId                            `json:"cursor,omitempty"`
	Limit  *int                                `json:"limit,omitempty"`
	Order  *QueryTransactionBlocksParams_Order `json:"order,omitempty"`
}

type QueryTransactionBlocksParams

type QueryTransactionBlocksParams struct {
	Cursor                           *string                             `json:"cursor,omitempty"`
	Limit                            *int                                `json:"limit,omitempty"`
	Order                            *QueryTransactionBlocksParams_Order `json:"order,omitempty"`
	SuiTransactionBlockResponseQuery SuiTransactionBlockResponseQuery    `json:",inline"`
}

type QueryTransactionBlocksParams_Order

type QueryTransactionBlocksParams_Order string
var (
	Ascending  QueryTransactionBlocksParams_Order = "ascending"
	Descending QueryTransactionBlocksParams_Order = "descending"
)

type RawData

type RawData interface {
	// contains filtered or unexported methods
}

type RawDataMoveObject added in v0.0.25

type RawDataMoveObject struct {
	DataType          string `json:"dataType"`
	Type              string `json:"type"`
	HasPublicTransfer bool   `json:"hasPublicTransfer"`
	Version           uint64 `json:"version"`
	BcsBytes          string `json:"bcsBytes"`
}

type RawDataPackage added in v0.0.25

type RawDataPackage struct {
	DataType        string                 `json:"dataType"`
	ID              string                 `json:"id"`
	Version         uint64                 `json:"version"`
	ModuleMap       map[string]string      `json:"moduleMap"`
	TypeOriginTable []TypeOrigin           `json:"typeOriginTable"`
	LinkageTable    map[string]UpgradeInfo `json:"linkageTable"`
}

type RawDataWrapper added in v0.0.25

type RawDataWrapper struct {
	RawData
}

func (*RawDataWrapper) MarshalJSON added in v0.0.25

func (w *RawDataWrapper) MarshalJSON() ([]byte, error)

func (*RawDataWrapper) UnmarshalJSON added in v0.0.25

func (w *RawDataWrapper) UnmarshalJSON(data []byte) error

type ResolveNameServiceAddressParams

type ResolveNameServiceAddressParams struct {
	Name string `json:"name"`
}

type ResolveNameServiceNamesParams

type ResolveNameServiceNamesParams struct {
	Address string  `json:"address"`
	Cursor  *string `json:"cursor,omitempty"`
	Limit   *int    `json:"limit,omitempty"`
}

type ResolvedNameServiceNames

type ResolvedNameServiceNames struct {
	Data        []string `json:"data"`
	NextCursor  *string  `json:"nextCursor,omitempty"`
	HasNextPage bool     `json:"hasNextPage"`
}

type SignAndExecuteTransactionBlockParams

type SignAndExecuteTransactionBlockParams struct {
	TransactionBlock []byte                              `json:"transactionBlock"`
	Signer           cryptography.Signer                 `json:"signer"`
	Options          *SuiTransactionBlockResponseOptions `json:"options,omitempty"`
	RequestType      *ExecuteTransactionRequestType      `json:"requestType,omitempty"`
}

type Signature added in v0.0.25

type Signature interface {
	// contains filtered or unexported methods
}

type SignatureEd25519 added in v0.0.25

type SignatureEd25519 struct {
	Ed25519SuiSignature string `json:"Ed25519SuiSignature"`
}

type SignatureSecp256k1 added in v0.0.25

type SignatureSecp256k1 struct {
	Secp256k1SuiSignature string `json:"Secp256k1SuiSignature"`
}

type SignatureSecp256r1 added in v0.0.25

type SignatureSecp256r1 struct {
	Secp256r1SuiSignature string `json:"Secp256r1SuiSignature"`
}

type SignatureWrapper added in v0.0.25

type SignatureWrapper struct {
	Signature
}

func (*SignatureWrapper) MarshalJSON added in v0.0.25

func (w *SignatureWrapper) MarshalJSON() ([]byte, error)

func (*SignatureWrapper) UnmarshalJSON added in v0.0.25

func (w *SignatureWrapper) UnmarshalJSON(data []byte) error

type StakeObject

type StakeObject interface {
	// contains filtered or unexported methods
}

type StakeObjectActive added in v0.0.25

type StakeObjectActive struct {
	Principal         string `json:"principal"`
	StakeActiveEpoch  string `json:"stakeActiveEpoch"`
	StakeRequestEpoch string `json:"stakeRequestEpoch"`
	StakedSuiId       string `json:"stakedSuiId"`
	EstimatedReward   string `json:"estimatedReward"`
	Status            string `json:"status"`
}

type StakeObjectPending added in v0.0.25

type StakeObjectPending struct {
	Principal         string `json:"principal"`
	StakeActiveEpoch  string `json:"stakeActiveEpoch"`
	StakeRequestEpoch string `json:"stakeRequestEpoch"`
	StakedSuiId       string `json:"stakedSuiId"`
	Status            string `json:"status"`
}

type StakeObjectUnstaked added in v0.0.25

type StakeObjectUnstaked struct {
	Principal         string `json:"principal"`
	StakeActiveEpoch  string `json:"stakeActiveEpoch"`
	StakeRequestEpoch string `json:"stakeRequestEpoch"`
	StakedSuiId       string `json:"stakedSuiId"`
	Status            string `json:"status"`
}

type StakeObjectWrapper added in v0.0.25

type StakeObjectWrapper struct {
	StakeObject
}

func (*StakeObjectWrapper) MarshalJSON added in v0.0.25

func (w *StakeObjectWrapper) MarshalJSON() ([]byte, error)

func (*StakeObjectWrapper) UnmarshalJSON added in v0.0.25

func (w *StakeObjectWrapper) UnmarshalJSON(data []byte) error

type SubscribeEventParams

type SubscribeEventParams struct {
	Filter SuiEventFilter `json:"filter"`
}

type SubscribeTransactionParams

type SubscribeTransactionParams struct {
	Filter TransactionFilter `json:"filter"`
}

type SuiActiveJwk

type SuiActiveJwk struct {
	Epoch string   `json:"epoch"`
	Jwk   SuiJWK   `json:"jwk"`
	JwkID SuiJwkID `json:"jwk_id"`
}

type SuiArgument added in v0.0.25

type SuiArgument interface {
	// contains filtered or unexported methods
}

-----------SuiArgument-----------

type SuiArgumentGasCoin added in v0.0.25

type SuiArgumentGasCoin string

type SuiArgumentInput added in v0.0.25

type SuiArgumentInput struct {
	Input uint64 `json:"Input"`
}

type SuiArgumentNestedResult added in v0.0.25

type SuiArgumentNestedResult struct {
	NestedResult [2]uint64 `json:"NestedResult"`
}

type SuiArgumentResult added in v0.0.25

type SuiArgumentResult struct {
	Result uint64 `json:"Result"`
}

type SuiArgumentWrapper added in v0.0.25

type SuiArgumentWrapper struct {
	SuiArgument
}

func (SuiArgumentWrapper) MarshalJSON added in v0.0.25

func (w SuiArgumentWrapper) MarshalJSON() ([]byte, error)

func (*SuiArgumentWrapper) UnmarshalJSON added in v0.0.25

func (w *SuiArgumentWrapper) UnmarshalJSON(data []byte) error

type SuiAuthenticatorStateExpire added in v0.0.25

type SuiAuthenticatorStateExpire struct {
	MinEpoch string `json:"min_epoch"`
}

type SuiCallArg

type SuiCallArg interface {
	// contains filtered or unexported methods
}

type SuiCallArgImmOrOwnedObject added in v0.0.25

type SuiCallArgImmOrOwnedObject struct {
	Type       string `json:"type"`
	Digest     string `json:"digest"`
	ObjectId   string `json:"objectId"`
	ObjectType string `json:"objectType"`
	Version    string `json:"version"`
}

type SuiCallArgPure added in v0.0.25

type SuiCallArgPure struct {
	Type      string      `json:"type"`
	ValueType *string     `json:"valueType,omitempty"`
	Value     interface{} `json:"value"`
}

type SuiCallArgReceiving added in v0.0.25

type SuiCallArgReceiving struct {
	Type       string `json:"type"`
	Digest     string `json:"digest"`
	ObjectId   string `json:"objectId"`
	ObjectType string `json:"objectType"`
	Version    string `json:"version"`
}

type SuiCallArgSharedObject added in v0.0.25

type SuiCallArgSharedObject struct {
	Type                 string `json:"type"`
	ObjectType           string `json:"objectType"`
	ObjectId             string `json:"objectId"`
	InitialSharedVersion string `json:"initialSharedVersion"`
	Mutable              bool   `json:"mutable"`
}

type SuiCallArgWrapper added in v0.0.25

type SuiCallArgWrapper struct {
	SuiCallArg
}

func (*SuiCallArgWrapper) MarshalJSON added in v0.0.25

func (w *SuiCallArgWrapper) MarshalJSON() ([]byte, error)

func (*SuiCallArgWrapper) UnmarshalJSON added in v0.0.25

func (w *SuiCallArgWrapper) UnmarshalJSON(data []byte) error

type SuiChangeEpoch added in v0.0.25

type SuiChangeEpoch struct {
	ComputationCharge     string `json:"computation_charge"`
	Epoch                 string `json:"epoch"`
	EpochStartTimestampMs string `json:"epoch_start_timestamp_ms"`
	StorageCharge         string `json:"storage_charge"`
	StorageRebate         string `json:"storage_rebate"`
}

type SuiEndOfEpochTransactionKind added in v0.0.25

type SuiEndOfEpochTransactionKind interface {
	// contains filtered or unexported methods
}

-----------SuiEndOfEpochTransactionKind-----------

type SuiEndOfEpochTransactionKindAuthenticatorStateCreate added in v0.0.25

type SuiEndOfEpochTransactionKindAuthenticatorStateCreate string

type SuiEndOfEpochTransactionKindAuthenticatorStateExpire added in v0.0.25

type SuiEndOfEpochTransactionKindAuthenticatorStateExpire struct {
	AuthenticatorStateExpire SuiAuthenticatorStateExpire `json:"AuthenticatorStateExpire"`
}

type SuiEndOfEpochTransactionKindChangeEpoch added in v0.0.25

type SuiEndOfEpochTransactionKindChangeEpoch struct {
	ChangeEpoch SuiChangeEpoch `json:"ChangeEpoch"`
}

type SuiEndOfEpochTransactionKindWrapper added in v0.0.25

type SuiEndOfEpochTransactionKindWrapper struct {
	SuiEndOfEpochTransactionKind
}

func (*SuiEndOfEpochTransactionKindWrapper) MarshalJSON added in v0.0.25

func (w *SuiEndOfEpochTransactionKindWrapper) MarshalJSON() ([]byte, error)

func (*SuiEndOfEpochTransactionKindWrapper) UnmarshalJSON added in v0.0.25

func (w *SuiEndOfEpochTransactionKindWrapper) UnmarshalJSON(data []byte) error

type SuiEvent

type SuiEvent struct {
	Id                EventId     `json:"id"`
	PackageId         string      `json:"packageId"`
	TransactionModule string      `json:"transactionModule"`
	Sender            string      `json:"sender"`
	Type              string      `json:"type"`
	ParsedJson        interface{} `json:"parsedJson"`
	Bcs               string      `json:"bcs"`
	TimestampMs       string      `json:"timestampMs,omitempty"`
}

type SuiEventFilter

type SuiEventFilter struct {
	Sender          *string                         `json:"Sender,omitempty"`
	Transaction     *string                         `json:"Transaction,omitempty"`
	Package         *string                         `json:"Package,omitempty"`
	MoveModule      *SuiEventFilter_MoveModule      `json:"MoveModule,omitempty"`
	MoveEventType   *string                         `json:"MoveEventType,omitempty"`
	MoveEventModule *SuiEventFilter_MoveEventModule `json:"MoveEventModule,omitempty"`
	MoveEventField  *SuiEventFilter_MoveEventField  `json:"MoveEventField,omitempty"`
	TimeRange       *SuiEventFilter_TimeRange       `json:"TimeRange,omitempty"`
	All             *SuiEventFilters                `json:"All,omitempty"`
	Any             *SuiEventFilters                `json:"Any,omitempty"`
	And             *SuiEventFilters                `json:"And,omitempty"`
	Or              *SuiEventFilters                `json:"Or,omitempty"`
}

type SuiEventFilter_MoveEventField

type SuiEventFilter_MoveEventField struct {
	Path  string      `json:"path"`
	Value interface{} `json:"value"`
}

type SuiEventFilter_MoveEventModule

type SuiEventFilter_MoveEventModule struct {
	Module  string `json:"module"`
	Package string `json:"package"`
}

type SuiEventFilter_MoveModule

type SuiEventFilter_MoveModule struct {
	Module  string `json:"module"`
	Package string `json:"package"`
}

type SuiEventFilter_TimeRange

type SuiEventFilter_TimeRange struct {
	EndTime   string `json:"endTime"`
	StartTime string `json:"startTime"`
}

type SuiEventFilters

type SuiEventFilters []SuiEventFilter

type SuiExecutionResult

type SuiExecutionResult struct {
	MutableReferenceOutputs [][3]interface{} `json:"mutableReferenceOutputs,omitempty"` // TODO: [SuiArgument, bytes, string][]
	ReturnValues            [][2]interface{} `json:"returnValues,omitempty"`            // TODO: interface -> [bytes, string][]
}

type SuiGasData

type SuiGasData struct {
	Payment []SuiObjectRef `json:"payment"`
	Owner   string         `json:"owner"`
	Price   string         `json:"price"`
	Budget  string         `json:"budget"`
}

type SuiJWK

type SuiJWK struct {
	Alg string `json:"alg"`
	E   string `json:"e"`
	Kty string `json:"kty"`
	N   string `json:"n"`
}

type SuiJwkID

type SuiJwkID struct {
	Iss string `json:"iss"`
	Kid string `json:"kid"`
}

type SuiMoveAbility

type SuiMoveAbility string
var (
	Copy  SuiMoveAbility = "Copy"
	Drop  SuiMoveAbility = "Drop"
	Store SuiMoveAbility = "Store"
	Key   SuiMoveAbility = "Key"
)

type SuiMoveAbilitySet

type SuiMoveAbilitySet struct {
	Abilities []SuiMoveAbility `json:"abilities"`
}

type SuiMoveFunctionArgObjectType added in v0.0.25

type SuiMoveFunctionArgObjectType struct {
	Object ObjectValueKind `json:"Object"`
}

type SuiMoveFunctionArgStringType added in v0.0.25

type SuiMoveFunctionArgStringType string

type SuiMoveFunctionArgType added in v0.0.25

type SuiMoveFunctionArgType interface {
	// contains filtered or unexported methods
}

------------------SuiMoveFunctionArgType------------------

type SuiMoveFunctionArgTypeWrapper added in v0.0.25

type SuiMoveFunctionArgTypeWrapper struct {
	SuiMoveFunctionArgType
}

func (SuiMoveFunctionArgTypeWrapper) MarshalJSON added in v0.0.25

func (w SuiMoveFunctionArgTypeWrapper) MarshalJSON() ([]byte, error)

func (*SuiMoveFunctionArgTypeWrapper) UnmarshalJSON added in v0.0.25

func (w *SuiMoveFunctionArgTypeWrapper) UnmarshalJSON(data []byte) error

type SuiMoveModuleId

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

type SuiMoveNormalizedField

type SuiMoveNormalizedField struct {
	Name string                       `json:"name"`
	Type SuiMoveNormalizedTypeWrapper `json:"type"`
}

type SuiMoveNormalizedFunction

type SuiMoveNormalizedFunction struct {
	Visibility     SuiMoveVisibility               `json:"visibility"`
	IsEntry        bool                            `json:"isEntry"`
	TypeParameters []SuiMoveAbilitySet             `json:"typeParameters"`
	Parameters     []*SuiMoveNormalizedTypeWrapper `json:"parameters"`
	Return         []*SuiMoveNormalizedTypeWrapper `json:"return"`
}

type SuiMoveNormalizedModule

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

type SuiMoveNormalizedModules

type SuiMoveNormalizedModules map[string]SuiMoveNormalizedModule

type SuiMoveNormalizedStruct

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

type SuiMoveNormalizedType added in v0.0.25

type SuiMoveNormalizedType interface {
	// contains filtered or unexported methods
}

type SuiMoveNormalizedTypeStruct added in v0.0.25

type SuiMoveNormalizedTypeStruct struct {
	Address       string                         `json:"address"`
	Module        string                         `json:"module"`
	Name          string                         `json:"name"`
	TypeArguments []SuiMoveNormalizedTypeWrapper `json:"typeArguments"`
}

type SuiMoveNormalizedTypeWrapper added in v0.0.25

type SuiMoveNormalizedTypeWrapper struct {
	SuiMoveNormalizedType
}

func (SuiMoveNormalizedTypeWrapper) MarshalJSON added in v0.0.25

func (w SuiMoveNormalizedTypeWrapper) MarshalJSON() ([]byte, error)

func (*SuiMoveNormalizedTypeWrapper) UnmarshalJSON added in v0.0.25

func (w *SuiMoveNormalizedTypeWrapper) UnmarshalJSON(data []byte) error

type SuiMoveNormalizedType_MutableReference added in v0.0.25

type SuiMoveNormalizedType_MutableReference struct {
	MutableReference SuiMoveNormalizedTypeWrapper `json:"MutableReference"`
}

type SuiMoveNormalizedType_Reference added in v0.0.25

type SuiMoveNormalizedType_Reference struct {
	Reference SuiMoveNormalizedTypeWrapper `json:"Reference"`
}

type SuiMoveNormalizedType_String added in v0.0.25

type SuiMoveNormalizedType_String string

type SuiMoveNormalizedType_Struct added in v0.0.25

type SuiMoveNormalizedType_Struct struct {
	Struct SuiMoveNormalizedTypeStruct `json:"Struct"`
}

type SuiMoveNormalizedType_TypeParameter added in v0.0.25

type SuiMoveNormalizedType_TypeParameter struct {
	TypeParameter uint64 `json:"TypeParameter"`
}

type SuiMoveNormalizedType_Vector added in v0.0.25

type SuiMoveNormalizedType_Vector struct {
	Vector SuiMoveNormalizedTypeWrapper `json:"Vector"`
}

type SuiMoveStructTypeParameter

type SuiMoveStructTypeParameter struct {
	Constraints SuiMoveAbilitySet `json:"constraints"`
	IsPhantom   bool              `json:"isPhantom"`
}

type SuiMoveVisibility

type SuiMoveVisibility string
var (
	Private SuiMoveVisibility = "Private"
	Public  SuiMoveVisibility = "Public"
	Friend  SuiMoveVisibility = "Friend"
)

type SuiObjectChange

type SuiObjectChange interface {
	// contains filtered or unexported methods
}

type SuiObjectChangeCreated added in v0.0.25

type SuiObjectChangeCreated struct {
	Type       string              `json:"type"`
	Sender     string              `json:"sender"`
	Owner      *ObjectOwnerWrapper `json:"owner,omitempty"`
	ObjectType string              `json:"objectType"`
	ObjectId   string              `json:"objectId"`
	Version    string              `json:"version"`
	Digest     string              `json:"digest"`
}

type SuiObjectChangeDeleted added in v0.0.25

type SuiObjectChangeDeleted struct {
	Type       string `json:"type"`
	Sender     string `json:"sender"`
	ObjectType string `json:"objectType"`
	ObjectId   string `json:"objectId"`
	Version    string `json:"version"`
}

type SuiObjectChangeMutated added in v0.0.25

type SuiObjectChangeMutated struct {
	Type            string              `json:"type"`
	Sender          string              `json:"sender"`
	Owner           *ObjectOwnerWrapper `json:"owner"`
	ObjectType      string              `json:"objectType"`
	ObjectId        string              `json:"objectId"`
	Version         string              `json:"version"`
	PreviousVersion string              `json:"previousVersion"`
	Digest          string              `json:"digest"`
}

type SuiObjectChangePublished added in v0.0.25

type SuiObjectChangePublished struct {
	Type      string   `json:"type"`
	PackageId string   `json:"packageId"`
	Version   string   `json:"version"`
	Digest    string   `json:"digest"`
	Modules   []string `json:"modules"`
}

type SuiObjectChangeTransferred added in v0.0.25

type SuiObjectChangeTransferred struct {
	Type       string              `json:"type"`
	Sender     string              `json:"sender"`
	Recipient  *ObjectOwnerWrapper `json:"recipient,omitempty"`
	ObjectType string              `json:"objectType"`
	ObjectId   string              `json:"objectId"`
	Version    string              `json:"version"`
	Digest     string              `json:"digest"`
}

type SuiObjectChangeWrapped added in v0.0.25

type SuiObjectChangeWrapped struct {
	Type       string `json:"type"`
	Sender     string `json:"sender"`
	ObjectType string `json:"objectType"`
	ObjectId   string `json:"objectId"`
	Version    string `json:"version"`
}

type SuiObjectChangeWrapper added in v0.0.25

type SuiObjectChangeWrapper struct {
	SuiObjectChange
}

func (SuiObjectChangeWrapper) MarshalJSON added in v0.0.25

func (w SuiObjectChangeWrapper) MarshalJSON() ([]byte, error)

func (*SuiObjectChangeWrapper) UnmarshalJSON added in v0.0.25

func (w *SuiObjectChangeWrapper) UnmarshalJSON(data []byte) error

type SuiObjectData

type SuiObjectData struct {
	ObjectId            string                 `json:"objectId"`
	Version             string                 `json:"version"`
	Digest              string                 `json:"digest"`
	Type                *string                `json:"type,omitempty"`
	Owner               *ObjectOwnerWrapper    `json:"owner,omitempty"`
	PreviousTransaction *string                `json:"previousTransaction,omitempty"`
	StorageRebate       *string                `json:"storageRebate,omitempty"`
	Display             *DisplayFieldsResponse `json:"display,omitempty"`
	Content             *SuiParsedDataWrapper  `json:"content,omitempty"`
	Bcs                 *RawDataWrapper        `json:"bcs,omitempty"`
}

type SuiObjectDataFilter_AddressOwner

type SuiObjectDataFilter_AddressOwner struct {
	AddressOwner string `json:"AddressOwner"`
}

type SuiObjectDataFilter_MatchAll

type SuiObjectDataFilter_MatchAll struct {
	MatchAll []SuiObjectDataFilter `json:"MatchAll"`
}

type SuiObjectDataFilter_MatchAny

type SuiObjectDataFilter_MatchAny struct {
	MatchAny []SuiObjectDataFilter `json:"MatchAny"`
}

type SuiObjectDataFilter_MatchNone

type SuiObjectDataFilter_MatchNone struct {
	MatchNone []SuiObjectDataFilter `json:"MatchNone"`
}

type SuiObjectDataFilter_MoveModule

type SuiObjectDataFilter_MoveModule struct {
	MoveModule SuiObjectDataFilter_MoveModule_Struct `json:"MoveModule"`
}

type SuiObjectDataFilter_MoveModule_Struct

type SuiObjectDataFilter_MoveModule_Struct struct {
	Module  string `json:"module"`
	Package string `json:"package"`
}

type SuiObjectDataFilter_ObjectId

type SuiObjectDataFilter_ObjectId struct {
	ObjectId string `json:"ObjectId"`
}

type SuiObjectDataFilter_ObjectIds

type SuiObjectDataFilter_ObjectIds struct {
	ObjectIds []string `json:"ObjectIds"`
}

type SuiObjectDataFilter_ObjectOwner

type SuiObjectDataFilter_ObjectOwner struct {
	ObjectOwner string `json:"ObjectOwner"`
}

type SuiObjectDataFilter_Package

type SuiObjectDataFilter_Package struct {
	Package string `json:"Package"`
}

type SuiObjectDataFilter_StructType

type SuiObjectDataFilter_StructType struct {
	StructType string `json:"StructType"`
}

type SuiObjectDataFilter_Version

type SuiObjectDataFilter_Version struct {
	Version string `json:"Version"`
}

type SuiObjectDataOptions

type SuiObjectDataOptions struct {
	ShowBcs                 bool `json:"showBcs,omitempty"`
	ShowContent             bool `json:"showContent,omitempty"`
	ShowDisplay             bool `json:"showDisplay,omitempty"`
	ShowOwner               bool `json:"showOwner,omitempty"`
	ShowPreviousTransaction bool `json:"showPreviousTransaction,omitempty"`
	ShowStorageRebate       bool `json:"showStorageRebate,omitempty"`
	ShowType                bool `json:"showType,omitempty"`
}

type SuiObjectRef

type SuiObjectRef struct {
	ObjectId string `json:"objectId"`
	Version  uint64 `json:"version"`
	Digest   string `json:"digest"`
}

type SuiObjectResponse

type SuiObjectResponse struct {
	Data  *SuiObjectData              `json:"data,omitempty"`
	Error *ObjectResponseErrorWrapper `json:"error,omitempty"`
}

type SuiObjectResponseQuery

type SuiObjectResponseQuery struct {
	Filter  *SuiObjectDataFilter  `json:"filter,omitempty"`
	Options *SuiObjectDataOptions `json:"options,omitempty"`
}

type SuiParsedData

type SuiParsedData interface {
	// contains filtered or unexported methods
}

type SuiParsedDataWrapper added in v0.0.25

type SuiParsedDataWrapper struct {
	SuiParsedData
}

func (*SuiParsedDataWrapper) MarshalJSON added in v0.0.25

func (w *SuiParsedDataWrapper) MarshalJSON() ([]byte, error)

func (*SuiParsedDataWrapper) UnmarshalJSON added in v0.0.25

func (w *SuiParsedDataWrapper) UnmarshalJSON(data []byte) error

type SuiParsedMoveObjectData added in v0.0.25

type SuiParsedMoveObjectData struct {
	DataType          string            `json:"dataType"`
	Type              string            `json:"type"`
	HasPublicTransfer bool              `json:"hasPublicTransfer"`
	Fields            MoveStructWrapper `json:"fields"`
}

type SuiParsedPackageData added in v0.0.25

type SuiParsedPackageData struct {
	DataType     string                  `json:"dataType"`
	Disassembled *map[string]interface{} `json:"disassembled,omitempty"`
}

type SuiSystemStateSummary

type SuiSystemStateSummary struct {
	Epoch                                 string                `json:"epoch"`
	ProtocolVersion                       string                `json:"protocolVersion"`
	SystemStateVersion                    string                `json:"systemStateVersion"`
	StorageFundTotalObjectStorageRebates  string                `json:"storageFundTotalObjectStorageRebates"`
	StorageFundNonRefundableBalance       string                `json:"storageFundNonRefundableBalance"`
	ReferenceGasPrice                     string                `json:"referenceGasPrice"`
	SafeMode                              bool                  `json:"safeMode"`
	SafeModeStorageRewards                string                `json:"safeModeStorageRewards"`
	SafeModeComputationRewards            string                `json:"safeModeComputationRewards"`
	SafeModeStorageRebates                string                `json:"safeModeStorageRebates"`
	SafeModeNonRefundableStorageFee       string                `json:"safeModeNonRefundableStorageFee"`
	EpochStartTimestampMs                 string                `json:"epochStartTimestampMs"`
	EpochDurationMs                       string                `json:"epochDurationMs"`
	StakeSubsidyStartEpoch                string                `json:"stakeSubsidyStartEpoch"`
	MaxValidatorCount                     string                `json:"maxValidatorCount"`
	MinValidatorJoiningStake              string                `json:"minValidatorJoiningStake"`
	ValidatorLowStakeThreshold            string                `json:"validatorLowStakeThreshold"`
	ValidatorVeryLowStakeThreshold        string                `json:"validatorVeryLowStakeThreshold"`
	ValidatorLowStakeGracePeriod          string                `json:"validatorLowStakeGracePeriod"`
	StakeSubsidyBalance                   string                `json:"stakeSubsidyBalance"`
	StakeSubsidyDistributionCounter       string                `json:"stakeSubsidyDistributionCounter"`
	StakeSubsidyCurrentDistributionAmount string                `json:"stakeSubsidyCurrentDistributionAmount"`
	StakeSubsidyPeriodLength              string                `json:"stakeSubsidyPeriodLength"`
	StakeSubsidyDecreaseRate              int                   `json:"stakeSubsidyDecreaseRate"`
	TotalStake                            string                `json:"totalStake"`
	ActiveValidators                      []SuiValidatorSummary `json:"activeValidators"`
	PendingActiveValidatorsId             string                `json:"pendingActiveValidatorsId"`
	PendingActiveValidatorsSize           string                `json:"pendingActiveValidatorsSize"`
	PendingRemovals                       []string              `json:"pendingRemovals"`
	StakingPoolMappingsId                 string                `json:"stakingPoolMappingsId"`
	StakingPoolMappingsSize               string                `json:"stakingPoolMappingsSize"`
	InactivePoolsId                       string                `json:"inactivePoolsId"`
	InactivePoolsSize                     string                `json:"inactivePoolsSize"`
	ValidatorCandidatesId                 string                `json:"validatorCandidatesId"`
	ValidatorCandidatesSize               string                `json:"validatorCandidatesSize"`
	AtRiskValidators                      [][2]string           `json:"atRiskValidators"`
	ValidatorReportRecords                [][2]interface{}      `json:"validatorReportRecords"`
}

type SuiTransaction added in v0.0.25

type SuiTransaction interface {
	// contains filtered or unexported methods
}

-----------Sui Transaction-----------

type SuiTransactionArgument added in v0.0.25

type SuiTransactionArgument interface {
	// contains filtered or unexported methods
}

-----------SuiTransactionArgument-----------

type SuiTransactionArgumentArray added in v0.0.25

type SuiTransactionArgumentArray []SuiArgumentWrapper

type SuiTransactionArgumentOne added in v0.0.25

type SuiTransactionArgumentOne SuiArgumentWrapper

type SuiTransactionArgumentString added in v0.0.25

type SuiTransactionArgumentString string

type SuiTransactionArgumentStringArray added in v0.0.25

type SuiTransactionArgumentStringArray []string

type SuiTransactionArgumentWrapper added in v0.0.25

type SuiTransactionArgumentWrapper struct {
	SuiTransactionArgument
}

func (SuiTransactionArgumentWrapper) MarshalJSON added in v0.0.25

func (w SuiTransactionArgumentWrapper) MarshalJSON() ([]byte, error)

func (*SuiTransactionArgumentWrapper) UnmarshalJSON added in v0.0.25

func (w *SuiTransactionArgumentWrapper) UnmarshalJSON(data []byte) error

type SuiTransactionBlock

type SuiTransactionBlock struct {
	Data         TransactionBlockData `json:"data"`
	TxSignatures []string             `json:"txSignatures"`
}

type SuiTransactionBlockBuilderMode added in v0.0.25

type SuiTransactionBlockBuilderMode string
const (
	Commit     SuiTransactionBlockBuilderMode = "Commit"
	DevInspect SuiTransactionBlockBuilderMode = "DevInspect"
)

type SuiTransactionBlockKind

type SuiTransactionBlockKind interface {
	// contains filtered or unexported methods
}

-----------SuiTransactionBlockKind-----------

type SuiTransactionBlockKindAuthenticatorStateUpdate added in v0.0.25

type SuiTransactionBlockKindAuthenticatorStateUpdate struct {
	Epoch         string         `json:"epoch"`
	Kind          string         `json:"kind"`
	NewActiveJwks []SuiActiveJwk `json:"new_active_jwks"`
	Round         string         `json:"round"`
}

type SuiTransactionBlockKindChangeEpoch added in v0.0.25

type SuiTransactionBlockKindChangeEpoch struct {
	ComputationCharge     string `json:"computation_charge"`
	Epoch                 string `json:"epoch"`
	EpochStartTimestampMs string `json:"epoch_start_timestamp_ms"`
	Kind                  string `json:"kind"`
	StorageCharge         string `json:"storage_charge"`
	StorageRebate         string `json:"storage_rebate"`
}

type SuiTransactionBlockKindConsensusCommitPrologue added in v0.0.25

type SuiTransactionBlockKindConsensusCommitPrologue struct {
	CommitTimestampMs string `json:"commit_timestamp_ms"`
	Epoch             string `json:"epoch"`
	Kind              string `json:"kind"`
	Round             string `json:"round"`
}

type SuiTransactionBlockKindConsensusCommitPrologueV3 added in v0.0.25

type SuiTransactionBlockKindConsensusCommitPrologueV3 struct {
	Kind                                  string                                `json:"kind"`
	Epoch                                 string                                `json:"epoch"`
	Round                                 string                                `json:"round"`
	SubDagIndex                           interface{}                           `json:"sub_dag_index"`
	CommitTimestampMs                     string                                `json:"commit_timestamp_ms"`
	ConsensusCommitDigest                 string                                `json:"consensus_commit_digest"`
	ConsensusDeterminedVersionAssignments ConsensusDeterminedVersionAssignments `json:"consensus_determined_version_assignments"`
}

type SuiTransactionBlockKindEndOfEpochTransaction added in v0.0.25

type SuiTransactionBlockKindEndOfEpochTransaction struct {
	Kind         string                                `json:"kind"`
	Transactions []SuiEndOfEpochTransactionKindWrapper `json:"Transactions"`
}

type SuiTransactionBlockKindGenesis added in v0.0.25

type SuiTransactionBlockKindGenesis struct {
	Kind    string   `json:"kind"`
	Objects []string `json:"objects"`
}

type SuiTransactionBlockKindProgrammableTransaction added in v0.0.25

type SuiTransactionBlockKindProgrammableTransaction struct {
	Kind         string                  `json:"kind"`
	Inputs       []SuiCallArgWrapper     `json:"inputs"`
	Transactions []SuiTransactionWrapper `json:"transactions"`
}

type SuiTransactionBlockKindWrapper added in v0.0.25

type SuiTransactionBlockKindWrapper struct {
	SuiTransactionBlockKind
}

func (SuiTransactionBlockKindWrapper) MarshalJSON added in v0.0.25

func (w SuiTransactionBlockKindWrapper) MarshalJSON() ([]byte, error)

func (*SuiTransactionBlockKindWrapper) UnmarshalJSON added in v0.0.25

func (w *SuiTransactionBlockKindWrapper) UnmarshalJSON(data []byte) error

type SuiTransactionBlockResponse

type SuiTransactionBlockResponse struct {
	Digest                  string                    `json:"digest"`
	Transaction             *SuiTransactionBlock      `json:"transaction,omitempty"`
	RawTransaction          string                    `json:"rawTransaction,omitempty"`
	Effects                 *TransactionEffects       `json:"effects,omitempty"`
	Events                  []*SuiEvent               `json:"events,omitempty"`
	ObjectChanges           []*SuiObjectChangeWrapper `json:"objectChanges,omitempty"`
	BalanceChanges          []*BalanceChange          `json:"balanceChanges,omitempty"`
	TimestampMs             *string                   `json:"timestampMs,omitempty"`
	Checkpoint              *string                   `json:"checkpoint,omitempty"`
	ConfirmedLocalExecution *bool                     `json:"confirmedLocalExecution,omitempty"`
	Errors                  []string                  `json:"errors,omitempty"`
}

type SuiTransactionBlockResponseOptions

type SuiTransactionBlockResponseOptions struct {
	ShowInput          bool `json:"showInput,omitempty"`
	ShowEffects        bool `json:"showEffects,omitempty"`
	ShowEvents         bool `json:"showEvents,omitempty"`
	ShowObjectChanges  bool `json:"showObjectChanges,omitempty"`
	ShowBalanceChanges bool `json:"showBalanceChanges,omitempty"`
	ShowRawInput       bool `json:"showRawInput,omitempty"`
}

type SuiTransactionBlockResponseQuery

type SuiTransactionBlockResponseQuery struct {
	Filter  *TransactionFilter                  `json:"filter,omitempty"`
	Options *SuiTransactionBlockResponseOptions `json:"options,omitempty"`
}

type SuiTransactionMakeMoveVec added in v0.0.25

type SuiTransactionMakeMoveVec struct {
	MakeMoveVec [2]*SuiTransactionArgumentWrapper `json:"MakeMoveVec"`
}

type SuiTransactionMergeCoins added in v0.0.25

type SuiTransactionMergeCoins struct {
	MergeCoins [2]SuiTransactionArgumentWrapper `json:"MergeCoins"`
}

type SuiTransactionMoveCall added in v0.0.25

type SuiTransactionMoveCall struct {
	MoveCall MoveCallSuiTransaction `json:"MoveCall"`
}

type SuiTransactionPublish added in v0.0.25

type SuiTransactionPublish struct {
	Publish []string `json:"Publish"`
}

type SuiTransactionSplitCoins added in v0.0.25

type SuiTransactionSplitCoins struct {
	SplitCoins [2]SuiTransactionArgumentWrapper `json:"SplitCoins"`
}

type SuiTransactionTransferObjects added in v0.0.25

type SuiTransactionTransferObjects struct {
	TransferObjects [2]SuiTransactionArgumentWrapper `json:"TransferObjects"`
}

type SuiTransactionUpgrade added in v0.0.25

type SuiTransactionUpgrade struct {
	Upgrade [3]SuiTransactionArgumentWrapper `json:"Upgrade"`
}

type SuiTransactionWrapper added in v0.0.25

type SuiTransactionWrapper struct {
	SuiTransaction
}

func (*SuiTransactionWrapper) MarshalJSON added in v0.0.25

func (w *SuiTransactionWrapper) MarshalJSON() ([]byte, error)

func (*SuiTransactionWrapper) UnmarshalJSON added in v0.0.25

func (w *SuiTransactionWrapper) UnmarshalJSON(data []byte) error

type SuiValidatorSummary

type SuiValidatorSummary struct {
	SuiAddress                   string  `json:"suiAddress"`
	ProtocolPubkeyBytes          string  `json:"protocolPubkeyBytes"`
	NetworkPubkeyBytes           string  `json:"networkPubkeyBytes"`
	WorkerPubkeyBytes            string  `json:"workerPubkeyBytes"`
	ProofOfPossessionBytes       string  `json:"proofOfPossessionBytes"`
	Name                         string  `json:"name"`
	Description                  string  `json:"description"`
	ImageUrl                     string  `json:"imageUrl"`
	ProjectUrl                   string  `json:"projectUrl"`
	NetAddress                   string  `json:"netAddress"`
	P2pAddress                   string  `json:"p2pAddress"`
	PrimaryAddress               string  `json:"primaryAddress"`
	WorkerAddress                string  `json:"workerAddress"`
	NextEpochProtocolPubkeyBytes *string `json:"nextEpochProtocolPubkeyBytes"`
	NextEpochProofOfPossession   *string `json:"nextEpochProofOfPossession"`
	NextEpochNetworkPubkeyBytes  *string `json:"nextEpochNetworkPubkeyBytes"`
	NextEpochWorkerPubkeyBytes   *string `json:"nextEpochWorkerPubkeyBytes"`
	NextEpochNetAddress          *string `json:"nextEpochNetAddress"`
	NextEpochP2pAddress          *string `json:"nextEpochP2pAddress"`
	NextEpochPrimaryAddress      *string `json:"nextEpochPrimaryAddress"`
	NextEpochWorkerAddress       *string `json:"nextEpochWorkerAddress"`
	VotingPower                  string  `json:"votingPower"`
	OperationCapId               string  `json:"operationCapId"`
	GasPrice                     string  `json:"gasPrice"`
	CommissionRate               string  `json:"commissionRate"`
	NextEpochStake               string  `json:"nextEpochStake"`
	NextEpochGasPrice            string  `json:"nextEpochGasPrice"`
	NextEpochCommissionRate      string  `json:"nextEpochCommissionRate"`
	StakingPoolId                string  `json:"stakingPoolId"`
	StakingPoolActivationEpoch   *string `json:"stakingPoolActivationEpoch"`
	StakingPoolDeactivationEpoch *string `json:"stakingPoolDeactivationEpoch"`
	StakingPoolSuiBalance        string  `json:"stakingPoolSuiBalance"`
	RewardsPool                  string  `json:"rewardsPool"`
	PoolTokenBalance             string  `json:"poolTokenBalance"`
	PendingStake                 string  `json:"pendingStake"`
	PendingTotalSuiWithdraw      string  `json:"pendingTotalSuiWithdraw"`
	PendingPoolTokenWithdraw     string  `json:"pendingPoolTokenWithdraw"`
	ExchangeRatesId              string  `json:"exchangeRatesId"`
	ExchangeRatesSize            string  `json:"exchangeRatesSize"`
}

type TransactionBlockBytes added in v0.0.25

type TransactionBlockBytes struct {
	Gas          []SuiObjectRef           `json:"gas"`
	InputObjects []InputObjectKindWrapper `json:"inputObjects"`
	TxBytes      string                   `json:"txBytes"`
}

type TransactionBlockData

type TransactionBlockData struct {
	MessageVersion string                         `json:"messageVersion"`
	Transaction    SuiTransactionBlockKindWrapper `json:"transaction"`
	Sender         string                         `json:"sender"`
	GasData        SuiGasData                     `json:"gasData"`
}

type TransactionBlockEffectsModifiedAtVersions

type TransactionBlockEffectsModifiedAtVersions struct {
	ObjectId       string `json:"objectId"`
	SequenceNumber string `json:"sequenceNumber"`
}

type TransactionEffects

type TransactionEffects struct {
	MessageVersion       string                                      `json:"messageVersion"`
	Status               ExecutionStatus                             `json:"status"`
	ExecutedEpoch        string                                      `json:"executedEpoch"`
	GasUsed              GasCostSummary                              `json:"gasUsed"`
	ModifiedAtVersions   []TransactionBlockEffectsModifiedAtVersions `json:"modifiedAtVersions,omitempty"`
	SharedObjects        []SuiObjectRef                              `json:"sharedObjects,omitempty"`
	TransactionDigest    string                                      `json:"transactionDigest"`
	Created              []OwnedObjectRef                            `json:"created,omitempty"`
	Mutated              []OwnedObjectRef                            `json:"mutated,omitempty"`
	Deleted              []SuiObjectRef                              `json:"deleted,omitempty"`
	GasObject            OwnedObjectRef                              `json:"gasObject"`
	EventsDigest         *string                                     `json:"eventsDigest,omitempty"`
	Dependencies         []string                                    `json:"dependencies,omitempty"`
	Unwrapped            []OwnedObjectRef                            `json:"unwrapped,omitempty"`
	UnwrappedThenDeleted []SuiObjectRef                              `json:"unwrappedThenDeleted,omitempty"`
	Wrapped              []SuiObjectRef                              `json:"wrapped,omitempty"`
}

type TransactionFilter

type TransactionFilter struct {
	Checkpoint        *string                             `json:"Checkpoint,omitempty"`
	MoveFunction      *TransactionFilter_MoveFunction     `json:"MoveFunction,omitempty"`
	InputObject       *string                             `json:"InputObject,omitempty"`
	ChangedObject     *string                             `json:"ChangedObject,omitempty"`
	FromAddress       *string                             `json:"FromAddress,omitempty"`
	ToAddress         *string                             `json:"ToAddress,omitempty"`
	FromAndToAddress  *TransactionFilter_FromAndToAddress `json:"FromAndToAddress,omitempty"`
	FromOrToAddress   *TransactionFilter_FromOrToAddress  `json:"FromOrToAddress,omitempty"`
	TransactionKind   *string                             `json:"TransactionKind,omitempty"`
	TransactionKindIn []*string                           `json:"TransactionKindIn,omitempty"`
}

type TransactionFilter_FromAndToAddress

type TransactionFilter_FromAndToAddress struct {
	From string `json:"from"`
	To   string `json:"to"`
}

type TransactionFilter_FromOrToAddress

type TransactionFilter_FromOrToAddress struct {
	Addr string `json:"addr"`
}

type TransactionFilter_MoveFunction

type TransactionFilter_MoveFunction struct {
	Function *string `json:"function,omitempty"`
	Module   *string `json:"module,omitempty"`
	Package  string  `json:"package"`
}

type TransferObjectParams added in v0.0.25

type TransferObjectParams struct {
	ObjectID  string `json:"objectId"`
	Recipient string `json:"recipient"`
}

type TryGetPastObjectParams

type TryGetPastObjectParams struct {
	ID      string                `json:"id"`
	Version int                   `json:"version"`
	Options *SuiObjectDataOptions `json:"options,omitempty"`
}

type TypeOrigin

type TypeOrigin struct {
	ModuleName   string `json:"module_name"`
	DataTypeName string `json:"datatype_name"`
	Package      string `json:"package"`
}

type UpgradeInfo

type UpgradeInfo struct {
	UpgradedId      string `json:"upgraded_id"`
	UpgradedVersion int64  `json:"upgraded_version"`
}

type ValidatorApy

type ValidatorApy struct {
	Address string  `json:"address"`
	APY     float64 `json:"apy"`
}

type ValidatorsApy

type ValidatorsApy struct {
	APYs  []ValidatorApy `json:"apys"`
	Epoch string         `json:"epoch"`
}

type VersionTooHighDetails added in v0.0.25

type VersionTooHighDetails struct {
	AskedVersion  string `json:"asked_version"`
	LatestVersion string `json:"latest_version"`
	ObjectID      string `json:"object_id"`
}

type ZkLoginAuthenticator added in v0.0.25

type ZkLoginAuthenticator struct {
	Inputs        ZkLoginInputs    `json:"inputs"`
	MaxEpoch      string           `json:"maxEpoch"`
	UserSignature SignatureWrapper `json:"userSignature"`
}

type ZkLoginInputs added in v0.0.25

type ZkLoginInputs struct {
	AddressSeed      string       `json:"addressSeed"`
	HeaderBase64     string       `json:"headerBase64"`
	IssBase64Details Claim        `json:"issBase64Details"`
	ProofPoints      ZkLoginProof `json:"proofPoints"`
}

type ZkLoginProof added in v0.0.25

type ZkLoginProof struct {
	A []string   `json:"a"`
	B [][]string `json:"b"`
	C []string   `json:"c"`
}

Jump to

Keyboard shortcuts

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