Skip to content

Move ledger pulling to wasm #61

@Dengjianping

Description

@Dengjianping

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions