Documentation ¶
Index ¶
- Variables
- func ToHex(b []byte) string
- type BalanceResp
- type ChainSignersRequest
- type CosBridgeSignersUpdated
- type CosClient
- func (c *CosClient) DelayTransferExist(id ec.Hash, contractCanonicalAddr string) (bool, error)
- func (c *CosClient) ExecuteDelay(id ec.Hash, contractCanonicalAddr string) (string, error)
- func (c *CosClient) ExecutePegBridgeDelay(id ec.Hash) (string, error)
- func (c *CosClient) ExecuteVaultDelay(id ec.Hash) (string, error)
- func (c *CosClient) GetBlockTs() (time.Time, error)
- func (c *CosClient) GetContractHumanAddress(contractCanonicalAddr string) (string, error)
- func (c *CosClient) GetDelayPeriod(contractCanonicalAddr string) (uint64, error)
- func (c *CosClient) GetDelayThreshold(contractCanonicalAddr, tokenCanonicalAddr string) (string, error)
- func (c *CosClient) GetPegBridgeDelayPeriod() (uint64, error)
- func (c *CosClient) GetPegBridgeDelayThreshold(tokenCanonicalAddr string) (string, error)
- func (c *CosClient) GetVaultDelayPeriod() (uint64, error)
- func (c *CosClient) GetVaultDelayThreshold(tokenCanonicalAddr string) (string, error)
- func (c *CosClient) IsPaused(contractCanonicalAddr string) (bool, error)
- func (c *CosClient) IsPegBridgePaused() (bool, error)
- func (c *CosClient) IsVaultPaused() (bool, error)
- func (c *CosClient) MonOTV(...)
- func (c *CosClient) MonPTB(...)
- func (c *CosClient) Monitor(eventQuery string, handleEvents func(events map[string][]string), ...) error
- func (c *CosClient) Pause(contractCanonicalAddr string) (string, error)
- func (c *CosClient) PausePegBridge() (string, error)
- func (c *CosClient) PauseVault() (string, error)
- func (c *CosClient) PegBridgeDelayTransferExist(id ec.Hash) (bool, error)
- func (c *CosClient) QueryCW20Balance(tokenCanonicalAddr, balancerCanonicalAddr string) (*BalanceResp, error)
- func (c *CosClient) QueryEpochVolumeCap(token string, contractCanonicalAddr string) (*big.Int, error)
- func (c *CosClient) QueryNativeToken(balancerCanonicalAddr string) (*cosmostypes.Coin, error)
- func (c *CosClient) QueryPegBridgeRecordExist(id ec.Hash, isBurn bool) (bool, error)
- func (c *CosClient) QueryPegBridgeTokenVolume(tokenCanonicalAddr string) (*big.Int, error)
- func (c *CosClient) QueryPegBridgeVolumeEpochLength() (uint64, error)
- func (c *CosClient) QueryPegBridgeVolumeLastOpTimestamp(token string) (uint64, error)
- func (c *CosClient) QueryPegTokenBalance(tokenCanonicalAddr, balancerCanonicalAddr string) (*BalanceResp, error)
- func (c *CosClient) QueryPegTokenSupply(tokenCanonicalAddr string) (*big.Int, error)
- func (c *CosClient) QueryPegbridgeEpochVolumeCap(token string) (*big.Int, error)
- func (c *CosClient) QueryTokenTotalSupply(tokenCanonicalAddr string) (*PegTokenInfo, error)
- func (c *CosClient) QueryTokenVolume(tokenCanonicalAddr string, contractCanonicalAddr string) (*big.Int, error)
- func (c *CosClient) QueryTxGasCost(txHash ec.Hash) (*big.Int, error)
- func (c *CosClient) QueryVaultBalance(token string) (*big.Int, error)
- func (c *CosClient) QueryVaultEpochVolumeCap(token string) (*big.Int, error)
- func (c *CosClient) QueryVaultRecordExist(id ec.Hash, isDeposit bool) (bool, error)
- func (c *CosClient) QueryVaultTokenVolume(tokenCanonicalAddr string) (*big.Int, error)
- func (c *CosClient) QueryVaultVolumeEpochLength() (uint64, error)
- func (c *CosClient) QueryVaultVolumeLastOpTimestamp(token string) (uint64, error)
- func (c *CosClient) QueryVolumeEpochLength(contractCanonicalAddr string) (uint64, error)
- func (c *CosClient) QueryVolumeLastOpTimestamp(token string, contractCanonicalAddr string) (uint64, error)
- func (c *CosClient) Unpause(contractCanonicalAddr string) (string, error)
- func (c *CosClient) UnpausePegBridge() (string, error)
- func (c *CosClient) UnpauseVault() (string, error)
- func (c *CosClient) VaultDelayTransferExist(id ec.Hash) (bool, error)
- type CosConfig
- type CosEventLog
- type CosPegBridgeBurn
- type CosPegBridgeMint
- type CosVaultDeposited
- type CosVaultWithdrawn
- type OTVRecord
- type PTBRecord
- type PegTokenInfo
- type WasmExecuteMsgMint
- type WasmExecuteMsgMintBody
- type WasmExecuteMsgUpdateSigners
- type WasmExecuteMsgUpdateSignersBody
- type WasmExecuteMsgWithdraw
- type WasmExecuteMsgWithdrawBody
- type WasmQueryOTVRecordRequest
- type WasmQueryOTVRecordResponse
- type WasmQueryPTBRecordRequest
- type WasmQueryPTBRecordResponse
- type WasmQueryRequestSigners
- type WasmQueryResponseSigners
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EventQuery = tmquery.MustParse("tm.event='Tx'").String() AndContractQueryParamTmpl = " AND wasm._contract_address='%s'" )
Functions ¶
Types ¶
type BalanceResp ¶
type BalanceResp struct {
Balance string
}
type ChainSignersRequest ¶
type ChainSignersRequest struct{}
type CosBridgeSignersUpdated ¶
func (CosBridgeSignersUpdated) String ¶
func (s CosBridgeSignersUpdated) String() interface{}
type CosClient ¶
type CosClient struct { ChainID uint64 RawChainID string // the original cosmos chain id Cc *lens.ChainClient BridgeAddr string // cosmos canonical hex addr VaultAddr string // cosmos canonical hex addr PegBridgeAddr string // cosmos canonical hex addr MsgPackage string // if provided, with replace the package of the Any typeUrl of the sdk.Msg }
all in one helper to do everything about cosmos chain
func NewCosClient ¶
func (*CosClient) DelayTransferExist ¶
func (*CosClient) ExecuteDelay ¶
func (*CosClient) ExecutePegBridgeDelay ¶
func (*CosClient) ExecuteVaultDelay ¶
func (*CosClient) GetContractHumanAddress ¶
func (*CosClient) GetDelayPeriod ¶
func (*CosClient) GetDelayThreshold ¶
func (*CosClient) GetPegBridgeDelayPeriod ¶
func (*CosClient) GetPegBridgeDelayThreshold ¶
func (*CosClient) GetVaultDelayPeriod ¶
func (*CosClient) GetVaultDelayThreshold ¶
func (*CosClient) IsPegBridgePaused ¶
func (*CosClient) IsVaultPaused ¶
func (*CosClient) PausePegBridge ¶
func (*CosClient) PauseVault ¶
func (*CosClient) PegBridgeDelayTransferExist ¶
func (*CosClient) QueryCW20Balance ¶
func (c *CosClient) QueryCW20Balance(tokenCanonicalAddr, balancerCanonicalAddr string) (*BalanceResp, error)
func (*CosClient) QueryEpochVolumeCap ¶
func (*CosClient) QueryNativeToken ¶
func (c *CosClient) QueryNativeToken(balancerCanonicalAddr string) (*cosmostypes.Coin, error)
func (*CosClient) QueryPegBridgeRecordExist ¶
func (*CosClient) QueryPegBridgeTokenVolume ¶
func (*CosClient) QueryPegBridgeVolumeEpochLength ¶
func (*CosClient) QueryPegBridgeVolumeLastOpTimestamp ¶
func (*CosClient) QueryPegTokenBalance ¶
func (c *CosClient) QueryPegTokenBalance(tokenCanonicalAddr, balancerCanonicalAddr string) (*BalanceResp, error)
func (*CosClient) QueryPegTokenSupply ¶
func (*CosClient) QueryPegbridgeEpochVolumeCap ¶
func (*CosClient) QueryTokenTotalSupply ¶
func (c *CosClient) QueryTokenTotalSupply(tokenCanonicalAddr string) (*PegTokenInfo, error)
func (*CosClient) QueryTokenVolume ¶
func (*CosClient) QueryTxGasCost ¶
func (*CosClient) QueryVaultBalance ¶
func (*CosClient) QueryVaultEpochVolumeCap ¶
func (*CosClient) QueryVaultRecordExist ¶
func (*CosClient) QueryVaultTokenVolume ¶
func (*CosClient) QueryVaultVolumeEpochLength ¶
func (*CosClient) QueryVaultVolumeLastOpTimestamp ¶
func (*CosClient) QueryVolumeEpochLength ¶
func (*CosClient) QueryVolumeLastOpTimestamp ¶
func (*CosClient) UnpausePegBridge ¶
func (*CosClient) UnpauseVault ¶
type CosConfig ¶
type CosConfig struct { ChainId uint64 RawChainID string Key string AccountPrefix string Endpoint string BridgeAddr string VaultBridgeAddr string PegBridgeAddr string MsgPackage string KeyringBackend string TransactorPassphrase string GasAdjustment float64 GasPrices string Timeout string HomeDir string }
type CosEventLog ¶
type CosPegBridgeBurn ¶
type CosPegBridgeMint ¶
type CosVaultDeposited ¶
type CosVaultWithdrawn ¶
type PegTokenInfo ¶
type WasmExecuteMsgMint ¶
type WasmExecuteMsgMint struct {
Mint WasmExecuteMsgMintBody `json:"mint"`
}
type WasmExecuteMsgMintBody ¶
type WasmExecuteMsgUpdateSigners ¶
type WasmExecuteMsgUpdateSigners struct {
UpdateSigners WasmExecuteMsgUpdateSignersBody `json:"update_signers"`
}
type WasmExecuteMsgWithdraw ¶
type WasmExecuteMsgWithdraw struct {
Withdraw WasmExecuteMsgWithdrawBody `json:"withdraw"`
}
type WasmQueryOTVRecordRequest ¶
type WasmQueryOTVRecordRequest struct {
Record OTVRecord `json:"record"`
}
type WasmQueryOTVRecordResponse ¶
type WasmQueryOTVRecordResponse bool
type WasmQueryPTBRecordRequest ¶
type WasmQueryPTBRecordRequest struct {
Record PTBRecord `json:"record"`
}
type WasmQueryPTBRecordResponse ¶
type WasmQueryPTBRecordResponse bool
type WasmQueryRequestSigners ¶
type WasmQueryRequestSigners struct {
ChainSigners ChainSignersRequest `json:"chain_signers"`
}
Click to show internal directories.
Click to hide internal directories.