@radixdlt/radix-engine-toolkit
Version:
A TypeScript wrapper for the Radix Engine Toolkit that provides many of the necessary tools to interact with the Radix ledger
21 lines (20 loc) • 1.03 kB
TypeScript
import { Instruction, Value } from "..";
export type Bytes = Uint8Array | string;
export declare const resolveBytes: (bytes: Bytes) => Uint8Array;
export declare const resolveBytesAndCheckLength: (bytes: Bytes, expectedLength: number) => Uint8Array;
export declare const destructManifestValueTuple: (value: Value) => Value[];
export declare const isLockFeeCallMethod: (instruction: Extract<Instruction, {
kind: "CallMethod";
}>, faucetComponentAddress: string) => Promise<boolean>;
export declare const isFreeXrdCallMethod: (instruction: Extract<Instruction, {
kind: "CallMethod";
}>, faucetComponentAddress: string) => Promise<boolean>;
export declare const isAccountWithdrawCallMethod: (instruction: Extract<Instruction, {
kind: "CallMethod";
}>) => Promise<boolean>;
export declare const isAccountDepositCallMethod: (instruction: Extract<Instruction, {
kind: "CallMethod";
}>) => Promise<boolean>;
export declare const castValue: <T = Value["kind"]>(value: Value, kind: T) => Extract<Value, {
kind: T;
}>;