Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move ledger pulling to wasm #61

Open
Dengjianping opened this issue Jan 9, 2023 · 0 comments
Open

Move ledger pulling to wasm #61

Dengjianping opened this issue Jan 9, 2023 · 0 comments

Comments

@Dengjianping
Copy link
Contributor

Dengjianping commented Jan 9, 2023

Currently, sdk pulls ledger from polkadot-js, then send those ledger to wasm, there should be some overhead between js and wasm.
Related code: https://github.com/Manta-Network/sdk/blob/main/manta-js/package/src/api/index.js#L120

let result = await this.api.rpc.mantaPay.pull_ledger_diff(
        checkpoint,
        this.maxReceiversPullSize,
        this.maxSendersPullSize
);

And some crates support wasm, like jsonrpsee/reqwests.

Before we move this part to wasm, we should know whether it's worth to do it. Knowing how much overhead between js and wasm is necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant