Documentation ¶
Index ¶
- func ExportGenesis(ctx sdk.Context, k Keeper) *types.GenesisState
- func GetBridgeCallTimeout(params types.Params) uint64
- func GetExternalBatchTimeout(params types.Params) uint64
- func InitGenesis(ctx sdk.Context, k Keeper, state *types.GenesisState)
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewMsgServerRouterImpl(routerKeeper RouterKeeper) types.MsgServer
- func NewQueryServerImpl(keeper Keeper) types.QueryServer
- type Keeper
- func (k Keeper) AddBridgeTokenExecuted(ctx sdk.Context, claim *types.MsgBridgeTokenClaim) error
- func (k Keeper) AddOracleSetRequest(ctx sdk.Context, currentOracleSet *types.OracleSet)
- func (k Keeper) AddOutgoingBridgeCall(ctx sdk.Context, sender, refundAddr common.Address, baseCoins sdk.Coins, ...) (uint64, error)
- func (k Keeper) AddOutgoingBridgeCallWithoutBuild(ctx sdk.Context, outCall *types.OutgoingBridgeCall) uint64
- func (k Keeper) AfterIBCAckSuccess(ctx sdk.Context, ibcChannel string, ibcSequence uint64) error
- func (k Keeper) Attest(ctx sdk.Context, oracleAddr sdk.AccAddress, claim types.ExternalClaim) (*types.Attestation, error)
- func (k Keeper) AttestationHandler(ctx sdk.Context, externalClaim types.ExternalClaim) error
- func (k Keeper) BaseCoinToBridgeToken(ctx context.Context, holder sdk.AccAddress, baseCoin sdk.Coin) (bridgeToken erc20types.BridgeToken, err error)
- func (k Keeper) BaseCoinToIBCCoin(ctx context.Context, holder sdk.AccAddress, baseCoin sdk.Coin, channel string) (sdk.Coin, error)
- func (k Keeper) BatchConfirmHandler(ctx sdk.Context, msg *types.MsgConfirmBatch) error
- func (k Keeper) BridgeCallBaseCoin(ctx sdk.Context, from, refund, to common.Address, coins sdk.Coins, ...) (uint64, error)
- func (k Keeper) BridgeCallConfirmHandler(ctx sdk.Context, msg *types.MsgBridgeCallConfirm) error
- func (k Keeper) BridgeCallEvm(ctx sdk.Context, sender, refundAddr, to, receiverAddr common.Address, ...) error
- func (k Keeper) BridgeCallHandler(ctx sdk.Context, msg *types.MsgBridgeCallClaim) error
- func (k Keeper) BridgeCallResultHandler(ctx sdk.Context, claim *types.MsgBridgeCallResultClaim) error
- func (k Keeper) BridgeCoinSupply(ctx context.Context, token, target string) (sdk.Coin, error)
- func (k Keeper) BridgeTokenToBaseCoin(ctx context.Context, holder sdk.AccAddress, amount sdkmath.Int, ...) (baseCoin sdk.Coin, err error)
- func (k Keeper) BuildOutgoingBridgeCall(ctx sdk.Context, sender, refundAddr common.Address, tokens []types.ERC20Token, ...) (*types.OutgoingBridgeCall, error)
- func (k Keeper) BuildOutgoingTxBatch(ctx sdk.Context, sender sdk.AccAddress, receiver string, amount, fee sdk.Coin) (uint64, error)
- func (k Keeper) CalExternalTimeoutHeight(ctx sdk.Context, getTimeoutCallback func(params types.Params) uint64) uint64
- func (k Keeper) ConfirmHandler(ctx sdk.Context, confirm types.Confirm) error
- func (k Keeper) CreateBridgeAccount(ctx sdk.Context, address string)
- func (k Keeper) CrosschainBaseCoin(ctx sdk.Context, from sdk.AccAddress, receipt string, amount, fee sdk.Coin, ...) error
- func (k Keeper) DelLastEventNonceByOracle(ctx sdk.Context, oracleAddr sdk.AccAddress)
- func (k Keeper) DelOracle(ctx sdk.Context, oracleAddr sdk.AccAddress)
- func (k Keeper) DelOracleAddrByBridgerAddr(ctx sdk.Context, bridgerAddr sdk.AccAddress)
- func (k Keeper) DelOracleAddrByExternalAddr(ctk sdk.Context, externalAddress string)
- func (k Keeper) DeleteAttestation(ctx sdk.Context, claim types.ExternalClaim)
- func (k Keeper) DeleteBatch(ctx sdk.Context, batch *types.OutgoingTxBatch)
- func (k Keeper) DeleteBatchConfirm(ctx sdk.Context, batchNonce uint64, tokenContract string)
- func (k Keeper) DeleteBridgeCallConfirm(ctx sdk.Context, nonce uint64)
- func (k Keeper) DeleteOracleSet(ctx sdk.Context, nonce uint64)
- func (k Keeper) DeleteOracleSetConfirm(ctx sdk.Context, nonce uint64)
- func (k Keeper) DeleteOutgoingBridgeCall(ctx sdk.Context, nonce uint64)
- func (k Keeper) DeleteOutgoingBridgeCallQuoteInfo(ctx sdk.Context, nonce uint64)
- func (k Keeper) DeleteOutgoingBridgeCallRecord(ctx sdk.Context, bridgeCallNonce uint64) error
- func (k Keeper) DeletePendingExecuteClaim(ctx sdk.Context, eventNonce uint64)
- func (k Keeper) DepositBridgeToken(ctx context.Context, holder sdk.AccAddress, amount sdkmath.Int, ...) (bridgeToken erc20types.BridgeToken, err error)
- func (k Keeper) EndBlocker(ctx sdk.Context)
- func (k Keeper) ExecuteClaim(ctx sdk.Context, eventNonce uint64) (preExecuteErr, executeErr error)
- func (k Keeper) GetAllOracles(ctx sdk.Context, isOnline bool) (oracles types.Oracles)
- func (k Keeper) GetAttestation(ctx sdk.Context, eventNonce uint64, claimHash []byte) *types.Attestation
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetBatchConfirm(ctx sdk.Context, tokenContract string, batchNonce uint64, ...) *types.MsgConfirmBatch
- func (k Keeper) GetBridgeCallMaxGasLimit(ctx sdk.Context) uint64
- func (k Keeper) GetBridgeCallTimeout(ctx sdk.Context) uint64
- func (k Keeper) GetBridgeToken(ctx context.Context, tokenAddr string) (erc20types.BridgeToken, error)
- func (k Keeper) GetCallbackFrom() common.Address
- func (k Keeper) GetCurrentOracleSet(ctx sdk.Context) *types.OracleSet
- func (k Keeper) GetERC20TokenByAddr(ctx sdk.Context, erc20Addr common.Address) (erc20types.ERC20Token, error)
- func (k Keeper) GetGravityID(ctx sdk.Context) string
- func (k Keeper) GetIbcTransferTimeoutHeight(ctx sdk.Context) uint64
- func (k Keeper) GetLastEventBlockHeightByOracle(ctx sdk.Context, oracleAddr sdk.AccAddress) uint64
- func (k Keeper) GetLastEventNonceByOracle(ctx sdk.Context, oracleAddr sdk.AccAddress) uint64
- func (k Keeper) GetLastObservedBlockHeight(ctx sdk.Context) types.LastObservedBlockHeight
- func (k Keeper) GetLastObservedEventNonce(ctx sdk.Context) uint64
- func (k Keeper) GetLastObservedOracleSet(ctx sdk.Context) *types.OracleSet
- func (k Keeper) GetLastOracleSlashBlockHeight(ctx sdk.Context) uint64
- func (k Keeper) GetLastOutgoingBatchByToken(ctx sdk.Context, token string) *types.OutgoingTxBatch
- func (k Keeper) GetLastSlashedBatchBlock(ctx sdk.Context) uint64
- func (k Keeper) GetLastSlashedBridgeCallNonce(ctx sdk.Context) uint64
- func (k Keeper) GetLastSlashedOracleSetNonce(ctx sdk.Context) uint64
- func (k Keeper) GetLastTotalPower(ctx sdk.Context) sdkmath.Int
- func (k Keeper) GetLatestOracleSet(ctx sdk.Context) *types.OracleSet
- func (k Keeper) GetLatestOracleSetNonce(ctx sdk.Context) uint64
- func (k Keeper) GetModuleEvmAddress() common.Address
- func (k Keeper) GetOracle(ctx sdk.Context, oracleAddr sdk.AccAddress) (oracle types.Oracle, found bool)
- func (k Keeper) GetOracleAddrByBridgerAddr(ctx sdk.Context, bridgerAddr sdk.AccAddress) (sdk.AccAddress, bool)
- func (k Keeper) GetOracleAddrByExternalAddr(ctx sdk.Context, externalAddress string) (sdk.AccAddress, bool)
- func (k Keeper) GetOracleDelegateMultiple(ctx sdk.Context) int64
- func (k Keeper) GetOracleDelegateThreshold(ctx sdk.Context) sdk.Coin
- func (k Keeper) GetOracleDelegateToken(ctx sdk.Context, delegateAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdkmath.Int, error)
- func (k Keeper) GetOracleSet(ctx sdk.Context, nonce uint64) *types.OracleSet
- func (k Keeper) GetOracleSetConfirm(ctx sdk.Context, nonce uint64, oracleAddr sdk.AccAddress) *types.MsgOracleSetConfirm
- func (k Keeper) GetOracleSetUpdatePowerChangePercent(ctx sdk.Context) sdkmath.LegacyDec
- func (k Keeper) GetOracleSets(ctx sdk.Context) (oracleSets types.OracleSets)
- func (k Keeper) GetOutgoingBridgeCallByNonce(ctx sdk.Context, nonce uint64) (*types.OutgoingBridgeCall, bool)
- func (k Keeper) GetOutgoingBridgeCallQuoteInfo(ctx sdk.Context, nonce uint64) (types.QuoteInfo, bool)
- func (k Keeper) GetOutgoingTxBatch(ctx sdk.Context, tokenContract string, batchNonce uint64) *types.OutgoingTxBatch
- func (k Keeper) GetOutgoingTxBatches(ctx sdk.Context) (out []*types.OutgoingTxBatch)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetPendingExecuteClaim(ctx sdk.Context, eventNonce uint64) (types.ExternalClaim, error)
- func (k Keeper) GetProposalOracle(ctx sdk.Context) (proposalOracle types.ProposalOracle, found bool)
- func (k Keeper) GetSignedWindow(ctx sdk.Context) uint64
- func (k Keeper) GetSlashFraction(ctx sdk.Context) sdkmath.LegacyDec
- func (k Keeper) GetUnSlashedBatches(ctx sdk.Context, maxHeight uint64) (outgoingTxBatches types.OutgoingTxBatches)
- func (k Keeper) GetUnSlashedBridgeCalls(ctx sdk.Context, height uint64) []types.OutgoingBridgeCall
- func (k Keeper) GetUnSlashedOracleSets(ctx sdk.Context, maxHeight uint64) (oracleSets types.OracleSets)
- func (k Keeper) HasBridgeCallConfirm(ctx sdk.Context, nonce uint64, oracleAddr sdk.AccAddress) bool
- func (k Keeper) HasOracle(ctx sdk.Context, oracleAddr sdk.AccAddress) (found bool)
- func (k Keeper) HasOracleAddrByBridgerAddr(ctx sdk.Context, bridgerAddr sdk.AccAddress) bool
- func (k Keeper) HasOracleAddrByExternalAddr(ctx sdk.Context, externalAddress string) bool
- func (k Keeper) HasOracleSetRequest(ctx sdk.Context, nonce uint64) bool
- func (k Keeper) HasOutgoingBridgeCall(ctx sdk.Context, nonce uint64) bool
- func (k Keeper) HasOutgoingBridgeCallAddressAndNonce(ctx sdk.Context, sender string, nonce uint64) bool
- func (k Keeper) IBCCoinRefund(ctx sdk.Context, holder sdk.AccAddress, ibcCoin sdk.Coin, ibcChannel string, ...) error
- func (k Keeper) IBCCoinToBaseCoin(ctx context.Context, holder sdk.AccAddress, ibcCoin sdk.Coin) (string, error)
- func (k Keeper) IBCCoinToEvm(ctx sdk.Context, holder sdk.AccAddress, ibcCoin sdk.Coin) error
- func (k Keeper) IBCTransfer(ctx sdk.Context, from sdk.AccAddress, to string, amount sdk.Coin, ...) (uint64, error)
- func (k Keeper) IsProposalOracle(ctx sdk.Context, oracleAddr string) bool
- func (k Keeper) IterBridgeCallConfirmByNonce(ctx sdk.Context, nonce uint64, cb func(msg *types.MsgBridgeCallConfirm) bool)
- func (k Keeper) IterateAttestationAndClaim(ctx sdk.Context, cb func(*types.Attestation, types.ExternalClaim) bool)
- func (k Keeper) IterateAttestations(ctx sdk.Context, cb func(*types.Attestation) bool)
- func (k Keeper) IterateBatchByBlockHeight(ctx sdk.Context, start, end uint64, cb func(*types.OutgoingTxBatch) bool)
- func (k Keeper) IterateBatchConfirmByNonceAndTokenContract(ctx sdk.Context, batchNonce uint64, tokenContract string, ...)
- func (k Keeper) IterateOracle(ctx sdk.Context, cb func(oracle types.Oracle) bool)
- func (k Keeper) IterateOracleSetByNonce(ctx sdk.Context, startNonce uint64, cb func(*types.OracleSet) bool)
- func (k Keeper) IterateOracleSetConfirmByNonce(ctx sdk.Context, nonce uint64, cb func(*types.MsgOracleSetConfirm) bool)
- func (k Keeper) IterateOracleSets(ctx sdk.Context, reverse bool, cb func(*types.OracleSet) bool)
- func (k Keeper) IterateOutgoingBridgeCallByNonce(ctx sdk.Context, startNonce uint64, ...)
- func (k Keeper) IterateOutgoingBridgeCalls(ctx sdk.Context, cb func(outCall *types.OutgoingBridgeCall) bool)
- func (k Keeper) IterateOutgoingBridgeCallsByAddress(ctx sdk.Context, senderAddr string, ...)
- func (k Keeper) IterateOutgoingTxBatches(ctx sdk.Context, cb func(batch *types.OutgoingTxBatch) bool)
- func (k Keeper) LegacyGetDenomBridgeToken(ctx sdk.Context, denom string) (*types.BridgeToken, bool)deprecated
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) ModuleName() string
- func (k Keeper) OracleSetConfirmHandler(ctx sdk.Context, msg *types.MsgOracleSetConfirm) error
- func (k Keeper) OutgoingTxBatchExecuted(ctx sdk.Context, tokenContract string, batchNonce uint64) (err error)
- func (k Keeper) RefundOutgoingBridgeCall(ctx sdk.Context, data *types.OutgoingBridgeCall) error
- func (k Keeper) ResendBridgeCall(ctx sdk.Context, bridgeCall types.OutgoingBridgeCall, ...) error
- func (k Keeper) ResendTimeoutOutgoingTxBatch(ctx sdk.Context, batch *types.OutgoingTxBatch) error
- func (k Keeper) SavePendingExecuteClaim(ctx sdk.Context, claim types.ExternalClaim) error
- func (k Keeper) SendToFxExecuted(ctx sdk.Context, claim *types.MsgSendToFxClaim) error
- func (k Keeper) SetAttestation(ctx sdk.Context, eventNonce uint64, claimHash []byte, att *types.Attestation)
- func (k Keeper) SetBatchConfirm(ctx sdk.Context, oracleAddr sdk.AccAddress, batch *types.MsgConfirmBatch)
- func (k Keeper) SetBridgeCallConfirm(ctx sdk.Context, oracleAddr sdk.AccAddress, msg *types.MsgBridgeCallConfirm)
- func (k Keeper) SetLastEventBlockHeightByOracle(ctx sdk.Context, oracleAddr sdk.AccAddress, blockHeight uint64)
- func (k Keeper) SetLastEventNonceByOracle(ctx sdk.Context, oracleAddr sdk.AccAddress, eventNonce uint64)
- func (k Keeper) SetLastObservedBlockHeight(ctx sdk.Context, externalBlockHeight, blockHeight uint64)
- func (k Keeper) SetLastObservedEventNonce(ctx sdk.Context, eventNonce uint64)
- func (k Keeper) SetLastObservedOracleSet(ctx sdk.Context, oracleSet *types.OracleSet)
- func (k Keeper) SetLastOracleSlashBlockHeight(ctx sdk.Context, blockHeight uint64)
- func (k Keeper) SetLastSlashedBatchBlock(ctx sdk.Context, blockHeight uint64)
- func (k Keeper) SetLastSlashedBridgeCallNonce(ctx sdk.Context, nonce uint64)
- func (k Keeper) SetLastSlashedOracleSetNonce(ctx sdk.Context, nonce uint64)
- func (k Keeper) SetLastTotalPower(ctx sdk.Context)
- func (k Keeper) SetLatestOracleSetNonce(ctx sdk.Context, nonce uint64)
- func (k Keeper) SetOracle(ctx sdk.Context, oracle types.Oracle)
- func (k Keeper) SetOracleAddrByBridgerAddr(ctx sdk.Context, bridgerAddr, oracleAddr sdk.AccAddress)
- func (k Keeper) SetOracleAddrByExternalAddr(ctx sdk.Context, externalAddress string, oracleAddr sdk.AccAddress)
- func (k Keeper) SetOracleSetConfirm(ctx sdk.Context, oracleAddr sdk.AccAddress, ...)
- func (k Keeper) SetOutgoingBridgeCall(ctx sdk.Context, outCall *types.OutgoingBridgeCall)
- func (k Keeper) SetOutgoingBridgeCallQuoteInfo(ctx sdk.Context, nonce uint64, quoteInfo types.QuoteInfo)
- func (k Keeper) SetParams(ctx sdk.Context, params *types.Params) error
- func (k Keeper) SetProposalOracle(ctx sdk.Context, proposalOracle *types.ProposalOracle)
- func (k Keeper) SlashOracle(ctx sdk.Context, oracleAddrStr string)
- func (k Keeper) StoreBatch(ctx sdk.Context, batch *types.OutgoingTxBatch) error
- func (k Keeper) StoreOracleSet(ctx sdk.Context, oracleSet *types.OracleSet)
- func (k Keeper) TransferQuoteFeeToRelayer(ctx sdk.Context, bridgeCallNonce uint64) error
- func (k Keeper) TryAttestation(ctx sdk.Context, att *types.Attestation, claim types.ExternalClaim) error
- func (k Keeper) UnbondedOracleFromProposal(ctx sdk.Context, oracle types.Oracle) error
- func (k Keeper) UpdateOracleSetExecuted(ctx sdk.Context, claim *types.MsgOracleSetUpdatedClaim) error
- func (k Keeper) UpdateProposalOracles(ctx sdk.Context, oracles []string) error
- func (k Keeper) ValidateConfirmSign(ctx sdk.Context, bridgerAddr, signatureAddr, signature string, ...) (oracleAddr sdk.AccAddress, err error)
- func (k Keeper) WithdrawBridgeToken(ctx context.Context, holder sdk.AccAddress, amount sdkmath.Int, ...) error
- type Migrator
- type ModuleHandler
- type MsgServer
- func (s MsgServer) AddDelegate(c context.Context, msg *types.MsgAddDelegate) (*types.MsgAddDelegateResponse, error)
- func (s MsgServer) BondedOracle(c context.Context, msg *types.MsgBondedOracle) (*types.MsgBondedOracleResponse, error)
- func (s MsgServer) BridgeCallConfirm(c context.Context, msg *types.MsgBridgeCallConfirm) (*types.MsgBridgeCallConfirmResponse, error)deprecated
- func (s MsgServer) Claim(c context.Context, msg *types.MsgClaim) (*types.MsgClaimResponse, error)
- func (s MsgServer) Confirm(c context.Context, msg *types.MsgConfirm) (*types.MsgConfirmResponse, error)
- func (s MsgServer) ConfirmBatch(c context.Context, msg *types.MsgConfirmBatch) (*types.MsgConfirmBatchResponse, error)deprecated
- func (s MsgServer) EditBridger(c context.Context, msg *types.MsgEditBridger) (*types.MsgEditBridgerResponse, error)
- func (s MsgServer) OracleSetConfirm(c context.Context, msg *types.MsgOracleSetConfirm) (*types.MsgOracleSetConfirmResponse, error)deprecated
- func (s MsgServer) ReDelegate(c context.Context, msg *types.MsgReDelegate) (*types.MsgReDelegateResponse, error)
- func (s MsgServer) SendToExternal(c context.Context, msg *types.MsgSendToExternal) (*types.MsgSendToExternalResponse, error)deprecated
- func (s MsgServer) UnbondedOracle(c context.Context, msg *types.MsgUnbondedOracle) (*types.MsgUnbondedOracleResponse, error)
- func (s MsgServer) UpdateChainOracles(c context.Context, req *types.MsgUpdateChainOracles) (*types.MsgUpdateChainOraclesResponse, error)
- func (s MsgServer) UpdateParams(c context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error)
- func (s MsgServer) WithdrawReward(c context.Context, msg *types.MsgWithdrawReward) (*types.MsgWithdrawRewardResponse, error)
- type QueryServer
- func (k QueryServer) BatchConfirm(c context.Context, req *types.QueryBatchConfirmRequest) (*types.QueryBatchConfirmResponse, error)
- func (k QueryServer) BatchConfirms(c context.Context, req *types.QueryBatchConfirmsRequest) (*types.QueryBatchConfirmsResponse, error)
- func (k QueryServer) BridgeAddrToOracle(ctx sdk.Context, bridgeAddr string) (types.Oracle, error)
- func (k QueryServer) BridgeAddrToOracleAddr(ctx sdk.Context, bridgeAddr string) (sdk.AccAddress, error)
- func (k QueryServer) BridgeCallByNonce(c context.Context, req *types.QueryBridgeCallByNonceRequest) (*types.QueryBridgeCallByNonceResponse, error)
- func (k QueryServer) BridgeCallBySender(c context.Context, req *types.QueryBridgeCallBySenderRequest) (*types.QueryBridgeCallBySenderResponse, error)
- func (k QueryServer) BridgeCallConfirmByNonce(c context.Context, req *types.QueryBridgeCallConfirmByNonceRequest) (*types.QueryBridgeCallConfirmByNonceResponse, error)
- func (k QueryServer) BridgeCallQuoteByNonce(ctx context.Context, request *types.QueryBridgeCallQuoteByNonceRequest) (*types.QueryBridgeCallQuoteByNonceResponse, error)
- func (k QueryServer) BridgeCalls(c context.Context, req *types.QueryBridgeCallsRequest) (*types.QueryBridgeCallsResponse, error)
- func (k QueryServer) BridgeCallsByFeeReceiver(c context.Context, req *types.QueryBridgeCallsByFeeReceiverRequest) (*types.QueryBridgeCallsByFeeReceiverResponse, error)
- func (k QueryServer) BridgeChainList(_ context.Context, _ *types.QueryBridgeChainListRequest) (*types.QueryBridgeChainListResponse, error)
- func (k QueryServer) BridgeCoinByDenom(c context.Context, req *types.QueryBridgeCoinByDenomRequest) (*types.QueryBridgeCoinByDenomResponse, error)
- func (k QueryServer) BridgeTokens(c context.Context, req *types.QueryBridgeTokensRequest) (*types.QueryBridgeTokensResponse, error)
- func (k QueryServer) CurrentOracleSet(c context.Context, _ *types.QueryCurrentOracleSetRequest) (*types.QueryCurrentOracleSetResponse, error)
- func (k QueryServer) DenomToToken(c context.Context, req *types.QueryDenomToTokenRequest) (*types.QueryDenomToTokenResponse, error)
- func (k QueryServer) GetOracleByAddr(c context.Context, req *types.QueryOracleByAddrRequest) (*types.QueryOracleResponse, error)
- func (k QueryServer) GetOracleByBridgerAddr(c context.Context, req *types.QueryOracleByBridgerAddrRequest) (*types.QueryOracleResponse, error)
- func (k QueryServer) GetOracleByExternalAddr(c context.Context, req *types.QueryOracleByExternalAddrRequest) (*types.QueryOracleResponse, error)
- func (k QueryServer) LastEventBlockHeightByAddr(c context.Context, req *types.QueryLastEventBlockHeightByAddrRequest) (*types.QueryLastEventBlockHeightByAddrResponse, error)
- func (k QueryServer) LastEventNonceByAddr(c context.Context, req *types.QueryLastEventNonceByAddrRequest) (*types.QueryLastEventNonceByAddrResponse, error)
- func (k QueryServer) LastObservedBlockHeight(c context.Context, _ *types.QueryLastObservedBlockHeightRequest) (*types.QueryLastObservedBlockHeightResponse, error)
- func (k QueryServer) LastOracleSetRequests(c context.Context, _ *types.QueryLastOracleSetRequestsRequest) (*types.QueryLastOracleSetRequestsResponse, error)
- func (k QueryServer) LastPendingBatchRequestByAddr(c context.Context, req *types.QueryLastPendingBatchRequestByAddrRequest) (*types.QueryLastPendingBatchRequestByAddrResponse, error)
- func (k QueryServer) LastPendingBridgeCallByAddr(c context.Context, req *types.QueryLastPendingBridgeCallByAddrRequest) (*types.QueryLastPendingBridgeCallByAddrResponse, error)
- func (k QueryServer) LastPendingOracleSetRequestByAddr(c context.Context, req *types.QueryLastPendingOracleSetRequestByAddrRequest) (*types.QueryLastPendingOracleSetRequestByAddrResponse, error)
- func (k QueryServer) OracleSetConfirm(c context.Context, req *types.QueryOracleSetConfirmRequest) (*types.QueryOracleSetConfirmResponse, error)
- func (k QueryServer) OracleSetConfirmsByNonce(c context.Context, req *types.QueryOracleSetConfirmsByNonceRequest) (*types.QueryOracleSetConfirmsByNonceResponse, error)
- func (k QueryServer) OracleSetRequest(c context.Context, req *types.QueryOracleSetRequestRequest) (*types.QueryOracleSetRequestResponse, error)
- func (k QueryServer) Oracles(c context.Context, _ *types.QueryOraclesRequest) (*types.QueryOraclesResponse, error)
- func (k QueryServer) OutgoingTxBatch(c context.Context, req *types.QueryOutgoingTxBatchRequest) (*types.QueryOutgoingTxBatchResponse, error)
- func (k QueryServer) OutgoingTxBatches(c context.Context, _ *types.QueryOutgoingTxBatchesRequest) (*types.QueryOutgoingTxBatchesResponse, error)
- func (k QueryServer) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k QueryServer) PendingExecuteClaim(c context.Context, req *types.QueryPendingExecuteClaimRequest) (*types.QueryPendingExecuteClaimResponse, error)
- func (k QueryServer) ProjectedBatchTimeoutHeight(c context.Context, _ *types.QueryProjectedBatchTimeoutHeightRequest) (*types.QueryProjectedBatchTimeoutHeightResponse, error)
- func (k QueryServer) TokenToDenom(c context.Context, req *types.QueryTokenToDenomRequest) (*types.QueryTokenToDenomResponse, error)
- type Router
- type RouterKeeper
- func (k RouterKeeper) BatchConfirm(c context.Context, req *types.QueryBatchConfirmRequest) (*types.QueryBatchConfirmResponse, error)
- func (k RouterKeeper) BatchConfirms(c context.Context, req *types.QueryBatchConfirmsRequest) (*types.QueryBatchConfirmsResponse, error)
- func (k RouterKeeper) BridgeCallByNonce(c context.Context, req *types.QueryBridgeCallByNonceRequest) (*types.QueryBridgeCallByNonceResponse, error)
- func (k RouterKeeper) BridgeCallBySender(c context.Context, req *types.QueryBridgeCallBySenderRequest) (*types.QueryBridgeCallBySenderResponse, error)
- func (k RouterKeeper) BridgeCallConfirmByNonce(c context.Context, req *types.QueryBridgeCallConfirmByNonceRequest) (*types.QueryBridgeCallConfirmByNonceResponse, error)
- func (k RouterKeeper) BridgeCallQuoteByNonce(ctx context.Context, req *types.QueryBridgeCallQuoteByNonceRequest) (*types.QueryBridgeCallQuoteByNonceResponse, error)
- func (k RouterKeeper) BridgeCalls(c context.Context, req *types.QueryBridgeCallsRequest) (*types.QueryBridgeCallsResponse, error)
- func (k RouterKeeper) BridgeCallsByFeeReceiver(ctx context.Context, request *types.QueryBridgeCallsByFeeReceiverRequest) (*types.QueryBridgeCallsByFeeReceiverResponse, error)
- func (k RouterKeeper) BridgeChainList(c context.Context, req *types.QueryBridgeChainListRequest) (*types.QueryBridgeChainListResponse, error)
- func (k RouterKeeper) BridgeCoinByDenom(c context.Context, req *types.QueryBridgeCoinByDenomRequest) (*types.QueryBridgeCoinByDenomResponse, error)
- func (k RouterKeeper) BridgeTokens(c context.Context, req *types.QueryBridgeTokensRequest) (*types.QueryBridgeTokensResponse, error)
- func (k RouterKeeper) CurrentOracleSet(c context.Context, req *types.QueryCurrentOracleSetRequest) (*types.QueryCurrentOracleSetResponse, error)
- func (k RouterKeeper) DenomToToken(c context.Context, req *types.QueryDenomToTokenRequest) (*types.QueryDenomToTokenResponse, error)
- func (k RouterKeeper) GetOracleByAddr(c context.Context, req *types.QueryOracleByAddrRequest) (*types.QueryOracleResponse, error)
- func (k RouterKeeper) GetOracleByBridgerAddr(c context.Context, req *types.QueryOracleByBridgerAddrRequest) (*types.QueryOracleResponse, error)
- func (k RouterKeeper) GetOracleByExternalAddr(c context.Context, req *types.QueryOracleByExternalAddrRequest) (*types.QueryOracleResponse, error)
- func (k RouterKeeper) LastEventBlockHeightByAddr(c context.Context, req *types.QueryLastEventBlockHeightByAddrRequest) (*types.QueryLastEventBlockHeightByAddrResponse, error)
- func (k RouterKeeper) LastEventNonceByAddr(c context.Context, req *types.QueryLastEventNonceByAddrRequest) (*types.QueryLastEventNonceByAddrResponse, error)
- func (k RouterKeeper) LastObservedBlockHeight(c context.Context, req *types.QueryLastObservedBlockHeightRequest) (*types.QueryLastObservedBlockHeightResponse, error)
- func (k RouterKeeper) LastOracleSetRequests(c context.Context, req *types.QueryLastOracleSetRequestsRequest) (*types.QueryLastOracleSetRequestsResponse, error)
- func (k RouterKeeper) LastPendingBatchRequestByAddr(c context.Context, req *types.QueryLastPendingBatchRequestByAddrRequest) (*types.QueryLastPendingBatchRequestByAddrResponse, error)
- func (k RouterKeeper) LastPendingBridgeCallByAddr(c context.Context, req *types.QueryLastPendingBridgeCallByAddrRequest) (*types.QueryLastPendingBridgeCallByAddrResponse, error)
- func (k RouterKeeper) LastPendingOracleSetRequestByAddr(c context.Context, req *types.QueryLastPendingOracleSetRequestByAddrRequest) (*types.QueryLastPendingOracleSetRequestByAddrResponse, error)
- func (k RouterKeeper) Logger(ctx sdk.Context) log.Logger
- func (k RouterKeeper) OracleSetConfirm(c context.Context, req *types.QueryOracleSetConfirmRequest) (*types.QueryOracleSetConfirmResponse, error)
- func (k RouterKeeper) OracleSetConfirmsByNonce(c context.Context, req *types.QueryOracleSetConfirmsByNonceRequest) (*types.QueryOracleSetConfirmsByNonceResponse, error)
- func (k RouterKeeper) OracleSetRequest(c context.Context, req *types.QueryOracleSetRequestRequest) (*types.QueryOracleSetRequestResponse, error)
- func (k RouterKeeper) Oracles(c context.Context, req *types.QueryOraclesRequest) (*types.QueryOraclesResponse, error)
- func (k RouterKeeper) OutgoingTxBatch(c context.Context, req *types.QueryOutgoingTxBatchRequest) (*types.QueryOutgoingTxBatchResponse, error)
- func (k RouterKeeper) OutgoingTxBatches(c context.Context, req *types.QueryOutgoingTxBatchesRequest) (*types.QueryOutgoingTxBatchesResponse, error)
- func (k RouterKeeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k RouterKeeper) PendingExecuteClaim(ctx context.Context, req *types.QueryPendingExecuteClaimRequest) (*types.QueryPendingExecuteClaimResponse, error)
- func (k RouterKeeper) ProjectedBatchTimeoutHeight(c context.Context, req *types.QueryProjectedBatchTimeoutHeightRequest) (*types.QueryProjectedBatchTimeoutHeightResponse, error)
- func (k RouterKeeper) Router() Router
- func (k RouterKeeper) TokenToDenom(c context.Context, req *types.QueryTokenToDenomRequest) (*types.QueryTokenToDenomResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k Keeper) *types.GenesisState
ExportGenesis export module status
func GetBridgeCallTimeout ¶
func GetExternalBatchTimeout ¶
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, k Keeper, state *types.GenesisState)
InitGenesis import module genesis
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the gov MsgServer interface for the provided Keeper.
func NewMsgServerRouterImpl ¶
func NewMsgServerRouterImpl(routerKeeper RouterKeeper) types.MsgServer
NewMsgServerRouterImpl returns an implementation of the crosschain router MsgServer interface for the provided Keeper.
func NewQueryServerImpl ¶
func NewQueryServerImpl(keeper Keeper) types.QueryServer
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper maintains the link to storage and exposes getter/setter methods for the various parts of the state machine
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, moduleName string, storeKey storetypes.StoreKey, stakingKeeper types.StakingKeeper, stakingMsgServer types.StakingMsgServer, distributionKeeper types.DistributionMsgServer, bankKeeper types.BankKeeper, ibcTransferKeeper types.IBCTransferKeeper, erc20Keeper types.Erc20Keeper, ak types.AccountKeeper, evmKeeper types.EVMKeeper, brideFeeQuoteKeeper types.BridgeFeeQuoteKeeper, evmErc20Keeper types.ERC20TokenKeeper, authority string, ) Keeper
NewKeeper returns a new instance of the gravity keeper
func (Keeper) AddBridgeTokenExecuted ¶
func (Keeper) AddOracleSetRequest ¶
AddOracleSetRequest returns a new instance of the Gravity BridgeValidatorSet
func (Keeper) AddOutgoingBridgeCall ¶
func (Keeper) AddOutgoingBridgeCallWithoutBuild ¶
func (Keeper) AfterIBCAckSuccess ¶
func (Keeper) Attest ¶
func (k Keeper) Attest(ctx sdk.Context, oracleAddr sdk.AccAddress, claim types.ExternalClaim) (*types.Attestation, error)
func (Keeper) AttestationHandler ¶
AttestationHandler Handle is the entry point for Attestation processing.
func (Keeper) BaseCoinToBridgeToken ¶
func (k Keeper) BaseCoinToBridgeToken(ctx context.Context, holder sdk.AccAddress, baseCoin sdk.Coin) (bridgeToken erc20types.BridgeToken, err error)
func (Keeper) BaseCoinToIBCCoin ¶
func (Keeper) BatchConfirmHandler ¶
func (Keeper) BridgeCallBaseCoin ¶
func (Keeper) BridgeCallConfirmHandler ¶
func (Keeper) BridgeCallEvm ¶
func (Keeper) BridgeCallHandler ¶
func (Keeper) BridgeCallResultHandler ¶
func (Keeper) BridgeCoinSupply ¶
func (Keeper) BridgeTokenToBaseCoin ¶
func (k Keeper) BridgeTokenToBaseCoin(ctx context.Context, holder sdk.AccAddress, amount sdkmath.Int, bridgeToken erc20types.BridgeToken) (baseCoin sdk.Coin, err error)
func (Keeper) BuildOutgoingBridgeCall ¶
func (Keeper) BuildOutgoingTxBatch ¶
func (Keeper) CalExternalTimeoutHeight ¶
func (k Keeper) CalExternalTimeoutHeight(ctx sdk.Context, getTimeoutCallback func(params types.Params) uint64) uint64
CalExternalTimeoutHeight This gets the timeout height in External blocks.
func (Keeper) ConfirmHandler ¶
func (Keeper) CreateBridgeAccount ¶
func (Keeper) CrosschainBaseCoin ¶
func (Keeper) DelLastEventNonceByOracle ¶
func (k Keeper) DelLastEventNonceByOracle(ctx sdk.Context, oracleAddr sdk.AccAddress)
DelLastEventNonceByOracle delete the latest event nonce for a given oracle
func (Keeper) DelOracleAddrByBridgerAddr ¶
func (k Keeper) DelOracleAddrByBridgerAddr(ctx sdk.Context, bridgerAddr sdk.AccAddress)
DelOracleAddrByBridgerAddr delete the bridger key for a given oracle
func (Keeper) DelOracleAddrByExternalAddr ¶
DelOracleAddrByExternalAddr delete the external address for a give oracle
func (Keeper) DeleteAttestation ¶
func (k Keeper) DeleteAttestation(ctx sdk.Context, claim types.ExternalClaim)
DeleteAttestation deletes an attestation given an event nonce and claim
func (Keeper) DeleteBatch ¶
func (k Keeper) DeleteBatch(ctx sdk.Context, batch *types.OutgoingTxBatch)
DeleteBatch deletes an outgoing transaction batch
func (Keeper) DeleteBatchConfirm ¶
func (Keeper) DeleteBridgeCallConfirm ¶
func (Keeper) DeleteOracleSet ¶
DeleteOracleSet deletes the oracleSet at a given nonce from state
func (Keeper) DeleteOracleSetConfirm ¶
func (Keeper) DeleteOutgoingBridgeCall ¶
func (Keeper) DeleteOutgoingBridgeCallQuoteInfo ¶
func (Keeper) DeleteOutgoingBridgeCallRecord ¶
func (Keeper) DeletePendingExecuteClaim ¶
func (Keeper) DepositBridgeToken ¶
func (k Keeper) DepositBridgeToken(ctx context.Context, holder sdk.AccAddress, amount sdkmath.Int, tokenAddr string) (bridgeToken erc20types.BridgeToken, err error)
DepositBridgeToken get bridge token from k.moduleName
func (Keeper) EndBlocker ¶
EndBlocker is called at the end of every block
func (Keeper) ExecuteClaim ¶
func (Keeper) GetAllOracles ¶
func (Keeper) GetAttestation ¶
func (k Keeper) GetAttestation(ctx sdk.Context, eventNonce uint64, claimHash []byte) *types.Attestation
GetAttestation return an attestation given a nonce
func (Keeper) GetAuthority ¶
func (Keeper) GetBatchConfirm ¶
func (k Keeper) GetBatchConfirm(ctx sdk.Context, tokenContract string, batchNonce uint64, oracleAddr sdk.AccAddress) *types.MsgConfirmBatch
GetBatchConfirm returns a batch confirmation given its nonce, the token contract, and a oracle address
func (Keeper) GetBridgeCallMaxGasLimit ¶
func (Keeper) GetBridgeToken ¶
func (k Keeper) GetBridgeToken(ctx context.Context, tokenAddr string) (erc20types.BridgeToken, error)
func (Keeper) GetCallbackFrom ¶
func (Keeper) GetCurrentOracleSet ¶
GetCurrentOracleSet gets powers from the store and normalizes them into an integer percentage with a resolution of uint32 Max meaning a given validators 'gravity power' is computed as Cosmos power / total cosmos power = x / uint32 Max where x is the voting power on the gravity contract. This allows us to only use integer division which produces a known rounding error from truncation equal to the ratio of the validators Cosmos power / total cosmos power ratio, leaving us at uint32 Max - 1 total voting power. This is an acceptable rounding error since floating point may cause consensus problems if different floating point unit implementations are involved.
func (Keeper) GetERC20TokenByAddr ¶
func (k Keeper) GetERC20TokenByAddr(ctx sdk.Context, erc20Addr common.Address) (erc20types.ERC20Token, error)
func (Keeper) GetGravityID ¶
GetGravityID returns the GravityID is essentially a salt value for bridge signatures, provided each chain running Gravity has a unique ID it won't be possible to play back signatures from one bridge onto another even if they share a oracle set.
The lifecycle of the GravityID is that it is set in the Genesis file read from the live chain for the contract deployment, once a Gravity contract is deployed the GravityID CAN NOT BE CHANGED. Meaning that it can't just be the same as the chain id since the chain id may be changed many times with each successive chain in charge of the same bridge
func (Keeper) GetIbcTransferTimeoutHeight ¶
func (Keeper) GetLastEventBlockHeightByOracle ¶
GetLastEventBlockHeightByOracle get the latest event blockHeight for a give oracle
func (Keeper) GetLastEventNonceByOracle ¶
GetLastEventNonceByOracle returns the latest event nonce for a given oracle
func (Keeper) GetLastObservedBlockHeight ¶
func (k Keeper) GetLastObservedBlockHeight(ctx sdk.Context) types.LastObservedBlockHeight
GetLastObservedBlockHeight height gets the block height to of the last observed attestation from the store
func (Keeper) GetLastObservedEventNonce ¶
GetLastObservedEventNonce returns the latest observed event nonce
func (Keeper) GetLastObservedOracleSet ¶
GetLastObservedOracleSet retrieves the last observed oracle set from the store WARNING: This value is not an up to date oracle set on Ethereum, it is a oracle set that AT ONE POINT was the one in the bridge on Ethereum. If you assume that it's up to date you may break the bridge
func (Keeper) GetLastOracleSlashBlockHeight ¶
GetLastOracleSlashBlockHeight returns the last proposal block height
func (Keeper) GetLastOutgoingBatchByToken ¶
GetLastOutgoingBatchByToken gets the latest outgoing tx batch by token type
func (Keeper) GetLastSlashedBatchBlock ¶
GetLastSlashedBatchBlock returns the latest slashed Batch block
func (Keeper) GetLastSlashedBridgeCallNonce ¶
func (Keeper) GetLastSlashedOracleSetNonce ¶
GetLastSlashedOracleSetNonce returns the latest slashed oracleSet nonce
func (Keeper) GetLastTotalPower ¶
GetLastTotalPower Load the last total oracle power.
func (Keeper) GetLatestOracleSet ¶
GetLatestOracleSet returns the latest oracle set in state
func (Keeper) GetLatestOracleSetNonce ¶
GetLatestOracleSetNonce returns the latest oracleSet nonce
func (Keeper) GetModuleEvmAddress ¶
func (Keeper) GetOracleAddrByBridgerAddr ¶
func (k Keeper) GetOracleAddrByBridgerAddr(ctx sdk.Context, bridgerAddr sdk.AccAddress) (sdk.AccAddress, bool)
GetOracleAddrByBridgerAddr returns the oracle key associated with an bridger key
func (Keeper) GetOracleAddrByExternalAddr ¶
func (k Keeper) GetOracleAddrByExternalAddr(ctx sdk.Context, externalAddress string) (sdk.AccAddress, bool)
GetOracleAddrByExternalAddr returns the external address for a given gravity oracle
func (Keeper) GetOracleDelegateMultiple ¶
func (Keeper) GetOracleDelegateThreshold ¶
func (Keeper) GetOracleDelegateToken ¶
func (k Keeper) GetOracleDelegateToken(ctx sdk.Context, delegateAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdkmath.Int, error)
func (Keeper) GetOracleSet ¶
GetOracleSet returns a oracleSet by nonce
func (Keeper) GetOracleSetConfirm ¶
func (k Keeper) GetOracleSetConfirm(ctx sdk.Context, nonce uint64, oracleAddr sdk.AccAddress) *types.MsgOracleSetConfirm
GetOracleSetConfirm returns a oracleSet confirmation by a nonce and external address
func (Keeper) GetOracleSetUpdatePowerChangePercent ¶
func (Keeper) GetOracleSets ¶
func (k Keeper) GetOracleSets(ctx sdk.Context) (oracleSets types.OracleSets)
GetOracleSets used in testing
func (Keeper) GetOutgoingBridgeCallByNonce ¶
func (Keeper) GetOutgoingBridgeCallQuoteInfo ¶
func (Keeper) GetOutgoingTxBatch ¶
func (k Keeper) GetOutgoingTxBatch(ctx sdk.Context, tokenContract string, batchNonce uint64) *types.OutgoingTxBatch
GetOutgoingTxBatch loads a batch object. Returns nil when not exists.
func (Keeper) GetOutgoingTxBatches ¶
func (k Keeper) GetOutgoingTxBatches(ctx sdk.Context) (out []*types.OutgoingTxBatch)
GetOutgoingTxBatches used in testing
func (Keeper) GetPendingExecuteClaim ¶
func (Keeper) GetProposalOracle ¶
func (Keeper) GetSlashFraction ¶
func (Keeper) GetUnSlashedBatches ¶
func (k Keeper) GetUnSlashedBatches(ctx sdk.Context, maxHeight uint64) (outgoingTxBatches types.OutgoingTxBatches)
GetUnSlashedBatches returns all the unSlashed batches in state
func (Keeper) GetUnSlashedBridgeCalls ¶
func (Keeper) GetUnSlashedOracleSets ¶
func (k Keeper) GetUnSlashedOracleSets(ctx sdk.Context, maxHeight uint64) (oracleSets types.OracleSets)
GetUnSlashedOracleSets returns all the unSlashed oracle sets in state
func (Keeper) HasBridgeCallConfirm ¶
func (Keeper) HasOracleAddrByBridgerAddr ¶
func (Keeper) HasOracleAddrByExternalAddr ¶
func (Keeper) HasOracleSetRequest ¶
HasOracleSetRequest returns true if a oracleSet defined by a nonce exists
func (Keeper) HasOutgoingBridgeCall ¶
func (Keeper) HasOutgoingBridgeCallAddressAndNonce ¶
func (Keeper) IBCCoinRefund ¶
func (Keeper) IBCCoinToBaseCoin ¶
func (Keeper) IBCCoinToEvm ¶
func (Keeper) IBCTransfer ¶
func (Keeper) IsProposalOracle ¶
func (Keeper) IterBridgeCallConfirmByNonce ¶
func (Keeper) IterateAttestationAndClaim ¶
func (k Keeper) IterateAttestationAndClaim(ctx sdk.Context, cb func(*types.Attestation, types.ExternalClaim) bool)
IterateAttestationAndClaim iterates through all attestations
func (Keeper) IterateAttestations ¶
IterateAttestations iterates through all attestations
func (Keeper) IterateBatchByBlockHeight ¶
func (k Keeper) IterateBatchByBlockHeight(ctx sdk.Context, start, end uint64, cb func(*types.OutgoingTxBatch) bool)
IterateBatchByBlockHeight iterates through all Batch by block in the half-open interval [start,end)
func (Keeper) IterateBatchConfirmByNonceAndTokenContract ¶
func (k Keeper) IterateBatchConfirmByNonceAndTokenContract(ctx sdk.Context, batchNonce uint64, tokenContract string, cb func(*types.MsgConfirmBatch) bool)
IterateBatchConfirmByNonceAndTokenContract iterates through all batch confirmations
func (Keeper) IterateOracle ¶
func (Keeper) IterateOracleSetByNonce ¶
func (k Keeper) IterateOracleSetByNonce(ctx sdk.Context, startNonce uint64, cb func(*types.OracleSet) bool)
IterateOracleSetByNonce iterates through all oracleSet by nonce
func (Keeper) IterateOracleSetConfirmByNonce ¶
func (k Keeper) IterateOracleSetConfirmByNonce(ctx sdk.Context, nonce uint64, cb func(*types.MsgOracleSetConfirm) bool)
IterateOracleSetConfirmByNonce iterates through all oracleSet confirms by nonce
func (Keeper) IterateOracleSets ¶
IterateOracleSets returns all oracleSet
func (Keeper) IterateOutgoingBridgeCallByNonce ¶
func (Keeper) IterateOutgoingBridgeCalls ¶
func (Keeper) IterateOutgoingBridgeCallsByAddress ¶
func (Keeper) IterateOutgoingTxBatches ¶
func (k Keeper) IterateOutgoingTxBatches(ctx sdk.Context, cb func(batch *types.OutgoingTxBatch) bool)
IterateOutgoingTxBatches iterates through all outgoing batches
func (Keeper) LegacyGetDenomBridgeToken
deprecated
func (Keeper) ModuleName ¶
func (Keeper) OracleSetConfirmHandler ¶
func (Keeper) OutgoingTxBatchExecuted ¶
func (Keeper) RefundOutgoingBridgeCall ¶
func (Keeper) ResendBridgeCall ¶
func (Keeper) ResendTimeoutOutgoingTxBatch ¶
func (Keeper) SavePendingExecuteClaim ¶
func (Keeper) SendToFxExecuted ¶
func (Keeper) SetAttestation ¶
func (k Keeper) SetAttestation(ctx sdk.Context, eventNonce uint64, claimHash []byte, att *types.Attestation)
SetAttestation sets the attestation in the store
func (Keeper) SetBatchConfirm ¶
func (k Keeper) SetBatchConfirm(ctx sdk.Context, oracleAddr sdk.AccAddress, batch *types.MsgConfirmBatch)
SetBatchConfirm sets a batch confirmation by a oracle
func (Keeper) SetBridgeCallConfirm ¶
func (k Keeper) SetBridgeCallConfirm(ctx sdk.Context, oracleAddr sdk.AccAddress, msg *types.MsgBridgeCallConfirm)
func (Keeper) SetLastEventBlockHeightByOracle ¶
func (k Keeper) SetLastEventBlockHeightByOracle(ctx sdk.Context, oracleAddr sdk.AccAddress, blockHeight uint64)
SetLastEventBlockHeightByOracle set the latest event blockHeight for a give oracle
func (Keeper) SetLastEventNonceByOracle ¶
func (k Keeper) SetLastEventNonceByOracle(ctx sdk.Context, oracleAddr sdk.AccAddress, eventNonce uint64)
SetLastEventNonceByOracle sets the latest event nonce for a give oracle
func (Keeper) SetLastObservedBlockHeight ¶
func (k Keeper) SetLastObservedBlockHeight(ctx sdk.Context, externalBlockHeight, blockHeight uint64)
SetLastObservedBlockHeight sets the block height in the store.
func (Keeper) SetLastObservedEventNonce ¶
SetLastObservedEventNonce sets the latest observed event nonce
func (Keeper) SetLastObservedOracleSet ¶
SetLastObservedOracleSet updates the last observed oracle set in the store
func (Keeper) SetLastOracleSlashBlockHeight ¶
SetLastOracleSlashBlockHeight sets the last proposal block height
func (Keeper) SetLastSlashedBatchBlock ¶
SetLastSlashedBatchBlock sets the latest slashed Batch block height
func (Keeper) SetLastSlashedBridgeCallNonce ¶
func (Keeper) SetLastSlashedOracleSetNonce ¶
SetLastSlashedOracleSetNonce sets the latest slashed oracleSet nonce
func (Keeper) SetLastTotalPower ¶
SetLastTotalPower Set the last total validator power.
func (Keeper) SetLatestOracleSetNonce ¶
SetLatestOracleSetNonce sets the latest oracleSet nonce
func (Keeper) SetOracleAddrByBridgerAddr ¶
func (k Keeper) SetOracleAddrByBridgerAddr(ctx sdk.Context, bridgerAddr, oracleAddr sdk.AccAddress)
SetOracleAddrByBridgerAddr sets the bridger key for a given oracle
func (Keeper) SetOracleAddrByExternalAddr ¶
func (k Keeper) SetOracleAddrByExternalAddr(ctx sdk.Context, externalAddress string, oracleAddr sdk.AccAddress)
SetOracleAddrByExternalAddr sets the external address for a given oracle
func (Keeper) SetOracleSetConfirm ¶
func (k Keeper) SetOracleSetConfirm(ctx sdk.Context, oracleAddr sdk.AccAddress, oracleSetConfirm *types.MsgOracleSetConfirm)
SetOracleSetConfirm sets a oracleSet confirmation
func (Keeper) SetOutgoingBridgeCall ¶
func (k Keeper) SetOutgoingBridgeCall(ctx sdk.Context, outCall *types.OutgoingBridgeCall)
func (Keeper) SetOutgoingBridgeCallQuoteInfo ¶
func (Keeper) SetProposalOracle ¶
func (k Keeper) SetProposalOracle(ctx sdk.Context, proposalOracle *types.ProposalOracle)
func (Keeper) StoreBatch ¶
StoreBatch stores a transaction batch
func (Keeper) StoreOracleSet ¶
StoreOracleSet is for storing a oracle set at a given height
func (Keeper) TransferQuoteFeeToRelayer ¶
func (Keeper) TryAttestation ¶
func (k Keeper) TryAttestation(ctx sdk.Context, att *types.Attestation, claim types.ExternalClaim) error
TryAttestation checks if an attestation has enough votes to be applied to the consensus state and has not already been marked Observed, then calls processAttestation to actually apply it to the state, and then marks it Observed and emits an event.
func (Keeper) UnbondedOracleFromProposal ¶
func (Keeper) UpdateOracleSetExecuted ¶
func (Keeper) UpdateProposalOracles ¶
func (Keeper) ValidateConfirmSign ¶
func (Keeper) WithdrawBridgeToken ¶
func (k Keeper) WithdrawBridgeToken(ctx context.Context, holder sdk.AccAddress, amount sdkmath.Int, bridgeToken erc20types.BridgeToken) error
WithdrawBridgeToken put bridge token to k.moduleName
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
func NewMigrator ¶
type ModuleHandler ¶
type ModuleHandler struct { QueryServer types.QueryServer MsgServer types.MsgServer }
func NewModuleHandler ¶
func NewModuleHandler(keeper Keeper) *ModuleHandler
type MsgServer ¶
type MsgServer struct {
Keeper
}
func (MsgServer) AddDelegate ¶
func (s MsgServer) AddDelegate(c context.Context, msg *types.MsgAddDelegate) (*types.MsgAddDelegateResponse, error)
func (MsgServer) BondedOracle ¶
func (s MsgServer) BondedOracle(c context.Context, msg *types.MsgBondedOracle) (*types.MsgBondedOracleResponse, error)
func (MsgServer) BridgeCallConfirm
deprecated
func (s MsgServer) BridgeCallConfirm(c context.Context, msg *types.MsgBridgeCallConfirm) (*types.MsgBridgeCallConfirmResponse, error)
Deprecated: ConfirmBatch Please use Confirm
func (MsgServer) Confirm ¶
func (s MsgServer) Confirm(c context.Context, msg *types.MsgConfirm) (*types.MsgConfirmResponse, error)
func (MsgServer) ConfirmBatch
deprecated
func (s MsgServer) ConfirmBatch(c context.Context, msg *types.MsgConfirmBatch) (*types.MsgConfirmBatchResponse, error)
Deprecated: ConfirmBatch Please use Confirm
func (MsgServer) EditBridger ¶
func (s MsgServer) EditBridger(c context.Context, msg *types.MsgEditBridger) (*types.MsgEditBridgerResponse, error)
func (MsgServer) OracleSetConfirm
deprecated
func (s MsgServer) OracleSetConfirm(c context.Context, msg *types.MsgOracleSetConfirm) (*types.MsgOracleSetConfirmResponse, error)
Deprecated: ConfirmBatch Please use Confirm
func (MsgServer) ReDelegate ¶
func (s MsgServer) ReDelegate(c context.Context, msg *types.MsgReDelegate) (*types.MsgReDelegateResponse, error)
func (MsgServer) SendToExternal
deprecated
func (s MsgServer) SendToExternal(c context.Context, msg *types.MsgSendToExternal) (*types.MsgSendToExternalResponse, error)
Deprecated: SendToExternal Please use precompile BridgeCall
func (MsgServer) UnbondedOracle ¶
func (s MsgServer) UnbondedOracle(c context.Context, msg *types.MsgUnbondedOracle) (*types.MsgUnbondedOracleResponse, error)
func (MsgServer) UpdateChainOracles ¶
func (s MsgServer) UpdateChainOracles(c context.Context, req *types.MsgUpdateChainOracles) (*types.MsgUpdateChainOraclesResponse, error)
func (MsgServer) UpdateParams ¶
func (s MsgServer) UpdateParams(c context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error)
func (MsgServer) WithdrawReward ¶
func (s MsgServer) WithdrawReward(c context.Context, msg *types.MsgWithdrawReward) (*types.MsgWithdrawRewardResponse, error)
type QueryServer ¶
type QueryServer struct {
Keeper
}
func (QueryServer) BatchConfirm ¶
func (k QueryServer) BatchConfirm(c context.Context, req *types.QueryBatchConfirmRequest) (*types.QueryBatchConfirmResponse, error)
func (QueryServer) BatchConfirms ¶
func (k QueryServer) BatchConfirms(c context.Context, req *types.QueryBatchConfirmsRequest) (*types.QueryBatchConfirmsResponse, error)
BatchConfirms returns the batch confirmations by nonce and token contract
func (QueryServer) BridgeAddrToOracle ¶
func (QueryServer) BridgeAddrToOracleAddr ¶
func (k QueryServer) BridgeAddrToOracleAddr(ctx sdk.Context, bridgeAddr string) (sdk.AccAddress, error)
func (QueryServer) BridgeCallByNonce ¶
func (k QueryServer) BridgeCallByNonce(c context.Context, req *types.QueryBridgeCallByNonceRequest) (*types.QueryBridgeCallByNonceResponse, error)
func (QueryServer) BridgeCallBySender ¶
func (k QueryServer) BridgeCallBySender(c context.Context, req *types.QueryBridgeCallBySenderRequest) (*types.QueryBridgeCallBySenderResponse, error)
func (QueryServer) BridgeCallConfirmByNonce ¶
func (k QueryServer) BridgeCallConfirmByNonce(c context.Context, req *types.QueryBridgeCallConfirmByNonceRequest) (*types.QueryBridgeCallConfirmByNonceResponse, error)
func (QueryServer) BridgeCallQuoteByNonce ¶
func (k QueryServer) BridgeCallQuoteByNonce(ctx context.Context, request *types.QueryBridgeCallQuoteByNonceRequest) (*types.QueryBridgeCallQuoteByNonceResponse, error)
func (QueryServer) BridgeCalls ¶
func (k QueryServer) BridgeCalls(c context.Context, req *types.QueryBridgeCallsRequest) (*types.QueryBridgeCallsResponse, error)
func (QueryServer) BridgeCallsByFeeReceiver ¶
func (k QueryServer) BridgeCallsByFeeReceiver(c context.Context, req *types.QueryBridgeCallsByFeeReceiverRequest) (*types.QueryBridgeCallsByFeeReceiverResponse, error)
func (QueryServer) BridgeChainList ¶
func (k QueryServer) BridgeChainList(_ context.Context, _ *types.QueryBridgeChainListRequest) (*types.QueryBridgeChainListResponse, error)
func (QueryServer) BridgeCoinByDenom ¶
func (k QueryServer) BridgeCoinByDenom(c context.Context, req *types.QueryBridgeCoinByDenomRequest) (*types.QueryBridgeCoinByDenomResponse, error)
func (QueryServer) BridgeTokens ¶
func (k QueryServer) BridgeTokens(c context.Context, req *types.QueryBridgeTokensRequest) (*types.QueryBridgeTokensResponse, error)
func (QueryServer) CurrentOracleSet ¶
func (k QueryServer) CurrentOracleSet(c context.Context, _ *types.QueryCurrentOracleSetRequest) (*types.QueryCurrentOracleSetResponse, error)
func (QueryServer) DenomToToken ¶
func (k QueryServer) DenomToToken(c context.Context, req *types.QueryDenomToTokenRequest) (*types.QueryDenomToTokenResponse, error)
func (QueryServer) GetOracleByAddr ¶
func (k QueryServer) GetOracleByAddr(c context.Context, req *types.QueryOracleByAddrRequest) (*types.QueryOracleResponse, error)
func (QueryServer) GetOracleByBridgerAddr ¶
func (k QueryServer) GetOracleByBridgerAddr(c context.Context, req *types.QueryOracleByBridgerAddrRequest) (*types.QueryOracleResponse, error)
func (QueryServer) GetOracleByExternalAddr ¶
func (k QueryServer) GetOracleByExternalAddr(c context.Context, req *types.QueryOracleByExternalAddrRequest) (*types.QueryOracleResponse, error)
func (QueryServer) LastEventBlockHeightByAddr ¶
func (k QueryServer) LastEventBlockHeightByAddr(c context.Context, req *types.QueryLastEventBlockHeightByAddrRequest) (*types.QueryLastEventBlockHeightByAddrResponse, error)
func (QueryServer) LastEventNonceByAddr ¶
func (k QueryServer) LastEventNonceByAddr(c context.Context, req *types.QueryLastEventNonceByAddrRequest) (*types.QueryLastEventNonceByAddrResponse, error)
LastEventNonceByAddr returns the last event nonce for the given validator address, this allows eth oracles to figure out where they left off
func (QueryServer) LastObservedBlockHeight ¶
func (k QueryServer) LastObservedBlockHeight(c context.Context, _ *types.QueryLastObservedBlockHeightRequest) (*types.QueryLastObservedBlockHeightResponse, error)
func (QueryServer) LastOracleSetRequests ¶
func (k QueryServer) LastOracleSetRequests(c context.Context, _ *types.QueryLastOracleSetRequestsRequest) (*types.QueryLastOracleSetRequestsResponse, error)
func (QueryServer) LastPendingBatchRequestByAddr ¶
func (k QueryServer) LastPendingBatchRequestByAddr(c context.Context, req *types.QueryLastPendingBatchRequestByAddrRequest) (*types.QueryLastPendingBatchRequestByAddrResponse, error)
func (QueryServer) LastPendingBridgeCallByAddr ¶
func (k QueryServer) LastPendingBridgeCallByAddr(c context.Context, req *types.QueryLastPendingBridgeCallByAddrRequest) (*types.QueryLastPendingBridgeCallByAddrResponse, error)
func (QueryServer) LastPendingOracleSetRequestByAddr ¶
func (k QueryServer) LastPendingOracleSetRequestByAddr(c context.Context, req *types.QueryLastPendingOracleSetRequestByAddrRequest) (*types.QueryLastPendingOracleSetRequestByAddrResponse, error)
func (QueryServer) OracleSetConfirm ¶
func (k QueryServer) OracleSetConfirm(c context.Context, req *types.QueryOracleSetConfirmRequest) (*types.QueryOracleSetConfirmResponse, error)
func (QueryServer) OracleSetConfirmsByNonce ¶
func (k QueryServer) OracleSetConfirmsByNonce(c context.Context, req *types.QueryOracleSetConfirmsByNonceRequest) (*types.QueryOracleSetConfirmsByNonceResponse, error)
func (QueryServer) OracleSetRequest ¶
func (k QueryServer) OracleSetRequest(c context.Context, req *types.QueryOracleSetRequestRequest) (*types.QueryOracleSetRequestResponse, error)
func (QueryServer) Oracles ¶
func (k QueryServer) Oracles(c context.Context, _ *types.QueryOraclesRequest) (*types.QueryOraclesResponse, error)
func (QueryServer) OutgoingTxBatch ¶
func (k QueryServer) OutgoingTxBatch(c context.Context, req *types.QueryOutgoingTxBatchRequest) (*types.QueryOutgoingTxBatchResponse, error)
func (QueryServer) OutgoingTxBatches ¶
func (k QueryServer) OutgoingTxBatches(c context.Context, _ *types.QueryOutgoingTxBatchesRequest) (*types.QueryOutgoingTxBatchesResponse, error)
func (QueryServer) Params ¶
func (k QueryServer) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (QueryServer) PendingExecuteClaim ¶
func (k QueryServer) PendingExecuteClaim(c context.Context, req *types.QueryPendingExecuteClaimRequest) (*types.QueryPendingExecuteClaimResponse, error)
func (QueryServer) ProjectedBatchTimeoutHeight ¶
func (k QueryServer) ProjectedBatchTimeoutHeight(c context.Context, _ *types.QueryProjectedBatchTimeoutHeightRequest) (*types.QueryProjectedBatchTimeoutHeightResponse, error)
func (QueryServer) TokenToDenom ¶
func (k QueryServer) TokenToDenom(c context.Context, req *types.QueryTokenToDenomRequest) (*types.QueryTokenToDenomResponse, error)
type Router ¶
type Router interface { AddRoute(name string, moduleHandler *ModuleHandler) (router Router) HasRoute(name string) bool GetRoute(name string) (moduleHandler *ModuleHandler) Seal() }
Router implements a crosschain Server Handler router.
type RouterKeeper ¶
type RouterKeeper struct {
// contains filtered or unexported fields
}
RouterKeeper maintains the link to storage and exposes getter/setter methods for the various parts of the state machine
func NewRouterKeeper ¶
func NewRouterKeeper(rtr Router) RouterKeeper
NewRouterKeeper returns a new instance of the crosschain keeper
func (RouterKeeper) BatchConfirm ¶
func (k RouterKeeper) BatchConfirm(c context.Context, req *types.QueryBatchConfirmRequest) (*types.QueryBatchConfirmResponse, error)
func (RouterKeeper) BatchConfirms ¶
func (k RouterKeeper) BatchConfirms(c context.Context, req *types.QueryBatchConfirmsRequest) (*types.QueryBatchConfirmsResponse, error)
func (RouterKeeper) BridgeCallByNonce ¶
func (k RouterKeeper) BridgeCallByNonce(c context.Context, req *types.QueryBridgeCallByNonceRequest) (*types.QueryBridgeCallByNonceResponse, error)
func (RouterKeeper) BridgeCallBySender ¶
func (k RouterKeeper) BridgeCallBySender(c context.Context, req *types.QueryBridgeCallBySenderRequest) (*types.QueryBridgeCallBySenderResponse, error)
func (RouterKeeper) BridgeCallConfirmByNonce ¶
func (k RouterKeeper) BridgeCallConfirmByNonce(c context.Context, req *types.QueryBridgeCallConfirmByNonceRequest) (*types.QueryBridgeCallConfirmByNonceResponse, error)
func (RouterKeeper) BridgeCallQuoteByNonce ¶
func (k RouterKeeper) BridgeCallQuoteByNonce(ctx context.Context, req *types.QueryBridgeCallQuoteByNonceRequest) (*types.QueryBridgeCallQuoteByNonceResponse, error)
func (RouterKeeper) BridgeCalls ¶
func (k RouterKeeper) BridgeCalls(c context.Context, req *types.QueryBridgeCallsRequest) (*types.QueryBridgeCallsResponse, error)
func (RouterKeeper) BridgeCallsByFeeReceiver ¶
func (k RouterKeeper) BridgeCallsByFeeReceiver(ctx context.Context, request *types.QueryBridgeCallsByFeeReceiverRequest) (*types.QueryBridgeCallsByFeeReceiverResponse, error)
func (RouterKeeper) BridgeChainList ¶
func (k RouterKeeper) BridgeChainList(c context.Context, req *types.QueryBridgeChainListRequest) (*types.QueryBridgeChainListResponse, error)
func (RouterKeeper) BridgeCoinByDenom ¶
func (k RouterKeeper) BridgeCoinByDenom(c context.Context, req *types.QueryBridgeCoinByDenomRequest) (*types.QueryBridgeCoinByDenomResponse, error)
func (RouterKeeper) BridgeTokens ¶
func (k RouterKeeper) BridgeTokens(c context.Context, req *types.QueryBridgeTokensRequest) (*types.QueryBridgeTokensResponse, error)
func (RouterKeeper) CurrentOracleSet ¶
func (k RouterKeeper) CurrentOracleSet(c context.Context, req *types.QueryCurrentOracleSetRequest) (*types.QueryCurrentOracleSetResponse, error)
func (RouterKeeper) DenomToToken ¶
func (k RouterKeeper) DenomToToken(c context.Context, req *types.QueryDenomToTokenRequest) (*types.QueryDenomToTokenResponse, error)
func (RouterKeeper) GetOracleByAddr ¶
func (k RouterKeeper) GetOracleByAddr(c context.Context, req *types.QueryOracleByAddrRequest) (*types.QueryOracleResponse, error)
func (RouterKeeper) GetOracleByBridgerAddr ¶
func (k RouterKeeper) GetOracleByBridgerAddr(c context.Context, req *types.QueryOracleByBridgerAddrRequest) (*types.QueryOracleResponse, error)
func (RouterKeeper) GetOracleByExternalAddr ¶
func (k RouterKeeper) GetOracleByExternalAddr(c context.Context, req *types.QueryOracleByExternalAddrRequest) (*types.QueryOracleResponse, error)
func (RouterKeeper) LastEventBlockHeightByAddr ¶
func (k RouterKeeper) LastEventBlockHeightByAddr(c context.Context, req *types.QueryLastEventBlockHeightByAddrRequest) (*types.QueryLastEventBlockHeightByAddrResponse, error)
func (RouterKeeper) LastEventNonceByAddr ¶
func (k RouterKeeper) LastEventNonceByAddr(c context.Context, req *types.QueryLastEventNonceByAddrRequest) (*types.QueryLastEventNonceByAddrResponse, error)
func (RouterKeeper) LastObservedBlockHeight ¶
func (k RouterKeeper) LastObservedBlockHeight(c context.Context, req *types.QueryLastObservedBlockHeightRequest) (*types.QueryLastObservedBlockHeightResponse, error)
func (RouterKeeper) LastOracleSetRequests ¶
func (k RouterKeeper) LastOracleSetRequests(c context.Context, req *types.QueryLastOracleSetRequestsRequest) (*types.QueryLastOracleSetRequestsResponse, error)
func (RouterKeeper) LastPendingBatchRequestByAddr ¶
func (k RouterKeeper) LastPendingBatchRequestByAddr(c context.Context, req *types.QueryLastPendingBatchRequestByAddrRequest) (*types.QueryLastPendingBatchRequestByAddrResponse, error)
func (RouterKeeper) LastPendingBridgeCallByAddr ¶
func (k RouterKeeper) LastPendingBridgeCallByAddr(c context.Context, req *types.QueryLastPendingBridgeCallByAddrRequest) (*types.QueryLastPendingBridgeCallByAddrResponse, error)
func (RouterKeeper) LastPendingOracleSetRequestByAddr ¶
func (k RouterKeeper) LastPendingOracleSetRequestByAddr(c context.Context, req *types.QueryLastPendingOracleSetRequestByAddrRequest) (*types.QueryLastPendingOracleSetRequestByAddrResponse, error)
func (RouterKeeper) Logger ¶
func (k RouterKeeper) Logger(ctx sdk.Context) log.Logger
Logger returns a module-specific logger.
func (RouterKeeper) OracleSetConfirm ¶
func (k RouterKeeper) OracleSetConfirm(c context.Context, req *types.QueryOracleSetConfirmRequest) (*types.QueryOracleSetConfirmResponse, error)
func (RouterKeeper) OracleSetConfirmsByNonce ¶
func (k RouterKeeper) OracleSetConfirmsByNonce(c context.Context, req *types.QueryOracleSetConfirmsByNonceRequest) (*types.QueryOracleSetConfirmsByNonceResponse, error)
func (RouterKeeper) OracleSetRequest ¶
func (k RouterKeeper) OracleSetRequest(c context.Context, req *types.QueryOracleSetRequestRequest) (*types.QueryOracleSetRequestResponse, error)
func (RouterKeeper) Oracles ¶
func (k RouterKeeper) Oracles(c context.Context, req *types.QueryOraclesRequest) (*types.QueryOraclesResponse, error)
func (RouterKeeper) OutgoingTxBatch ¶
func (k RouterKeeper) OutgoingTxBatch(c context.Context, req *types.QueryOutgoingTxBatchRequest) (*types.QueryOutgoingTxBatchResponse, error)
func (RouterKeeper) OutgoingTxBatches ¶
func (k RouterKeeper) OutgoingTxBatches(c context.Context, req *types.QueryOutgoingTxBatchesRequest) (*types.QueryOutgoingTxBatchesResponse, error)
func (RouterKeeper) Params ¶
func (k RouterKeeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (RouterKeeper) PendingExecuteClaim ¶
func (k RouterKeeper) PendingExecuteClaim(ctx context.Context, req *types.QueryPendingExecuteClaimRequest) (*types.QueryPendingExecuteClaimResponse, error)
func (RouterKeeper) ProjectedBatchTimeoutHeight ¶
func (k RouterKeeper) ProjectedBatchTimeoutHeight(c context.Context, req *types.QueryProjectedBatchTimeoutHeightRequest) (*types.QueryProjectedBatchTimeoutHeightResponse, error)
func (RouterKeeper) Router ¶
func (k RouterKeeper) Router() Router
Router returns the gov Keeper's Router
func (RouterKeeper) TokenToDenom ¶
func (k RouterKeeper) TokenToDenom(c context.Context, req *types.QueryTokenToDenomRequest) (*types.QueryTokenToDenomResponse, error)
Source Files ¶
- abci.go
- attestation.go
- attestation_handler.go
- batch_confirm.go
- bridge_account.go
- bridge_call_confirm.go
- bridge_call_in.go
- bridge_call_out.go
- bridge_token.go
- confirm.go
- delegate.go
- genesis.go
- grpc_query.go
- grpc_query_router.go
- keeper.go
- keeper_router.go
- legacy.go
- many_to_one.go
- migrations.go
- msg_server.go
- msg_server_router.go
- observed.go
- oracle.go
- oracle_set.go
- oracle_set_confirm.go
- outgoing_tx.go
- params.go
- pending_execute_claim.go
- proposal.go
- send_to_fx.go
- timeout_height.go