UNPKG

@alephium/web3-test

Version:
10 lines (9 loc) 915 B
import { Address, KeyType } from '@alephium/web3'; import { NodeWallet, PrivateKeyWallet } from '@alephium/web3-wallet'; export declare function testNodeWallet(baseUrl?: string): Promise<NodeWallet>; export declare function getSigner(alphAmount?: bigint, group?: number, keyType?: KeyType): Promise<PrivateKeyWallet>; export declare function getSigners(num: number, alphAmountPerSigner?: bigint, group?: number): Promise<PrivateKeyWallet[]>; export declare function transfer(from: PrivateKeyWallet, to: Address, tokenId: string, amount: bigint): Promise<import("@alephium/web3").SignTxResult<import("@alephium/web3").SignTransferTxResult>>; export declare function expectAssertionError(p: Promise<unknown>, address: string, errorCode: number | bigint): Promise<void>; export declare function randomContractId(groupIndex?: number): string; export declare function randomContractAddress(groupIndex?: number): string;