rename all wormholechain and wormhole-chain references

This commit is contained in:
Conor Patrick 2022-10-21 20:28:04 +00:00 committed by Evan Gray
parent ea663c1be4
commit 91bd9a5c36
122 changed files with 10004 additions and 2126 deletions

View File

@ -235,7 +235,7 @@ jobs:
with:
go-version: "1.19.0"
- run: curl https://get.ignite.com/cli@v0.23.0 | bash && mv ignite /usr/local/bin/
- run: cd wormhole_chain && make proto -B && make test
- run: cd wormchain && make proto -B && make test
# Run Go linters, Go tests and other outside-of-Tilt things.
lint-and-tests:

View File

@ -8,12 +8,12 @@ RUN curl https://get.ignite.com/cli@v0.23.0 | bash && mv ignite /usr/local/bin/
WORKDIR /app
COPY ./wormhole_chain/go.mod .
COPY ./wormhole_chain/go.sum .
COPY ./wormchain/go.mod .
COPY ./wormchain/go.sum .
COPY ./sdk /sdk
RUN go mod download
COPY ./wormhole_chain .
COPY ./wormchain .
EXPOSE 26657
EXPOSE 26656
@ -26,8 +26,8 @@ RUN unset GOPATH
RUN make proto -B
RUN make client
RUN chmod +x /app/build/wormhole-chaind
RUN chmod +x /app/build/wormchaind
RUN make validators
RUN /app/build/wormhole-chaind collect-gentxs --home /app/build
RUN /app/build/wormchaind collect-gentxs --home /app/build
ENTRYPOINT ["/bin/bash","-c","/app/build/wormhole-chaind start"]
ENTRYPOINT ["/bin/bash","-c","/app/build/wormchaind start"]

View File

@ -732,14 +732,14 @@ if near:
)
docker_build(
ref = "wormhole-chaind-image",
ref = "wormchaind-image",
context = ".",
dockerfile = "./Dockerfile.wormchain",
only = [],
ignore = ["./wormhole_chain/testing", "./wormhole_chain/ts-sdk", "./wormhole_chain/design", "./wormhole_chain/vue", "./wormhole_chain/build/wormhole-chaind"],
ignore = ["./wormchain/testing", "./wormchain/ts-sdk", "./wormchain/design", "./wormchain/vue", "./wormchain/build/wormchaind"],
)
k8s_yaml_with_ns("wormhole_chain/validators/kubernetes/wormchain-guardian-devnet.yaml")
k8s_yaml_with_ns("wormchain/validators/kubernetes/wormchain-guardian-devnet.yaml")
k8s_resource(
"guardian-validator",
@ -753,7 +753,7 @@ k8s_resource(
)
if secondWormchain:
k8s_yaml_with_ns("wormhole_chain/validators/kubernetes/wormchain-validator2-devnet.yaml")
k8s_yaml_with_ns("wormchain/validators/kubernetes/wormchain-validator2-devnet.yaml")
k8s_resource(
"second-validator",

View File

@ -883,8 +883,9 @@ yargs(hideBin(process.argv))
argv["contract-address"],
argv["rpc"]
);
} else if (chain === "wormholechain") {
throw Error("Wormhole Chain is not supported yet");
} else if (chain == "wormholechain" || (chain+"") === "wormchain") {
// TODO: update this condition after ChainName is updated to remove "wormholechain"
throw Error("Wormchain is not supported yet");
} else {
// If you get a type error here, hover over `chain`'s type and it tells you
// which cases are not handled
@ -924,7 +925,8 @@ function parseAddress(chain: ChainName, address: string): string {
} else if (chain === "aptos") {
// TODO: is there a better native format for aptos?
return "0x" + evm_address(address);
} else if (chain === "wormholechain") {
} else if (chain === "wormholechain" || (chain + "") == "wormchain") {
// TODO: update this condition after ChainName is updated to remove "wormholechain"
const sdk = require("@certusone/wormhole-sdk/lib/cjs/utils/array")
return "0x" + sdk.tryNativeToHexString(address, chain);
} else {

View File

@ -110,10 +110,16 @@ const MAINNET = {
chain_id: "dimension_37-1",
key: get_env_var("XPLA_KEY"),
},
wormchain: {
rpc: undefined,
key: undefined,
},
// TODO: remove when ChainName is updated to remove "wormholechain"
wormholechain: {
rpc: undefined,
key: undefined,
},
moonbeam: {
rpc: "https://rpc.api.moonbeam.network",
key: get_env_var("ETH_KEY"),
@ -240,6 +246,11 @@ const TESTNET = {
chain_id: "cube_47-5",
key: get_env_var("XPLA_KEY_TESTNET"),
},
wormchain: {
rpc: undefined,
key: undefined,
},
// TODO: remove when ChainName is updated to remove "wormholechain"
wormholechain: {
rpc: undefined,
key: undefined,
@ -360,9 +371,15 @@ const DEVNET = {
chain_id: undefined,
key: undefined,
},
wormchain: {
rpc: "http://localhost:1319",
chain_id: "wormchain",
key: undefined,
},
// TODO: remove when ChainName is updated to remove "wormholechain"
wormholechain: {
rpc: "http://localhost:1319",
chain_id: "wormholechain",
chain_id: "wormchain",
key: undefined,
},
aptos: {

View File

@ -265,7 +265,7 @@ func init() {
nearRPC = NodeCmd.Flags().String("nearRPC", "", "near RPC URL")
nearContract = NodeCmd.Flags().String("nearContract", "", "near contract")
wormchainWS = NodeCmd.Flags().String("wormchainWS", "", "Path to wormholechaind root for websocket connection")
wormchainWS = NodeCmd.Flags().String("wormchainWS", "", "Path to wormchaind root for websocket connection")
wormchainLCD = NodeCmd.Flags().String("wormchainLCD", "", "Path to LCD service root for http calls")
aptosRPC = NodeCmd.Flags().String("aptosRPC", "", "aptos RPC URL")

View File

@ -99,8 +99,8 @@ func (e *Watcher) Run(ctx context.Context) error {
defer c.Close()
// Subscribe transactions which cause EventPostedMessage
params := [...]string{"tm.event='Tx' AND certusone.wormholechain.wormhole.EventPostedMessage.sequence EXISTS"}
// alternately, "tm.event='Tx' AND certusone.wormholechain.wormhole.EventPostedMessage.sequence >= 0"
params := [...]string{"tm.event='Tx' AND wormhole_foundation.wormchain.wormhole.EventPostedMessage.sequence EXISTS"}
// alternately, "tm.event='Tx' AND wormhole_foundation.wormchain.wormhole.EventPostedMessage.sequence >= 0"
command := &clientRequest{
JSONRPC: "2.0",
Method: "subscribe",
@ -275,7 +275,7 @@ func EventsToMessagePublications(txHash string, events []gjson.Result, logger *z
continue
}
eventType := gjson.Get(event.String(), "type")
if eventType.String() != "certusone.wormholechain.wormhole.EventPostedMessage" {
if eventType.String() != "wormhole_foundation.wormchain.wormhole.EventPostedMessage" {
continue
}

View File

@ -107,7 +107,7 @@ bscTokenBridgeVAA=$(node ./clients/js/build/main.js generate registration -m Tok
algoTokenBridgeVAA=$(node ./clients/js/build/main.js generate registration -m TokenBridge -c algorand -a ${algoTokenBridge} -g ${guardiansPrivateCSV})
nearTokenBridgeVAA=$(node ./clients/js/build/main.js generate registration -m TokenBridge -c near -a ${nearTokenBridge} -g ${guardiansPrivateCSV})
terra2TokenBridgeVAA=$(node ./clients/js/build/main.js generate registration -m TokenBridge -c terra2 -a ${terra2TokenBridge} -g ${guardiansPrivateCSV})
wormchainTokenBridgeVAA=$(node ./clients/js/build/main.js generate registration -m TokenBridge -c wormholechain -a ${wormchainTokenBridge} -g ${guardiansPrivateCSV})
wormchainTokenBridgeVAA=$(node ./clients/js/build/main.js generate registration -m TokenBridge -c wormchain -a ${wormchainTokenBridge} -g ${guardiansPrivateCSV})
aptosTokenBridgeVAA=$(node ./clients/js/build/main.js generate registration -m TokenBridge -c aptos -a ${aptosTokenBridge} -g ${guardiansPrivateCSV})

View File

@ -43,7 +43,7 @@ format(){
fi
# Use -exec because of pitfall #1 in http://mywiki.wooledge.org/BashPitfalls
GOFMT_OUTPUT="$(find "./sdk" "./node" "./event_database" "./wormhole_chain" -type f -name '*.go' -not -path '*.pb.go' -print0 | xargs -r -0 goimports $GOIMPORTS_ARGS 2>&1)"
GOFMT_OUTPUT="$(find "./sdk" "./node" "./event_database" "./wormchain" -type f -name '*.go' -not -path '*.pb.go' -print0 | xargs -r -0 goimports $GOIMPORTS_ARGS 2>&1)"
if [ -n "$GOFMT_OUTPUT" ]; then
if [ "$GITHUB_ACTION" == "true" ]; then

View File

@ -26,11 +26,11 @@ test("wormchain address conversion", () => {
"000000000000000000000000e868c4707417d0481dd7e213944e758e776ed35e";
const native = tryUint8ArrayToNative(
new Uint8Array(Buffer.from(canonical, "hex")),
"wormholechain"
"wormchain"
);
expect(native).toBe(human);
expect(tryNativeToHexString(human, "wormholechain")).toBe(canonical);
expect(tryNativeToHexString(human, "wormchain")).toBe(canonical);
});
test("injective address conversion", () => {

View File

@ -22,7 +22,7 @@ import {
CHAIN_ID_SOLANA,
CHAIN_ID_TERRA,
CHAIN_ID_TERRA2,
CHAIN_ID_WORMHOLE_CHAIN,
CHAIN_ID_WORMCHAIN,
CHAIN_ID_UNSET,
coalesceChainId,
isEVMChain,
@ -95,8 +95,8 @@ export const tryUint8ArrayToNative = (
return humanAddress("inj", a.slice(-20));
} else if (chainId === CHAIN_ID_ALGORAND) {
return uint8ArrayToNativeStringAlgorand(a);
} else if (chainId == CHAIN_ID_WORMHOLE_CHAIN) {
// wormhole-chain addresses are always 20 bytes.
} else if (chainId == CHAIN_ID_WORMCHAIN) {
// wormchain addresses are always 20 bytes.
return humanAddress("wormhole", a.slice(-20));
} else if (chainId === CHAIN_ID_XPLA) {
return humanAddress("xpla", a.slice(-20));
@ -232,7 +232,7 @@ export const tryNativeToHexString = (
return buildTokenId(chainId, address);
} else if (chainId === CHAIN_ID_ALGORAND) {
return nativeStringToHexAlgorand(address);
} else if (chainId == CHAIN_ID_WORMHOLE_CHAIN) {
} else if (chainId == CHAIN_ID_WORMCHAIN) {
return uint8ArrayToHex(zeroPad(canonicalAddress(address), 32));
} else if (chainId === CHAIN_ID_NEAR) {
return uint8ArrayToHex(arrayify(sha256(Buffer.from(address))));

View File

@ -28,7 +28,7 @@ export const CHAINS = {
pythnet: 26,
xpla: 28,
ropsten: 10001,
wormholechain: 3104,
wormchain: 3104,
} as const;
export type ChainName = keyof typeof CHAINS;
@ -222,7 +222,7 @@ const MAINNET = {
token_bridge: undefined,
nft_bridge: undefined,
},
wormholechain: {
wormchain: {
core: undefined,
token_bridge: undefined,
nft_bridge: undefined,
@ -377,7 +377,7 @@ const TESTNET = {
token_bridge: "0xF174F9A837536C449321df1Ca093Bb96948D5386",
nft_bridge: "0x2b048Da40f69c8dc386a56705915f8E966fe1eba",
},
wormholechain: {
wormchain: {
core: undefined,
token_bridge: undefined,
nft_bridge: undefined,
@ -531,7 +531,7 @@ const DEVNET = {
token_bridge: undefined,
nft_bridge: undefined,
},
wormholechain: {
wormchain: {
core: "wormhole1ap5vgur5zlgys8whugfegnn43emka567dtq0jl",
token_bridge: "wormhole1zugu6cajc4z7ue29g9wnes9a5ep9cs7yu7rn3z",
nft_bridge: undefined,
@ -605,7 +605,7 @@ export const CHAIN_ID_GNOSIS = CHAINS["gnosis"];
export const CHAIN_ID_PYTHNET = CHAINS["pythnet"];
export const CHAIN_ID_XPLA = CHAINS["xpla"];
export const CHAIN_ID_ETHEREUM_ROPSTEN = CHAINS["ropsten"];
export const CHAIN_ID_WORMHOLE_CHAIN = CHAINS["wormholechain"];
export const CHAIN_ID_WORMCHAIN = CHAINS["wormchain"];
// This inverts the [[CHAINS]] object so that we can look up a chain by id
export type ChainIdToName = {

View File

@ -147,7 +147,7 @@ func (c ChainID) String() string {
case ChainIDPythNet:
return "pythnet"
case ChainIDWormchain:
return "wormholechain"
return "wormchain"
case ChainIDXpla:
return "xpla"
default:
@ -207,7 +207,7 @@ func ChainIDFromString(s string) (ChainID, error) {
return ChainIDArbitrum, nil
case "pythnet":
return ChainIDPythNet, nil
case "wormholechain":
case "wormchain":
return ChainIDWormchain, nil
case "xpla":
return ChainIDXpla, nil
@ -266,7 +266,7 @@ const (
ChainIDPythNet ChainID = 26
// ChainIDXpla is the ChainID of Xpla
ChainIDXpla ChainID = 28
//ChainIDWormchain is the ChainID of Wormholechain
//ChainIDWormchain is the ChainID of Wormchain
ChainIDWormchain ChainID = 3104
// ChainIDEthereumRopsten is the ChainID of Ethereum Ropsten

View File

@ -73,8 +73,8 @@ func TestChainIDFromString(t *testing.T) {
{input: "Arbitrum", output: ChainIDArbitrum},
{input: "XPLA", output: ChainIDXpla},
{input: "Ethereum-ropsten", output: ChainIDEthereumRopsten},
{input: "Wormholechain", output: ChainIDWormchain},
{input: "wormholechain", output: ChainIDWormchain},
{input: "Wormchain", output: ChainIDWormchain},
{input: "wormchain", output: ChainIDWormchain},
}
// Negative Test Cases
@ -170,7 +170,7 @@ func TestChainId_String(t *testing.T) {
{input: 23, output: "arbitrum"},
{input: 28, output: "xpla"},
{input: 10001, output: "ethereum-ropsten"},
{input: 3104, output: "wormholechain"},
{input: 3104, output: "wormchain"},
}
for _, tc := range tests {

View File

@ -6,6 +6,7 @@ release/
testing/js/node_modules
!build
build/wormhole-chaind
build/wormchaind
build/data
validators/first_validator/keyring-test
validators/second_validator/keyring-test

View File

@ -2,11 +2,11 @@
"version": "0.2.0",
"configurations": [
{
"name": "wormhole-chaind/main.go",
"name": "wormchaind/main.go",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/cmd/wormhole-chaind/main.go",
"program": "${workspaceFolder}/cmd/wormchaind/main.go",
"args": [
"start",
"--home", "${workspaceFolder}/build/",

View File

@ -13,15 +13,15 @@ endif
all: client vue validators
.PHONY: client
client: build/wormhole-chaind
client: build/wormchaind
.PHONY: validators
validators:
# These files change when the genesis file changes, so we need to make
# sure to copy them over
touch -m $@
./build/wormhole-chaind --home build/ tendermint unsafe-reset-all
./build/wormhole-chaind --home build/ gentx tiltGuardian "0uworm" --chain-id=wormholechain --min-self-delegation="0" --keyring-dir=keyring-test
./build/wormchaind --home build/ tendermint unsafe-reset-all
./build/wormchaind --home build/ gentx tiltGuardian "0uworm" --chain-id=wormchain --min-self-delegation="0" --keyring-dir=keyring-test
# Copy config to validators/first_validator
cp build/config/priv_validator_key.json validators/first_validator/config/
@ -35,7 +35,7 @@ validators:
mkdir -p validators/second_validator/keyring-test
cp build/keyring-test/* validators/second_validator/keyring-test/
build/wormhole-chaind: cmd/wormhole-chaind/main.go $(GO_FILES) proto
build/wormchaind: cmd/wormchaind/main.go $(GO_FILES) proto
go build -o $@ $<
proto: $(PROTO_FILES)
@ -55,7 +55,7 @@ ts-sdk: vue
npm run build --prefix $@
.PHONY: run
run: build/wormhole-chaind
run: build/wormchaind
./$< start --home build --log_level="debug"
.PHONY: test
@ -68,5 +68,5 @@ bootstrap:
.PHONY: clean
clean:
rm -rf build/wormhole-chaind build/**/*.db build/**/*.wal vue
rm -rf build/wormchaind build/**/*.db build/**/*.wal vue
echo "{\"height\":\"0\",\"round\":0,\"step\":0}" > build/data/priv_validator_state.json

View File

@ -91,17 +91,17 @@ import (
"github.com/tendermint/spm/cosmoscmd"
"github.com/tendermint/spm/openapiconsole"
"github.com/wormhole-foundation/wormhole-chain/docs"
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"
"github.com/wormhole-foundation/wormchain/docs"
wormholemodule "github.com/wormhole-foundation/wormchain/x/wormhole"
wormholeclient "github.com/wormhole-foundation/wormchain/x/wormhole/client"
wormholemodulekeeper "github.com/wormhole-foundation/wormchain/x/wormhole/keeper"
wormholemoduletypes "github.com/wormhole-foundation/wormchain/x/wormhole/types"
// this line is used by starport scaffolding # stargate/app/moduleImport
)
const (
AccountAddressPrefix = "wormhole"
Name = "wormholechain"
Name = "wormchain"
)
// this line is used by starport scaffolding # stargate/wasm/app/enabledProposals

View File

@ -8,7 +8,7 @@ pruning = "default"
pruning-interval = "0"
pruning-keep-every = "0"
pruning-keep-recent = "0"
chain-id = "wormholechain"
chain-id = "wormchain"
[api]
address = "tcp://localhost:1317"

View File

@ -1,5 +1,5 @@
broadcast-mode = "block"
chain-id = "wormholechain"
chain-id = "wormchain"
keyring-backend = "test"
node = "tcp://localhost:26657"
output = "text"

View File

@ -1,9 +1,26 @@
{
"genesis_time": "2022-09-27T22:08:43.044644477Z",
"chain_id": "wormholechain",
"gentxs_dir": "build/config/gentx",
"moniker": "mynode",
"node_id": "c3f474217c930af3a4e998c4e52a57cee188ff43",
"chain_id": "wormchain",
"initial_height": "1",
"consensus_params": {
"block": {
"max_bytes": "22020096",
"max_gas": "-1",
"time_iota_ms": "1000"
},
"evidence": {
"max_age_num_blocks": "100000",
"max_age_duration": "172800000000000",
"max_bytes": "1048576"
},
"validator": {
"pub_key_types": [
"ed25519"
]
},
"version": {}
},
"app_hash": "",
"app_state": {
"auth": {
"params": {
@ -58,7 +75,7 @@
"supply": [],
"denom_metadata": [
{
"description": "Wormholechain's native test asset",
"description": "Wormchain's native test asset",
"denom_units": [
{
"denom": "utest",
@ -77,7 +94,7 @@
"symbol": "TEST"
},
{
"description": "Wormholechain's native staking asset",
"description": "Wormchain's native staking asset",
"denom_units": [
{
"denom": "uworm",
@ -164,7 +181,7 @@
}
}
],
"memo": "c3f474217c930af3a4e998c4e52a57cee188ff43@172.16.14.80:26656",
"memo": "d012471401a9132f69a8189998be10da3320e089@10.0.0.2:26656",
"timeout_height": "0",
"extension_options": [],
"non_critical_extension_options": []
@ -192,7 +209,7 @@
}
},
"signatures": [
"wksmbgHHl22UKLmZK3AuSIdPxfX5+BPmvhVxHJC3wB5dzE1l0n+qmMxpbEP/wr0Xi0aC/qIszss6VxVoUmiPKw=="
"c5Ne3MvUdOC0o4PxqPkieqXMemrCg2VIDwH43v+rDs85sUi4UE0QdIjldzFBeBQXa6dVddKgU6KbZTyh7yc7GA=="
]
}
]
@ -305,6 +322,19 @@
},
"upgrade": {},
"vesting": {},
"wasm": {
"params": {
"code_upload_access": {
"permission": "Everybody",
"address": ""
},
"instantiate_default_permission": "Everybody"
},
"codes": [],
"contracts": [],
"sequences": [],
"gen_msgs": []
},
"wormhole": {
"config": {
"chain_id": 3104,
@ -332,19 +362,6 @@
],
"replayProtectionList": [],
"sequenceCounterList": []
},
"wasm": {
"params": {
"code_upload_access": {
"permission": "Everybody",
"address": ""
},
"instantiate_default_permission": "Everybody"
},
"codes": [],
"contracts": [],
"sequences": [],
"gen_msgs": []
}
}
}
}

View File

@ -5,8 +5,8 @@ import (
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
"github.com/tendermint/spm/cosmoscmd"
"github.com/wormhole-foundation/wormhole-chain/app"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/client/cli"
"github.com/wormhole-foundation/wormchain/app"
"github.com/wormhole-foundation/wormchain/x/wormhole/client/cli"
)
func main() {

View File

@ -15,7 +15,7 @@ make
```
This command creates a `build` directory and in particular, the
`build/wormhole-chaind` binary, which can be used to run and interact with the
`build/wormchaind` binary, which can be used to run and interact with the
blockchain.
You can start a local development instance by running
@ -27,7 +27,7 @@ make run
Or equivalently
```shell
./build/wormhole-chaind --home build
./build/wormchaind --home build
```
If you want to reset the blockchain, just run
@ -58,7 +58,7 @@ Client tests, run against the chain. Wormchain must be running via `starport cha
You can interact with the blockchain by using the go binary:
```shell
./build/wormhole-chaind tx --from tiltGuardian --home build
./build/wormchaind tx --from tiltGuardian --home build
```
Note the flags `--from tiltGuardian --home build`. These have to be passed
@ -85,4 +85,4 @@ Scaffold a query:
starport scaffold query latest_guardian_set_index --response LatestGuardianSetIndex --module wormhole
```
(then modify "wormhole_chain/x/wormhole/types/query.pb.go" to change the response type)
(then modify "wormchain/x/wormhole/types/query.pb.go" to change the response type)

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
syntax = "proto3";
package wormhole_foundation.wormholechain.wormhole;
package wormhole_foundation.wormchain.wormhole;
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
option go_package = "github.com/wormhole-foundation/wormchain/x/wormhole/types";
import "gogoproto/gogo.proto";

View File

@ -1,7 +1,7 @@
syntax = "proto3";
package wormhole_foundation.wormholechain.wormhole;
package wormhole_foundation.wormchain.wormhole;
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
option go_package = "github.com/wormhole-foundation/wormchain/x/wormhole/types";
message ConsensusGuardianSetIndex {
uint32 index = 1;

View File

@ -1,7 +1,7 @@
syntax = "proto3";
package wormhole_foundation.wormholechain.wormhole;
package wormhole_foundation.wormchain.wormhole;
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
option go_package = "github.com/wormhole-foundation/wormchain/x/wormhole/types";
message EventGuardianSetUpdate{
uint32 old_index = 1;

View File

@ -1,5 +1,5 @@
syntax = "proto3";
package wormhole_foundation.wormholechain.wormhole;
package wormhole_foundation.wormchain.wormhole;
import "wormhole/guardian_set.proto";
import "wormhole/config.proto";
@ -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/wormhole-foundation/wormhole-chain/x/wormhole/types";
option go_package = "github.com/wormhole-foundation/wormchain/x/wormhole/types";
// GenesisState defines the wormhole module's genesis state.
message GenesisState {

View File

@ -1,9 +1,9 @@
syntax = "proto3";
package wormhole_foundation.wormholechain.wormhole;
package wormhole_foundation.wormchain.wormhole;
import "wormhole/guardian_set.proto";
import "gogoproto/gogo.proto";
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
option go_package = "github.com/wormhole-foundation/wormchain/x/wormhole/types";
// GuardianSetUpdateProposal defines a guardian set update governance proposal
message GuardianSetUpdateProposal {

View File

@ -1,7 +1,7 @@
syntax = "proto3";
package wormhole_foundation.wormholechain.wormhole;
package wormhole_foundation.wormchain.wormhole;
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
option go_package = "github.com/wormhole-foundation/wormchain/x/wormhole/types";
message GuardianKey {

View File

@ -1,7 +1,7 @@
syntax = "proto3";
package wormhole_foundation.wormholechain.wormhole;
package wormhole_foundation.wormchain.wormhole;
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
option go_package = "github.com/wormhole-foundation/wormchain/x/wormhole/types";
import "gogoproto/gogo.proto";

View File

@ -1,7 +1,7 @@
syntax = "proto3";
package wormhole_foundation.wormholechain.wormhole;
package wormhole_foundation.wormchain.wormhole;
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
option go_package = "github.com/wormhole-foundation/wormchain/x/wormhole/types";
message GuardianValidator {
bytes guardianKey = 1;

View File

@ -1,5 +1,5 @@
syntax = "proto3";
package wormhole_foundation.wormholechain.wormhole;
package wormhole_foundation.wormchain.wormhole;
import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.proto";
@ -12,61 +12,61 @@ import "wormhole/guardian_validator.proto";
// this line is used by starport scaffolding # 1
import "gogoproto/gogo.proto";
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
option go_package = "github.com/wormhole-foundation/wormchain/x/wormhole/types";
// Query defines the gRPC querier service.
service Query {
// Queries a guardianSet by index.
rpc GuardianSet(QueryGetGuardianSetRequest) returns (QueryGetGuardianSetResponse) {
option (google.api.http).get = "/wormhole_foundation/wormholechain/wormhole/guardianSet/{index}";
option (google.api.http).get = "/wormhole_foundation/wormchain/wormhole/guardianSet/{index}";
}
// Queries a list of guardianSet items.
rpc GuardianSetAll(QueryAllGuardianSetRequest) returns (QueryAllGuardianSetResponse) {
option (google.api.http).get = "/wormhole_foundation/wormholechain/wormhole/guardianSet";
option (google.api.http).get = "/wormhole_foundation/wormchain/wormhole/guardianSet";
}
// Queries a config by index.
rpc Config(QueryGetConfigRequest) returns (QueryGetConfigResponse) {
option (google.api.http).get = "/wormhole_foundation/wormholechain/wormhole/config";
option (google.api.http).get = "/wormhole_foundation/wormchain/wormhole/config";
}
// Queries a replayProtection by index.
rpc ReplayProtection(QueryGetReplayProtectionRequest) returns (QueryGetReplayProtectionResponse) {
option (google.api.http).get = "/wormhole_foundation/wormholechain/wormhole/replayProtection/{index}";
option (google.api.http).get = "/wormhole_foundation/wormchain/wormhole/replayProtection/{index}";
}
// Queries a list of replayProtection items.
rpc ReplayProtectionAll(QueryAllReplayProtectionRequest) returns (QueryAllReplayProtectionResponse) {
option (google.api.http).get = "/wormhole_foundation/wormholechain/wormhole/replayProtection";
option (google.api.http).get = "/wormhole_foundation/wormchain/wormhole/replayProtection";
}
// Queries a sequenceCounter by index.
rpc SequenceCounter(QueryGetSequenceCounterRequest) returns (QueryGetSequenceCounterResponse) {
option (google.api.http).get = "/wormhole_foundation/wormholechain/wormhole/sequenceCounter/{index}";
option (google.api.http).get = "/wormhole_foundation/wormchain/wormhole/sequenceCounter/{index}";
}
// Queries a list of sequenceCounter items.
rpc SequenceCounterAll(QueryAllSequenceCounterRequest) returns (QueryAllSequenceCounterResponse) {
option (google.api.http).get = "/wormhole_foundation/wormholechain/wormhole/sequenceCounter";
option (google.api.http).get = "/wormhole_foundation/wormchain/wormhole/sequenceCounter";
}
// Queries a ConsensusGuardianSetIndex by index.
rpc ConsensusGuardianSetIndex(QueryGetConsensusGuardianSetIndexRequest) returns (QueryGetConsensusGuardianSetIndexResponse) {
option (google.api.http).get = "/wormhole_foundation/wormholechain/wormhole/consensus_guardian_set_index";
option (google.api.http).get = "/wormhole_foundation/wormchain/wormhole/consensus_guardian_set_index";
}
// Queries a GuardianValidator by index.
rpc GuardianValidator(QueryGetGuardianValidatorRequest) returns (QueryGetGuardianValidatorResponse) {
option (google.api.http).get = "/wormhole_foundation/wormholechain/wormhole/guardian_validator/{guardianKey}";
option (google.api.http).get = "/wormhole_foundation/wormchain/wormhole/guardian_validator/{guardianKey}";
}
// Queries a list of GuardianValidator items.
rpc GuardianValidatorAll(QueryAllGuardianValidatorRequest) returns (QueryAllGuardianValidatorResponse) {
option (google.api.http).get = "/wormhole_foundation/wormholechain/wormhole/guardian_validator";
option (google.api.http).get = "/wormhole_foundation/wormchain/wormhole/guardian_validator";
}
// Queries a list of LatestGuardianSetIndex items.
rpc LatestGuardianSetIndex(QueryLatestGuardianSetIndexRequest) returns (QueryLatestGuardianSetIndexResponse) {
option (google.api.http).get = "/wormhole_foundation/wormholechain/wormhole/latest_guardian_set_index";
option (google.api.http).get = "/wormhole_foundation/wormchain/wormhole/latest_guardian_set_index";
}
// this line is used by starport scaffolding # 2

View File

@ -1,7 +1,7 @@
syntax = "proto3";
package wormhole_foundation.wormholechain.wormhole;
package wormhole_foundation.wormchain.wormhole;
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
option go_package = "github.com/wormhole-foundation/wormchain/x/wormhole/types";

View File

@ -1,7 +1,7 @@
syntax = "proto3";
package wormhole_foundation.wormholechain.wormhole;
package wormhole_foundation.wormchain.wormhole;
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
option go_package = "github.com/wormhole-foundation/wormchain/x/wormhole/types";

View File

@ -1,11 +1,11 @@
syntax = "proto3";
package wormhole_foundation.wormholechain.wormhole;
package wormhole_foundation.wormchain.wormhole;
import "gogoproto/gogo.proto";
// this line is used by starport scaffolding # proto/tx/import
import "wormhole/guardian_key.proto";
option go_package = "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types";
option go_package = "github.com/wormhole-foundation/wormchain/x/wormhole/types";
// Msg defines the Msg service.
service Msg {

View File

@ -1,5 +1,5 @@
{
"name": "@wormhole-foundation/tests-wormhole-chain",
"name": "@wormhole-foundation/tests-wormchain",
"version": "0.0.1",
"description": "testing project for wormhole chain",
"main": "index.js",
@ -15,14 +15,14 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/wormhole-foundation/wormhole-chain.git"
"url": "git+https://github.com/wormhole-foundation/wormchain.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/wormhole-foundation/wormhole-chain/issues"
"url": "https://github.com/wormhole-foundation/wormchain/issues"
},
"homepage": "https://github.com/wormhole-foundation/wormhole-chain#readme",
"homepage": "https://github.com/wormhole-foundation/wormchain#readme",
"dependencies": {
"@certusone/wormhole-sdk": "^0.2.0",
"@cosmjs/cosmwasm-stargate": "^0.27.1",
@ -30,7 +30,7 @@
"@cosmjs/proto-signing": "^0.27.1",
"@cosmjs/stargate": "^0.27.1",
"@cosmjs/tendermint-rpc": "^0.27.1",
"@wormhole-foundation/wormhole-chain-sdk": "file:../../ts-sdk",
"@wormhole-foundation/wormchain-sdk": "file:../../ts-sdk",
"axios": "^0.26.0",
"bech32": "^2.0.0",
"elliptic": "^6.5.4",

View File

@ -1,5 +1,5 @@
import { expect, jest, test } from "@jest/globals";
import { getAddress, getWallet } from "@wormhole-foundation/wormhole-chain-sdk";
import { getAddress, getWallet } from "@wormhole-foundation/wormchain-sdk";
import { TEST_WALLET_MNEMONIC_1, TEST_WALLET_MNEMONIC_2 } from "../consts";
import { getBalance, sendTokens } from "../utils/walletHelpers";

View File

@ -9,7 +9,7 @@ import {
toAccAddress,
toBase64,
toValAddress,
} from "@wormhole-foundation/wormhole-chain-sdk";
} from "@wormhole-foundation/wormchain-sdk";
import {
GUARDIAN_VALIDATOR_BASE64_VALADDR,
GUARDIAN_VALIDATOR_VALADDR,

View File

@ -4,7 +4,7 @@ import {
getWallet,
getWormchainSigningClient,
toValAddress,
} from "@wormhole-foundation/wormhole-chain-sdk";
} from "@wormhole-foundation/wormchain-sdk";
import { getZeroFee } from "../bootstrap";
import {
DEVNET_GUARDIAN_PRIVATE_KEY,

View File

@ -3,13 +3,13 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate";
import axios from "axios";
import pkg from "protobufjs";
const { Field, Type } = pkg;
import * as sdk from "@wormhole-foundation/wormhole-chain-sdk";
import * as sdk from "@wormhole-foundation/wormchain-sdk";
import {
fromAccAddress,
fromValAddress,
toBase64,
toValAddress,
} from "@wormhole-foundation/wormhole-chain-sdk";
} from "@wormhole-foundation/wormchain-sdk";
import {
DEVNET_GUARDIAN2_PRIVATE_KEY,
DEVNET_GUARDIAN2_PUBLIC_KEY,

View File

@ -7,7 +7,7 @@ import {
getWallet,
getWormchainSigningClient,
getWormholeQueryClient,
} from "@wormhole-foundation/wormhole-chain-sdk";
} from "@wormhole-foundation/wormchain-sdk";
import {
WORM_DENOM,
NODE_URL,

View File

@ -16,10 +16,10 @@ import (
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper"
capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
"github.com/wormhole-foundation/wormhole-chain/app"
"github.com/wormhole-foundation/wormhole-chain/app/wasm_handlers"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/keeper"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
"github.com/wormhole-foundation/wormchain/app"
"github.com/wormhole-foundation/wormchain/app/wasm_handlers"
"github.com/wormhole-foundation/wormchain/x/wormhole/keeper"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper"
paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"

View File

@ -18,7 +18,7 @@ import (
tmrand "github.com/tendermint/tendermint/libs/rand"
tmdb "github.com/tendermint/tm-db"
"github.com/wormhole-foundation/wormhole-chain/app"
"github.com/wormhole-foundation/wormchain/app"
)
type (

View File

@ -11,7 +11,7 @@ import (
tmtypes "github.com/tendermint/tendermint/types"
tmdb "github.com/tendermint/tm-db"
"github.com/wormhole-foundation/wormhole-chain/app"
"github.com/wormhole-foundation/wormchain/app"
)
// New creates application instance with in-memory database and disabled logging.

View File

@ -1,5 +1,5 @@
{
"name": "@wormhole-foundation/wormhole-chain-sdk",
"name": "@wormhole-foundation/wormchain-sdk",
"version": "0.0.1",
"description": "Typescript SDK for interating with the Wormhole chain",
"main": "lib/index.js",
@ -10,14 +10,14 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/wormhole-foundation/wormhole-chain.git"
"url": "git+https://github.com/wormhole-foundation/wormchain.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/wormhole-foundation/wormhole-chain/issues"
"url": "https://github.com/wormhole-foundation/wormchain/issues"
},
"homepage": "https://github.com/wormhole-foundation/wormhole-chain#readme",
"homepage": "https://github.com/wormhole-foundation/wormchain#readme",
"dependencies": {
"@certusone/wormhole-sdk": "^0.2.0",
"@cosmjs/cosmwasm-stargate": "^0.27.1",

View File

@ -6,7 +6,7 @@ const { execSync } = require("child_process");
const fs = require("fs");
const path = require("path");
const CERTUS_DIRECTORY = "../vue/src/store/generated/wormhole-foundation/wormhole-chain/";
const CERTUS_DIRECTORY = "../vue/src/store/generated/wormhole-foundation/wormchain/";
const COSMOS_DIRECTORY = "../vue/src/store/generated/cosmos/cosmos-sdk/";
const MODULE_DIRECTORY = "../ts-sdk/src/modules/";
const VUE_DIRECTORY = "../vue";

View File

@ -1,5 +1,5 @@
broadcast-mode = "block"
chain-id = "wormholechain"
chain-id = "wormchain"
keyring-backend = "test"
node = "tcp://localhost:26657"
output = "text"

View File

@ -35,10 +35,10 @@ spec:
app: guardian-validator
spec:
containers:
- name: wormhole-chaind
image: wormhole-chaind-image
- name: wormchaind
image: wormchaind-image
command:
- /app/build/wormhole-chaind
- /app/build/wormchaind
- start
- --home
- /app/validators/first_validator

View File

@ -35,10 +35,10 @@ spec:
app: second-validator
spec:
containers:
- name: wormhole-chaind
image: wormhole-chaind-image
- name: wormchaind
image: wormchaind-image
command:
- /app/build/wormhole-chaind
- /app/build/wormchaind
- start
- --home
- /app/validators/second_validator

View File

@ -31,7 +31,7 @@ Thus, `first_validator` (represented in tilt as `guardian-validator`) is a speci
At this point you should have a container which comes online as a non-validating node, and no additional action is needed if that is sufficient. A couple other things you may want to make note of are:
- The Tendermint ID & pubkey of the node. The IDs of the first two nodes are posted below. The easiest way to get this is to simply grab it from the logs when the validator starts up.
- Adding your validator to the genesis block. When you run `make`, it should put out a gentx file. This gentx payload needs to make its way into the `genesis.json` in order for the validator to be registered in the genesis block. The easiest way to do this would be to run the `./build/wormhole-chaind gentx` command (with the required arguments), then running `make` again.
- Adding your validator to the genesis block. When you run `make`, it should put out a gentx file. This gentx payload needs to make its way into the `genesis.json` in order for the validator to be registered in the genesis block. The easiest way to do this would be to run the `./build/wormchaind gentx` command (with the required arguments), then running `make` again.
## Validator Information

View File

@ -1,5 +1,5 @@
broadcast-mode = "block"
chain-id = "wormholechain"
chain-id = "wormchain"
keyring-backend = "test"
node = "tcp://localhost:26657"
output = "text"

View File

@ -20,8 +20,8 @@ import (
// "github.com/cosmos/cosmos-sdk/client/flags"
"github.com/ethereum/go-ethereum/crypto"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/keeper"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
"github.com/wormhole-foundation/wormchain/x/wormhole/keeper"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
"github.com/wormhole-foundation/wormhole/sdk/vaa"
)

View File

@ -10,7 +10,7 @@ import (
// "github.com/cosmos/cosmos-sdk/client/flags"
// sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
// GetQueryCmd returns the cli query commands for this module

View File

@ -6,7 +6,7 @@ import (
"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"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
func CmdShowConfig() *cobra.Command {

View File

@ -9,9 +9,9 @@ import (
tmcli "github.com/tendermint/tendermint/libs/cli"
"google.golang.org/grpc/status"
"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"
"github.com/wormhole-foundation/wormchain/testutil/network"
"github.com/wormhole-foundation/wormchain/x/wormhole/client/cli"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
func networkWithConfigObjects(t *testing.T) (*network.Network, types.Config) {

View File

@ -6,7 +6,7 @@ import (
"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"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
func CmdShowConsensusGuardianSetIndex() *cobra.Command {

View File

@ -9,10 +9,10 @@ import (
tmcli "github.com/tendermint/tendermint/libs/cli"
"google.golang.org/grpc/status"
"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"
"github.com/wormhole-foundation/wormchain/testutil/network"
"github.com/wormhole-foundation/wormchain/testutil/nullify"
"github.com/wormhole-foundation/wormchain/x/wormhole/client/cli"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
func networkWithConsensusGuardianSetIndexObjects(t *testing.T) (*network.Network, types.ConsensusGuardianSetIndex) {

View File

@ -7,7 +7,7 @@ import (
"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"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
func CmdListGuardianSet() *cobra.Command {

View File

@ -11,9 +11,9 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"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"
"github.com/wormhole-foundation/wormchain/testutil/network"
"github.com/wormhole-foundation/wormchain/x/wormhole/client/cli"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
func networkWithGuardianSetObjects(t *testing.T, n int) (*network.Network, []types.GuardianSet) {

View File

@ -8,7 +8,7 @@ import (
"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"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
func CmdListGuardianValidator() *cobra.Command {

View File

@ -13,10 +13,10 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"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"
"github.com/wormhole-foundation/wormchain/testutil/network"
"github.com/wormhole-foundation/wormchain/testutil/nullify"
"github.com/wormhole-foundation/wormchain/x/wormhole/client/cli"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
// Prevent strconv unused error

View File

@ -6,7 +6,7 @@ import (
"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"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
var _ = strconv.Itoa(0)

View File

@ -7,7 +7,7 @@ import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
func CmdListReplayProtection() *cobra.Command {

View File

@ -12,9 +12,9 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"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"
"github.com/wormhole-foundation/wormchain/testutil/network"
"github.com/wormhole-foundation/wormchain/x/wormhole/client/cli"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
// Prevent strconv unused error

View File

@ -7,7 +7,7 @@ import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
func CmdListSequenceCounter() *cobra.Command {

View File

@ -12,9 +12,9 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"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"
"github.com/wormhole-foundation/wormchain/testutil/network"
"github.com/wormhole-foundation/wormchain/x/wormhole/client/cli"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
// Prevent strconv unused error

View File

@ -7,7 +7,7 @@ import (
"github.com/cosmos/cosmos-sdk/client"
// "github.com/cosmos/cosmos-sdk/client/flags"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
// GetTxCmd returns the transaction commands for this module

View File

@ -10,7 +10,7 @@ import (
"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"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
var _ = strconv.Itoa(0)

View File

@ -9,7 +9,7 @@ import (
"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"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
const FlagGuardianSetKeys = "guardian-set-keys"

View File

@ -11,7 +11,7 @@ import (
"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"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
var _ = strconv.Itoa(0)

View File

@ -15,7 +15,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/spf13/cast"
"github.com/spf13/cobra"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
"golang.org/x/crypto/sha3"
)

View File

@ -2,8 +2,8 @@ package client
import (
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"
"github.com/wormhole-foundation/wormchain/x/wormhole/client/cli"
"github.com/wormhole-foundation/wormchain/x/wormhole/client/rest"
)
var GuardianSetUpdateProposalHandler = govclient.NewProposalHandler(cli.NewCmdSubmitGuardianSetUpdateProposal, rest.ProposalGuardianSetUpdateRESTHandler)

View File

@ -10,7 +10,7 @@ import (
"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"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
type (

View File

@ -2,8 +2,8 @@ package wormhole
import (
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"
"github.com/wormhole-foundation/wormchain/x/wormhole/keeper"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
// InitGenesis initializes the capability module's state from a provided genesis

View File

@ -4,9 +4,9 @@ import (
"testing"
"github.com/stretchr/testify/require"
keepertest "github.com/wormhole-foundation/wormhole-chain/testutil/keeper"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
keepertest "github.com/wormhole-foundation/wormchain/testutil/keeper"
"github.com/wormhole-foundation/wormchain/x/wormhole"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
func TestGenesis(t *testing.T) {

View File

@ -9,8 +9,8 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/keeper"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
"github.com/wormhole-foundation/wormchain/x/wormhole/keeper"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
"github.com/wormhole-foundation/wormhole/sdk/vaa"
)

View File

@ -5,8 +5,8 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/keeper"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
"github.com/wormhole-foundation/wormchain/x/wormhole/keeper"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
// NewHandler ...

View File

@ -3,7 +3,7 @@ package keeper
import (
"github.com/cosmos/cosmos-sdk/store/prefix"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
// SetConfig set config in the store

View File

@ -6,9 +6,9 @@ import (
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/wormhole/keeper"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
keepertest "github.com/wormhole-foundation/wormchain/testutil/keeper"
"github.com/wormhole-foundation/wormchain/x/wormhole/keeper"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
func createTestConfig(keeper *keeper.Keeper, ctx sdk.Context) types.Config {

View File

@ -3,7 +3,7 @@ package keeper
import (
"github.com/cosmos/cosmos-sdk/store/prefix"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
// SetConsensusGuardianSetIndex set consensusGuardianSetIndex in the store

View File

@ -6,10 +6,10 @@ import (
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/testutil/nullify"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/keeper"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
keepertest "github.com/wormhole-foundation/wormchain/testutil/keeper"
"github.com/wormhole-foundation/wormchain/testutil/nullify"
"github.com/wormhole-foundation/wormchain/x/wormhole/keeper"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
func createTestConsensusGuardianSetIndex(keeper *keeper.Keeper, ctx sdk.Context) types.ConsensusGuardianSetIndex {

View File

@ -4,7 +4,7 @@ import (
"encoding/hex"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
func (k Keeper) PostMessage(ctx sdk.Context, emitter types.EmitterAddress, nonce uint32, data []byte) error {

View File

@ -1,7 +1,7 @@
package keeper
import (
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
var _ types.QueryServer = Keeper{}

View File

@ -4,7 +4,7 @@ import (
"context"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)

View File

@ -8,8 +8,8 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
keepertest "github.com/wormhole-foundation/wormhole-chain/testutil/keeper"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
keepertest "github.com/wormhole-foundation/wormchain/testutil/keeper"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
func TestConfigQuery(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"context"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)

View File

@ -8,9 +8,9 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
keepertest "github.com/wormhole-foundation/wormhole-chain/testutil/keeper"
"github.com/wormhole-foundation/wormhole-chain/testutil/nullify"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
keepertest "github.com/wormhole-foundation/wormchain/testutil/keeper"
"github.com/wormhole-foundation/wormchain/testutil/nullify"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
func TestConsensusGuardianSetIndexQuery(t *testing.T) {

View File

@ -7,7 +7,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/types/query"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)

View File

@ -10,8 +10,8 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
keepertest "github.com/wormhole-foundation/wormhole-chain/testutil/keeper"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
keepertest "github.com/wormhole-foundation/wormchain/testutil/keeper"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
func TestGuardianSetQuerySingle(t *testing.T) {

View File

@ -6,7 +6,7 @@ import (
"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/wormhole/types"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)

View File

@ -10,9 +10,9 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
keepertest "github.com/wormhole-foundation/wormhole-chain/testutil/keeper"
"github.com/wormhole-foundation/wormhole-chain/testutil/nullify"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
keepertest "github.com/wormhole-foundation/wormchain/testutil/keeper"
"github.com/wormhole-foundation/wormchain/testutil/nullify"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
// Prevent strconv unused error

View File

@ -4,7 +4,7 @@ import (
"context"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)

View File

@ -6,7 +6,7 @@ import (
"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/wormhole/types"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)

View File

@ -10,8 +10,8 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
keepertest "github.com/wormhole-foundation/wormhole-chain/testutil/keeper"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
keepertest "github.com/wormhole-foundation/wormchain/testutil/keeper"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
// Prevent strconv unused error

View File

@ -6,7 +6,7 @@ import (
"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/wormhole/types"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)

View File

@ -10,8 +10,8 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
keepertest "github.com/wormhole-foundation/wormhole-chain/testutil/keeper"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
keepertest "github.com/wormhole-foundation/wormchain/testutil/keeper"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
// Prevent strconv unused error

View File

@ -6,7 +6,7 @@ import (
"github.com/cosmos/cosmos-sdk/store/prefix"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
func (k Keeper) GetLatestGuardianSetIndex(ctx sdk.Context) uint32 {

View File

@ -5,9 +5,9 @@ import (
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/wormhole/keeper"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
keepertest "github.com/wormhole-foundation/wormchain/testutil/keeper"
"github.com/wormhole-foundation/wormchain/x/wormhole/keeper"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
func createNGuardianSet(t *testing.T, keeper *keeper.Keeper, ctx sdk.Context, n int) []types.GuardianSet {

View File

@ -3,7 +3,7 @@ package keeper
import (
"github.com/cosmos/cosmos-sdk/store/prefix"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types"
"github.com/wormhole-foundation/wormchain/x/wormhole/types"
)
// SetGuardianValidator set a specific guardianValidator in the store from its index

Some files were not shown because too many files have changed in this diff Show More