-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tunnel] implement route - router #495
base: tunnel-ibc-hook
Are you sure you want to change the base?
Conversation
…chain into tunnel-router-route
@@ -0,0 +1 @@ | |||
bandd tx tunnel create-tunnel router router17c2txg2px6vna8a6v4ql4eh4ruvprerhytxvwt2ugp4qr473pajsyj9pgm 17000 0xDFCfEbF22e85193eDc37b8b136d4F3394987d1AE 300000 10000000 1000000000uband 1000 ./scripts/tunnel/signal_deviations.json --from requester --keyring-backend test --gas-prices 0.0025uband -y --chain-id bandchain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to update this? look like router contract should not be used anymore?
DefaultRouterIBCChannel = "channel-0" | ||
DefaultRouterIntegrationContract = "router17c2txg2px6vna8a6v4ql4eh4ruvprerhytxvwt2ugp4qr473pajsyj9pgm" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- remove default for channel
- contract will be the same for both testnet and mainnet? if not, please remove it.
message RouterRoute { | ||
option (cosmos_proto.implements_interface) = "RouteI"; | ||
|
||
// destination_chain_id is the destination chain ID | ||
string destination_chain_id = 3 [(gogoproto.customname) = "DestinationChainID"]; | ||
// destination_contract_address is the destination contract address | ||
string destination_contract_address = 4; | ||
// destination_gas_limit is the destination gas limit | ||
uint64 destination_gas_limit = 5; | ||
// destination_gas_price is the destination gas price | ||
uint64 destination_gas_price = 6; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
start running number from 1
func GetTxCmdUpdateRouterRoute() *cobra.Command { | ||
cmd := &cobra.Command{ | ||
Use: "router [tunnel-id] [destination-chain-id] [destination-contract-address] [destination-gas-limit] [destination-gas-price]", | ||
Short: "Update router route of a router tunnel", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we use Router (big R) instead when we mention the name?
case *types.RouterRoute: | ||
_, found := k.channelKeeper.GetChannel(ctx, ibctransfertypes.PortID, routerIBCChannel) | ||
if !found { | ||
return nil, types.ErrInvalidChannelID | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't think need to check it for Router. it should always be available.
Also, if it's not, it can't be reliable and it can be changed later from params.
wdyt?.
Implementation details
Please ensure the following requirements are met before submitting a pull request:
CHANGELOG_UNRELEASED.md
Files changed
tab in the Github PR explorer)