Documentation
¶
Index ¶
- type Balance
- type BalanceChange
- type Checkpoint
- type CheckpointCommitment
- type CheckpointId
- type CheckpointPage
- type CoinMetadata
- type CoinStruct
- type CoinSupply
- type CommitteeInfo
- type DelegatedStake
- type DevInspectResults
- type DevInspectTransactionBlockParams
- type DisplayFieldsResponse
- type DryRunTransactionBlockParams
- type DryRunTransactionBlockResponse
- type DynamicFieldInfo
- type DynamicFieldName
- type DynamicFieldPage
- type DynamicFieldType
- type ECMHLiveObjectSetDigest
- type EndOfEpochData
- type EventId
- type ExecuteTransactionBlockParams
- type ExecuteTransactionRequestType
- type ExecutionStatus
- type GasCostSummary
- type GetAllBalancesParams
- type GetAllCoinsParams
- type GetBalanceParams
- type GetCheckpointParams
- type GetCheckpointsParams
- type GetCoinMetadataParams
- type GetCoinsParams
- type GetCommitteeInfoParams
- type GetDynamicFieldObjectParams
- type GetDynamicFieldsParams
- type GetMoveFunctionArgTypesParams
- type GetNormalizedMoveFunctionParams
- type GetNormalizedMoveModuleParams
- type GetNormalizedMoveModulesByPackageParams
- type GetNormalizedMoveStructParams
- type GetObjectParams
- type GetOwnedObjectsParams
- type GetProtocolConfigParams
- type GetStakesByIdsParams
- type GetStakesParams
- type GetTotalSupplyParams
- type GetTransactionBlockParams
- type MultiGetObjectsParams
- type MultiGetTransactionBlocksParams
- type ObjectOwner
- type ObjectOwnerWrapper
- type ObjectOwner_AddressOwner
- type ObjectOwner_ObjectOwner
- type ObjectOwner_Shared
- type ObjectOwner_SharedData
- type ObjectOwner_String
- type ObjectRead
- type ObjectResponseError
- type ObjectResponseErrorCode
- type OwnedObjectRef
- type PaginatedCoins
- type PaginatedEvents
- type PaginatedObjectsResponse
- type PaginatedTransactionResponse
- type ProtocolConfig
- type ProtocolConfigValue
- type ProtocolConfigValue_f64
- type ProtocolConfigValue_u32
- type ProtocolConfigValue_u64
- type QueryEventsParams
- type QueryTransactionBlocksParams
- type QueryTransactionBlocksParams_Order
- type RawData
- type ResolveNameServiceAddressParams
- type ResolveNameServiceNamesParams
- type ResolvedNameServiceNames
- type SignAndExecuteTransactionBlockParams
- type StakeObject
- type SubscribeEventParams
- type SubscribeTransactionParams
- type SuiActiveJwk
- type SuiCallArg
- type SuiEvent
- type SuiEventFilter
- type SuiEventFilter_MoveEventField
- type SuiEventFilter_MoveEventModule
- type SuiEventFilter_MoveModule
- type SuiEventFilter_TimeRange
- type SuiEventFilters
- type SuiExecutionResult
- type SuiGasData
- type SuiJWK
- type SuiJwkID
- type SuiMoveAbility
- type SuiMoveAbilitySet
- type SuiMoveModuleId
- type SuiMoveNormalizedField
- type SuiMoveNormalizedFunction
- type SuiMoveNormalizedModule
- type SuiMoveNormalizedModules
- type SuiMoveNormalizedStruct
- type SuiMoveStructTypeParameter
- type SuiMoveVisibility
- type SuiObjectChange
- type SuiObjectData
- type SuiObjectDataFilter
- type SuiObjectDataFilter_AddressOwner
- type SuiObjectDataFilter_MatchAll
- type SuiObjectDataFilter_MatchAny
- type SuiObjectDataFilter_MatchNone
- type SuiObjectDataFilter_MoveModule
- type SuiObjectDataFilter_MoveModule_Struct
- type SuiObjectDataFilter_ObjectId
- type SuiObjectDataFilter_ObjectIds
- type SuiObjectDataFilter_ObjectOwner
- type SuiObjectDataFilter_Package
- type SuiObjectDataFilter_StructType
- type SuiObjectDataFilter_Version
- type SuiObjectDataOptions
- type SuiObjectRef
- type SuiObjectResponse
- type SuiObjectResponseQuery
- type SuiParsedData
- type SuiParsedDataType
- type SuiSystemStateSummary
- type SuiTransactionBlock
- type SuiTransactionBlockKind
- type SuiTransactionBlockResponse
- type SuiTransactionBlockResponseOptions
- type SuiTransactionBlockResponseQuery
- type SuiValidatorSummary
- type TransactionBlockData
- type TransactionBlockEffectsModifiedAtVersions
- type TransactionEffects
- type TransactionFilter
- type TransactionFilter_FromAndToAddress
- type TransactionFilter_FromOrToAddress
- type TransactionFilter_MoveFunction
- type TryGetPastObjectParams
- type TypeOrigin
- type UpgradeInfo
- type ValidatorApy
- type ValidatorsApy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 CoinStruct ¶
type CoinSupply ¶
type CoinSupply struct {
Value string `json:"value"`
}
type CommitteeInfo ¶
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 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 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 GasCostSummary ¶
type GetAllBalancesParams ¶
type GetAllBalancesParams struct {
Owner string `json:"owner"`
}
type GetAllCoinsParams ¶
type GetBalanceParams ¶
type GetCheckpointParams ¶
type GetCheckpointParams struct {
ID CheckpointId `json:"id"`
}
type GetCheckpointsParams ¶
type GetCoinMetadataParams ¶
type GetCoinMetadataParams struct {
CoinType string `json:"coinType"`
}
type GetCoinsParams ¶
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 GetNormalizedMoveModulesByPackageParams ¶
type GetNormalizedMoveModulesByPackageParams struct {
Package string `json:"package"`
}
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 {
}
type ObjectOwner_SharedData ¶
type ObjectOwner_SharedData struct {
}
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 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 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 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 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
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 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 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 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 ¶
type SuiObjectDataFilter struct {
*SuiObjectDataFilter_MatchAll
*SuiObjectDataFilter_MatchAny
*SuiObjectDataFilter_MatchNone
*SuiObjectDataFilter_Package
*SuiObjectDataFilter_MoveModule
*SuiObjectDataFilter_StructType
*SuiObjectDataFilter_AddressOwner
*SuiObjectDataFilter_ObjectOwner
*SuiObjectDataFilter_ObjectId
*SuiObjectDataFilter_ObjectIds
*SuiObjectDataFilter_Version
}
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_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 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 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"`
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_FromOrToAddress ¶
type TransactionFilter_FromOrToAddress struct {
Addr string `json:"addr"`
}
type TryGetPastObjectParams ¶
type TryGetPastObjectParams struct {
ID string `json:"id"`
Version int `json:"version"`
Options *SuiObjectDataOptions `json:"options,omitempty"`
}
type TypeOrigin ¶
type UpgradeInfo ¶
type ValidatorApy ¶
type ValidatorsApy ¶
type ValidatorsApy struct {
APYs []ValidatorApy `json:"apys"`
Epoch string `json:"epoch"`
}
Click to show internal directories.
Click to hide internal directories.