Documentation ¶
Index ¶
- Constants
- Variables
- func NewSuiAdaptor(conf *config.Config) (chain.IChainAdaptor, error)
- type SuiAdaptor
- func (s SuiAdaptor) BuildSignedTransaction(req *account.SignedTransactionRequest) (*account.SignedTransactionResponse, error)
- func (s SuiAdaptor) ConvertAddress(req *account.ConvertAddressRequest) (*account.ConvertAddressResponse, error)
- func (s SuiAdaptor) CreateUnSignTransaction(req *account.UnSignTransactionRequest) (*account.UnSignTransactionResponse, error)
- func (s SuiAdaptor) DecodeTransaction(req *account.DecodeTransactionRequest) (*account.DecodeTransactionResponse, error)
- func (s SuiAdaptor) GetAccount(req *account.AccountRequest) (*account.AccountResponse, error)
- func (s SuiAdaptor) GetBlockByHash(req *account.BlockHashRequest) (*account.BlockResponse, error)
- func (s SuiAdaptor) GetBlockByNumber(req *account.BlockNumberRequest) (*account.BlockResponse, error)
- func (s SuiAdaptor) GetBlockByRange(req *account.BlockByRangeRequest) (*account.BlockByRangeResponse, error)
- func (s SuiAdaptor) GetBlockHeaderByHash(req *account.BlockHeaderHashRequest) (*account.BlockHeaderResponse, error)
- func (s SuiAdaptor) GetBlockHeaderByNumber(req *account.BlockHeaderNumberRequest) (*account.BlockHeaderResponse, error)
- func (s SuiAdaptor) GetExtraData(req *account.ExtraDataRequest) (*account.ExtraDataResponse, error)
- func (s SuiAdaptor) GetFee(req *account.FeeRequest) (*account.FeeResponse, error)
- func (s SuiAdaptor) GetSupportChains(req *account.SupportChainsRequest) (*account.SupportChainsResponse, error)
- func (s SuiAdaptor) GetTxByAddress(req *account.TxAddressRequest) (*account.TxAddressResponse, error)
- func (s SuiAdaptor) GetTxByHash(req *account.TxHashRequest) (*account.TxHashResponse, error)
- func (s SuiAdaptor) SendTx(req *account.SendTxRequest) (*account.SendTxResponse, error)
- func (s SuiAdaptor) ValidAddress(req *account.ValidAddressRequest) (*account.ValidAddressResponse, error)
- func (s SuiAdaptor) VerifySignedTransaction(req *account.VerifyTransactionRequest) (*account.VerifyTransactionResponse, error)
- type SuiClient
- func (c *SuiClient) GetAccountBalance(owner, coinType string) (models.CoinBalanceResponse, error)
- func (c SuiClient) GetGasPrice() (uint64, error)
- func (c SuiClient) GetTxDetailByDigest(digest string) (models.SuiTransactionBlockResponse, error)
- func (c SuiClient) GetTxListByAddress(address string, cursor string, limit uint32) (models.SuiXQueryTransactionBlocksResponse, error)
- func (c SuiClient) SendTx(txStr string) (*models.TxnMetaData, error)
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 (s SuiAdaptor) BuildSignedTransaction(req *account.SignedTransactionRequest) (*account.SignedTransactionResponse, error)
func (SuiAdaptor) ConvertAddress ¶
func (s SuiAdaptor) ConvertAddress(req *account.ConvertAddressRequest) (*account.ConvertAddressResponse, error)
func (SuiAdaptor) CreateUnSignTransaction ¶
func (s SuiAdaptor) CreateUnSignTransaction(req *account.UnSignTransactionRequest) (*account.UnSignTransactionResponse, error)
func (SuiAdaptor) DecodeTransaction ¶
func (s SuiAdaptor) DecodeTransaction(req *account.DecodeTransactionRequest) (*account.DecodeTransactionResponse, error)
func (SuiAdaptor) GetAccount ¶
func (s SuiAdaptor) GetAccount(req *account.AccountRequest) (*account.AccountResponse, error)
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 (s SuiAdaptor) GetBlockByRange(req *account.BlockByRangeRequest) (*account.BlockByRangeResponse, error)
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 (s SuiAdaptor) GetExtraData(req *account.ExtraDataRequest) (*account.ExtraDataResponse, error)
func (SuiAdaptor) GetFee ¶
func (s SuiAdaptor) GetFee(req *account.FeeRequest) (*account.FeeResponse, error)
func (SuiAdaptor) GetSupportChains ¶
func (s SuiAdaptor) GetSupportChains(req *account.SupportChainsRequest) (*account.SupportChainsResponse, error)
func (SuiAdaptor) GetTxByAddress ¶
func (s SuiAdaptor) GetTxByAddress(req *account.TxAddressRequest) (*account.TxAddressResponse, error)
func (SuiAdaptor) GetTxByHash ¶
func (s SuiAdaptor) GetTxByHash(req *account.TxHashRequest) (*account.TxHashResponse, error)
func (SuiAdaptor) SendTx ¶
func (s SuiAdaptor) SendTx(req *account.SendTxRequest) (*account.SendTxResponse, error)
func (SuiAdaptor) ValidAddress ¶
func (s SuiAdaptor) ValidAddress(req *account.ValidAddressRequest) (*account.ValidAddressResponse, error)
func (SuiAdaptor) VerifySignedTransaction ¶
func (s SuiAdaptor) VerifySignedTransaction(req *account.VerifyTransactionRequest) (*account.VerifyTransactionResponse, error)
type SuiClient ¶
type SuiClient struct {
// contains filtered or unexported fields
}
func (*SuiClient) GetAccountBalance ¶
func (c *SuiClient) GetAccountBalance(owner, coinType string) (models.CoinBalanceResponse, error)
func (SuiClient) GetGasPrice ¶
func (SuiClient) GetTxDetailByDigest ¶
func (c SuiClient) GetTxDetailByDigest(digest string) (models.SuiTransactionBlockResponse, error)
func (SuiClient) GetTxListByAddress ¶
Click to show internal directories.
Click to hide internal directories.