Documentation ¶
Overview ¶
Exporting types for querying states ug93tad
Index ¶
- func DefaultHandler(method, pattern string, params map[string]int, handlers ...apiHandle) hr.Handle
- func InitSmartContract(sc *smart.SmartContract, data []byte) error
- func KeyLogin(keyFile string, pubKeyFile string, addr string) (err error)
- func PostTx(txname string, form *url.Values) error
- func PostTxWithResult(txname string, form *url.Values) (string, error)
- func PrivateToPublicHex(hexkey string) (string, error)
- func RawToString(input json.RawMessage) string
- func Route(route *hr.Router)
- func SendGet(url string, form *url.Values, v interface{}) error
- func SendPost(url string, form *url.Values, v interface{}) error
- func SetApiAddress(addr string)
- func SetPriv(key string)
- func SetToken(token string)
- func TestGetAvatar(t *testing.T)
- func VDEContract(contractData []byte, data *apiData) (result *contractResult, err error)
- type ColumnInfo
- type CompletedTxsResults
- type ContractField
- type ContractsResult
- type EcoSystemsResult
- type EncryptKey
- type GUID
- type GetContractResult
- type JWTClaims
- type ListResult
- type LoginResult
- type RolesResult
- type RowResult
- type SignRes
- type TableInfo
- type TableResult
- type TablesResult
- type TxSignJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultHandler ¶
DefaultHandler is a common handle function for api requests
func InitSmartContract ¶
func InitSmartContract(sc *smart.SmartContract, data []byte) error
InitSmartContract is initializes smart contract
func PrivateToPublicHex ¶
PrivateToPublicHex returns the hex public key for the specified hex private key.
func RawToString ¶
func RawToString(input json.RawMessage) string
func SetApiAddress ¶
func SetApiAddress(addr string)
func TestGetAvatar ¶
func VDEContract ¶
VDEContract is init VDE contract
Types ¶
type ColumnInfo ¶
type CompletedTxsResults ¶
type ContractField ¶
type ContractsResult ¶
type EcoSystemsResult ¶
type EcoSystemsResult struct {
Number uint32
}
type EncryptKey ¶
type EncryptKey struct { Encrypted string `json:"encrypted"` //hex Public string `json:"public"` //hex WalletID int64 `json:"wallet_id"` Address string `json:"address"` Error string `json:"error"` }
EncryptKey is a structure for the answer of ajax_encrypt_key ajax request
type GetContractResult ¶
type JWTClaims ¶
type JWTClaims struct { UID string `json:"uid,omitempty"` EcosystemID string `json:"ecosystem_id,omitempty"` KeyID string `json:"key_id,omitempty"` RoleID string `json:"role_id,omitempty"` IsMobile string `json:"is_mobile,omitempty"` jwt.StandardClaims }
JWTClaims is storing jwt claims
type ListResult ¶
type LoginResult ¶
type LoginResult struct { Token string `json:"token,omitempty"` Refresh string `json:"refresh,omitempty"` EcosystemID string `json:"ecosystem_id,omitempty"` KeyID string `json:"key_id,omitempty"` Address string `json:"address,omitempty"` NotifyKey string `json:"notify_key,omitempty"` IsNode bool `json:"isnode,omitempty"` IsOwner bool `json:"isowner,omitempty"` IsVDE bool `json:"vde,omitempty"` Timestamp string `json:"timestamp,omitempty"` Roles []RolesResult `json:"roles,omitempty"` }
type RolesResult ¶
type TableResult ¶
type TableResult struct { Name string `json:"name"` Insert string `json:"insert"` NewColumn string `json:"new_column"` Update string `json:"update"` Read string `json:"read,omitempty"` Filter string `json:"filter,omitempty"` Conditions string `json:"conditions"` AppID string `json:"app_id"` Columns []ColumnInfo `json:"columns"` }
type TablesResult ¶
Source Files ¶
- api.go
- appparam.go
- appparams.go
- auth.go
- balance.go
- block.go
- config.go
- content.go
- contract.go
- contracts.go
- data.go
- ecosystemparam.go
- ecosystemparams.go
- ecosystems.go
- errors.go
- getcontract.go
- getuid.go
- history.go
- interface.go
- list.go
- login.go
- member.go
- node.go
- notificator.go
- options.go
- prepare.go
- refresh.go
- route.go
- row.go
- smart.go
- systemparams.go
- table.go
- tables.go
- test.go
- txstatus.go
- types.go
- utils.go
- vde.go
- version.go
Click to show internal directories.
Click to hide internal directories.