types

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 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 CoinMetadata

type CoinMetadata struct {
	Decimals    int    `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 DelegatedStake

type DelegatedStake struct {
	ValidatorAddress string        `json:"validatorAddress"`
	StakingPool      string        `json:"stakingPool"`
	Stakes           []StakeObject `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,omitempty"`
	Error *ObjectResponseError `json:"error,omitempty"`
}

DisplayFieldsResponse

type DryRunTransactionBlockParams

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

type DryRunTransactionBlockResponse

type DryRunTransactionBlockResponse struct {
	Effects        TransactionEffects   `json:"effects"`
	Events         []SuiEvent           `json:"events"`
	ObjectChanges  []SuiObjectChange    `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"`
}

type EndOfEpochData

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

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 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 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) 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_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 ObjectOwner_String

type ObjectOwner_String string

type ObjectRead

type ObjectRead struct {
	Details *json.RawMessage `json:"details"`
	Status  string           `json:"status"`
}

type ObjectResponseError

type ObjectResponseError struct {
	NotExists            ObjectResponseErrorCode `json:"notExists"`
	DynamicFieldNotFound ObjectResponseErrorCode `json:"dynamicFieldNotFound"`
	Deleted              ObjectResponseErrorCode `json:"deleted"`
	Unknown              ObjectResponseErrorCode `json:"unknown"`
	DisplayError         ObjectResponseErrorCode `json:"displayError"`
}

type ObjectResponseErrorCode

type ObjectResponseErrorCode struct {
	Code           string `jons:"code"`
	ObjectId       string `json:"object_id,omitempty"`
	ParentObjectId string `json:"parent_object_id,omitempty"`
	Digest         string `json:"digest"`
	Version        string `json:"version"`
	Error          string `json:"error"`
}

type OwnedObjectRef

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

type PaginatedCoins

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

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 PaginatedTransactionResponse

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

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 struct {
	DataType          string                 `json:"dataType"`                    //
	Id                string                 `json:"id,omitempty"`                // through package
	Type              string                 `json:"type,omitempty"`              // through moveObject
	HasPublicTransfer *bool                  `json:"hasPublicTransfer,omitempty"` // through moveObject
	Version           int64                  `json:"version"`                     //
	BcsBytes          *string                `json:"bcsBytes,omitempty"`          // through moveObject
	ModuleMap         map[string]string      `json:"moduleMap,omitempty"`         // through package
	TypeOriginTable   []TypeOrigin           `json:"typeOriginTable,omitempty"`   // through package
	LinkageTable      map[string]UpgradeInfo `json:"linkageTable,omitempty"`      // through package
}

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 StakeObject

type StakeObject struct {
	StakedSuiId       string  `json:"stakedSuiId"`               // through Pending/Active/Unstaked
	StakeRequestEpoch string  `json:"stakeRequestEpoch"`         // through Pending/Active/Unstaked
	StakeActiveEpoch  string  `json:"stakeActiveEpoch"`          // through Pending/Active/Unstaked
	Principal         string  `json:"principal"`                 // through Pending/Active/Unstaked
	Status            string  `json:"status"`                    // through Pending/Active/Unstaked
	EstimatedReward   *string `json:"estimatedReward,omitempty"` // through Active
}

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 SuiCallArg

type SuiCallArg struct {
	Type                 string       `json:"type"`                           // through immOrOwnedObject/sharedObject/receiving/pure
	ObjectType           *string      `json:"objectType,omitempty"`           // through immOrOwnedObject/sharedObject/receiving
	ObjectId             *string      `json:"objectId,omitempty"`             // through immOrOwnedObject/sharedObject/receiving
	InitialSharedVersion *string      `json:"initialSharedVersion,omitempty"` // through sharedObject
	Version              *string      `json:"version,omitempty"`              // through immOrOwnedObject/receiving
	Mutable              *bool        `json:"mutable,omitempty"`              // through sharedObject
	Digest               *string      `json:"digest,omitempty"`               // through immOrOwnedObject/receiving
	ValueType            *string      `json:"valueType,omitempty"`            // through pure
	Value                *interface{} `json:"value,omitempty"`                // through pure
}

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"`
	ReturnValues            [][2]interface{} `json:"returnValues,omitempty"`
}

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 SuiMoveModuleId

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

type SuiMoveNormalizedField

type SuiMoveNormalizedField struct {
	Name string      `json:"name"`
	Type interface{} `json:"type"` // native type: SuiMoveNormalizedType
}

type SuiMoveNormalizedFunction

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

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 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 struct {
	Type            string              `json:"type"`                      //
	Sender          *string             `json:"sender,omitempty"`          // through transferred/mutated/deleted/wrapped/created
	Recipient       *ObjectOwnerWrapper `json:"recipient,omitempty"`       // through transferred
	Owner           *ObjectOwnerWrapper `json:"owner,omitempty"`           // through mutated/created
	ObjectType      *string             `json:"objectType,omitempty"`      // through transferred/mutated/deleted/wrapped/created
	ObjectId        *string             `json:"objectId,omitempty"`        // through transferred/mutated/deleted/wrapped/created
	Version         string              `json:"version"`                   //
	PreviousVersion *string             `json:"previousVersion,omitempty"` // through mutated/
	Digest          *string             `json:"digest,omitempty"`          // through published/transferred/mutated/created
	Modules         *[]string           `json:"modules,omitempty"`         // through published/
	PackageId       *string             `json:"packageId,omitempty"`       // through published/
}

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             *SuiParsedData         `json:"content,omitempty"`
	Bcs                 *RawData               `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  int    `json:"version"`
	Digest   string `json:"digest"`
}

type SuiObjectResponse

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

type SuiObjectResponseQuery

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

type SuiParsedData

type SuiParsedData struct {
	DataType          SuiParsedDataType       `json:"dataType"`                    //
	Type              *string                 `json:"type,omitempty"`              // through moveObject
	HasPublicTransfer *bool                   `json:"hasPublicTransfer,omitempty"` // through moveObject
	Fields            *interface{}            `json:"fields,omitempty"`            // through moveObject, native type: MoveStruct
	Disassembled      *map[string]interface{} `json:"disassembled,omitempty"`      // through package
}

type SuiParsedDataType

type SuiParsedDataType string
var (
	Package    SuiParsedDataType = "package"
	MoveObject SuiParsedDataType = "moveObject"
)

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]interface{}      `json:"atRiskValidators"`
	ValidatorReportRecords                [][2]interface{}      `json:"validatorReportRecords"`
}

type SuiTransactionBlock

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

type SuiTransactionBlockKind

type SuiTransactionBlockKind struct {
	Kind                  string             `json:"kind"`                               // through ChangeEpoch/Genesis/ConsensusCommitPrologue/ProgrammableTransaction/AuthenticatorStateUpdate/EndOfEpochTransaction
	ComputationCharge     *string            `json:"computation_charge,omitempty"`       // through ChangeEpoch
	Epoch                 *string            `json:"epoch,omitempty"`                    // through ChangeEpoch/ConsensusCommitPrologue/AuthenticatorStateUpdate
	EpochStartTimestampMs *string            `json:"epoch_start_timestamp_ms,omitempty"` // through ChangeEpoch
	StorageCharge         *string            `json:"storage_charge,omitempty"`           // through ChangeEpoch
	StorageRebate         *string            `json:"storage_rebate,omitempty"`           // through ChangeEpoch
	Objects               *[]string          `json:"objects,omitempty"`                  // through Genesis
	CommitTimestampMs     *string            `json:"commit_timestamp_ms,omitempty"`      // through ConsensusCommitPrologue
	Round                 *string            `json:"round,omitempty"`                    // through ConsensusCommitPrologue/AuthenticatorStateUpdate
	Inputs                *[]SuiCallArg      `json:"inputs,omitempty"`                   // through ProgrammableTransaction
	Transactions          *[]json.RawMessage `json:"transactions,omitempty"`             // through ProgrammableTransaction
	NewActiveJwks         *[]SuiActiveJwk    `json:"new_active_jwks,omitempty"`          // through AuthenticatorStateUpdate
}

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           *[]SuiObjectChange   `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 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 TransactionBlockData

type TransactionBlockData struct {
	MessageVersion string                  `json:"messageVersion"`
	Transaction    SuiTransactionBlockKind `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 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"`
}

Jump to

Keyboard shortcuts

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