Documentation ¶
Index ¶
- type Client
- type IBaseAPI
- type ICoinAPI
- type IGovernanceAPI
- type IReadEventFromSuiAPI
- type IReadMoveFromSuiAPI
- type IReadObjectFromSuiAPI
- type IReadTransactionFromSuiAPI
- type ISubscribeAPI
- type ISuiAPI
- type IWriteTransactionAPI
- type SuiCoinImpl
- func (s *SuiCoinImpl) GetAllBalances(ctx context.Context, req models.GetAllBalancesRequest, opts ...interface{}) (models.GetAllBalancesResponse, error)
- func (s *SuiCoinImpl) GetAllCoins(ctx context.Context, req models.GetAllCoinsRequest, opts ...interface{}) (models.GetAllCoinsResponse, error)
- func (s *SuiCoinImpl) GetBalance(ctx context.Context, req models.GetBalanceRequest, opts ...interface{}) (models.GetBalanceResponse, error)
- func (s *SuiCoinImpl) GetCoins(ctx context.Context, req models.GetCoinsRequeset, opts ...interface{}) (models.GetCoinsResponse, error)
- type SuiGovernanceImpl
- func (s *SuiGovernanceImpl) GetCheckpoint(ctx context.Context, req models.GetCheckpointRequest, opts ...interface{}) (models.GetCheckpointResponse, error)
- func (s *SuiGovernanceImpl) GetCommitteeInfo(ctx context.Context, req models.GetCommitteeInfoRequest, opts ...interface{}) (models.GetCommitteeInfoResponse, error)
- func (s *SuiGovernanceImpl) GetDelegatedStakes(ctx context.Context, req models.GetDelegatedStakesRequest, opts ...interface{}) (models.GetDelegatedStakeResponse, error)
- func (s *SuiGovernanceImpl) GetLatestCheckpointSequenceNumber(ctx context.Context, req models.GetLatestCheckpointSequenceNumberRequest, ...) (uint64, error)
- func (s *SuiGovernanceImpl) GetSuiSystemState(ctx context.Context, req models.GetSuiSystemStateRequest, opts ...interface{}) (models.GetSuiSystemStateResponse, error)
- func (s *SuiGovernanceImpl) GetValidators(ctx context.Context, req models.GetValidatorsRequest, opts ...interface{}) (models.GetValidatorsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICoinAPI ¶
type ICoinAPI interface { GetCoins(ctx context.Context, req models.GetCoinsRequeset, opts ...interface{}) (models.GetCoinsResponse, error) GetAllBalances(ctx context.Context, req models.GetAllBalancesRequest, opts ...interface{}) (models.GetAllBalancesResponse, error) GetAllCoins(ctx context.Context, req models.GetAllCoinsRequest, opts ...interface{}) (models.GetAllCoinsResponse, error) GetBalance(ctx context.Context, req models.GetBalanceRequest, opts ...interface{}) (models.GetBalanceResponse, error) }
type IGovernanceAPI ¶
type IGovernanceAPI interface { GetDelegatedStakes(ctx context.Context, req models.GetDelegatedStakesRequest, opts ...interface{}) (models.GetDelegatedStakeResponse, error) GetValidators(ctx context.Context, req models.GetValidatorsRequest, opts ...interface{}) (models.GetValidatorsResponse, error) GetCommitteeInfo(ctx context.Context, req models.GetCommitteeInfoRequest, opts ...interface{}) (models.GetCommitteeInfoResponse, error) GetSuiSystemState(ctx context.Context, req models.GetSuiSystemStateRequest, opt ...interface{}) (models.GetSuiSystemStateResponse, error) GetCheckpoint(ctx context.Context, req models.GetCheckpointRequest, opts ...interface{}) (models.GetCheckpointResponse, error) GetLatestCheckpointSequenceNumber(ctx context.Context, req models.GetLatestCheckpointSequenceNumberRequest, opts ...interface{}) (uint64, error) }
type IReadEventFromSuiAPI ¶
type IReadEventFromSuiAPI interface { GetEvents(ctx context.Context, req models.GetEventsRequest, opts ...interface{}) (interface{}, error) QueryEvents(ctx context.Context, req models.QueryEventsRequest, opts ...interface{}) (models.QueryEventsResponse, error) }
type IReadMoveFromSuiAPI ¶
type IReadMoveFromSuiAPI interface { GetMoveFunctionArgTypes(ctx context.Context, req models.GetMoveFunctionArgTypesRequest, opts ...interface{}) (models.GetMoveFunctionArgTypesResponse, error) GetNormalizedMoveModulesByPackage(ctx context.Context, req models.GetNormalizedMoveModulesByPackageRequest, opts ...interface{}) (models.GetNormalizedMoveModulesByPackageResponse, error) GetNormalizedMoveModule(ctx context.Context, req models.GetNormalizedMoveModuleRequest, opts ...interface{}) (models.GetNormalizedMoveModuleResponse, error) GetNormalizedMoveStruct(ctx context.Context, req models.GetNormalizedMoveStructRequest, opts ...interface{}) (models.GetNormalizedMoveStructResponse, error) GetNormalizedMoveFunction(ctx context.Context, req models.GetNormalizedMoveFunctionRequest, opts ...interface{}) (models.GetNormalizedMoveFunctionResponse, error) }
type IReadObjectFromSuiAPI ¶
type IReadObjectFromSuiAPI interface { GetObject(ctx context.Context, req models.GetObjectRequest, opts ...interface{}) (models.GetObjectResponse, error) GetMultiObject(ctx context.Context, req models.GetMultiObjectRequest, opts ...interface{}) (models.GetMultiObjectResponse, error) GetRawObject(ctx context.Context, req models.GetRawObjectRequest, opts ...interface{}) (models.GetRawObjectResponse, error) TryGetPastObject(ctx context.Context, req models.TryGetPastObjectRequest, opt ...interface{}) (models.TryGetPastObjectResponse, error) GetCoinMetadata(ctx context.Context, req models.GetCoinMetadataRequest, opt ...interface{}) (models.GetCoinMetadataResponse, error) GetOwnedObjects(ctx context.Context, req models.GetOwnedObjectsRequest, opt ...interface{}) (models.GetOwnedObjectsResponse, error) GetDynamicField(ctx context.Context, req models.GetDynamicFieldRequest, opt ...interface{}) (models.GetDynamicFieldResponse, error) GetAllNFT(ctx context.Context, address string) ([]models.GetObjectResponse, error) GetTransactionBlock(ctx context.Context, req models.GetTransactionBlockRequest, opt ...interface{}) (models.GetTransactionBlockResponse, error) }
type IReadTransactionFromSuiAPI ¶
type IReadTransactionFromSuiAPI interface { GetRecentTransactions(ctx context.Context, req models.GetRecentTransactionRequest, opts ...interface{}) (models.GetRecentTransactionResponse, error) GetTotalTransactionNumber(ctx context.Context, req models.GetTotalTransactionNumberRequest, opts ...interface{}) (models.GetTotalTransactionNumberResponse, error) GetTransaction(ctx context.Context, req models.GetTransactionRequest, opts ...interface{}) (models.GetTransactionResponse, error) GetTransactionsByInputObject(ctx context.Context, req models.GetTransactionsByInputObjectRequest, opts ...interface{}) (models.GetTransactionsByInputObjectResponse, error) GetTransactionsByMoveFunction(ctx context.Context, req models.GetTransactionsByMoveFunctionRequest, opts ...interface{}) (models.GetTransactionsByMoveFunctionResponse, error) GetTransactionsByMutatedObject(ctx context.Context, req models.GetTransactionsByMutatedObjectRequest, opts ...interface{}) (models.GetTransactionsByMutatedObjectResponse, error) GetTransactionsFromAddress(ctx context.Context, req models.GetTransactionsFromAddressRequest, opts ...interface{}) (models.GetTransactionsFromAddressResponse, error) GetTransactionsInRange(ctx context.Context, req models.GetTransactionsInRangeRequest, opts ...interface{}) (models.GetTransactionsInRangeResponse, error) GetTransactionsToAddress(ctx context.Context, req models.GetTransactionsToAddressRequest, opts ...interface{}) (models.GetTransactionsToAddressResponse, error) GetTransactionAuthSigners(ctx context.Context, req models.GetTransactionAuthSignersRequest, opts ...interface{}) (models.GetTransactionAuthSignersResponse, error) }
type ISubscribeAPI ¶
type ISuiAPI ¶
type ISuiAPI interface { IBaseAPI IWriteTransactionAPI IReadEventFromSuiAPI IReadMoveFromSuiAPI IReadObjectFromSuiAPI IReadTransactionFromSuiAPI ICoinAPI IGovernanceAPI }
func NewSuiClient ¶
type IWriteTransactionAPI ¶
type IWriteTransactionAPI interface { BatchTransaction(ctx context.Context, req models.BatchTransactionRequest, opts ...interface{}) (models.BatchTransactionResponse, error) DryRunTransaction(ctx context.Context, req models.DryRunTransactionRequest, opts ...interface{}) (models.DryRunTransactionResponse, error) ExecuteTransaction(ctx context.Context, req models.ExecuteTransactionRequest, opts ...interface{}) (models.ExecuteTransactionResponse, error) Pay(ctx context.Context, req models.PayRequest, opts ...interface{}) (models.PayResponse, error) PayAllSui(ctx context.Context, req models.PayAllSuiRequest, opts ...interface{}) (models.PayAllSuiResponse, error) PaySui(ctx context.Context, req models.PaySuiRequest, opts ...interface{}) (models.PaySuiResponse, error) MoveCall(ctx context.Context, req models.MoveCallRequest, opts ...interface{}) (models.MoveCallResponse, error) MergeCoins(ctx context.Context, req models.MergeCoinsRequest, opts ...interface{}) (models.MergeCoinsResponse, error) SplitCoin(ctx context.Context, req models.SplitCoinRequest, opts ...interface{}) (models.SplitCoinResponse, error) SplitCoinEqual(ctx context.Context, req models.SplitCoinEqualRequest, opt ...interface{}) (models.SplitCoinEqualResponse, error) Publish(ctx context.Context, req models.PublishRequest, opts ...interface{}) (models.PublishResponse, error) TransferObject(ctx context.Context, req models.TransferObjectRequest, opts ...interface{}) (models.TransferObjectResponse, error) TransferSui(ctx context.Context, req models.TransferSuiRequest, opts ...interface{}) (models.TransferSuiResponse, error) RequestAddDelegation(ctx context.Context, req models.RequestAddDelegationRequest, opts ...interface{}) (models.RequestAddDelegationResponse, error) RequestSwitchDelegation(ctx context.Context, req models.RequestSwitchDelegationRequest, opts ...interface{}) (models.RequestSwitchDelegationResponse, error) RequestWithdrawDelegation(ctx context.Context, req models.RequestWithdrawDelegationRequest, opts ...interface{}) (models.ReuqestWithdrawDelegationResponse, error) }
type SuiCoinImpl ¶
type SuiCoinImpl struct {
// contains filtered or unexported fields
}
func (*SuiCoinImpl) GetAllBalances ¶
func (s *SuiCoinImpl) GetAllBalances(ctx context.Context, req models.GetAllBalancesRequest, opts ...interface{}) (models.GetAllBalancesResponse, error)
func (*SuiCoinImpl) GetAllCoins ¶
func (s *SuiCoinImpl) GetAllCoins(ctx context.Context, req models.GetAllCoinsRequest, opts ...interface{}) (models.GetAllCoinsResponse, error)
func (*SuiCoinImpl) GetBalance ¶
func (s *SuiCoinImpl) GetBalance(ctx context.Context, req models.GetBalanceRequest, opts ...interface{}) (models.GetBalanceResponse, error)
func (*SuiCoinImpl) GetCoins ¶
func (s *SuiCoinImpl) GetCoins(ctx context.Context, req models.GetCoinsRequeset, opts ...interface{}) (models.GetCoinsResponse, error)
type SuiGovernanceImpl ¶
type SuiGovernanceImpl struct {
// contains filtered or unexported fields
}
func (*SuiGovernanceImpl) GetCheckpoint ¶
func (s *SuiGovernanceImpl) GetCheckpoint(ctx context.Context, req models.GetCheckpointRequest, opts ...interface{}) (models.GetCheckpointResponse, error)
Get checkpoint by id
func (*SuiGovernanceImpl) GetCommitteeInfo ¶
func (s *SuiGovernanceImpl) GetCommitteeInfo(ctx context.Context, req models.GetCommitteeInfoRequest, opts ...interface{}) (models.GetCommitteeInfoResponse, error)
func (*SuiGovernanceImpl) GetDelegatedStakes ¶
func (s *SuiGovernanceImpl) GetDelegatedStakes(ctx context.Context, req models.GetDelegatedStakesRequest, opts ...interface{}) (models.GetDelegatedStakeResponse, error)
func (*SuiGovernanceImpl) GetLatestCheckpointSequenceNumber ¶
func (s *SuiGovernanceImpl) GetLatestCheckpointSequenceNumber(ctx context.Context, req models.GetLatestCheckpointSequenceNumberRequest, opts ...interface{}) (uint64, error)
Get checkpoint by id
func (*SuiGovernanceImpl) GetSuiSystemState ¶
func (s *SuiGovernanceImpl) GetSuiSystemState(ctx context.Context, req models.GetSuiSystemStateRequest, opts ...interface{}) (models.GetSuiSystemStateResponse, error)
func (*SuiGovernanceImpl) GetValidators ¶
func (s *SuiGovernanceImpl) GetValidators(ctx context.Context, req models.GetValidatorsRequest, opts ...interface{}) (models.GetValidatorsResponse, error)
Click to show internal directories.
Click to hide internal directories.