kodadot / packages

Monorepository of npm packages we use in our projects.
4 stars 10 forks source link

Kodadot mint SDK #89

Open vikiival opened 1 year ago

vikiival commented 1 year ago

We need a proper minting SDK:

name:

@kodadot1/mint

Architecture:

It should somehow wrap the minting logic into simple functions. About design patterns I am thinking to use either Builder, Adapter or Strategy.

Ref:

Patterns:

roiLeo commented 1 year ago

hmm.. what problem will it solve? why is it needed in packages repo? I feel that if we move the logic here it will be harder to update and test new features easily

vikiival commented 1 year ago

hmm.. what problem will it solve?

That when someone is refactoring the code involving transactions I can sleep properly.

why is it needed in packages repo?

Other people can build stuff on the top of the SDK (CLIs, mint shops, whitelabels...)

harder to update

Actually it would be easier to add new chains, so we can have more agnostic logic on frontend

test new features easily

We have vitest so we can write some tests

yangwao commented 1 year ago

Yes