acalaTransaction

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//github.com/centrifuge/go-substrate-rpc-client
	ACA_Balannce_Transfer = "030000"
	KAR_Balannce_Transfer = "0a0000"
)

Variables

This section is empty.

Functions

func EncodeToBytes

func EncodeToBytes(value interface{}) ([]byte, error)

func NewMethodTransfer

func NewMethodTransfer(pubkey string, amount *big.Int) (*polkadotTransaction.MethodTransfer, error)

func VerifyAndCombineTransaction

func VerifyAndCombineTransaction(transferCode, emptyTrans, signature string) (string, bool)

Types

type TxStruct

type TxStruct struct {
	SenderPubkey    string   `json:"sender_pubkey"`
	RecipientPubkey string   `json:"recipient_pubkey"`
	Amount          *big.Int `json:"amount"`
	Nonce           uint64   `json:"nonce"`
	Fee             *big.Int `json:"fee"`
	BlockHeight     uint64   `json:"block_height"`
	BlockHash       string   `json:"block_hash"`
	GenesisHash     string   `json:"genesis_hash"`
	SpecVersion     uint32   `json:"spec_version"`
	TxVersion       uint32   `json:"txVersion"`
}

func NewTxStructFromJSON

func NewTxStructFromJSON(j string) (*TxStruct, error)

func (TxStruct) CreateEmptyTransactionAndMessage

func (ts TxStruct) CreateEmptyTransactionAndMessage(transferCode string) (string, string, error)

func (TxStruct) GetSignedTransaction

func (ts TxStruct) GetSignedTransaction(transfer_code, signature string) (string, error)

func (TxStruct) NewTxPayLoad

func (tx TxStruct) NewTxPayLoad(transfer_code string) (*polkadotTransaction.TxPayLoad, error)

func (TxStruct) ToJSONString

func (tx TxStruct) ToJSONString() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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