@zero-labs/tokenization-contracts
v1.4.0
Published
This repo contains Zero Labs' Tokenization protocol smart contracts, and accompanying tools.
Downloads
256
Readme
Tokenization Contracts
This repo contains Zero Labs' Tokenization protocol smart contracts, and accompanying tools.
Library
npm i @zero-labs/tokenization-contracts
import { ClaimDataCoder } from "@zero-labs/tokenization-contracts";
ClaimDataCoder.decode(
"0x000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002e0000000000000000000000000000000000000000000000000000000000000002c30633933633235382d616335382d353130352d623131342d6136316338363862353935363b66303233383639000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002434e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014323032312d30342d30315430303a30303a30305a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000014323032312d30362d33305430303a30303a30305a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f4465636172626f6e697a6174696f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c64666535303231322d626165352d353231352d393036302d3566303939313131346663313b663032333836390000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002434636531373635612d353736622d346561352d623563612d36383866393731386436316100000000000000000000000000000000000000000000000000000000"
);
CLI Tool
The repo comes with all the encoding/decoding methods and a CLI tool:
yarn metadata-coder
e.g.
yarn metadata-coder claim-data decode 0x000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002e0000000000000000000000000000000000000000000000000000000000000002c30633933633235382d616335382d353130352d623131342d6136316338363862353935363b66303233383639000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002434e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014323032312d30342d30315430303a30303a30305a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000014323032312d30362d33305430303a30303a30305a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f4465636172626f6e697a6174696f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c64666535303231322d626165352d353231352d393036302d3566303939313131346663313b663032333836390000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002434636531373635612d353736622d346561352d623563612d36383866393731386436316100000000000000000000000000000000000000000000000000000000