Documentation
¶
Index ¶
- type AccountKeyStoreImpl
- func (a *AccountKeyStoreImpl) AddKey(key string) (err error)
- func (a *AccountKeyStoreImpl) Generate() (string, error)
- func (a *AccountKeyStoreImpl) GetKey(address string) (models.SuiKeyPair, error)
- func (a *AccountKeyStoreImpl) Keys() (publicKeys []string)
- func (a *AccountKeyStoreImpl) Secrets() (secretKeys []string)
- func (a *AccountKeyStoreImpl) Sign(address string, msg []byte) (signature []byte, err error)
- type Client
- type IAccountKeyStore
- type IBaseAPI
- type IFeatureSuiAPI
- type IReadEventFromSuiAPI
- type IReadMoveFromSuiAPI
- type IReadObjectFromSuiAPI
- type IReadTransactionFromSuiAPI
- type ISubscribeAPI
- type ISuiAPI
- type IWriteTransactionAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountKeyStoreImpl ¶
type AccountKeyStoreImpl struct {
// contains filtered or unexported fields
}
func (*AccountKeyStoreImpl) AddKey ¶
func (a *AccountKeyStoreImpl) AddKey(key string) (err error)
func (*AccountKeyStoreImpl) Generate ¶
func (a *AccountKeyStoreImpl) Generate() (string, error)
func (*AccountKeyStoreImpl) GetKey ¶
func (a *AccountKeyStoreImpl) GetKey(address string) (models.SuiKeyPair, error)
func (*AccountKeyStoreImpl) Keys ¶
func (a *AccountKeyStoreImpl) Keys() (publicKeys []string)
func (*AccountKeyStoreImpl) Secrets ¶
func (a *AccountKeyStoreImpl) Secrets() (secretKeys []string)
type IAccountKeyStore ¶
type IAccountKeyStore interface { Sign(address string, msg []byte) (signature []byte, err error) GetKey(address string) (models.SuiKeyPair, error) AddKey(keypair string) (err error) Keys() (publicKeys []string) }
func SetAccountKeyStore ¶
func SetAccountKeyStore(configDir string) (IAccountKeyStore, error)
type IFeatureSuiAPI ¶
type IFeatureSuiAPI interface { MoveCallAndExecuteTransaction(ctx context.Context, req models.MoveCallAndExecuteTransactionRequest, opts ...interface{}) (models.MoveCallAndExecuteTransactionResponse, error) BatchAndExecuteTransaction(ctx context.Context, req models.BatchAndExecuteTransactionRequest, opts ...interface{}) (models.BatchAndExecuteTransactionResponse, error) SignWithAddress(ctx context.Context, address string, msg []byte) ([]byte, error) Sign(ctx context.Context, msg []byte) ([]byte, error) }
type IReadEventFromSuiAPI ¶
type IReadEventFromSuiAPI interface { GetEventsByEventType(ctx context.Context, req models.GetEventsByEventTypeRequest, opts ...interface{}) (models.GetEventsByEventTypeResponse, error) GetEventsByModule(ctx context.Context, req models.GetEventsByModuleRequest, opts ...interface{}) (models.GetEventsByModuleResponse, error) GetEventsByObject(ctx context.Context, req models.GetEventsByObjectRequest, opts ...interface{}) (models.GetEventsByObjectResponse, error) GetEventsByOwner(ctx context.Context, req models.GetEventsByOwnerRequest, opts ...interface{}) (models.GetEventsByOwnerResponse, error) GetEventsBySender(ctx context.Context, req models.GetEventsBySenderRequest, opts ...interface{}) (models.GetEventsBySenderResponse, error) GetEventsByTransaction(ctx context.Context, req models.GetEventsByTransactionRequest, opts ...interface{}) (models.GetEventsByTransactionResponse, 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) GetObjectsOwnedByAddress(ctx context.Context, req models.GetObjectsOwnedByAddressRequest, opts ...interface{}) (models.GetObjectsOwnedByAddressResponse, error) GetObjectsOwnedByObject(ctx context.Context, req models.GetObjectsOwnedByObjectRequest, opts ...interface{}) (models.GetObjectsOwnedByObjectResponse, 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) }
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) }
type ISubscribeAPI ¶
type ISuiAPI ¶
type ISuiAPI interface { IBaseAPI IWriteTransactionAPI IReadEventFromSuiAPI IReadMoveFromSuiAPI IReadObjectFromSuiAPI IReadTransactionFromSuiAPI IFeatureSuiAPI }
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) }
Click to show internal directories.
Click to hide internal directories.