actjson

package
v0.0.0-...-4f625b6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActAmount

type ActAmount struct {
	Value int64
}

func (*ActAmount) UnmarshalJSON

func (p *ActAmount) UnmarshalJSON(data []byte) error

type AddressBalance

type AddressBalance struct {
	Balance   int64            `json:"balance"`
	Condition BalanceCondition `json:"condition"`
}

type AssetAmount

type AssetAmount struct {
	AssetID int       `json:"asset_id"`
	Amount  ActAmount `json:"amount"`
}

type BalanceCondition

type BalanceCondition struct {
	AssetID int `json:"asset_id"`
}

type BlockChainGetBlockCmd

type BlockChainGetBlockCmd struct {
	BlockNum string
}

func NewBlockChainGetBlockCmd

func NewBlockChainGetBlockCmd(blockNum string) *BlockChainGetBlockCmd

type BlockChainGetBlockCountCmd

type BlockChainGetBlockCountCmd struct {
}

func NewBlockChainGetBlockCountCmd

func NewBlockChainGetBlockCountCmd() *BlockChainGetBlockCountCmd

type BlockChainGetBlockResult

type BlockChainGetBlockResult struct {
	BlockNum           int32    `json:"block_num"`
	BlockSize          int32    `json:"block_size"`
	Timestamp          string   `json:"timestamp"`
	UserTransactionIds []string `json:"user_transaction_ids"`
}

type BlockChainGetContractResultCmd

type BlockChainGetContractResultCmd struct {
	ResultId string
}

BlockChainGetContractResultCmd defines the blockchain_get_contract_result JSON-RPC command.

func NewBlockChainGetContractResultCmd

func NewBlockChainGetContractResultCmd(resultId string) *BlockChainGetContractResultCmd

type BlockChainGetContractResultResult

type BlockChainGetContractResultResult struct {
	BlockNum int    `json:"block_num"`
	TrxId    string `json:"trx_id"`
}

type BlockChainGetEvent

type BlockChainGetEvent struct {
	EventParam  string `json:"event_param"`
	EventType   string `json:"event_type"`
	ID          string `json:"id"`
	IsTruncated bool   `json:"is_truncated"`
}

type BlockChainGetEventsCmd

type BlockChainGetEventsCmd struct {
	BlockNum int32
	TxId     string
}

BlockChainGetEventsCmd defines the blockchain_get_events JSON-RPC command.

func NewBlockChainGetEventsCmd

func NewBlockChainGetEventsCmd(blockNum int32, txId string) *BlockChainGetEventsCmd

type BlockChainGetPrettyContractTransactionCmd

type BlockChainGetPrettyContractTransactionCmd struct {
	TxId string
}

BlockChainGetPrettyContractTransactionCmd defines the blockchain_get_pretty_contract_transaction JSON-RPC command.

func NewBlockChainGetPrettyContractTransactionCmd

func NewBlockChainGetPrettyContractTransactionCmd(txId string) *BlockChainGetPrettyContractTransactionCmd

type BlockChainGetPrettyContractTransactionResult

type BlockChainGetPrettyContractTransactionResult struct {
	BlockNum                  int                   `json:"block_num"`
	BlockPosition             int                   `json:"block_position"`
	ExpirationTimestamp       string                `json:"expiration_timestamp"`
	FromContractLedgerEntries []interface{}         `json:"from_contract_ledger_entries"`
	IsCompleted               bool                  `json:"is_completed"`
	OrigTrxID                 string                `json:"orig_trx_id"`
	Reserved                  []string              `json:"reserved"`
	ResultTrxID               string                `json:"result_trx_id"`
	Timestamp                 string                `json:"timestamp"`
	LedgerEntry               ToContractLedgerEntry `json:"to_contract_ledger_entry"`
	TrxType                   int                   `json:"trx_type"`
}

type BlockChainGetPrettyTransactionCmd

type BlockChainGetPrettyTransactionCmd struct {
	TxId string
}

BlockChainGetPrettyTransactionCmd defines the blockchain_get_pretty_transaction JSON-RPC command.

func NewBlockChainGetPrettyTransactionCmd

func NewBlockChainGetPrettyTransactionCmd(txId string) *BlockChainGetPrettyTransactionCmd

type BlockChainGetPrettyTransactionResult

type BlockChainGetPrettyTransactionResult struct {
	BlockNum            int           `json:"block_num"`
	BlockPosition       int           `json:"block_position"`
	ExpirationTimestamp string        `json:"expiration_timestamp"`
	Fee                 AssetAmount   `json:"fee"`
	IsConfirmed         bool          `json:"is_confirmed"`
	IsMarket            bool          `json:"is_market"`
	IsMarketCancel      bool          `json:"is_market_cancel"`
	IsVirtual           bool          `json:"is_virtual"`
	LedgerEntries       []LedgerEntry `json:"ledger_entries"`
	Timestamp           string        `json:"timestamp"`
	TrxID               string        `json:"trx_id"`
	TrxType             int           `json:"trx_type"`
}

type BlockChainGetTransactionCmd

type BlockChainGetTransactionCmd struct {
	TxId string
}

BlockChainGetTransactionCmd defines the blockchain_get_transaction JSON-RPC command.

func NewBlockChainGetTransactionCmd

func NewBlockChainGetTransactionCmd(txId string) *BlockChainGetTransactionCmd

type BlockChainGetTransactionResult

type BlockChainGetTransactionResult struct {
	TxId   string
	Detail BlockChainGetTransactionResultDetail
}

func (*BlockChainGetTransactionResult) UnmarshalJSON

func (p *BlockChainGetTransactionResult) UnmarshalJSON(data []byte) error

type BlockChainGetTransactionResultDetail

type BlockChainGetTransactionResultDetail struct {
	Trx TrxContent `json:"trx"`
}

type BlockChainListAddressBalanceResult

type BlockChainListAddressBalanceResult struct {
	TxId   string
	Detail AddressBalance
}

func (*BlockChainListAddressBalanceResult) UnmarshalJSON

func (p *BlockChainListAddressBalanceResult) UnmarshalJSON(data []byte) error

type BlockChainListAddressBalancesCmd

type BlockChainListAddressBalancesCmd struct {
	Addr string
}

BlockChainListAddressBalancesCmd defines the blockchain_list_address_balances JSON-RPC command.

func NewBlockChainListAddressBalancesCmd

func NewBlockChainListAddressBalancesCmd(addr string) *BlockChainListAddressBalancesCmd

type CallContractCmd

type CallContractCmd struct {
	Contract     string
	CallerName   string
	FunctionName string
	Params       string
	AssetSymbol  string
	CallLimit    float64
}

CallContractCmd defines the call_contract JSON-RPC command.

func NewCallContractCmd

func NewCallContractCmd(contract string, callerName string, functionName string,
	params string, assetSymbol string, callLimit float64) *CallContractCmd

type CallContractResult

type CallContractResult struct {
	BlockNum      int           `json:"block_num"`
	CreatedTime   string        `json:"created_time"`
	EntryID       string        `json:"entry_id"`
	Fee           AssetAmount   `json:"fee"`
	Index         int           `json:"index"`
	IsConfirmed   bool          `json:"is_confirmed"`
	IsMarket      bool          `json:"is_market"`
	IsVirtual     bool          `json:"is_virtual"`
	LedgerEntries []interface{} `json:"ledger_entries"`
	ReceivedTime  string        `json:"received_time"`
}

type LedgerEntry

type LedgerEntry struct {
	FromAccount     string        `json:"from_account"`
	FromAccountName string        `json:"from_account_name"`
	Memo            string        `json:"memo"`
	RunningBalances []interface{} `json:"running_balances"`
	ToAccount       string        `json:"to_account"`
	ToAccountName   string        `json:"to_account_name"`
	Amount          AssetAmount   `json:"amount"`
}

type Operation

type Operation struct {
	Type string `json:"type"`
}

type ToContractLedgerEntry

type ToContractLedgerEntry struct {
	Amount          AssetAmount `json:"amount"`
	Fee             AssetAmount `json:"fee"`
	FromAccount     string      `json:"from_account"`
	FromAccountName string      `json:"from_account_name"`
	Memo            string      `json:"memo"`
	ToAccount       string      `json:"to_account"`
	ToAccountName   string      `json:"to_account_name"`
}

type TrxContent

type TrxContent struct {
	AlpAccount string      `json:"alp_account"`
	Operations []Operation `json:"operations"`
}

type WalletCheckAddressCmd

type WalletCheckAddressCmd struct {
	Address string
}

WalletCheckAddressCmd defines the Get wallet information command

func NewWalletCheckAddressCmd

func NewWalletCheckAddressCmd(addr string) *WalletCheckAddressCmd

type WalletGetInfoCmd

type WalletGetInfoCmd struct {
}

WalletGetInfoCmd defines the Get wallet information command

func NewWalletGetInfoCmd

func NewWalletGetInfoCmd() *WalletGetInfoCmd

type WalletInfo

type WalletInfo struct {
	AutomaticBackups           bool        `json:"automatic_backups"`
	DataDir                    string      `json:"data_dir"`
	LastScannedBlockNum        int         `json:"last_scanned_block_num"`
	LastScannedBlockTimestamp  string      `json:"last_scanned_block_timestamp"`
	Name                       string      `json:"name"`
	NumScanningThreads         int         `json:"num_scanning_threads"`
	Open                       bool        `json:"open"`
	ScanProgress               string      `json:"scan_progress"`
	TransactionExpirationSecs  int         `json:"transaction_expiration_secs"`
	TransactionFee             AssetAmount `json:"transaction_fee"`
	TransactionScanningEnabled bool        `json:"transaction_scanning_enabled"`
	Unlocked                   bool        `json:"unlocked"`
	UnlockedUntil              int         `json:"unlocked_until"`
	UnlockedUntilTimestamp     string      `json:"unlocked_until_timestamp"`
	Version                    int         `json:"version"`
}

type WalletLockCmd

type WalletLockCmd struct{}

WalletLockCmd defines the wallet_lock JSON-RPC command.

func NewWalletLockCmd

func NewWalletLockCmd() *WalletLockCmd

type WalletOpenCmd

type WalletOpenCmd struct {
	WalletName string
}

WalletOpenCmd defines the wallet_open JSON-RPC command.

func NewWalletOpenCmd

func NewWalletOpenCmd(walletName string) *WalletOpenCmd

type WalletTransferToAddressCmd

type WalletTransferToAddressCmd struct {
	Amount          string
	AssetSymbol     string
	FromAccountName string
	ToAddress       string
}

WalletTransferToAddressCmd defines the wallet_transfer_to_address JSON-RPC command.

func NewWalletTransferToAddressCmd

func NewWalletTransferToAddressCmd(amount string, assetSymbol string, fromAccountName string,
	toAddress string) *WalletTransferToAddressCmd

type WalletTransferToAddressResult

type WalletTransferToAddressResult struct {
	EntryID string `json:"entry_id"`
}

type WalletUnLockCmd

type WalletUnLockCmd struct {
	Timeout  string
	Password string
}

WalletUnLockCmd defines the wallet_unlock JSON-RPC command.

func NewWalletUnLockCmd

func NewWalletUnLockCmd(timeout string, password string) *WalletUnLockCmd

Jump to

Keyboard shortcuts

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