Documentation ¶
Overview ¶
common
common
common
Index ¶
- Constants
- func Activate(reqData model.AccountActivateOperation, url string) model.AccountActivateResponse
- func AssetIssue(reqData model.AssetIssueOperation) model.AssetIssueResponse
- func AssetSend(reqData model.AssetSendOperation) model.AssetSendResponse
- func CheckActivated(address string, url string) (bool, exception.SDKResponse)
- func ContractCreate(reqData model.ContractCreateOperation) model.ContractCreateResponse
- func GasSend(reqData model.GasSendOperation) model.GasSendResponse
- func GetCallDataStr(funcstr string, ContractAddress string, TokenOwner string) (string, exception.SDKResponse)
- func GetLatestFees(url string) (int64, int64, exception.SDKResponse)
- func GetOperations(operationsList list.List, url string, sourceAddress string) ([]*protocol.Operation, exception.SDKResponse)
- func GetRequest(strUrl string, get string, str string) (*http.Response, exception.SDKResponse)
- func GetRequestJson(reqData model.TransactionSubmitRequests) ([]byte, exception.SDKResponse)
- func InvokeByAsset(reqData model.ContractInvokeByAssetOperation) model.ContractInvokeByGasResponse
- func InvokeByGas(reqData model.ContractInvokeByGasOperation) model.ContractInvokeByGasResponse
- func LogCreate(reqData model.LogCreateOperation) model.LogCreateResponse
- func PostRequest(strUrl string, post string, data []byte) (*http.Response, exception.SDKResponse)
- func SetMetadata(reqData model.AccountSetMetadataOperation) model.AccountSetMetadataResponse
- func SetPrivilege(reqData model.AccountSetPrivilegeOperation) model.AccountSetPrivilegeResponse
- func ToGas(amount string) string
- func ToUGas(amount string) string
- func UnitWithDecimals(amount string, decimals int) string
- func UnitWithoutDecimals(amount string, decimals int) string
Constants ¶
View Source
const (
INIT_BALANCE int64 = 20000000
)
Variables ¶
This section is empty.
Functions ¶
func Activate ¶
func Activate(reqData model.AccountActivateOperation, url string) model.AccountActivateResponse
activate the account
func AssetIssue ¶
func AssetIssue(reqData model.AssetIssueOperation) model.AssetIssueResponse
asset issue
func AssetSend ¶
func AssetSend(reqData model.AssetSendOperation) model.AssetSendResponse
asset send
func CheckActivated ¶
func CheckActivated(address string, url string) (bool, exception.SDKResponse)
func ContractCreate ¶
func ContractCreate(reqData model.ContractCreateOperation) model.ContractCreateResponse
contract create
func GetCallDataStr ¶
func GetOperations ¶
func GetOperations(operationsList list.List, url string, sourceAddress string) ([]*protocol.Operation, exception.SDKResponse)
GetOperations
func GetRequest ¶
http get
func GetRequestJson ¶
func GetRequestJson(reqData model.TransactionSubmitRequests) ([]byte, exception.SDKResponse)
Json
func InvokeByAsset ¶
func InvokeByAsset(reqData model.ContractInvokeByAssetOperation) model.ContractInvokeByGasResponse
invoke by asset
func InvokeByGas ¶
func InvokeByGas(reqData model.ContractInvokeByGasOperation) model.ContractInvokeByGasResponse
invoke by gas
func LogCreate ¶
func LogCreate(reqData model.LogCreateOperation) model.LogCreateResponse
log create
func PostRequest ¶
http post
func SetMetadata ¶
func SetMetadata(reqData model.AccountSetMetadataOperation) model.AccountSetMetadataResponse
set metadata
func SetPrivilege ¶
func SetPrivilege(reqData model.AccountSetPrivilegeOperation) model.AccountSetPrivilegeResponse
set privilege
func UnitWithDecimals ¶
func UnitWithoutDecimals ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.