In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
Here's the github project management page
There are components added to to this project from Tezos that cause errors in Webpack. We have to add resolve support to help webpack read specific node_modules
// webpack.config.js:308
...
resolve: {
fallback: { "crypto": require.resolve("crypto-browserify"), "stream": require.resolve("stream-browserify"), "path": require.resolve("path-browserify"),
"buffer": require.resolve("buffer/") },
...
This project uses Archetype and completium. For now version archetype.1.2.11 is being used
The supporting contracts needs to be set in order
- proxy
- exchange (needs approx 6tez)
- manager
- royalties.
The proxy address will be sent to the manager manager will need exchange addresses
You'll need funds for most interactions with smart contracts. The testing for this project is based on Kathmandu
Ex. Deploy contract via completium
completium-cli deploy src/global/contracts/arl/multiple_nft_public.arl --parameters '{"owner": "tz1fcw6J12ArA1zLG2ATLsenfjYPb7b95SKB"}'
Access the appropriate faucet start here
We use the completium cli to setup network testing.
Be sure that the network is set to 'mockup mode' to ensure assertions pass
completium-cli set endpoint mockup
Usefull info for book authors Choosing the right ebook format
order of operations
- get storage
https://api.jakartanet.tzkt.io/v1/contracts/KT1DdKVXB6g3gnr3NQByMmJTNX6MDt1UMudY/storage
## iterate object
{
"owner": "tz1Y1eg4zzwzBTFrr7DRmdw2DDZRa339Qw9Y",
"ledger": 34443,
"paused": false,
"minters": [
"tz1Y1eg4zzwzBTFrr7DRmdw2DDZRa339Qw9Y"
],
"permits": 34446,
"metadata": 34448,
"operators": 34444,
"royalties": 34442,
"default_expiry": "9999",
"token_metadata": 34445,
"owner_candidate": null,
"operators_for_all": 34447
}
- Call bigmaps & keys with id of storage
https://api.jakartanet.tzkt.io/v1/bigmaps/34445/keys?active=true&offset=0&limit=50
parse the return of this call with a npm module
- Lookup IPFS Hash and pull back image info
https://gateway.ipfs.io/ipfs/QmXhqhBZrjUjg1yNj6ofJ1E8RtxXPPYXWSdRAeFcWTsEuq
GET request https://api.jakartanet.tzkt.io/v1/accounts/tz1Y1eg4zzwzBTFrr7DRmdw2DDZRa339Qw9Y?metadata=true
Should return public account info
{ "id": 218487, "type": "user", "address": "tz1Y1eg4zzwzBTFrr7DRmdw2DDZRa339Qw9Y", "publicKey": "edpkuPDZ28Z2VPjDSksxjkqe9kiETwyjBTfyhqVuWGpo4KReRxopxf", "revealed": true, "balance": 9475183168, "rollupBonds": 0, "counter": 395046, "numContracts": 7, "rollupsCount": 0, ...
- user address is added to the updateParams function @ smartContract.ts:150