You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, all of the build_ functions (including build_batch) in the @heliax/namada-sdk package return a Rust struct instance (wasm pointer). It would be better to return a deserialized value from the SDK calls so they can be more easily inspected and destructured. We could Borsh-serialize/deserialize the BuiltTx type, and deserialize when returning from the SDK
Example of what this value would look like:
import{WrapperTxProps}from"@namada/types";// We'll use borsh schemas instead of type defs, but essentially what the user// will see is this:typeAccountPublicKeysMap={pkToIdx: [string,number];idxToPk: [number,string];}typeSigningTxData={publicKeys: string[];threshold: number;feePayer: string;accountPublicKeysMap?: AccountPublicKeysMap[];owner?: string;}typeTx={// tx hashhash: string;// tx bytesbytes: Uint8Array;// args used to create args::Tx in namada-sdkargs: WrapperTxProps;// serialized signing data bytessigningDataBytes: SigningTxData[];}
The text was updated successfully, but these errors were encountered:
Currently, all of the
build_
functions (includingbuild_batch
) in the@heliax/namada-sdk
package return a Rust struct instance (wasm pointer). It would be better to return a deserialized value from the SDK calls so they can be more easily inspected and destructured. We could Borsh-serialize/deserialize theBuiltTx
type, and deserialize when returning from the SDKExample of what this value would look like:
The text was updated successfully, but these errors were encountered: