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