UNPKG

@superfluid-finance/sdk-core

Version:
33 lines 1.46 kB
import { Overrides } from "ethers"; import Operation from "./Operation"; import { Superfluid } from "./typechain-types"; /** * Host Helper Class * @description A helper class which can be used as a standalone class to populate call agreement transactions. */ export default class Host { contract: Superfluid; constructor(hostAddress: string); /** * Creates an Operation of the `callAgreement` function on the host contract. * @param agreementAddress the agreement address (cfa or ida address) * @param callData the encoded callData for the function * @param userData any additional user data * @param overrides ethers overrides object for more control over the transaction sent. * @returns {Operation} an `Operation` class */ callAgreement: (agreementAddress: string, callData: string, userData: string | undefined, overrides?: Overrides & { from?: string; }) => Operation; /** * Creates an Operation of the `callAppAction` function on the host contract. * @param app the address of the Super App you are calling * @param callData the encoded callData for the function * @param overrides ethers overrides object for more control over the transaction sent. * @returns {Operation} an `Operation` class */ callAppAction: (app: string, callData: string, overrides?: Overrides & { from?: string; }) => Operation; } //# sourceMappingURL=Host.d.ts.map