Skip to content
Draft

Graft #1001

Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
4586 commits
Select commit Hold shift + click to select a range
14d90f9
clean up comment
Apr 17, 2025
d426c55
Merge pull request #777 from ava-labs/validator-manager-getters
cam-schultz Apr 17, 2025
57920a6
document v1 migration compatibility
Apr 18, 2025
053f483
document PoS validator churn edge case
Apr 18, 2025
3212521
Merge pull request #779 from ava-labs/document-migration-compat
cam-schultz Apr 21, 2025
bd91095
Merge branch 'main' into document-pos-churn
cam-schultz Apr 21, 2025
0cd6c14
Merge pull request #780 from ava-labs/document-pos-churn
cam-schultz Apr 21, 2025
4a897ba
Merge branch 'main' into N-11-inconsistent-interfaces
geoff-vball Apr 23, 2025
2956fbe
Add details to new interface
geoff-vball Apr 23, 2025
cfd0ca9
Merge pull request #778 from ava-labs/N-11-inconsistent-interfaces
cam-schultz Apr 23, 2025
34fdb06
images updated
alejandro99so Feb 26, 2025
fe7c0a8
Merge pull request #726 from ava-labs/as-images-subnet-updated
geoff-vball Apr 28, 2025
1477acd
Update formatting to conform to solhint 5.1.0
geoff-vball May 6, 2025
55ec123
Update bindings
geoff-vball May 6, 2025
19ac2e6
clarify selection of poa weights
May 6, 2025
a05649e
limit churn period to 24 hours
May 6, 2025
889b4a2
Merge pull request #782 from ava-labs/update-formatting-solhint
cam-schultz May 6, 2025
979b32f
Merge branch 'main' into M-02-clarify-poa-weights
May 6, 2025
e4046c4
Merge branch 'main' into m-01-limit-churn-period
May 6, 2025
05bd1bc
Merge pull request #783 from ava-labs/M-02-clarify-poa-weights
cam-schultz May 6, 2025
843b76c
Merge branch 'main' into m-01-limit-churn-period
cam-schultz May 6, 2025
064be8b
Update go
geoff-vball May 6, 2025
45f0a28
Merge pull request #784 from ava-labs/m-01-limit-churn-period
cam-schultz May 6, 2025
7da39de
Merge branch 'main' into update-go
geoff-vball May 6, 2025
7398c48
Merge pull request #785 from ava-labs/update-go
geoff-vball May 6, 2025
9e27f97
Bump golang.org/x/tools from 0.32.0 to 0.33.0
dependabot[bot] May 6, 2025
b5505dd
Merge pull request #781 from ava-labs/dependabot/go_modules/golang.or…
iansuvak May 7, 2025
9b6831d
Merge remote-tracking branch 'origin/main' into global-spdx-licenseref
iansuvak May 7, 2025
36143c9
Move rewardRecipient field from initiate[Validator/Delegator]Removal …
iansuvak Apr 23, 2025
8d0924c
Merge pull request #787 from ava-labs/move-reward-to-initiate
iansuvak May 13, 2025
c62a33c
latest validator manager audit
May 13, 2025
eb0afb7
Merge pull request #788 from ava-labs/may-2025-audit-report
cam-schultz May 13, 2025
226aa3b
Merge remote-tracking branch 'origin/main' into global-spdx-licenseref
iansuvak May 14, 2025
d72ded4
emit subnetID in RegisteredInitialValidator
May 16, 2025
93870f6
remove duplicate function
May 16, 2025
122d47f
use correct func
May 16, 2025
b89f239
check p-chain owners
May 20, 2025
0afbc5f
clarify L1ValidatorWeightMessage criteria
May 20, 2025
e370b1c
test removing delegator for inactive validator
May 20, 2025
8d7bd97
format
May 20, 2025
6948e6c
Add PoAValidatorManager
michaelkaplan13 May 22, 2025
55e910e
Merge pull request #793 from ava-labs/delegator-inactive-validator
cam-schultz May 22, 2025
bb27db8
Merge branch 'main' into remove-dup-function
cam-schultz May 22, 2025
28e8324
Merge branch 'main' into global-spdx-licenseref
iansuvak May 22, 2025
5e6bb00
Merge pull request #790 from ava-labs/remove-dup-function
cam-schultz May 22, 2025
1f9d4a7
Merge branch 'main' into emit-justification
May 22, 2025
997de16
Merge remote-tracking branch 'origin/main' into global-spdx-licenseref
iansuvak May 22, 2025
e4d4cf8
Merge pull request #789 from ava-labs/emit-justification
cam-schultz May 22, 2025
82a72fa
Merge remote-tracking branch 'origin/main' into global-spdx-licenseref
iansuvak May 22, 2025
bd61626
Merge pull request #774 from ava-labs/global-spdx-licenseref
cam-schultz May 22, 2025
be9f184
Merge branch 'main' into poa-validator-manager
ylg-avalabs May 28, 2025
3b7aca6
rename and tests
ylg-avalabs May 28, 2025
743fcaf
add doc
ylg-avalabs May 28, 2025
f0e94ad
fix lint
ylg-avalabs May 28, 2025
a04239c
update storage location
ylg-avalabs May 28, 2025
3e964cf
e2e tests
ylg-avalabs May 29, 2025
dd62d54
fix
ylg-avalabs May 29, 2025
27af566
fix lint
ylg-avalabs May 29, 2025
6346ff1
gen abi
ylg-avalabs May 29, 2025
00d9cd9
fix lint
ylg-avalabs May 29, 2025
fb4a1f4
fix tests
ylg-avalabs May 29, 2025
a1c68be
fix binding
ylg-avalabs May 29, 2025
5b9c024
fix readme
ylg-avalabs May 29, 2025
ca10697
address review comments and add doc
ylg-avalabs May 29, 2025
161c381
fix lint
ylg-avalabs May 29, 2025
e6bfdcc
fix binding
ylg-avalabs May 29, 2025
4d2a4ed
cleanup
May 29, 2025
16fb44b
update migration doc
May 29, 2025
52f9937
address review comments
ylg-avalabs May 30, 2025
adb403f
Use go run for ginkgo
geoff-vball Jun 3, 2025
cce7706
Bump golang.org/x/tools from 0.33.0 to 0.34.0
dependabot[bot] Jun 6, 2025
606e460
Merge pull request #798 from ava-labs/dependabot/go_modules/golang.or…
geoff-vball Jun 6, 2025
eac0c10
Update go
geoff-vball Jun 6, 2025
6105d70
transfer ownership of validatorManager
ylg-avalabs Jun 6, 2025
a750d76
Merge remote-tracking branch 'origin' into poa-validator-manager
ylg-avalabs Jun 6, 2025
ca353ab
fix lint
ylg-avalabs Jun 6, 2025
0c67a59
rename
ylg-avalabs Jun 6, 2025
6b6957c
Merge branch 'main' into use-go-run
geoff-vball Jun 10, 2025
366c0e9
Merge pull request #799 from ava-labs/update-go
geoff-vball Jun 10, 2025
92a359d
Merge remote-tracking branch 'origin' into poa-validator-manager
ylg-avalabs Jun 10, 2025
d9a9d56
remove storage and add unit tests
ylg-avalabs Jun 10, 2025
6534931
fix lint
ylg-avalabs Jun 10, 2025
725895e
change IValidatorManager to ValidatorManager
ylg-avalabs Jun 10, 2025
37ab77f
new interface
ylg-avalabs Jun 10, 2025
221891d
fix lint
ylg-avalabs Jun 10, 2025
a825379
fix lint
ylg-avalabs Jun 10, 2025
4b997b3
add natspec comment
ylg-avalabs Jun 11, 2025
604ceca
remove Convert PoA to PoS section
ylg-avalabs Jun 11, 2025
2bbbf7a
add immutable
ylg-avalabs Jun 11, 2025
b24f373
Merge pull request #794 from ava-labs/poa-validator-manager
ylg-avalabs Jun 11, 2025
dd21df4
Merge branch 'main' into poa-validator-manager-docs
Jun 11, 2025
3b4a056
clarify
Jun 11, 2025
4d5ab0b
Merge pull request #795 from ava-labs/poa-validator-manager-docs
cam-schultz Jun 11, 2025
1fcec05
Merge branch 'main' into use-go-run
geoff-vball Jun 12, 2025
bc787b8
Merge pull request #796 from ava-labs/use-go-run
geoff-vball Jun 12, 2025
0aeb5ff
bump dependencies for avago and subnet-evm
iansuvak Jun 9, 2025
577e6d0
remove dependency on go-ethereum
iansuvak Jun 9, 2025
9d793ca
working tests, except for validator-manager
iansuvak Jun 13, 2025
66e32da
register flag once
ylg-avalabs Jun 16, 2025
8fb1ea4
Merge remote-tracking branch 'origin' into bump-avago-subnet
ylg-avalabs Jun 16, 2025
a611c63
fix
ylg-avalabs Jun 16, 2025
f7eda12
fix lint
ylg-avalabs Jun 16, 2025
3b400cc
fix ictt
ylg-avalabs Jun 16, 2025
230c57f
cleanup and comment
iansuvak Jun 17, 2025
48a2a0e
updated link
navillanueva Jun 24, 2025
acc2467
fixed typo for remote content docs
navillanueva Jun 24, 2025
67d5723
Merge pull request #801 from navillanueva/main
iansuvak Jun 24, 2025
e610f05
Merge branch 'main' into bump-avago-subnet
iansuvak Jun 25, 2025
3440c49
Merge pull request #800 from ava-labs/bump-avago-subnet
iansuvak Jun 30, 2025
2fa2477
bump avago to v1.13.2 and subnet-evm to 0.7.5
iansuvak Jul 1, 2025
667e6df
Merge pull request #804 from ava-labs/avago-v1.13.2
iansuvak Jul 1, 2025
e82e4c7
bump subnet-evm submodule as well
iansuvak Jul 1, 2025
b34a75d
Merge pull request #805 from ava-labs/bump-submodules
iansuvak Jul 1, 2025
c98ab97
reuse network
ylg-avalabs Jul 7, 2025
e4df926
Ignore most new solhint rules
geoff-vball Jul 9, 2025
7a0331c
Update go
geoff-vball Jul 9, 2025
c0e9a11
reuse network
ylg-avalabs Jul 10, 2025
623f356
Merge pull request #808 from ava-labs/solhint-update
iansuvak Jul 11, 2025
756ffd0
Merge branch 'main' into update-go
iansuvak Jul 11, 2025
297cc0e
Merge branch 'main' into network-reuse
ylg-avalabs Jul 14, 2025
095d1bb
add TestMain
ylg-avalabs Jul 14, 2025
a98a55e
Merge pull request #807 from ava-labs/update-go
geoff-vball Jul 14, 2025
f9da067
Merge branch 'main' into network-reuse
ylg-avalabs Jul 14, 2025
12b8b03
Bump golang.org/x/tools from 0.34.0 to 0.35.0
dependabot[bot] Jul 14, 2025
e964c7b
Merge branch 'main' into dependabot/go_modules/golang.org/x/tools-0.35.0
iansuvak Jul 14, 2025
4ee3556
Merge pull request #811 from ava-labs/dependabot/go_modules/golang.or…
iansuvak Jul 14, 2025
99c9778
Bump golang.org/x/oauth2 from 0.23.0 to 0.27.0
dependabot[bot] Jul 18, 2025
42e1a11
Merge pull request #814 from ava-labs/dependabot/go_modules/golang.or…
iansuvak Jul 21, 2025
a5b2b8b
Bump github.com/onsi/gomega from 1.37.0 to 1.38.0
dependabot[bot] Jul 23, 2025
80522fa
Merge pull request #815 from ava-labs/dependabot/go_modules/github.co…
iansuvak Jul 23, 2025
b80e2f1
custom validator balance
ylg-avalabs Jul 24, 2025
d069282
fix expect check
ylg-avalabs Jul 24, 2025
d23fcab
Bump github.com/ava-labs/subnet-evm from 0.7.5 to 0.7.7
dependabot[bot] Jul 25, 2025
9035448
Update subnet-evm submodule
geoff-vball Jul 29, 2025
91b4862
Abi bindings
geoff-vball Jul 29, 2025
0068483
Merge pull request #817 from ava-labs/validator-balance
ylg-avalabs Jul 29, 2025
bb7e186
Merge branch 'main' into dependabot/go_modules/github.com/ava-labs/su…
geoff-vball Jul 29, 2025
da1fa16
Merge pull request #818 from ava-labs/dependabot/go_modules/github.co…
iansuvak Jul 29, 2025
4516621
Merge remote-tracking branch 'origin' into network-reuse
ylg-avalabs Jul 30, 2025
beb9da2
set the root network dir
ylg-avalabs Jul 30, 2025
a763714
Merge branch 'network-reuse' of github.com:ava-labs/icm-contracts int…
ylg-avalabs Jul 30, 2025
e0930f7
Bump github.com/ava-labs/subnet-evm from 0.7.7 to 0.7.8
dependabot[bot] Aug 4, 2025
16ba29f
Update subnet-evm submodule
geoff-vball Aug 5, 2025
82e3215
Try using URI field
geoff-vball Aug 5, 2025
a288783
Merge pull request #809 from ava-labs/network-reuse
ylg-avalabs Aug 5, 2025
c4e6769
Bump github.com/segmentio/encoding from 0.5.1 to 0.5.3
dependabot[bot] Aug 6, 2025
5351d87
Merge pull request #823 from ava-labs/dependabot/go_modules/github.co…
geoff-vball Aug 6, 2025
4a1034e
Merge branch 'main' into dependabot/go_modules/github.com/ava-labs/su…
geoff-vball Aug 6, 2025
b4d7530
Merge pull request #821 from ava-labs/dependabot/go_modules/github.co…
geoff-vball Aug 6, 2025
e84451c
Bump github.com/go-viper/mapstructure/v2 from 2.2.1 to 2.3.0
dependabot[bot] Aug 6, 2025
c0d001b
Merge pull request #824 from ava-labs/dependabot/go_modules/github.co…
geoff-vball Aug 7, 2025
42c3ab7
Bump google.golang.org/protobuf from 1.36.6 to 1.36.7
dependabot[bot] Aug 7, 2025
3d597a1
Merge pull request #825 from ava-labs/dependabot/go_modules/google.go…
iansuvak Aug 7, 2025
b401ae1
Bump golang.org/x/tools from 0.35.0 to 0.36.0
dependabot[bot] Aug 8, 2025
d0c3fb8
Merge pull request #826 from ava-labs/dependabot/go_modules/golang.or…
geoff-vball Aug 8, 2025
82d3151
Bump actions/checkout from 4 to 5
dependabot[bot] Aug 11, 2025
ce85313
Merge pull request #827 from ava-labs/dependabot/github_actions/actio…
geoff-vball Aug 12, 2025
99e0e78
Update go
geoff-vball Aug 13, 2025
58e8540
Merge pull request #828 from ava-labs/update-go
geoff-vball Aug 14, 2025
1f2a274
Bump github.com/onsi/ginkgo/v2 from 2.23.4 to 2.24.0
dependabot[bot] Aug 19, 2025
62180ba
Merge pull request #829 from ava-labs/dependabot/go_modules/github.co…
geoff-vball Aug 19, 2025
8ac5206
Bump github.com/onsi/ginkgo/v2 from 2.24.0 to 2.25.0
dependabot[bot] Aug 21, 2025
72e0e0e
Merge pull request #830 from ava-labs/dependabot/go_modules/github.co…
iansuvak Aug 21, 2025
3ba46d6
Bump github.com/go-viper/mapstructure/v2 from 2.3.0 to 2.4.0
dependabot[bot] Aug 21, 2025
7e3aab9
Merge pull request #832 from ava-labs/dependabot/go_modules/github.co…
geoff-vball Aug 21, 2025
92bb548
Bump github.com/onsi/ginkgo/v2 from 2.25.0 to 2.25.1
dependabot[bot] Aug 22, 2025
d59f5d4
Merge pull request #833 from ava-labs/dependabot/go_modules/github.co…
geoff-vball Aug 22, 2025
2835ef5
Bump google.golang.org/protobuf from 1.36.7 to 1.36.8
dependabot[bot] Aug 22, 2025
7906f00
Merge pull request #831 from ava-labs/dependabot/go_modules/google.go…
geoff-vball Aug 22, 2025
e6542ff
Bump github.com/stretchr/testify from 1.10.0 to 1.11.0
dependabot[bot] Aug 25, 2025
d13e05b
Bump github.com/onsi/gomega from 1.38.0 to 1.38.1
dependabot[bot] Aug 25, 2025
a443ce8
Merge pull request #834 from ava-labs/dependabot/go_modules/github.co…
geoff-vball Aug 26, 2025
dec25eb
Merge branch 'main' into dependabot/go_modules/github.com/onsi/gomega…
geoff-vball Aug 26, 2025
2045339
Merge pull request #835 from ava-labs/dependabot/go_modules/github.co…
iansuvak Aug 26, 2025
ff80911
Bump github.com/onsi/ginkgo/v2 from 2.25.1 to 2.25.2
dependabot[bot] Aug 29, 2025
433a3e1
Merge pull request #838 from ava-labs/dependabot/go_modules/github.co…
geoff-vball Aug 29, 2025
d5100ea
Bump github.com/stretchr/testify from 1.11.0 to 1.11.1
dependabot[bot] Aug 29, 2025
af5916f
Merge pull request #837 from ava-labs/dependabot/go_modules/github.co…
geoff-vball Aug 29, 2025
2ba1d83
Bump github.com/spf13/cobra from 1.9.1 to 1.10.0
dependabot[bot] Sep 1, 2025
2bc38cb
Merge pull request #839 from ava-labs/dependabot/go_modules/github.co…
geoff-vball Sep 2, 2025
0d112af
Bump github.com/spf13/cobra from 1.9.1 to 1.10.1
dependabot[bot] Sep 3, 2025
83b80d9
Merge pull request #840 from ava-labs/dependabot/go_modules/github.co…
geoff-vball Sep 3, 2025
3ccde7e
Bump github.com/onsi/ginkgo/v2 from 2.25.2 to 2.25.3
dependabot[bot] Sep 5, 2025
099a2cd
Merge pull request #843 from ava-labs/dependabot/go_modules/github.co…
geoff-vball Sep 5, 2025
96373f9
Bump google.golang.org/protobuf from 1.36.8 to 1.36.9
dependabot[bot] Sep 9, 2025
277a206
Merge pull request #844 from ava-labs/dependabot/go_modules/google.go…
geoff-vball Sep 9, 2025
778ef16
Bump actions/setup-go from 5 to 6
dependabot[bot] Sep 9, 2025
976667a
Merge pull request #842 from ava-labs/dependabot/github_actions/actio…
iansuvak Sep 9, 2025
e130138
Bump actions/setup-python from 5 to 6
dependabot[bot] Sep 9, 2025
a3ce51f
Merge pull request #841 from ava-labs/dependabot/github_actions/actio…
geoff-vball Sep 9, 2025
8bac83b
Bump golang.org/x/tools from 0.36.0 to 0.37.0
dependabot[bot] Sep 11, 2025
af330a4
Merge pull request #847 from ava-labs/dependabot/go_modules/golang.or…
geoff-vball Sep 11, 2025
90adcb6
Bump github.com/ava-labs/subnet-evm from 0.7.8 to 0.7.9
dependabot[bot] Sep 11, 2025
620c1ad
Update submodule
geoff-vball Sep 11, 2025
bcb34fd
Update submodule and fix tests/utils
geoff-vball Sep 11, 2025
9719f1a
lint
geoff-vball Sep 11, 2025
151bd31
Update go
geoff-vball Sep 11, 2025
93de93a
Merge pull request #848 from ava-labs/update-go
geoff-vball Sep 11, 2025
5b00228
Merge branch 'main' of github.com:ava-labs/icm-contracts
geoff-vball Sep 11, 2025
bed8ad9
Merge branch 'main' into dependabot/go_modules/github.com/ava-labs/su…
geoff-vball Sep 11, 2025
dac6598
Merge pull request #846 from ava-labs/dependabot/go_modules/github.co…
geoff-vball Sep 17, 2025
fd11b46
bump up avalanchgo version
ylg-avalabs Oct 2, 2025
5798057
set granite
ylg-avalabs Oct 3, 2025
42f00b3
Bump github/codeql-action from 3 to 4
dependabot[bot] Oct 8, 2025
81ce299
Merge pull request #850 from ava-labs/dependabot/github_actions/githu…
geoff-vball Oct 8, 2025
c04367d
update version
ylg-avalabs Oct 9, 2025
c81a85b
Update go
geoff-vball Oct 9, 2025
ade2c3c
Merge pull request #851 from ava-labs/update-go
geoff-vball Oct 13, 2025
551a111
update versions for devnet activation
iansuvak Oct 13, 2025
0097993
temporarily fix subnet version used for abigen
iansuvak Oct 15, 2025
082b2b5
Update scripts/abi_bindings.sh
iansuvak Oct 15, 2025
9843070
Add install flag to install_foundry.sh
geoff-vball Oct 15, 2025
3de5671
Merge branch 'version-upgrade' of github.com:ava-labs/icm-contracts i…
geoff-vball Oct 15, 2025
9655488
Merge branch 'main' into version-upgrade
geoff-vball Oct 15, 2025
2a27208
Merge branch 'version-upgrade' of github.com:ava-labs/icm-contracts i…
ylg-avalabs Oct 16, 2025
19e5965
use log
ylg-avalabs Oct 16, 2025
cabdb44
Merge pull request #849 from ava-labs/version-upgrade
geoff-vball Oct 16, 2025
fb1cfd6
Remove submodule
geoff-vball Oct 17, 2025
4129494
Move subnet-evm contracts to repo
geoff-vball Oct 17, 2025
6c258af
update versions
iansuvak Oct 19, 2025
6562c3d
update gas calculation
iansuvak Oct 17, 2025
c2a7c85
add --activate-granite flag
iansuvak Oct 20, 2025
af7212b
Fix names
geoff-vball Oct 20, 2025
5145814
Merge pull request #852 from ava-labs/remove-submodule
geoff-vball Oct 20, 2025
3153a31
Merge branch 'main' into fix-naming
geoff-vball Oct 20, 2025
78e934e
use remote branch for icm-services
iansuvak Oct 20, 2025
b9651a4
Merge remote-tracking branch 'origin/main' into update-to-tagged-rcs
iansuvak Oct 20, 2025
ff8a4e8
address review feedback
iansuvak Oct 20, 2025
9b489a5
Merge pull request #853 from ava-labs/fix-naming
michaelkaplan13 Oct 20, 2025
cefcbcf
update gas costs
iansuvak Oct 21, 2025
fde046b
update to fully tagged releases
iansuvak Oct 21, 2025
b651965
Merge branch 'main' into update-to-tagged-rcs
geoff-vball Oct 21, 2025
a4fd8de
Go mod tidy
geoff-vball Oct 21, 2025
dc0741f
Pass in chunks
geoff-vball Oct 21, 2025
c930be9
use higher gas costs
geoff-vball Oct 21, 2025
3e08633
Fix gas costs
geoff-vball Oct 21, 2025
c64f310
Merge pull request #854 from ava-labs/update-to-tagged-rcs
michaelkaplan13 Oct 21, 2025
e64740c
Bump golang.org/x/tools from 0.37.0 to 0.38.0
dependabot[bot] Oct 31, 2025
d0778e4
Merge pull request #876 from ava-labs/dependabot/go_modules/golang.or…
iansuvak Oct 31, 2025
2cfd5a3
Bump google.golang.org/protobuf from 1.36.9 to 1.36.10
dependabot[bot] Oct 31, 2025
b332d65
Merge pull request #875 from ava-labs/dependabot/go_modules/google.go…
geoff-vball Oct 31, 2025
1fa6406
Bump github.com/onsi/ginkgo/v2 from 2.25.3 to 2.27.2
dependabot[bot] Oct 31, 2025
0171473
Merge pull request #877 from ava-labs/dependabot/go_modules/github.co…
geoff-vball Nov 3, 2025
41e1f5e
Move all files into subfolder
geoff-vball Nov 4, 2025
a9c4c52
Merge remote-tracking branch 'contracts/move-into-folder'
geoff-vball Nov 4, 2025
44bd7ab
Lint working
geoff-vball Nov 4, 2025
2771e71
Bindings working
geoff-vball Nov 4, 2025
9634eb7
Fixup scripts
geoff-vball Nov 5, 2025
ebafc19
Fix tests
geoff-vball Nov 5, 2025
5e43723
Rename job
geoff-vball Nov 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 16 additions & 0 deletions .github/changelog.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"categories": [
{
"title": "## Features",
"labels": ["T-feature"]
},
{
"title": "## Fixes",
"labels": ["T-bug", "T-fix"]
}
],
"ignore_labels": ["L-ignore"],
"template": "${{CHANGELOG}}\n## Other\n\n${{UNCATEGORIZED}}",
"pr_template": "- ${{TITLE}} (#${{NUMBER}})",
"empty_template": "- No changes"
}
128 changes: 128 additions & 0 deletions .github/workflows/contracts-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
name: Tests

on:
push:
branches:
- main
pull_request:
branches:
- "**"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
solidity-unit-tests:
name: solidity-unit-tests
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v5
with:
submodules: recursive

- name: Install Foundry
run: ./scripts/install_foundry.sh

- name: Run unit tests
run: |
export PATH=$PATH:$HOME/.foundry/bin
forge test -vvv

teleporter_e2e:
name: teleporter-e2e-tests
runs-on: ubuntu-22.04
steps:
- name: Checkout repositories and submodules
uses: actions/checkout@v5
with:
submodules: recursive

- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: "go.mod"

- name: Install Foundry
run: ./scripts/install_foundry.sh

- name: Run E2E Tests
# Forge installs to BASE_DIR, but updates the PATH definition in $HOME/.bashrc
run: |
export PATH=$PATH:$HOME/.foundry/bin
export PATH="$PATH:$GOPATH/bin"
./scripts/contracts_e2e_test.sh --components teleporter

governance_e2e:
name: governance-e2e-tests
runs-on: ubuntu-22.04
steps:
- name: Checkout repositories and submodules
uses: actions/checkout@v5
with:
submodules: recursive

- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'

- name: Install Foundry
run: ./scripts/install_foundry.sh

- name: Run E2E Tests
# Forge installs to BASE_DIR, but updates the PATH definition in $HOME/.bashrc
run: |
export PATH=$PATH:$HOME/.foundry/bin
export PATH="$PATH:$GOPATH/bin"
./scripts/contracts_e2e_test.sh --components governance

validator_manager_e2e:
name: validator-manager-e2e-tests
runs-on: ubuntu-22.04
steps:
- name: Checkout repositories and submodules
uses: actions/checkout@v5
with:
submodules: recursive

- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'

- name: Install Foundry
run: ./scripts/install_foundry.sh

- name: Run E2E Tests
# Forge installs to BASE_DIR, but updates the PATH definition in $HOME/.bashrc
run: |
export PATH=$PATH:$HOME/.foundry/bin
export PATH="$PATH:$GOPATH/bin"
./scripts/contracts_e2e_test.sh --components validator-manager

ictt_e2e:
name: ictt-e2e-tests
runs-on: ubuntu-22.04
steps:
- name: Checkout repositories and submodules
uses: actions/checkout@v5
with:
submodules: recursive

- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'

- name: Install Foundry
run: ./scripts/install_foundry.sh

- name: Run E2E Tests
# Forge installs to BASE_DIR, but updates the PATH definition in $HOME/.bashrc
run: |
export PATH=$PATH:$HOME/.foundry/bin
export PATH="$PATH:$GOPATH/bin"
./scripts/contracts_e2e_test.sh --components ictt
2 changes: 1 addition & 1 deletion .github/workflows/e2e_granite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ jobs:
submodules: recursive

- name: Run E2E Tests
run: AVALANCHEGO_BUILD_PATH=/tmp/e2e-test/avalanchego DATA_DIR=/tmp/e2e-test/data ./scripts/e2e_test.sh --activate-granite
run: AVALANCHEGO_BUILD_PATH=/tmp/e2e-test/avalanchego DATA_DIR=/tmp/e2e-test/data ./scripts/relayer_e2e_test.sh --activate-granite
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ on:
- "**"

jobs:
test_relayer:
test_unit:
name: Unit tests
runs-on: ubuntu-22.04

steps:
- name: Checkout icm-relayer repository
- name: Checkout repository
uses: actions/checkout@v5
with:
submodules: recursive
Expand All @@ -27,5 +27,5 @@ jobs:
with:
go-version-file: 'go.mod'

- name: Run Relayer Unit Tests
run: ./scripts/test.sh
- name: Run Golang Unit Tests
run: ./scripts/unit-test.sh
135 changes: 134 additions & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (C) 2023, Ava Labs, Inc. All rights reserved.
# See the file LICENSE for licensing terms.

name: Run Golang Linter
name: Run Lint and Format Checks

on:
push:
Expand All @@ -12,7 +12,25 @@ on:
- "**"

jobs:
solhint:
name: solhint
runs-on: ubuntu-22.04
timeout-minutes: 10

steps:
- name: Checkout repository
uses: actions/checkout@v5 # Purposefully not recursive

- name: Install solhint
run: |
npm install solhint -g
solhint --version

- name: Run solhint
run: ./scripts/lint.sh --sol-lint

golangci:
name: golanci lint
runs-on: ubuntu-22.04
timeout-minutes: 10

Expand All @@ -30,9 +48,124 @@ jobs:
- name: Run Lint
run: ./scripts/lint.sh --go-lint

format-solidity:
name: format solidity
runs-on: ubuntu-22.04
timeout-minutes: 10

steps:
- name: Checkout repository and submodules
uses: actions/checkout@v5
with:
submodules: recursive

- name: Install Foundry
run: ./scripts/install_foundry.sh

- name: Check Solidity Formatting
run: |
export PATH=$PATH:$HOME/.foundry/bin
./scripts/lint.sh --sol-format-check

protobuf-gen-check:
name: check protobuf generation
runs-on: ubuntu-22.04
timeout-minutes: 10

steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
submodules: recursive

- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'

- name: Ensure protobuf changes are checked in
run: |
scripts/protobuf_codegen.sh
git update-index --really-refresh >> /dev/null
git diff-index HEAD # to show the differences
git diff-index --quiet HEAD || (echo 'protobuf generated code changes have not all been checked in' && exit 1)

codegen_check:
name: check code generation
runs-on: ubuntu-22.04

steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
submodules: recursive

- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: "go.mod"

- name: Generate code
run: go generate ./...

- name: Print diff
run: git --no-pager diff

- name: Fail if diff exists
run: git --no-pager diff --quiet

gomod_check:
name: Check go.mod
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v5
with:
submodules: recursive

- uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'

- run: go mod tidy
- run: git --no-pager diff -- go.mod go.sum # This prints the diff
- run: git --no-pager diff --quiet -- go.mod go.sum # This errors if there is a diff


abi_binding:
name: abi_binding
runs-on: ubuntu-22.04

steps:
- name: Checkout Repository
uses: actions/checkout@v5
with:
submodules: recursive

- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: "go.mod"

- name: Install Foundry
run: ./scripts/install_foundry.sh

- name: Install solc
run: |
source ./scripts/versions.sh
wget https://github.com/ethereum/solidity/releases/download/v$SOLIDITY_VERSION/solc-static-linux
chmod +x solc-static-linux
sudo mv solc-static-linux /usr/local/bin/solc

- name: Generate ABI Go bindings
run: |
export PATH=$PATH:$HOME/.foundry/bin
export GOPATH=$HOME/go
export PATH="$PATH:$GOPATH/bin"
./scripts/abi_bindings.sh

- name: Print diff
run: git --no-pager diff -- abi-bindings/**.go

- name: Fail if diff exists
run: git --no-pager diff --quiet -- abi-bindings/**.go
34 changes: 0 additions & 34 deletions .github/workflows/mock_checker.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ jobs:
submodules: recursive

- name: Run E2E Tests
run: AVALANCHEGO_BUILD_PATH=/tmp/e2e-test/avalanchego DATA_DIR=/tmp/e2e-test/data ./scripts/e2e_test.sh
run: AVALANCHEGO_BUILD_PATH=/tmp/e2e-test/avalanchego DATA_DIR=/tmp/e2e-test/data ./scripts/relayer_e2e_test.sh
Loading
Loading