httpapi

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

README

conflux-center-api

center API go for Conflux

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostWithJson_AdminCreateNFT

func PostWithJson_AdminCreateNFT(thurl string, actionName string, myappid string, Adminaddr string, addr string, nu uint64) []byte

/???

func PostWithJson_AdminCreateNFTBatch

func PostWithJson_AdminCreateNFTBatch(thurl string, actionName string, myappid string, Adminaddr string, addrs []string, addrsNumber uint64) []byte

批量生成1个NFT

func PostWithJson_AdminTransferNFTBatch

func PostWithJson_AdminTransferNFTBatch(thurl string, actionName string, myappid string, Adminaddr string, addrs []string, ids []uint64, addrsNumber uint64) []byte

批量转移NFT

func PostWithJson_Burn

func PostWithJson_Burn(thurl string, actionName string, myappid string, from string, id uint64, number uint64, password string) []byte

销毁单个NFT

func PostWithJson_BurnBatch

func PostWithJson_BurnBatch(thurl string, actionName string, myappid string, addrs string, ids []uint64, password string) []byte

销毁多个NFT(同一地址)

func PostWithJson_GetNFTCreator

func PostWithJson_GetNFTCreator(thurl string, actionName string, myappid string, ids uint64) []byte

查询

func PostWithJson_OwnerOf

func PostWithJson_OwnerOf(thurl string, actionName string, myappid string, ids uint64) []byte

查询 NFT 的属于谁

func PostWithJson_RemoveSPONSOR

func PostWithJson_RemoveSPONSOR(thurl string, actionName string, myappid string, addr string) []byte

移除白名单

func PostWithJson_SearchSPONSOR

func PostWithJson_SearchSPONSOR(thurl string, actionName string, myappid string, addr string) []byte

查询白名单

func PostWithJson_SetSPONSOR

func PostWithJson_SetSPONSOR(thurl string, actionName string, myappid string, addr string) []byte

设置白名单

func PostWithJson_TongBuPrivateKeyToZKVerse

func PostWithJson_TongBuPrivateKeyToZKVerse(thurl string, actionName string, myappid string, Password string, Addr string) []byte

func PostWithJson_Uri

func PostWithJson_Uri(thurl string, actionName string, myappid string, ids uint64) []byte

查询 NFT 的matadata uri

func PostWithJson_UserNFTs

func PostWithJson_UserNFTs(thurl string, actionName string, myappid string, addr string) []byte

查询 用户拥有的所有NFT

func PostWithJson_balanceOf

func PostWithJson_balanceOf(thurl string, actionName string, myappid string, addr string, ids uint64) []byte

查询

func PostWithJson_balanceOfBatch

func PostWithJson_balanceOfBatch(thurl string, actionName string, myappid string, addrs []string, ids []uint64, addrnumber uint64) []byte

Batch查询

func PostWithJson_getNftIndex

func PostWithJson_getNftIndex(thurl string, actionName string, myappid string) []byte

查询NFT_INDEX

func PostWithJson_safeBatchTransfer

func PostWithJson_safeBatchTransfer(thurl string, actionName string, myappid string, from string, to string, ids []uint64, numbers []uint64, password string) []byte

func PostWithJson_safeTransfer

func PostWithJson_safeTransfer(thurl string, actionName string, myappid string, from string, to string, id uint64, number uint64, password string) []byte

func PostWithJson_userregit

func PostWithJson_userregit(thurl string, actionName string, myappid string, pass string) []byte

func PostWithJson_userupdatapassword

func PostWithJson_userupdatapassword(thurl string, actionName string, myappid string, addr string, oldpassword string, newpassword string) []byte

func Testget

func Testget(thurl string)

Types

type AdminCreateTokenBatch_Message

type AdminCreateTokenBatch_Message struct {
	Appid      []byte `json:"appid"`
	Time       []byte `json:"emit"`
	Data       []byte `json:"data"`
	AdminAddr  []byte `json:"adminaddr"`
	Creaters   []byte `json:"creaters"`
	AddrNumber []byte `json:"addrnumber"`
}

type AdminCreateToken_Message

type AdminCreateToken_Message struct {
	Appid     []byte `json:"appid"`
	Time      []byte `json:"emit"`
	Data      []byte `json:"data"`
	AdminAddr []byte `json:"adminaddr"`
	Number    []byte `json:"number"`
	Creater   []byte `json:"creater"`
}

type AdminTransferTokenBatch_Message

type AdminTransferTokenBatch_Message struct {
	Appid      []byte `json:"appid"`
	Time       []byte `json:"emit"`
	Data       []byte `json:"data"`
	AdminAddr  []byte `json:"adminaddr"`
	Creaters   []byte `json:"creaters"`
	Ids        []byte `json:"ids"`
	AddrNumber []byte `json:"addrnumber"`
}

type BanlaceOfBatch_Message

type BanlaceOfBatch_Message struct {
	Appid      []byte `json:"appid"`
	Time       []byte `json:"emit"`
	Data       []byte `json:"data"`
	Addr       []byte `json:"addr"`
	Id         []byte `json:"id"`
	AddrNumber []byte `json:"addrnumber"`
}

type BanlaceOf_Message

type BanlaceOf_Message struct {
	Appid []byte `json:"appid"`
	Time  []byte `json:"emit"`
	Data  []byte `json:"data"`
	Addr  []byte `json:"addr"`
	Id    []byte `json:"id"`
}

type BurnFromBatch_Message

type BurnFromBatch_Message struct {
	Appid    []byte `json:"appid"`
	Time     []byte `json:"emit"`
	Data     []byte `json:"data"`
	Form     []byte `json:"from"`
	Ids      []byte `json:"ids"`
	Password []byte `json:"password"`
}

type BurnFrom_Message

type BurnFrom_Message struct {
	Appid    []byte `json:"appid"`
	Time     []byte `json:"emit"`
	Data     []byte `json:"data"`
	Form     []byte `json:"from"`
	Id       []byte `json:"id"`
	Number   []byte `json:"number"`
	Password []byte `json:"password"`
}

type GetNFTCreator_Message

type GetNFTCreator_Message struct {
	Appid []byte `json:"appid"`
	Time  []byte `json:"emit"`
	Data  []byte `json:"data"`
	Id    []byte `json:"id"`
}

type GetNftIndex_Message

type GetNftIndex_Message struct {
	Appid []byte `json:"appid"`
	Time  []byte `json:"emit"`
	Data  []byte `json:"data"`
}

type PopPrk_Message

type PopPrk_Message struct {
	Appid    []byte `json:"appid"`
	Time     []byte `json:"emit"`
	Password []byte `json:"password"`
	Addr     []byte `json:"addr"`
}

type Resp

type Resp struct {
	Code    string         `json:"code"`
	Msg     adminCreateNFT `json:"msg"`
	TimeSub int64          `json:"timesub"`
}

type RespNor

type RespNor struct {
	Code    string `json:"code"`
	Msg     string `json:"msg"`
	TimeSub int64  `json:"timesub"`
}

type Resp_trs

type Resp_trs struct {
	Code    string                `json:"code"`
	Msg     safeTransferFromEvent `json:"msg"`
	TimeSub int64                 `json:"timesub"`
}

type Resp_trsBatch

type Resp_trsBatch struct {
	Code    string                     `json:"code"`
	Msg     safeBatchTransferFromEvent `json:"msg"`
	TimeSub int64                      `json:"timesub"`
}

type RespbalanceOfBatch

type RespbalanceOfBatch struct {
	Code    string    `json:"code"`
	Msg     []big.Int `json:"msg"`
	TimeSub int64     `json:"timesub"`
}

type SafeBatchTransferFrom_Message

type SafeBatchTransferFrom_Message struct {
	Appid    []byte `json:"appid"`
	Time     []byte `json:"emit"`
	Data     []byte `json:"data"`
	Form     []byte `json:"from"`
	To       []byte `json:"to"`
	Ids      []byte `json:"ids"`
	Numbers  []byte `json:"numbers"`
	Password []byte `json:"password"`
}

type SafeTransferFrom_Message

type SafeTransferFrom_Message struct {
	Appid    []byte `json:"appid"`
	Time     []byte `json:"emit"`
	Data     []byte `json:"data"`
	Form     []byte `json:"from"`
	To       []byte `json:"to"`
	Id       []byte `json:"id"`
	Number   []byte `json:"number"`
	Password []byte `json:"password"`
}

type SearchSPONSOR_Message

type SearchSPONSOR_Message struct {
	Appid []byte `json:"appid"`
	Time  []byte `json:"emit"`
	Data  []byte `json:"data"`
	Addr  []byte `json:"addr"`
}

type Uri_Message

type Uri_Message struct {
	Appid []byte `json:"appid"`
	Time  []byte `json:"emit"`
	Data  []byte `json:"data"`
	ID    []byte `json:"ID"`
}

type UserRegite_Message

type UserRegite_Message struct {
	Appid    []byte `json:"appid"`
	Time     []byte `json:"emit"`
	Data     []byte `json:"data"`
	Password []byte `json:"password"`
}

type UserUpdataPassword_Message

type UserUpdataPassword_Message struct {
	Appid       []byte `json:"appid"`
	Time        []byte `json:"emit"`
	Data        []byte `json:"data"`
	Addr        []byte `json:"password"`
	OldPassword []byte `json:"oldpassword"`
	NewPassword []byte `json:"newpassword"`
}

Jump to

Keyboard shortcuts

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