-
Notifications
You must be signed in to change notification settings - Fork 263
feat!: cosmwasm #2041
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
Open
troian
wants to merge
1
commit into
main
Choose a base branch
from
wasm
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat!: cosmwasm #2041
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| name: build-contracts | ||
| description: "Builds all cosmwasm contracts" | ||
| --- | ||
| # Instructions | ||
| When requested, execute [make build-contracts] from the project root directory. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| --- | ||
| name: vanity | ||
| description: "Registers node major version vanity URL in the sibling vanity repo" | ||
| --- | ||
| # Instructions | ||
|
|
||
| Register the current node major version as a vanity URL in the `github.com/com/akash-network/vanity` repo. | ||
|
|
||
| ## Steps | ||
|
|
||
| 1. **Read the major version** from `go.mod` in this repo. Extract the version suffix from the module path (e.g. `pkg.akt.dev/node/v2` → `v2`). If the module path has no version suffix (v0/v1), abort — no vanity entry is needed. | ||
|
|
||
| 2. **Get the current git branch name** using `git rev-parse --abbrev-ref HEAD`. | ||
|
|
||
| 3. **Open `vanity/vangen.json`** and check if a repository entry with `"prefix": "node/vN"` already exists (where `vN` is the version from step 1). If it exists, inform the user and abort. | ||
|
|
||
| 4. **Add a new entry** to the `repositories` array in `vanity/vangen.json`: | ||
| ```json | ||
| { | ||
| "prefix": "node/vN", | ||
| "type": "git", | ||
| "main": true, | ||
| "url": "https://github.com/akash-network/node", | ||
| "source": { | ||
| "home": "https://github.com/akash-network/node", | ||
| "dir": "https://github.com/akash-network/node/tree/BRANCH{/dir}", | ||
| "file": "https://github.com/akash-network/node/blob/BRANCH{/dir}/{file}#L{line}" | ||
| }, | ||
| "website": { | ||
| "url": "https://github.com/akash-network/node" | ||
| } | ||
| } | ||
| ``` | ||
| Replace `vN` with the detected version and `BRANCH` with the detected branch name. Place the entry after the last existing `node` entry. | ||
|
|
||
| 5. **Run `make vangen`** in `vanity` to regenerate HTML files. | ||
|
|
||
| 6. **Verify** that `vanity/node/vN/index.html` was created and contains the correct `go-import` and `go-source` meta tags pointing to the detected branch. Also verify that existing `vanity/node/index.html` and any `vanity/node/vN/index.html` is unchanged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,18 @@ | ||
| GO111MODULE=on | ||
| CGO_ENABLED=1 | ||
|
|
||
| KIND_VERSION=0.11.1 | ||
| ROOT_DIR=${AKASH_ROOT} | ||
|
|
||
| AKASH_DEVCACHE_BASE=${AKASH_ROOT}/.cache | ||
| AKASH_DEVCACHE=${AKASH_DEVCACHE_BASE} | ||
| AKASH_DEVCACHE_BIN=${AKASH_DEVCACHE}/bin | ||
| AKASH_DEVCACHE_LIB=${AKASH_DEVCACHE}/lib | ||
| AKASH_DEVCACHE_INCLUDE=${AKASH_DEVCACHE}/include | ||
| AKASH_DEVCACHE_VERSIONS=${AKASH_DEVCACHE}/versions | ||
| AKASH_DEVCACHE_NODE_MODULES=${AKASH_DEVCACHE} | ||
| AKASH_DEVCACHE_NODE_BIN=${AKASH_DEVCACHE_NODE_MODULES}/node_modules/.bin | ||
| AKASH_RUN=${AKASH_DEVCACHE}/run | ||
| AKASH_RUN_BIN=${AKASH_RUN}/bin | ||
|
|
||
| CARGO_TARGET_DIR=${AKASH_DEVCACHE_BASE}/cosmwasm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,3 +34,10 @@ coverage.txt | |
| /.editorconfig | ||
|
|
||
| dev.env | ||
|
|
||
| *.test | ||
|
|
||
| # Added by cargo | ||
|
|
||
| /target | ||
| /artifacts | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.