@soma-finance/core-contracts
Version:
SOMA Finance core contracts
308 lines • 7.5 kB
JavaScript
"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.ISomaSwapFactory__factory = void 0;
const ethers_1 = require("ethers");
const _erc165InterfaceId = "0x04b2bdca";
const _erc1820InterfaceId = "0xf34b943932edea3cf7e01341d87da211411ac909cb87331a90de4c4880b4fec0";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "prevFeeTo",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "newFeeTo",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "sender",
type: "address",
},
],
name: "FeeToUpdated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "token0",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "token1",
type: "address",
},
{
indexed: false,
internalType: "address",
name: "pair",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "",
type: "uint256",
},
],
name: "PairCreated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "router",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "sender",
type: "address",
},
],
name: "RouterAdded",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "router",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "sender",
type: "address",
},
],
name: "RouterRemoved",
type: "event",
},
{
inputs: [],
name: "CREATE_PAIR_ROLE",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "pure",
type: "function",
},
{
inputs: [],
name: "FEE_SETTER_ROLE",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "pure",
type: "function",
},
{
inputs: [],
name: "MANAGE_ROUTER_ROLE",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "pure",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "router",
type: "address",
},
],
name: "addRouter",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
name: "allPairs",
outputs: [
{
internalType: "address",
name: "pair",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "allPairsLength",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "tokenA",
type: "address",
},
{
internalType: "address",
name: "tokenB",
type: "address",
},
],
name: "createPair",
outputs: [
{
internalType: "address",
name: "pair",
type: "address",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "feeTo",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "tokenA",
type: "address",
},
{
internalType: "address",
name: "tokenB",
type: "address",
},
],
name: "getPair",
outputs: [
{
internalType: "address",
name: "pair",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "target",
type: "address",
},
],
name: "isRouter",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "router",
type: "address",
},
],
name: "removeRouter",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_feeTo",
type: "address",
},
],
name: "setFeeTo",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
class ISomaSwapFactory__factory {
static createInterface() {
return new ethers_1.utils.Interface(_abi);
}
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.ISomaSwapFactory__factory = ISomaSwapFactory__factory;
ISomaSwapFactory__factory.erc165InterfaceId = _erc165InterfaceId;
ISomaSwapFactory__factory.erc1820InterfaceId = _erc1820InterfaceId;
ISomaSwapFactory__factory.abi = _abi;
//# sourceMappingURL=ISomaSwapFactory__factory.js.map