models

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Balance

type Balance struct {
	CoinType        string      `json:"coinType"`
	CoinObjectCount uint64      `json:"coinObjectCount"`
	TotalBalance    uint64      `json:"totalBalance"`
	LockedBalance   interface{} `json:"lockedBalance"`
}

type BatchAndExecuteTransactionRequest

type BatchAndExecuteTransactionRequest struct {
	BatchTransactionRequest
}

type BatchAndExecuteTransactionResponse

type BatchAndExecuteTransactionResponse struct {
	Result []ExecuteTransactionResponse
}

type BatchTransactionRequest

type BatchTransactionRequest struct {
	Signer                  string                    `json:"signer"`
	SingleTransactionParams []SingleTransactionParams `json:"singleTransactionParams"`
	Gas                     *string                   `json:"gas"`
	GasBudget               string                    `json:"gasBudget"`
}

type BatchTransactionResponse

type BatchTransactionResponse struct {
	TransactionBytes string                   `json:"transactionBytes"`
	Gas              []sui_types.SuiObjectRef `json:"gas"`
	InputObject      interface{}              `json:"inputObject"`
	TxBytes          string                   `json:"txBytes"`
}

type CoinPage

type CoinPage struct {
	CoinType     string `json:"coinType"`
	CoinObjectId string `json:"coinObjectId"`
	Version      uint64 `json:"version"`
	Digest       string `json:"digest"`
	Balance      uint64 `json:"balance"`
}

type CursorPage added in v0.0.2

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

type DevInsepctTransactionRequest

type DevInsepctTransactionRequest struct {
	TxBytes string
}

type DevInspectMoveCallRequest

type DevInspectMoveCallRequest struct {
	SenderAddress   string
	PackageObjectID string
	Module          string
	Function        string
	TypeArguments   []string
	Arguments       []interface{}
}

type DevInspectMoveCallResponse

type DevInspectMoveCallResponse struct {
	Effects sui_json_rpc_types.SuiTransactionEffects `json:"effects"`
	Results []interface{}                            `json:"results"`
}

type DevInspectTransactionResponse

type DevInspectTransactionResponse struct {
	Effects sui_json_rpc_types.SuiTransactionEffects `json:"effects"`
	Results []interface{}                            `json:"results"`
}

type DryRunTransactionRequest

type DryRunTransactionRequest struct {
	TxBytes   string `json:"txBytes"`
	SigScheme string `json:"sigScheme"`
	Signature string `json:"signature"`
	PubKey    string `json:"pubKey"`
}

type DryRunTransactionResponse

type DryRunTransactionResponse struct {
	TransactionBytes string                 `json:"transactionBytes"`
	Gas              sui_types.SuiObjectRef `json:"gas"`
	InputObject      interface{}            `json:"inputObject"`
	TxBytes          string                 `json:"txBytes"`
}

type DynamicFieldData

type DynamicFieldData struct {
	Name       string `json:"name"`
	BCSName    string `json:"bcsName"`
	Type       string `json:"type"`
	ObjectType string `json:"objectType"`
	ObjectId   string `json:"objectId"`
	Version    string `json:"version"`
	Digest     string `json:"digest"`
}

type EventQuery added in v0.0.2

type EventQuery struct {
	// MoveModule    MoveModule `json:"MoveModule,omitempty"`
	MoveEventType string `json:"MoveEventType,omitempty"`
}

type Events

type Events struct {
	BCS string `json:"bcs"`
	ID  struct {
		TxDigest string `json:"txDigest"`
	} `json:"id"`
	PackageId         string      `json:"packageId"`
	ParsedJson        interface{} `json:"parsedJson"`
	Sender            string      `json:"sender"`
	TransactionModule string      `json:"transactionModule"`
	Type              string      `json:"type"`
}

type ExecuteTransactionRequest

type ExecuteTransactionRequest struct {
	TxBytes   string   `json:"txBytes"`
	Signature []string `json:"signature"`
}

type ExecuteTransactionResponse

type ExecuteTransactionResponse struct {
	Digest         string      `json:"digest"`
	RawTransaction string      `json:"rawTransaction"`
	Transaction    interface{} `json:"transaction"`
	Effects        struct {
		Status struct {
			Status string `json:"status"`
		} `json:"status"`
	} `json:"effects"`
	Events                  interface{} `json:"events"`
	ObjectChanges           interface{} `json:"objectChanges"`
	BalanceChanges          interface{} `json:"balanceChanges"`
	ConfirmedLocalExecution bool        `json:"confirmedLocalExecution"`
}

type ExecuteTransactionSerializedSigRequest

type ExecuteTransactionSerializedSigRequest struct {
	TxBytes     string
	Signature   string
	RequestType interface{}
}

type ExecuteTransactionSerializedSigResponse

type ExecuteTransactionSerializedSigResponse struct {
	EffectsCert interface{} `json:"effectsCert"`
}

type GetAllBalancesRequest

type GetAllBalancesRequest struct {
	Owner string
}

type GetAllBalancesResponse

type GetAllBalancesResponse struct {
	Balance []Balance `json:"balance"`
}

type GetAllCoinsRequest

type GetAllCoinsRequest struct {
	Owner  string
	Cursor *string
	Limit  uint64
}

type GetAllCoinsResponse

type GetAllCoinsResponse struct {
	Data       []CoinPage `json:"data"`
	NextCursor string     `json:"nextCursor"`
}

type GetBalanceRequest

type GetBalanceRequest struct {
	Owner    string
	CoinType string
}

type GetBalanceResponse

type GetBalanceResponse struct {
	Balance
}

type GetCheckpointContentsBySequenceNumberRequest

type GetCheckpointContentsBySequenceNumberRequest struct {
	SequenceNumber uint64
}

type GetCheckpointContentsBySequenceNumberResponse

type GetCheckpointContentsBySequenceNumberResponse struct {
	Transactions []interface{} `json:"transactions,omitempty"`
}

type GetCheckpointContentsRequest

type GetCheckpointContentsRequest struct {
	Digest string `json:"digest,omitempty"`
}

type GetCheckpointContentsResponse

type GetCheckpointContentsResponse struct {
	Transactions []interface{} `json:"transactions,omitempty"`
}

type GetCheckpointRequest

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

type GetCheckpointResponse

type GetCheckpointResponse struct {
	SequenceNumber           string   `json:"sequenceNumber"`
	Digest                   string   `json:"digest"`
	NetworkTotalTransactions uint64   `json:"networkTotalTransactions"`
	TimestampMs              uint64   `json:"timestampMs"`
	PreviousDigest           string   `json:"previousDigest"`
	Transactions             []string `json:"transactions"`
}

type GetCheckpointSummaryRequest

type GetCheckpointSummaryRequest struct {
	SequenceNumber uint64 `json:"sequenceNumber,omitempty"`
}

type GetCheckpointSummaryResponse

type GetCheckpointSummaryResponse struct {
	Epoch                      uint64      `json:"epoch,omitempty"`
	SequenceNumber             uint64      `json:"sequence_number,omitempty"`
	NetworkTotalTransaction    uint64      `json:"network_total_transactions,omitempty"`
	ContentDigest              string      `json:"content_digest,omitempty"`
	PreviousDigest             string      `json:"previous_digest,omitempty"`
	EpochRollingGasCostSummary interface{} `json:"epoch_rolling_gas_cost_summary,omitempty"`
}

type GetCoinMetadataRequest

type GetCoinMetadataRequest struct {
	CoinType string `json:"coin_type"`
}

type GetCoinMetadataResponse

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

type GetCoinsRequeset

type GetCoinsRequeset struct {
	Owner    string `json:"owner"`
	CoinType string `json:"coin_type"`
	Cursor   string `json:"cursor"`
	Limit    uint64 `json:"limit"`
}

type GetCoinsResponse

type GetCoinsResponse struct {
	Data []CoinPage `json:"data"`
}

type GetCommitteeInfoRequest

type GetCommitteeInfoRequest struct {
	EpochId uint64 `json:"epoch"`
}

type GetCommitteeInfoResponse

type GetCommitteeInfoResponse struct {
	Epoch         uint64      `json:"epoch"`
	CommittedInfo interface{} `json:"committee_info"`
}

type GetDelegatedStakeResponse

type GetDelegatedStakeResponse struct {
	DelegateStake []interface{}
}

type GetDelegatedStakesRequest

type GetDelegatedStakesRequest struct {
	Owner string `json:"owner,omitempty"`
}

type GetDynamicFieldObejctRequest

type GetDynamicFieldObejctRequest struct {
	ParentObjectID string
	Name           string
}

type GetDynamicFieldObjectResponse

type GetDynamicFieldObjectResponse struct {
	Details struct {
		Data sui_json_rpc_types.SuiParsedMoveObject `json:"data"`
		sui_json_rpc_types.OwnedObjectRef
		PreviousTransaction string                 `json:"previousTransaction"`
		StorageRebate       uint64                 `json:"storageRebate"`
		Reference           sui_types.SuiObjectRef `json:"reference"`
	} `json:"details"`
	Status string `json:"status"`
}

type GetDynamicFieldRequest

type GetDynamicFieldRequest struct {
	ParentObjectID string `json:"parent_object_id"`
}

type GetDynamicFieldResponse

type GetDynamicFieldResponse struct {
	HasNextPage bool               `json:"hasNextPage"`
	NextCursor  string             `json:"nextCursor"`
	Data        []DynamicFieldData `json:"data"`
}

type GetEventsRequest

type GetEventsRequest struct {
	EventQuery EventQuery
	Cursor     *string
	Limit      uint64
	DescOrder  bool
}

type GetEventsResponse

type GetEventsResponse struct {
	Result []sui_json_rpc_types.SuiEventEnvelop
}

type GetLatestCheckpointSequenceNumberRequest

type GetLatestCheckpointSequenceNumberRequest struct {
}

type GetMoveFunctionArgTypesRequest

type GetMoveFunctionArgTypesRequest struct {
	Package  string
	Module   string
	Function string
}

type GetMoveFunctionArgTypesResponse

type GetMoveFunctionArgTypesResponse struct {
	Result []interface{} `json:"result"`
}

type GetMultiObjectRequest added in v0.0.4

type GetMultiObjectRequest struct {
	ObjectIDs []string `json:"objectIDs"`
}

type GetMultiObjectResponse added in v0.0.4

type GetMultiObjectResponse struct {
	Data []GetObjectResponse
}

type GetNormalizedMoveFunctionRequest

type GetNormalizedMoveFunctionRequest struct {
	Package      string `json:"package"`
	ModuleName   string `json:"moduleName"`
	FunctionName string `json:"functionName"`
}

type GetNormalizedMoveFunctionResponse

type GetNormalizedMoveFunctionResponse struct {
	Result sui_json_rpc_types.SuiMoveNormalizedFunction
}

type GetNormalizedMoveModuleRequest

type GetNormalizedMoveModuleRequest struct {
	Package    string `json:"package"`
	ModuleName string `json:"moduleName"`
}

type GetNormalizedMoveModuleResponse

type GetNormalizedMoveModuleResponse struct {
	Result sui_json_rpc_types.SuiMoveNormalizedModule
}

type GetNormalizedMoveModulesByPackageRequest

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

type GetNormalizedMoveModulesByPackageResponse

type GetNormalizedMoveModulesByPackageResponse struct {
	Result map[string]sui_json_rpc_types.SuiMoveNormalizedModule
}

type GetNormalizedMoveStructRequest

type GetNormalizedMoveStructRequest struct {
	Package    string `json:"package"`
	ModuleName string `json:"moduleName"`
	StructName string `json:"structName"`
}

type GetNormalizedMoveStructResponse

type GetNormalizedMoveStructResponse struct {
	Result sui_json_rpc_types.SuiMoveNormalizedStruct
}

type GetObjectRequest

type GetObjectRequest struct {
	ObjectID string `json:"objectID"`
}

type GetObjectResponse

type GetObjectResponse struct {
	Data ObjectData `json:"data"`
}

type GetObjectsOwnedByAddressRequest

type GetObjectsOwnedByAddressRequest struct {
	Address string `json:"address"`
}

type GetObjectsOwnedByAddressResponse

type GetObjectsOwnedByAddressResponse struct {
	Result []SuiObjectInfo `json:"result"`
}

type GetObjectsOwnedByObjectRequest

type GetObjectsOwnedByObjectRequest struct {
	ObjectID string `json:"objectID"`
}

type GetObjectsOwnedByObjectResponse

type GetObjectsOwnedByObjectResponse struct {
	Result []SuiObjectInfo `json:"result"`
}

type GetOwnedObjectsRequest

type GetOwnedObjectsRequest struct {
	Address string `json:"address"`
	Cursor  *string
	Limit   uint64
}

type GetOwnedObjectsResponse

type GetOwnedObjectsResponse struct {
	Data        []sui_json_rpc_types.SuiParsedMoveObject `json:"data"`
	HasNextPage bool                                     `json:"hasNextPage"`
	NextCursor  string                                   `json:"nextCursor"`
}

type GetRawObjectRequest

type GetRawObjectRequest struct {
	ObjectID string `json:"objectID"`
}

type GetRawObjectResponse

type GetRawObjectResponse struct {
	Details struct {
		Data sui_json_rpc_types.SuiParsedMoveObject `json:"data"`
		sui_json_rpc_types.OwnedObjectRef
		PreviousTransaction string                 `json:"previousTransaction"`
		StorageRebate       uint64                 `json:"storageRebate"`
		Reference           sui_types.SuiObjectRef `json:"reference"`
	} `json:"details"`
	Status string `json:"status"`
}

type GetRecentTransactionRequest

type GetRecentTransactionRequest struct {
	Count uint64
}

type GetRecentTransactionResponse

type GetRecentTransactionResponse struct {
	Result []GetTransactionMetaData `json:"result"`
}

type GetSuiSystemStateRequest

type GetSuiSystemStateRequest struct {
}

type GetSuiSystemStateResponse

type GetSuiSystemStateResponse struct {
	Info                   interface{} `json:"info"`
	ChainID                interface{} `json:"chain_id"`
	Epoch                  uint64      `json:"epoch"`
	Validators             interface{} `json:"validators"`
	TreasuryCap            interface{} `json:"treasury_cap"`
	StorageFund            interface{} `json:"storage_fund"`
	Parameters             interface{} `json:"parameters"`
	ReferenceGasPrice      uint64      `json:"reference_gas_price"`
	ValidatorReportRecords interface{} `json:"validator_report_records"`
	StakeSubsidy           interface{} `json:"stake_subsidy"`
}

type GetTotalSupplyRequest

type GetTotalSupplyRequest struct {
	CoinType string
}

type GetTotalSupplyResponse

type GetTotalSupplyResponse struct{}

type GetTotalTransactionNumberRequest

type GetTotalTransactionNumberRequest struct{}

type GetTotalTransactionNumberResponse

type GetTotalTransactionNumberResponse struct {
	TotalNumberOfTransaction uint64 `json:"totalNumberOfTransaction"`
}

type GetTransactionAuthSignersRequest

type GetTransactionAuthSignersRequest struct {
	Digest string
}

type GetTransactionAuthSignersResponse

type GetTransactionAuthSignersResponse struct {
	Signers []string `json:"signers"`
}

type GetTransactionBlockRequest

type GetTransactionBlockRequest struct {
	Digest string `json:"digest"`
}

type GetTransactionBlockResponse

type GetTransactionBlockResponse struct {
	Digest    string   `json:"digest"`
	Checkpint uint64   `json:"checkpoint"`
	Events    []Events `json:"events"`
}

type GetTransactionMetaData

type GetTransactionMetaData struct {
	GatewayTxSeqNumber uint64 `json:"gatewayTxSeqNumber"`
	TransactionDigest  string `json:"transactionDigest"`
}

type GetTransactionRequest

type GetTransactionRequest struct {
	Digest string `json:"digest"`
}

type GetTransactionResponse

type GetTransactionResponse struct {
	Certificate sui_json_rpc_types.SuiCertifiedTransaction `json:"certificate"`
	Effects     sui_json_rpc_types.SuiTransactionEffects   `json:"effects"`
	TimestampMs uint64                                     `json:"timestamp_ms,omitempty"`

	// ParserData with Schema
	ParsedData interface{} `json:"parsed_data,omitempty"`
}

type GetTransactionsByInputObjectRequest

type GetTransactionsByInputObjectRequest struct {
	ObjectID string `json:"objectID"`
}

type GetTransactionsByInputObjectResponse

type GetTransactionsByInputObjectResponse struct {
	Result []GetTransactionMetaData `json:"result"`
}

type GetTransactionsByMoveFunctionRequest

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

type GetTransactionsByMoveFunctionResponse

type GetTransactionsByMoveFunctionResponse struct {
	Result []GetTransactionMetaData `json:"result"`
}

type GetTransactionsByMutatedObjectRequest

type GetTransactionsByMutatedObjectRequest struct {
	ObjectID string
}

type GetTransactionsByMutatedObjectResponse

type GetTransactionsByMutatedObjectResponse struct {
	Result []GetTransactionMetaData `json:"result"`
}

type GetTransactionsFromAddressRequest

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

type GetTransactionsFromAddressResponse

type GetTransactionsFromAddressResponse struct {
	Result []GetTransactionMetaData `json:"result"`
}

type GetTransactionsInRangeRequest

type GetTransactionsInRangeRequest struct {
	Start uint64 `json:"start"`
	End   uint64 `json:"end"`
}

type GetTransactionsInRangeResponse

type GetTransactionsInRangeResponse struct {
	Result []GetTransactionMetaData `json:"result"`
}

type GetTransactionsToAddressRequest

type GetTransactionsToAddressRequest struct {
	Addr string
}

type GetTransactionsToAddressResponse

type GetTransactionsToAddressResponse struct {
	Result []GetTransactionMetaData
}

type GetValidatorsRequest

type GetValidatorsRequest struct {
}

type GetValidatorsResponse

type GetValidatorsResponse struct {
	Result []ValidatorMetadata `json:"result"`
}

type JsonRPCRequest

type JsonRPCRequest struct {
	JsonRPC string        `json:"jsonrpc"`
	ID      uint64        `json:"id"`
	Method  string        `json:"method"`
	Params  []interface{} `json:"params"`
}

type MergeCoinsRequest

type MergeCoinsRequest struct {
	Signer      string `json:"signer"`
	PrimaryCoin string `json:"primaryCoin"`
	CoinToMerge string `json:"coinToMerge"`
	Gas         string `json:"gas"`
	GasBudget   string `json:"gasBudget"`
}

type MergeCoinsResponse

type MergeCoinsResponse struct {
	TransactionBytes string                 `json:"transactionBytes"`
	Gas              sui_types.SuiObjectRef `json:"gas"`
	InputObject      interface{}            `json:"inputObject"`
	TxBytes          string                 `json:"txBytes"`
}

type MintNFTRequest

type MintNFTRequest struct {
	Signer         string
	NFTName        string
	NFTDescription string
	NFTUrl         string
	GasObject      string
	GasBudget      uint64
}

type MoveCallAndExecuteTransactionRequest

type MoveCallAndExecuteTransactionRequest struct {
	MoveCallRequest
}

type MoveCallAndExecuteTransactionResponse

type MoveCallAndExecuteTransactionResponse struct {
	ExecuteTransactionResponse
}

type MoveCallRequest

type MoveCallRequest struct {
	Signer          string        `json:"signer"`
	PackageObjectId string        `json:"packageObjectId"`
	Module          string        `json:"module"`
	Function        string        `json:"function"`
	TypeArguments   interface{}   `json:"typeArguments"`
	Arguments       []interface{} `json:"arguments"`
	Gas             *string       `json:"gas"`
	GasBudget       string        `json:"gasBudget"`
	ExecutionMode   *string       `json:"execution_mode"`
}

type MoveCallResponse

type MoveCallResponse struct {
	Gas          []sui_types.SuiObjectRef `json:"gas"`
	InputObjects interface{}              `json:"inputObjects"`
	TxBytes      string                   `json:"txBytes"`
}

type MoveModule added in v0.0.2

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

type ObjectData added in v0.0.4

type ObjectData struct {
	BSC struct {
		BcsBytes          string `json:"bcsBytes"`
		DataType          string `json:"dataType"`
		HasPublicTransfer bool   `json:"hasPublicTransfer"`
		Type              string `json:"type"`
		Version           string `json:"version"`
	} `json:"bsc"`
	Digest   string `json:"digest"`
	ObjectID string `json:"objectId"`
	Version  string `json:"version"`
	Type     string `json:"type"`
	Owner    struct {
		AddressOwner string `json:"AddressOwner"`
	} `json:"owner"`
	PreviousTransaction string `json:"previousTransaction"`
	StorageRebate       string `json:"storageRebate"`
	Content             struct {
		DataType          string `json:"dataType"`
		Type              string `json:"type"`
		HasPublicTransfer bool   `json:"hasPublicTransfer"`
		Fields            struct {
			Balance string `json:"balance"`
			Id      struct {
				Id string `json:"id"`
			} `json:"id"`
			Name     string `json:"name"`
			ImageURL string `json:"image_url"`
			ImgURL   string `json:"img_url"`
			URL      string `json:"url"`
		} `json:"fields"`
	} `json:"content"`
	Display struct {
		Data struct {
			Collection  string `json:"collection"`
			Creator     string `json:"creator"`
			Description string `json:"description"`
			ImageURL    string `json:"image_url"`
			ProjectURL  string `json:"project_url"`
			Name        string `json:"name"`
		} `json:"data"`
	} `json:"display"`
}

type Operation

type Operation struct {
	JsonRPC string        `json:"jsonrpc"`
	ID      uint64        `json:"id"`
	Method  string        `json:"method"`
	Params  []interface{} `json:"params"`
}

type PayAllSuiRequest

type PayAllSuiRequest struct {
	Signer     string   `json:"suiAddress,omitempty"`
	InputCoins []string `json:"inputCoins,omitempty"`
	Recipient  string   `json:"recipient,omitempty"`
	GasBudget  uint64   `json:"gasBudget,omitempty"`
}

type PayAllSuiResponse

type PayAllSuiResponse struct {
	TransactionBytes string                 `json:"transactionBytes"`
	Gas              sui_types.SuiObjectRef `json:"gas"`
	InputObject      interface{}            `json:"inputObject"`
	TxBytes          string                 `json:"txBytes"`
}

type PayRequest

type PayRequest struct {
	Signer     string   `json:"signer"`
	InputCoins []string `json:"inputCoins"`
	Recipient  []string `json:"recipient"`
	Amounts    []string `json:"amounts"`
	Gas        string   `json:"gas"`
	GasBudget  uint64   `json:"gasBudget"`
}

type PayResponse

type PayResponse struct {
	TransactionBytes string                 `json:"transactionBytes"`
	Gas              sui_types.SuiObjectRef `json:"gas"`
	InputObject      interface{}            `json:"inputObject"`
	TxBytes          string                 `json:"txBytes"`
}

type PaySuiRequest

type PaySuiRequest struct {
	Signer     string   `json:"signer,omitempty"`
	InputCoins []string `json:"inputCoins,omitempty"`
	Recipient  []string `json:"recipient,omitempty"`
	GasBudget  uint64   `json:"gasBudget,omitempty"`
}

type PaySuiResponse

type PaySuiResponse struct {
	TransactionBytes string                 `json:"transactionBytes"`
	Gas              sui_types.SuiObjectRef `json:"gas"`
	InputObject      interface{}            `json:"inputObject"`
	TxBytes          string                 `json:"txBytes"`
}

type PublishRequest

type PublishRequest struct {
	Sender          string   `json:"sender"`
	CompiledModules []string `json:"compiledModules"`
	Gas             string   `json:"gas"`
	GasBudget       uint64   `json:"gasBudget"`
}

type PublishResponse

type PublishResponse struct {
	TransactionBytes string                 `json:"transactionBytes"`
	Gas              sui_types.SuiObjectRef `json:"gas"`
	InputObject      interface{}            `json:"inputObject"`
	TxBytes          string                 `json:"txBytes"`
}

type QueryEventsRequest added in v0.0.2

type QueryEventsRequest struct {
	EventQuery EventQuery
	Cursor     *CursorPage
	Limit      uint64
	DescOrder  bool
}

type QueryEventsResponse added in v0.0.2

type QueryEventsResponse struct {
	Data        []sui_json_rpc_types.SuiEventEnvelop `json:"data"`
	HasNextPage bool                                 `json:"hasNextPage"`
	NextCursor  struct {
		TxDigest string `json:"txDigest"`
		EventSeq string `json:"eventSeq"`
	} `json:"nextCursor"`
}

type Request

type Request struct {
	Name       string
	HttpMethod string
	HttpPath   string
}

type RequestAddDelegationRequest

type RequestAddDelegationRequest struct {
	Signer    string
	Coins     []string
	Amount    uint64
	Validator string
	Gas       string
	GasBudget uint64
}

type RequestAddDelegationResponse

type RequestAddDelegationResponse struct {
	TransactionBytes string                 `json:"transactionBytes"`
	Gas              sui_types.SuiObjectRef `json:"gas"`
	InputObject      interface{}            `json:"inputObject"`
	TxBytes          string                 `json:"txBytes"`
}

type RequestSwitchDelegationRequest

type RequestSwitchDelegationRequest struct {
	Signer                string
	Delegation            string
	StakedSui             string
	NewValidatorAddress   string
	SwitchPoolTokenAmount uint64
	Gas                   string
	GasBudget             uint64
}

type RequestSwitchDelegationResponse

type RequestSwitchDelegationResponse struct {
	TransactionBytes string                 `json:"transactionBytes"`
	Gas              sui_types.SuiObjectRef `json:"gas"`
	InputObject      interface{}            `json:"inputObject"`
	TxBytes          string                 `json:"txBytes"`
}

type RequestWithdrawDelegationRequest

type RequestWithdrawDelegationRequest struct {
	Signer                  string
	Delegation              string
	StakedSui               string
	PrincipalWithdrawAmount uint64
	Gas                     string
	GasBudget               uint64
}

type ReuqestWithdrawDelegationResponse

type ReuqestWithdrawDelegationResponse struct {
	TransactionBytes string                 `json:"transactionBytes"`
	Gas              sui_types.SuiObjectRef `json:"gas"`
	InputObject      interface{}            `json:"inputObject"`
	TxBytes          string                 `json:"txBytes"`
}

type SingleTransactionParams

type SingleTransactionParams struct {
	MoveCallRequestParams       *MoveCallRequest       `json:"moveCallRequestParams,omitempty"`
	TransferObjectRequestParams *TransferObjectRequest `json:"transferObjectRequestParams,omitempty"`
}

type SplitCoinEqualRequest

type SplitCoinEqualRequest struct {
	Signer       string  `json:"signer"`
	CoinObjectId string  `json:"coinObjectId"`
	SplitCount   string  `json:"splitCount"`
	Gas          *string `json:"gas"`
	GasBudget    string  `json:"gasBudget"`
}

type SplitCoinEqualResponse

type SplitCoinEqualResponse struct {
	TransactionBytes string                   `json:"transactionBytes"`
	Gas              []sui_types.SuiObjectRef `json:"gas"`
	InputObject      interface{}              `json:"inputObject"`
	TxBytes          string                   `json:"txBytes"`
}

type SplitCoinRequest

type SplitCoinRequest struct {
	Signer       string   `json:"signer"`
	CoinObjectId string   `json:"coinObjectId"`
	SplitAmounts []string `json:"splitAmounts"`
	Gas          *string  `json:"gas"`
	GasBudget    string
}

type SplitCoinResponse

type SplitCoinResponse struct {
	TransactionBytes string                   `json:"transactionBytes"`
	Gas              []sui_types.SuiObjectRef `json:"gas"`
	InputObject      interface{}              `json:"inputObject"`
	TxBytes          string                   `json:"txBytes"`
}

type SuiKeyPair

type SuiKeyPair struct {
	Flag    byte
	Address string

	PublicKey       []byte
	PublicKeyBase64 string

	PrivateKey []byte
}

type SuiMoveModuleId

type SuiMoveModuleId struct {
	Address string
	Name    string
}

type SuiMoveNormalizedModule

type SuiMoveNormalizedModule struct {
	FileFormatVersion uint64
	Address           string
	Name              string
	Friends           []SuiMoveModuleId
}

type SuiMoveObject

type SuiMoveObject struct {
	Type              string
	Fields            map[string]interface{}
	HasPublicTransfer bool
}

type SuiObjectInfo

type SuiObjectInfo struct {
	sui_types.SuiObjectRef
	Type string `json:"type"`
	sui_types.Owner
	PreviousTransaction string `json:"previousTransaction"`
}

type TransferObjectRequest

type TransferObjectRequest struct {
	Signer    string `json:"signer"`
	ObjectId  string `json:"objectId"`
	Gas       string `json:"gas"`
	GasBudget uint64 `json:"gasBudget"`
	Recipient string `json:"recipient"`
}

type TransferObjectResponse

type TransferObjectResponse struct {
	TransactionBytes string                 `json:"transactionBytes"`
	Gas              sui_types.SuiObjectRef `json:"gas"`
	InputObject      interface{}            `json:"inputObject"`
	TxBytes          string                 `json:"txBytes"`
}

type TransferSuiRequest

type TransferSuiRequest struct {
	Signer      string `json:"signer"`
	SuiObjectId string `json:"suiObjectId"`
	GasBudget   string `json:"gasBudget"`
	Recipient   string `json:"recipient"`
	Amount      string `json:"amount"`
}

type TransferSuiResponse

type TransferSuiResponse struct {
	TransactionBytes string                   `json:"transactionBytes"`
	Gas              []sui_types.SuiObjectRef `json:"gas"`
	InputObject      interface{}              `json:"inputObject"`
	TxBytes          string                   `json:"txBytes"`
}

type TryGetPastObjectRequest

type TryGetPastObjectRequest struct {
	ObjectID string `json:"objectID"`
	Version  string `json:"version"`
}

type TryGetPastObjectResponse

type TryGetPastObjectResponse struct {
	Status  string `json:"status"`
	Details struct {
		Data sui_json_rpc_types.SuiParsedMoveObject `json:"data"`
		sui_json_rpc_types.OwnedObjectRef
		PreviousTransaction string                 `json:"previousTransaction"`
		StorageRebate       uint64                 `json:"storageRebate"`
		Reference           sui_types.SuiObjectRef `json:"reference"`
	} `json:"details"`
}

type ValidatorMetadata

type ValidatorMetadata struct {
	SuiAddress              string `json:"sui_address"`
	PubkeyBytes             []byte `json:"pubkey_bytes"`
	NetworkPubkeyBytes      []byte `json:"network_pubkey_bytes"`
	WorkerPubkeyBytes       []byte `json:"worker_pubkey_bytes"`
	ProofOfPossessionBytes  []byte `json:"proof_of_possession_bytes"`
	Name                    []byte `json:"name"`
	NetAddress              []byte `json:"net_address"`
	ConsensusAddress        []byte `json:"consensus_address"`
	WorkerAddress           []byte `json:"worker_address"`
	NextEpochStake          uint64 `json:"next_epoch_stake"`
	NextEpochDelegation     uint64 `json:"next_epoch_delegation"`
	NextEpochGasPrice       uint64 `json:"next_epoch_gas_price"`
	NextEpochCommissionRate uint64 `json:"next_epoch_commission_rate"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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