Documentation ¶
Index ¶
- Constants
- func HandleGetAuthAddr(data []byte) ([]byte, error)
- func HandleGetChainAP(data []byte) ([]byte, error)
- func HandleGetVerifierAddr(data []byte) ([]byte, error)
- func HandleSetMsgStoreAddr(data []byte) ([]byte, error)
- func HandleSetTransactionOpts(data []byte) ([]byte, error)
- func HandleSetVerifierAddr(data []byte) ([]byte, error)
- func RequestGetAuthAddr(addr string, chainID *big.Int) (common.Address, error)
- func RequestGetChainAP(addr string, chainID *big.Int) (string, error)
- func RequestGetVerifierAddr(addr string, sourceChainID *big.Int, targetChainID *big.Int, ...) (common.Address, error)
- func RequestSetMsgStoreAddr(addr string, msgStoreURL string) (bool, error)
- func RequestSetTransactionOpts(addr string, chainID *big.Int, chainAP string, key []byte) (bool, error)
- func RequestSetVerifierAddr(addr string, sourceChainID *big.Int, sourceCbc string, targetChainID *big.Int, ...) (bool, error)
- type GetAuthAddrReq
- type GetAuthAddrResp
- type GetChainAPReq
- type GetChainAPResp
- type GetVerifierAddrReq
- type GetVerifierAddrResp
- type SetMsgStoreAddrReq
- type SetMsgStoreAddrResp
- type SetTransactionOptsReq
- type SetTransactionOptsResp
- type SetVerifierAddrReq
- type SetVerifierAddrResp
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func HandleGetAuthAddr ¶
HandleGetAuthAddr handles get auth addr.
func HandleGetChainAP ¶
HandleGetChainAP handles get chain ap request.
func HandleGetVerifierAddr ¶
HandleGetVerifierAddr handles get verifier addr.
func HandleSetMsgStoreAddr ¶
HandleSetMsgStoreAddr handles set msg store addr.
func HandleSetTransactionOpts ¶
HandleSetTransactionOpts handles set transaction opts request.
func HandleSetVerifierAddr ¶
HandleSetVerifierAddr handles set verifier addr.
func RequestGetAuthAddr ¶
RequestGetAuthAddr requests get auth addr.
func RequestGetChainAP ¶
RequestGetChainAP requests get chain ap.
func RequestGetVerifierAddr ¶
func RequestGetVerifierAddr(addr string, sourceChainID *big.Int, targetChainID *big.Int, contractAddr common.Address) (common.Address, error)
RequestGetVerifierAddr requests get verifier addr.
func RequestSetMsgStoreAddr ¶
RequestSetMsgStoreAddr requests set msg store addr.
Types ¶
type GetAuthAddrReq ¶
type GetAuthAddrReq struct {
ChainID string `json:"chain_id"`
}
GetAuthAddrReq is the request to get auth addr.
type GetAuthAddrResp ¶
type GetAuthAddrResp struct {
Addr string `json:"addr"`
}
GetAuthAddrResp is the response to get auth addr.
type GetChainAPReq ¶
type GetChainAPReq struct {
ChainID string `json:"chain_id"`
}
GetChainAPReq is the request to get chain ap.
type GetChainAPResp ¶
type GetChainAPResp struct {
ChainAP string `json:"chain_ap"`
}
GetChainAPResp is the response to get chain ap.
type GetVerifierAddrReq ¶
type GetVerifierAddrReq struct { SourceChainID string `json:"source_chain_id"` SourceChainCbc string `json:"source_chain_cbc"` TargetChainID string `json:"target_chain_id"` }
GetVerifierAddrReq is the request to get verifier addr.
type GetVerifierAddrResp ¶
type GetVerifierAddrResp struct {
VerifierContractAddr string `json:"verifier_contract_addr"`
}
GetVerifierAddrResp is the response to get verifier addr.
type SetMsgStoreAddrReq ¶
type SetMsgStoreAddrReq struct {
MsgStoreURL string `json:"msg_store_url"`
}
SetMsgStoreAddrReq is the request to set msg store addr.
type SetMsgStoreAddrResp ¶
type SetMsgStoreAddrResp struct {
Success bool `json:"success"`
}
SetMsgStoreAddrResp is the response to set msg store addr.
type SetTransactionOptsReq ¶
type SetTransactionOptsReq struct { ChainID string `json:"chain_id"` ChainAP string `json:"chain_ap"` Key []byte `json:"key"` }
SetTransactionOptsReq is the request to set transaction opts.
type SetTransactionOptsResp ¶
type SetTransactionOptsResp struct {
Success bool `json:"success"`
}
SetTransactionOptsResp is the response to set transaction opts.
type SetVerifierAddrReq ¶
type SetVerifierAddrReq struct { SourceChainID string `json:"source_chain_id"` SourceChainCbc string `json:"source_chain_cbc"` TargetChainID string `json:"target_chain_id"` VerifierContractAddr string `json:"verifier_contract_addr"` }
SetVerifierAddrReq is the request to set verifier addr.
type SetVerifierAddrResp ¶
type SetVerifierAddrResp struct {
Success bool `json:"success"`
}
SetVerifierAddrResp is the response to set verifier addr.