Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update v4 #470

Merged
merged 351 commits into from
Aug 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
351 commits
Select commit Hold shift + click to select a range
b4ea6e0
Merge branch 'master' into marston/investigating-burns
TheMarstonConnell Nov 15, 2023
4d15b9e
some adjustments to file object
TheMarstonConnell Nov 15, 2023
719f796
filetree proto updates
karnthis Nov 15, 2023
485466d
jklmint proto updates
karnthis Nov 15, 2023
81d799e
notification proto updates, needs overhaul pass
karnthis Nov 15, 2023
88d078f
oracle proto updates
karnthis Nov 15, 2023
47b9cf9
rns proto updates
karnthis Nov 15, 2023
f67fb13
storage proto updates
karnthis Nov 15, 2023
fb9c78d
proto formatting and comment updates and standardization (#382)
TheMarstonConnell Nov 15, 2023
0deba2b
Update canary.yml
TheMarstonConnell Nov 15, 2023
0bd35f1
Canary Action to Go 1.21 (#383)
dahn510 Nov 15, 2023
e9ae9fb
uno mas
TheMarstonConnell Nov 16, 2023
3919a46
proof is failing
TheMarstonConnell Nov 17, 2023
4592899
looks like problem is solved 😎
TheMarstonConnell Nov 18, 2023
8715b6e
Merge branch 'master' into marston/investigating-burns
TheMarstonConnell Nov 18, 2023
2fac3ab
fixing tests due to new reward window tweaks
TheMarstonConnell Nov 18, 2023
97af6f1
lint :(
TheMarstonConnell Nov 18, 2023
6b1aa68
v5 upgrade handler for burn window params
TheMarstonConnell Nov 20, 2023
84a5f7b
Fix: Providers no longer burn files randomly (#384)
TheMarstonConnell Nov 20, 2023
ac22b41
updating go version
TheMarstonConnell Nov 20, 2023
b401bda
reformat struct
TheMarstonConnell Nov 20, 2023
ed7d7e2
adding some migration logging
TheMarstonConnell Nov 20, 2023
53022d5
adjusting param stuff
TheMarstonConnell Nov 20, 2023
cbf17a8
adjusting some param safety checks
TheMarstonConnell Nov 20, 2023
122f895
fixing some script stuff
TheMarstonConnell Nov 20, 2023
f8bf897
sleeping
TheMarstonConnell Nov 20, 2023
ad69679
script stuff
TheMarstonConnell Nov 20, 2023
1bb5544
more script stuff
TheMarstonConnell Nov 21, 2023
ae5dd50
adjusting gov script
TheMarstonConnell Nov 21, 2023
8bad2b6
adjusting files query
TheMarstonConnell Nov 22, 2023
61a4a34
lint
TheMarstonConnell Nov 22, 2023
1898a32
hopefully giving me some insights
TheMarstonConnell Nov 22, 2023
2421bca
more logs
TheMarstonConnell Nov 22, 2023
5de0507
pointers maybe?
TheMarstonConnell Nov 22, 2023
cb91ecc
more logging again
TheMarstonConnell Nov 22, 2023
4389621
goofed
TheMarstonConnell Nov 22, 2023
fd3e33b
goofed
TheMarstonConnell Nov 22, 2023
7c80a83
better logging
TheMarstonConnell Nov 22, 2023
d732aca
even more logging to figure out why my merkle and cid swapped places
TheMarstonConnell Nov 22, 2023
cbc4754
script adjustment
TheMarstonConnell Nov 22, 2023
2730e4c
script adjustment pt 2
TheMarstonConnell Nov 22, 2023
25346be
script adjustment pt 3
TheMarstonConnell Nov 22, 2023
7d3fbb4
clearing out debugs
TheMarstonConnell Nov 22, 2023
a320dd2
fixed a whole bunch of testing nonsense
TheMarstonConnell Nov 23, 2023
1dafb76
v4 Upgrade Handler (#385)
TheMarstonConnell Nov 23, 2023
300d90a
first pass
TheMarstonConnell Nov 27, 2023
23424a6
type checking
TheMarstonConnell Nov 27, 2023
6ef457b
module changes
TheMarstonConnell Nov 27, 2023
7733271
needs to lint tests
TheMarstonConnell Nov 27, 2023
cd2767e
linted tests
TheMarstonConnell Nov 28, 2023
1592d4a
fixed unit tests
TheMarstonConnell Nov 28, 2023
3197815
docker: update go
BiPhan4 Nov 29, 2023
ca1671f
docker: update package list and install jq
BiPhan4 Nov 29, 2023
f7d07e3
added private notification field
TheMarstonConnell Nov 29, 2023
19917ee
adding unix time comment
TheMarstonConnell Nov 29, 2023
0d1bd59
added json verification on storage notes while I'm at it
TheMarstonConnell Nov 29, 2023
f4a52b8
update script: ica host can execute all modules' messages. Getting ma…
BiPhan4 Nov 29, 2023
ea0b3a4
fixed some query protos
TheMarstonConnell Nov 30, 2023
19bce6a
Notification Module rework (#386)
TheMarstonConnell Nov 30, 2023
c766cdb
changed time to unix microseconds
TheMarstonConnell Nov 30, 2023
c44526a
Merge branch 'master' into marston/notification-rework
TheMarstonConnell Nov 30, 2023
ef1b3bb
fixed test for clarity
TheMarstonConnell Nov 30, 2023
52946cf
Notifications: changed time to unix microseconds (#387)
TheMarstonConnell Nov 30, 2023
4eda315
Bump actions/setup-go from 4 to 5
dependabot[bot] Dec 7, 2023
7367cb2
Bump actions/setup-go from 4 to 5 (#389)
TheMarstonConnell Dec 7, 2023
4c00b87
merge from master
BiPhan4 Dec 13, 2023
1f40a4d
Bump github/codeql-action from 2 to 3
dependabot[bot] Dec 14, 2023
fe59ed4
merge from master
BiPhan4 Dec 14, 2023
ae7a8b6
merge from ica
BiPhan4 Dec 14, 2023
2336e9a
update script: give ica host execute perms for all modules' messages
BiPhan4 Dec 14, 2023
4bfa4ee
adding new api field
TheMarstonConnell Dec 15, 2023
621a370
Merge branch 'master' into marston/unique-user-api
TheMarstonConnell Dec 15, 2023
3c69beb
fixing proto compat
TheMarstonConnell Dec 15, 2023
577875a
Bump github/codeql-action from 2 to 3 (#390)
TheMarstonConnell Dec 15, 2023
c6d64c5
Bump actions/upload-artifact from 3 to 4
dependabot[bot] Dec 15, 2023
67d7e8f
Bump actions/upload-artifact from 3 to 4 (#393)
TheMarstonConnell Dec 15, 2023
6688421
Bump actions/download-artifact from 3 to 4
dependabot[bot] Dec 15, 2023
8d1fc79
Bump actions/download-artifact from 3 to 4 (#394)
TheMarstonConnell Dec 15, 2023
b4b53dd
buy storage better error messages
TheMarstonConnell Dec 21, 2023
7eaef15
better file tree postfile errors
TheMarstonConnell Dec 22, 2023
cbb1742
more post file errors
TheMarstonConnell Dec 22, 2023
3198fef
mac vs linux compatibility
karnthis Dec 22, 2023
bcbbb69
adding queries for files by merkle and owner
TheMarstonConnell Dec 27, 2023
f626ba2
lint
TheMarstonConnell Dec 27, 2023
fc71915
API: All files matching merkle (#397)
TheMarstonConnell Dec 28, 2023
5eb5668
Merge branch 'master' into marston/better-errors
TheMarstonConnell Dec 28, 2023
fd29f7e
error pattern matching was too strict
TheMarstonConnell Dec 28, 2023
d07291e
Better Errors (#396)
TheMarstonConnell Dec 28, 2023
ff1a96a
adding missing pagination to oracle query
karnthis Dec 29, 2023
cd05f46
fixing up the pagination
TheMarstonConnell Dec 29, 2023
97bf356
Proto tweaks (#398)
TheMarstonConnell Dec 29, 2023
e911354
use local ibc-go which has better logging
BiPhan4 Jan 2, 2024
2448068
add ibc-go-442-bp to root for docker's build context
BiPhan4 Jan 2, 2024
0e4b9fc
update custom ibc with more logging. Rebuild docker image
BiPhan4 Jan 4, 2024
7029a91
update custom ibc-go with more logging. Update docker image to 0.0.3
BiPhan4 Jan 4, 2024
845ddaa
fix: log allowMsgs even if empty. Update docker image to 0.0.4
BiPhan4 Jan 4, 2024
6aea42d
add ica devnet script. Compatible with strangelove's e2e test suite
BiPhan4 Jan 9, 2024
26a6d3f
Merge branch 'master' into update-docker
BiPhan4 Jan 9, 2024
dbad16a
complete ica devnet script
BiPhan4 Jan 12, 2024
f32a7df
docker file uses ica devnet script
BiPhan4 Jan 12, 2024
df5cfe0
try running ica devnet script in background of container
BiPhan4 Jan 12, 2024
44fe39b
fix: incorrect syntax for starting script in background of container
BiPhan4 Jan 12, 2024
1b1e2b1
use update ibc-go with more logging
BiPhan4 Jan 16, 2024
1a3433c
Update README.md
TheMarstonConnell Jan 16, 2024
d1191c9
use updated ibc-go with more better logging
BiPhan4 Jan 18, 2024
3ed1e56
fix: logger now makes unique logs whenever called
BiPhan4 Jan 18, 2024
233ac9a
logger now writes to file in append mode if already exists
BiPhan4 Jan 18, 2024
32c99f5
ibc-go update: log for unmarshalling errors from data to cosmosTx
BiPhan4 Jan 19, 2024
3d86e25
Bump codecov/codecov-action from 3.1.4 to 3.1.5 (#405)
dependabot[bot] Jan 29, 2024
9f26724
fixing ledger? (#403)
TheMarstonConnell Jan 29, 2024
6b9b005
Fix: find file works again (#399)
TheMarstonConnell Jan 29, 2024
ea121ed
adjusting test
TheMarstonConnell Jan 29, 2024
08ca7a2
API: Query Price Check V4 (#407)
TheMarstonConnell Jan 29, 2024
4d6d1a1
Bump codecov/codecov-action from 3.1.5 to 4.0.0 (#409)
dependabot[bot] Feb 1, 2024
bf6bdd1
use updated ibc-go with more logging
BiPhan4 Feb 1, 2024
a816061
more logging for ibc-go
BiPhan4 Feb 1, 2024
a4305d0
log ica host keeper routes. Non registered
BiPhan4 Feb 6, 2024
b39cf31
fix: actually log ica host keeper routes, not the controller's routes
BiPhan4 Feb 6, 2024
0cb3b00
registering ica messages (#412)
TheMarstonConnell Feb 6, 2024
fa7c560
log mm router after being registered
BiPhan4 Feb 6, 2024
de2cc82
log msg service router
BiPhan4 Feb 6, 2024
b493692
Bump codecov/codecov-action from 4.0.0 to 4.0.1 (#410)
dependabot[bot] Feb 12, 2024
b39f40a
removing forcing user to post to specific providers
TheMarstonConnell Feb 19, 2024
169e982
forward porting deals from v3 to v4
TheMarstonConnell Mar 1, 2024
7f9d379
init account on buy (#421)
TheMarstonConnell Mar 5, 2024
8f5fcf2
Econ v2 Upgrade (#395)
TheMarstonConnell Mar 5, 2024
80b784b
Merge branch 'master' into marston/forward-porting-deals
TheMarstonConnell Mar 5, 2024
11e13df
fix dev grants
TheMarstonConnell Mar 6, 2024
06d2457
fixing stupid 1 indexed pagination for some reason
TheMarstonConnell Mar 18, 2024
8d5cc2f
fixing nil
TheMarstonConnell Mar 18, 2024
1755477
Bump actions/checkout from 4.1.1 to 4.1.2 (#424)
dependabot[bot] Mar 19, 2024
4f3454f
Bump softprops/action-gh-release from 1 to 2 (#423)
dependabot[bot] Mar 26, 2024
8b5523e
Bump codecov/codecov-action from 4.0.1 to 4.1.1 (#425)
dependabot[bot] Mar 26, 2024
b6ed805
Bump golangci/golangci-lint-action from 3 to 4 (#413)
dependabot[bot] Mar 27, 2024
1fb7a39
Merge branch 'master' into ica
BiPhan4 Apr 3, 2024
066afcf
remove local dev dependencies from go mod
BiPhan4 Apr 3, 2024
6c4cf98
remove logging from app.go
BiPhan4 Apr 3, 2024
0c92bbf
remove custom ica txs module
BiPhan4 Apr 3, 2024
7729910
adjust test count
TheMarstonConnell Apr 3, 2024
bcedde2
lint
TheMarstonConnell Apr 3, 2024
6ef6790
Enabling Interchain Accounts (#428)
TheMarstonConnell Apr 3, 2024
28ce0a2
adding v4 events
TheMarstonConnell Apr 3, 2024
404c6ef
adding report unit test cases
TheMarstonConnell Apr 3, 2024
909ac75
fixing upgrade test
TheMarstonConnell Apr 4, 2024
9273fbd
Merge branch 'master' into marston/forward-porting-deals
TheMarstonConnell Apr 4, 2024
9789b7f
forward porting deals from v3 to v4 (#422)
TheMarstonConnell Apr 4, 2024
2ed9218
Merge branch 'master' into marston/v4-remove-force
TheMarstonConnell Apr 4, 2024
3e7b4ce
removing > 1 provider requirements
TheMarstonConnell Apr 4, 2024
a13f5b5
v4: removing forcing user to post to specific providers (#414)
TheMarstonConnell Apr 4, 2024
0b12149
merge main
TheMarstonConnell Apr 4, 2024
559abdd
undo ledger go downgrade
TheMarstonConnell Apr 4, 2024
c489687
undo cosmos ledger downgrade
TheMarstonConnell Apr 4, 2024
5c21cbe
Merge branch 'master' into marston/unique-user-api
TheMarstonConnell Apr 4, 2024
0abf4ca
API: add unique user to storage stats (#392)
TheMarstonConnell Apr 4, 2024
bdd4a7f
Merge branch 'master' into marston/v4-events
TheMarstonConnell Apr 4, 2024
23338fd
Bump codecov/codecov-action from 4.1.1 to 4.2.0
dependabot[bot] Apr 4, 2024
d57b193
Bump codecov/codecov-action from 4.1.1 to 4.2.0 (#430)
TheMarstonConnell Apr 4, 2024
46dac8a
Merge branch 'master' into marston/v4-events
TheMarstonConnell Apr 4, 2024
5e4a32c
fixing sequoia test script
TheMarstonConnell Apr 4, 2024
6e76ab4
Merge branch 'master' into marston/v4-events
karnthis Apr 4, 2024
bb0971d
v4: adding events (#429)
karnthis Apr 4, 2024
4af1ba1
ibc go patch
TheMarstonConnell Apr 5, 2024
03fc756
Bump codecov/codecov-action from 4.2.0 to 4.3.0
dependabot[bot] Apr 10, 2024
57ac95b
Bump codecov/codecov-action from 4.2.0 to 4.3.0 (#435)
TheMarstonConnell Apr 10, 2024
54d26bf
v4 IBC-go Update (#434)
TheMarstonConnell Apr 10, 2024
2b8c003
Bump actions/checkout from 4.1.2 to 4.1.3
dependabot[bot] Apr 22, 2024
37c2f79
Bump actions/checkout from 4.1.2 to 4.1.3 (#437)
TheMarstonConnell Apr 22, 2024
90fe4bf
Bump actions/checkout from 4.1.3 to 4.1.4
dependabot[bot] Apr 25, 2024
26ee87e
Bump golangci/golangci-lint-action from 4 to 5
dependabot[bot] Apr 25, 2024
e035a81
Bump actions/checkout from 4.1.3 to 4.1.4 (#438)
TheMarstonConnell May 1, 2024
630613f
Bump golangci/golangci-lint-action from 4 to 5 (#439)
TheMarstonConnell May 1, 2024
50186ce
Bump codecov/codecov-action from 4.3.0 to 4.3.1
dependabot[bot] May 1, 2024
d61d12c
Bump codecov/codecov-action from 4.3.0 to 4.3.1 (#440)
TheMarstonConnell May 1, 2024
5e55afa
Bump actions/checkout from 4.1.4 to 4.1.5
dependabot[bot] May 7, 2024
c563260
Bump golangci/golangci-lint-action from 5 to 6
dependabot[bot] May 7, 2024
afb1c5d
Bump actions/checkout from 4.1.4 to 4.1.5 (#441)
TheMarstonConnell May 7, 2024
e08a7de
Bump golangci/golangci-lint-action from 5 to 6 (#442)
TheMarstonConnell May 7, 2024
5e93feb
ica test upgrade handler
TheMarstonConnell May 7, 2024
44bb139
adding common events
TheMarstonConnell May 8, 2024
14af1a4
adding better events
TheMarstonConnell May 10, 2024
d986d61
Bump codecov/codecov-action from 4.3.1 to 4.4.0
dependabot[bot] May 14, 2024
abb1488
Bump codecov/codecov-action from 4.3.1 to 4.4.0 (#448)
TheMarstonConnell May 15, 2024
155dfcb
merge
TheMarstonConnell May 15, 2024
3b33be7
Adding Common Events (#445)
TheMarstonConnell May 15, 2024
8aee4c2
adding upgrade handler for alpha3
TheMarstonConnell May 15, 2024
5d18d79
Bump actions/checkout from 4.1.5 to 4.1.6
dependabot[bot] May 17, 2024
d1d0b73
---
dependabot[bot] May 21, 2024
0c7fc0b
Bump codecov/codecov-action from 4.4.0 to 4.4.1 (#450)
TheMarstonConnell May 24, 2024
af8a866
Bump actions/checkout from 4.1.5 to 4.1.6 (#449)
TheMarstonConnell May 24, 2024
aaceb1d
Bump codecov/codecov-action from 4.4.1 to 4.5.0
dependabot[bot] Jun 13, 2024
dda8702
Bump actions/checkout from 4.1.6 to 4.1.7
dependabot[bot] Jun 13, 2024
76db43b
Bump codecov/codecov-action from 4.4.1 to 4.5.0 (#451)
TheMarstonConnell Jun 14, 2024
3cada89
Bump actions/checkout from 4.1.6 to 4.1.7 (#452)
TheMarstonConnell Jun 14, 2024
9ece880
bump capability
Jun 20, 2024
9ed3ade
v4 refactoring
TheMarstonConnell Jun 26, 2024
88ef7f8
remove todo comment
TheMarstonConnell Jun 26, 2024
c3906ae
bump capability (#453)
TheMarstonConnell Jun 27, 2024
15480a5
bump to v4 module
TheMarstonConnell Jun 27, 2024
da61018
Merge branch 'master' into marston/finishing-v4
TheMarstonConnell Jun 27, 2024
c23b732
Finishing v4 (#454)
TheMarstonConnell Jun 27, 2024
568304f
querying notes, probably bad to leave open
TheMarstonConnell Jun 27, 2024
f9523b5
updating go to 1.22.2
TheMarstonConnell Jun 27, 2024
2c7c3b8
updating go to 1.22.2 (#456)
TheMarstonConnell Jun 27, 2024
3ef3dec
Merge branch 'master' into marston/query-by-notes
TheMarstonConnell Jun 27, 2024
de5e0ad
storage module version bump
TheMarstonConnell Jun 28, 2024
8cf7637
module version bumps
TheMarstonConnell Jun 28, 2024
d84ddb5
adding logging
TheMarstonConnell Jun 28, 2024
ad05543
?
TheMarstonConnell Jun 28, 2024
1103206
?
TheMarstonConnell Jun 28, 2024
ad60443
??
TheMarstonConnell Jun 28, 2024
13fc086
???
TheMarstonConnell Jun 28, 2024
bda6ac0
????????
TheMarstonConnell Jun 28, 2024
b69c02b
???????????????
TheMarstonConnell Jun 28, 2024
2091ad2
adjusting legacy merkles
TheMarstonConnell Jun 28, 2024
d443c08
fixing unit tests with weird coin issues
TheMarstonConnell Jun 29, 2024
529598d
storage module version bump (#458)
TheMarstonConnell Jun 29, 2024
94a7d08
Merge branch 'master' into marston/query-by-notes
TheMarstonConnell Jun 29, 2024
7834ddb
Querying File Notes (#455)
TheMarstonConnell Jun 29, 2024
ce6bd32
fixing upgrade proof interval
TheMarstonConnell Jun 30, 2024
a8764c4
adding simple address query helper
TheMarstonConnell Jul 1, 2024
250294c
Merge branch 'master' into marston/v4-smodule-update
TheMarstonConnell Jul 1, 2024
bebac41
adding legacy gauge provision
TheMarstonConnell Jul 2, 2024
9ba9d47
fixing upgrade proof interval (#459)
TheMarstonConnell Jul 2, 2024
5be0fe6
v4 instructions
TheMarstonConnell Jul 2, 2024
9939177
more upgrade docs
TheMarstonConnell Jul 2, 2024
222c4c7
updating wasmvm
TheMarstonConnell Jul 9, 2024
1a252fb
bank keeper fix
TheMarstonConnell Jul 9, 2024
c733092
bank keeper upgrade fix (#461)
TheMarstonConnell Jul 9, 2024
f4d127b
Merge branch 'master' into marston/wasm126
TheMarstonConnell Jul 9, 2024
180df9d
updating wasmvm (#460)
TheMarstonConnell Jul 9, 2024
a8f32ae
updating wasmvm
TheMarstonConnell Jul 9, 2024
21e9c57
updating wasmvm
TheMarstonConnell Jul 12, 2024
1f8477a
fixing active deal nonsense
TheMarstonConnell Jul 13, 2024
eaf6e83
Fixing Queries (#462)
TheMarstonConnell Jul 13, 2024
9186c30
fixing gauges
TheMarstonConnell Jul 16, 2024
42df697
deleting empty gauges
TheMarstonConnell Jul 16, 2024
3a544f6
gauges now distribute evenly instead of a growth curve
TheMarstonConnell Jul 16, 2024
a0936c7
Fixing Payment Gauges (#463)
dahn510 Jul 16, 2024
ecef8ad
adding alpha 5 upgrade handler
TheMarstonConnell Jul 17, 2024
75b62a7
Merge branch 'master' into marston/fixing-gauges
TheMarstonConnell Jul 17, 2024
05785bc
adding alpha 5 upgrade handler (#464)
TheMarstonConnell Jul 17, 2024
9069402
updating v4 upgrade plan
TheMarstonConnell Jul 19, 2024
d66c014
Update v4.0.0.md
TheMarstonConnell Jul 21, 2024
ba7aee0
Update v4.0.0.md (#465)
TheMarstonConnell Jul 21, 2024
875a0ee
fixing open files!
TheMarstonConnell Jul 24, 2024
b13c69d
fixing open files! (#466)
TheMarstonConnell Jul 24, 2024
8be34bf
fixing inflation api
TheMarstonConnell Jul 24, 2024
69dad89
fixing inflation api (#467)
TheMarstonConnell Jul 24, 2024
4d6c88f
fixing find files
TheMarstonConnell Aug 1, 2024
40d9585
fixing find files query (#469)
dahn510 Aug 1, 2024
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
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected].0
- uses: actions/setup-go@v4
- uses: actions/[email protected].7
- uses: actions/setup-go@v5
with:
go-version: 1.20.2 # The Go version to download (if necessary) and use.
go-version: 1.22.2 # The Go version to download (if necessary) and use.
- name: Build CLI
run: go install ./...
16 changes: 8 additions & 8 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ jobs:
matrix:
os: [ubuntu-20.04, macos-latest]
steps:
- uses: actions/[email protected].0
- uses: actions/setup-go@v4
- uses: actions/[email protected].7
- uses: actions/setup-go@v5
with:
go-version: 1.20.2 # The Go version to download (if necessary) and use.
go-version: 1.22.2 # The Go version to download (if necessary) and use.
- name: Build CLI
shell: bash
run: |
make build
cp "build/canined" "canined-$RUNNER_OS"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: canined-${{runner.os}}
path: canined-${{runner.os}}
Expand All @@ -31,20 +31,20 @@ jobs:
[build-cli]
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected].0
- uses: actions/[email protected].7
- uses: EndBug/latest-tag@latest
with:
# You can change the name of the tag with this input.
# Default: 'latest'
tag-name: canary
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: canined-Linux
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: canined-macOS
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
prerelease: true
name: Canary
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cloc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/[email protected].0
- uses: actions/[email protected].7

# Runs djdefi/cloc-action
- name: Count Lines of Code (cloc)
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ jobs:

steps:
- name: Checkout repository
uses: actions/[email protected].0
uses: actions/[email protected].7

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: 'go'
queries: crypto-com/cosmos-sdk-codeql@main,security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
8 changes: 4 additions & 4 deletions .github/workflows/cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/[email protected].0
- uses: actions/setup-go@v4
- uses: actions/[email protected].7
- uses: actions/setup-go@v5
with:
go-version: 1.20.2 # The Go version to download (if necessary) and use.
go-version: 1.22.2 # The Go version to download (if necessary) and use.
- name: Get Coverage
run: |
go test ./... -timeout=30m -cover -coverprofile coverage.out
Expand All @@ -30,7 +30,7 @@ jobs:
go tool cover -func coverage3.out
rm coverage2.out
rm coverage.out
- uses: codecov/codecov-action@v3.1.4
- uses: codecov/codecov-action@v4.5.0
with:
token: ${{ secrets.CODECOV }}

8 changes: 4 additions & 4 deletions .github/workflows/golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: 1.20.2
- uses: actions/[email protected].0
go-version: 1.22.2
- uses: actions/[email protected].7
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,25 @@ jobs:
matrix:
os: [ubuntu-20.04, macos-latest]
steps:
- uses: actions/[email protected].0
- uses: actions/setup-go@v4
- uses: actions/[email protected].7
- uses: actions/setup-go@v5
with:
go-version: 1.20.2 # The Go version to download (if necessary) and use.
go-version: 1.22.2 # The Go version to download (if necessary) and use.
- name: Build CLI
shell: bash
run: |
make build
cp "build/canined" "canined-$RUNNER_OS"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: canined-${{runner.os}}
path: canined-${{runner.os}}

# MacOS-ARM64-CLI:
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/[email protected].0
# - uses: actions/setup-go@v4
# - uses: actions/[email protected].7
# - uses: actions/setup-go@v5
# with:
# go-version: 1.19 # The Go version to download (if necessary) and use.
# - name: Install xgo
Expand All @@ -47,7 +47,7 @@ jobs:
# run: |
# make build_macos_arm64_cli
# cp "canined-macos-arm64" "canined-MacOS-arm64"
# - uses: actions/upload-artifact@v3
# - uses: actions/upload-artifact@v4
# with:
# name: canined-MacOS-arm64
# path: canined-MacOS-arm64
Expand All @@ -57,7 +57,7 @@ jobs:
[native-build-cli]
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected].0
- uses: actions/[email protected].7
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
Expand All @@ -66,14 +66,14 @@ jobs:
shell: bash
run: |
echo "::set-output name=IS_PRE_RELEASE::$(echo "${{ steps.get_version.outputs.VERSION }}" | awk 'BEGIN{prerelease="false"} /beta|alpha/{prerelease="true"} END{print prerelease}')"
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: canined-Linux
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: canined-macOS
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
prerelease: ${{ steps.is_pre_release.outputs.IS_PRE_RELEASE }}
files: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test-full-app-sim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ on:
branches: ["master"]

jobs:
test:
name: Test
simtest:
name: Simulation Test
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected].0
- uses: actions/setup-go@v4
- uses: actions/[email protected].7
- uses: actions/setup-go@v5
with:
go-version: 1.20.2 # The Go version to download (if necessary) and use.
- name: Test
go-version: 1.22.2 # The Go version to download (if necessary) and use.
- name: Simulation Test
shell: bash
run: make test-sim-full-app
12 changes: 6 additions & 6 deletions .github/workflows/test-import-export-sim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ on:
branches: ["master"]

jobs:
test:
name: Test
io-sim:
name: Import Export Sim Test
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected].0
- uses: actions/setup-go@v4
- uses: actions/[email protected].7
- uses: actions/setup-go@v5
with:
go-version: 1.20.2 # The Go version to download (if necessary) and use.
- name: Test
go-version: 1.22.2 # The Go version to download (if necessary) and use.
- name: Simulation
shell: bash
run: make test-sim-import-export
6 changes: 3 additions & 3 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected].0
- uses: actions/setup-go@v4
- uses: actions/[email protected].7
- uses: actions/setup-go@v5
with:
go-version: 1.20.2 # The Go version to download (if necessary) and use.
go-version: 1.22.2 # The Go version to download (if necessary) and use.
- name: Test
shell: bash
run: make test-unit
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# syntax=docker/dockerfile:1
FROM golang:1.20
FROM golang:1.21

# Update package list and install jq
RUN apt-get update && apt-get install -y jq

WORKDIR /canine-chain
COPY . /canine-chain
RUN ls
RUN go install ./cmd/canined
CMD ["sh", "./scripts/test-node-dev.sh"]
# If the 'modify genesis' function in outpost contract works, might change this back to 'test-node-dev.sh'?
CMD ["sh", "./scripts/devnet-ica.sh"]
EXPOSE 26657
EXPOSE 26656
EXPOSE 26658
Expand Down
53 changes: 28 additions & 25 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ build_tags_comma_sep := $(subst $(empty),$(comma),$(build_tags))

# Add check to make sure we are using the proper Go version before proceeding with anything
check-go-version:
@if ! go version | grep -q "go1.20"; then \
echo "\033[0;31mERROR:\033[0m Go version 1.20 is required for compiling canined. It looks like you are using" "$(shell go version) \nThere are potential consensus-breaking changes that can occur when running binaries compiled with different versions of Go. Please download Go version 1.20 and retry. Thank you!"; \
@if ! go version | grep -q "go1.22"; then \
echo "\033[0;31mERROR:\033[0m Go version 1.21 is required for compiling canined. It looks like you are using" "$(shell go version) \nThere are potential consensus-breaking changes that can occur when running binaries compiled with different versions of Go. Please download Go version 1.22 and retry. Thank you!"; \
exit 1; \
fi

Expand Down Expand Up @@ -173,11 +173,11 @@ runsim:
###############################################################################

format-tools:
go install mvdan.cc/gofumpt@v0.5.0
go install mvdan.cc/gofumpt@v0.6.0
gofumpt -l -w .

lint: format-tools
golangci-lint run
golangci-lint run --fix

format: format-tools
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs gofumpt -w -s
Expand All @@ -188,42 +188,45 @@ format: format-tools
###############################################################################
### Protobuf ###
###############################################################################
PROTO_BUILDER_IMAGE=tendermintdev/sdk-proto-gen:v0.7
PROTO_BUILDER_CONTAINER=jackal-proto-gen
PROTO_FORMATTER_IMAGE=tendermintdev/docker-build-proto
# thanks juno ;)
protoVer=v0.7
protoImageName=tendermintdev/sdk-proto-gen:$(protoVer)
containerProtoGen=jackal-proto-gen-$(protoVer)
containerProtoGenAny=jackal-proto-gen-any-$(protoVer)
containerProtoGenSwagger=jackal-proto-gen-swagger-$(protoVer)
containerProtoFmt=jackal-proto-fmt-$(protoVer)

proto-all: proto-format proto-lint proto-gen format
proto-all: proto-format proto-lint proto-gen

proto-gen:
@echo "Generating Protobuf files"
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${PROTO_BUILDER_CONTAINER}$$"; then docker start -a $(PROTO_BUILDER_CONTAINER); else docker run --name $(PROTO_BUILDER_CONTAINER) -v $(CURDIR):/workspace --workdir /workspace $(PROTO_BUILDER_IMAGE) \
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGen}$$"; then docker start -a $(containerProtoGen); else docker run --name $(containerProtoGen) -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) \
sh ./scripts/protocgen.sh; fi

proto-linter:
@echo "Linting Protobuf files"
# @if docker ps -a --format '{{.Names}}' | grep -Eq "^${PROTO_BUILDER_CONTAINER}$$"; then docker start -a $(PROTO_BUILDER_CONTAINER); else docker run --name $(PROTO_BUILDER_CONTAINER) -v $(CURDIR):/workspace --workdir /workspace $(PROTO_BUILDER_IMAGE) \
# sh ./scripts/protolint.sh; fi
# This generates the SDK's custom wrapper for google.protobuf.Any. It should only be run manually when needed
proto-gen-any:
@echo "Generating Protobuf Any"
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGenAny}$$"; then docker start -a $(containerProtoGenAny); else docker run --name $(containerProtoGenAny) -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) \
sh ./scripts/protocgen-any.sh; fi

sh ./scripts/protolint.sh
proto-swagger-gen:
@echo "Generating Protobuf Swagger"
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGenSwagger}$$"; then docker start -a $(containerProtoGenSwagger); else docker run --name $(containerProtoGenSwagger) -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) \
sh ./scripts/protoc-swagger-gen.sh; fi

proto-format:
# @echo "Formatting Protobuf files"
# $(DOCKER) run --rm -v $(CURDIR):/workspace \
# --workdir /workspace $(PROTO_FORMATTER_IMAGE) \
# find ./ -name *.proto -exec clang-format -i {} \;

sh ./scripts/protoformat.sh


proto-swagger-gen:
@./scripts/protoc-swagger-gen.sh
@echo "Formatting Protobuf files"
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoFmt}$$"; then docker start -a $(containerProtoFmt); else docker run --name $(containerProtoFmt) -v $(CURDIR):/workspace --workdir /workspace tendermintdev/docker-build-proto \
find ./ -not -path "./third_party/*" -name "*.proto" -exec clang-format -i {} \; ; fi

proto-lint:
@$(DOCKER_BUF) lint proto --error-format=json
@$(DOCKER_BUF) lint --error-format=json

proto-check-breaking:
@$(DOCKER_BUF) breaking --against $(HTTPS_GIT)#branch=main

.PHONY: proto-all proto-gen proto-gen-any proto-swagger-gen proto-format proto-lint proto-check-breaking proto-update-deps docs

.PHONY: all install install-debug \
go-mod-cache draw-deps clean build format \
test test-all test-build test-cover test-unit test-race \
Expand Down
Loading
Loading