Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: awfuchs/gno

Tags

v0.1.1

Toggle v0.1.1's commit message

Verified

This tag was signed with the committer’s verified signature.
zivkovicmilos Miloš Živković
Release v0.1.1 - hotfix for test4.gno.land!

v0.1.0

Toggle v0.1.0's commit message

Verified

This tag was signed with the committer’s verified signature.
zivkovicmilos Miloš Živković
Release v0.1.0 - test4.gno.land launch!

v0.1.0-nightly.20240707

Toggle v0.1.0-nightly.20240707's commit message

Partially verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
feat(examples): refactor grc20 (gnolang#2529)

Main changes:
- rename `AdminToken` -> `Banker`
- rename `GRC20` -> `Token`
- remove unused helpers
- remove vault (temporarily, will be reimplemented)
- remove the returner ˋerror` when unnecessary
- use `std.Emit`
- use uassert for testing
- better file naming and organization for improved readability

Fixes gnolang#2294
Replaces gnolang#2314 (h/t @leohhhn)
~Depends on gnolang#2534~
BREAKING CHANGE

---------

Signed-off-by: moul <[email protected]>
Co-authored-by: Leon Hudak <[email protected]>

v0.1.0-nightly.20240627

Toggle v0.1.0-nightly.20240627's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix(tm2/std)!: use snake_case JSON fields for MemFile and MemPackage (g…

…nolang#2019)

This PR changes the MemFile and MemPackage to use `snake_case` fields
for their JSON key names. This matches what all other objects in
transactions do. A new test ensures that no transaction objects within
the VM keeper have uppercase runes within their exported json fields.

**BREAKING CHANGE:** old `m_addpkg` and `m_run` transactions will stop
working. Clients will need to update accordingly, and this change needs
to be synced like gnolang#1939.

cc/ @zivkovicmilos @gnolang/berty @gnolang/onbloc

---------

Co-authored-by: Miloš Živković <[email protected]>

v0.1.0-nightly.20240620

Toggle v0.1.0-nightly.20240620's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix(examples): update /r/demo/bar20/gno.mod (gnolang#2398)

<!-- 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>
Update /r/demo/bar20/gno.mod because of failing pipeline

v0.1.0-nightly.20240604

Toggle v0.1.0-nightly.20240604's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
chore(gnovm): move invalid labels tests to tests/files/ (gnolang#2058)

See-also https://github.com/gnolang/gno/pull/1877/files#r1568968846

v0.0.1-dev.2024.06.01

Toggle v0.0.1-dev.2024.06.01's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: improve missing config error message (gnolang#2247)

<!-- please provide a detailed description of the changes made in this
pull request. -->
If the config file can't be found when running `gnoland start`, then the
error message should tell me how to fix this by running `gnoland config
init`.
<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
- [x] 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>

v0.1.0-nightly.20240523

Toggle v0.1.0-nightly.20240523's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: Change goreleaser secret name (gnolang#2171)

v0.0.1-dev.2024.05.01

Toggle v0.0.1-dev.2024.05.01's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat(gnovm, tm2): implement event emission with `std.Emit` (gnolang#1653

)

# Description

Succeed in my predecessor's legacy.

I have implemented the output to show the path where the event occurred,
as discussed in gnolang#1833. Also made it print the timestamp or block height
together.

## Key Changes

In this change, event emission functionality has been added to the Gno.
The main changes include:

1. Introducing of the `emitEvent` function:
- The `emitEvent` function emits an event based on the given type and
attributes
    - Attributes are passed as an even-length of array key-value pairs
- When emitting an event, the current _package path_, _timestamp_, and
_block height_ information are recorded along with the event(discussed
in gnolang#1833). This metadata provides additional context about where the
event occured.

2. Additional of event-related types and functions in the `sdk`
packages:
- `NewEvent` creates a new `Event` object based on the provided
information.
- `ArributedEvent` struct contains informations such as event type,
package path, block height, timestamp and attributes. But I'm not sure
how to utilize the `eventType` yet. So, I've just put it as a
placeholder which will be a disscussion for another time.
- `EventArribute` represents an attribute of an event and consists of a
key-value pair
- `NewEventArribute` creates a new `EventAttribute` object based on the
given key-value pair.

## Example

```go
package ee

import (
	"std"
)

const (
	EventSender = "sender"
	EventReceiver = "receiver"
)

func Sender(){
    SubSender()
    SubReceiver()
}

func SubSender() {
    std.Emit(
        EventSender,
		"key1", "value1",
		"key2", "value2",
		"key3", "value3",
    )  
}

func SubReceiver() {
    std.Emit(
        EventReceiver,
        "bar", "baz",
    )
}

func Receiver() {
    std.Emit(
        EventReceiver,
        "foo", "bar",
    )
}
```

### Result

```json
[
  "{\"type\":\"sender\",\"pkg_path\":\"gno.land/r/demo/ee\",\"identifier\":\"SubSender\",\"timestamp\":1713846501,\"attributes\":[{\"key\":\"key1\",\"value\":\"value1\"},{\"key\":\"key2\",\"value\":\"value2\"},{\"key\":\"key3\",\"value\":\"value3\"}]}",
  "{\"type\":\"receiver\",\"pkg_path\":\"gno.land/r/demo/ee\",\"identifier\":\"SubReceiver\",\"timestamp\":1713846501,\"attributes\":[{\"key\":\"bar\",\"value\":\"baz\"}]}"
]
```

## Related Issue/PR

gnolang#575 emit & event built-in functions (@r3v4s)
gnolang#853 feat: event & emit in gno (@anarcher) <- previous work.
gnolang#975 [META] Gno Wishlist / Feature Request Dump (@zivkovicmilos)

---------

Co-authored-by: n3wbie <[email protected]>
Co-authored-by: Manfred Touron <[email protected]>

v0.0.1-dev.2024.04.01

Toggle v0.0.1-dev.2024.04.01's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: hardcode max vm cycles in keeper (gnolang#1807)

<!-- please provide a detailed description of the changes made in this
pull request. -->
This hardcodes the maximum VM cycles in the keeper to ten million, the
same that is currently being used from genesis. It doesn't seem like
there is a reason why we should want people to be able to adjust this.
<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
- [x] 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>