wormchain: Rename "certusone" -> "wormhole-foundation"
This commit is contained in:
parent
d577b931a4
commit
975182acb7
|
@ -87,14 +87,14 @@ import (
|
|||
"github.com/tendermint/spm/cosmoscmd"
|
||||
"github.com/tendermint/spm/openapiconsole"
|
||||
|
||||
"github.com/certusone/wormhole-chain/docs"
|
||||
tokenbridgemodule "github.com/certusone/wormhole-chain/x/tokenbridge"
|
||||
tokenbridgemodulekeeper "github.com/certusone/wormhole-chain/x/tokenbridge/keeper"
|
||||
tokenbridgemoduletypes "github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
wormholemodule "github.com/certusone/wormhole-chain/x/wormhole"
|
||||
wormholeclient "github.com/certusone/wormhole-chain/x/wormhole/client"
|
||||
wormholemodulekeeper "github.com/certusone/wormhole-chain/x/wormhole/keeper"
|
||||
wormholemoduletypes "github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/docs"
|
||||
tokenbridgemodule "github.com/wormhole-foundation/wormhole-chain/x/tokenbridge"
|
||||
tokenbridgemodulekeeper "github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/keeper"
|
||||
tokenbridgemoduletypes "github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
wormholemodule "github.com/wormhole-foundation/wormhole-chain/x/wormhole"
|
||||
wormholeclient "github.com/wormhole-foundation/wormhole-chain/x/wormhole/client"
|
||||
wormholemodulekeeper "github.com/wormhole-foundation/wormhole-chain/x/wormhole/keeper"
|
||||
wormholemoduletypes "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
// this line is used by starport scaffolding # stargate/app/moduleImport
|
||||
)
|
||||
|
||||
|
|
|
@ -3,9 +3,9 @@ package main
|
|||
import (
|
||||
"os"
|
||||
|
||||
"github.com/certusone/wormhole-chain/app"
|
||||
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
|
||||
"github.com/tendermint/spm/cosmoscmd"
|
||||
"github.com/wormhole-foundation/wormhole-chain/app"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module github.com/certusone/wormhole-chain
|
||||
module github.com/wormhole-foundation/wormhole-chain
|
||||
|
||||
go 1.16
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
syntax = "proto3";
|
||||
package certusone.wormholechain.tokenbridge;
|
||||
|
||||
option go_package = "github.com/certusone/wormhole-chain/x/tokenbridge/types";
|
||||
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types";
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
syntax = "proto3";
|
||||
package certusone.wormholechain.tokenbridge;
|
||||
|
||||
option go_package = "github.com/certusone/wormhole-chain/x/tokenbridge/types";
|
||||
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types";
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
syntax = "proto3";
|
||||
package certusone.wormholechain.tokenbridge;
|
||||
|
||||
option go_package = "github.com/certusone/wormhole-chain/x/tokenbridge/types";
|
||||
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types";
|
||||
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
syntax = "proto3";
|
||||
package certusone.wormholechain.tokenbridge;
|
||||
|
||||
option go_package = "github.com/certusone/wormhole-chain/x/tokenbridge/types";
|
||||
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types";
|
||||
|
||||
message EventChainRegistered{
|
||||
uint32 chainID = 1;
|
||||
|
|
|
@ -8,7 +8,7 @@ import "tokenbridge/coin_meta_rollback_protection.proto";
|
|||
// this line is used by starport scaffolding # genesis/proto/import
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
option go_package = "github.com/certusone/wormhole-chain/x/tokenbridge/types";
|
||||
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types";
|
||||
|
||||
// GenesisState defines the tokenbridge module's genesis state.
|
||||
message GenesisState {
|
||||
|
|
|
@ -10,7 +10,7 @@ import "tokenbridge/coin_meta_rollback_protection.proto";
|
|||
// this line is used by starport scaffolding # 1
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
option go_package = "github.com/certusone/wormhole-chain/x/tokenbridge/types";
|
||||
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types";
|
||||
|
||||
// Query defines the gRPC querier service.
|
||||
service Query {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
syntax = "proto3";
|
||||
package certusone.wormholechain.tokenbridge;
|
||||
|
||||
option go_package = "github.com/certusone/wormhole-chain/x/tokenbridge/types";
|
||||
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types";
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import "cosmos/base/v1beta1/coin.proto";
|
|||
|
||||
// this line is used by starport scaffolding # proto/tx/import
|
||||
|
||||
option go_package = "github.com/certusone/wormhole-chain/x/tokenbridge/types";
|
||||
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types";
|
||||
|
||||
// Msg defines the Msg service.
|
||||
service Msg {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
syntax = "proto3";
|
||||
package certusone.wormholechain.wormhole;
|
||||
|
||||
option go_package = "github.com/certusone/wormhole-chain/x/wormhole/types";
|
||||
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
|
||||
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
syntax = "proto3";
|
||||
package certusone.wormholechain.wormhole;
|
||||
|
||||
option go_package = "github.com/certusone/wormhole-chain/x/wormhole/types";
|
||||
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
|
||||
|
||||
message ConsensusGuardianSetIndex {
|
||||
uint32 index = 1;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
syntax = "proto3";
|
||||
package certusone.wormholechain.wormhole;
|
||||
|
||||
option go_package = "github.com/certusone/wormhole-chain/x/wormhole/types";
|
||||
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
|
||||
|
||||
message EventGuardianSetUpdate{
|
||||
uint32 old_index = 1;
|
||||
|
|
|
@ -10,7 +10,7 @@ import "wormhole/guardian_validator.proto";
|
|||
// this line is used by starport scaffolding # genesis/proto/import
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
option go_package = "github.com/certusone/wormhole-chain/x/wormhole/types";
|
||||
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
|
||||
|
||||
// GenesisState defines the wormhole module's genesis state.
|
||||
message GenesisState {
|
||||
|
|
|
@ -3,7 +3,7 @@ package certusone.wormholechain.wormhole;
|
|||
|
||||
import "wormhole/guardian_set.proto";
|
||||
import "gogoproto/gogo.proto";
|
||||
option go_package = "github.com/certusone/wormhole-chain/x/wormhole/types";
|
||||
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
|
||||
|
||||
// GuardianSetUpdateProposal defines a guardian set update governance proposal
|
||||
message GuardianSetUpdateProposal {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
syntax = "proto3";
|
||||
package certusone.wormholechain.wormhole;
|
||||
|
||||
option go_package = "github.com/certusone/wormhole-chain/x/wormhole/types";
|
||||
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
|
||||
|
||||
message GuardianKey {
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
syntax = "proto3";
|
||||
package certusone.wormholechain.wormhole;
|
||||
|
||||
option go_package = "github.com/certusone/wormhole-chain/x/wormhole/types";
|
||||
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
|
||||
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
syntax = "proto3";
|
||||
package certusone.wormholechain.wormhole;
|
||||
|
||||
option go_package = "github.com/certusone/wormhole-chain/x/wormhole/types";
|
||||
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
|
||||
|
||||
message GuardianValidator {
|
||||
bytes guardianKey = 1;
|
||||
|
|
|
@ -12,7 +12,7 @@ import "wormhole/guardian_validator.proto";
|
|||
// this line is used by starport scaffolding # 1
|
||||
import "gogoproto/gogo.proto";
|
||||
|
||||
option go_package = "github.com/certusone/wormhole-chain/x/wormhole/types";
|
||||
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
|
||||
|
||||
// Query defines the gRPC querier service.
|
||||
service Query {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
syntax = "proto3";
|
||||
package certusone.wormholechain.wormhole;
|
||||
|
||||
option go_package = "github.com/certusone/wormhole-chain/x/wormhole/types";
|
||||
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
syntax = "proto3";
|
||||
package certusone.wormholechain.wormhole;
|
||||
|
||||
option go_package = "github.com/certusone/wormhole-chain/x/wormhole/types";
|
||||
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ package certusone.wormholechain.wormhole;
|
|||
// this line is used by starport scaffolding # proto/tx/import
|
||||
import "wormhole/guardian_key.proto";
|
||||
|
||||
option go_package = "github.com/certusone/wormhole-chain/x/wormhole/types";
|
||||
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
|
||||
|
||||
// Msg defines the Msg service.
|
||||
service Msg {
|
||||
|
|
|
@ -15,14 +15,14 @@
|
|||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/certusone/wormhole-chain.git"
|
||||
"url": "git+https://github.com/wormhole-foundation/wormhole-chain.git"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"bugs": {
|
||||
"url": "https://github.com/certusone/wormhole-chain/issues"
|
||||
"url": "https://github.com/wormhole-foundation/wormhole-chain/issues"
|
||||
},
|
||||
"homepage": "https://github.com/certusone/wormhole-chain#readme",
|
||||
"homepage": "https://github.com/wormhole-foundation/wormhole-chain#readme",
|
||||
"dependencies": {
|
||||
"@certusone/wormhole-sdk": "^0.2.0",
|
||||
"@cosmjs/cosmwasm-stargate": "^0.27.1",
|
||||
|
|
|
@ -3,8 +3,6 @@ package keeper
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/keeper"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/cosmos/cosmos-sdk/codec"
|
||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
||||
"github.com/cosmos/cosmos-sdk/store"
|
||||
|
@ -14,6 +12,8 @@ import (
|
|||
"github.com/tendermint/tendermint/libs/log"
|
||||
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
|
||||
tmdb "github.com/tendermint/tm-db"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/keeper"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
func TokenbridgeKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) {
|
||||
|
|
|
@ -3,8 +3,6 @@ package keeper
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/keeper"
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/cosmos/cosmos-sdk/codec"
|
||||
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
||||
"github.com/cosmos/cosmos-sdk/store"
|
||||
|
@ -14,6 +12,8 @@ import (
|
|||
"github.com/tendermint/tendermint/libs/log"
|
||||
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
|
||||
tmdb "github.com/tendermint/tm-db"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/keeper"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
func WormholeKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) {
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
tmrand "github.com/tendermint/tendermint/libs/rand"
|
||||
tmdb "github.com/tendermint/tm-db"
|
||||
|
||||
"github.com/certusone/wormhole-chain/app"
|
||||
"github.com/wormhole-foundation/wormhole-chain/app"
|
||||
)
|
||||
|
||||
type (
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
tmtypes "github.com/tendermint/tendermint/types"
|
||||
tmdb "github.com/tendermint/tm-db"
|
||||
|
||||
"github.com/certusone/wormhole-chain/app"
|
||||
"github.com/wormhole-foundation/wormhole-chain/app"
|
||||
)
|
||||
|
||||
// New creates application instance with in-memory database and disabled logging.
|
||||
|
|
|
@ -10,14 +10,14 @@
|
|||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/certusone/wormhole-chain.git"
|
||||
"url": "git+https://github.com/wormhole-foundation/wormhole-chain.git"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"bugs": {
|
||||
"url": "https://github.com/certusone/wormhole-chain/issues"
|
||||
"url": "https://github.com/wormhole-foundation/wormhole-chain/issues"
|
||||
},
|
||||
"homepage": "https://github.com/certusone/wormhole-chain#readme",
|
||||
"homepage": "https://github.com/wormhole-foundation/wormhole-chain#readme",
|
||||
"dependencies": {
|
||||
"@certusone/wormhole-sdk": "^0.2.0",
|
||||
"@cosmjs/cosmwasm-stargate": "^0.27.1",
|
||||
|
|
|
@ -6,7 +6,7 @@ const { execSync } = require("child_process");
|
|||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
const CERTUS_DIRECTORY = "../vue/src/store/generated/certusone/wormhole-chain/";
|
||||
const CERTUS_DIRECTORY = "../vue/src/store/generated/wormhole-foundation/wormhole-chain/";
|
||||
const COSMOS_DIRECTORY = "../vue/src/store/generated/cosmos/cosmos-sdk/";
|
||||
const MODULE_DIRECTORY = "../ts-sdk/src/modules/";
|
||||
const VUE_DIRECTORY = "../vue";
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
// "github.com/cosmos/cosmos-sdk/client/flags"
|
||||
// sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
// GetQueryCmd returns the cli query commands for this module
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
func CmdListChainRegistration() *cobra.Command {
|
||||
|
|
|
@ -12,9 +12,9 @@ import (
|
|||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
|
||||
"github.com/certusone/wormhole-chain/testutil/network"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/client/cli"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/testutil/network"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/client/cli"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
// Prevent strconv unused error
|
||||
|
|
|
@ -5,9 +5,9 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
func CmdListCoinMetaRollbackProtection() *cobra.Command {
|
||||
|
|
|
@ -12,9 +12,9 @@ import (
|
|||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
|
||||
"github.com/certusone/wormhole-chain/testutil/network"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/client/cli"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/testutil/network"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/client/cli"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
// Prevent strconv unused error
|
||||
|
|
|
@ -3,10 +3,10 @@ package cli
|
|||
import (
|
||||
"context"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
func CmdShowConfig() *cobra.Command {
|
||||
|
|
|
@ -9,9 +9,9 @@ import (
|
|||
tmcli "github.com/tendermint/tendermint/libs/cli"
|
||||
"google.golang.org/grpc/status"
|
||||
|
||||
"github.com/certusone/wormhole-chain/testutil/network"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/client/cli"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/testutil/network"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/client/cli"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
func networkWithConfigObjects(t *testing.T) (*network.Network, types.Config) {
|
||||
|
|
|
@ -5,9 +5,9 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
func CmdListReplayProtection() *cobra.Command {
|
||||
|
|
|
@ -12,9 +12,9 @@ import (
|
|||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
|
||||
"github.com/certusone/wormhole-chain/testutil/network"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/client/cli"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/testutil/network"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/client/cli"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
// Prevent strconv unused error
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
// "github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
// GetTxCmd returns the transaction commands for this module
|
||||
|
|
|
@ -5,10 +5,10 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/cosmos/cosmos-sdk/client/tx"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
var _ = strconv.Itoa(0)
|
||||
|
|
|
@ -7,10 +7,10 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/cosmos/cosmos-sdk/client/tx"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
var _ = strconv.Itoa(0)
|
||||
|
|
|
@ -7,10 +7,10 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/cosmos/cosmos-sdk/client/tx"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
var _ = strconv.Itoa(0)
|
||||
|
|
|
@ -9,10 +9,10 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/cosmos/cosmos-sdk/client/tx"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
var _ = strconv.Itoa(0)
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package tokenbridge
|
||||
|
||||
import (
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/keeper"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/keeper"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
// InitGenesis initializes the capability module's state from a provided genesis
|
||||
|
|
|
@ -3,10 +3,10 @@ package tokenbridge_test
|
|||
import (
|
||||
"testing"
|
||||
|
||||
keepertest "github.com/certusone/wormhole-chain/testutil/keeper"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
keepertest "github.com/wormhole-foundation/wormhole-chain/testutil/keeper"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
func TestGenesis(t *testing.T) {
|
||||
|
|
|
@ -3,10 +3,10 @@ package tokenbridge
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/keeper"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/keeper"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
// NewHandler ...
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package keeper
|
||||
|
||||
import (
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/cosmos/cosmos-sdk/store/prefix"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
// SetChainRegistration set a specific chainRegistration in the store from its index
|
||||
|
|
|
@ -4,11 +4,11 @@ import (
|
|||
"strconv"
|
||||
"testing"
|
||||
|
||||
keepertest "github.com/certusone/wormhole-chain/testutil/keeper"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/keeper"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
keepertest "github.com/wormhole-foundation/wormhole-chain/testutil/keeper"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/keeper"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
// Prevent strconv unused error
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package keeper
|
||||
|
||||
import (
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/cosmos/cosmos-sdk/store/prefix"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
// SetCoinMetaRollbackProtection set a specific coinMetaRollbackProtection in the store from its index
|
||||
|
|
|
@ -4,11 +4,11 @@ import (
|
|||
"strconv"
|
||||
"testing"
|
||||
|
||||
keepertest "github.com/certusone/wormhole-chain/testutil/keeper"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/keeper"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
keepertest "github.com/wormhole-foundation/wormhole-chain/testutil/keeper"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/keeper"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
// Prevent strconv unused error
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package keeper
|
||||
|
||||
import (
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/cosmos/cosmos-sdk/store/prefix"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
// SetConfig set config in the store
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
keepertest "github.com/certusone/wormhole-chain/testutil/keeper"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/keeper"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
keepertest "github.com/wormhole-foundation/wormhole-chain/testutil/keeper"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/keeper"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
func createTestConfig(keeper *keeper.Keeper, ctx sdk.Context) types.Config {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package keeper
|
||||
|
||||
import (
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
var _ types.QueryServer = Keeper{}
|
||||
|
|
|
@ -4,10 +4,10 @@ import (
|
|||
"context"
|
||||
"math"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/cosmos/cosmos-sdk/store/prefix"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/types/query"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
)
|
||||
|
|
|
@ -10,8 +10,8 @@ import (
|
|||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
|
||||
keepertest "github.com/certusone/wormhole-chain/testutil/keeper"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
keepertest "github.com/wormhole-foundation/wormhole-chain/testutil/keeper"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
// Prevent strconv unused error
|
||||
|
|
|
@ -3,10 +3,10 @@ package keeper
|
|||
import (
|
||||
"context"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/cosmos/cosmos-sdk/store/prefix"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/types/query"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
)
|
||||
|
|
|
@ -10,8 +10,8 @@ import (
|
|||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
|
||||
keepertest "github.com/certusone/wormhole-chain/testutil/keeper"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
keepertest "github.com/wormhole-foundation/wormhole-chain/testutil/keeper"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
// Prevent strconv unused error
|
||||
|
|
|
@ -3,8 +3,8 @@ package keeper
|
|||
import (
|
||||
"context"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
)
|
||||
|
|
|
@ -8,8 +8,8 @@ import (
|
|||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
|
||||
keepertest "github.com/certusone/wormhole-chain/testutil/keeper"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
keepertest "github.com/wormhole-foundation/wormhole-chain/testutil/keeper"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
func TestConfigQuery(t *testing.T) {
|
||||
|
|
|
@ -3,10 +3,10 @@ package keeper
|
|||
import (
|
||||
"context"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/cosmos/cosmos-sdk/store/prefix"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/types/query"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
)
|
||||
|
|
|
@ -10,8 +10,8 @@ import (
|
|||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
|
||||
keepertest "github.com/certusone/wormhole-chain/testutil/keeper"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
keepertest "github.com/wormhole-foundation/wormhole-chain/testutil/keeper"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
// Prevent strconv unused error
|
||||
|
|
|
@ -5,9 +5,9 @@ import (
|
|||
|
||||
"github.com/tendermint/tendermint/libs/log"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/cosmos/cosmos-sdk/codec"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
type (
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package keeper
|
||||
|
||||
import (
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
type msgServer struct {
|
||||
|
|
|
@ -8,11 +8,11 @@ import (
|
|||
"io"
|
||||
"math"
|
||||
|
||||
whtypes "github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
||||
whtypes "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
func (k msgServer) AttestToken(goCtx context.Context, msg *types.MsgAttestToken) (*types.MsgAttestTokenResponse, error) {
|
||||
|
|
|
@ -5,12 +5,12 @@ import (
|
|||
"context"
|
||||
"encoding/binary"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/keeper"
|
||||
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/keeper"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
whtypes "github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
whtypes "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
type GovernanceAction uint8
|
||||
|
|
|
@ -8,12 +8,12 @@ import (
|
|||
"math/big"
|
||||
"strings"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/keeper"
|
||||
whtypes "github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
btypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/keeper"
|
||||
whtypes "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
type PayloadID uint8
|
||||
|
|
|
@ -4,10 +4,10 @@ import (
|
|||
"context"
|
||||
"testing"
|
||||
|
||||
keepertest "github.com/certusone/wormhole-chain/testutil/keeper"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/keeper"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
keepertest "github.com/wormhole-foundation/wormhole-chain/testutil/keeper"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/keeper"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
func setupMsgServer(t testing.TB) (types.MsgServer, context.Context) {
|
||||
|
|
|
@ -7,10 +7,10 @@ import (
|
|||
"fmt"
|
||||
"math/big"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
whtypes "github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
whtypes "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
func (k msgServer) Transfer(goCtx context.Context, msg *types.MsgTransfer) (*types.MsgTransferResponse, error) {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package keeper
|
||||
|
||||
import (
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/cosmos/cosmos-sdk/store/prefix"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
// SetReplayProtection set a specific replayProtection in the store from its index
|
||||
|
|
|
@ -4,11 +4,11 @@ import (
|
|||
"strconv"
|
||||
"testing"
|
||||
|
||||
keepertest "github.com/certusone/wormhole-chain/testutil/keeper"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/keeper"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
keepertest "github.com/wormhole-foundation/wormhole-chain/testutil/keeper"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/keeper"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
// Prevent strconv unused error
|
||||
|
|
|
@ -11,14 +11,14 @@ import (
|
|||
|
||||
abci "github.com/tendermint/tendermint/abci/types"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/client/cli"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/keeper"
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/codec"
|
||||
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/types/module"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/client/cli"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/keeper"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -8,9 +8,9 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
whtypes "github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
btypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
||||
whtypes "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
// Truncate an amount
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
package types
|
||||
|
||||
import (
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
btypes "github.com/cosmos/cosmos-sdk/x/bank/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
type AccountKeeper interface {
|
||||
|
|
|
@ -3,8 +3,8 @@ package types_test
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/tokenbridge/types"
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/tokenbridge/types"
|
||||
)
|
||||
|
||||
func TestGenesisState_Validate(t *testing.T) {
|
||||
|
|
|
@ -3,9 +3,9 @@ package types
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/certusone/wormhole-chain/testutil/sample"
|
||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/wormhole-foundation/wormhole-chain/testutil/sample"
|
||||
)
|
||||
|
||||
func TestMsgAttestToken_ValidateBasic(t *testing.T) {
|
||||
|
|
|
@ -3,9 +3,9 @@ package types
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/certusone/wormhole-chain/testutil/sample"
|
||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/wormhole-foundation/wormhole-chain/testutil/sample"
|
||||
)
|
||||
|
||||
func TestMsgExecuteGovernanceVAA_ValidateBasic(t *testing.T) {
|
||||
|
|
|
@ -3,9 +3,9 @@ package types
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/certusone/wormhole-chain/testutil/sample"
|
||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/wormhole-foundation/wormhole-chain/testutil/sample"
|
||||
)
|
||||
|
||||
func TestMsgExecuteVAA_ValidateBasic(t *testing.T) {
|
||||
|
|
|
@ -3,10 +3,10 @@ package types
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/certusone/wormhole-chain/testutil/sample"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/wormhole-foundation/wormhole-chain/testutil/sample"
|
||||
)
|
||||
|
||||
func TestMsgTransfer_ValidateBasic(t *testing.T) {
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
// "github.com/cosmos/cosmos-sdk/client/flags"
|
||||
// sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
// GetQueryCmd returns the cli query commands for this module
|
||||
|
|
|
@ -3,10 +3,10 @@ package cli
|
|||
import (
|
||||
"context"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
func CmdShowConfig() *cobra.Command {
|
||||
|
|
|
@ -9,9 +9,9 @@ import (
|
|||
tmcli "github.com/tendermint/tendermint/libs/cli"
|
||||
"google.golang.org/grpc/status"
|
||||
|
||||
"github.com/certusone/wormhole-chain/testutil/network"
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/client/cli"
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/testutil/network"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/client/cli"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
func networkWithConfigObjects(t *testing.T) (*network.Network, types.Config) {
|
||||
|
|
|
@ -3,10 +3,10 @@ package cli
|
|||
import (
|
||||
"context"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
func CmdShowConsensusGuardianSetIndex() *cobra.Command {
|
||||
|
|
|
@ -9,10 +9,10 @@ import (
|
|||
tmcli "github.com/tendermint/tendermint/libs/cli"
|
||||
"google.golang.org/grpc/status"
|
||||
|
||||
"github.com/certusone/wormhole-chain/testutil/network"
|
||||
"github.com/certusone/wormhole-chain/testutil/nullify"
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/client/cli"
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/testutil/network"
|
||||
"github.com/wormhole-foundation/wormhole-chain/testutil/nullify"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/client/cli"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
func networkWithConsensusGuardianSetIndexObjects(t *testing.T) (*network.Network, types.ConsensusGuardianSetIndex) {
|
||||
|
|
|
@ -4,10 +4,10 @@ import (
|
|||
"context"
|
||||
"strconv"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
func CmdListGuardianSet() *cobra.Command {
|
||||
|
|
|
@ -11,9 +11,9 @@ import (
|
|||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
|
||||
"github.com/certusone/wormhole-chain/testutil/network"
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/client/cli"
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/testutil/network"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/client/cli"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
func networkWithGuardianSetObjects(t *testing.T, n int) (*network.Network, []types.GuardianSet) {
|
||||
|
|
|
@ -5,10 +5,10 @@ import (
|
|||
|
||||
"encoding/hex"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
func CmdListGuardianValidator() *cobra.Command {
|
||||
|
|
|
@ -13,10 +13,10 @@ import (
|
|||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
|
||||
"github.com/certusone/wormhole-chain/testutil/network"
|
||||
"github.com/certusone/wormhole-chain/testutil/nullify"
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/client/cli"
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/testutil/network"
|
||||
"github.com/wormhole-foundation/wormhole-chain/testutil/nullify"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/client/cli"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
// Prevent strconv unused error
|
||||
|
|
|
@ -3,10 +3,10 @@ package cli
|
|||
import (
|
||||
"strconv"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
var _ = strconv.Itoa(0)
|
||||
|
|
|
@ -5,9 +5,9 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
func CmdListReplayProtection() *cobra.Command {
|
||||
|
|
|
@ -12,9 +12,9 @@ import (
|
|||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
|
||||
"github.com/certusone/wormhole-chain/testutil/network"
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/client/cli"
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/testutil/network"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/client/cli"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
// Prevent strconv unused error
|
||||
|
|
|
@ -5,9 +5,9 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
func CmdListSequenceCounter() *cobra.Command {
|
||||
|
|
|
@ -12,9 +12,9 @@ import (
|
|||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
|
||||
"github.com/certusone/wormhole-chain/testutil/network"
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/client/cli"
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/testutil/network"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/client/cli"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
// Prevent strconv unused error
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
// "github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
// GetTxCmd returns the transaction commands for this module
|
||||
|
|
|
@ -7,10 +7,10 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/cosmos/cosmos-sdk/client/tx"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
var _ = strconv.Itoa(0)
|
||||
|
|
|
@ -3,13 +3,13 @@ package cli
|
|||
import (
|
||||
"encoding/hex"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/tx"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/x/gov/client/cli"
|
||||
gov "github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
const FlagGuardianSetKeys = "guardian-set-keys"
|
||||
|
|
|
@ -7,11 +7,11 @@ import (
|
|||
"encoding/hex"
|
||||
"encoding/json"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/cosmos/cosmos-sdk/client/tx"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
var _ = strconv.Itoa(0)
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package client
|
||||
|
||||
import (
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/client/cli"
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/client/rest"
|
||||
govclient "github.com/cosmos/cosmos-sdk/x/gov/client"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/client/cli"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/client/rest"
|
||||
)
|
||||
|
||||
var GuardianSetUpdateProposalHandler = govclient.NewProposalHandler(cli.NewCmdSubmitGuardianSetUpdateProposal, rest.ProposalGuardianSetUpdateRESTHandler)
|
||||
|
|
|
@ -4,13 +4,13 @@ import (
|
|||
"encoding/hex"
|
||||
"net/http"
|
||||
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
"github.com/cosmos/cosmos-sdk/client"
|
||||
"github.com/cosmos/cosmos-sdk/client/tx"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/cosmos/cosmos-sdk/types/rest"
|
||||
govrest "github.com/cosmos/cosmos-sdk/x/gov/client/rest"
|
||||
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
type (
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package wormhole
|
||||
|
||||
import (
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/keeper"
|
||||
"github.com/certusone/wormhole-chain/x/wormhole/types"
|
||||
sdk "github.com/cosmos/cosmos-sdk/types"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/keeper"
|
||||
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
|
||||
)
|
||||
|
||||
// InitGenesis initializes the capability module's state from a provided genesis
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue