-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* backward compatible bridge deploy * add missing files
- Loading branch information
1 parent
4eb25aa
commit b0668aa
Showing
5 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (C) 2022, Ava Labs, Inc. All rights reserved. | ||
// See the file LICENSE for licensing terms. | ||
package bridgecmd | ||
|
||
import ( | ||
"github.com/ava-labs/avalanche-cli/pkg/cobrautils" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
// avalanche teleporter bridge | ||
func NewCmd() *cobra.Command { | ||
cmd := &cobra.Command{ | ||
Use: "bridge", | ||
Short: "Manage Teleporter Bridges (deprecation notice: use 'avalanche interchain tokenTransferrer')", | ||
Long: `The bridge command suite provides tools to deploy and manage Teleporter Bridges. | ||
Deprecation notice: use avalanche interchain tokenTransferrer' instead`, | ||
RunE: cobrautils.CommandSuiteUsage, | ||
} | ||
// contract deploy | ||
cmd.AddCommand(newDeployCmd()) | ||
return cmd | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (C) 2022, Ava Labs, Inc. All rights reserved. | ||
// See the file LICENSE for licensing terms. | ||
package bridgecmd | ||
|
||
import ( | ||
_ "embed" | ||
|
||
"github.com/ava-labs/avalanche-cli/cmd/interchaincmd/tokentransferrercmd" | ||
|
||
"github.com/spf13/cobra" | ||
) | ||
|
||
// avalanche teleporter bridge deploy | ||
func newDeployCmd() *cobra.Command { | ||
cmd := tokentransferrercmd.NewDeployCmd() | ||
cmd.Use = "deploy" | ||
cmd.Short = "Deploys Token Bridge into a given Network and Subnets (deprecation notice: use 'avalanche interchain tokenTransferrer deploy')" | ||
cmd.Long = `Deploys Token Bridge into a given Network and Subnets | ||
Deprecation notice: use 'avalanche interchain tokenTransferrer deploy` | ||
return cmd | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters