-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* GSW-1845 fix: remove deprecated require in gno.mod * GSW-1845 refactor: separate math logic from mint() * refactor: change function name to aviod confusion - from `Mint` to `MintGns` * test: reset gns token object * chore * feat: check functino to whether emission ended or not * test: detail unit test * test: mint amount test based on height skipping * feat: condition helper * refactor: better readability * fix: tc * Update _deploy/r/gnoswap/gns/gns.gno Co-authored-by: Dongwon <[email protected]> * Update _deploy/r/gnoswap/gns/gns.gno Co-authored-by: Lee ByeongJun <[email protected]> * chore: categorize getter/setter * feat: use min64 to make caluclate logic more straightforward * test: check burn method(burnt amount) effection on mintedAmount, leftEmissionAmount * chore: simplifiy skipIfSameHeight * fix: typo * chore: comments --------- Co-authored-by: Dongwon <[email protected]> Co-authored-by: Lee ByeongJun <[email protected]>
- Loading branch information
1 parent
1e9c270
commit 38d013a
Showing
10 changed files
with
627 additions
and
222 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package gns | ||
|
||
import ( | ||
"testing" | ||
|
||
"gno.land/p/demo/grc/grc20" | ||
"gno.land/p/demo/ownable" | ||
|
||
"gno.land/r/gnoswap/v1/consts" | ||
) | ||
|
||
func testResetGnsTokenObject(t *testing.T) { | ||
t.Helper() | ||
|
||
Token, privateLedger = grc20.NewToken("Gnoswap", "GNS", 6) | ||
UserTeller = Token.CallerTeller() | ||
owner = ownable.NewWithAddress(consts.ADMIN) | ||
|
||
privateLedger.Mint(owner.Owner(), INITIAL_MINT_AMOUNT) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1 @@ | ||
module gno.land/r/gnoswap/v1/gns | ||
|
||
require ( | ||
gno.land/p/demo/grc/grc20 v0.0.0-latest | ||
gno.land/p/demo/json v0.0.0-latest | ||
gno.land/p/demo/ownable v0.0.0-latest | ||
gno.land/p/demo/ufmt v0.0.0-latest | ||
gno.land/p/demo/users v0.0.0-latest | ||
gno.land/r/demo/users v0.0.0-latest | ||
gno.land/r/demo/grc20reg v0.0.0-latest | ||
gno.land/r/gnoswap/v1/common v0.0.0-latest | ||
gno.land/r/gnoswap/v1/consts v0.0.0-latest | ||
) |
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
Oops, something went wrong.