sui

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChainName   = "Sui"
	SuiCoinType = "0x2::sui::SUI"

	PublicKeySize    = 32
	SuiAddressLength = 32
)

Variables

View Source
var SIGNATURE_SCHEME_TO_FLAG = map[string]byte{
	"ED25519": 0x00,
}

Functions

func NewSuiAdaptor

func NewSuiAdaptor(conf *config.Config) (chain.IChainAdaptor, error)

Types

type SuiAdaptor

type SuiAdaptor struct {
	// contains filtered or unexported fields
}

func (SuiAdaptor) BuildSignedTransaction

func (SuiAdaptor) ConvertAddress

func (SuiAdaptor) CreateUnSignTransaction

func (SuiAdaptor) GetAccount

func (SuiAdaptor) GetBlockByHash

func (s SuiAdaptor) GetBlockByHash(req *account.BlockHashRequest) (*account.BlockResponse, error)

not nessary

func (SuiAdaptor) GetBlockByNumber

func (s SuiAdaptor) GetBlockByNumber(req *account.BlockNumberRequest) (*account.BlockResponse, error)

not nessary

func (SuiAdaptor) GetBlockByRange

func (SuiAdaptor) GetBlockHeaderByHash

func (s SuiAdaptor) GetBlockHeaderByHash(req *account.BlockHeaderHashRequest) (*account.BlockHeaderResponse, error)

func (SuiAdaptor) GetBlockHeaderByNumber

func (s SuiAdaptor) GetBlockHeaderByNumber(req *account.BlockHeaderNumberRequest) (*account.BlockHeaderResponse, error)

func (SuiAdaptor) GetExtraData

func (SuiAdaptor) GetFee

func (SuiAdaptor) GetSupportChains

func (SuiAdaptor) GetTxByAddress

func (SuiAdaptor) GetTxByHash

func (s SuiAdaptor) GetTxByHash(req *account.TxHashRequest) (*account.TxHashResponse, error)

func (SuiAdaptor) SendTx

func (SuiAdaptor) ValidAddress

func (SuiAdaptor) VerifySignedTransaction

type SuiClient

type SuiClient struct {
	// contains filtered or unexported fields
}

func NewSuiClient

func NewSuiClient(conf *config.Config) (*SuiClient, error)

func (*SuiClient) GetAccountBalance

func (c *SuiClient) GetAccountBalance(owner, coinType string) (models.CoinBalanceResponse, error)

func (SuiClient) GetGasPrice

func (c SuiClient) GetGasPrice() (uint64, error)

func (SuiClient) GetTxDetailByDigest

func (c SuiClient) GetTxDetailByDigest(digest string) (models.SuiTransactionBlockResponse, error)

func (SuiClient) GetTxListByAddress

func (c SuiClient) GetTxListByAddress(address string, cursor string, limit uint32) (models.SuiXQueryTransactionBlocksResponse, error)

func (SuiClient) SendTx

func (c SuiClient) SendTx(txStr string) (*models.TxnMetaData, error)

Jump to

Keyboard shortcuts

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