Documentation
¶
Index ¶
- Variables
- func B64PublicKeyToSuiAddress(b64 string) (string, error)
- func B64ToSuiPrivateKey(b64 string) (string, error)
- func Ed25519PublicKeyToB64PublicKey(ed25519PubKey ed25519.PublicKey) string
- func GetAllCoins(client *client.SuiClient, owner string, coinType string) (data []types.CoinStruct, err error)
- func GetMaxCoinObject(client *client.SuiClient, owner, coinType string) (*types.CoinStruct, error)
- func GetObjectAndUnmarshal[T any](client *client.SuiClient, id string) (raw *types.SuiObjectResponse, value *T, err error)
- func GetObjectsAndUnmarshal[T any](client *client.SuiClient, ids []string) (raw []*types.SuiObjectResponse, values []*T, err error)
- func ParseDevInspectReturnValue(v [2]interface{}) ([]byte, error)
- func ParseEvent[T any](event types.SuiEvent) (*T, error)
- func SuiPrivateKeyToB64(pk string) (string, error)
- type MoveEventModuleConfig
- type SuiMoveDynamicField
- type SuiMoveDynamicFieldValue
- type SuiMoveId
- type SuiMoveString
- type SuiMoveStringFields
- type SuiMoveTable
- type SuiMoveTableFields
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SuiGasCoinType string = "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI" SuiZeroAddress string = "0x0000000000000000000000000000000000000000000000000000000000000000" SuiClockObjectId string = "0x0000000000000000000000000000000000000000000000000000000000000006" SuiPackageId string = "0x0000000000000000000000000000000000000000000000000000000000000002" )
Functions ¶
func GetAllCoins ¶ added in v0.0.18
func GetAllCoins(client *client.SuiClient, owner string, coinType string) (data []types.CoinStruct, err error)
Instance Get All Sui Coins
func GetMaxCoinObject ¶ added in v0.0.18
func GetObjectAndUnmarshal ¶ added in v0.0.8
func GetObjectsAndUnmarshal ¶ added in v0.0.8
func ParseDevInspectReturnValue ¶ added in v0.0.6
func ParseEvent ¶ added in v0.0.2
Parsing custom event json Reference: https://docs.sui.io/guides/developer/sui-101/using-events#move-event-structure
func SuiPrivateKeyToB64 ¶
Types ¶
type MoveEventModuleConfig ¶ added in v0.0.2
type MoveEventModuleConfig struct {
Package string `toml:"Package,omitempty"`
Module string `toml:"Module,omitempty"`
}
Define the type as MoveModule/MoveEventModule. Events emitted, defined on the specified Move module. Reference: https://docs.sui.io/guides/developer/sui-101/using-events#filtering-event-queries
func (*MoveEventModuleConfig) Join ¶ added in v0.0.2
func (ec *MoveEventModuleConfig) Join() string
func (*MoveEventModuleConfig) JoinEventName ¶ added in v0.0.2
func (ec *MoveEventModuleConfig) JoinEventName(name string) string
type SuiMoveDynamicField ¶ added in v0.0.7
type SuiMoveDynamicField[TypeFields any, TypeName any] struct { Id SuiMoveId `json:"id"` Name TypeName `json:"name"` Value SuiMoveDynamicFieldValue[TypeFields] `json:"value"` }
func GetDynamicFieldObjectAndUnmarshal ¶ added in v0.0.8
func GetDynamicFieldObjectAndUnmarshal[T any, NameType any](client *client.SuiClient, parentId string, name types.DynamicFieldName) (raw *types.SuiObjectResponse, value *SuiMoveDynamicField[T, NameType], err error)
type SuiMoveDynamicFieldValue ¶ added in v0.0.7
type SuiMoveString ¶ added in v0.0.7
type SuiMoveString struct {
Type string `json:"type"`
Fields SuiMoveStringFields `json:"fields"`
}
type SuiMoveStringFields ¶ added in v0.0.7
type SuiMoveStringFields struct {
Name string `json:"name"`
}
type SuiMoveTable ¶ added in v0.0.7
type SuiMoveTable struct {
Fields SuiMoveTableFields `json:"fields"`
Type string `json:"type"`
}
type SuiMoveTableFields ¶ added in v0.0.7
Click to show internal directories.
Click to hide internal directories.