classic-relayer/contracts/factories/SwapAbi__factory.ts
smart_ex 4595085d61 wip
2022-05-10 18:52:07 +10:00

274 lines
4.8 KiB
TypeScript

/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type { SwapAbi, SwapAbiInterface } from "../SwapAbi";
const _abi = [
{
inputs: [
{
internalType: "bytes32",
name: "_torn",
type: "bytes32",
},
{
internalType: "bytes32",
name: "_miner",
type: "bytes32",
},
{
internalType: "uint256",
name: "_miningCap",
type: "uint256",
},
{
internalType: "uint256",
name: "_initialLiquidity",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "constructor",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "newWeight",
type: "uint256",
},
],
name: "PoolWeightUpdated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "recipient",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "pTORN",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "TORN",
type: "uint256",
},
],
name: "Swap",
type: "event",
},
{
inputs: [],
name: "DURATION",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "initialLiquidity",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "liquidity",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "miner",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "poolWeight",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "node",
type: "bytes32",
},
],
name: "resolve",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "startTimestamp",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "tokensSold",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "torn",
outputs: [
{
internalType: "contract IERC20",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "swap",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "getExpectedReturn",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "tornVirtualBalance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "newWeight",
type: "uint256",
},
],
name: "setPoolWeight",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
export class SwapAbi__factory {
static readonly abi = _abi;
static createInterface(): SwapAbiInterface {
return new utils.Interface(_abi) as SwapAbiInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): SwapAbi {
return new Contract(address, _abi, signerOrProvider) as SwapAbi;
}
}