protocol-substrate icon indicating copy to clipboard operation
protocol-substrate copied to clipboard

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

Open drewstone opened this issue 4 years ago • 2 comments

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 avatar Jan 26 '22 18:01 drewstone

@drewstone can you provide further direction here.

dutterbutter avatar Feb 10 '22 20:02 dutterbutter

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

appcypher avatar Feb 15 '22 13:02 appcypher