@f5i23q999d/cow-sdk
Version:
<p align="center"> <img width="400" src="https://github.com/cowprotocol/cow-sdk/raw/main/docs/images/CoW.png" /> </p>
338 lines • 8.15 kB
JavaScript
;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.CoWShedFactory__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
{
inputs: [
{
internalType: "address",
name: "impl",
type: "address",
},
{
internalType: "bytes32",
name: "bName",
type: "bytes32",
},
{
internalType: "bytes32",
name: "bNode",
type: "bytes32",
},
],
stateMutability: "nonpayable",
type: "constructor",
},
{
inputs: [],
name: "InvalidSignature",
type: "error",
},
{
inputs: [],
name: "NonceAlreadyUsed",
type: "error",
},
{
inputs: [],
name: "SettingEnsRecordsFailed",
type: "error",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "user",
type: "address",
},
{
indexed: false,
internalType: "address",
name: "shed",
type: "address",
},
],
name: "COWShedBuilt",
type: "event",
},
{
inputs: [
{
internalType: "bytes32",
name: "node",
type: "bytes32",
},
],
name: "addr",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "baseName",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "baseNode",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
components: [
{
internalType: "address",
name: "target",
type: "address",
},
{
internalType: "uint256",
name: "value",
type: "uint256",
},
{
internalType: "bytes",
name: "callData",
type: "bytes",
},
{
internalType: "bool",
name: "allowFailure",
type: "bool",
},
{
internalType: "bool",
name: "isDelegateCall",
type: "bool",
},
],
internalType: "struct Call[]",
name: "calls",
type: "tuple[]",
},
{
internalType: "bytes32",
name: "nonce",
type: "bytes32",
},
{
internalType: "uint256",
name: "deadline",
type: "uint256",
},
{
internalType: "address",
name: "user",
type: "address",
},
{
internalType: "bytes",
name: "signature",
type: "bytes",
},
],
name: "executeHooks",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
name: "forwardResolutionNodeToAddress",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "implementation",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "user",
type: "address",
},
],
name: "initializeEns",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "user",
type: "address",
},
{
internalType: "bool",
name: "withEns",
type: "bool",
},
],
name: "initializeProxy",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "node",
type: "bytes32",
},
],
name: "name",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
name: "ownerOf",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "who",
type: "address",
},
],
name: "proxyOf",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
name: "reverseResolutionNodeToAddress",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes4",
name: "interfaceId",
type: "bytes4",
},
],
name: "supportsInterface",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "pure",
type: "function",
},
];
class CoWShedFactory__factory {
static abi = _abi;
static createInterface() {
return new ethers_1.utils.Interface(_abi);
}
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.CoWShedFactory__factory = CoWShedFactory__factory;
//# sourceMappingURL=CoWShedFactory__factory.js.map