webb-tools / protocol-substrate

Webb protocol implementation in Substrate.
https://docs.webb.tools/v1/anchor-system/overview/
Apache License 2.0
37 stars 11 forks source link

[TASK] Move resource ID utilities w/ new chain ID type into API (webb.js/wasm-utils) #114

Open drewstone opened 2 years ago

drewstone commented 2 years ago

We should consider consolidating our utility functions into one place that can be used by both Typescript/Rust repos. One way we can do this is by adding functions to wasm-utils and re-exporting their TS versions from webb.js.

We would then have to import these tools from these libraries for each of the repos that are using them:

dutterbutter commented 2 years ago

@drewstone can you provide further direction here.

appcypher commented 2 years ago
Reusables Utils Projects
ResourceId type webb.js, relayer, webb-dapp, webb-rs, dkg-substrate, protocol-substrate
ProposalHeader type relayer, dkg-substrate
createResourceID, makeResourceId relayer, protocol-solidity, dkg-substrate
checkNativeAddress protocol-solidity, webb-dapp
getProposalData protocol-solidity
ChainIDType dkg-substrate