UNPKG

pulsar-contracts

Version:

16 lines (15 loc) 1.1 kB
import { Mina, PrivateKey, PublicKey, UInt64 } from 'o1js'; import { List } from '../types/common.js'; export declare const DeployScripts: { fetchAccounts: typeof fetchAccounts; waitTransactionAndFetchAccount: typeof waitTransactionAndFetchAccount; deploySettlementContract: typeof deploySettlementContract; deployAndInitializeContract: typeof deployAndInitializeContract; sendMina: typeof sendMina; }; declare function sendMina(senderKey: PrivateKey, receiverKey: PublicKey, amount: UInt64, fee?: number): Promise<void>; declare function fetchAccounts(accounts: PublicKey[]): Promise<void>; declare function waitTransactionAndFetchAccount(tx: Awaited<ReturnType<typeof Mina.transaction>>, keys: PrivateKey[], accountsToFetch?: PublicKey[]): Promise<void>; declare function deploySettlementContract(signerPrivateKey: PrivateKey, contractPrivateKey?: PrivateKey, fee?: number): Promise<PrivateKey>; declare function deployAndInitializeContract(signerPrivateKey: PrivateKey, contractPrivateKey: PrivateKey | undefined, validatorList: List, fee?: number): Promise<PrivateKey>; export {};