DIN-center / din-sc

1 stars 0 forks source link

There needs to be a DIN javascript library #15

Open twhay opened 7 months ago

twhay commented 7 months ago

These libraries should allow clients to interact with the smart contracts. It should:

tasks

cds-amal commented 7 months ago

Currently when we derive collectionEndpoints from known networks, we can also emit mappings that can be included in this proposed library. The emitted mappings can also be used to help define the front-end to generate ui interaction for provider service definitions.

See: https://github.com/cds-amal/DINY/blob/main/pyscripts/mkDeploy.py

noleto commented 5 months ago

During the code generation process with cookiecutter, we can create a "headers" JSON file. The SDK will read this file to maintain the mapping between the deployed smart contract (which uses a "bit mask" approach) and the human-readable names of methods, namespaces, and endpoints.

cds-amal commented 2 months ago

24 generates solidity code, and it might be extendable to generate Types or headers for Typescript and golang.