node: rename bridge/ to node/
Calling guardiand a bridge dates back to v1 and no longer makes sense. Change-Id: I27d24a5d7a64c3e37d6a5ce9c402c6248ad9c59e
This commit is contained in:
parent
a8a8cbe183
commit
e98463cfe3
8
Makefile
8
Makefile
|
@ -24,11 +24,11 @@ install:
|
||||||
generate: dirs
|
generate: dirs
|
||||||
./generate-protos.sh
|
./generate-protos.sh
|
||||||
|
|
||||||
.PHONY: bridge
|
.PHONY: node
|
||||||
bridge: $(BIN)/guardiand
|
node: $(BIN)/guardiand
|
||||||
|
|
||||||
.PHONY: $(BIN)/guardiand
|
.PHONY: $(BIN)/guardiand
|
||||||
$(BIN)/guardiand: dirs generate
|
$(BIN)/guardiand: dirs generate
|
||||||
cd bridge && go build -ldflags "-X github.com/certusone/wormhole/bridge/pkg/version.version=${VERSION}" \
|
cd node && go build -ldflags "-X github.com/certusone/wormhole/node/pkg/version.version=${VERSION}" \
|
||||||
-mod=readonly -o ../$(BIN)/guardiand \
|
-mod=readonly -o ../$(BIN)/guardiand \
|
||||||
github.com/certusone/wormhole/bridge
|
github.com/certusone/wormhole/node
|
||||||
|
|
7
Tiltfile
7
Tiltfile
|
@ -24,7 +24,6 @@ config.define_string("num", False, "Number of guardian nodes to run")
|
||||||
#
|
#
|
||||||
config.define_string("namespace", False, "Kubernetes namespace to use")
|
config.define_string("namespace", False, "Kubernetes namespace to use")
|
||||||
|
|
||||||
|
|
||||||
# These arguments will enable writing Guardian events to a cloud BigTable instance.
|
# These arguments will enable writing Guardian events to a cloud BigTable instance.
|
||||||
# Writing to a cloud BigTable is optional. These arguments are not required to run the devnet.
|
# Writing to a cloud BigTable is optional. These arguments are not required to run the devnet.
|
||||||
config.define_string("gcpProject", False, "GCP project ID for BigTable persistence")
|
config.define_string("gcpProject", False, "GCP project ID for BigTable persistence")
|
||||||
|
@ -73,8 +72,8 @@ k8s_yaml_with_ns(
|
||||||
|
|
||||||
docker_build(
|
docker_build(
|
||||||
ref = "guardiand-image",
|
ref = "guardiand-image",
|
||||||
context = "bridge",
|
context = "node",
|
||||||
dockerfile = "bridge/Dockerfile",
|
dockerfile = "node/Dockerfile",
|
||||||
)
|
)
|
||||||
|
|
||||||
def build_bridge_yaml():
|
def build_bridge_yaml():
|
||||||
|
@ -214,7 +213,7 @@ build_cloud_function(
|
||||||
k8s_yaml_with_ns("devnet/bigtable.yaml")
|
k8s_yaml_with_ns("devnet/bigtable.yaml")
|
||||||
|
|
||||||
k8s_resource("bigtable-emulator", port_forwards = [
|
k8s_resource("bigtable-emulator", port_forwards = [
|
||||||
port_forward(8086, name = "BigTable clients [:8086]")
|
port_forward(8086, name = "BigTable clients [:8086]"),
|
||||||
])
|
])
|
||||||
k8s_resource(
|
k8s_resource(
|
||||||
"bigtable-readrow",
|
"bigtable-readrow",
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
package main
|
|
||||||
|
|
||||||
import "github.com/certusone/wormhole/bridge/cmd"
|
|
||||||
|
|
||||||
func main() {
|
|
||||||
cmd.Execute()
|
|
||||||
}
|
|
|
@ -1,17 +1,17 @@
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
plugins:
|
plugins:
|
||||||
- name: go
|
- name: go
|
||||||
out: bridge/pkg/proto
|
out: node/pkg/proto
|
||||||
path: tools/bin/protoc-gen-go
|
path: tools/bin/protoc-gen-go
|
||||||
opt:
|
opt:
|
||||||
- paths=source_relative
|
- paths=source_relative
|
||||||
- name: go-grpc
|
- name: go-grpc
|
||||||
out: bridge/pkg/proto
|
out: node/pkg/proto
|
||||||
path: tools/bin/protoc-gen-go-grpc
|
path: tools/bin/protoc-gen-go-grpc
|
||||||
opt:
|
opt:
|
||||||
- paths=source_relative
|
- paths=source_relative
|
||||||
- name: grpc-gateway
|
- name: grpc-gateway
|
||||||
out: bridge/pkg/proto
|
out: node/pkg/proto
|
||||||
path: tools/bin/protoc-gen-grpc-gateway
|
path: tools/bin/protoc-gen-grpc-gateway
|
||||||
opt:
|
opt:
|
||||||
- paths=source_relative
|
- paths=source_relative
|
||||||
|
|
|
@ -3,9 +3,9 @@ module github.com/certusone/wormhole/clients/eth
|
||||||
go 1.16
|
go 1.16
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/certusone/wormhole/bridge v0.0.0-20210722131135-a191017d22d0
|
github.com/certusone/wormhole/node v0.0.0-20210722131135-a191017d22d0
|
||||||
github.com/ethereum/go-ethereum v1.10.6
|
github.com/ethereum/go-ethereum v1.10.6
|
||||||
github.com/spf13/cobra v1.1.1
|
github.com/spf13/cobra v1.1.1
|
||||||
)
|
)
|
||||||
|
|
||||||
replace github.com/certusone/wormhole/bridge => ../../bridge
|
replace github.com/certusone/wormhole/node => ../../bridge
|
||||||
|
|
|
@ -3,8 +3,8 @@ package main
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/ethereum/abi"
|
"github.com/certusone/wormhole/node/pkg/ethereum/abi"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/core/types"
|
"github.com/ethereum/go-ethereum/core/types"
|
||||||
|
|
|
@ -108,7 +108,7 @@ git checkout v2.0.x
|
||||||
Then, compile the release binary as an unprivileged build user:
|
Then, compile the release binary as an unprivileged build user:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
make bridge
|
make node
|
||||||
```
|
```
|
||||||
|
|
||||||
You'll end up with a `guardiand` binary in `build/`.
|
You'll end up with a `guardiand` binary in `build/`.
|
||||||
|
@ -128,7 +128,7 @@ to disk. Please create a GitHub issue if this extra capability represents an ope
|
||||||
To generate a guardian key, install guardiand first. If you generate the key on a separate machine, you may want to
|
To generate a guardian key, install guardiand first. If you generate the key on a separate machine, you may want to
|
||||||
compile guardiand only without installing it:
|
compile guardiand only without installing it:
|
||||||
|
|
||||||
make bridge
|
make node
|
||||||
sudo setcap cap_ipc_lock=+ep ./build/bin/guardiand
|
sudo setcap cap_ipc_lock=+ep ./build/bin/guardiand
|
||||||
|
|
||||||
Otherwise, use the same guardiand binary that you compiled using the regular instructions above.
|
Otherwise, use the same guardiand binary that you compiled using the regular instructions above.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Regenerate bridge/pkg/ethereum/abi using a running eth-devnet's state.
|
# Regenerate node/pkg/ethereum/abi using a running eth-devnet's state.
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
(
|
(
|
||||||
|
@ -15,7 +15,7 @@ function gen() {
|
||||||
|
|
||||||
kubectl exec -c tests eth-devnet-0 -- cat abigenBindings/abi/${name}.abi | \
|
kubectl exec -c tests eth-devnet-0 -- cat abigenBindings/abi/${name}.abi | \
|
||||||
docker run --rm -i localhost/certusone/wormhole-abigen:latest /bin/abigen --abi - --pkg ${pkg} > \
|
docker run --rm -i localhost/certusone/wormhole-abigen:latest /bin/abigen --abi - --pkg ${pkg} > \
|
||||||
bridge/pkg/ethereum/${pkg}/abi.go
|
node/pkg/ethereum/${pkg}/abi.go
|
||||||
}
|
}
|
||||||
|
|
||||||
gen Wormhole abi
|
gen Wormhole abi
|
||||||
|
|
|
@ -7,9 +7,9 @@ set -euo pipefail
|
||||||
)
|
)
|
||||||
|
|
||||||
# TODO(leo): remove after a while
|
# TODO(leo): remove after a while
|
||||||
rm -rf third_party/googleapis
|
rm -rf bridge
|
||||||
|
|
||||||
rm -rf bridge/pkg/proto
|
rm -rf node/pkg/proto
|
||||||
|
|
||||||
tools/bin/buf lint
|
tools/bin/buf lint
|
||||||
tools/bin/buf generate
|
tools/bin/buf generate
|
||||||
|
|
|
@ -11,6 +11,6 @@ RUN --mount=type=cache,target=/root/.cache --mount=type=cache,target=/go \
|
||||||
ADD . .
|
ADD . .
|
||||||
|
|
||||||
RUN --mount=type=cache,target=/root/.cache --mount=type=cache,target=/go \
|
RUN --mount=type=cache,target=/root/.cache --mount=type=cache,target=/go \
|
||||||
go build -race -gcflags="all=-N -l" -mod=readonly -o /guardiand github.com/certusone/wormhole/bridge
|
go build -race -gcflags="all=-N -l" -mod=readonly -o /guardiand github.com/certusone/wormhole/node
|
||||||
|
|
||||||
ENTRYPOINT /guardiand
|
ENTRYPOINT /guardiand
|
|
@ -2,7 +2,7 @@ package debug
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
"github.com/davecgh/go-spew/spew"
|
"github.com/davecgh/go-spew/spew"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"log"
|
"log"
|
|
@ -3,7 +3,7 @@ package guardiand
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
publicrpcv1 "github.com/certusone/wormhole/bridge/pkg/proto/publicrpc/v1"
|
publicrpcv1 "github.com/certusone/wormhole/node/pkg/proto/publicrpc/v1"
|
||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
|
@ -14,7 +14,7 @@ import (
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"google.golang.org/protobuf/encoding/prototext"
|
"google.golang.org/protobuf/encoding/prototext"
|
||||||
|
|
||||||
nodev1 "github.com/certusone/wormhole/bridge/pkg/proto/node/v1"
|
nodev1 "github.com/certusone/wormhole/node/pkg/proto/node/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
|
@ -3,8 +3,8 @@ package guardiand
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
publicrpcv1 "github.com/certusone/wormhole/bridge/pkg/proto/publicrpc/v1"
|
publicrpcv1 "github.com/certusone/wormhole/node/pkg/proto/publicrpc/v1"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/db"
|
"github.com/certusone/wormhole/node/pkg/db"
|
||||||
publicrpcv1 "github.com/certusone/wormhole/bridge/pkg/proto/publicrpc/v1"
|
publicrpcv1 "github.com/certusone/wormhole/node/pkg/proto/publicrpc/v1"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/publicrpc"
|
"github.com/certusone/wormhole/node/pkg/publicrpc"
|
||||||
grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware"
|
grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware"
|
||||||
grpc_zap "github.com/grpc-ecosystem/go-grpc-middleware/logging/zap"
|
grpc_zap "github.com/grpc-ecosystem/go-grpc-middleware/logging/zap"
|
||||||
grpc_ctxtags "github.com/grpc-ecosystem/go-grpc-middleware/tags"
|
grpc_ctxtags "github.com/grpc-ecosystem/go-grpc-middleware/tags"
|
||||||
|
@ -22,10 +22,10 @@ import (
|
||||||
"google.golang.org/grpc/codes"
|
"google.golang.org/grpc/codes"
|
||||||
"google.golang.org/grpc/status"
|
"google.golang.org/grpc/status"
|
||||||
|
|
||||||
"github.com/certusone/wormhole/bridge/pkg/common"
|
"github.com/certusone/wormhole/node/pkg/common"
|
||||||
nodev1 "github.com/certusone/wormhole/bridge/pkg/proto/node/v1"
|
nodev1 "github.com/certusone/wormhole/node/pkg/proto/node/v1"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/supervisor"
|
"github.com/certusone/wormhole/node/pkg/supervisor"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
)
|
)
|
||||||
|
|
||||||
type nodePrivilegedService struct {
|
type nodePrivilegedService struct {
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"google.golang.org/protobuf/encoding/prototext"
|
"google.golang.org/protobuf/encoding/prototext"
|
||||||
|
|
||||||
"github.com/certusone/wormhole/bridge/pkg/devnet"
|
"github.com/certusone/wormhole/node/pkg/devnet"
|
||||||
nodev1 "github.com/certusone/wormhole/bridge/pkg/proto/node/v1"
|
nodev1 "github.com/certusone/wormhole/node/pkg/proto/node/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
var setUpdateNumGuardians *int
|
var setUpdateNumGuardians *int
|
|
@ -1,7 +1,7 @@
|
||||||
package guardiand
|
package guardiand
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"google.golang.org/protobuf/encoding/prototext"
|
"google.golang.org/protobuf/encoding/prototext"
|
||||||
|
|
||||||
nodev1 "github.com/certusone/wormhole/bridge/pkg/proto/node/v1"
|
nodev1 "github.com/certusone/wormhole/node/pkg/proto/node/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
var AdminClientGovernanceVAAVerifyCmd = &cobra.Command{
|
var AdminClientGovernanceVAAVerifyCmd = &cobra.Command{
|
|
@ -10,7 +10,7 @@ import (
|
||||||
"path"
|
"path"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"github.com/certusone/wormhole/bridge/pkg/db"
|
"github.com/certusone/wormhole/node/pkg/db"
|
||||||
"github.com/gagliardetto/solana-go/rpc"
|
"github.com/gagliardetto/solana-go/rpc"
|
||||||
|
|
||||||
solana_types "github.com/gagliardetto/solana-go"
|
solana_types "github.com/gagliardetto/solana-go"
|
||||||
|
@ -25,19 +25,19 @@ import (
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"golang.org/x/sys/unix"
|
"golang.org/x/sys/unix"
|
||||||
|
|
||||||
"github.com/certusone/wormhole/bridge/pkg/common"
|
"github.com/certusone/wormhole/node/pkg/common"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/devnet"
|
"github.com/certusone/wormhole/node/pkg/devnet"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/ethereum"
|
"github.com/certusone/wormhole/node/pkg/ethereum"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/p2p"
|
"github.com/certusone/wormhole/node/pkg/p2p"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/processor"
|
"github.com/certusone/wormhole/node/pkg/processor"
|
||||||
gossipv1 "github.com/certusone/wormhole/bridge/pkg/proto/gossip/v1"
|
gossipv1 "github.com/certusone/wormhole/node/pkg/proto/gossip/v1"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/readiness"
|
"github.com/certusone/wormhole/node/pkg/readiness"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/reporter"
|
"github.com/certusone/wormhole/node/pkg/reporter"
|
||||||
solana "github.com/certusone/wormhole/bridge/pkg/solana"
|
solana "github.com/certusone/wormhole/node/pkg/solana"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/supervisor"
|
"github.com/certusone/wormhole/node/pkg/supervisor"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
|
|
||||||
"github.com/certusone/wormhole/bridge/pkg/terra"
|
"github.com/certusone/wormhole/node/pkg/terra"
|
||||||
|
|
||||||
ipfslog "github.com/ipfs/go-log/v2"
|
ipfslog "github.com/ipfs/go-log/v2"
|
||||||
)
|
)
|
|
@ -14,8 +14,8 @@ import (
|
||||||
"golang.org/x/crypto/openpgp/armor"
|
"golang.org/x/crypto/openpgp/armor"
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
|
|
||||||
"github.com/certusone/wormhole/bridge/pkg/devnet"
|
"github.com/certusone/wormhole/node/pkg/devnet"
|
||||||
nodev1 "github.com/certusone/wormhole/bridge/pkg/proto/node/v1"
|
nodev1 "github.com/certusone/wormhole/node/pkg/proto/node/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
var keyDescription *string
|
var keyDescription *string
|
|
@ -2,11 +2,11 @@ package guardiand
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/common"
|
"github.com/certusone/wormhole/node/pkg/common"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/db"
|
"github.com/certusone/wormhole/node/pkg/db"
|
||||||
publicrpcv1 "github.com/certusone/wormhole/bridge/pkg/proto/publicrpc/v1"
|
publicrpcv1 "github.com/certusone/wormhole/node/pkg/proto/publicrpc/v1"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/publicrpc"
|
"github.com/certusone/wormhole/node/pkg/publicrpc"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/supervisor"
|
"github.com/certusone/wormhole/node/pkg/supervisor"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"net"
|
"net"
|
|
@ -3,8 +3,8 @@ package guardiand
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/proto/publicrpc/v1"
|
"github.com/certusone/wormhole/node/pkg/proto/publicrpc/v1"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/supervisor"
|
"github.com/certusone/wormhole/node/pkg/supervisor"
|
||||||
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
|
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
|
||||||
"github.com/improbable-eng/grpc-web/go/grpcweb"
|
"github.com/improbable-eng/grpc-web/go/grpcweb"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
|
@ -2,8 +2,8 @@ package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/certusone/wormhole/bridge/cmd/debug"
|
"github.com/certusone/wormhole/node/cmd/debug"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/version"
|
"github.com/certusone/wormhole/node/pkg/version"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
@ -11,7 +11,7 @@ import (
|
||||||
homedir "github.com/mitchellh/go-homedir"
|
homedir "github.com/mitchellh/go-homedir"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"github.com/certusone/wormhole/bridge/cmd/guardiand"
|
"github.com/certusone/wormhole/node/cmd/guardiand"
|
||||||
)
|
)
|
||||||
|
|
||||||
var cfgFile string
|
var cfgFile string
|
|
@ -1,4 +1,4 @@
|
||||||
module github.com/certusone/wormhole/bridge
|
module github.com/certusone/wormhole/node
|
||||||
|
|
||||||
go 1.16
|
go 1.16
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import "github.com/certusone/wormhole/node/cmd"
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
cmd.Execute()
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
package common
|
package common
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
|
@ -2,7 +2,7 @@ package common
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
gossipv1 "github.com/certusone/wormhole/bridge/pkg/proto/gossip/v1"
|
gossipv1 "github.com/certusone/wormhole/node/pkg/proto/gossip/v1"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/libp2p/go-libp2p-core/peer"
|
"github.com/libp2p/go-libp2p-core/peer"
|
||||||
"sync"
|
"sync"
|
|
@ -1,6 +1,6 @@
|
||||||
package common
|
package common
|
||||||
|
|
||||||
import "github.com/certusone/wormhole/bridge/pkg/readiness"
|
import "github.com/certusone/wormhole/node/pkg/readiness"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
ReadinessEthSyncing readiness.Component = "ethSyncing"
|
ReadinessEthSyncing readiness.Component = "ethSyncing"
|
|
@ -3,7 +3,7 @@ package db
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
"github.com/dgraph-io/badger/v3"
|
"github.com/dgraph-io/badger/v3"
|
||||||
)
|
)
|
||||||
|
|
|
@ -11,7 +11,7 @@ import (
|
||||||
|
|
||||||
hdwallet "github.com/miguelmota/go-ethereum-hdwallet"
|
hdwallet "github.com/miguelmota/go-ethereum-hdwallet"
|
||||||
|
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
|
@ -12,9 +12,9 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/ethclient"
|
"github.com/ethereum/go-ethereum/ethclient"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/certusone/wormhole/bridge/pkg/ethereum/abi"
|
"github.com/certusone/wormhole/node/pkg/ethereum/abi"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/supervisor"
|
"github.com/certusone/wormhole/node/pkg/supervisor"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DevnetGuardianSetVSS returns a VAA signed by guardian-0 that adds all n validators.
|
// DevnetGuardianSetVSS returns a VAA signed by guardian-0 that adds all n validators.
|
|
@ -1,7 +1,7 @@
|
||||||
package ethereum
|
package ethereum
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,8 +3,8 @@ package ethereum
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/p2p"
|
"github.com/certusone/wormhole/node/pkg/p2p"
|
||||||
gossipv1 "github.com/certusone/wormhole/bridge/pkg/proto/gossip/v1"
|
gossipv1 "github.com/certusone/wormhole/node/pkg/proto/gossip/v1"
|
||||||
"github.com/prometheus/client_golang/prometheus/promauto"
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
||||||
"math/big"
|
"math/big"
|
||||||
"sync"
|
"sync"
|
||||||
|
@ -18,11 +18,11 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/ethclient"
|
"github.com/ethereum/go-ethereum/ethclient"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/certusone/wormhole/bridge/pkg/common"
|
"github.com/certusone/wormhole/node/pkg/common"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/ethereum/abi"
|
"github.com/certusone/wormhole/node/pkg/ethereum/abi"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/readiness"
|
"github.com/certusone/wormhole/node/pkg/readiness"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/supervisor"
|
"github.com/certusone/wormhole/node/pkg/supervisor"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
|
@ -1,8 +1,8 @@
|
||||||
package p2p
|
package p2p
|
||||||
|
|
||||||
import (
|
import (
|
||||||
gossipv1 "github.com/certusone/wormhole/bridge/pkg/proto/gossip/v1"
|
gossipv1 "github.com/certusone/wormhole/node/pkg/proto/gossip/v1"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/libp2p/go-libp2p-core/peer"
|
"github.com/libp2p/go-libp2p-core/peer"
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
|
@ -5,9 +5,9 @@ import (
|
||||||
"crypto/ecdsa"
|
"crypto/ecdsa"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
bridge_common "github.com/certusone/wormhole/bridge/pkg/common"
|
bridge_common "github.com/certusone/wormhole/node/pkg/common"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/version"
|
"github.com/certusone/wormhole/node/pkg/version"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
ethcrypto "github.com/ethereum/go-ethereum/crypto"
|
ethcrypto "github.com/ethereum/go-ethereum/crypto"
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
|
@ -31,8 +31,8 @@ import (
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
|
|
||||||
gossipv1 "github.com/certusone/wormhole/bridge/pkg/proto/gossip/v1"
|
gossipv1 "github.com/certusone/wormhole/node/pkg/proto/gossip/v1"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/supervisor"
|
"github.com/certusone/wormhole/node/pkg/supervisor"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
|
@ -1,8 +1,8 @@
|
||||||
package p2p
|
package p2p
|
||||||
|
|
||||||
import (
|
import (
|
||||||
gossipv1 "github.com/certusone/wormhole/bridge/pkg/proto/gossip/v1"
|
gossipv1 "github.com/certusone/wormhole/node/pkg/proto/gossip/v1"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
"sync"
|
"sync"
|
||||||
)
|
)
|
||||||
|
|
|
@ -10,8 +10,8 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
|
|
||||||
gossipv1 "github.com/certusone/wormhole/bridge/pkg/proto/gossip/v1"
|
gossipv1 "github.com/certusone/wormhole/node/pkg/proto/gossip/v1"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
|
@ -2,7 +2,7 @@ package processor
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/common"
|
"github.com/certusone/wormhole/node/pkg/common"
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
"github.com/prometheus/client_golang/prometheus/promauto"
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
||||||
"time"
|
"time"
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/certusone/wormhole/bridge/pkg/supervisor"
|
"github.com/certusone/wormhole/node/pkg/supervisor"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
|
@ -10,10 +10,10 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/certusone/wormhole/bridge/pkg/common"
|
"github.com/certusone/wormhole/node/pkg/common"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/reporter"
|
"github.com/certusone/wormhole/node/pkg/reporter"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/supervisor"
|
"github.com/certusone/wormhole/node/pkg/supervisor"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"fmt"
|
"fmt"
|
||||||
bridge_common "github.com/certusone/wormhole/bridge/pkg/common"
|
bridge_common "github.com/certusone/wormhole/node/pkg/common"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/reporter"
|
"github.com/certusone/wormhole/node/pkg/reporter"
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
"github.com/prometheus/client_golang/prometheus/promauto"
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
||||||
"time"
|
"time"
|
||||||
|
@ -14,8 +14,8 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
gossipv1 "github.com/certusone/wormhole/bridge/pkg/proto/gossip/v1"
|
gossipv1 "github.com/certusone/wormhole/node/pkg/proto/gossip/v1"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
|
@ -5,17 +5,17 @@ import (
|
||||||
"crypto/ecdsa"
|
"crypto/ecdsa"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/certusone/wormhole/bridge/pkg/db"
|
"github.com/certusone/wormhole/node/pkg/db"
|
||||||
|
|
||||||
ethcommon "github.com/ethereum/go-ethereum/common"
|
ethcommon "github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/certusone/wormhole/bridge/pkg/common"
|
"github.com/certusone/wormhole/node/pkg/common"
|
||||||
gossipv1 "github.com/certusone/wormhole/bridge/pkg/proto/gossip/v1"
|
gossipv1 "github.com/certusone/wormhole/node/pkg/proto/gossip/v1"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/reporter"
|
"github.com/certusone/wormhole/node/pkg/reporter"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/supervisor"
|
"github.com/certusone/wormhole/node/pkg/supervisor"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
|
@ -4,10 +4,10 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/common"
|
"github.com/certusone/wormhole/node/pkg/common"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/db"
|
"github.com/certusone/wormhole/node/pkg/db"
|
||||||
publicrpcv1 "github.com/certusone/wormhole/bridge/pkg/proto/publicrpc/v1"
|
publicrpcv1 "github.com/certusone/wormhole/node/pkg/proto/publicrpc/v1"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/grpc/codes"
|
"google.golang.org/grpc/codes"
|
||||||
"google.golang.org/grpc/status"
|
"google.golang.org/grpc/status"
|
|
@ -6,7 +6,7 @@ import (
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
)
|
)
|
|
@ -7,8 +7,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/certusone/wormhole/bridge/pkg/supervisor"
|
"github.com/certusone/wormhole/node/pkg/supervisor"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/api/option"
|
"google.golang.org/api/option"
|
||||||
|
|
|
@ -3,12 +3,12 @@ package solana
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/common"
|
"github.com/certusone/wormhole/node/pkg/common"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/p2p"
|
"github.com/certusone/wormhole/node/pkg/p2p"
|
||||||
gossipv1 "github.com/certusone/wormhole/bridge/pkg/proto/gossip/v1"
|
gossipv1 "github.com/certusone/wormhole/node/pkg/proto/gossip/v1"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/readiness"
|
"github.com/certusone/wormhole/node/pkg/readiness"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/supervisor"
|
"github.com/certusone/wormhole/node/pkg/supervisor"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
eth_common "github.com/ethereum/go-ethereum/common"
|
eth_common "github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/gagliardetto/solana-go"
|
"github.com/gagliardetto/solana-go"
|
||||||
"github.com/gagliardetto/solana-go/rpc"
|
"github.com/gagliardetto/solana-go/rpc"
|
|
@ -11,7 +11,7 @@ import (
|
||||||
"github.com/terra-project/terra.go/msg"
|
"github.com/terra-project/terra.go/msg"
|
||||||
"github.com/terra-project/terra.go/tx"
|
"github.com/terra-project/terra.go/tx"
|
||||||
|
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
)
|
)
|
||||||
|
|
||||||
type submitVAAMsg struct {
|
type submitVAAMsg struct {
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/p2p"
|
"github.com/certusone/wormhole/node/pkg/p2p"
|
||||||
gossipv1 "github.com/certusone/wormhole/bridge/pkg/proto/gossip/v1"
|
gossipv1 "github.com/certusone/wormhole/node/pkg/proto/gossip/v1"
|
||||||
"github.com/prometheus/client_golang/prometheus/promauto"
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
@ -15,10 +15,10 @@ import (
|
||||||
|
|
||||||
eth_common "github.com/ethereum/go-ethereum/common"
|
eth_common "github.com/ethereum/go-ethereum/common"
|
||||||
|
|
||||||
"github.com/certusone/wormhole/bridge/pkg/common"
|
"github.com/certusone/wormhole/node/pkg/common"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/readiness"
|
"github.com/certusone/wormhole/node/pkg/readiness"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/supervisor"
|
"github.com/certusone/wormhole/node/pkg/supervisor"
|
||||||
"github.com/certusone/wormhole/bridge/pkg/vaa"
|
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
"github.com/tidwall/gjson"
|
"github.com/tidwall/gjson"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
|
@ -1,4 +1,4 @@
|
||||||
module github.com/certusone/wormhole/bridge/tools
|
module github.com/certusone/wormhole/node/tools
|
||||||
|
|
||||||
go 1.15
|
go 1.15
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//go:build tools
|
||||||
// +build tools
|
// +build tools
|
||||||
|
|
||||||
package tools
|
package tools
|
|
@ -2,7 +2,7 @@ syntax = "proto3";
|
||||||
|
|
||||||
package gossip.v1;
|
package gossip.v1;
|
||||||
|
|
||||||
option go_package = "github.com/certusone/wormhole/bridge/pkg/proto/gossip/v1;gossipv1";
|
option go_package = "github.com/certusone/wormhole/node/pkg/proto/gossip/v1;gossipv1";
|
||||||
|
|
||||||
message GossipMessage {
|
message GossipMessage {
|
||||||
oneof message {
|
oneof message {
|
||||||
|
|
|
@ -2,7 +2,7 @@ syntax = "proto3";
|
||||||
|
|
||||||
package node.v1;
|
package node.v1;
|
||||||
|
|
||||||
option go_package = "github.com/certusone/wormhole/bridge/pkg/proto/node/v1;nodev1";
|
option go_package = "github.com/certusone/wormhole/node/pkg/proto/node/v1;nodev1";
|
||||||
|
|
||||||
// NodePrivilegedService exposes an administrative API. It runs on a UNIX socket and is authenticated
|
// NodePrivilegedService exposes an administrative API. It runs on a UNIX socket and is authenticated
|
||||||
// using Linux filesystem permissions.
|
// using Linux filesystem permissions.
|
||||||
|
|
|
@ -2,7 +2,7 @@ syntax = "proto3";
|
||||||
|
|
||||||
package publicrpc.v1;
|
package publicrpc.v1;
|
||||||
|
|
||||||
option go_package = "github.com/certusone/wormhole/bridge/pkg/proto/publicrpc/v1;publicrpcv1";
|
option go_package = "github.com/certusone/wormhole/node/pkg/proto/publicrpc/v1;publicrpcv1";
|
||||||
|
|
||||||
import "gossip/v1/gossip.proto";
|
import "gossip/v1/gossip.proto";
|
||||||
import "google/api/annotations.proto";
|
import "google/api/annotations.proto";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
module github.com/certusone/wormhole/bridge/tools
|
module github.com/certusone/wormhole/node/tools
|
||||||
|
|
||||||
go 1.16
|
go 1.16
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue