common

package
v0.0.0-...-cfae859 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

common

common

common

Index

Constants

View Source
const (
	INIT_BALANCE int64 = 20000000
)

Variables

This section is empty.

Functions

func Activate

activate the account

func AssetIssue

asset issue

func AssetSend

asset send

func CheckActivated

func CheckActivated(address string, url string) (bool, exception.SDKResponse)

func ContractCreate

contract create

func GasSend

gas send

func GetCallDataStr

func GetCallDataStr(funcstr string, ContractAddress string, TokenOwner string) (string, exception.SDKResponse)

func GetLatestFees

func GetLatestFees(url string) (int64, int64, exception.SDKResponse)

获取最新fees

func GetOperations

func GetOperations(operationsList list.List, url string, sourceAddress string) ([]*protocol.Operation, exception.SDKResponse)

GetOperations

func GetRequest

func GetRequest(strUrl string, get string, str string) (*http.Response, exception.SDKResponse)

http get

func GetRequestJson

func GetRequestJson(reqData model.TransactionSubmitRequests) ([]byte, exception.SDKResponse)

Json

func InvokeByAsset

invoke by asset

func InvokeByGas

invoke by gas

func LogCreate

log create

func PostRequest

func PostRequest(strUrl string, post string, data []byte) (*http.Response, exception.SDKResponse)

http post

func SetMetadata

set metadata

func SetPrivilege

set privilege

func ToGas

func ToGas(amount string) string

func ToUGas

func ToUGas(amount string) string

func UnitWithDecimals

func UnitWithDecimals(amount string, decimals int) string

func UnitWithoutDecimals

func UnitWithoutDecimals(amount string, decimals int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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