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: with:
go-version: "1.19.0" go-version: "1.19.0"
- run: curl https://get.ignite.com/cli@v0.23.0 | bash && mv ignite /usr/local/bin/ - 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. # Run Go linters, Go tests and other outside-of-Tilt things.
lint-and-tests: 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 WORKDIR /app
COPY ./wormhole_chain/go.mod . COPY ./wormchain/go.mod .
COPY ./wormhole_chain/go.sum . COPY ./wormchain/go.sum .
COPY ./sdk /sdk COPY ./sdk /sdk
RUN go mod download RUN go mod download
COPY ./wormhole_chain . COPY ./wormchain .
EXPOSE 26657 EXPOSE 26657
EXPOSE 26656 EXPOSE 26656
@ -26,8 +26,8 @@ RUN unset GOPATH
RUN make proto -B RUN make proto -B
RUN make client RUN make client
RUN chmod +x /app/build/wormhole-chaind RUN chmod +x /app/build/wormchaind
RUN make validators 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( docker_build(
ref = "wormhole-chaind-image", ref = "wormchaind-image",
context = ".", context = ".",
dockerfile = "./Dockerfile.wormchain", dockerfile = "./Dockerfile.wormchain",
only = [], 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( k8s_resource(
"guardian-validator", "guardian-validator",
@ -753,7 +753,7 @@ k8s_resource(
) )
if secondWormchain: 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( k8s_resource(
"second-validator", "second-validator",

View File

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

View File

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

View File

@ -265,7 +265,7 @@ func init() {
nearRPC = NodeCmd.Flags().String("nearRPC", "", "near RPC URL") nearRPC = NodeCmd.Flags().String("nearRPC", "", "near RPC URL")
nearContract = NodeCmd.Flags().String("nearContract", "", "near contract") 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") wormchainLCD = NodeCmd.Flags().String("wormchainLCD", "", "Path to LCD service root for http calls")
aptosRPC = NodeCmd.Flags().String("aptosRPC", "", "aptos RPC URL") 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() defer c.Close()
// Subscribe transactions which cause EventPostedMessage // Subscribe transactions which cause EventPostedMessage
params := [...]string{"tm.event='Tx' AND certusone.wormholechain.wormhole.EventPostedMessage.sequence EXISTS"} params := [...]string{"tm.event='Tx' AND wormhole_foundation.wormchain.wormhole.EventPostedMessage.sequence EXISTS"}
// alternately, "tm.event='Tx' AND certusone.wormholechain.wormhole.EventPostedMessage.sequence >= 0" // alternately, "tm.event='Tx' AND wormhole_foundation.wormchain.wormhole.EventPostedMessage.sequence >= 0"
command := &clientRequest{ command := &clientRequest{
JSONRPC: "2.0", JSONRPC: "2.0",
Method: "subscribe", Method: "subscribe",
@ -275,7 +275,7 @@ func EventsToMessagePublications(txHash string, events []gjson.Result, logger *z
continue continue
} }
eventType := gjson.Get(event.String(), "type") eventType := gjson.Get(event.String(), "type")
if eventType.String() != "certusone.wormholechain.wormhole.EventPostedMessage" { if eventType.String() != "wormhole_foundation.wormchain.wormhole.EventPostedMessage" {
continue 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}) 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}) 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}) 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}) 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 fi
# Use -exec because of pitfall #1 in http://mywiki.wooledge.org/BashPitfalls # 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 [ -n "$GOFMT_OUTPUT" ]; then
if [ "$GITHUB_ACTION" == "true" ]; then if [ "$GITHUB_ACTION" == "true" ]; then

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -13,15 +13,15 @@ endif
all: client vue validators all: client vue validators
.PHONY: client .PHONY: client
client: build/wormhole-chaind client: build/wormchaind
.PHONY: validators .PHONY: validators
validators: validators:
# These files change when the genesis file changes, so we need to make # These files change when the genesis file changes, so we need to make
# sure to copy them over # sure to copy them over
touch -m $@ touch -m $@
./build/wormhole-chaind --home build/ tendermint unsafe-reset-all ./build/wormchaind --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/ gentx tiltGuardian "0uworm" --chain-id=wormchain --min-self-delegation="0" --keyring-dir=keyring-test
# Copy config to validators/first_validator # Copy config to validators/first_validator
cp build/config/priv_validator_key.json validators/first_validator/config/ cp build/config/priv_validator_key.json validators/first_validator/config/
@ -35,7 +35,7 @@ validators:
mkdir -p validators/second_validator/keyring-test mkdir -p validators/second_validator/keyring-test
cp build/keyring-test/* 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 $@ $< go build -o $@ $<
proto: $(PROTO_FILES) proto: $(PROTO_FILES)
@ -55,7 +55,7 @@ ts-sdk: vue
npm run build --prefix $@ npm run build --prefix $@
.PHONY: run .PHONY: run
run: build/wormhole-chaind run: build/wormchaind
./$< start --home build --log_level="debug" ./$< start --home build --log_level="debug"
.PHONY: test .PHONY: test
@ -68,5 +68,5 @@ bootstrap:
.PHONY: clean .PHONY: clean
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 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/cosmoscmd"
"github.com/tendermint/spm/openapiconsole" "github.com/tendermint/spm/openapiconsole"
"github.com/wormhole-foundation/wormhole-chain/docs" "github.com/wormhole-foundation/wormchain/docs"
wormholemodule "github.com/wormhole-foundation/wormhole-chain/x/wormhole" wormholemodule "github.com/wormhole-foundation/wormchain/x/wormhole"
wormholeclient "github.com/wormhole-foundation/wormhole-chain/x/wormhole/client" wormholeclient "github.com/wormhole-foundation/wormchain/x/wormhole/client"
wormholemodulekeeper "github.com/wormhole-foundation/wormhole-chain/x/wormhole/keeper" wormholemodulekeeper "github.com/wormhole-foundation/wormchain/x/wormhole/keeper"
wormholemoduletypes "github.com/wormhole-foundation/wormhole-chain/x/wormhole/types" wormholemoduletypes "github.com/wormhole-foundation/wormchain/x/wormhole/types"
// this line is used by starport scaffolding # stargate/app/moduleImport // this line is used by starport scaffolding # stargate/app/moduleImport
) )
const ( const (
AccountAddressPrefix = "wormhole" AccountAddressPrefix = "wormhole"
Name = "wormholechain" Name = "wormchain"
) )
// this line is used by starport scaffolding # stargate/wasm/app/enabledProposals // this line is used by starport scaffolding # stargate/wasm/app/enabledProposals

View File

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

View File

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

View File

@ -1,9 +1,26 @@
{ {
"genesis_time": "2022-09-27T22:08:43.044644477Z", "genesis_time": "2022-09-27T22:08:43.044644477Z",
"chain_id": "wormholechain", "chain_id": "wormchain",
"gentxs_dir": "build/config/gentx", "initial_height": "1",
"moniker": "mynode", "consensus_params": {
"node_id": "c3f474217c930af3a4e998c4e52a57cee188ff43", "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": { "app_state": {
"auth": { "auth": {
"params": { "params": {
@ -58,7 +75,7 @@
"supply": [], "supply": [],
"denom_metadata": [ "denom_metadata": [
{ {
"description": "Wormholechain's native test asset", "description": "Wormchain's native test asset",
"denom_units": [ "denom_units": [
{ {
"denom": "utest", "denom": "utest",
@ -77,7 +94,7 @@
"symbol": "TEST" "symbol": "TEST"
}, },
{ {
"description": "Wormholechain's native staking asset", "description": "Wormchain's native staking asset",
"denom_units": [ "denom_units": [
{ {
"denom": "uworm", "denom": "uworm",
@ -164,7 +181,7 @@
} }
} }
], ],
"memo": "c3f474217c930af3a4e998c4e52a57cee188ff43@172.16.14.80:26656", "memo": "d012471401a9132f69a8189998be10da3320e089@10.0.0.2:26656",
"timeout_height": "0", "timeout_height": "0",
"extension_options": [], "extension_options": [],
"non_critical_extension_options": [] "non_critical_extension_options": []
@ -192,7 +209,7 @@
} }
}, },
"signatures": [ "signatures": [
"wksmbgHHl22UKLmZK3AuSIdPxfX5+BPmvhVxHJC3wB5dzE1l0n+qmMxpbEP/wr0Xi0aC/qIszss6VxVoUmiPKw==" "c5Ne3MvUdOC0o4PxqPkieqXMemrCg2VIDwH43v+rDs85sUi4UE0QdIjldzFBeBQXa6dVddKgU6KbZTyh7yc7GA=="
] ]
} }
] ]
@ -305,6 +322,19 @@
}, },
"upgrade": {}, "upgrade": {},
"vesting": {}, "vesting": {},
"wasm": {
"params": {
"code_upload_access": {
"permission": "Everybody",
"address": ""
},
"instantiate_default_permission": "Everybody"
},
"codes": [],
"contracts": [],
"sequences": [],
"gen_msgs": []
},
"wormhole": { "wormhole": {
"config": { "config": {
"chain_id": 3104, "chain_id": 3104,
@ -332,19 +362,6 @@
], ],
"replayProtectionList": [], "replayProtectionList": [],
"sequenceCounterList": [] "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" 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" "github.com/wormhole-foundation/wormchain/app"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/client/cli" "github.com/wormhole-foundation/wormchain/x/wormhole/client/cli"
) )
func main() { func main() {

View File

@ -15,7 +15,7 @@ make
``` ```
This command creates a `build` directory and in particular, the 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. blockchain.
You can start a local development instance by running You can start a local development instance by running
@ -27,7 +27,7 @@ make run
Or equivalently Or equivalently
```shell ```shell
./build/wormhole-chaind --home build ./build/wormchaind --home build
``` ```
If you want to reset the blockchain, just run 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: You can interact with the blockchain by using the go binary:
```shell ```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 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 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"; 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"; import "gogoproto/gogo.proto";

View File

@ -1,7 +1,7 @@
syntax = "proto3"; 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 { message ConsensusGuardianSetIndex {
uint32 index = 1; uint32 index = 1;

View File

@ -1,7 +1,7 @@
syntax = "proto3"; 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{ message EventGuardianSetUpdate{
uint32 old_index = 1; uint32 old_index = 1;

View File

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

View File

@ -1,9 +1,9 @@
syntax = "proto3"; syntax = "proto3";
package wormhole_foundation.wormholechain.wormhole; package wormhole_foundation.wormchain.wormhole;
import "wormhole/guardian_set.proto"; import "wormhole/guardian_set.proto";
import "gogoproto/gogo.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 // GuardianSetUpdateProposal defines a guardian set update governance proposal
message GuardianSetUpdateProposal { message GuardianSetUpdateProposal {

View File

@ -1,7 +1,7 @@
syntax = "proto3"; 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 { message GuardianKey {

View File

@ -1,7 +1,7 @@
syntax = "proto3"; 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"; import "gogoproto/gogo.proto";

View File

@ -1,7 +1,7 @@
syntax = "proto3"; 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 { message GuardianValidator {
bytes guardianKey = 1; bytes guardianKey = 1;

View File

@ -1,5 +1,5 @@
syntax = "proto3"; syntax = "proto3";
package wormhole_foundation.wormholechain.wormhole; package wormhole_foundation.wormchain.wormhole;
import "google/api/annotations.proto"; import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.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 // this line is used by starport scaffolding # 1
import "gogoproto/gogo.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";
// Query defines the gRPC querier service. // Query defines the gRPC querier service.
service Query { service Query {
// Queries a guardianSet by index. // Queries a guardianSet by index.
rpc GuardianSet(QueryGetGuardianSetRequest) returns (QueryGetGuardianSetResponse) { 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. // Queries a list of guardianSet items.
rpc GuardianSetAll(QueryAllGuardianSetRequest) returns (QueryAllGuardianSetResponse) { 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. // Queries a config by index.
rpc Config(QueryGetConfigRequest) returns (QueryGetConfigResponse) { 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. // Queries a replayProtection by index.
rpc ReplayProtection(QueryGetReplayProtectionRequest) returns (QueryGetReplayProtectionResponse) { 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. // Queries a list of replayProtection items.
rpc ReplayProtectionAll(QueryAllReplayProtectionRequest) returns (QueryAllReplayProtectionResponse) { 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. // Queries a sequenceCounter by index.
rpc SequenceCounter(QueryGetSequenceCounterRequest) returns (QueryGetSequenceCounterResponse) { 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. // Queries a list of sequenceCounter items.
rpc SequenceCounterAll(QueryAllSequenceCounterRequest) returns (QueryAllSequenceCounterResponse) { 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. // Queries a ConsensusGuardianSetIndex by index.
rpc ConsensusGuardianSetIndex(QueryGetConsensusGuardianSetIndexRequest) returns (QueryGetConsensusGuardianSetIndexResponse) { 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. // Queries a GuardianValidator by index.
rpc GuardianValidator(QueryGetGuardianValidatorRequest) returns (QueryGetGuardianValidatorResponse) { 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. // Queries a list of GuardianValidator items.
rpc GuardianValidatorAll(QueryAllGuardianValidatorRequest) returns (QueryAllGuardianValidatorResponse) { 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. // Queries a list of LatestGuardianSetIndex items.
rpc LatestGuardianSetIndex(QueryLatestGuardianSetIndexRequest) returns (QueryLatestGuardianSetIndexResponse) { 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 // this line is used by starport scaffolding # 2

View File

@ -1,7 +1,7 @@
syntax = "proto3"; 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"; 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"; syntax = "proto3";
package wormhole_foundation.wormholechain.wormhole; package wormhole_foundation.wormchain.wormhole;
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
// 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/wormhole-foundation/wormhole-chain/x/wormhole/types"; option go_package = "github.com/wormhole-foundation/wormchain/x/wormhole/types";
// Msg defines the Msg service. // Msg defines the Msg service.
service Msg { service Msg {

View File

@ -1,5 +1,5 @@
{ {
"name": "@wormhole-foundation/tests-wormhole-chain", "name": "@wormhole-foundation/tests-wormchain",
"version": "0.0.1", "version": "0.0.1",
"description": "testing project for wormhole chain", "description": "testing project for wormhole chain",
"main": "index.js", "main": "index.js",
@ -15,14 +15,14 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/wormhole-foundation/wormhole-chain.git" "url": "git+https://github.com/wormhole-foundation/wormchain.git"
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"bugs": { "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": { "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",
@ -30,7 +30,7 @@
"@cosmjs/proto-signing": "^0.27.1", "@cosmjs/proto-signing": "^0.27.1",
"@cosmjs/stargate": "^0.27.1", "@cosmjs/stargate": "^0.27.1",
"@cosmjs/tendermint-rpc": "^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", "axios": "^0.26.0",
"bech32": "^2.0.0", "bech32": "^2.0.0",
"elliptic": "^6.5.4", "elliptic": "^6.5.4",

View File

@ -1,5 +1,5 @@
import { expect, jest, test } from "@jest/globals"; 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 { TEST_WALLET_MNEMONIC_1, TEST_WALLET_MNEMONIC_2 } from "../consts";
import { getBalance, sendTokens } from "../utils/walletHelpers"; import { getBalance, sendTokens } from "../utils/walletHelpers";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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/wormhole-foundation/wormhole-chain/app" "github.com/wormhole-foundation/wormchain/app"
) )
type ( type (

View File

@ -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/wormhole-foundation/wormhole-chain/app" "github.com/wormhole-foundation/wormchain/app"
) )
// New creates application instance with in-memory database and disabled logging. // 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", "version": "0.0.1",
"description": "Typescript SDK for interating with the Wormhole chain", "description": "Typescript SDK for interating with the Wormhole chain",
"main": "lib/index.js", "main": "lib/index.js",
@ -10,14 +10,14 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/wormhole-foundation/wormhole-chain.git" "url": "git+https://github.com/wormhole-foundation/wormchain.git"
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"bugs": { "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": { "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",

View File

@ -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/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 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";

View File

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

View File

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

View File

@ -35,10 +35,10 @@ spec:
app: second-validator app: second-validator
spec: spec:
containers: containers:
- name: wormhole-chaind - name: wormchaind
image: wormhole-chaind-image image: wormchaind-image
command: command:
- /app/build/wormhole-chaind - /app/build/wormchaind
- start - start
- --home - --home
- /app/validators/second_validator - /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: 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. - 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 ## Validator Information

View File

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

View File

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

View File

@ -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/wormhole-foundation/wormhole-chain/x/wormhole/types" "github.com/wormhole-foundation/wormchain/x/wormhole/types"
) )
// GetQueryCmd returns the cli query commands for this module // 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"
"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" "github.com/wormhole-foundation/wormchain/x/wormhole/types"
) )
func CmdShowConfig() *cobra.Command { func CmdShowConfig() *cobra.Command {

View File

@ -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/wormhole-foundation/wormhole-chain/testutil/network" "github.com/wormhole-foundation/wormchain/testutil/network"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/client/cli" "github.com/wormhole-foundation/wormchain/x/wormhole/client/cli"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types" "github.com/wormhole-foundation/wormchain/x/wormhole/types"
) )
func networkWithConfigObjects(t *testing.T) (*network.Network, types.Config) { 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"
"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" "github.com/wormhole-foundation/wormchain/x/wormhole/types"
) )
func CmdShowConsensusGuardianSetIndex() *cobra.Command { func CmdShowConsensusGuardianSetIndex() *cobra.Command {

View File

@ -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/wormhole-foundation/wormhole-chain/testutil/network" "github.com/wormhole-foundation/wormchain/testutil/network"
"github.com/wormhole-foundation/wormhole-chain/testutil/nullify" "github.com/wormhole-foundation/wormchain/testutil/nullify"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/client/cli" "github.com/wormhole-foundation/wormchain/x/wormhole/client/cli"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types" "github.com/wormhole-foundation/wormchain/x/wormhole/types"
) )
func networkWithConsensusGuardianSetIndexObjects(t *testing.T) (*network.Network, types.ConsensusGuardianSetIndex) { 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"
"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" "github.com/wormhole-foundation/wormchain/x/wormhole/types"
) )
func CmdListGuardianSet() *cobra.Command { func CmdListGuardianSet() *cobra.Command {

View File

@ -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/wormhole-foundation/wormhole-chain/testutil/network" "github.com/wormhole-foundation/wormchain/testutil/network"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/client/cli" "github.com/wormhole-foundation/wormchain/x/wormhole/client/cli"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types" "github.com/wormhole-foundation/wormchain/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) {

View File

@ -8,7 +8,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/spf13/cobra" "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 { func CmdListGuardianValidator() *cobra.Command {

View File

@ -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/wormhole-foundation/wormhole-chain/testutil/network" "github.com/wormhole-foundation/wormchain/testutil/network"
"github.com/wormhole-foundation/wormhole-chain/testutil/nullify" "github.com/wormhole-foundation/wormchain/testutil/nullify"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/client/cli" "github.com/wormhole-foundation/wormchain/x/wormhole/client/cli"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types" "github.com/wormhole-foundation/wormchain/x/wormhole/types"
) )
// Prevent strconv unused error // Prevent strconv unused error

View File

@ -6,7 +6,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/spf13/cobra" "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) var _ = strconv.Itoa(0)

View File

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

View File

@ -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/wormhole-foundation/wormhole-chain/testutil/network" "github.com/wormhole-foundation/wormchain/testutil/network"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/client/cli" "github.com/wormhole-foundation/wormchain/x/wormhole/client/cli"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types" "github.com/wormhole-foundation/wormchain/x/wormhole/types"
) )
// Prevent strconv unused error // Prevent strconv unused error

View File

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

View File

@ -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/wormhole-foundation/wormhole-chain/testutil/network" "github.com/wormhole-foundation/wormchain/testutil/network"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/client/cli" "github.com/wormhole-foundation/wormchain/x/wormhole/client/cli"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types" "github.com/wormhole-foundation/wormchain/x/wormhole/types"
) )
// Prevent strconv unused error // Prevent strconv unused error

View File

@ -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/wormhole-foundation/wormhole-chain/x/wormhole/types" "github.com/wormhole-foundation/wormchain/x/wormhole/types"
) )
// GetTxCmd returns the transaction commands for this module // 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"
"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" "github.com/wormhole-foundation/wormchain/x/wormhole/types"
) )
var _ = strconv.Itoa(0) var _ = strconv.Itoa(0)

View File

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

View File

@ -15,7 +15,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/spf13/cast" "github.com/spf13/cast"
"github.com/spf13/cobra" "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" "golang.org/x/crypto/sha3"
) )

View File

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

View File

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

View File

@ -2,8 +2,8 @@ package wormhole
import ( import (
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/wormchain/x/wormhole/keeper"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types" "github.com/wormhole-foundation/wormchain/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

View File

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

View File

@ -9,8 +9,8 @@ import (
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"
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/keeper" "github.com/wormhole-foundation/wormchain/x/wormhole/keeper"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types" "github.com/wormhole-foundation/wormchain/x/wormhole/types"
"github.com/wormhole-foundation/wormhole/sdk/vaa" "github.com/wormhole-foundation/wormhole/sdk/vaa"
) )

View File

@ -5,8 +5,8 @@ import (
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/wormhole/keeper" "github.com/wormhole-foundation/wormchain/x/wormhole/keeper"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types" "github.com/wormhole-foundation/wormchain/x/wormhole/types"
) )
// NewHandler ... // NewHandler ...

View File

@ -3,7 +3,7 @@ package keeper
import ( import (
"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/wormhole/types" "github.com/wormhole-foundation/wormchain/x/wormhole/types"
) )
// SetConfig set config in the store // SetConfig set config in the store

View File

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

View File

@ -3,7 +3,7 @@ package keeper
import ( import (
"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/wormhole/types" "github.com/wormhole-foundation/wormchain/x/wormhole/types"
) )
// SetConsensusGuardianSetIndex set consensusGuardianSetIndex in the store // SetConsensusGuardianSetIndex set consensusGuardianSetIndex in the store

View File

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

View File

@ -4,7 +4,7 @@ import (
"encoding/hex" "encoding/hex"
sdk "github.com/cosmos/cosmos-sdk/types" 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 { func (k Keeper) PostMessage(ctx sdk.Context, emitter types.EmitterAddress, nonce uint32, data []byte) error {

View File

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

View File

@ -4,7 +4,7 @@ import (
"context" "context"
sdk "github.com/cosmos/cosmos-sdk/types" 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/codes"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
) )

View File

@ -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/wormhole-foundation/wormhole-chain/testutil/keeper" keepertest "github.com/wormhole-foundation/wormchain/testutil/keeper"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types" "github.com/wormhole-foundation/wormchain/x/wormhole/types"
) )
func TestConfigQuery(t *testing.T) { func TestConfigQuery(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"context" "context"
sdk "github.com/cosmos/cosmos-sdk/types" 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/codes"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
) )

View File

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

View File

@ -7,7 +7,7 @@ import (
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/cosmos/cosmos-sdk/types/query" "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/codes"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
) )

View File

@ -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/wormhole-foundation/wormhole-chain/testutil/keeper" keepertest "github.com/wormhole-foundation/wormchain/testutil/keeper"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types" "github.com/wormhole-foundation/wormchain/x/wormhole/types"
) )
func TestGuardianSetQuerySingle(t *testing.T) { func TestGuardianSetQuerySingle(t *testing.T) {

View File

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

View File

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

View File

@ -4,7 +4,7 @@ import (
"context" "context"
sdk "github.com/cosmos/cosmos-sdk/types" 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/codes"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
) )

View File

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

View File

@ -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/wormhole-foundation/wormhole-chain/testutil/keeper" keepertest "github.com/wormhole-foundation/wormchain/testutil/keeper"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types" "github.com/wormhole-foundation/wormchain/x/wormhole/types"
) )
// Prevent strconv unused error // Prevent strconv unused error

View File

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

View File

@ -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/wormhole-foundation/wormhole-chain/testutil/keeper" keepertest "github.com/wormhole-foundation/wormchain/testutil/keeper"
"github.com/wormhole-foundation/wormhole-chain/x/wormhole/types" "github.com/wormhole-foundation/wormchain/x/wormhole/types"
) )
// Prevent strconv unused error // Prevent strconv unused error

View File

@ -6,7 +6,7 @@ import (
"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/wormhole/types" "github.com/wormhole-foundation/wormchain/x/wormhole/types"
) )
func (k Keeper) GetLatestGuardianSetIndex(ctx sdk.Context) uint32 { func (k Keeper) GetLatestGuardianSetIndex(ctx sdk.Context) uint32 {

View File

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

View File

@ -3,7 +3,7 @@ package keeper
import ( import (
"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/wormhole/types" "github.com/wormhole-foundation/wormchain/x/wormhole/types"
) )
// SetGuardianValidator set a specific guardianValidator in the store from its index // 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