@mean-finance/dca-v2-periphery
Version:
💱 Periphery smart contracts of DCA V2 by mean.finance
171 lines (170 loc) • 5.41 kB
JavaScript
;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.IPermit2__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
{
inputs: [],
name: "DOMAIN_SEPARATOR",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
components: [
{
components: [
{
internalType: "address",
name: "token",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
internalType: "struct IPermit2.TokenPermissions",
name: "permitted",
type: "tuple",
},
{
internalType: "uint256",
name: "nonce",
type: "uint256",
},
{
internalType: "uint256",
name: "deadline",
type: "uint256",
},
],
internalType: "struct IPermit2.PermitTransferFrom",
name: "permit",
type: "tuple",
},
{
components: [
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "requestedAmount",
type: "uint256",
},
],
internalType: "struct IPermit2.SignatureTransferDetails",
name: "transferDetails",
type: "tuple",
},
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "bytes",
name: "signature",
type: "bytes",
},
],
name: "permitTransferFrom",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
components: [
{
components: [
{
internalType: "address",
name: "token",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
internalType: "struct IPermit2.TokenPermissions[]",
name: "permitted",
type: "tuple[]",
},
{
internalType: "uint256",
name: "nonce",
type: "uint256",
},
{
internalType: "uint256",
name: "deadline",
type: "uint256",
},
],
internalType: "struct IPermit2.PermitBatchTransferFrom",
name: "permit",
type: "tuple",
},
{
components: [
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "requestedAmount",
type: "uint256",
},
],
internalType: "struct IPermit2.SignatureTransferDetails[]",
name: "transferDetails",
type: "tuple[]",
},
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "bytes",
name: "signature",
type: "bytes",
},
],
name: "permitTransferFrom",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
class IPermit2__factory {
static createInterface() {
return new ethers_1.utils.Interface(_abi);
}
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.IPermit2__factory = IPermit2__factory;
IPermit2__factory.abi = _abi;