By representing them as a TypeScript enum - this makes it very easy for a JavaScript programmer to use Fragnova/Clamor because he will instantly know all the possible fields a particular enum has, without having to dig through the Rust codebase!
[ ] SDK functions for calling all the extrinsic functions in pallet-protos (protos.upload(),protos.set_metadata(),protos.transfer()` etc.). Note: The SDK functions will use the aforementioned "TypeScript enums" for some of its parameters.
[ ] SDK functions for calling all the extrinsic functions in pallet-fragments (fragments.create(),fragments.buy()` etc.). Note: The SDK functions will use the aforementioned "TypeScript enums" for some of its parameters.
[ ] Include error handling
[ ] Note: if duplicate proto exists, return the proto hash and info
@aang114:
[ ] Write the logic for converting a JavaScript Object into a Shards Trait. This logic will be used in the SDK's Protos.upload() function
The TypeScript SDK for the Fragnova/Clamor Blockchain should do the following things:
@paulinechi:
protos.upload()
extrinsic function are:Categories
(https://github.com/fragcolor-xyz/protos/blob/master/src/categories.rs#L139),UsageLicense
(https://fragcolor-xyz.github.io/clamor/doc/pallet_protos/enum.UsageLicense.html#) andLinkedAsset
(https://fragcolor-xyz.github.io/clamor/doc/pallet_protos/enum.UsageLicense.html#)By representing them as a TypeScript enum - this makes it very easy for a JavaScript programmer to use Fragnova/Clamor because he will instantly know all the possible fields a particular enum has, without having to dig through the Rust codebase!
[ ] SDK functions for calling all the extrinsic functions in pallet-protos (
protos.upload(),
protos.set_metadata(),
protos.transfer()` etc.). Note: The SDK functions will use the aforementioned "TypeScript enums" for some of its parameters.[ ] SDK functions for calling all the extrinsic functions in pallet-fragments (
fragments.create(),
fragments.buy()` etc.). Note: The SDK functions will use the aforementioned "TypeScript enums" for some of its parameters.[ ] Include error handling
[ ] Note: if duplicate proto exists, return the proto hash and info
@aang114:
Protos.upload()
function