diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 00000000..3c6e9557 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,31 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: bug +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior. + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Logs** +If applicable, please include the relevant logs that indicate a problem. + +**Operating System** +Which OS you used to reveal the bug. + +**Additional context** +Add any other context about the problem here. + +**To best protect the Avalanche community security bugs should be reported in accordance to our [Security Policy](../../SECURITY.md)** diff --git a/.github/ISSUE_TEMPLATE/feature_spec.md b/.github/ISSUE_TEMPLATE/feature_spec.md new file mode 100644 index 00000000..f270ff03 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_spec.md @@ -0,0 +1,19 @@ +--- +name: Feature specification +about: Discussion on design and implementation of new features for awm-relayer. +title: '' +labels: enhancement +assignees: '' + +--- + +**Context and scope** +Include a short description of the context and scope of the suggested feature. +Include goals the change will accomplish if relevant. + +**Discussion and alternatives** +Include a description of the changes to be made to the code along with alternatives +that were considered, including pro/con analysis where relevant. + +**Open questions** +Questions that are still being discussed. diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 56b8094c..4e0d76c1 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -12,6 +12,9 @@ updates: directory: "/" # Location of package manifests schedule: interval: "daily" + ignore: + # Update go-ethereum only via subnet-evm or avalanchego + - dependency-name: "go-ethereum" - package-ecosystem: "gitsubmodule" directory: "/" schedule: diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 00000000..7ff1a9ef --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,7 @@ +## Why this should be merged + +## How this works + +## How this was tested + +## How is this documented \ No newline at end of file diff --git a/go.mod b/go.mod index 448b1f0d..bbe4297d 100644 --- a/go.mod +++ b/go.mod @@ -3,8 +3,8 @@ module github.com/ava-labs/awm-relayer go 1.18 require ( - github.com/ava-labs/avalanchego v1.10.8 - github.com/ava-labs/subnet-evm v0.5.4-0.20230816140336-9f21235c17b3 + github.com/ava-labs/avalanchego v1.10.9 + github.com/ava-labs/subnet-evm v0.5.4 github.com/ethereum/go-ethereum v1.12.0 github.com/golang/mock v1.6.0 github.com/prometheus/client_golang v1.16.0 @@ -36,6 +36,7 @@ require ( github.com/spf13/cast v1.5.1 // indirect github.com/spf13/jwalterweatherman v1.1.0 // indirect github.com/subosito/gotenv v1.4.2 // indirect + go.uber.org/mock v0.2.0 // indirect golang.org/x/exp v0.0.0-20230206171751-46f607a40771 // indirect gopkg.in/ini.v1 v1.67.0 // indirect ) diff --git a/go.sum b/go.sum index 0b4041af..cc461fb8 100644 --- a/go.sum +++ b/go.sum @@ -59,10 +59,10 @@ github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= -github.com/ava-labs/avalanchego v1.10.8 h1:fUudA4J37y8wyNG3iiX0kpoZXunsWpCgvsGDgIsi0NY= -github.com/ava-labs/avalanchego v1.10.8/go.mod h1:2zuce+beHe25wQ5RlrEeDpa+SqY/sjEOjDky+Q1NxfU= -github.com/ava-labs/subnet-evm v0.5.4-0.20230816140336-9f21235c17b3 h1:7pxUN5Wb2ePYxKBeME8lAIxEk3J+fX+KYt0tGFNwpYM= -github.com/ava-labs/subnet-evm v0.5.4-0.20230816140336-9f21235c17b3/go.mod h1:QNFybGyhdnUC5k8j+Re5N//K+aXumfSd0B9gDOKC+x0= +github.com/ava-labs/avalanchego v1.10.9 h1:qxhp3YoD2Wm/iIKP6Wb1isbkUPWmIrJxWgivDoL0obM= +github.com/ava-labs/avalanchego v1.10.9/go.mod h1:C8R5uiltpc8MQ62ixxgODR+15mesWF0aAw3H+Qrl9Iw= +github.com/ava-labs/subnet-evm v0.5.4 h1:4+UHva8rhGlvH4gDYpI0Lt6/J5ie1DqQa6kEmbebArI= +github.com/ava-labs/subnet-evm v0.5.4/go.mod h1:PAyhfYnECzA17N62i7OAdKazjfSsN2l8KR5nOspg39I= github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g= github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= @@ -554,6 +554,8 @@ go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqe go.opentelemetry.io/proto/otlp v0.19.0 h1:IVN6GR+mhC4s5yfcTbmzHYODqvWAp3ZedA2SJPI1Nnw= go.opentelemetry.io/proto/otlp v0.19.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U= go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A= +go.uber.org/mock v0.2.0 h1:TaP3xedm7JaAgScZO7tlvlKrqT0p7I6OsdGB5YNSMDU= +go.uber.org/mock v0.2.0/go.mod h1:J0y0rp9L3xiff1+ZBfKxlC1fz2+aO16tw0tsDOixfuM= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/zap v1.25.0 h1:4Hvk6GtkucQ790dqmj7l1eEnRdKm3k3ZUrUMS2d5+5c= diff --git a/vms/evm/contract_message_test.go b/vms/evm/contract_message_test.go index 2536d84a..05ab91fb 100644 --- a/vms/evm/contract_message_test.go +++ b/vms/evm/contract_message_test.go @@ -13,8 +13,8 @@ import ( "github.com/ava-labs/awm-relayer/config" warpPayload "github.com/ava-labs/subnet-evm/warp/payload" "github.com/ethereum/go-ethereum/common" - "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" + "go.uber.org/mock/gomock" ) // Used to create a valid unsigned message for testing. Should not be used directly in tests.