MoMannn / example-value-ledger-deploy-order

Code example: Value ledger deploy order

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is an example of how to use value ledger deploy order in 0xcert framework v2.

The example is wrapped in a simple dApp to showcase not only functionalities but also the basic principles of handling blockchain communication through 0xcert framework. Main logic is isolated in src/example.ts while response handling is located in index.ts. The basic configuration needed for communication can be found in src/config.ts file.

To keep the example as simple as possible there are some hardcoded values like order definition. You can change those in src/config.ts.

There are also some empty variables in src/config.ts that you need to set so that the example works. Mainly valueLedgerId which you got when you deployed a new value ledger in the value management guide and metamask account (account1Id) where the account has to be the one that deployed the value ledger.

Project stucture:

Path Description
src/example.ts Main logic showing the use.
src/config.ts Configuration file.
index.html Front end styling.
index.ts Controller connecting front end to the logic.
package.json Dependencies.
style.css Front end styling.

About

Code example: Value ledger deploy order


Languages

Language:TypeScript 82.3%Language:CSS 10.3%Language:HTML 7.4%