UNPKG

@aut-labs/sdk

Version:

The TS/JS SDK package aims to make it easy for frontends/backends to integrate with Aut Smart Contracts

34 lines (33 loc) 957 B
import { Contract } from "ethers"; import { EtherSigner } from "./models"; import { SDKContractGenericResponse } from "./response"; interface BiconomyReceipt { to: string; from: string; contractAddress: null; transactionIndex: number; blockNumber: number; transactionHash: string; logs: { transactionIndex: number; blockNumber: number; transactionHash: string; address: string; topics: string[]; data: string; logIndex: number; blockHash: string; }[]; } export interface BiconomyEvent { msg: string; id: string; hash: string; receipt: BiconomyReceipt; } export interface ISDKBiconomyWrapper { initializeBiconomy(signerOrProvider: EtherSigner): Promise<void>; canSendEIP712Transaction(address: string): boolean; sendEIP712Transaction(contract: Contract, data: string): Promise<SDKContractGenericResponse<BiconomyEvent>>; } export {};