gnolang / gno

Gno: An interpreted, stack-based Go virtual machine to build succinct and composable apps + Gno.land: a blockchain for timeless code and fair open-source
https://gno.land/
Other
841 stars 342 forks source link

feat: add r/demo/bar20 example #2388

Closed moul closed 1 week ago

moul commented 1 week ago
// Package bar20 is similar to foo20 but exposes a safe-object that can be used
// by `maketx run`, another contract importing foo20, and in the future when
// we'll support `maketx call Token.XXX`.

This package currently has limited functionality, but it should become more useful in the future.

I'm using it to demonstrate the rationale for having two implementations in the grc20 package - one with a banker, and one with a safe object.

Related with #2314