UNPKG

@intuweb3/sdk

Version:

INTU SDK - Modern blockchain interaction toolkit

35 lines (34 loc) 3.07 kB
import { getUniqueHashFromSignature, registerWasmAsset } from "./cryptography/index.native.js"; import { ethers, Signer, providers } from "ethers"; import { Transaction, VaultAllInfo } from "../services/web3/types/index.js"; export declare function createIntuAccount(addressList: any[], vaultName: string, rotationThreshold: number, transactionThreshold: number, adminThreshold: number, signer: Signer, returnHash?: boolean): Promise<unknown>; export declare function createPolybaseKey(vaultAddress: string, signer: Signer, intuSignature?: string): Promise<import("./cryptography/types/models.js").PolybaseKeyResponse>; export declare function preRegistration(vaultAddress: string, signer: Signer, intuSignature?: string, returnHash?: boolean): Promise<string | ethers.ContractTransaction>; export declare function automateRegistration(vaultAddress: string, signer: Signer, nostrNode?: string, intuSignature?: string): Promise<boolean>; export declare function testNostrSubscriptionNative(): Promise<{ success: boolean; eoseReceived: boolean; eventReceived: boolean; expectedEventId?: string; receivedEventId?: string; pubkey?: string; error?: string; }>; export declare function testVaultAddressFiltering(vaultAddress: string): Promise<{ success: boolean; eventWithVaultReceived: boolean; eventWithoutVaultReceived: boolean; error?: string; }>; export declare function registerAllSteps(vaultAddress: string, signer: Signer, intuSignature?: string, nostrNode?: string, returnHash?: boolean): Promise<string | ethers.ContractTransaction>; export declare function completeVault(vaultAddress: string, signer: Signer, returnHash?: boolean): Promise<string | ethers.ContractTransaction>; export declare function submitTransaction(to: string, value: string | Number, chainId: string | Number, nonce: string | Number, data: string, gasPrice: string | Number, gas: string | Number, vaultAddress: string, signer: Signer, notes?: string, returnHash?: boolean, sendingProvider?: any): Promise<any>; export { getUserPreRegisterInfos, getUserSignature, getUtilsParams, getUserRegistrationAllInfos, getRegistrationStep3InfosDB, getRegistrationReshareStep3InfosDB, } from "./web3/utils.js"; export { getUniqueHashFromSignature }; export { registerWasmAsset }; export declare function combineSignedTx(vaultAddress: string, txId: number, signer: Signer, experimental?: boolean): Promise<any>; export declare function getVaults(userAddress: string, provider: providers.Provider): Promise<VaultAllInfo[]>; export declare function signTx(vaultAddress: string, txId: number, signer: Signer, intuSignature?: string, experimental?: boolean, returnHash?: boolean): Promise<any>; export declare function getAllTransactions(vaultAddress: string, provider: providers.Provider): Promise<Transaction[]>; export declare function getTransaction(vaultAddress: string, txId: number, provider: providers.Provider): Promise<Transaction>; export declare function getVaultSingle(userAddress: string, provider: providers.Provider): Promise<VaultAllInfo | null>;