protocol-substrate
protocol-substrate copied to clipboard
[TASK] Move resource ID utilities w/ new chain ID type into API (webb.js/wasm-utils)
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:
- relayer
- solidity / substrate
- etc.
@drewstone can you provide further direction here.
| 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 |