-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Add transfer of custom tokens naively * Mess around with Parties * feat: Add token class * this.token.transfer successfully changes balances with public key input * feat: Brute force custom token transfer * Change createUnsigned to use optional object parameter for tokens * Remove old transfer * Use Bool() for account creation fee for token accounts * Add basic mint/burn methods * wip: burn and transfer pass transaction logic * Set lazy-signature for required parties in token transfers * Fix spelling in sign function * Add token id in Ledger.getAccount * Remove newTokenAccount in favor of using Party.fundNewAccount() * Change this.token to a function to take optional token id * Add token in getAccount * Refactor this.token().transfer to this.token().send() * Use getBalance for fetching balance from local ledger * Remove comment code * Add tokenId to getAccount * Refactor createUnsigned to take string instead of Field for caller and tokenId * Add proper typing for snarkyjs binding token functions * Add tokenSymbol to Party API * Fix getCachedAccount by passing in tokenId * Fix usage of fetchAccount * Fix tokenSymbol setter * Scaffold test file for tokens * Add first section of token tests, refactor existing Party token code * Add minting with precondition tests * Refactor getAccount and getBalance parameters * Implement burn and send tests * Fix fetchAccount type parameters * Use init method for zkApp state * Add support for checked tokenId, convert tokenId type to Field, additional feedback * Refactor checked computation check and error messages * Update bindings * PR feedback * Fix parentTokenId parameter for new Token() * Add getter for tokenId on Party structure * Update bindings * Fix CircuitValue.isConstant * Update for isNew * Fix intg tests * Use createChildParty instead of createUnsigned * Add formatted getAccount error * Fix checked and unchecked condition in token constructor * Fix GraphQL query parameter * integrate `deploy()` with qanet * fix integration test Co-authored-by: Gregor <[email protected]>
- Loading branch information
1 parent
211993a
commit a4fae70
Showing
18 changed files
with
694 additions
and
92 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
The mina commit used to generate the backends for node and chrome is | ||
97ff72a1d43cda02225d972031cdb0639f0abf84 | ||
dea7b89becac85444610378dd579ea0216631349 |
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
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
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
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
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
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.