request

package
v0.0.0-...-6ffa3c9 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetCallReq

type GetCallReq struct {
	// query parameters
	ContractAddr string `form:"contract" binding:"required"`
	FromAddr     string `form:"from" binding:"required"`
	CallData     string `form:"data" binding:"required"`

	// parsed parameters
	ContractAddrCmn gethcmn.Address
	FromAddrCmn     gethcmn.Address
	CallDataBz      []byte
}

func (*GetCallReq) Bind

func (req *GetCallReq) Bind(c *gin.Context) error

type GetGrantcodeReq

type GetGrantcodeReq struct {
	// query parameters
	ContractAddr    string `form:"contract" binding:"required"`
	CallDataList    string `form:"datalist" binding:"required"`
	Nth             int    `form:"nth"`
	Time            int64  `form:"time" binding:"required"`
	OutData         string `form:"out"`
	Sig             string `form:"sig"`
	RecryptorPubkey string `form:"recryptorpk" binding:"required"`

	// body
	ReportBz []byte

	// parsed parameters
	ContractAddrCmn   gethcmn.Address
	CallDataBzList    [][]byte
	OutDataBz         []byte
	SigBz             []byte
	RecryptorPubkeyBz []byte
}

func (*GetGrantcodeReq) Bind

func (req *GetGrantcodeReq) Bind(c *gin.Context) error

type GetKeysReq

type GetKeysReq struct {
	// query parameters
	Keys string `form:"k" binding:"required"`

	// parsed parameters
	EncryptedPrivKeyBz []byte
	PeerPubKeyBz33     [33]byte
}

func (*GetKeysReq) Bind

func (req *GetKeysReq) Bind(c *gin.Context) error

type GetLogReq

type GetLogReq struct {
	// query parameters
	BlockHash    string `form:"block" binding:"required"`
	ContractAddr string `form:"contract" binding:"required"`
	Topic0       string `form:"topic0"`
	Topic1       string `form:"topic1"`
	Topic2       string `form:"topic2"`
	Topic3       string `form:"topic3"`

	// parsed parameters
	BlockHashCmn    gethcmn.Hash
	ContractAddrCmn gethcmn.Address
	TopicsCmn       []gethcmn.Hash
}

func (*GetLogReq) Bind

func (req *GetLogReq) Bind(c *gin.Context) error

func (*GetLogReq) GetTopic

func (req *GetLogReq) GetTopic(i int) string

type GetTxReq

type GetTxReq struct {
	// query parameters
	TxHash string `form:"hash" binding:"required"`

	// parsed parameters
	TxCommonHash gethcmn.Hash
}

func (*GetTxReq) Bind

func (req *GetTxReq) Bind(c *gin.Context) error

Jump to

Keyboard shortcuts

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