Merge branch 'main' into sai/rename_ethermint_chibaclonk

This commit is contained in:
Sai Kumar 2022-04-05 21:02:33 +05:30
commit 4aef5ff22a
3 changed files with 20 additions and 2 deletions

View File

@ -47,7 +47,7 @@ func (q queryResolver) LookupAuthorities(ctx context.Context, names []string) ([
return nil, err
}
if nameAuthority.AuctionId == "" {
if nameAuthority.AuctionId != "" {
auctionResp, err := auctionQueryClient.GetAuction(context.Background(), &auctiontypes.AuctionRequest{Id: nameAuthority.GetAuctionId()})
if err != nil {
return nil, err

View File

@ -87,4 +87,4 @@ if [[ $1 == "pending" ]]; then
fi
# Start the node (remove the --pruning=nothing flag if historical queries are not needed)
chibaclonkd start --pruning=nothing --evm.tracer=json $TRACE --log_level $LOGLEVEL --minimum-gas-prices=0.0001aphoton --json-rpc.api eth,txpool,personal,net,debug,web3,miner --api.enable
chibaclonkd start --pruning=nothing --evm.tracer=json $TRACE --log_level $LOGLEVEL --minimum-gas-prices=0.0001aphoton --json-rpc.api eth,txpool,personal,net,debug,web3,miner --api.enable --gql-server --gql-playground

View File

@ -56,6 +56,12 @@ func NewMsgRefillBond(id string, amount sdk.Coin, signer sdk.AccAddress) MsgRefi
}
}
// Route Implements Msg.
func (msg MsgRefillBond) Route() string { return RouterKey }
// Type Implements Msg.
func (msg MsgRefillBond) Type() string { return "refill" }
func (msg MsgRefillBond) ValidateBasic() error {
if len(msg.Id) == 0 {
return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, msg.Id)
@ -89,6 +95,12 @@ func NewMsgWithdrawBond(id string, amount sdk.Coin, signer sdk.AccAddress) MsgWi
}
}
// Route Implements Msg.
func (msg MsgWithdrawBond) Route() string { return RouterKey }
// Type Implements Msg.
func (msg MsgWithdrawBond) Type() string { return "withdraw" }
func (msg MsgWithdrawBond) ValidateBasic() error {
if len(msg.Id) == 0 {
return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, msg.Id)
@ -121,6 +133,12 @@ func NewMsgCancelBond(id string, signer sdk.AccAddress) MsgCancelBond {
}
}
// Route Implements Msg.
func (msg MsgCancelBond) Route() string { return RouterKey }
// Type Implements Msg.
func (msg MsgCancelBond) Type() string { return "cancel" }
func (msg MsgCancelBond) ValidateBasic() error {
if len(msg.Id) == 0 {
return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, msg.Id)