forked from gnolang/gno
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Z01 timelock #1
Closed
Closed
Z01 timelock #1
Conversation
This file contains 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
Co-authored-by: deelawn <[email protected]>
Co-authored-by: deelawn <[email protected]>
Co-authored-by: deelawn <[email protected]>
Co-authored-by: deelawn <[email protected]>
Co-authored-by: deelawn <[email protected]>
- Correct admin role checks and assertions in TestSetRoleAdmin. - Fix error handling in TestAssertOrigCallerIsAdmin. - Ensure proper panic checks in TestRevokeRoleNonAdmin. - Improve role grant, revocation, and renunciation tests.
- add `p/demo/avl/pager` - update `r/demo/users` Hey reviewers, in addition to what you wanted to review, I'm specifically curious if you have any better API/usage ideas. Example: https://github.com/gnolang/gno/pull/2584/files#diff-8d5cbbe072737a7f288f74adcaaace11cacc3d31264e6a001515fcae824394e2R33 Related with gnolang#447, gnolang#599, gnolang#868 --------- Signed-off-by: moul <[email protected]> Co-authored-by: Antonio Navarro Perez <[email protected]> Co-authored-by: Leon Hudak <[email protected]>
…#2896) closes: gnolang#2889 <!-- please provide a detailed description of the changes made in this pull request. --> <details><summary>Contributors' checklist...</summary> - [ ] Added new tests, or not needed, or not feasible - [ ] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [ ] Updated the official documentation or not needed - [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [ ] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests - [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). </details>
`actions/setup-go` requires `actions/checkout` to read the `go.sum` file. ![CleanShot 2024-11-08 at 11 55 28@2x](https://github.com/user-attachments/assets/9014b6f4-d415-487a-a624-d5879e69d2c2) Signed-off-by: moul <[email protected]>
Note: I'm uncertain about what will happen after the merge. Fixes gnolang#3085 Addresses gnolang#3003 --------- Signed-off-by: moul <[email protected]> Co-authored-by: Morgan <[email protected]>
…+ rename and use `gnomod.ModCachePath` + tmp `GNOHOME` in main tests (gnolang#3083) - In `gno clean`, run the `-modcache` case before checking for presence of a `gno.mod` to allow to run `gno clean -modcache` from anywhere (like go) - Refactor `gno clean -modcache` to use the `gnomod.GetGnoModPath` helper to get the modcache path - Rename `gnomod.GetGnoModPath` -> `gnomod.ModCachePath` - Improve `gno` cmd tests by using a tmp `GNOHOME` instead of the system one <details><summary>Contributors' checklist...</summary> - [ ] Added new tests, or not needed, or not feasible - [ ] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [ ] Updated the official documentation or not needed - [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [ ] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests </details> --------- Signed-off-by: Norman Meier <[email protected]>
Lightweight `Render.path` parsing and link generation library with an idiomatic API, closely resembling that of `net/url`. --------- Signed-off-by: moul <[email protected]>
## Description This PR adds the initial `test5.gno.land` deployment params. List of transaction changes as opposed to current `master` examples: gnolang@2e9f5ce - **131 txs in the `genesis.json`** All validator entities added: - @r3v4s ✅ - @D4ryl00 ✅ - @sw360cab ✅ - @mazzy89 ✅ - @n0izn0iz ✅ - @albttx ✅ Release we will use for the initial `test5.gno.land` deployment: https://github.com/gnolang/gno/pkgs/container/gno%2Fgnoland/303668315?tag=chain-test5.0 Closes gnolang#3061 <details><summary>Contributors' checklist...</summary> - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [ ] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests </details> --------- Signed-off-by: D4ryl00 <[email protected]> Signed-off-by: Norman Meier <[email protected]> Co-authored-by: Sergio Maria Matone <[email protected]> Co-authored-by: Rémi BARBERO <[email protected]> Co-authored-by: Blake <[email protected]> Co-authored-by: Salvatore Mazzarino <[email protected]> Co-authored-by: n0izn0iz <[email protected]> Co-authored-by: albttx <[email protected]>
) # Description Current event(emit) code in p/grc721 really doesn't emits event. Therefore, modified code to emit the events. And similar to gnolang#2749, made event type for each function to be unique. <!-- please provide a detailed description of the changes made in this pull request. --> <details><summary>Contributors' checklist...</summary> - [ ] Added new tests, or not needed, or not feasible - [ ] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [ ] Updated the official documentation or not needed - [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [ ] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests </details>
- [x] add `r/sys/params` - [x] add `genesis/genesis_params.toml` - [x] port some existing configurations - [x] open issue: add LRU lazy caching with instant invalidation using a transient store (gnolang#3023) Depends on gnolang#2920 Depends on gnolang#3003 (cherry-picked) Blocking gnolang#2911 --------- Signed-off-by: moul <[email protected]> Co-authored-by: Morgan <[email protected]>
This PR extracts the grc20 refactor from gnolang#2551, which is a meta PR containing several contract improvements and additions that depend on new Gnovm features that haven't been merged yet. Please review this grc20 refactor with a focus on its API. Several valuable comments can be found in gnolang#2551. Additionally, you can discover new contracts using grc20 in gnolang#2551, such as `minidex`, `atomicswap`, `grc20reg`, `test20`, and `vault`. Addresses gnolang#1832 --------- Signed-off-by: moul <[email protected]> Co-authored-by: Morgan <[email protected]> Co-authored-by: Morgan Bazalgette <[email protected]> Co-authored-by: Leon Hudak <[email protected]>
Haystack is a permissionless , immutable, content-addressed, append-only, fixed-length key-value store for small payloads. This is an experiment to port over a storage and validation implementation of a tool I'd written several years ago called [haystack](https://github.com/nomasters/haystack). My goal in porting this over to gno is to provide a simple, correct, and test covered implementation that is composable with other tools I plan to port over as well. ## Overview You store a needle in the haystack. A Needle is 192 bytes. It is composed of 32 bytes for a sha256 hash, and the 160 byte fixed-length payload. ``` hash | payload ---------|---------- 32 bytes | 160 bytes ``` The Haystack storage server supports two calls, other than Render, you may "Add" a needle, by its hex-encoded string, or you may "Get" a needle by its hex encoded hash. The add operation ensures that the needle is valid and that it has not been added to the storage before. The Get operation will return the full hex encoded needle if the hash exists in the database, otherwise it will panic. The structure is broken down into 2 packages and 1 very simple realm ### packages - https://gno.land/p/demo/haystack/needle/ - https://gno.land/p/demo/haystack/ ### realm - https://gno.land/r/demo/haystack ## How to Try it out? You can generate your own synthetic needle from the CLI by using this magical one-liner. ```shell ➜ ~ (dd if=/dev/urandom bs=160 count=1 2>/dev/null | tee >(sha256sum | cut -d' ' -f1) | od -An -t x1) | tr -d ' \n' 5d82091003a6749b46a96c38b2597ca96e9b0b272594249099dcf2ade188346679ca753999661820dad7beb351559c89a275ed4935a82245fda290906670ec7535b0b856dfccadd62e5f5399892455d2b524724ffdef8e58be03e9da4762c6ab582ce91c29a9e26ea9cc38b66953fdc425ad37baeb12c712e049ae6d456e682b6b63eea74ebf7a9d506ba486d08c9c54c5161d38a7fbc5fcbb1cdac370682ad6a59579167fd1aa1cd1fc109660a7eba36775d6b06058d72aa57debe63d0144b8 ``` This leverages `dd`, `/dev/urandom`, `tee`, `cut`, `od`, and `tr` to generate a properly formatted hex-encoded needle. ### Getting a needle I've already stored the above needle in Haystack, so you can read it by running this command from the CLI ```shell gnokey maketx call -pkgpath "gno.land/r/demo/haystack" \ -func "Get" \ -gas-fee 1000000ugnot \ -gas-wanted 2000000 \ -send "" \ -broadcast \ -chainid "portal-loop" \ -args "5d82091003a6749b46a96c38b2597ca96e9b0b272594249099dcf2ade1883466" \ -remote "https://rpc.gno.land:443" \ $YOUR_WALLET_ADDRESS ``` <details><summary>Contributors' checklist...</summary> - [X] Added new tests, or not needed, or not feasible - [X] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [X] Updated the official documentation or not needed - [X] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [X] Added references to related issues and PRs - [X] Provided any useful hints for running manual tests </details>
github-actions
bot
added
🧾 package/realm
📦 🤖 gnovm
📦 🌐 tendermint v2
📦 ⛰️ gno.land
labels
Nov 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Just TEST for fix CI
codecov