tornado-contracts/dist/index.mjs

25935 lines
992 KiB
JavaScript
Raw Normal View History

2024-04-20 16:48:27 +03:00
import { Interface, Contract, ContractFactory } from 'ethers';
const _abi$1H = [
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: "uint256",
name: "balance",
type: "uint256"
},
{
internalType: "uint256",
name: "needed",
type: "uint256"
},
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
name: "ERC1155InsufficientBalance",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "approver",
type: "address"
}
],
name: "ERC1155InvalidApprover",
type: "error"
},
{
inputs: [
{
internalType: "uint256",
name: "idsLength",
type: "uint256"
},
{
internalType: "uint256",
name: "valuesLength",
type: "uint256"
}
],
name: "ERC1155InvalidArrayLength",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "operator",
type: "address"
}
],
name: "ERC1155InvalidOperator",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "receiver",
type: "address"
}
],
name: "ERC1155InvalidReceiver",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
}
],
name: "ERC1155InvalidSender",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "operator",
type: "address"
},
{
internalType: "address",
name: "owner",
type: "address"
}
],
name: "ERC1155MissingApprovalForAll",
type: "error"
}
];
class IERC1155Errors__factory {
static createInterface() {
return new Interface(_abi$1H);
}
static connect(address, runner) {
return new Contract(address, _abi$1H, runner);
}
}
IERC1155Errors__factory.abi = _abi$1H;
const _abi$1G = [
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "allowance",
type: "uint256"
},
{
internalType: "uint256",
name: "needed",
type: "uint256"
}
],
name: "ERC20InsufficientAllowance",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: "uint256",
name: "balance",
type: "uint256"
},
{
internalType: "uint256",
name: "needed",
type: "uint256"
}
],
name: "ERC20InsufficientBalance",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "approver",
type: "address"
}
],
name: "ERC20InvalidApprover",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "receiver",
type: "address"
}
],
name: "ERC20InvalidReceiver",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
}
],
name: "ERC20InvalidSender",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
}
],
name: "ERC20InvalidSpender",
type: "error"
}
];
class IERC20Errors__factory {
static createInterface() {
return new Interface(_abi$1G);
}
static connect(address, runner) {
return new Contract(address, _abi$1G, runner);
}
}
IERC20Errors__factory.abi = _abi$1G;
const _abi$1F = [
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
},
{
internalType: "address",
name: "owner",
type: "address"
}
],
name: "ERC721IncorrectOwner",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "operator",
type: "address"
},
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
name: "ERC721InsufficientApproval",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "approver",
type: "address"
}
],
name: "ERC721InvalidApprover",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "operator",
type: "address"
}
],
name: "ERC721InvalidOperator",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
}
],
name: "ERC721InvalidOwner",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "receiver",
type: "address"
}
],
name: "ERC721InvalidReceiver",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
}
],
name: "ERC721InvalidSender",
type: "error"
},
{
inputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
name: "ERC721NonexistentToken",
type: "error"
}
];
class IERC721Errors__factory {
static createInterface() {
return new Interface(_abi$1F);
}
static connect(address, runner) {
return new Contract(address, _abi$1F, runner);
}
}
IERC721Errors__factory.abi = _abi$1F;
var index$T = /*#__PURE__*/Object.freeze({
__proto__: null,
IERC1155Errors__factory: IERC1155Errors__factory,
IERC20Errors__factory: IERC20Errors__factory,
IERC721Errors__factory: IERC721Errors__factory
});
var index$S = /*#__PURE__*/Object.freeze({
__proto__: null,
draftIerc6093Sol: index$T
});
const _abi$1E = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "spender",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Approval",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Transfer",
type: "event"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "spender",
type: "address"
}
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "decimals",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "name",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "symbol",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address"
},
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
}
];
class IERC20Metadata__factory {
static createInterface() {
return new Interface(_abi$1E);
}
static connect(address, runner) {
return new Contract(address, _abi$1E, runner);
}
}
IERC20Metadata__factory.abi = _abi$1E;
var index$R = /*#__PURE__*/Object.freeze({
__proto__: null,
IERC20Metadata__factory: IERC20Metadata__factory
});
const _abi$1D = [
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "allowance",
type: "uint256"
},
{
internalType: "uint256",
name: "needed",
type: "uint256"
}
],
name: "ERC20InsufficientAllowance",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: "uint256",
name: "balance",
type: "uint256"
},
{
internalType: "uint256",
name: "needed",
type: "uint256"
}
],
name: "ERC20InsufficientBalance",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "approver",
type: "address"
}
],
name: "ERC20InvalidApprover",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "receiver",
type: "address"
}
],
name: "ERC20InvalidReceiver",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
}
],
name: "ERC20InvalidSender",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
}
],
name: "ERC20InvalidSpender",
type: "error"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "spender",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Approval",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Transfer",
type: "event"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "spender",
type: "address"
}
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "decimals",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "name",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "symbol",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address"
},
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
}
];
let ERC20__factory$1 = class ERC20__factory {
static createInterface() {
return new Interface(_abi$1D);
}
static connect(address, runner) {
return new Contract(address, _abi$1D, runner);
}
};
ERC20__factory$1.abi = _abi$1D;
const _abi$1C = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "spender",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Approval",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Transfer",
type: "event"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "spender",
type: "address"
}
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address"
},
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
}
];
let IERC20__factory$2 = class IERC20__factory {
static createInterface() {
return new Interface(_abi$1C);
}
static connect(address, runner) {
return new Contract(address, _abi$1C, runner);
}
};
IERC20__factory$2.abi = _abi$1C;
var index$Q = /*#__PURE__*/Object.freeze({
__proto__: null,
ERC20__factory: ERC20__factory$1,
IERC20__factory: IERC20__factory$2,
extensions: index$R
});
var index$P = /*#__PURE__*/Object.freeze({
__proto__: null,
erc20: index$Q
});
var index$O = /*#__PURE__*/Object.freeze({
__proto__: null,
interfaces: index$S,
token: index$P
});
const _abi$1B = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "previousOwner",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "newOwner",
type: "address"
}
],
name: "OwnershipTransferred",
type: "event"
},
{
inputs: [],
name: "owner",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "renounceOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newOwner",
type: "address"
}
],
name: "transferOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
class Ownable__factory {
static createInterface() {
return new Interface(_abi$1B);
}
static connect(address, runner) {
return new Contract(address, _abi$1B, runner);
}
}
Ownable__factory.abi = _abi$1B;
var index$N = /*#__PURE__*/Object.freeze({
__proto__: null,
Ownable__factory: Ownable__factory
});
const _abi$1A = [
{
stateMutability: "payable",
type: "fallback"
},
{
stateMutability: "payable",
type: "receive"
}
];
class Proxy__factory {
static createInterface() {
return new Interface(_abi$1A);
}
static connect(address, runner) {
return new Contract(address, _abi$1A, runner);
}
}
Proxy__factory.abi = _abi$1A;
const _abi$1z = [
{
inputs: [
{
internalType: "address",
name: "_logic",
type: "address"
},
{
internalType: "address",
name: "_admin",
type: "address"
},
{
internalType: "bytes",
name: "_data",
type: "bytes"
}
],
stateMutability: "payable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "previousAdmin",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "newAdmin",
type: "address"
}
],
name: "AdminChanged",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "implementation",
type: "address"
}
],
name: "Upgraded",
type: "event"
},
{
stateMutability: "payable",
type: "fallback"
},
{
inputs: [],
name: "admin",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newAdmin",
type: "address"
}
],
name: "changeAdmin",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "implementation",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newImplementation",
type: "address"
}
],
name: "upgradeTo",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newImplementation",
type: "address"
},
{
internalType: "bytes",
name: "data",
type: "bytes"
}
],
name: "upgradeToAndCall",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
stateMutability: "payable",
type: "receive"
}
];
const _bytecode$V = "0x60806040526040516108dc3803806108dc8339818101604052606081101561002657600080fd5b8151602083015160408085018051915193959294830192918464010000000082111561005157600080fd5b90830190602082018581111561006657600080fd5b825164010000000081118282018810171561008057600080fd5b82525081516020918201929091019080838360005b838110156100ad578181015183820152602001610095565b50505050905090810190601f1680156100da5780820380516001836020036101000a031916815260200191505b50604052508491508290506100ee826101bf565b8051156101a6576000826001600160a01b0316826040518082805190602001908083835b602083106101315780518252601f199092019160209182019101610112565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610191576040519150601f19603f3d011682016040523d82523d6000602084013e610196565b606091505b50509050806101a457600080fd5b505b506101ae9050565b6101b782610231565b50505061025b565b6101d28161025560201b6103b41760201c565b61020d5760405162461bcd60e51b81526004018080602001828103825260368152602001806108a66036913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b3b151590565b61063c8061026a6000396000f3fe60806040526004361061004e5760003560e01c80633659cfe6146100655780634f1ef286146100985780635c60da1b146101185780638f28397014610149578063f851a4401461017c5761005d565b3661005d5761005b610191565b005b61005b610191565b34801561007157600080fd5b5061005b6004803603602081101561008857600080fd5b50356001600160a01b03166101ab565b61005b600480360360408110156100ae57600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100d957600080fd5b8201836020820111156100eb57600080fd5b8035906020019184600183028401116401000000008311171561010d57600080fd5b5090925090506101e5565b34801561012457600080fd5b5061012d610292565b604080516001600160a01b039092168252519081900360200190f35b34801561015557600080fd5b5061005b6004803603602081101561016c57600080fd5b50356001600160a01b03166102cf565b34801561018857600080fd5b5061012d610389565b6101996103ba565b6101a96101a461041a565b61043f565b565b6101b3610463565b6001600160a01b0316336001600160a01b031614156101da576101d581610488565b6101e2565b6101e2610191565b50565b6101ed610463565b6001600160a01b0316336001600160a01b031614156102855761020f83610488565b6000836001600160a01b031683836040518083838082843760405192019450600093509091505080830381855af49150503d806000811461026c576040519150601f19603f3d011682016040523d82523d6000602084013e610271565b606091505b505090508061027f57600080fd5b5061028d565b61028d610191565b505050565b600061029c610463565b6001600160a01b0316336001600160a01b031614156102c4576102bd61041a565b90506102cc565b6102cc610191565b90565b6102d7610463565b6001600160a01b0316336001600160a01b031614156101da576001600160a01b0381166103355760405162461bcd60e51b815260040180806020018281038252603a815260200180610555603a913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61035e610463565b604080516001600160a01b03928316815291841660208301528051918290030190a16101d5816104c8565b6000610393610463565b6001600160a01b0316336001600160a01b031614156102c4576102bd610463565b3b151590565b6103c2610463565b6001600160a01b0316336001600160a01b031614156104125760405162461bcd60e51b81526004018080602001828103825260428152602001806105c56042913960600191505060405180910390fd5b6101a96101a9565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e80801561045e573d6000f35b3d6000fd5b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b610491816104ec565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b6104f5816103b4565b6105305760405162461bcd60e51b815260040180806020018281038252603681526020018061058f6036913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5556fe5472616e73706172656e745570677261646561626c6550726f78793a206e65772061646d696e20697320746865207a65726f206164
const isSuperArgs$V = (xs) => xs.length > 1;
class TransparentUpgradeableProxy__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$V(args)) {
super(...args);
} else {
super(_abi$1z, _bytecode$V, args[0]);
}
}
getDeployTransaction(_logic, _admin, _data, overrides) {
return super.getDeployTransaction(_logic, _admin, _data, overrides || {});
}
deploy(_logic, _admin, _data, overrides) {
return super.deploy(_logic, _admin, _data, overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$1z);
}
static connect(address, runner) {
return new Contract(
address,
_abi$1z,
runner
);
}
}
TransparentUpgradeableProxy__factory.bytecode = _bytecode$V;
TransparentUpgradeableProxy__factory.abi = _abi$1z;
const _abi$1y = [
{
inputs: [
{
internalType: "address",
name: "_logic",
type: "address"
},
{
internalType: "bytes",
name: "_data",
type: "bytes"
}
],
stateMutability: "payable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "implementation",
type: "address"
}
],
name: "Upgraded",
type: "event"
},
{
stateMutability: "payable",
type: "fallback"
},
{
stateMutability: "payable",
type: "receive"
}
];
const _bytecode$U = "0x60806040526040516103123803806103128339818101604052604081101561002657600080fd5b81516020830180516040519294929383019291908464010000000082111561004d57600080fd5b90830190602082018581111561006257600080fd5b825164010000000081118282018810171561007c57600080fd5b82525081516020918201929091019080838360005b838110156100a9578181015183820152602001610091565b50505050905090810190601f1680156100d65780820380516001836020036101000a031916815260200191505b50604052506100e3915050565b6100ec826101ab565b8051156101a4576000826001600160a01b0316826040518082805190602001908083835b6020831061012f5780518252601f199092019160209182019101610110565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d806000811461018f576040519150601f19603f3d011682016040523d82523d6000602084013e610194565b606091505b50509050806101a257600080fd5b505b5050610223565b6101be8161021d60201b6100271760201c565b6101f95760405162461bcd60e51b81526004018080602001828103825260368152602001806102dc6036913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b3b151590565b60ab806102316000396000f3fe608060405236601057600e6013565b005b600e5b60196025565b60256021602d565b6052565b565b3b151590565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e8080156070573d6000f35b3d6000fdfea2646970667358221220621b7042bfb847b4073a3c58bdbea5295ce2e761b4e2307ca010caaac996d80c64736f6c634300060c00335570677261646561626c6550726f78793a206e657720696d706c656d656e746174696f6e206973206e6f74206120636f6e7472616374";
const isSuperArgs$U = (xs) => xs.length > 1;
class UpgradeableProxy__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$U(args)) {
super(...args);
} else {
super(_abi$1y, _bytecode$U, args[0]);
}
}
getDeployTransaction(_logic, _data, overrides) {
return super.getDeployTransaction(_logic, _data, overrides || {});
}
deploy(_logic, _data, overrides) {
return super.deploy(_logic, _data, overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$1y);
}
static connect(address, runner) {
return new Contract(address, _abi$1y, runner);
}
}
UpgradeableProxy__factory.bytecode = _bytecode$U;
UpgradeableProxy__factory.abi = _abi$1y;
var index$M = /*#__PURE__*/Object.freeze({
__proto__: null,
Proxy__factory: Proxy__factory,
TransparentUpgradeableProxy__factory: TransparentUpgradeableProxy__factory,
UpgradeableProxy__factory: UpgradeableProxy__factory
});
const _abi$1x = [
{
inputs: [
{
internalType: "string",
name: "name",
type: "string"
},
{
internalType: "string",
name: "symbol",
type: "string"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "spender",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Approval",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Transfer",
type: "event"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "spender",
type: "address"
}
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "decimals",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "subtractedValue",
type: "uint256"
}
],
name: "decreaseAllowance",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "addedValue",
type: "uint256"
}
],
name: "increaseAllowance",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "name",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "symbol",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode$T = "0x608060405234801561001057600080fd5b5060405162000c6238038062000c628339818101604052604081101561003557600080fd5b810190808051604051939291908464010000000082111561005557600080fd5b90830190602082018581111561006a57600080fd5b825164010000000081118282018810171561008457600080fd5b82525081516020918201929091019080838360005b838110156100b1578181015183820152602001610099565b50505050905090810190601f1680156100de5780820380516001836020036101000a031916815260200191505b506040526020018051604051939291908464010000000082111561010157600080fd5b90830190602082018581111561011657600080fd5b825164010000000081118282018810171561013057600080fd5b82525081516020918201929091019080838360005b8381101561015d578181015183820152602001610145565b50505050905090810190601f16801561018a5780820380516001836020036101000a031916815260200191505b50604052505082516101a4915060039060208501906101cd565b5080516101b89060049060208401906101cd565b50506005805460ff1916601217905550610260565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061020e57805160ff191683800117855561023b565b8280016001018555821561023b579182015b8281111561023b578251825591602001919060010190610220565b5061024792915061024b565b5090565b5b80821115610247576000815560010161024c565b6109f280620002706000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b03813516906020013561034f565b604080519115158252519081900360200190f35b61017361036c565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b03813581169160208101359091169060400135610372565b6101c36103f9565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610402565b6101736004803603602081101561021b57600080fd5b50356001600160a01b0316610450565b6100b661046b565b6101576004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104cc565b6101576004803603604081101561027557600080fd5b506001600160a01b038135169060200135610534565b610173600480360360408110156102a157600080fd5b506001600160a01b0381358116916020013516610548565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b820191906000526020600020905b81548152906001019060200180831161032857829003601f168201915b5050505050905090565b600061036361035c610573565b8484610577565b50600192915050565b60025490565b600061037f848484610663565b6103ef8461038b610573565b6103ea85604051806060016040528060288152602001610927602891396001600160a01b038a166000908152600160205260408120906103c9610573565b6001600160a01b0316815260208101919091526040016000205491906107be565b610577565b5060019392505050565b60055460ff1690565b600061036361040f610573565b846103ea8560016000610420610573565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610855565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b60006103636104d9610573565b846103ea856040518060600160405280602581526020016109986025913960016000610503610573565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906107be565b6000610363610541610573565b8484610663565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166105
const isSuperArgs$T = (xs) => xs.length > 1;
class ERC20__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$T(args)) {
super(...args);
} else {
super(_abi$1x, _bytecode$T, args[0]);
}
}
getDeployTransaction(name, symbol, overrides) {
return super.getDeployTransaction(name, symbol, overrides || {});
}
deploy(name, symbol, overrides) {
return super.deploy(name, symbol, overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$1x);
}
static connect(address, runner) {
return new Contract(address, _abi$1x, runner);
}
}
ERC20__factory.bytecode = _bytecode$T;
ERC20__factory.abi = _abi$1x;
const _abi$1w = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "spender",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Approval",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Transfer",
type: "event"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "spender",
type: "address"
}
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "burn",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "burnFrom",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "decimals",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "subtractedValue",
type: "uint256"
}
],
name: "decreaseAllowance",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "addedValue",
type: "uint256"
}
],
name: "increaseAllowance",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "name",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "symbol",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
}
];
class ERC20Burnable__factory {
static createInterface() {
return new Interface(_abi$1w);
}
static connect(address, runner) {
return new Contract(address, _abi$1w, runner);
}
}
ERC20Burnable__factory.abi = _abi$1w;
const _abi$1v = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "spender",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Approval",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Transfer",
type: "event"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "spender",
type: "address"
}
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
}
];
let IERC20__factory$1 = class IERC20__factory {
static createInterface() {
return new Interface(_abi$1v);
}
static connect(address, runner) {
return new Contract(address, _abi$1v, runner);
}
};
IERC20__factory$1.abi = _abi$1v;
var index$L = /*#__PURE__*/Object.freeze({
__proto__: null,
ERC20Burnable__factory: ERC20Burnable__factory,
ERC20__factory: ERC20__factory,
IERC20__factory: IERC20__factory$1
});
var index$K = /*#__PURE__*/Object.freeze({
__proto__: null,
erc20: index$L
});
const _abi$1u = [
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "account",
type: "address"
}
],
name: "Paused",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "account",
type: "address"
}
],
name: "Unpaused",
type: "event"
},
{
inputs: [],
name: "paused",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
}
];
class Pausable__factory {
static createInterface() {
return new Interface(_abi$1u);
}
static connect(address, runner) {
return new Contract(address, _abi$1u, runner);
}
}
Pausable__factory.abi = _abi$1u;
var index$J = /*#__PURE__*/Object.freeze({
__proto__: null,
Pausable__factory: Pausable__factory
});
var index$I = /*#__PURE__*/Object.freeze({
__proto__: null,
access: index$N,
proxy: index$M,
token: index$K,
utils: index$J
});
var index$H = /*#__PURE__*/Object.freeze({
__proto__: null,
contracts: index$O,
contractsV3: index$I
});
const _abi$1t = [
{
inputs: [
{
internalType: "uint256",
name: "in_xL",
type: "uint256"
},
{
internalType: "uint256",
name: "in_xR",
type: "uint256"
}
],
name: "MiMCSponge",
outputs: [
{
internalType: "uint256",
name: "xL",
type: "uint256"
},
{
internalType: "uint256",
name: "xR",
type: "uint256"
}
],
stateMutability: "pure",
type: "function"
}
];
class IHasher__factory {
static createInterface() {
return new Interface(_abi$1t);
}
static connect(address, runner) {
return new Contract(address, _abi$1t, runner);
}
}
IHasher__factory.abi = _abi$1t;
const _abi$1s = [
{
inputs: [
{
internalType: "uint32",
name: "_levels",
type: "uint32"
},
{
internalType: "contract IHasher",
name: "_hasher",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
inputs: [],
name: "FIELD_SIZE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "ROOT_HISTORY_SIZE",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "ZERO_VALUE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "currentRootIndex",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "filledSubtrees",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "getLastRoot",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract IHasher",
name: "_hasher",
type: "address"
},
{
internalType: "bytes32",
name: "_left",
type: "bytes32"
},
{
internalType: "bytes32",
name: "_right",
type: "bytes32"
}
],
name: "hashLeftRight",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "pure",
type: "function"
},
{
inputs: [],
name: "hasher",
outputs: [
{
internalType: "contract IHasher",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "_root",
type: "bytes32"
}
],
name: "isKnownRoot",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "levels",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "nextIndex",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "roots",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "zeros",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode$S = "0x60c0604052600380546001600160401b031916905534801561002057600080fd5b50604051610a10380380610a1083398101604081905261003f91610385565b60008263ffffffff16116100a65760405162461bcd60e51b815260206004820152602360248201527f5f6c6576656c732073686f756c642062652067726561746572207468616e207a60448201526265726f60e81b60648201526084015b60405180910390fd5b60208263ffffffff16106100fc5760405162461bcd60e51b815260206004820152601e60248201527f5f6c6576656c732073686f756c64206265206c657373207468616e2033320000604482015260640161009d565b63ffffffff821660a0526001600160a01b0381166080527f2fe54c60d3acabf3343a35b6eba15db4821b340f76e741e2249685ed4899af6c60005b8363ffffffff168163ffffffff1610156101845763ffffffff8116600090815260016020908152604080832085905590829052902082905561017a8383806101b8565b9150600101610137565b506000805260026020527fac33ff75c19e70fe83507db0d683fd3465c996598dc972688b7ace676c89077b55506103f89050565b60006000805160206109f083398151915283106102175760405162461bcd60e51b815260206004820181905260248201527f5f6c6566742073686f756c6420626520696e7369646520746865206669656c64604482015260640161009d565b6000805160206109f0833981519152821061027e5760405162461bcd60e51b815260206004820152602160248201527f5f72696768742073686f756c6420626520696e7369646520746865206669656c6044820152601960fa1b606482015260840161009d565b60405163f47d33b560e01b81526004810184905260006024820181905284916001600160a01b0387169063f47d33b5906044016040805180830381865afa1580156102cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f191906103d4565b90925090506000805160206109f083398151915284830860405163f47d33b560e01b815260048101829052602481018390529092506001600160a01b0387169063f47d33b5906044016040805180830381865afa158015610356573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037a91906103d4565b509695505050505050565b6000806040838503121561039857600080fd5b825163ffffffff811681146103ac57600080fd5b60208401519092506001600160a01b03811681146103c957600080fd5b809150509250929050565b600080604083850312156103e757600080fd5b505080516020909101519092909150565b60805160a0516105d361041d60003960006101010152600061020f01526105d36000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063c2b40ae41161008c578063ec73295911610066578063ec732959146101e3578063ed33639f1461020a578063f178e47c14610249578063fc7e9c6f1461026957600080fd5b8063c2b40ae41461019b578063cd87a3b4146101bb578063e8295588146101c357600080fd5b8063414a37ba146100d45780634ecf518b146100fc5780636d9833e3146101385780638ea3099e1461015b57806390eeb02b1461016e578063ba70f7571461017e575b600080fd5b6100e960008051602061057e83398151915281565b6040519081526020015b60405180910390f35b6101237f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff90911681526020016100f3565b61014b6101463660046104d1565b610281565b60405190151581526020016100f3565b6100e96101693660046104ea565b6102ff565b6003546101239063ffffffff1681565b60035463ffffffff166000908152600260205260409020546100e9565b6100e96101a93660046104d1565b60026020526000908152604090205481565b610123601e81565b6100e96101d13660046104d1565b60016020526000908152604090205481565b6100e97f2fe54c60d3acabf3343a35b6eba15db4821b340f76e741e2249685ed4899af6c81565b6102317f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100f3565b6100e96102573660046104d1565b60006020819052908152604090205481565b60035461012390640100000000900463ffffffff1681565b600081810361029257506000919050565b60035463ffffffff16805b63ffffffff811660009081526002602052604090205484036102c3575060019392505050565b8063ffffffff166000036102d55750601e5b806102df8161052b565b9150508163ffffffff168163ffffffff160361029d575060009392505050565b600060008051602061057e83398151915283106103635760405162461bcd60e51b815260206004820181905260248201527f5f6c6566742073686f756c6420626520696e7369646520746865206669656c6460448201526064015b60405180910390fd5b60008051602061057e83398151915282106103ca5760405162461bcd60e51b815260206004820152602160248201527f5f72696768742073686f756c6420626520696e7369646520746865206669656c6044820152601960fa1b606482015260840161035a565b60405163f47d33b560e01b81
const isSuperArgs$S = (xs) => xs.length > 1;
class MerkleTreeWithHistory__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$S(args)) {
super(...args);
} else {
super(_abi$1s, _bytecode$S, args[0]);
}
}
getDeployTransaction(_levels, _hasher, overrides) {
return super.getDeployTransaction(_levels, _hasher, overrides || {});
}
deploy(_levels, _hasher, overrides) {
return super.deploy(_levels, _hasher, overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$1s);
}
static connect(address, runner) {
return new Contract(
address,
_abi$1s,
runner
);
}
}
MerkleTreeWithHistory__factory.bytecode = _bytecode$S;
MerkleTreeWithHistory__factory.abi = _abi$1s;
var index$G = /*#__PURE__*/Object.freeze({
__proto__: null,
IHasher__factory: IHasher__factory,
MerkleTreeWithHistory__factory: MerkleTreeWithHistory__factory
});
const _abi$1r = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Transfer",
type: "event"
},
{
inputs: [],
name: "_totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "who",
type: "address"
}
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "transfer",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
class ERC20Basic__factory {
static createInterface() {
return new Interface(_abi$1r);
}
static connect(address, runner) {
return new Contract(address, _abi$1r, runner);
}
}
ERC20Basic__factory.abi = _abi$1r;
const _abi$1q = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "spender",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Approval",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Transfer",
type: "event"
},
{
inputs: [],
name: "_totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "spender",
type: "address"
}
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "approve",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "who",
type: "address"
}
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "transfer",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address"
},
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "transferFrom",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
class IUSDT__factory {
static createInterface() {
return new Interface(_abi$1q);
}
static connect(address, runner) {
return new Contract(address, _abi$1q, runner);
}
}
IUSDT__factory.abi = _abi$1q;
var index$F = /*#__PURE__*/Object.freeze({
__proto__: null,
ERC20Basic__factory: ERC20Basic__factory,
IUSDT__factory: IUSDT__factory
});
const _abi$1p = [
{
stateMutability: "nonpayable",
type: "fallback"
}
];
const _bytecode$R = "0x6080604052348015600f57600080fd5b50609c80601d6000396000f3fe6080604052348015600f57600080fd5b5060405162461bcd60e51b815260206004820152602160248201527f7468697320636f6e747261637420646f6573206e6f74206163636570742045546044820152600960fb1b606482015260840160405180910390fdfea264697066735822122034c2432feedadd0f30a6f66555381c20922b6ab7c9b3ede4c27896b23e802a8264736f6c63430008190033";
const isSuperArgs$R = (xs) => xs.length > 1;
class BadRecipient__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$R(args)) {
super(...args);
} else {
super(_abi$1p, _bytecode$R, args[0]);
}
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(overrides || {});
}
deploy(overrides) {
return super.deploy(overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$1p);
}
static connect(address, runner) {
return new Contract(address, _abi$1p, runner);
}
}
BadRecipient__factory.bytecode = _bytecode$R;
BadRecipient__factory.abi = _abi$1p;
const _abi$1o = [
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "allowance",
type: "uint256"
},
{
internalType: "uint256",
name: "needed",
type: "uint256"
}
],
name: "ERC20InsufficientAllowance",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: "uint256",
name: "balance",
type: "uint256"
},
{
internalType: "uint256",
name: "needed",
type: "uint256"
}
],
name: "ERC20InsufficientBalance",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "approver",
type: "address"
}
],
name: "ERC20InvalidApprover",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "receiver",
type: "address"
}
],
name: "ERC20InvalidReceiver",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
}
],
name: "ERC20InvalidSender",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
}
],
name: "ERC20InvalidSpender",
type: "error"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "spender",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Approval",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Transfer",
type: "event"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "spender",
type: "address"
}
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "decimals",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "mint",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "name",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "symbol",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address"
},
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode$Q = "0x608060405234801561001057600080fd5b50604051806040016040528060078152602001664441494d6f636b60c81b815250604051806040016040528060048152602001634441494d60e01b815250816003908161005d9190610113565b50600461006a8282610113565b5050506101d2565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061009c57607f821691505b6020821081036100bc57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561010e576000816000526020600020601f850160051c810160208610156100eb5750805b601f850160051c820191505b8181101561010a578281556001016100f7565b5050505b505050565b81516001600160401b0381111561012c5761012c610072565b6101408161013a8454610088565b846100c2565b602080601f831160018114610175576000841561015d5750858301515b600019600386901b1c1916600185901b17855561010a565b600085815260208120601f198616915b828110156101a457888601518255948401946001909101908401610185565b50858210156101c25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b610785806101e16000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c806340c10f191161006657806340c10f191461011857806370a082311461012d57806395d89b4114610156578063a9059cbb1461015e578063dd62ed3e1461017157600080fd5b806306fdde03146100a3578063095ea7b3146100c157806318160ddd146100e457806323b872dd146100f6578063313ce56714610109575b600080fd5b6100ab6101aa565b6040516100b891906105ce565b60405180910390f35b6100d46100cf366004610639565b61023c565b60405190151581526020016100b8565b6002545b6040519081526020016100b8565b6100d4610104366004610663565b610256565b604051601281526020016100b8565b61012b610126366004610639565b61027a565b005b6100e861013b36600461069f565b6001600160a01b031660009081526020819052604090205490565b6100ab610288565b6100d461016c366004610639565b610297565b6100e861017f3660046106c1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6060600380546101b9906106f4565b80601f01602080910402602001604051908101604052809291908181526020018280546101e5906106f4565b80156102325780601f1061020757610100808354040283529160200191610232565b820191906000526020600020905b81548152906001019060200180831161021557829003601f168201915b5050505050905090565b60003361024a8185856102a5565b60019150505b92915050565b6000336102648582856102b7565b61026f85858561033a565b506001949350505050565b6102848282610399565b5050565b6060600480546101b9906106f4565b60003361024a81858561033a565b6102b283838360016103cf565b505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610334578181101561032557604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064015b60405180910390fd5b610334848484840360006103cf565b50505050565b6001600160a01b03831661036457604051634b637e8f60e11b81526000600482015260240161031c565b6001600160a01b03821661038e5760405163ec442f0560e01b81526000600482015260240161031c565b6102b28383836104a4565b6001600160a01b0382166103c35760405163ec442f0560e01b81526000600482015260240161031c565b610284600083836104a4565b6001600160a01b0384166103f95760405163e602df0560e01b81526000600482015260240161031c565b6001600160a01b03831661042357604051634a1406b160e11b81526000600482015260240161031c565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561033457826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161049691815260200190565b60405180910390a350505050565b6001600160a01b0383166104cf5780600260008282546104c4919061072e565b909155506105419050565b6001600160a01b038316600090815260208190526040902054818110156105225760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161031c565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661055d5760028054829003905561057c565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516105c191815260200190565b60405180910390a3505050565b60006020808352835180602085015260005b818110156105fc578581018301518582016040015282016105e0565b506000604082860101526040601f19601f8301168501
const isSuperArgs$Q = (xs) => xs.length > 1;
class ERC20Mock__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$Q(args)) {
super(...args);
} else {
super(_abi$1o, _bytecode$Q, args[0]);
}
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(overrides || {});
}
deploy(overrides) {
return super.deploy(overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$1o);
}
static connect(address, runner) {
return new Contract(address, _abi$1o, runner);
}
}
ERC20Mock__factory.bytecode = _bytecode$Q;
ERC20Mock__factory.abi = _abi$1o;
const _abi$1n = [
{
inputs: [
{
internalType: "bytes",
name: "_initCode",
type: "bytes"
},
{
internalType: "bytes32",
name: "_salt",
type: "bytes32"
}
],
name: "deploy",
outputs: [
{
internalType: "address payable",
name: "createdContract",
type: "address"
}
],
stateMutability: "nonpayable",
type: "function"
}
];
let IDeployer__factory$1 = class IDeployer__factory {
static createInterface() {
return new Interface(_abi$1n);
}
static connect(address, runner) {
return new Contract(address, _abi$1n, runner);
}
};
IDeployer__factory$1.abi = _abi$1n;
const _abi$1m = [
{
inputs: [
{
internalType: "uint32",
name: "_treeLevels",
type: "uint32"
},
{
internalType: "contract IHasher",
name: "_hasher",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
inputs: [],
name: "FIELD_SIZE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "ROOT_HISTORY_SIZE",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "ZERO_VALUE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "currentRootIndex",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "filledSubtrees",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "getLastRoot",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract IHasher",
name: "_hasher",
type: "address"
},
{
internalType: "bytes32",
name: "_left",
type: "bytes32"
},
{
internalType: "bytes32",
name: "_right",
type: "bytes32"
}
],
name: "hashLeftRight",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "pure",
type: "function"
},
{
inputs: [],
name: "hasher",
outputs: [
{
internalType: "contract IHasher",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "_leaf",
type: "bytes32"
}
],
name: "insert",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "_root",
type: "bytes32"
}
],
name: "isKnownRoot",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "levels",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "nextIndex",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "roots",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "zeros",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode$P = "0x60c0604052600380546001600160401b031916905534801561002057600080fd5b50604051610e3c380380610e3c83398101604081905261003f91610389565b818160008263ffffffff16116100a85760405162461bcd60e51b815260206004820152602360248201527f5f6c6576656c732073686f756c642062652067726561746572207468616e207a60448201526265726f60e81b60648201526084015b60405180910390fd5b60208263ffffffff16106100fe5760405162461bcd60e51b815260206004820152601e60248201527f5f6c6576656c732073686f756c64206265206c657373207468616e2033320000604482015260640161009f565b63ffffffff821660a0526001600160a01b0381166080527f2fe54c60d3acabf3343a35b6eba15db4821b340f76e741e2249685ed4899af6c60005b8363ffffffff168163ffffffff1610156101865763ffffffff8116600090815260016020908152604080832085905590829052902082905561017c8383806101bc565b9150600101610139565b506000805260026020527fac33ff75c19e70fe83507db0d683fd3465c996598dc972688b7ace676c89077b55506103fc92505050565b6000600080516020610e1c833981519152831061021b5760405162461bcd60e51b815260206004820181905260248201527f5f6c6566742073686f756c6420626520696e7369646520746865206669656c64604482015260640161009f565b600080516020610e1c83398151915282106102825760405162461bcd60e51b815260206004820152602160248201527f5f72696768742073686f756c6420626520696e7369646520746865206669656c6044820152601960fa1b606482015260840161009f565b60405163f47d33b560e01b81526004810184905260006024820181905284916001600160a01b0387169063f47d33b5906044016040805180830381865afa1580156102d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f591906103d8565b9092509050600080516020610e1c83398151915284830860405163f47d33b560e01b815260048101829052602481018390529092506001600160a01b0387169063f47d33b5906044016040805180830381865afa15801561035a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037e91906103d8565b509695505050505050565b6000806040838503121561039c57600080fd5b825163ffffffff811681146103b057600080fd5b60208401519092506001600160a01b03811681146103cd57600080fd5b809150509250929050565b600080604083850312156103eb57600080fd5b505080516020909101519092909150565b60805160a0516109e6610436600039600081816101310152818161052701526105c901526000818161023f015261066101526109e66000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063c2b40ae41161008c578063ec73295911610066578063ec73295914610213578063ed33639f1461023a578063f178e47c14610279578063fc7e9c6f1461029957600080fd5b8063c2b40ae4146101cb578063cd87a3b4146101eb578063e8295588146101f357600080fd5b80636d9833e3116100c85780636d9833e3146101685780638ea3099e1461018b57806390eeb02b1461019e578063ba70f757146101ae57600080fd5b80632d287e43146100ef578063414a37ba146101045780634ecf518b1461012c575b600080fd5b6101026100fd36600461072c565b6102b1565b005b61011960008051602061099183398151915281565b6040519081526020015b60405180910390f35b6101537f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff9091168152602001610123565b61017b61017636600461072c565b6102be565b6040519015158152602001610123565b610119610199366004610745565b61033c565b6003546101539063ffffffff1681565b60035463ffffffff16600090815260026020526040902054610119565b6101196101d936600461072c565b60026020526000908152604090205481565b610153601e81565b61011961020136600461072c565b60016020526000908152604090205481565b6101197f2fe54c60d3acabf3343a35b6eba15db4821b340f76e741e2249685ed4899af6c81565b6102617f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610123565b61011961028736600461072c565b60006020819052908152604090205481565b60035461015390640100000000900463ffffffff1681565b6102ba8161050e565b5050565b60008181036102cf57506000919050565b60035463ffffffff16805b63ffffffff81166000908152600260205260409020548403610300575060019392505050565b8063ffffffff166000036103125750601e5b8061031c8161079c565b9150508163ffffffff168163ffffffff16036102da575060009392505050565b600060008051602061099183398151915283106103a05760405162461bcd60e51b815260206004820181905260248201527f5f6c6566742073686f756c6420626520696e7369646520746865206669656c6460448201526064015b60405180910390fd5b60008051602061099183398151915282106104075760405162461bcd60
const isSuperArgs$P = (xs) => xs.length > 1;
class MerkleTreeWithHistoryMock__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$P(args)) {
super(...args);
} else {
super(_abi$1m, _bytecode$P, args[0]);
}
}
getDeployTransaction(_treeLevels, _hasher, overrides) {
return super.getDeployTransaction(_treeLevels, _hasher, overrides || {});
}
deploy(_treeLevels, _hasher, overrides) {
return super.deploy(_treeLevels, _hasher, overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$1m);
}
static connect(address, runner) {
return new Contract(
address,
_abi$1m,
runner
);
}
}
MerkleTreeWithHistoryMock__factory.bytecode = _bytecode$P;
MerkleTreeWithHistoryMock__factory.abi = _abi$1m;
var index$E = /*#__PURE__*/Object.freeze({
__proto__: null,
BadRecipient__factory: BadRecipient__factory,
ERC20Mock__factory: ERC20Mock__factory,
IDeployer__factory: IDeployer__factory$1,
MerkleTreeWithHistoryMock__factory: MerkleTreeWithHistoryMock__factory,
iusdtSol: index$F
});
const _abi$1l = [
{
inputs: [
{
internalType: "bytes",
name: "_proof",
type: "bytes"
},
{
internalType: "uint256[6]",
name: "_input",
type: "uint256[6]"
}
],
name: "verifyProof",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
}
];
class IVerifier__factory {
static createInterface() {
return new Interface(_abi$1l);
}
static connect(address, runner) {
return new Contract(address, _abi$1l, runner);
}
}
IVerifier__factory.abi = _abi$1l;
const _abi$1k = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "bytes32",
name: "commitment",
type: "bytes32"
},
{
indexed: false,
internalType: "uint32",
name: "leafIndex",
type: "uint32"
},
{
indexed: false,
internalType: "uint256",
name: "timestamp",
type: "uint256"
}
],
name: "Deposit",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "bytes32",
name: "nullifierHash",
type: "bytes32"
},
{
indexed: true,
internalType: "address",
name: "relayer",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "fee",
type: "uint256"
}
],
name: "Withdrawal",
type: "event"
},
{
inputs: [],
name: "FIELD_SIZE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "ROOT_HISTORY_SIZE",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "ZERO_VALUE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
name: "commitments",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "currentRootIndex",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "denomination",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "_commitment",
type: "bytes32"
}
],
name: "deposit",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "filledSubtrees",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "getLastRoot",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract IHasher",
name: "_hasher",
type: "address"
},
{
internalType: "bytes32",
name: "_left",
type: "bytes32"
},
{
internalType: "bytes32",
name: "_right",
type: "bytes32"
}
],
name: "hashLeftRight",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "pure",
type: "function"
},
{
inputs: [],
name: "hasher",
outputs: [
{
internalType: "contract IHasher",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "_root",
type: "bytes32"
}
],
name: "isKnownRoot",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "_nullifierHash",
type: "bytes32"
}
],
name: "isSpent",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32[]",
name: "_nullifierHashes",
type: "bytes32[]"
}
],
name: "isSpentArray",
outputs: [
{
internalType: "bool[]",
name: "spent",
type: "bool[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "levels",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "nextIndex",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
name: "nullifierHashes",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "roots",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "verifier",
outputs: [
{
internalType: "contract IVerifier",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes",
name: "_proof",
type: "bytes"
},
{
internalType: "bytes32",
name: "_root",
type: "bytes32"
},
{
internalType: "bytes32",
name: "_nullifierHash",
type: "bytes32"
},
{
internalType: "address payable",
name: "_recipient",
type: "address"
},
{
internalType: "address payable",
name: "_relayer",
type: "address"
},
{
internalType: "uint256",
name: "_fee",
type: "uint256"
},
{
internalType: "uint256",
name: "_refund",
type: "uint256"
}
],
name: "withdraw",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "zeros",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
}
];
class Tornado__factory {
static createInterface() {
return new Interface(_abi$1k);
}
static connect(address, runner) {
return new Contract(address, _abi$1k, runner);
}
}
Tornado__factory.abi = _abi$1k;
var index$D = /*#__PURE__*/Object.freeze({
__proto__: null,
IVerifier__factory: IVerifier__factory,
Tornado__factory: Tornado__factory
});
const _abi$1j = [
{
inputs: [],
name: "denomination",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "commitment",
type: "bytes32"
}
],
name: "deposit",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [],
name: "token",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes",
name: "proof",
type: "bytes"
},
{
internalType: "bytes32",
name: "root",
type: "bytes32"
},
{
internalType: "bytes32",
name: "nullifierHash",
type: "bytes32"
},
{
internalType: "address payable",
name: "recipient",
type: "address"
},
{
internalType: "address payable",
name: "relayer",
type: "address"
},
{
internalType: "uint256",
name: "fee",
type: "uint256"
},
{
internalType: "uint256",
name: "refund",
type: "uint256"
}
],
name: "withdraw",
outputs: [],
stateMutability: "payable",
type: "function"
}
];
let ITornadoInstance__factory$1 = class ITornadoInstance__factory {
static createInterface() {
return new Interface(_abi$1j);
}
static connect(address, runner) {
return new Contract(address, _abi$1j, runner);
}
};
ITornadoInstance__factory$1.abi = _abi$1j;
const _abi$1i = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "sender",
type: "address"
},
{
indexed: false,
internalType: "bytes",
name: "encryptedNote",
type: "bytes"
}
],
name: "EncryptedNote",
type: "event"
},
{
inputs: [
{
internalType: "bytes[]",
name: "_encryptedNotes",
type: "bytes[]"
}
],
name: "backupNotes",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "contract ITornadoInstance",
name: "_tornado",
type: "address"
},
{
internalType: "bytes32",
name: "_commitment",
type: "bytes32"
},
{
internalType: "bytes",
name: "_encryptedNote",
type: "bytes"
}
],
name: "deposit",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [
{
internalType: "contract ITornadoInstance",
name: "_tornado",
type: "address"
},
{
internalType: "bytes",
name: "_proof",
type: "bytes"
},
{
internalType: "bytes32",
name: "_root",
type: "bytes32"
},
{
internalType: "bytes32",
name: "_nullifierHash",
type: "bytes32"
},
{
internalType: "address payable",
name: "_recipient",
type: "address"
},
{
internalType: "address payable",
name: "_relayer",
type: "address"
},
{
internalType: "uint256",
name: "_fee",
type: "uint256"
},
{
internalType: "uint256",
name: "_refund",
type: "uint256"
}
],
name: "withdraw",
outputs: [],
stateMutability: "payable",
type: "function"
}
];
const _bytecode$O = "0x608060405234801561001057600080fd5b506104f6806100206000396000f3fe6080604052600436106100345760003560e01c806313d98d13146100395780636485ba2a1461004e578063b438689f1461006e575b600080fd5b61004c6100473660046102c7565b610081565b005b34801561005a57600080fd5b5061004c610069366004610258565b61012a565b61004c61007c366004610321565b610198565b60405163b214faa560e01b81526001600160a01b0385169063b214faa59034906100af9087906004016103ec565b6000604051808303818588803b1580156100c857600080fd5b505af11580156100dc573d6000803e3d6000fd5b5050505050336001600160a01b03167ffa28df43db3553771f7209dcef046f3bdfea15870ab625dcda30ac58b82b4008838360405161011c9291906103f5565b60405180910390a250505050565b60005b8181101561019357337ffa28df43db3553771f7209dcef046f3bdfea15870ab625dcda30ac58b82b400884848481811061016357fe5b90506020028101906101759190610463565b6040516101839291906103f5565b60405180910390a260010161012d565b505050565b6040516310d056db60e11b81526001600160a01b038a16906321a0adb69034906101d4908c908c908c908c908c908c908c908c90600401610411565b6000604051808303818588803b1580156101ed57600080fd5b505af1158015610201573d6000803e3d6000fd5b5050505050505050505050505050565b60008083601f840112610222578182fd5b50813567ffffffffffffffff811115610239578182fd5b60208301915083602082850101111561025157600080fd5b9250929050565b6000806020838503121561026a578182fd5b823567ffffffffffffffff80821115610281578384fd5b818501915085601f830112610294578384fd5b8135818111156102a2578485fd5b86602080830285010111156102b5578485fd5b60209290920196919550909350505050565b600080600080606085870312156102dc578182fd5b84356102e7816104a8565b935060208501359250604085013567ffffffffffffffff811115610309578283fd5b61031587828801610211565b95989497509550505050565b60008060008060008060008060006101008a8c03121561033f578485fd5b893561034a816104a8565b985060208a013567ffffffffffffffff811115610365578586fd5b6103718c828d01610211565b90995097505060408a0135955060608a0135945060808a0135610393816104a8565b935060a08a01356103a3816104a8565b8093505060c08a0135915060e08a013590509295985092959850929598565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b90815260200190565b6000602082526104096020830184866103c2565b949350505050565b600060e0825261042560e083018a8c6103c2565b60208301989098525060408101959095526001600160a01b03938416606086015291909216608084015260a083019190915260c09091015292915050565b6000808335601e19843603018112610479578283fd5b83018035915067ffffffffffffffff821115610493578283fd5b60200191503681900382131561025157600080fd5b6001600160a01b03811681146104bd57600080fd5b5056fea26469706673582212209e714d6385e2c86cc03186c5204b41573676ba810258f1b09d9b7e267ca73d2f64736f6c634300060c0033";
const isSuperArgs$O = (xs) => xs.length > 1;
class TornadoProxyLight__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$O(args)) {
super(...args);
} else {
super(_abi$1i, _bytecode$O, args[0]);
}
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(overrides || {});
}
deploy(overrides) {
return super.deploy(overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$1i);
}
static connect(address, runner) {
return new Contract(address, _abi$1i, runner);
}
}
TornadoProxyLight__factory.bytecode = _bytecode$O;
TornadoProxyLight__factory.abi = _abi$1i;
var index$C = /*#__PURE__*/Object.freeze({
__proto__: null,
ITornadoInstance__factory: ITornadoInstance__factory$1,
TornadoProxyLight__factory: TornadoProxyLight__factory
});
const _abi$1h = [
{
inputs: [],
name: "DOMAIN_SEPARATOR",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "spender",
type: "address"
}
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
}
],
name: "nonces",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "value",
type: "uint256"
},
{
internalType: "uint256",
name: "deadline",
type: "uint256"
},
{
internalType: "uint8",
name: "v",
type: "uint8"
},
{
internalType: "bytes32",
name: "r",
type: "bytes32"
},
{
internalType: "bytes32",
name: "s",
type: "bytes32"
}
],
name: "permit",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
}
];
class IERC20__factory {
static createInterface() {
return new Interface(_abi$1h);
}
static connect(address, runner) {
return new Contract(address, _abi$1h, runner);
}
}
IERC20__factory.abi = _abi$1h;
var index$B = /*#__PURE__*/Object.freeze({
__proto__: null,
IERC20__factory: IERC20__factory
});
const _abi$1g = [
{
inputs: [
{
internalType: "contract IVerifier",
name: "_verifier",
type: "address"
},
{
internalType: "contract IHasher",
name: "_hasher",
type: "address"
},
{
internalType: "uint256",
name: "_denomination",
type: "uint256"
},
{
internalType: "uint32",
name: "_merkleTreeHeight",
type: "uint32"
},
{
internalType: "contract IERC20",
name: "_token",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "bytes32",
name: "commitment",
type: "bytes32"
},
{
indexed: false,
internalType: "uint32",
name: "leafIndex",
type: "uint32"
},
{
indexed: false,
internalType: "uint256",
name: "timestamp",
type: "uint256"
}
],
name: "Deposit",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "bytes32",
name: "nullifierHash",
type: "bytes32"
},
{
indexed: true,
internalType: "address",
name: "relayer",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "fee",
type: "uint256"
}
],
name: "Withdrawal",
type: "event"
},
{
inputs: [],
name: "FIELD_SIZE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "ROOT_HISTORY_SIZE",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "ZERO_VALUE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
name: "commitments",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "currentRootIndex",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "denomination",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "_commitment",
type: "bytes32"
}
],
name: "deposit",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "filledSubtrees",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "getLastRoot",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract IHasher",
name: "_hasher",
type: "address"
},
{
internalType: "bytes32",
name: "_left",
type: "bytes32"
},
{
internalType: "bytes32",
name: "_right",
type: "bytes32"
}
],
name: "hashLeftRight",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "pure",
type: "function"
},
{
inputs: [],
name: "hasher",
outputs: [
{
internalType: "contract IHasher",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "_root",
type: "bytes32"
}
],
name: "isKnownRoot",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "_nullifierHash",
type: "bytes32"
}
],
name: "isSpent",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32[]",
name: "_nullifierHashes",
type: "bytes32[]"
}
],
name: "isSpentArray",
outputs: [
{
internalType: "bool[]",
name: "spent",
type: "bool[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "levels",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "nextIndex",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
name: "nullifierHashes",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "roots",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "token",
outputs: [
{
internalType: "contract IERC20",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "verifier",
outputs: [
{
internalType: "contract IVerifier",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes",
name: "_proof",
type: "bytes"
},
{
internalType: "bytes32",
name: "_root",
type: "bytes32"
},
{
internalType: "bytes32",
name: "_nullifierHash",
type: "bytes32"
},
{
internalType: "address payable",
name: "_recipient",
type: "address"
},
{
internalType: "address payable",
name: "_relayer",
type: "address"
},
{
internalType: "uint256",
name: "_fee",
type: "uint256"
},
{
internalType: "uint256",
name: "_refund",
type: "uint256"
}
],
name: "withdraw",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "zeros",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode$N = "0x610120604052600380546001600160401b031916905534801561002157600080fd5b50604051611db8380380611db883398101604081905261004091610420565b84848484808360008263ffffffff16116100ad5760405162461bcd60e51b815260206004820152602360248201527f5f6c6576656c732073686f756c642062652067726561746572207468616e207a60448201526265726f60e81b60648201526084015b60405180910390fd5b60208263ffffffff16106101035760405162461bcd60e51b815260206004820152601e60248201527f5f6c6576656c732073686f756c64206265206c657373207468616e203332000060448201526064016100a4565b63ffffffff821660a0526001600160a01b0381166080527f2fe54c60d3acabf3343a35b6eba15db4821b340f76e741e2249685ed4899af6c60005b8363ffffffff168163ffffffff16101561018b5763ffffffff8116600090815260016020908152604080832085905590829052902082905561018183838061023b565b915060010161013e565b506000805260026020527fac33ff75c19e70fe83507db0d683fd3465c996598dc972688b7ace676c89077b5550506001600455816102195760405162461bcd60e51b815260206004820152602560248201527f64656e6f6d696e6174696f6e2073686f756c6420626520677265617465722074604482015264068616e20360dc1b60648201526084016100a4565b506001600160a01b0392831660c05260e052501661010052506104b892505050565b6000600080516020611d98833981519152831061029a5760405162461bcd60e51b815260206004820181905260248201527f5f6c6566742073686f756c6420626520696e7369646520746865206669656c6460448201526064016100a4565b600080516020611d9883398151915282106103015760405162461bcd60e51b815260206004820152602160248201527f5f72696768742073686f756c6420626520696e7369646520746865206669656c6044820152601960fa1b60648201526084016100a4565b60405163f47d33b560e01b81526004810184905260006024820181905284916001600160a01b0387169063f47d33b5906044016040805180830381865afa158015610350573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103749190610494565b9092509050600080516020611d9883398151915284830860405163f47d33b560e01b815260048101829052602481018390529092506001600160a01b0387169063f47d33b5906044016040805180830381865afa1580156103d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103fd9190610494565b509695505050505050565b6001600160a01b038116811461041d57600080fd5b50565b600080600080600060a0868803121561043857600080fd5b855161044381610408565b602087015190955061045481610408565b60408701516060880151919550935063ffffffff8116811461047557600080fd5b608087015190925061048681610408565b809150509295509295909350565b600080604083850312156104a757600080fd5b505080516020909101519092909150565b60805160a05160c05160e05161010051611856610542600039600081816104ca01528181610cfa01528181610d34015261108e0152600081816102bb0152818161056f01528181610ccc01526110b20152600081816101a601526106d801526000818161022201528181610e150152610eb70152600081816104690152610f4f01526118566000f3fe6080604052600436106101355760003560e01c8063b214faa5116100ab578063e82955881161006f578063e8295588146103f6578063ec73295914610423578063ed33639f14610457578063f178e47c1461048b578063fc0c546a146104b8578063fc7e9c6f146104ec57600080fd5b8063b214faa514610347578063ba70f7571461035a578063c2b40ae414610384578063cd87a3b4146103b1578063e5285dcc146103c657600080fd5b80636d9833e3116100fd5780636d9833e314610259578063839df945146102795780638bca6d16146102a95780638ea3099e146102dd57806390eeb02b146102fd5780639fa12d0b1461031a57600080fd5b806317cc915c1461013a57806321a0adb61461017f5780632b7ac3f314610194578063414a37ba146101e05780634ecf518b14610210575b600080fd5b34801561014657600080fd5b5061016a61015536600461131d565b60056020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b61019261018d36600461135e565b610511565b005b3480156101a057600080fd5b506101c87f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610176565b3480156101ec57600080fd5b5061020260008051602061180183398151915281565b604051908152602001610176565b34801561021c57600080fd5b506102447f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff9091168152602001610176565b34801561026557600080fd5b5061016a61027436600461131d565b61081c565b34801561028557600080fd5b5061016a61029436600461131d565b60066020526000908152604090205460ff1681565b3480156102b55760
const isSuperArgs$N = (xs) => xs.length > 1;
class ERC20Tornado__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$N(args)) {
super(...args);
} else {
super(_abi$1g, _bytecode$N, args[0]);
}
}
getDeployTransaction(_verifier, _hasher, _denomination, _merkleTreeHeight, _token, overrides) {
return super.getDeployTransaction(
_verifier,
_hasher,
_denomination,
_merkleTreeHeight,
_token,
overrides || {}
);
}
deploy(_verifier, _hasher, _denomination, _merkleTreeHeight, _token, overrides) {
return super.deploy(
_verifier,
_hasher,
_denomination,
_merkleTreeHeight,
_token,
overrides || {}
);
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$1g);
}
static connect(address, runner) {
return new Contract(address, _abi$1g, runner);
}
}
ERC20Tornado__factory.bytecode = _bytecode$N;
ERC20Tornado__factory.abi = _abi$1g;
const _abi$1f = [
{
inputs: [
{
internalType: "contract IVerifier",
name: "_verifier",
type: "address"
},
{
internalType: "contract IHasher",
name: "_hasher",
type: "address"
},
{
internalType: "uint256",
name: "_denomination",
type: "uint256"
},
{
internalType: "uint32",
name: "_merkleTreeHeight",
type: "uint32"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "bytes32",
name: "commitment",
type: "bytes32"
},
{
indexed: false,
internalType: "uint32",
name: "leafIndex",
type: "uint32"
},
{
indexed: false,
internalType: "uint256",
name: "timestamp",
type: "uint256"
}
],
name: "Deposit",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "bytes32",
name: "nullifierHash",
type: "bytes32"
},
{
indexed: true,
internalType: "address",
name: "relayer",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "fee",
type: "uint256"
}
],
name: "Withdrawal",
type: "event"
},
{
inputs: [],
name: "FIELD_SIZE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "ROOT_HISTORY_SIZE",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "ZERO_VALUE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
name: "commitments",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "currentRootIndex",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "denomination",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "_commitment",
type: "bytes32"
}
],
name: "deposit",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "filledSubtrees",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "getLastRoot",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract IHasher",
name: "_hasher",
type: "address"
},
{
internalType: "bytes32",
name: "_left",
type: "bytes32"
},
{
internalType: "bytes32",
name: "_right",
type: "bytes32"
}
],
name: "hashLeftRight",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "pure",
type: "function"
},
{
inputs: [],
name: "hasher",
outputs: [
{
internalType: "contract IHasher",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "_root",
type: "bytes32"
}
],
name: "isKnownRoot",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "_nullifierHash",
type: "bytes32"
}
],
name: "isSpent",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32[]",
name: "_nullifierHashes",
type: "bytes32[]"
}
],
name: "isSpentArray",
outputs: [
{
internalType: "bool[]",
name: "spent",
type: "bool[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "levels",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "nextIndex",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
name: "nullifierHashes",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "roots",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "verifier",
outputs: [
{
internalType: "contract IVerifier",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes",
name: "_proof",
type: "bytes"
},
{
internalType: "bytes32",
name: "_root",
type: "bytes32"
},
{
internalType: "bytes32",
name: "_nullifierHash",
type: "bytes32"
},
{
internalType: "address payable",
name: "_recipient",
type: "address"
},
{
internalType: "address payable",
name: "_relayer",
type: "address"
},
{
internalType: "uint256",
name: "_fee",
type: "uint256"
},
{
internalType: "uint256",
name: "_refund",
type: "uint256"
}
],
name: "withdraw",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "zeros",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode$M = "0x610100604052600380546001600160401b031916905534801561002157600080fd5b50604051611b68380380611b688339810160408190526100409161041b565b83838383808360008263ffffffff16116100ad5760405162461bcd60e51b815260206004820152602360248201527f5f6c6576656c732073686f756c642062652067726561746572207468616e207a60448201526265726f60e81b60648201526084015b60405180910390fd5b60208263ffffffff16106101035760405162461bcd60e51b815260206004820152601e60248201527f5f6c6576656c732073686f756c64206265206c657373207468616e203332000060448201526064016100a4565b63ffffffff821660a0526001600160a01b0381166080527f2fe54c60d3acabf3343a35b6eba15db4821b340f76e741e2249685ed4899af6c60005b8363ffffffff168163ffffffff16101561018b5763ffffffff81166000908152600160209081526040808320859055908290529020829055610181838380610236565b915060010161013e565b506000805260026020527fac33ff75c19e70fe83507db0d683fd3465c996598dc972688b7ace676c89077b5550506001600455816102195760405162461bcd60e51b815260206004820152602560248201527f64656e6f6d696e6174696f6e2073686f756c6420626520677265617465722074604482015264068616e20360dc1b60648201526084016100a4565b506001600160a01b0390921660c0525060e0525061049d92505050565b6000600080516020611b4883398151915283106102955760405162461bcd60e51b815260206004820181905260248201527f5f6c6566742073686f756c6420626520696e7369646520746865206669656c6460448201526064016100a4565b600080516020611b4883398151915282106102fc5760405162461bcd60e51b815260206004820152602160248201527f5f72696768742073686f756c6420626520696e7369646520746865206669656c6044820152601960fa1b60648201526084016100a4565b60405163f47d33b560e01b81526004810184905260006024820181905284916001600160a01b0387169063f47d33b5906044016040805180830381865afa15801561034b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061036f9190610479565b9092509050600080516020611b4883398151915284830860405163f47d33b560e01b815260048101829052602481018390529092506001600160a01b0387169063f47d33b5906044016040805180830381865afa1580156103d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103f89190610479565b509695505050505050565b6001600160a01b038116811461041857600080fd5b50565b6000806000806080858703121561043157600080fd5b845161043c81610403565b602086015190945061044d81610403565b60408601516060870151919450925063ffffffff8116811461046e57600080fd5b939692955090935050565b6000806040838503121561048c57600080fd5b505080516020909101519092909150565b60805160a05160c05160e051611641610507600039600081816102b00152818161053001528181610d0401526110a201526000818161019b015261069901526000818161021701528181610e9b0152610f3d01526000818161045e0152610fd501526116416000f3fe60806040526004361061012a5760003560e01c80639fa12d0b116100ab578063e5285dcc1161006f578063e5285dcc146103bb578063e8295588146103eb578063ec73295914610418578063ed33639f1461044c578063f178e47c14610480578063fc7e9c6f146104ad57600080fd5b80639fa12d0b1461030f578063b214faa51461033c578063ba70f7571461034f578063c2b40ae414610379578063cd87a3b4146103a657600080fd5b80636d9833e3116100f25780636d9833e31461024e578063839df9451461026e5780638bca6d161461029e5780638ea3099e146102d257806390eeb02b146102f257600080fd5b806317cc915c1461012f57806321a0adb6146101745780632b7ac3f314610189578063414a37ba146101d55780634ecf518b14610205575b600080fd5b34801561013b57600080fd5b5061015f61014a366004611137565b60056020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b610187610182366004611178565b6104d2565b005b34801561019557600080fd5b506101bd7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161016b565b3480156101e157600080fd5b506101f76000805160206115ec83398151915281565b60405190815260200161016b565b34801561021157600080fd5b506102397f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff909116815260200161016b565b34801561025a57600080fd5b5061015f610269366004611137565b6107dd565b34801561027a57600080fd5b5061015f610289366004611137565b60066020526000908152604090205460ff1681565b3480156102aa57600080fd5b506101f77f000000000000000000000000000000000000000000000000000000000000000081565b3480156102de57600080fd5b506101f76102ed36600461122e56
const isSuperArgs$M = (xs) => xs.length > 1;
class ETHTornado__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$M(args)) {
super(...args);
} else {
super(_abi$1f, _bytecode$M, args[0]);
}
}
getDeployTransaction(_verifier, _hasher, _denomination, _merkleTreeHeight, overrides) {
return super.getDeployTransaction(
_verifier,
_hasher,
_denomination,
_merkleTreeHeight,
overrides || {}
);
}
deploy(_verifier, _hasher, _denomination, _merkleTreeHeight, overrides) {
return super.deploy(
_verifier,
_hasher,
_denomination,
_merkleTreeHeight,
overrides || {}
);
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$1f);
}
static connect(address, runner) {
return new Contract(address, _abi$1f, runner);
}
}
ETHTornado__factory.bytecode = _bytecode$M;
ETHTornado__factory.abi = _abi$1f;
const _abi$1e = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "who",
type: "address"
},
{
indexed: false,
internalType: "bytes",
name: "data",
type: "bytes"
}
],
name: "Echo",
type: "event"
},
{
inputs: [
{
internalType: "bytes",
name: "_data",
type: "bytes"
}
],
name: "echo",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode$L = "0x6080604052348015600f57600080fd5b506101638061001f6000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063624fbfdc14610030575b600080fd5b61004361003e36600461008c565b610045565b005b336001600160a01b03167f50d6f3fc915efd1695d8a4cb50da185984f50d256834b9cb308295eb3c872c9c83836040516100809291906100fe565b60405180910390a25050565b6000806020838503121561009f57600080fd5b823567ffffffffffffffff808211156100b757600080fd5b818501915085601f8301126100cb57600080fd5b8135818111156100da57600080fd5b8660208285010111156100ec57600080fd5b60209290920196919550909350505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f1916010191905056fea2646970667358221220cadc2288aafcfeb373ae536503c025419ca51a0b1642ad003ff215a6bff8658464736f6c63430008190033";
const isSuperArgs$L = (xs) => xs.length > 1;
class Echoer__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$L(args)) {
super(...args);
} else {
super(_abi$1e, _bytecode$L, args[0]);
}
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(overrides || {});
}
deploy(overrides) {
return super.deploy(overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$1e);
}
static connect(address, runner) {
return new Contract(address, _abi$1e, runner);
}
}
Echoer__factory.bytecode = _bytecode$L;
Echoer__factory.abi = _abi$1e;
const _abi$1d = [
{
inputs: [
{
internalType: "bytes",
name: "proof",
type: "bytes"
},
{
internalType: "uint256[6]",
name: "input",
type: "uint256[6]"
}
],
name: "verifyProof",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode$K = "0x6080604052348015600f57600080fd5b506110d08061001f6000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063695ef6f914610030575b600080fd5b61004361003e366004610eca565b610057565b604051901515815260200160405180910390f35b6000808380602001905181019061006e9190610f71565b905060005b60088160ff161015610129577f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47828260ff16600881106100b5576100b5610ff0565b6020020151106101175760405162461bcd60e51b815260206004820152602260248201527f76657269666965722d70726f6f662d656c656d656e742d6774652d7072696d656044820152612d7160f01b60648201526084015b60405180910390fd5b806101218161101c565b915050610073565b50610132610ca2565b6040805180820182528351815260208085015181830152908352815160808082018452858401518285019081526060808801519084015282528351808501855290860151815260a08601518184015281830152838201528151808301835260c0850151815260e0850151918101919091529082015260006101b1610321565b90506000604051806040016040528060008152602001600081525090506101f38183608001516000600781106101e9576101e9610ff0565b60200201516107ec565b905060005b60068110156102df577f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000187826006811061023457610234610ff0565b6020020151106102865760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c6400604482015260640161010e565b6102d5826102d0856080015184600161029f919061103b565b600781106102af576102af610ff0565b60200201518a85600681106102c6576102c6610ff0565b602002015161088d565b6107ec565b91506001016101f8565b506103146102f0846000015161091b565b846020015184600001518560200151858760400151896040015189606001516109d5565b9450505050505b92915050565b610329610cf3565b6040805180820182527f2dbfc3ec62a3eee5a3b4b464bcf1f8527bbca12adea0f1f12033cd4f61b0e09181527f19e55bd0b72c126da18665039556776642ff82e2f347f24fcea2475f4db087df6020808301919091529083528151608080820184527f1ae724ab134e5a7c6bd8a116fa5505b259522c0f164a5e8126e3ec7d34465f6e8285019081527e9f1bcdc853f8e3531756bb625b0d1dc014f4ab57c3f79f4f4e2e7ef7e0ead6606080850191909152908352845180860186527f23a8ca5760457e726365b92fd0ceb486665797cd68c35dcffd8e4ae8066691e981527f13ec7182c9fd68331a10f8be0fe885d730de5c7f89aa7d0b7bafaa009bbc9e3e818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835180820185527f2f0c63d0c53b3dfbca27b6b43ae7fbf55a38d78a21470996485b03128accc2088186019081527e556502356e37ed150db2e36531b0f275fd6835c0fc1945922e270b48c48a86828501528152845180860186527f02644c27b5dbd793592a70b735e22c798a5e309fa17a992a7dc2a050e01b298f81527f194776b6a53439d7336f389d2a8f6651e40885f5ca2538b0dc9cb534fb23f7fa818601528185015282860152835180850185527f23df1bc9165e9c1c9b2bc036d8ebdd10e7aeae7e5e8019fde68aec7c818bb23e81527f0b6c92080d37c5fb2ddf30892a33665e5478432ef3f71ac8768ecbbe62c7789281850152818601805191909152845180860186527f1c7b2adf45e046caea000956b2ecb2d8617e710d2a7bb201a95ea276f92307b481527f2b15f07536f45948cf4abe6596637d902ffabb18c8c2f5c151544c294ce4a672818601528151850152845180860186527f1cecfe92882a8c835a47bf01bfa655cf628cbba7f81cf4042179fd13edcd6a3981527f0154bfbb2cb786ca247d4b69183d1751f267bbc7656be8d0f0e7a5a47e2c1101818601528151860152845180860186527f1584616a7423efcc72f69ea84fa0b2bc01433677297f4e8351bebfc15bcd0cda81527f0623755b1488526daa9fecf0e11b110dd6df12c461579d792e1db65af523c8be81860152815190930192909252835180850185527f12fbb5bfca9d61357ba2d641604cf4852e21ef54faa180fe539c18994dc1da5a81527f2f09dd9972a1af5f7bcfccf3d7ab600c9d898ea6d6933150ba0ae228ece17e5f81850152825190910152825180840184527f0adb513796fdf2103022c64151ce05f7c7a6d9200e8d819fa59e654fc4bfe83c81527f2d64f72ef4eddf9ca032058ed2bf691758387e913a77cf99d6a3cfb37c8ba7ee81840152815160a0015282518084019093527f21e7c9bffda74bfd2c4393b6803d775545de6fa89145f4a23476241d9881b66183527f0bbe41e52237ac13eb7b01f3cb999b7394d08734e71b1c
const isSuperArgs$K = (xs) => xs.length > 1;
class Verifier__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$K(args)) {
super(...args);
} else {
super(_abi$1d, _bytecode$K, args[0]);
}
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(overrides || {});
}
deploy(overrides) {
return super.deploy(overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$1d);
}
static connect(address, runner) {
return new Contract(address, _abi$1d, runner);
}
}
Verifier__factory.bytecode = _bytecode$K;
Verifier__factory.abi = _abi$1d;
const _abi$1c = [
{
inputs: [
{
internalType: "address",
name: "_governance",
type: "address"
},
{
internalType: "contract IERC20",
name: "_comp",
type: "address"
},
{
internalType: "contract IVerifier",
name: "_verifier",
type: "address"
},
{
internalType: "contract IHasher",
name: "_hasher",
type: "address"
},
{
internalType: "uint256",
name: "_denomination",
type: "uint256"
},
{
internalType: "uint32",
name: "_merkleTreeHeight",
type: "uint32"
},
{
internalType: "contract IERC20",
name: "_token",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "bytes32",
name: "commitment",
type: "bytes32"
},
{
indexed: false,
internalType: "uint32",
name: "leafIndex",
type: "uint32"
},
{
indexed: false,
internalType: "uint256",
name: "timestamp",
type: "uint256"
}
],
name: "Deposit",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "bytes32",
name: "nullifierHash",
type: "bytes32"
},
{
indexed: true,
internalType: "address",
name: "relayer",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "fee",
type: "uint256"
}
],
name: "Withdrawal",
type: "event"
},
{
inputs: [],
name: "FIELD_SIZE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "ROOT_HISTORY_SIZE",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "ZERO_VALUE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "claimComp",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
name: "commitments",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "comp",
outputs: [
{
internalType: "contract IERC20",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "currentRootIndex",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "denomination",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "_commitment",
type: "bytes32"
}
],
name: "deposit",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "filledSubtrees",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "getLastRoot",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "governance",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract IHasher",
name: "_hasher",
type: "address"
},
{
internalType: "bytes32",
name: "_left",
type: "bytes32"
},
{
internalType: "bytes32",
name: "_right",
type: "bytes32"
}
],
name: "hashLeftRight",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "pure",
type: "function"
},
{
inputs: [],
name: "hasher",
outputs: [
{
internalType: "contract IHasher",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "_root",
type: "bytes32"
}
],
name: "isKnownRoot",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "_nullifierHash",
type: "bytes32"
}
],
name: "isSpent",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32[]",
name: "_nullifierHashes",
type: "bytes32[]"
}
],
name: "isSpentArray",
outputs: [
{
internalType: "bool[]",
name: "spent",
type: "bool[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "levels",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "nextIndex",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
name: "nullifierHashes",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "roots",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "token",
outputs: [
{
internalType: "contract IERC20",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "verifier",
outputs: [
{
internalType: "contract IVerifier",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes",
name: "_proof",
type: "bytes"
},
{
internalType: "bytes32",
name: "_root",
type: "bytes32"
},
{
internalType: "bytes32",
name: "_nullifierHash",
type: "bytes32"
},
{
internalType: "address payable",
name: "_recipient",
type: "address"
},
{
internalType: "address payable",
name: "_relayer",
type: "address"
},
{
internalType: "uint256",
name: "_fee",
type: "uint256"
},
{
internalType: "uint256",
name: "_refund",
type: "uint256"
}
],
name: "withdraw",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "zeros",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode$J = "0x610160604052600380546001600160401b031916905534801561002157600080fd5b5060405161205a38038061205a8339810160408190526100409161048f565b848484848484848484808360008263ffffffff16116100b25760405162461bcd60e51b815260206004820152602360248201527f5f6c6576656c732073686f756c642062652067726561746572207468616e207a60448201526265726f60e81b60648201526084015b60405180910390fd5b60208263ffffffff16106101085760405162461bcd60e51b815260206004820152601e60248201527f5f6c6576656c732073686f756c64206265206c657373207468616e203332000060448201526064016100a9565b63ffffffff821660a0526001600160a01b0381166080527f2fe54c60d3acabf3343a35b6eba15db4821b340f76e741e2249685ed4899af6c60005b8363ffffffff168163ffffffff1610156101905763ffffffff811660009081526001602090815260408083208590559082905290208290556101868383806102aa565b9150600101610143565b506000805260026020527fac33ff75c19e70fe83507db0d683fd3465c996598dc972688b7ace676c89077b55505060016004558161021e5760405162461bcd60e51b815260206004820152602560248201527f64656e6f6d696e6174696f6e2073686f756c6420626520677265617465722074604482015264068616e20360dc1b60648201526084016100a9565b506001600160a01b0392831660c05260e05250908116610100528a16935061028c925050505760405162461bcd60e51b815260206004820152601a60248201527f496e76616c696420434f4d5020746f6b656e206164647265737300000000000060448201526064016100a9565b5050506001600160a01b03938416610120525050166101405261054e565b600060008051602061203a83398151915283106103095760405162461bcd60e51b815260206004820181905260248201527f5f6c6566742073686f756c6420626520696e7369646520746865206669656c6460448201526064016100a9565b60008051602061203a83398151915282106103705760405162461bcd60e51b815260206004820152602160248201527f5f72696768742073686f756c6420626520696e7369646520746865206669656c6044820152601960fa1b60648201526084016100a9565b60405163f47d33b560e01b81526004810184905260006024820181905284916001600160a01b0387169063f47d33b5906044016040805180830381865afa1580156103bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e3919061052a565b909250905060008051602061203a83398151915284830860405163f47d33b560e01b815260048101829052602481018390529092506001600160a01b0387169063f47d33b5906044016040805180830381865afa158015610448573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061046c919061052a565b509695505050505050565b6001600160a01b038116811461048c57600080fd5b50565b600080600080600080600060e0888a0312156104aa57600080fd5b87516104b581610477565b60208901519097506104c681610477565b60408901519096506104d781610477565b60608901519095506104e881610477565b608089015160a08a0151919550935063ffffffff8116811461050957600080fd5b60c089015190925061051a81610477565b8091505092959891949750929550565b6000806040838503121561053d57600080fd5b505080516020909101519092909150565b60805160a05160c05160e051610100516101205161014051611a3e6105fc6000396000818161017d01526105d40152600081816102e5015261060501526000818161057801528181610ecc01528181610f0601526112600152600081816103690152818161074101528181610e9e015261128401526000818161023801526108aa01526000818161029c01528181610fe7015261108901526000818161051701526111210152611a3e6000f3fe6080604052600436106101665760003560e01c806390eeb02b116100d1578063e5285dcc1161008a578063ed33639f11610064578063ed33639f14610505578063f178e47c14610539578063fc0c546a14610566578063fc7e9c6f1461059a57600080fd5b8063e5285dcc14610474578063e8295588146104a4578063ec732959146104d157600080fd5b806390eeb02b146103ab5780639fa12d0b146103c8578063b214faa5146103f5578063ba70f75714610408578063c2b40ae414610432578063cd87a3b41461045f57600080fd5b80634ecf518b116101235780634ecf518b1461028a5780635aa6e675146102d35780636d9833e314610307578063839df945146103275780638bca6d16146103575780638ea3099e1461038b57600080fd5b8063109d0af81461016b57806317cc915c146101bc5780631bd85bdb146101fc57806321a0adb6146102135780632b7ac3f314610226578063414a37ba1461025a575b600080fd5b34801561017757600080fd5b5061019f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101c857600080fd5b506101ec6101d73660046114ef565b60056020526000908152604090205460ff1681565b6040519015158152602001
const isSuperArgs$J = (xs) => xs.length > 1;
class CTornado__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$J(args)) {
super(...args);
} else {
super(_abi$1c, _bytecode$J, args[0]);
}
}
getDeployTransaction(_governance, _comp, _verifier, _hasher, _denomination, _merkleTreeHeight, _token, overrides) {
return super.getDeployTransaction(
_governance,
_comp,
_verifier,
_hasher,
_denomination,
_merkleTreeHeight,
_token,
overrides || {}
);
}
deploy(_governance, _comp, _verifier, _hasher, _denomination, _merkleTreeHeight, _token, overrides) {
return super.deploy(
_governance,
_comp,
_verifier,
_hasher,
_denomination,
_merkleTreeHeight,
_token,
overrides || {}
);
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$1c);
}
static connect(address, runner) {
return new Contract(address, _abi$1c, runner);
}
}
CTornado__factory.bytecode = _bytecode$J;
CTornado__factory.abi = _abi$1c;
var index$A = /*#__PURE__*/Object.freeze({
__proto__: null,
CTornado__factory: CTornado__factory,
ERC20Tornado__factory: ERC20Tornado__factory,
ETHTornado__factory: ETHTornado__factory,
Echoer__factory: Echoer__factory,
Verifier__factory: Verifier__factory,
interfaces: index$B,
merkleTreeWithHistorySol: index$G,
mocks: index$E,
tornadoProxyLightSol: index$C,
tornadoSol: index$D
});
const _abi$1b = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "operator",
type: "address"
},
{
indexed: false,
internalType: "bool",
name: "approved",
type: "bool"
}
],
name: "ApprovalForAll",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "bytes32",
name: "node",
type: "bytes32"
},
{
indexed: true,
internalType: "bytes32",
name: "label",
type: "bytes32"
},
{
indexed: false,
internalType: "address",
name: "owner",
type: "address"
}
],
name: "NewOwner",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "bytes32",
name: "node",
type: "bytes32"
},
{
indexed: false,
internalType: "address",
name: "resolver",
type: "address"
}
],
name: "NewResolver",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "bytes32",
name: "node",
type: "bytes32"
},
{
indexed: false,
internalType: "uint64",
name: "ttl",
type: "uint64"
}
],
name: "NewTTL",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "bytes32",
name: "node",
type: "bytes32"
},
{
indexed: false,
internalType: "address",
name: "owner",
type: "address"
}
],
name: "Transfer",
type: "event"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "operator",
type: "address"
}
],
name: "isApprovedForAll",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "node",
type: "bytes32"
}
],
name: "owner",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "node",
type: "bytes32"
}
],
name: "recordExists",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "node",
type: "bytes32"
}
],
name: "resolver",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "operator",
type: "address"
},
{
internalType: "bool",
name: "approved",
type: "bool"
}
],
name: "setApprovalForAll",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "node",
type: "bytes32"
},
{
internalType: "address",
name: "owner",
type: "address"
}
],
name: "setOwner",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "node",
type: "bytes32"
},
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "resolver",
type: "address"
},
{
internalType: "uint64",
name: "ttl",
type: "uint64"
}
],
name: "setRecord",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "node",
type: "bytes32"
},
{
internalType: "address",
name: "resolver",
type: "address"
}
],
name: "setResolver",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "node",
type: "bytes32"
},
{
internalType: "bytes32",
name: "label",
type: "bytes32"
},
{
internalType: "address",
name: "owner",
type: "address"
}
],
name: "setSubnodeOwner",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "node",
type: "bytes32"
},
{
internalType: "bytes32",
name: "label",
type: "bytes32"
},
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "resolver",
type: "address"
},
{
internalType: "uint64",
name: "ttl",
type: "uint64"
}
],
name: "setSubnodeRecord",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "node",
type: "bytes32"
},
{
internalType: "uint64",
name: "ttl",
type: "uint64"
}
],
name: "setTTL",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "node",
type: "bytes32"
}
],
name: "ttl",
outputs: [
{
internalType: "uint64",
name: "",
type: "uint64"
}
],
stateMutability: "view",
type: "function"
}
];
class IENSRegistry__factory {
static createInterface() {
return new Interface(_abi$1b);
}
static connect(address, runner) {
return new Contract(address, _abi$1b, runner);
}
}
IENSRegistry__factory.abi = _abi$1b;
const _abi$1a = [
{
inputs: [
{
internalType: "bytes32",
name: "node",
type: "bytes32"
}
],
name: "addr",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "node",
type: "bytes32"
},
{
internalType: "string",
name: "key",
type: "string"
}
],
name: "text",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
}
];
class IENSResolver__factory {
static createInterface() {
return new Interface(_abi$1a);
}
static connect(address, runner) {
return new Contract(address, _abi$1a, runner);
}
}
IENSResolver__factory.abi = _abi$1a;
const _abi$19 = [
{
inputs: [
{
internalType: "address",
name: "relayer",
type: "address"
}
],
name: "getRelayerBalance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "relayer",
type: "address"
},
{
internalType: "address",
name: "toResolve",
type: "address"
}
],
name: "isRelayerRegistered",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
}
];
class IRelayerRegistry__factory {
static createInterface() {
return new Interface(_abi$19);
}
static connect(address, runner) {
return new Contract(address, _abi$19, runner);
}
}
IRelayerRegistry__factory.abi = _abi$19;
const _abi$18 = [
{
inputs: [
{
internalType: "address",
name: "_IENSRegistry",
type: "address"
},
{
internalType: "address",
name: "_IRelayerRegistry",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
inputs: [],
name: "ENSRegistry",
outputs: [
{
internalType: "contract IENSRegistry",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "RelayerRegistry",
outputs: [
{
internalType: "contract IRelayerRegistry",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32[]",
name: "_relayers",
type: "bytes32[]"
},
{
internalType: "string[]",
name: "_subdomains",
type: "string[]"
}
],
name: "relayersData",
outputs: [
{
components: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "uint256",
name: "balance",
type: "uint256"
},
{
internalType: "bool",
name: "isRegistered",
type: "bool"
},
{
internalType: "string[20]",
name: "records",
type: "string[20]"
}
],
internalType: "struct Relayer[]",
name: "",
type: "tuple[]"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode$I = "0x60c060405234801561001057600080fd5b50604051610b74380380610b7483398101604081905261002f9161004d565b6001600160601b0319606092831b8116608052911b1660a05261009e565b6000806040838503121561005f578182fd5b825161006a81610086565b602084015190925061007b81610086565b809150509250929050565b6001600160a01b038116811461009b57600080fd5b50565b60805160601c60a05160601c610a9b6100d96000398060b2528061040352806104f1525080608e528061013a528061021b5250610a9b6000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80631cb120d61461004657806339c16356146100645780634d47d7751461006c575b600080fd5b61004e61008c565b60405161005b9190610891565b60405180910390f35b61004e6100b0565b61007f61007a366004610702565b6100d4565b60405161005b91906108bf565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b606080835167ffffffffffffffff811180156100ef57600080fd5b5060405190808252806020026020018201604052801561012957816020015b6101166105cd565b81526020019060019003908161010e5790505b50905060005b84518110156105c5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166302571be386838151811061017357fe5b60200260200101516040518263ffffffff1660e01b8152600401610197919061099d565b60206040518083038186803b1580156101af57600080fd5b505afa1580156101c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101e791906106d4565b8282815181106101f357fe5b6020026020010151600001906001600160a01b031690816001600160a01b03168152505060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630178b8bf87848151811061025457fe5b60200260200101516040518263ffffffff1660e01b8152600401610278919061099d565b60206040518083038186803b15801561029057600080fd5b505afa1580156102a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c891906106d4565b905060005b85518110156104005760008784815181106102e457fe5b60200260200101518783815181106102f857fe5b60200260200101516040516020016103109190610875565b60405160208183030381529060405280519060200120604051602001610337929190610867565b60408051601f19818403018152908290528051602090910120631674750f60e21b825291506001600160a01b038416906359d1d43c9061037b9084906004016109a6565b60006040518083038186803b15801561039357600080fd5b505afa1580156103a7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103cf91908101906107dc565b8585815181106103db57fe5b60200260200101516060015183601481106103f257fe5b6020020152506001016102cd565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b69fd4ab84848151811061043c57fe5b60200260200101516000015185858151811061045457fe5b6020026020010151600001516040518363ffffffff1660e01b815260040161047d9291906108a5565b60206040518083038186803b15801561049557600080fd5b505afa1580156104a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104cd91906107bc565b8383815181106104d957fe5b602002602001015160400190151590811515815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b971a6bf84848151811061052a57fe5b6020026020010151600001516040518263ffffffff1660e01b81526004016105529190610891565b60206040518083038186803b15801561056a57600080fd5b505afa15801561057e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a2919061084f565b8383815181106105ae57fe5b60209081029190910181015101525060010161012f565b509392505050565b604051806080016040528060006001600160a01b0316815260200160008152602001600015158152602001610600610605565b905290565b6040518061028001604052806014905b60608152602001906001900390816106155790505090565b600082601f83011261063d578081fd5b813561065061064b826109f1565b6109ca565b818152915060208083019084810160005b848110156106c9578135870188603f82011261067c57600080fd5b8381013561068c61064b82610a11565b81815260408b818486010111156106a257600080fd5b82818501888401375060009181018601919091528552509282019290820190600101610661565b505050505092915050565b6000602082840312156106e5578081fd5b81516001600160a01b03811681146106fb578182fd5b9392505050565b60008060408385031215610714578081fd5b823567ffffff
const isSuperArgs$I = (xs) => xs.length > 1;
class RelayerAggregator__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$I(args)) {
super(...args);
} else {
super(_abi$18, _bytecode$I, args[0]);
}
}
getDeployTransaction(_IENSRegistry, _IRelayerRegistry, overrides) {
return super.getDeployTransaction(
_IENSRegistry,
_IRelayerRegistry,
overrides || {}
);
}
deploy(_IENSRegistry, _IRelayerRegistry, overrides) {
return super.deploy(
_IENSRegistry,
_IRelayerRegistry,
overrides || {}
);
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$18);
}
static connect(address, runner) {
return new Contract(address, _abi$18, runner);
}
}
RelayerAggregator__factory.bytecode = _bytecode$I;
RelayerAggregator__factory.abi = _abi$18;
var index$z = /*#__PURE__*/Object.freeze({
__proto__: null,
IENSRegistry__factory: IENSRegistry__factory,
IENSResolver__factory: IENSResolver__factory,
IRelayerRegistry__factory: IRelayerRegistry__factory,
RelayerAggregator__factory: RelayerAggregator__factory
});
const _abi$17 = [
{
inputs: [
{
internalType: "address",
name: "_ensRegistry",
type: "address"
},
{
internalType: "address",
name: "_relayerRegistry",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
inputs: [],
name: "ENSRegistry",
outputs: [
{
internalType: "contract IENSRegistry",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "RelayerRegistry",
outputs: [
{
internalType: "contract IRelayerRegistry",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract Governance",
name: "governance",
type: "address"
}
],
name: "getAllProposals",
outputs: [
{
components: [
{
internalType: "address",
name: "proposer",
type: "address"
},
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "uint256",
name: "startTime",
type: "uint256"
},
{
internalType: "uint256",
name: "endTime",
type: "uint256"
},
{
internalType: "uint256",
name: "forVotes",
type: "uint256"
},
{
internalType: "uint256",
name: "againstVotes",
type: "uint256"
},
{
internalType: "bool",
name: "executed",
type: "bool"
},
{
internalType: "bool",
name: "extended",
type: "bool"
},
{
internalType: "enum Governance.ProposalState",
name: "state",
type: "uint8"
}
],
internalType: "struct GovernanceAggregator.Proposal[]",
name: "proposals",
type: "tuple[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract Governance",
name: "governance",
type: "address"
},
{
internalType: "address[]",
name: "accs",
type: "address[]"
}
],
name: "getGovernanceBalances",
outputs: [
{
internalType: "uint256[]",
name: "amounts",
type: "uint256[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract Governance",
name: "governance",
type: "address"
},
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "getUserData",
outputs: [
{
internalType: "uint256",
name: "balance",
type: "uint256"
},
{
internalType: "uint256",
name: "latestProposalId",
type: "uint256"
},
{
internalType: "uint256",
name: "latestProposalIdState",
type: "uint256"
},
{
internalType: "uint256",
name: "timelock",
type: "uint256"
},
{
internalType: "address",
name: "delegatee",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32[]",
name: "_relayers",
type: "bytes32[]"
},
{
internalType: "string[]",
name: "_subdomains",
type: "string[]"
}
],
name: "relayersData",
outputs: [
{
components: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "uint256",
name: "balance",
type: "uint256"
},
{
internalType: "bool",
name: "isRegistered",
type: "bool"
},
{
internalType: "string[20]",
name: "records",
type: "string[20]"
}
],
internalType: "struct Relayer[]",
name: "",
type: "tuple[]"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode$H = "0x60c060405234801561001057600080fd5b5060405161155d38038061155d83398101604081905261002f9161004d565b6001600160601b0319606092831b8116608052911b1660a05261009e565b6000806040838503121561005f578182fd5b825161006a81610086565b602084015190925061007b81610086565b809150509250929050565b6001600160a01b038116811461009b57600080fd5b50565b60805160601c60a05160601c6114826100db6000398061024b528061059c528061068a52508061022752806102d352806103b452506114826000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063029fcae7146100675780631cb120d61461009057806339c16356146100a55780634d47d775146100ad5780639853d922146100cd578063f4eeefe9146100ed575b600080fd5b61007a610075366004610fa1565b610111565b60405161008791906112ee565b60405180910390f35b610098610225565b6040516100879190611118565b610098610249565b6100c06100bb366004610e93565b61026d565b6040516100879190611210565b6100e06100db366004610dcc565b61075e565b6040516100879190611146565b6101006100fb366004610f69565b6109dd565b60405161008795949392919061135f565b60608167ffffffffffffffff8111801561012a57600080fd5b50604051908082528060200260200182016040528015610154578160200160208202803683370190505b50905060005b8281101561021d57846001600160a01b0316639ae697bf85858481811061017d57fe5b90506020020160208101906101929190610dcc565b6040518263ffffffff1660e01b81526004016101ae9190611118565b60206040518083038186803b1580156101c657600080fd5b505afa1580156101da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101fe91906110b5565b82828151811061020a57fe5b602090810291909101015260010161015a565b509392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b606080835167ffffffffffffffff8111801561028857600080fd5b506040519080825280602002602001820160405280156102c257816020015b6102af610c79565b8152602001906001900390816102a75790505b50905060005b845181101561021d577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166302571be386838151811061030c57fe5b60200260200101516040518263ffffffff1660e01b81526004016103309190611332565b60206040518083038186803b15801561034857600080fd5b505afa15801561035c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103809190610def565b82828151811061038c57fe5b6020026020010151600001906001600160a01b031690816001600160a01b03168152505060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630178b8bf8784815181106103ed57fe5b60200260200101516040518263ffffffff1660e01b81526004016104119190611332565b60206040518083038186803b15801561042957600080fd5b505afa15801561043d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104619190610def565b905060005b855181101561059957600087848151811061047d57fe5b602002602001015187838151811061049157fe5b60200260200101516040516020016104a991906110fc565b604051602081830303815290604052805190602001206040516020016104d09291906110ee565b60408051601f19818403018152908290528051602090910120631674750f60e21b825291506001600160a01b038416906359d1d43c9061051490849060040161133b565b60006040518083038186803b15801561052c57600080fd5b505afa158015610540573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105689190810190611042565b85858151811061057457fe5b602002602001015160600151836014811061058b57fe5b602002015250600101610466565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b69fd4ab8484815181106105d557fe5b6020026020010151600001518585815181106105ed57fe5b6020026020010151600001516040518363ffffffff1660e01b815260040161061692919061112c565b60206040518083038186803b15801561062e57600080fd5b505afa158015610642573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106669190610f4d565b83838151811061067257fe5b602002602001015160400190151590811515815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b971a6bf8484815181106106c357fe5b6020026020010151600001516040518263ffffffff1660e01b81526004016106eb9190611118565b60206040518083038186803b15801561070357600080fd5b505afa158015610717573d6000803e3d6000fd5b50
const isSuperArgs$H = (xs) => xs.length > 1;
class Aggregator__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$H(args)) {
super(...args);
} else {
super(_abi$17, _bytecode$H, args[0]);
}
}
getDeployTransaction(_ensRegistry, _relayerRegistry, overrides) {
return super.getDeployTransaction(
_ensRegistry,
_relayerRegistry,
overrides || {}
);
}
deploy(_ensRegistry, _relayerRegistry, overrides) {
return super.deploy(
_ensRegistry,
_relayerRegistry,
overrides || {}
);
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$17);
}
static connect(address, runner) {
return new Contract(address, _abi$17, runner);
}
}
Aggregator__factory.bytecode = _bytecode$H;
Aggregator__factory.abi = _abi$17;
const _abi$16 = [
{
inputs: [
{
internalType: "contract Governance",
name: "governance",
type: "address"
}
],
name: "getAllProposals",
outputs: [
{
components: [
{
internalType: "address",
name: "proposer",
type: "address"
},
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "uint256",
name: "startTime",
type: "uint256"
},
{
internalType: "uint256",
name: "endTime",
type: "uint256"
},
{
internalType: "uint256",
name: "forVotes",
type: "uint256"
},
{
internalType: "uint256",
name: "againstVotes",
type: "uint256"
},
{
internalType: "bool",
name: "executed",
type: "bool"
},
{
internalType: "bool",
name: "extended",
type: "bool"
},
{
internalType: "enum Governance.ProposalState",
name: "state",
type: "uint8"
}
],
internalType: "struct GovernanceAggregator.Proposal[]",
name: "proposals",
type: "tuple[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract Governance",
name: "governance",
type: "address"
},
{
internalType: "address[]",
name: "accs",
type: "address[]"
}
],
name: "getGovernanceBalances",
outputs: [
{
internalType: "uint256[]",
name: "amounts",
type: "uint256[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract Governance",
name: "governance",
type: "address"
},
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "getUserData",
outputs: [
{
internalType: "uint256",
name: "balance",
type: "uint256"
},
{
internalType: "uint256",
name: "latestProposalId",
type: "uint256"
},
{
internalType: "uint256",
name: "latestProposalIdState",
type: "uint256"
},
{
internalType: "uint256",
name: "timelock",
type: "uint256"
},
{
internalType: "address",
name: "delegatee",
type: "address"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode$G = "0x608060405234801561001057600080fd5b50610ab8806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c8063029fcae7146100465780639853d9221461006f578063f4eeefe91461008f575b600080fd5b61005961005436600461082b565b6100b3565b60405161006691906109e3565b60405180910390f35b61008261007d36600461072c565b6101c7565b6040516100669190610919565b6100a261009d3660046107f3565b610446565b604051610066959493929190610a30565b60608167ffffffffffffffff811180156100cc57600080fd5b506040519080825280602002602001820160405280156100f6578160200160208202803683370190505b50905060005b828110156101bf57846001600160a01b0316639ae697bf85858481811061011f57fe5b9050602002016020810190610134919061072c565b6040518263ffffffff1660e01b81526004016101509190610905565b60206040518083038186803b15801561016857600080fd5b505afa15801561017c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101a091906108cc565b8282815181106101ac57fe5b60209081029190910101526001016100fc565b509392505050565b6060816001600160a01b031663da35c6646040518163ffffffff1660e01b815260040160206040518083038186803b15801561020257600080fd5b505afa158015610216573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023a91906108cc565b67ffffffffffffffff8111801561025057600080fd5b5060405190808252806020026020018201604052801561028a57816020015b6102776106e2565b81526020019060019003908161026f5790505b50905060005b8151811015610440576000806000806000806000808a6001600160a01b031663013cf08b8a6001016040518263ffffffff1660e01b81526004016102d49190610a27565b6101006040518083038186803b1580156102ed57600080fd5b505afa158015610301573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610325919061076b565b97509750975097509750975097509750604051806101200160405280896001600160a01b03168152602001886001600160a01b03168152602001878152602001868152602001858152602001848152602001831515815260200182151581526020018c6001600160a01b0316633e4f49e68c6001016040518263ffffffff1660e01b81526004016103b69190610a27565b60206040518083038186803b1580156103ce57600080fd5b505afa1580156103e2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040691906108ad565b600681111561041157fe5b8152508a8a8151811061042057fe5b602002602001018190525050505050505050508080600101915050610290565b50919050565b6000806000806000866001600160a01b0316639ae697bf876040518263ffffffff1660e01b815260040161047a9190610905565b60206040518083038186803b15801561049257600080fd5b505afa1580156104a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ca91906108cc565b6040516317977c6160e01b81529095506001600160a01b038816906317977c61906104f9908990600401610905565b60206040518083038186803b15801561051157600080fd5b505afa158015610525573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054991906108cc565b935083156105db57604051631f27a4f360e11b81526001600160a01b03881690633e4f49e69061057d908790600401610a27565b60206040518083038186803b15801561059557600080fd5b505afa1580156105a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105cd91906108ad565b60068111156105d857fe5b92505b60405163a72edda360e01b81526001600160a01b0388169063a72edda390610607908990600401610905565b60206040518083038186803b15801561061f57600080fd5b505afa158015610633573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065791906108cc565b604051631976849960e21b81529092506001600160a01b038816906365da126490610686908990600401610905565b60206040518083038186803b15801561069e57600080fd5b505afa1580156106b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d6919061074f565b90509295509295909350565b6040805161012081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081018290529061010082015290565b60006020828403121561073d578081fd5b813561074881610a5c565b9392505050565b600060208284031215610760578081fd5b815161074881610a5c565b600080600080600080600080610100898b031215610787578384fd5b885161079281610a5c565b60208a01519098506107a381610a5c565b8097505060408901519550606089015194506080890151935060a0890151925060c08901516107d181610a74565b60e0
const isSuperArgs$G = (xs) => xs.length > 1;
class GovernanceAggregator__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$G(args)) {
super(...args);
} else {
super(_abi$16, _bytecode$G, args[0]);
}
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(overrides || {});
}
deploy(overrides) {
return super.deploy(overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$16);
}
static connect(address, runner) {
return new Contract(
address,
_abi$16,
runner
);
}
}
GovernanceAggregator__factory.bytecode = _bytecode$G;
GovernanceAggregator__factory.abi = _abi$16;
var index$y = /*#__PURE__*/Object.freeze({
__proto__: null,
Aggregator__factory: Aggregator__factory,
GovernanceAggregator__factory: GovernanceAggregator__factory,
relayerAggregatorSol: index$z
});
const _abi$15 = [
{
inputs: [
{
internalType: "contract IDeployer",
name: "_deployer",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "sender",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "addr",
type: "address"
}
],
name: "Deployed",
type: "event"
},
{
inputs: [
{
internalType: "bytes",
name: "_initCode",
type: "bytes"
},
{
internalType: "bytes32",
name: "_salt",
type: "bytes32"
}
],
name: "deploy",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "deployer",
outputs: [
{
internalType: "contract IDeployer",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode$F = "0x60a060405234801561001057600080fd5b506040516103a93803806103a98339818101604052602081101561003357600080fd5b50516001600160a01b0381161561004a5780610060565b73ce0042b868300000d44a59004da54a005ffdcf9f5b60601b6001600160601b031916608052604051309032907f09e48df7857bd0c1e0d31bb8a85d42cf1874817895f171c917f6ee2cea73ec2090600090a35060805160601c6102e96100c06000398061010d528061029152506102e96000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80634af63f021461003b578063d5f39488146100e5575b600080fd5b6100e36004803603604081101561005157600080fd5b81019060208101813564010000000081111561006c57600080fd5b82018360208201111561007e57600080fd5b803590602001918460018302840111640100000000831117156100a057600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505091359250610109915050565b005b6100ed61028f565b604080516001600160a01b039092168252519081900360200190f35b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634af63f0284846040518363ffffffff1660e01b81526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b8381101561018e578181015183820152602001610176565b50505050905090810190601f1680156101bb5780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b1580156101db57600080fd5b505af11580156101ef573d6000803e3d6000fd5b505050506040513d602081101561020557600080fd5b505190506001600160a01b038116610254576040805162461bcd60e51b815260206004820152600d60248201526c11195c1b1bde4819985a5b1959609a1b604482015290519081900360640190fd5b6040516001600160a01b0382169033907f09e48df7857bd0c1e0d31bb8a85d42cf1874817895f171c917f6ee2cea73ec2090600090a3505050565b7f00000000000000000000000000000000000000000000000000000000000000008156fea26469706673582212209824ac82969e56106968b899123a2ecac48f942b4ed3dcae2ced58022879d32364736f6c634300060c0033";
const isSuperArgs$F = (xs) => xs.length > 1;
class Deployer__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$F(args)) {
super(...args);
} else {
super(_abi$15, _bytecode$F, args[0]);
}
}
getDeployTransaction(_deployer, overrides) {
return super.getDeployTransaction(_deployer, overrides || {});
}
deploy(_deployer, overrides) {
return super.deploy(_deployer, overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$15);
}
static connect(address, runner) {
return new Contract(address, _abi$15, runner);
}
}
Deployer__factory.bytecode = _bytecode$F;
Deployer__factory.abi = _abi$15;
const _abi$14 = [
{
inputs: [
{
internalType: "bytes",
name: "_initCode",
type: "bytes"
},
{
internalType: "bytes32",
name: "_salt",
type: "bytes32"
}
],
name: "deploy",
outputs: [
{
internalType: "address payable",
name: "createdContract",
type: "address"
}
],
stateMutability: "nonpayable",
type: "function"
}
];
class IDeployer__factory {
static createInterface() {
return new Interface(_abi$14);
}
static connect(address, runner) {
return new Contract(address, _abi$14, runner);
}
}
IDeployer__factory.abi = _abi$14;
var index$x = /*#__PURE__*/Object.freeze({
__proto__: null,
Deployer__factory: Deployer__factory,
IDeployer__factory: IDeployer__factory
});
const _abi$13 = [
{
inputs: [
{
internalType: "contract IERC20",
name: "_token",
type: "address"
},
{
internalType: "address",
name: "_spender",
type: "address"
},
{
internalType: "uint256",
name: "_amount",
type: "uint256"
}
],
name: "approveExactToken",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
class ITornadoRouter__factory {
static createInterface() {
return new Interface(_abi$13);
}
static connect(address, runner) {
return new Contract(address, _abi$13, runner);
}
}
ITornadoRouter__factory.abi = _abi$13;
const _abi$12 = [
{
inputs: [
{
internalType: "address",
name: "_governance",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "contract ITornadoInstance",
name: "instance",
type: "address"
},
{
indexed: false,
internalType: "enum InstanceRegistry.InstanceState",
name: "state",
type: "uint8"
}
],
name: "InstanceStateUpdated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "tornadoRouter",
type: "address"
}
],
name: "RouterRegistered",
type: "event"
},
{
inputs: [],
name: "getAllInstanceAddresses",
outputs: [
{
internalType: "contract ITornadoInstance[]",
name: "result",
type: "address[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "getAllInstances",
outputs: [
{
components: [
{
internalType: "contract ITornadoInstance",
name: "addr",
type: "address"
},
{
components: [
{
internalType: "bool",
name: "isERC20",
type: "bool"
},
{
internalType: "contract IERC20",
name: "token",
type: "address"
},
{
internalType: "enum InstanceRegistry.InstanceState",
name: "state",
type: "uint8"
},
{
internalType: "uint24",
name: "uniswapPoolSwappingFee",
type: "uint24"
},
{
internalType: "uint32",
name: "protocolFeePercentage",
type: "uint32"
}
],
internalType: "struct InstanceRegistry.Instance",
name: "instance",
type: "tuple"
}
],
internalType: "struct InstanceRegistry.Tornado[]",
name: "result",
type: "tuple[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract ITornadoInstance",
name: "instance",
type: "address"
}
],
name: "getPoolToken",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "governance",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
components: [
{
internalType: "contract ITornadoInstance",
name: "addr",
type: "address"
},
{
components: [
{
internalType: "bool",
name: "isERC20",
type: "bool"
},
{
internalType: "contract IERC20",
name: "token",
type: "address"
},
{
internalType: "enum InstanceRegistry.InstanceState",
name: "state",
type: "uint8"
},
{
internalType: "uint24",
name: "uniswapPoolSwappingFee",
type: "uint24"
},
{
internalType: "uint32",
name: "protocolFeePercentage",
type: "uint32"
}
],
internalType: "struct InstanceRegistry.Instance",
name: "instance",
type: "tuple"
}
],
internalType: "struct InstanceRegistry.Tornado[]",
name: "_instances",
type: "tuple[]"
},
{
internalType: "address",
name: "_router",
type: "address"
}
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "instanceIds",
outputs: [
{
internalType: "contract ITornadoInstance",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract ITornadoInstance",
name: "",
type: "address"
}
],
name: "instances",
outputs: [
{
internalType: "bool",
name: "isERC20",
type: "bool"
},
{
internalType: "contract IERC20",
name: "token",
type: "address"
},
{
internalType: "enum InstanceRegistry.InstanceState",
name: "state",
type: "uint8"
},
{
internalType: "uint24",
name: "uniswapPoolSwappingFee",
type: "uint24"
},
{
internalType: "uint32",
name: "protocolFeePercentage",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "_instanceId",
type: "uint256"
}
],
name: "removeInstance",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "router",
outputs: [
{
internalType: "contract ITornadoRouter",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract ITornadoInstance",
name: "instance",
type: "address"
},
{
internalType: "uint32",
name: "newFee",
type: "uint32"
}
],
name: "setProtocolFee",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "routerAddress",
type: "address"
}
],
name: "setTornadoRouter",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
components: [
{
internalType: "contract ITornadoInstance",
name: "addr",
type: "address"
},
{
components: [
{
internalType: "bool",
name: "isERC20",
type: "bool"
},
{
internalType: "contract IERC20",
name: "token",
type: "address"
},
{
internalType: "enum InstanceRegistry.InstanceState",
name: "state",
type: "uint8"
},
{
internalType: "uint24",
name: "uniswapPoolSwappingFee",
type: "uint24"
},
{
internalType: "uint32",
name: "protocolFeePercentage",
type: "uint32"
}
],
internalType: "struct InstanceRegistry.Instance",
name: "instance",
type: "tuple"
}
],
internalType: "struct InstanceRegistry.Tornado",
name: "_tornado",
type: "tuple"
}
],
name: "updateInstance",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode$E = "0x60a060405234801561001057600080fd5b5060405161146f38038061146f83398101604081905261002f91610044565b60601b6001600160601b031916608052610072565b600060208284031215610055578081fd5b81516001600160a01b038116811461006b578182fd5b9392505050565b60805160601c6113cc6100a3600039806103e552806105c052806105ed528061073a52806107e652506113cc6000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80636c9be937116100715780636c9be9371461014d578063908e3b371461016057806392b65a4114610173578063b5b899b714610186578063cf552c8914610199578063f887ea40146101ac576100b4565b8063032bb443146100b957806310c13ac3146100e65780631ad058a9146100fb5780634ba16d9d1461011057806352c228e3146101235780635aa6e67514610138575b600080fd5b6100cc6100c7366004610e89565b6101b4565b6040516100dd95949392919061119c565b60405180910390f35b6100ee6101fe565b6040516100dd919061109f565b61010e610109366004610ec8565b6102af565b005b61010e61011e366004610e89565b6103da565b61012b61047f565b6040516100dd91906110ec565b6101406105be565b6040516100dd9190611071565b61010e61015b366004610fdb565b6105e2565b61014061016e366004610e89565b610709565b61010e610181366004610f80565b61072f565b61014061019436600461100d565b6107b4565b61010e6101a736600461100d565b6107db565b610140610a77565b60016020526000908152604090205460ff8082169161010081046001600160a01b031691600160a81b82041690600160b01b810462ffffff1690600160c81b900463ffffffff1685565b60025460609067ffffffffffffffff8111801561021a57600080fd5b50604051908082528060200260200182016040528015610244578160200160208202803683370190505b50905060005b6002548110156102ab576002818154811061026157fe5b9060005260206000200160009054906101000a90046001600160a01b031682828151811061028b57fe5b6001600160a01b039092166020928302919091019091015260010161024a565b5090565b600054610100900460ff16806102c857506102c8610a8c565b806102d6575060005460ff16155b6102fb5760405162461bcd60e51b81526004016102f29061121c565b60405180910390fd5b600054610100900460ff16158015610326576000805460ff1961ff0019909116610100171660011790555b6000805462010000600160b01b031916620100006001600160a01b038516021781555b83518110156103c25761036e84828151811061036157fe5b6020026020010151610a92565b600284828151811061037c57fe5b6020908102919091018101515182546001808201855560009485529290932090920180546001600160a01b0319166001600160a01b039093169290921790915501610349565b5080156103d5576000805461ff00191690555b505050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146104225760405162461bcd60e51b81526004016102f2906112ca565b6000805462010000600160b01b031916620100006001600160a01b038416021790556040517f94df8c3a8087dce110e5fbc5acf380c83c94bbd31b2c8ed4c08e1396a696e1a890610474908390611071565b60405180910390a150565b60025460609067ffffffffffffffff8111801561049b57600080fd5b506040519080825280602002602001820160405280156104d557816020015b6104c2610d64565b8152602001906001900390816104ba5790505b50905060005b6002548110156102ab576000600282815481106104f457fe5b60009182526020808320909101546040805180820182526001600160a01b03928316808252808652600180865295839020835160a081018552815460ff8082161515835261010082049097168289015292985092969587019592949093850192600160a81b909204169081111561056757fe5b600181111561057257fe5b81529054600160b01b810462ffffff166020830152600160c81b900463ffffffff16604090910152905283518490849081106105aa57fe5b6020908102919091010152506001016104db565b7f000000000000000000000000000000000000000000000000000000000000000081565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461062a5760405162461bcd60e51b81526004016102f2906112ca565b600061063c6080830160608401610fc0565b600181111561064757fe5b14156106655760405162461bcd60e51b81526004016102f290611293565b6000600160006106786020850185610e89565b6001600160a01b03168152602081019190915260400160002054600160a81b900460ff1660018111156106a757fe5b14156106ef5760026106bc6020830183610e89565b81546001810183556000928352602090922090910180546001600160a01b0319166001600160a01b039092169190911790555b61070661070136839003830183610ff2565b610a92565b50565b6001600160a01b038082166000908152600160205260409020546101009004165b919050565b336001600160a01b037f0000000000000000000000000000000000000000000000
const isSuperArgs$E = (xs) => xs.length > 1;
class InstanceRegistry__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$E(args)) {
super(...args);
} else {
super(_abi$12, _bytecode$E, args[0]);
}
}
getDeployTransaction(_governance, overrides) {
return super.getDeployTransaction(_governance, overrides || {});
}
deploy(_governance, overrides) {
return super.deploy(_governance, overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$12);
}
static connect(address, runner) {
return new Contract(address, _abi$12, runner);
}
}
InstanceRegistry__factory.bytecode = _bytecode$E;
InstanceRegistry__factory.abi = _abi$12;
var index$w = /*#__PURE__*/Object.freeze({
__proto__: null,
ITornadoRouter__factory: ITornadoRouter__factory,
InstanceRegistry__factory: InstanceRegistry__factory
});
const _abi$11 = [
{
inputs: [
{
internalType: "bytes32",
name: "node",
type: "bytes32"
}
],
name: "owner",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
}
];
class IENS__factory {
static createInterface() {
return new Interface(_abi$11);
}
static connect(address, runner) {
return new Contract(address, _abi$11, runner);
}
}
IENS__factory.abi = _abi$11;
const _abi$10 = [
{
inputs: [
{
internalType: "contract ITornadoInstance",
name: "_instance",
type: "address"
}
],
name: "instanceFeeWithUpdate",
outputs: [
{
internalType: "uint160",
name: "",
type: "uint160"
}
],
stateMutability: "nonpayable",
type: "function"
}
];
class IFeeManager__factory {
static createInterface() {
return new Interface(_abi$10);
}
static connect(address, runner) {
return new Contract(address, _abi$10, runner);
}
}
IFeeManager__factory.abi = _abi$10;
const _abi$$ = [
{
inputs: [
{
internalType: "address",
name: "_torn",
type: "address"
},
{
internalType: "address",
name: "_governance",
type: "address"
},
{
internalType: "address",
name: "_ens",
type: "address"
},
{
internalType: "address",
name: "_staking",
type: "address"
},
{
internalType: "address",
name: "_feeManager",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "minStakeAmount",
type: "uint256"
}
],
name: "MinimumStakeAmount",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "relayer",
type: "address"
}
],
name: "RelayerBalanceNullified",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "bytes32",
name: "relayer",
type: "bytes32"
},
{
indexed: false,
internalType: "string",
name: "ensName",
type: "string"
},
{
indexed: false,
internalType: "address",
name: "relayerAddress",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "stakedAmount",
type: "uint256"
}
],
name: "RelayerRegistered",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "tornadoRouter",
type: "address"
}
],
name: "RouterRegistered",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "relayer",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "amountStakeAdded",
type: "uint256"
}
],
name: "StakeAddedToRelayer",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "relayer",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "amountBurned",
type: "uint256"
}
],
name: "StakeBurned",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "relayer",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "worker",
type: "address"
}
],
name: "WorkerRegistered",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "relayer",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "worker",
type: "address"
}
],
name: "WorkerUnregistered",
type: "event"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: "address",
name: "relayer",
type: "address"
},
{
internalType: "contract ITornadoInstance",
name: "pool",
type: "address"
}
],
name: "burn",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "ens",
outputs: [
{
internalType: "contract IENS",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "feeManager",
outputs: [
{
internalType: "contract IFeeManager",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "relayer",
type: "address"
}
],
name: "getRelayerBalance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "relayer",
type: "address"
}
],
name: "getRelayerEnsHash",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "governance",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_tornadoRouter",
type: "address"
}
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "toResolve",
type: "address"
}
],
name: "isRelayer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "relayer",
type: "address"
},
{
internalType: "address",
name: "toResolve",
type: "address"
}
],
name: "isRelayerRegistered",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "minStakeAmount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "relayer",
type: "address"
}
],
name: "nullifyBalance",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "string",
name: "ensName",
type: "string"
},
{
internalType: "uint256",
name: "stake",
type: "uint256"
},
{
internalType: "address[]",
name: "workersToRegister",
type: "address[]"
}
],
name: "register",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "string",
name: "ensName",
type: "string"
},
{
internalType: "uint256",
name: "stake",
type: "uint256"
},
{
internalType: "address[]",
name: "workersToRegister",
type: "address[]"
},
{
internalType: "address",
name: "relayer",
type: "address"
},
{
internalType: "uint256",
name: "deadline",
type: "uint256"
},
{
internalType: "uint8",
name: "v",
type: "uint8"
},
{
internalType: "bytes32",
name: "r",
type: "bytes32"
},
{
internalType: "bytes32",
name: "s",
type: "bytes32"
}
],
name: "registerPermit",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "relayer",
type: "address"
},
{
internalType: "address",
name: "worker",
type: "address"
}
],
name: "registerWorker",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "relayers",
outputs: [
{
internalType: "uint256",
name: "balance",
type: "uint256"
},
{
internalType: "bytes32",
name: "ensHash",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "minAmount",
type: "uint256"
}
],
name: "setMinStakeAmount",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "tornadoRouterAddress",
type: "address"
}
],
name: "setTornadoRouter",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "relayer",
type: "address"
},
{
internalType: "uint256",
name: "stake",
type: "uint256"
}
],
name: "stakeToRelayer",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "relayer",
type: "address"
},
{
internalType: "uint256",
name: "stake",
type: "uint256"
},
{
internalType: "address",
name: "staker",
type: "address"
},
{
internalType: "uint256",
name: "deadline",
type: "uint256"
},
{
internalType: "uint8",
name: "v",
type: "uint8"
},
{
internalType: "bytes32",
name: "r",
type: "bytes32"
},
{
internalType: "bytes32",
name: "s",
type: "bytes32"
}
],
name: "stakeToRelayerPermit",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "staking",
outputs: [
{
internalType: "contract TornadoStakingRewards",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "torn",
outputs: [
{
internalType: "contract TORN",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "tornadoRouter",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "worker",
type: "address"
}
],
name: "unregisterWorker",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "workers",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode$D = "0x6101206040523480156200001257600080fd5b5060405162001e3c38038062001e3c83398101604081905262000035916200006d565b6001600160601b0319606095861b811660805293851b841660a05291841b831660c052831b821660e05290911b166101005262000105565b600080600080600060a0868803121562000085578081fd5b85516200009281620000ec565b6020870151909550620000a581620000ec565b6040870151909450620000b881620000ec565b6060870151909350620000cb81620000ec565b6080870151909250620000de81620000ec565b809150509295509295909350565b6001600160a01b03811681146200010257600080fd5b50565b60805160601c60a05160601c60c05160601c60e05160601c6101005160601c611cac62000190600039806105855280610b0b52508061066152806107c75280610dc0528061103e52508061046f5280610ec552508061071652806107f452806108ff5280610bfc52508061093852806109c15280610b4f5280610d9d528061101b5250611cac6000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c806385a29683116100c3578063d0fb02031161007c578063d0fb0203146102bc578063d990231d146102c4578063e37e8bcc146102d7578063e43fdb3c146102ea578063eb4af045146102fd578063f18876841461031057610158565b806385a2968314610248578063adf898a41461025b578063ae53941c14610263578063b69fd4ab14610283578063b971a6bf14610296578063c4d66de8146102a957610158565b80634cb16c2e116101155780634cb16c2e146101dc5780634cf088d9146101e45780634d4efd04146101ec5780635300f841146101ff578063541d5548146102205780635aa6e6751461024057610158565b80632e6506491461015d5780633523dc85146101725780633f15457f146101855780634048a257146101a357806345a11cec146101b65780634ba16d9d146101c9575b600080fd5b61017061016b36600461151e565b610318565b005b6101706101803660046114e6565b61036d565b61018d61046d565b60405161019a91906117c9565b60405180910390f35b61018d6101b13660046114e6565b610491565b6101706101c4366004611556565b6104ac565b6101706101d73660046114e6565b61070b565b61018d6107b0565b61018d6107c5565b6101706101fa3660046114e6565b6107e9565b61021261020d3660046114e6565b6108c4565b60405161019a92919061179f565b61023361022e3660046114e6565b6108dd565b60405161019a9190611875565b61018d6108fd565b6101706102563660046115cb565b610921565b61018d6109bf565b6102766102713660046114e6565b6109e3565b60405161019a9190611880565b61023361029136600461151e565b610a11565b6102766102a43660046114e6565b610a38565b6101706102b73660046114e6565b610a63565b61018d610b09565b6101706102d23660046115a0565b610b2d565b6101706102e53660046116d0565b610b38565b6101706102f8366004611659565b610bdc565b61017061030b366004611787565b610bf1565b610276610c6e565b3360008181526003602052604090205483906001600160a01b0380831691161461035d5760405162461bcd60e51b815260040161035490611b20565b60405180910390fd5b6103678484610c74565b50505050565b6001600160a01b03811633146103b6576001600160a01b038181166000908152600360205260409020541633146103b65760405162461bcd60e51b815260040161035490611b46565b6001600160a01b0380821660008181526003602052604090205490911614156103f15760405162461bcd60e51b815260040161035490611a5f565b6001600160a01b03808216600090815260036020526040908190205490517fb2a8e18b9e887f502d65c1683e60b723fa582a6903ea4e8eb23907a19c1ce8a09261043e92169084906117dd565b60405180910390a16001600160a01b0316600090815260036020526040902080546001600160a01b0319169055565b7f000000000000000000000000000000000000000000000000000000000000000081565b6003602052600090815260409020546001600160a01b031681565b6000546201000090046001600160a01b031633146104dc5760405162461bcd60e51b815260040161035490611938565b6001600160a01b03808416600090815260036020526040902054168061053a576001600160a01b0383811660009081526003602052604090205416156105345760405162461bcd60e51b815260040161035490611abc565b50610706565b826001600160a01b0316816001600160a01b03161461056b5760405162461bcd60e51b815260040161035490611b20565b604051630bbefce160e21b81526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690632efbf384906105ba9086906004016117c9565b602060405180830381600087803b1580156105d457600080fd5b505af11580156105e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060c9190611502565b6001600160a01b03858116600090815260026020526040902054911691506106349082610d0d565b6001600160a01b038086166000908152600260205260409081902092909255905163338610af60e01b81527f000000
const isSuperArgs$D = (xs) => xs.length > 1;
class RelayerRegistry__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$D(args)) {
super(...args);
} else {
super(_abi$$, _bytecode$D, args[0]);
}
}
getDeployTransaction(_torn, _governance, _ens, _staking, _feeManager, overrides) {
return super.getDeployTransaction(
_torn,
_governance,
_ens,
_staking,
_feeManager,
overrides || {}
);
}
deploy(_torn, _governance, _ens, _staking, _feeManager, overrides) {
return super.deploy(
_torn,
_governance,
_ens,
_staking,
_feeManager,
overrides || {}
);
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$$);
}
static connect(address, runner) {
return new Contract(address, _abi$$, runner);
}
}
RelayerRegistry__factory.bytecode = _bytecode$D;
RelayerRegistry__factory.abi = _abi$$;
var index$v = /*#__PURE__*/Object.freeze({
__proto__: null,
IENS__factory: IENS__factory,
IFeeManager__factory: IFeeManager__factory,
RelayerRegistry__factory: RelayerRegistry__factory
});
const _abi$_ = [
{
inputs: [
{
internalType: "bytes32",
name: "node",
type: "bytes32"
}
],
name: "resolver",
outputs: [
{
internalType: "contract Resolver",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
}
];
class ENS__factory {
static createInterface() {
return new Interface(_abi$_);
}
static connect(address, runner) {
return new Contract(address, _abi$_, runner);
}
}
ENS__factory.abi = _abi$_;
const _abi$Z = [
{
inputs: [
{
internalType: "bytes32[]",
name: "domains",
type: "bytes32[]"
}
],
name: "bulkResolve",
outputs: [
{
internalType: "address[]",
name: "result",
type: "address[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "node",
type: "bytes32"
}
],
name: "resolve",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode$C = "0x608060405234801561001057600080fd5b5061036d806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80635c23bdf51461003b578063f9e5423414610074575b600080fd5b6100586004803603602081101561005157600080fd5b5035610167565b604080516001600160a01b039092168252519081900360200190f35b6101176004803603602081101561008a57600080fd5b8101906020810181356401000000008111156100a557600080fd5b8201836020820111156100b757600080fd5b803590602001918460208302840111640100000000831117156100d957600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610292945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561015357818101518382015260200161013b565b505050509050019250505060405180910390f35b600080610172610333565b60011461019357738595bfb0d940dfedc98943fa8a907091203f25ee6101a4565b6e0c2e074ec69a0dfb2997ba6c7d2e1e5b9050806001600160a01b0316630178b8bf846040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156101ea57600080fd5b505afa1580156101fe573d6000803e3d6000fd5b505050506040513d602081101561021457600080fd5b505160408051631d9dabef60e11b81526004810186905290516001600160a01b0390921691633b3b57de91602480820192602092909190829003018186803b15801561025f57600080fd5b505afa158015610273573d6000803e3d6000fd5b505050506040513d602081101561028957600080fd5b50519392505050565b6060815167ffffffffffffffff811180156102ac57600080fd5b506040519080825280602002602001820160405280156102d6578160200160208202803683370190505b50905060005b825181101561032d576103018382815181106102f457fe5b6020026020010151610167565b82828151811061030d57fe5b6001600160a01b03909216602092830291909101909101526001016102dc565b50919050565b469056fea26469706673582212201849a5e31df8347ec61f3d54e8cef603101becea24443df7d4e43cc42ff12a7564736f6c634300060c0033";
const isSuperArgs$C = (xs) => xs.length > 1;
class EnsResolve__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$C(args)) {
super(...args);
} else {
super(_abi$Z, _bytecode$C, args[0]);
}
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(overrides || {});
}
deploy(overrides) {
return super.deploy(overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$Z);
}
static connect(address, runner) {
return new Contract(address, _abi$Z, runner);
}
}
EnsResolve__factory.bytecode = _bytecode$C;
EnsResolve__factory.abi = _abi$Z;
const _abi$Y = [
{
inputs: [
{
internalType: "bytes32",
name: "node",
type: "bytes32"
}
],
name: "addr",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
}
];
class Resolver__factory {
static createInterface() {
return new Interface(_abi$Y);
}
static connect(address, runner) {
return new Contract(address, _abi$Y, runner);
}
}
Resolver__factory.abi = _abi$Y;
var index$u = /*#__PURE__*/Object.freeze({
__proto__: null,
ENS__factory: ENS__factory,
EnsResolve__factory: EnsResolve__factory,
Resolver__factory: Resolver__factory
});
const _abi$X = [
{
inputs: [
{
internalType: "bytes32",
name: "tokenAddress",
type: "bytes32"
},
{
components: [
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
internalType: "struct Airdrop.Recipient[]",
name: "targets",
type: "tuple[]"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
inputs: [
{
internalType: "bytes32[]",
name: "domains",
type: "bytes32[]"
}
],
name: "bulkResolve",
outputs: [
{
internalType: "address[]",
name: "result",
type: "address[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "addr",
type: "bytes32"
}
],
name: "resolve",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode$B = "0x608060405234801561001057600080fd5b5060405161039938038061039983398101604081905261002f91610220565b8181600061003c836101aa565b90506000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040161006c91906102e4565b60206040518083038186803b15801561008457600080fd5b505afa158015610098573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100bc91906102cc565b116100e25760405162461bcd60e51b81526004016100d990610311565b60405180910390fd5b60005b82518110156101a557816001600160a01b031663a9059cbb84838151811061010957fe5b60200260200101516000015185848151811061012157fe5b6020026020010151602001516040518363ffffffff1660e01b815260040161014a9291906102f8565b602060405180830381600087803b15801561016457600080fd5b505af1158015610178573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019c91906101f9565b506001016100e5565b506000ff5b60601c90565b6000604082840312156101c1578081fd5b6101cb6040610353565b82519091506001600160a01b03811681146101e557600080fd5b808252506020820151602082015292915050565b60006020828403121561020a578081fd5b81518015158114610219578182fd5b9392505050565b6000806040808486031215610233578182fd5b8351602080860151919450906001600160401b03811115610252578384fd5b8501601f81018713610262578384fd5b805161027561027082610379565b610353565b81815283810190838501868402850186018b1015610291578788fd5b8794505b838510156102bb576102a78b826101b0565b835260019490940193918501918601610295565b508096505050505050509250929050565b6000602082840312156102dd578081fd5b5051919050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b60208082526022908201527f42616c616e636520697320302c2061697264726f7020616c726561647920646f6040820152616e6560f01b606082015260800190565b6040518181016001600160401b038111828210171561037157600080fd5b604052919050565b60006001600160401b0382111561038e578081fd5b506020908102019056fe";
const isSuperArgs$B = (xs) => xs.length > 1;
class AirdropMock__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$B(args)) {
super(...args);
} else {
super(_abi$X, _bytecode$B, args[0]);
}
}
getDeployTransaction(tokenAddress, targets, overrides) {
return super.getDeployTransaction(tokenAddress, targets, overrides || {});
}
deploy(tokenAddress, targets, overrides) {
return super.deploy(tokenAddress, targets, overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$X);
}
static connect(address, runner) {
return new Contract(address, _abi$X, runner);
}
}
AirdropMock__factory.bytecode = _bytecode$B;
AirdropMock__factory.abi = _abi$X;
const _abi$W = [
{
inputs: [
{
internalType: "bytes32",
name: "_node",
type: "bytes32"
}
],
name: "addr",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes[]",
name: "data",
type: "bytes[]"
}
],
name: "multicall",
outputs: [
{
internalType: "bytes[]",
name: "results",
type: "bytes[]"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
name: "registry",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
name: "resolver",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "_node",
type: "bytes32"
},
{
internalType: "address",
name: "_addr",
type: "address"
}
],
name: "setAddr",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode$A = "0x608060405234801561001057600080fd5b5061044b806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80630178b8bf1461005c5780633b3b57de146100855780637ef5029814610098578063ac9650d8146100ab578063d5fa2b00146100cb575b600080fd5b61006f61006a3660046102bc565b6100e0565b60405161007c919061031e565b60405180910390f35b61006f6100933660046102bc565b6100e5565b61006f6100a63660046102bc565b610100565b6100be6100b936600461024d565b61011b565b60405161007c9190610332565b6100de6100d93660046102d4565b61021f565b005b503090565b6000908152602081905260409020546001600160a01b031690565b6000602081905290815260409020546001600160a01b031681565b60608167ffffffffffffffff8111801561013457600080fd5b5060405190808252806020026020018201604052801561016857816020015b60608152602001906001900390816101535790505b50905060005b8281101561021857600060603086868581811061018757fe5b905060200281019061019991906103c9565b6040516101a792919061030e565b600060405180830381855af49150503d80600081146101e2576040519150601f19603f3d011682016040523d82523d6000602084013e6101e7565b606091505b5091509150816101f657600080fd5b8084848151811061020357fe5b6020908102919091010152505060010161016e565b5092915050565b60009182526020829052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6000806020838503121561025f578182fd5b823567ffffffffffffffff80821115610276578384fd5b818501915085601f830112610289578384fd5b813581811115610297578485fd5b86602080830285010111156102aa578485fd5b60209290920196919550909350505050565b6000602082840312156102cd578081fd5b5035919050565b600080604083850312156102e6578182fd5b8235915060208301356001600160a01b0381168114610303578182fd5b809150509250929050565b6000828483379101908152919050565b6001600160a01b0391909116815260200190565b6000602080830181845280855180835260408601915060408482028701019250838701855b828110156103bc57878503603f1901845281518051808752885b8181101561038c578281018901518882018a01528801610371565b8181111561039c578989838a0101525b50601f01601f191695909501860194509285019290850190600101610357565b5092979650505050505050565b6000808335601e198436030181126103df578283fd5b83018035915067ffffffffffffffff8211156103f9578283fd5b60200191503681900382131561040e57600080fd5b925092905056fea26469706673582212202e44de42b72aec6265acc191876b290bc887c846ffca216ac5d28a16fd49092564736f6c634300060c0033";
const isSuperArgs$A = (xs) => xs.length > 1;
class ENSMock__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$A(args)) {
super(...args);
} else {
super(_abi$W, _bytecode$A, args[0]);
}
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(overrides || {});
}
deploy(overrides) {
return super.deploy(overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$W);
}
static connect(address, runner) {
return new Contract(address, _abi$W, runner);
}
}
ENSMock__factory.bytecode = _bytecode$A;
ENSMock__factory.abi = _abi$W;
const _abi$V = [
{
inputs: [
{
internalType: "address",
name: "_governance",
type: "address"
},
{
internalType: "uint256",
name: "_pausePeriod",
type: "uint256"
},
{
components: [
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
internalType: "struct TORN.Recipient[]",
name: "_vesting",
type: "tuple[]"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "target",
type: "address"
}
],
name: "Allowed",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "spender",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Approval",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "target",
type: "address"
}
],
name: "Disallowed",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "account",
type: "address"
}
],
name: "Paused",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Transfer",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "account",
type: "address"
}
],
name: "Unpaused",
type: "event"
},
{
inputs: [
{
internalType: "address[]",
name: "target",
type: "address[]"
}
],
name: "addToAllowedList",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "spender",
type: "address"
}
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "allowedTransferee",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "blockTimestamp",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "burn",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "burnFrom",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "canUnpauseAfter",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "chainID",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "chainId",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bool",
name: "decision",
type: "bool"
}
],
name: "changeTransferability",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "decimals",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "subtractedValue",
type: "uint256"
}
],
name: "decreaseAllowance",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "fakeTimestamp",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "governance",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "addedValue",
type: "uint256"
}
],
name: "increaseAllowance",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "name",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
}
],
name: "nonces",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "paused",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
},
{
internalType: "uint256",
name: "deadline",
type: "uint256"
},
{
internalType: "uint8",
name: "v",
type: "uint8"
},
{
internalType: "bytes32",
name: "r",
type: "bytes32"
},
{
internalType: "bytes32",
name: "s",
type: "bytes32"
}
],
name: "permit",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address[]",
name: "target",
type: "address[]"
}
],
name: "removeFromAllowedList",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "contract IERC20",
name: "_token",
type: "address"
},
{
internalType: "address payable",
name: "_to",
type: "address"
},
{
internalType: "uint256",
name: "_balance",
type: "uint256"
}
],
name: "rescueTokens",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "_chainId",
type: "uint256"
}
],
name: "setChainId",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "_fakeTimestamp",
type: "uint256"
}
],
name: "setFakeTimestamp",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "symbol",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode$z = "0x60c06040523480156200001157600080fd5b506040516200298e3803806200298e8339810160408190526200003491620006d6565b604080518082018252600b81526a0a8dee4dcc2c8de86c2e6d60ab1b6020808301918252835180850190945260048452632a27a92760e11b90840152815186938693869390926200008891600391620005e4565b5080516200009e906004906020840190620005e4565b50506005805460ff1916601217905550620000b8620001f8565b506008805460ff199081169091556001600160601b0319606085901b1660a0526001600160a01b0384166000908152600960205260408120805490921660011790915583905b82518110156200017b5760008382815181106200011757fe5b60200260200101516000015190506200014f818584815181106200013757fe5b602002602001015160200151620002b460201b60201c565b6001600160a01b03166000908152600960205260409020805460ff1916600190811790915501620000fe565b506200019f836200018b62000397565b620003b360201b62000d721790919060201c565b608052620001ac620003e4565b620001b66200045b565b6a084595161401484a00000014620001eb5760405162461bcd60e51b8152600401620001e290620008a8565b60405180910390fd5b5050505050505062000946565b6000806200020562000461565b905060007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6200023462000467565b805160209182012060408051808201825260018152603160f81b90840152516200028693927fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6918791309101620007be565b60408051601f1981840301815291815281516020928301206000948552600790925290922082905550905090565b6001600160a01b038216620002dd5760405162461bcd60e51b8152600401620001e290620008df565b620002eb6000838362000501565b6200030781600254620003b360201b62000d721790919060201c565b6002556001600160a01b038216600090815260208181526040909120546200033a91839062000d72620003b3821b17901c565b6001600160a01b0383166000818152602081905260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906200038b90859062000916565b60405180910390a35050565b6000620003ae620005bc60201b62000d9e1760201c565b905090565b600082820183811015620003db5760405162461bcd60e51b8152600401620001e290620007ea565b90505b92915050565b60085460ff16156200040a5760405162461bcd60e51b8152600401620001e2906200087e565b6008805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25862000442620005d7565b604051620004519190620007aa565b60405180910390a1565b60025490565b600b5490565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015620004f75780601f10620004cb57610100808354040283529160200191620004f7565b820191906000526020600020905b815481529060010190602001808311620004d957829003601f168201915b5050505050905090565b62000519838383620005b760201b620007421760201c565b62000523620005db565b15806200054857506001600160a01b03831660009081526009602052604090205460ff165b806200056c57506001600160a01b03821660009081526009602052604090205460ff165b6200058b5760405162461bcd60e51b8152600401620001e29062000858565b6001600160a01b038216301415620005b75760405162461bcd60e51b8152600401620001e29062000821565b505050565b6000600a54600014620005d257600a54620003ae565b504290565b3390565b60085460ff1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200062757805160ff191683800117855562000657565b8280016001018555821562000657579182015b82811115620006575782518255916020019190600101906200063a565b506200066592915062000669565b5090565b5b808211156200066557600081556001016200066a565b80516001600160a01b0381168114620003de57600080fd5b600060408284031215620006aa578081fd5b620006b660406200091f565b9050620006c4838362000680565b81526020820151602082015292915050565b600080600060608486031215620006eb578283fd5b620006f7858562000680565b9250602080850151925060408086015160018060401b03808211156200071b578485fd5b818801915088601f8301126200072f578485fd5b8151818111156200073e578586fd5b6200074d85868302016200091f565b8181528581019250838601858302850187018c10156200076b578788fd5b8794505b828510156200079957620007848c8262000698565b8452600194909401939286019285016200076f565b508096505050505050509250925092565b6001600160a01b0391909116815260200190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b6020808252601b9082
const isSuperArgs$z = (xs) => xs.length > 1;
class TORNMock__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$z(args)) {
super(...args);
} else {
super(_abi$V, _bytecode$z, args[0]);
}
}
getDeployTransaction(_governance, _pausePeriod, _vesting, overrides) {
return super.getDeployTransaction(
_governance,
_pausePeriod,
_vesting,
overrides || {}
);
}
deploy(_governance, _pausePeriod, _vesting, overrides) {
return super.deploy(
_governance,
_pausePeriod,
_vesting,
overrides || {}
);
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$V);
}
static connect(address, runner) {
return new Contract(address, _abi$V, runner);
}
}
TORNMock__factory.bytecode = _bytecode$z;
TORNMock__factory.abi = _abi$V;
const _abi$U = [
{
inputs: [],
name: "blockTimestamp",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "fakeTimestamp",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "_fakeTimestamp",
type: "uint256"
}
],
name: "setFakeTimestamp",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode$y = "0x608060405234801561001057600080fd5b5060d28061001f6000396000f3fe6080604052348015600f57600080fd5b5060043610603c5760003560e01c806301ec0fab146041578063adb61832146059578063c565882714605f575b600080fd5b6047607b565b60408051918252519081900360200190f35b60476081565b607960048036036020811015607357600080fd5b50356097565b005b60005481565b60008054156090576000546092565b425b905090565b60005556fea2646970667358221220b2410460a5b24aec9983bcf8349aa3b589a0dff9120af5b704feae536a65813064736f6c634300060c0033";
const isSuperArgs$y = (xs) => xs.length > 1;
class Timestamp__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$y(args)) {
super(...args);
} else {
super(_abi$U, _bytecode$y, args[0]);
}
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(overrides || {});
}
deploy(overrides) {
return super.deploy(overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$U);
}
static connect(address, runner) {
return new Contract(address, _abi$U, runner);
}
}
Timestamp__factory.bytecode = _bytecode$y;
Timestamp__factory.abi = _abi$U;
const _abi$T = [
{
inputs: [
{
internalType: "address",
name: "_token",
type: "address"
},
{
internalType: "address",
name: "_beneficiary",
type: "address"
},
{
internalType: "uint256",
name: "_startTimestamp",
type: "uint256"
},
{
internalType: "uint256",
name: "_cliffInMonths",
type: "uint256"
},
{
internalType: "uint256",
name: "_durationInMonths",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "Released",
type: "event"
},
{
inputs: [],
name: "SECONDS_PER_MONTH",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "beneficiary",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "blockTimestamp",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "cliffInMonths",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "durationInMonths",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "fakeTimestamp",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "release",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "released",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "_fakeTimestamp",
type: "uint256"
}
],
name: "setFakeTimestamp",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "startTimestamp",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "token",
outputs: [
{
internalType: "contract IERC20",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "vestedAmount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode$x = "0x61012060405234801561001157600080fd5b50604051610d2e380380610d2e833981810160405260a081101561003457600080fd5b5080516020820151604083015160608401516080909401519293919290919084848484846001600160a01b0384166100b3576040805162461bcd60e51b815260206004820152601b60248201527f42656e65666963696172792063616e6e6f7420626520656d7074790000000000604482015290519081900360640190fd5b80821115610108576040805162461bcd60e51b815260206004820152601e60248201527f436c6966662069732067726561746572207468616e206475726174696f6e0000604482015290519081900360640190fd5b6001600160601b0319606086811b821660a05285901b1660805261010081905260c082905282156101395782610141565b610141610154565b60e0525061018698505050505050505050565b600061016861016d60201b6105b81760201c565b905090565b600060015460001461018157600154610168565b504290565b60805160601c60a05160601c60c05160e05161010051610b366101f86000398061024452806103bc528061041e52508061019352806101cf52806105725250806102115280610534525080610289528061030952806104b5528061059652508061016d52806104d75250610b366000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063928d89ae11610071578063928d89ae146101195780639613252114610121578063adb6183214610129578063c565882714610131578063e6fd48bc1461014e578063fc0c546a14610156576100b4565b806301ec0fab146100b957806310786deb146100d357806338af3eed146100db57806344b1231f146100ff57806367097a4b1461010757806386d1a69f1461010f575b600080fd5b6100c161015e565b60408051918252519081900360200190f35b6100c1610164565b6100e361016b565b604080516001600160a01b039092168252519081900360200190f35b6100c161018f565b6100c161041c565b610117610440565b005b6100c1610532565b6100c1610556565b6100c161055c565b6101176004803603602081101561014757600080fd5b503561056b565b6100c1610570565b6100e3610594565b60015481565b62278d0081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f00000000000000000000000000000000000000000000000000000000000000006101ba61055c565b10156101c857506000610419565b60006101fc7f00000000000000000000000000000000000000000000000000000000000000006101f661055c565b906105d1565b9050600061020d8262278d0061061c565b90507f000000000000000000000000000000000000000000000000000000000000000081101561024257600092505050610419565b7f0000000000000000000000000000000000000000000000000000000000000000811061030557604080516370a0823160e01b815230600482015290516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b1580156102cf57600080fd5b505afa1580156102e3573d6000803e3d6000fd5b505050506040513d60208110156102f957600080fd5b50519250610419915050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561037457600080fd5b505afa158015610388573d6000803e3d6000fd5b505050506040513d602081101561039e57600080fd5b505160008054919250906103b390839061065e565b905060006103eb7f00000000000000000000000000000000000000000000000000000000000000006103e584876106b8565b9061061c565b90506000610404600054836105d190919063ffffffff16565b90506104108482610711565b96505050505050505b90565b7f000000000000000000000000000000000000000000000000000000000000000081565b600061044a61018f565b905060008111610498576040805162461bcd60e51b81526020600482015260146024820152734e6f20746f6b656e7320746f2072656c6561736560601b604482015290519081900360640190fd5b6000546104a5908261065e565b6000556104fc6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083610727565b6040805182815290517ffb81f9b30d73d830c3544b34d827c08142579ee75710b490bab0b3995468c5659181900360200190a150565b7f000000000000000000000000000000000000000000000000000000000000000081565b60005481565b60006105666105b8565b905090565b600155565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60006001546000146105cc57600154610566565b504290565b600061061383836040518060400160405280601e81526020017f536166654d6174683a20737562747261
const isSuperArgs$x = (xs) => xs.length > 1;
class VestingMock__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$x(args)) {
super(...args);
} else {
super(_abi$T, _bytecode$x, args[0]);
}
}
getDeployTransaction(_token, _beneficiary, _startTimestamp, _cliffInMonths, _durationInMonths, overrides) {
return super.getDeployTransaction(
_token,
_beneficiary,
_startTimestamp,
_cliffInMonths,
_durationInMonths,
overrides || {}
);
}
deploy(_token, _beneficiary, _startTimestamp, _cliffInMonths, _durationInMonths, overrides) {
return super.deploy(
_token,
_beneficiary,
_startTimestamp,
_cliffInMonths,
_durationInMonths,
overrides || {}
);
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$T);
}
static connect(address, runner) {
return new Contract(address, _abi$T, runner);
}
}
VestingMock__factory.bytecode = _bytecode$x;
VestingMock__factory.abi = _abi$T;
const _abi$S = [
{
inputs: [
{
internalType: "bytes32",
name: "_torn",
type: "bytes32"
},
{
internalType: "bytes32",
name: "_governance",
type: "bytes32"
},
{
internalType: "uint256",
name: "_duration",
type: "uint256"
},
{
components: [
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
internalType: "struct Voucher.Recipient[]",
name: "_airdrops",
type: "tuple[]"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "spender",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Approval",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Transfer",
type: "event"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "spender",
type: "address"
}
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "allowedTransferee",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "blockTimestamp",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32[]",
name: "domains",
type: "bytes32[]"
}
],
name: "bulkResolve",
outputs: [
{
internalType: "address[]",
name: "result",
type: "address[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "decimals",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "subtractedValue",
type: "uint256"
}
],
name: "decreaseAllowance",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "expiresAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "fakeTimestamp",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "governance",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "addedValue",
type: "uint256"
}
],
name: "increaseAllowance",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "name",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "redeem",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "rescueExpiredTokens",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "addr",
type: "bytes32"
}
],
name: "resolve",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "_fakeTimestamp",
type: "uint256"
}
],
name: "setFakeTimestamp",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "symbol",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "torn",
outputs: [
{
internalType: "contract IERC20",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode$w = "0x60e06040523480156200001157600080fd5b5060405162001b7838038062001b78833981016040819052620000349162000476565b8383838360405180606001604052806026815260200162001b5260269139604051806040016040528060058152602001643b2a27a92760d91b8152508160039080519060200190620000889291906200038d565b5080516200009e9060049060208401906200038d565b50506005805460ff1916601217905550620000b984620001b7565b60601b6001600160601b031916608052620000d483620001b7565b60601b6001600160601b03191660c0526200010782620000f3620001bd565b620001d960201b6200089d1790919060201c565b60a05260005b8151811015620001a857620001598282815181106200012857fe5b6020026020010151600001518383815181106200014157fe5b6020026020010151602001516200021160201b60201c565b6001600660008484815181106200016c57fe5b602090810291909101810151516001600160a01b03168252810191909152604001600020805460ff19169115159190911790556001016200010d565b5050505050505050506200061d565b60601c90565b6000620001d4620002f460201b620008c91760201c565b905090565b6000828201838110156200020a5760405162461bcd60e51b8152600401620002019062000548565b60405180910390fd5b9392505050565b6001600160a01b0382166200023a5760405162461bcd60e51b81526004016200020190620005b6565b62000248600083836200030f565b6200026481600254620001d960201b6200089d1790919060201c565b6002556001600160a01b03821660009081526020818152604090912054620002979183906200089d620001d9821b17901c565b6001600160a01b0383166000818152602081905260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90620002e8908590620005ed565b60405180910390a35050565b60006007546000146200030a57600754620001d4565b504290565b620003278383836200038860201b620008e21760201c565b6001600160a01b03821615806200034557506001600160a01b038316155b806200036957506001600160a01b03831660009081526006602052604090205460ff165b620003885760405162461bcd60e51b815260040162000201906200057f565b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003d057805160ff191683800117855562000400565b8280016001018555821562000400579182015b8281111562000400578251825591602001919060010190620003e3565b506200040e92915062000412565b5090565b5b808211156200040e576000815560010162000413565b6000604082840312156200043b578081fd5b620004476040620005f6565b82519091506001600160a01b03811681146200046257600080fd5b808252506020820151602082015292915050565b600080600080608085870312156200048c578384fd5b8451935060208086015193506040808701519350606087015160018060401b0380821115620004b9578485fd5b818901915089601f830112620004cd578485fd5b815181811115620004dc578586fd5b620004eb8586830201620005f6565b8181528581019250838601858302850187018d101562000509578788fd5b8794505b828510156200053757620005228d8262000429565b8452600194909401939286019285016200050d565b50989b979a50959850505050505050565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601e908201527f45524332303a207472616e73666572206973206e6f7420616c6c6f7765640000604082015260600190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b6040518181016001600160401b03811182821017156200061557600080fd5b604052919050565b60805160601c60a05160c05160601c6114e46200066e6000398061046952806106de5250806104c352806105f752806106945250806105d3528061066852806106ff52806107a352506114e46000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c80638622a689116100b8578063adf898a41161007c578063adf898a414610269578063be040fb014610271578063c39ef8551461027b578063c565882714610283578063dd62ed3e14610296578063f9e54234146102a957610142565b80638622a6891461022b57806395d89b4114610233578063a457c2d71461023b578063a9059cbb1461024e578063adb618321461026157610142565b8063313ce5671161010a578063313ce567146101b557806339509351146101ca5780635aa6e675146101dd5780635c23bdf5146101f25780635d4545a01461020557806370a082311461021857610142565b806301ec0fab1461014757806306fdde0314610165578063095ea7b31461017a57806318160ddd1461019a57806323b872dd146101a2575b600080fd5b61014f6102c9565b60405161015c9190611376565b60405180910390f35b61016d6102cf565b60405161015c9190611087565b61018d610188366004610e
const isSuperArgs$w = (xs) => xs.length > 1;
class VoucherMock__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$w(args)) {
super(...args);
} else {
super(_abi$S, _bytecode$w, args[0]);
}
}
getDeployTransaction(_torn, _governance, _duration, _airdrops, overrides) {
return super.getDeployTransaction(
_torn,
_governance,
_duration,
_airdrops,
overrides || {}
);
}
deploy(_torn, _governance, _duration, _airdrops, overrides) {
return super.deploy(
_torn,
_governance,
_duration,
_airdrops,
overrides || {}
);
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$S);
}
static connect(address, runner) {
return new Contract(address, _abi$S, runner);
}
}
VoucherMock__factory.bytecode = _bytecode$w;
VoucherMock__factory.abi = _abi$S;
var index$t = /*#__PURE__*/Object.freeze({
__proto__: null,
AirdropMock__factory: AirdropMock__factory,
ENSMock__factory: ENSMock__factory,
TORNMock__factory: TORNMock__factory,
Timestamp__factory: Timestamp__factory,
VestingMock__factory: VestingMock__factory,
VoucherMock__factory: VoucherMock__factory
});
const _abi$R = [
{
inputs: [
{
internalType: "bytes32",
name: "tokenAddress",
type: "bytes32"
},
{
components: [
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
internalType: "struct Airdrop.Recipient[]",
name: "targets",
type: "tuple[]"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
inputs: [
{
internalType: "bytes32[]",
name: "domains",
type: "bytes32[]"
}
],
name: "bulkResolve",
outputs: [
{
internalType: "address[]",
name: "result",
type: "address[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "node",
type: "bytes32"
}
],
name: "resolve",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode$v = "0x60806040523480156200001157600080fd5b506040516200054038038062000540833981016040819052620000349162000396565b60006200004183620001c2565b90506000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040162000073919062000467565b60206040518083038186803b1580156200008c57600080fd5b505afa158015620000a1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000c791906200044e565b11620000f05760405162461bcd60e51b8152600401620000e7906200049d565b60405180910390fd5b60005b8251811015620001bd57816001600160a01b031663a9059cbb8483815181106200011957fe5b6020026020010151600001518584815181106200013257fe5b6020026020010151602001516040518363ffffffff1660e01b81526004016200015d9291906200047b565b602060405180830381600087803b1580156200017857600080fd5b505af11580156200018d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001b3919062000374565b50600101620000f3565b506000ff5b600080620001cf62000310565b600114620001f257738595bfb0d940dfedc98943fa8a907091203f25ee62000203565b6e0c2e074ec69a0dfb2997ba6c7d2e1e5b604051630178b8bf60e01b81529091506001600160a01b03821690630178b8bf906200023490869060040162000494565b60206040518083038186803b1580156200024d57600080fd5b505afa15801562000262573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000288919062000355565b6001600160a01b0316633b3b57de846040518263ffffffff1660e01b8152600401620002b5919062000494565b60206040518083038186803b158015620002ce57600080fd5b505afa158015620002e3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000309919062000355565b9392505050565b4690565b60006040828403121562000326578081fd5b620003326040620004df565b90508151620003418162000526565b808252506020820151602082015292915050565b60006020828403121562000367578081fd5b8151620003098162000526565b60006020828403121562000386578081fd5b8151801515811462000309578182fd5b6000806040808486031215620003aa578182fd5b8351602080860151919450906001600160401b03811115620003ca578384fd5b8501601f81018713620003db578384fd5b8051620003f2620003ec8262000506565b620004df565b81815283810190838501868402850186018b10156200040f578788fd5b8794505b838510156200043d57620004288b8262000314565b83526001949094019391850191860162000413565b508096505050505050509250929050565b60006020828403121562000460578081fd5b5051919050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b90815260200190565b60208082526022908201527f42616c616e636520697320302c2061697264726f7020616c726561647920646f6040820152616e6560f01b606082015260800190565b6040518181016001600160401b0381118282101715620004fe57600080fd5b604052919050565b60006001600160401b038211156200051c578081fd5b5060209081020190565b6001600160a01b03811681146200053c57600080fd5b5056fe";
const isSuperArgs$v = (xs) => xs.length > 1;
class Airdrop__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$v(args)) {
super(...args);
} else {
super(_abi$R, _bytecode$v, args[0]);
}
}
getDeployTransaction(tokenAddress, targets, overrides) {
return super.getDeployTransaction(tokenAddress, targets, overrides || {});
}
deploy(tokenAddress, targets, overrides) {
return super.deploy(tokenAddress, targets, overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$R);
}
static connect(address, runner) {
return new Contract(address, _abi$R, runner);
}
}
Airdrop__factory.bytecode = _bytecode$v;
Airdrop__factory.abi = _abi$R;
const _abi$Q = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "spender",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Approval",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Transfer",
type: "event"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "spender",
type: "address"
}
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "blockTimestamp",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "chainID",
outputs: [
{
internalType: "uint256",
name: "_chainID",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "decimals",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "subtractedValue",
type: "uint256"
}
],
name: "decreaseAllowance",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "addedValue",
type: "uint256"
}
],
name: "increaseAllowance",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "name",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
}
],
name: "nonces",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
},
{
internalType: "uint256",
name: "deadline",
type: "uint256"
},
{
internalType: "uint8",
name: "v",
type: "uint8"
},
{
internalType: "bytes32",
name: "r",
type: "bytes32"
},
{
internalType: "bytes32",
name: "s",
type: "bytes32"
}
],
name: "permit",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "symbol",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
}
];
class ERC20Permit__factory {
static createInterface() {
return new Interface(_abi$Q);
}
static connect(address, runner) {
return new Contract(address, _abi$Q, runner);
}
}
ERC20Permit__factory.abi = _abi$Q;
const _abi$P = [
{
inputs: [
{
internalType: "address",
name: "_governance",
type: "address"
},
{
internalType: "uint256",
name: "_pausePeriod",
type: "uint256"
},
{
components: [
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
internalType: "struct TORN.Recipient[]",
name: "_vestings",
type: "tuple[]"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "target",
type: "address"
}
],
name: "Allowed",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "spender",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Approval",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "target",
type: "address"
}
],
name: "Disallowed",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "account",
type: "address"
}
],
name: "Paused",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Transfer",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "account",
type: "address"
}
],
name: "Unpaused",
type: "event"
},
{
inputs: [
{
internalType: "address[]",
name: "target",
type: "address[]"
}
],
name: "addToAllowedList",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "spender",
type: "address"
}
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "allowedTransferee",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "blockTimestamp",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "burn",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "burnFrom",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "canUnpauseAfter",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "chainID",
outputs: [
{
internalType: "uint256",
name: "_chainID",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bool",
name: "decision",
type: "bool"
}
],
name: "changeTransferability",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "decimals",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "subtractedValue",
type: "uint256"
}
],
name: "decreaseAllowance",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "governance",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "addedValue",
type: "uint256"
}
],
name: "increaseAllowance",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "name",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
}
],
name: "nonces",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "paused",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
},
{
internalType: "uint256",
name: "deadline",
type: "uint256"
},
{
internalType: "uint8",
name: "v",
type: "uint8"
},
{
internalType: "bytes32",
name: "r",
type: "bytes32"
},
{
internalType: "bytes32",
name: "s",
type: "bytes32"
}
],
name: "permit",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address[]",
name: "target",
type: "address[]"
}
],
name: "removeFromAllowedList",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "contract IERC20",
name: "_token",
type: "address"
},
{
internalType: "address payable",
name: "_to",
type: "address"
},
{
internalType: "uint256",
name: "_balance",
type: "uint256"
}
],
name: "rescueTokens",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "symbol",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode$u = "0x60c06040523480156200001157600080fd5b506040516200288338038062002883833981016040819052620000349162000699565b604080518082018252600b81526a0a8dee4dcc2c8de86c2e6d60ab1b6020808301918252835180850190945260048452632a27a92760e11b9084015281519192916200008391600391620005a7565b50805162000099906004906020840190620005a7565b50506005805460ff1916601217905550620000b3620001f0565b506008805460ff199081169091556001600160601b0319606085901b1660a0526001600160a01b0384166000908152600960205260408120805490921660011790915583905b8251811015620001765760008382815181106200011257fe5b60200260200101516000015190506200014a818584815181106200013257fe5b602002602001015160200151620002ac60201b60201c565b6001600160a01b03166000908152600960205260409020805460ff1916600190811790915501620000f9565b506200019a83620001866200038f565b6200039360201b62000cbd1790919060201c565b608052620001a7620003c4565b620001b16200043b565b6a084595161401484a00000014620001e65760405162461bcd60e51b8152600401620001dd906200086b565b60405180910390fd5b5050505062000909565b600080620001fd62000441565b905060007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6200022c62000445565b805160209182012060408051808201825260018152603160f81b90840152516200027e93927fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc691879130910162000781565b60408051601f1981840301815291815281516020928301206000948552600790925290922082905550905090565b6001600160a01b038216620002d55760405162461bcd60e51b8152600401620001dd90620008a2565b620002e360008383620004df565b620002ff816002546200039360201b62000cbd1790919060201c565b6002556001600160a01b038216600090815260208181526040909120546200033291839062000cbd62000393821b17901c565b6001600160a01b0383166000818152602081905260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9062000383908590620008d9565b60405180910390a35050565b4290565b600082820183811015620003bb5760405162461bcd60e51b8152600401620001dd90620007ad565b90505b92915050565b60085460ff1615620003ea5760405162461bcd60e51b8152600401620001dd9062000841565b6008805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620004226200059a565b6040516200043191906200076d565b60405180910390a1565b60025490565b4690565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015620004d55780601f10620004a957610100808354040283529160200191620004d5565b820191906000526020600020905b815481529060010190602001808311620004b757829003601f168201915b5050505050905090565b620004f78383836200059560201b620006aa1760201c565b620005016200059e565b15806200052657506001600160a01b03831660009081526009602052604090205460ff165b806200054a57506001600160a01b03821660009081526009602052604090205460ff165b620005695760405162461bcd60e51b8152600401620001dd906200081b565b6001600160a01b038216301415620005955760405162461bcd60e51b8152600401620001dd90620007e4565b505050565b3390565b60085460ff1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620005ea57805160ff19168380011785556200061a565b828001600101855582156200061a579182015b828111156200061a578251825591602001919060010190620005fd565b50620006289291506200062c565b5090565b5b808211156200062857600081556001016200062d565b80516001600160a01b0381168114620003be57600080fd5b6000604082840312156200066d578081fd5b620006796040620008e2565b905062000687838362000643565b81526020820151602082015292915050565b600080600060608486031215620006ae578283fd5b620006ba858562000643565b9250602080850151925060408086015160018060401b0380821115620006de578485fd5b818801915088601f830112620006f2578485fd5b81518181111562000701578586fd5b620007108586830201620008e2565b8181528581019250838601858302850187018c10156200072e578788fd5b8794505b828510156200075c57620007478c826200065b565b84526001949094019392860192850162000732565b508096505050505050509250925092565b6001600160a01b0391909116815260200190565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526017908201527f544f52
const isSuperArgs$u = (xs) => xs.length > 1;
class TORN__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$u(args)) {
super(...args);
} else {
super(_abi$P, _bytecode$u, args[0]);
}
}
getDeployTransaction(_governance, _pausePeriod, _vestings, overrides) {
return super.getDeployTransaction(
_governance,
_pausePeriod,
_vestings,
overrides || {}
);
}
deploy(_governance, _pausePeriod, _vestings, overrides) {
return super.deploy(
_governance,
_pausePeriod,
_vestings,
overrides || {}
);
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$P);
}
static connect(address, runner) {
return new Contract(address, _abi$P, runner);
}
}
TORN__factory.bytecode = _bytecode$u;
TORN__factory.abi = _abi$P;
const _abi$O = [
{
inputs: [
{
internalType: "address",
name: "_token",
type: "address"
},
{
internalType: "address",
name: "_beneficiary",
type: "address"
},
{
internalType: "uint256",
name: "_startTimestamp",
type: "uint256"
},
{
internalType: "uint256",
name: "_cliffInMonths",
type: "uint256"
},
{
internalType: "uint256",
name: "_durationInMonths",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "Released",
type: "event"
},
{
inputs: [],
name: "SECONDS_PER_MONTH",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "beneficiary",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "blockTimestamp",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "cliffInMonths",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "durationInMonths",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "release",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "released",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "startTimestamp",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "token",
outputs: [
{
internalType: "contract IERC20",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "vestedAmount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode$t = "0x61012060405234801561001157600080fd5b50604051610c8c380380610c8c833981810160405260a081101561003457600080fd5b508051602082015160408301516060840151608090940151929391929091906001600160a01b0384166100ae576040805162461bcd60e51b815260206004820152601b60248201527f42656e65666963696172792063616e6e6f7420626520656d7074790000000000604482015290519081900360640190fd5b80821115610103576040805162461bcd60e51b815260206004820152601e60248201527f436c6966662069732067726561746572207468616e206475726174696f6e0000604482015290519081900360640190fd5b6001600160601b0319606086811b821660a05285901b1660805261010081905260c08290528215610134578261013c565b61013c61014a565b60e0525061014e9350505050565b4290565b60805160601c60a05160601c60c05160e05161010051610acc6101c060003980610203528061037b52806103dd525080610152528061018e52806105215250806101d052806104f352508061024852806102c85280610474528061054552508061012c52806104965250610acc6000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063928d89ae11610066578063928d89ae146100fb5780639613252114610103578063adb618321461010b578063e6fd48bc14610113578063fc0c546a1461011b5761009e565b806310786deb146100a357806338af3eed146100bd57806344b1231f146100e157806367097a4b146100e957806386d1a69f146100f1575b600080fd5b6100ab610123565b60408051918252519081900360200190f35b6100c561012a565b604080516001600160a01b039092168252519081900360200190f35b6100ab61014e565b6100ab6103db565b6100f96103ff565b005b6100ab6104f1565b6100ab610515565b6100ab61051b565b6100ab61051f565b6100c5610543565b62278d0081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f000000000000000000000000000000000000000000000000000000000000000061017961051b565b1015610187575060006103d8565b60006101bb7f00000000000000000000000000000000000000000000000000000000000000006101b561051b565b90610567565b905060006101cc8262278d006105b2565b90507f0000000000000000000000000000000000000000000000000000000000000000811015610201576000925050506103d8565b7f000000000000000000000000000000000000000000000000000000000000000081106102c457604080516370a0823160e01b815230600482015290516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b15801561028e57600080fd5b505afa1580156102a2573d6000803e3d6000fd5b505050506040513d60208110156102b857600080fd5b505192506103d8915050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561033357600080fd5b505afa158015610347573d6000803e3d6000fd5b505050506040513d602081101561035d57600080fd5b505160008054919250906103729083906105f4565b905060006103aa7f00000000000000000000000000000000000000000000000000000000000000006103a4848761064e565b906105b2565b905060006103c36000548361056790919063ffffffff16565b90506103cf84826106a7565b96505050505050505b90565b7f000000000000000000000000000000000000000000000000000000000000000081565b600061040961014e565b905060008111610457576040805162461bcd60e51b81526020600482015260146024820152734e6f20746f6b656e7320746f2072656c6561736560601b604482015290519081900360640190fd5b60005461046490826105f4565b6000556104bb6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f0000000000000000000000000000000000000000000000000000000000000000836106bd565b6040805182815290517ffb81f9b30d73d830c3544b34d827c08142579ee75710b490bab0b3995468c5659181900360200190a150565b7f000000000000000000000000000000000000000000000000000000000000000081565b60005481565b4290565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60006105a983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610714565b90505b92915050565b60006105a983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506107ab565b6000828201838110156105a9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f7665
const isSuperArgs$t = (xs) => xs.length > 1;
class Vesting__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$t(args)) {
super(...args);
} else {
super(_abi$O, _bytecode$t, args[0]);
}
}
getDeployTransaction(_token, _beneficiary, _startTimestamp, _cliffInMonths, _durationInMonths, overrides) {
return super.getDeployTransaction(
_token,
_beneficiary,
_startTimestamp,
_cliffInMonths,
_durationInMonths,
overrides || {}
);
}
deploy(_token, _beneficiary, _startTimestamp, _cliffInMonths, _durationInMonths, overrides) {
return super.deploy(
_token,
_beneficiary,
_startTimestamp,
_cliffInMonths,
_durationInMonths,
overrides || {}
);
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$O);
}
static connect(address, runner) {
return new Contract(address, _abi$O, runner);
}
}
Vesting__factory.bytecode = _bytecode$t;
Vesting__factory.abi = _abi$O;
const _abi$N = [
{
inputs: [
{
internalType: "bytes32",
name: "_torn",
type: "bytes32"
},
{
internalType: "bytes32",
name: "_governance",
type: "bytes32"
},
{
internalType: "uint256",
name: "_duration",
type: "uint256"
},
{
components: [
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
internalType: "struct Voucher.Recipient[]",
name: "_airdrops",
type: "tuple[]"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "spender",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Approval",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "Transfer",
type: "event"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "spender",
type: "address"
}
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "allowedTransferee",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "blockTimestamp",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32[]",
name: "domains",
type: "bytes32[]"
}
],
name: "bulkResolve",
outputs: [
{
internalType: "address[]",
name: "result",
type: "address[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "decimals",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "subtractedValue",
type: "uint256"
}
],
name: "decreaseAllowance",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "expiresAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "governance",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "addedValue",
type: "uint256"
}
],
name: "increaseAllowance",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "name",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "redeem",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "rescueExpiredTokens",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "node",
type: "bytes32"
}
],
name: "resolve",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "symbol",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "torn",
outputs: [
{
internalType: "contract IERC20",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode$s = "0x60e06040523480156200001157600080fd5b5060405162001d8d38038062001d8d833981016040819052620000349162000593565b60405180606001604052806026815260200162001d6760269139604051806040016040528060058152602001643b2a27a92760d91b81525081600390805190602001906200008492919062000497565b5080516200009a90600490602084019062000497565b50506005805460ff1916601217905550620000b584620001af565b60601b6001600160601b031916608052620000d083620001af565b60601b6001600160601b03191660c0526200010382620000ef620002fd565b6200030160201b6200098d1790919060201c565b60a05260005b8151811015620001a457620001558282815181106200012457fe5b6020026020010151600001518383815181106200013d57fe5b6020026020010151602001516200033260201b60201c565b6001600660008484815181106200016857fe5b602090810291909101810151516001600160a01b03168252810191909152604001600020805460ff191691151591909117905560010162000109565b505050505062000753565b600080620001bc62000415565b600114620001df57738595bfb0d940dfedc98943fa8a907091203f25ee620001f0565b6e0c2e074ec69a0dfb2997ba6c7d2e1e5b604051630178b8bf60e01b81529091506001600160a01b03821690630178b8bf906200022190869060040162000665565b60206040518083038186803b1580156200023a57600080fd5b505afa1580156200024f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000275919062000574565b6001600160a01b0316633b3b57de846040518263ffffffff1660e01b8152600401620002a2919062000665565b60206040518083038186803b158015620002bb57600080fd5b505afa158015620002d0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002f6919062000574565b9392505050565b4290565b600082820183811015620002f65760405162461bcd60e51b815260040162000329906200066e565b60405180910390fd5b6001600160a01b0382166200035b5760405162461bcd60e51b81526004016200032990620006dc565b620003696000838362000419565b62000385816002546200030160201b6200098d1790919060201c565b6002556001600160a01b03821660009081526020818152604090912054620003b89183906200098d62000301821b17901c565b6001600160a01b0383166000818152602081905260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906200040990859062000665565b60405180910390a35050565b4690565b620004318383836200049260201b620009b21760201c565b6001600160a01b03821615806200044f57506001600160a01b038316155b806200047357506001600160a01b03831660009081526006602052604090205460ff165b620004925760405162461bcd60e51b81526004016200032990620006a5565b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620004da57805160ff19168380011785556200050a565b828001600101855582156200050a579182015b828111156200050a578251825591602001919060010190620004ed565b50620005189291506200051c565b5090565b5b808211156200051857600081556001016200051d565b60006040828403121562000545578081fd5b62000551604062000713565b9050815162000560816200073a565b808252506020820151602082015292915050565b60006020828403121562000586578081fd5b8151620002f6816200073a565b60008060008060808587031215620005a9578283fd5b8451935060208086015193506040808701519350606087015160018060401b0380821115620005d6578485fd5b818901915089601f830112620005ea578485fd5b815181811115620005f9578586fd5b62000608858683020162000713565b8181528581019250838601858302850187018d101562000626578788fd5b8794505b8285101562000654576200063f8d8262000533565b8452600194909401939286019285016200062a565b50989b979a50959850505050505050565b90815260200190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601e908201527f45524332303a207472616e73666572206973206e6f7420616c6c6f7765640000604082015260600190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b6040518181016001600160401b03811182821017156200073257600080fd5b604052919050565b6001600160a01b03811681146200075057600080fd5b50565b60805160601c60a05160c05160601c6115c3620007a46000398061043152806107d35250806105c352806106ec52806107895250806106c8528061075d52806107f4528061089852506115c36000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c80638622a689116100ad578063adf898a411610071578063adf898a41461024b578063be040fb014610253578063c39e
const isSuperArgs$s = (xs) => xs.length > 1;
class Voucher__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$s(args)) {
super(...args);
} else {
super(_abi$N, _bytecode$s, args[0]);
}
}
getDeployTransaction(_torn, _governance, _duration, _airdrops, overrides) {
return super.getDeployTransaction(
_torn,
_governance,
_duration,
_airdrops,
overrides || {}
);
}
deploy(_torn, _governance, _duration, _airdrops, overrides) {
return super.deploy(
_torn,
_governance,
_duration,
_airdrops,
overrides || {}
);
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$N);
}
static connect(address, runner) {
return new Contract(address, _abi$N, runner);
}
}
Voucher__factory.bytecode = _bytecode$s;
Voucher__factory.abi = _abi$N;
var index$s = /*#__PURE__*/Object.freeze({
__proto__: null,
Airdrop__factory: Airdrop__factory,
ERC20Permit__factory: ERC20Permit__factory,
TORN__factory: TORN__factory,
Vesting__factory: Vesting__factory,
Voucher__factory: Voucher__factory,
ensSol: index$u,
mocks: index$t
});
const _abi$M = [
{
inputs: [
{
internalType: "address",
name: "_logic",
type: "address"
},
{
internalType: "address",
name: "_admin",
type: "address"
},
{
internalType: "bytes",
name: "_data",
type: "bytes"
}
],
stateMutability: "payable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "previousAdmin",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "newAdmin",
type: "address"
}
],
name: "AdminChanged",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "implementation",
type: "address"
}
],
name: "Upgraded",
type: "event"
},
{
stateMutability: "payable",
type: "fallback"
},
{
inputs: [],
name: "admin",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "bytes",
name: "data",
type: "bytes"
}
],
name: "callToOwner",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newAdmin",
type: "address"
}
],
name: "changeAdmin",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newOwner",
type: "address"
}
],
name: "changeOwner",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "bytes",
name: "data",
type: "bytes"
}
],
name: "delegateToOwner",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [],
name: "getCurrentOwner",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "implementation",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newImplementation",
type: "address"
}
],
name: "upgradeTo",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newImplementation",
type: "address"
},
{
internalType: "bytes",
name: "data",
type: "bytes"
}
],
name: "upgradeToAndCall",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newImplementation",
type: "address"
}
],
name: "upgradeToOwner",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
stateMutability: "payable",
type: "receive"
}
];
const _bytecode$r = "0x608060405260405162000e6738038062000e67833981810160405260608110156200002957600080fd5b815160208301516040808501805191519395929483019291846401000000008211156200005557600080fd5b9083019060208201858111156200006b57600080fd5b82516401000000008111828201881017156200008657600080fd5b82525081516020918201929091019080838360005b83811015620000b55781810151838201526020016200009b565b50505050905090810190601f168015620000e35780820380516001836020036101000a031916815260200191505b5060405250849150839050828282828281620000ff82620001f6565b805115620001bd576000826001600160a01b0316826040518082805190602001908083835b60208310620001455780518252601f19909201916020918201910162000124565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114620001a7576040519150601f19603f3d011682016040523d82523d6000602084013e620001ac565b606091505b5050905080620001bb57600080fd5b505b50620001c69050565b620001d1826200026d565b505050505050620001ed336200029160201b620008ab1760201c565b50505062000308565b6200020c81620002bd60201b620008d51760201c565b620002495760405162461bcd60e51b815260040180806020018281038252603681526020018062000e316036913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b806200029c620002c3565b80546001600160a01b0319166001600160a01b039290921691909117905550565b3b151590565b604080517fb4d03667d60278cc15e9a68fa7679dc39ebe71350c4566a2c23c26580da4e0b3602080830191909152825180830382018152918301909252805191012090565b610b1980620003186000396000f3fe6080604052600436106100955760003560e01c80635c60da1b116100595780635c60da1b146102fe5780638f2839701461032f578063a18a186b14610362578063a6f9dae114610377578063f851a440146103aa576100a4565b806323711ab1146100ac57806323c735f1146101625780632e44e0e0146101955780633659cfe61461024b5780634f1ef2861461027e576100a4565b366100a4576100a26103bf565b005b6100a26103bf565b6100a2600480360360408110156100c257600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100ed57600080fd5b8201836020820111156100ff57600080fd5b8035906020019184600183028401116401000000008311171561012157600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506103d9945050505050565b34801561016e57600080fd5b506100a26004803603602081101561018557600080fd5b50356001600160a01b03166104e7565b6100a2600480360360408110156101ab57600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156101d657600080fd5b8201836020820111156101e857600080fd5b8035906020019184600183028401116401000000008311171561020a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610546945050505050565b34801561025757600080fd5b506100a26004803603602081101561026e57600080fd5b50356001600160a01b031661063a565b6100a26004803603604081101561029457600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156102bf57600080fd5b8201836020820111156102d157600080fd5b803590602001918460018302840111640100000000831117156102f357600080fd5b509092509050610671565b34801561030a57600080fd5b5061031361071e565b604080516001600160a01b039092168252519081900360200190f35b34801561033b57600080fd5b506100a26004803603602081101561035257600080fd5b50356001600160a01b031661075b565b34801561036e57600080fd5b50610313610815565b34801561038357600080fd5b506100a26004803603602081101561039a57600080fd5b50356001600160a01b0316610824565b3480156103b657600080fd5b50610313610880565b6103c76103d7565b6103d76103d26108db565b610900565b565b336103e2610924565b6001600160a01b03161461042c576040805162461bcd60e51b815260206004820152600c60248201526b2737ba1030b71037bbb732b960a11b604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061046a5780518252601f19909201916020918201910161044b565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146104ca576040519150601f19603f3d011682016040523d82523d6000602084013e6104cf565b606091505b5091509150816104e1578051
const isSuperArgs$r = (xs) => xs.length > 1;
class TestnetAdminProxy__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$r(args)) {
super(...args);
} else {
super(_abi$M, _bytecode$r, args[0]);
}
}
getDeployTransaction(_logic, _admin, _data, overrides) {
return super.getDeployTransaction(_logic, _admin, _data, overrides || {});
}
deploy(_logic, _admin, _data, overrides) {
return super.deploy(_logic, _admin, _data, overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$M);
}
static connect(address, runner) {
return new Contract(address, _abi$M, runner);
}
}
TestnetAdminProxy__factory.bytecode = _bytecode$r;
TestnetAdminProxy__factory.abi = _abi$M;
const _abi$L = [
{
inputs: [
{
internalType: "address",
name: "_torn",
type: "address"
},
{
internalType: "address",
name: "_governance",
type: "address"
},
{
internalType: "address",
name: "_registry",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "instance",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "newFee",
type: "uint256"
}
],
name: "FeeUpdated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint24",
name: "newFee",
type: "uint24"
}
],
name: "UniswapTornPoolSwappingFeeChanged",
type: "event"
},
{
inputs: [],
name: "PROTOCOL_FEE_DIVIDER",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract ITornadoInstance",
name: "_instance",
type: "address"
}
],
name: "calculatePoolFee",
outputs: [
{
internalType: "uint160",
name: "",
type: "uint160"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "feeDeviations",
outputs: [
{
components: [
{
internalType: "address",
name: "instance",
type: "address"
},
{
internalType: "int256",
name: "deviation",
type: "int256"
}
],
internalType: "struct FeeManager.Deviation[]",
name: "results",
type: "tuple[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_token",
type: "address"
},
{
internalType: "uint24",
name: "_uniswapPoolSwappingFee",
type: "uint24"
}
],
name: "getTokenPriceRatio",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "governance",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract ITornadoInstance",
name: "",
type: "address"
}
],
name: "instanceFee",
outputs: [
{
internalType: "uint160",
name: "",
type: "uint160"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract ITornadoInstance",
name: "",
type: "address"
}
],
name: "instanceFeeUpdated",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract ITornadoInstance",
name: "_instance",
type: "address"
}
],
name: "instanceFeeWithUpdate",
outputs: [
{
internalType: "uint160",
name: "",
type: "uint160"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "registry",
outputs: [
{
internalType: "contract InstanceRegistry",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint32",
name: "newPeriod",
type: "uint32"
}
],
name: "setPeriodForTWAPOracle",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_token",
type: "address"
},
{
internalType: "uint256",
name: "_price",
type: "uint256"
}
],
name: "setTokenPrice",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint24",
name: "_uniswapTornPoolSwappingFee",
type: "uint24"
}
],
name: "setUniswapTornPoolSwappingFee",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint24",
name: "newLimit",
type: "uint24"
}
],
name: "setUpdateFeeTimeLimit",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "torn",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "uniswapTimePeriod",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "uniswapTornPoolSwappingFee",
outputs: [
{
internalType: "uint24",
name: "",
type: "uint24"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "updateAllFees",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "contract ITornadoInstance",
name: "_instance",
type: "address"
}
],
name: "updateFee",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "updateFeeTimeLimit",
outputs: [
{
internalType: "uint24",
name: "",
type: "uint24"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract ITornadoInstance[]",
name: "_instances",
type: "address[]"
}
],
name: "updateFees",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode$q = "0x60e06040523480156200001157600080fd5b5060405162001c9d38038062001c9d83398101604081905262000034916200005c565b6001600160601b0319606093841b811660805291831b821660a05290911b1660c052620000c8565b60008060006060848603121562000071578283fd5b83516200007e81620000af565b60208501519093506200009181620000af565b6040850151909250620000a481620000af565b809150509250925092565b6001600160a01b0381168114620000c557600080fd5b50565b60805160601c60a05160601c60c05160601c611b7c6200012160003980610350528061061452806108915280610a42525080610539528061064c528061072d528061082252508061059852806107ad5250611b7c6000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c806380eb7bf0116100ad578063bcc5ee6411610071578063bcc5ee641461024b578063c51c229714610253578063d8718fb114610266578063e1f121561461027b578063f522d6d61461028e5761012c565b806380eb7bf014610202578063a028752014610215578063adf898a414610228578063aeb3077a14610230578063b19a2972146102385761012c565b8063603a54fe116100f4578063603a54fe146101ac57806369574fef146101bf5780637b103999146101d25780637ccd2f48146101da57806380679eb3146101ef5761012c565b806305e34364146101315780632efbf3841461015a578063431f63c91461017a5780634bf0a5421461018f5780635aa6e675146101a4575b600080fd5b61014461013f36600461183e565b610296565b6040516101519190611aaa565b60405180910390f35b61016d61016836600461183e565b6102a8565b60405161015191906118cb565b61018d6101883660046115b1565b610305565b005b61019761034b565b6040516101519190611907565b61016d610537565b61016d6101ba36600461183e565b61055b565b6101446101cd366004611579565b610576565b61016d610612565b6101e2610636565b6040516101519190611a9a565b61018d6101fd36600461188e565b610641565b61018d61021036600461183e565b61069c565b61018d61022336600461185a565b610722565b61016d6107ab565b6101446107cf565b61018d6102463660046115dc565b6107d5565b6101e2610805565b61018d61026136600461185a565b610817565b61026e610874565b6040516101519190611ab3565b61016d61028936600461183e565b610887565b61018d610a3d565b60026020526000908152604090205481565b600080546001600160a01b038316825260026020526040822054600160381b90910462ffffff16429190910311156102e3576102e38261069c565b506001600160a01b03808216600090815260016020526040902054165b919050565b3361030e610ad7565b6001600160a01b03161461033d5760405162461bcd60e51b8152600401610334906119fc565b60405180910390fd5b6103478282610af0565b5050565b6060807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166310c13ac36040518163ffffffff1660e01b815260040160006040518083038186803b1580156103a757600080fd5b505afa1580156103bb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103e39190810190611675565b9050805167ffffffffffffffff811180156103fd57600080fd5b5060405190808252806020026020018201604052801561043757816020015b6104246114b2565b81526020019060019003908161041c5790505b50915060005b815181101561053257600061046483838151811061045757fe5b6020026020010151610887565b6001600160a01b03169050600081156104e0576103e8826001600087878151811061048b57fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a90046001600160a01b03166103e8026001600160a01b0316816104db57fe5b040390505b60405180604001604052808585815181106104f757fe5b60200260200101516001600160a01b031681526020018281525085848151811061051d57fe5b6020908102919091010152505060010161043d565b505090565b7f000000000000000000000000000000000000000000000000000000000000000081565b6001602052600090815260409020546001600160a01b031681565b600061058183610b19565b610600576040805180820182526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811682528516602080830191909152825180840190935260005462ffffff80821685528616918401919091526105fb929063ffffffff630100000090910416610b44565b610609565b61060983610b19565b90505b92915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60005462ffffff1681565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461067657600080fd5b6000805463ffffffff90921663010000000266ffffffff00000019909216919091179055565b60006106a782610887565b6001600160a01b03838116600081815260016020908152604080832080546001600160a01b031916958716
const isSuperArgs$q = (xs) => xs.length > 1;
class TestnetFeeManager__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$q(args)) {
super(...args);
} else {
super(_abi$L, _bytecode$q, args[0]);
}
}
getDeployTransaction(_torn, _governance, _registry, overrides) {
return super.getDeployTransaction(
_torn,
_governance,
_registry,
overrides || {}
);
}
deploy(_torn, _governance, _registry, overrides) {
return super.deploy(
_torn,
_governance,
_registry,
overrides || {}
);
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$L);
}
static connect(address, runner) {
return new Contract(address, _abi$L, runner);
}
}
TestnetFeeManager__factory.bytecode = _bytecode$q;
TestnetFeeManager__factory.abi = _abi$L;
const _abi$K = [
{
inputs: [
{
internalType: "address",
name: "_logic",
type: "address"
},
{
internalType: "bytes",
name: "_data",
type: "bytes"
}
],
stateMutability: "payable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "previousAdmin",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "newAdmin",
type: "address"
}
],
name: "AdminChanged",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "implementation",
type: "address"
}
],
name: "Upgraded",
type: "event"
},
{
stateMutability: "payable",
type: "fallback"
},
{
inputs: [],
name: "admin",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "bytes",
name: "data",
type: "bytes"
}
],
name: "callToOwner",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newAdmin",
type: "address"
}
],
name: "changeAdmin",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newOwner",
type: "address"
}
],
name: "changeOwner",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "bytes",
name: "data",
type: "bytes"
}
],
name: "delegateToOwner",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [],
name: "getCurrentOwner",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "implementation",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newImplementation",
type: "address"
}
],
name: "upgradeTo",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newImplementation",
type: "address"
},
{
internalType: "bytes",
name: "data",
type: "bytes"
}
],
name: "upgradeToAndCall",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newImplementation",
type: "address"
}
],
name: "upgradeToOwner",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
stateMutability: "payable",
type: "receive"
}
];
const _bytecode$p = "0x608060405260405162000e6038038062000e60833981810160405260408110156200002957600080fd5b8151602083018051604051929492938301929190846401000000008211156200005157600080fd5b9083019060208201858111156200006757600080fd5b82516401000000008111828201881017156200008257600080fd5b82525081516020918201929091019080838360005b83811015620000b157818101518382015260200162000097565b50505050905090810190601f168015620000df5780820380516001836020036101000a031916815260200191505b50604052508391508290508130828281620000fa82620001ef565b805115620001b8576000826001600160a01b0316826040518082805190602001908083835b60208310620001405780518252601f1990920191602091820191016200011f565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114620001a2576040519150601f19603f3d011682016040523d82523d6000602084013e620001a7565b606091505b5050905080620001b657600080fd5b505b50620001c19050565b620001cc8262000266565b5050505050620001e7336200028a60201b620008ab1760201c565b505062000301565b6200020581620002b660201b620008d51760201c565b620002425760405162461bcd60e51b815260040180806020018281038252603681526020018062000e2a6036913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b8062000295620002bc565b80546001600160a01b0319166001600160a01b039290921691909117905550565b3b151590565b604080517fb4d03667d60278cc15e9a68fa7679dc39ebe71350c4566a2c23c26580da4e0b3602080830191909152825180830382018152918301909252805191012090565b610b1980620003116000396000f3fe6080604052600436106100955760003560e01c80635c60da1b116100595780635c60da1b146102fe5780638f2839701461032f578063a18a186b14610362578063a6f9dae114610377578063f851a440146103aa576100a4565b806323711ab1146100ac57806323c735f1146101625780632e44e0e0146101955780633659cfe61461024b5780634f1ef2861461027e576100a4565b366100a4576100a26103bf565b005b6100a26103bf565b6100a2600480360360408110156100c257600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100ed57600080fd5b8201836020820111156100ff57600080fd5b8035906020019184600183028401116401000000008311171561012157600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506103d9945050505050565b34801561016e57600080fd5b506100a26004803603602081101561018557600080fd5b50356001600160a01b03166104e7565b6100a2600480360360408110156101ab57600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156101d657600080fd5b8201836020820111156101e857600080fd5b8035906020019184600183028401116401000000008311171561020a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610546945050505050565b34801561025757600080fd5b506100a26004803603602081101561026e57600080fd5b50356001600160a01b031661063a565b6100a26004803603604081101561029457600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156102bf57600080fd5b8201836020820111156102d157600080fd5b803590602001918460018302840111640100000000831117156102f357600080fd5b509092509050610671565b34801561030a57600080fd5b5061031361071e565b604080516001600160a01b039092168252519081900360200190f35b34801561033b57600080fd5b506100a26004803603602081101561035257600080fd5b50356001600160a01b031661075b565b34801561036e57600080fd5b50610313610815565b34801561038357600080fd5b506100a26004803603602081101561039a57600080fd5b50356001600160a01b0316610824565b3480156103b657600080fd5b50610313610880565b6103c76103d7565b6103d76103d26108db565b610900565b565b336103e2610924565b6001600160a01b03161461042c576040805162461bcd60e51b815260206004820152600c60248201526b2737ba1030b71037bbb732b960a11b604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061046a5780518252601f19909201916020918201910161044b565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146104ca576040519150601f19603f3d011682016040523d82523d6000602084013e6104cf565b606091505b5091509150816104e157805181602001fd5b50
const isSuperArgs$p = (xs) => xs.length > 1;
class TestnetGovernanceProxy__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$p(args)) {
super(...args);
} else {
super(_abi$K, _bytecode$p, args[0]);
}
}
getDeployTransaction(_logic, _data, overrides) {
return super.getDeployTransaction(_logic, _data, overrides || {});
}
deploy(_logic, _data, overrides) {
return super.deploy(_logic, _data, overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$K);
}
static connect(address, runner) {
return new Contract(
address,
_abi$K,
runner
);
}
}
TestnetGovernanceProxy__factory.bytecode = _bytecode$p;
TestnetGovernanceProxy__factory.abi = _abi$K;
var index$r = /*#__PURE__*/Object.freeze({
__proto__: null,
TestnetAdminProxy__factory: TestnetAdminProxy__factory,
TestnetFeeManager__factory: TestnetFeeManager__factory,
TestnetGovernanceProxy__factory: TestnetGovernanceProxy__factory
});
const _abi$J = [
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "lockedBalance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "userVault",
outputs: [
{
internalType: "contract ITornadoVault",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
}
];
class ITornadoGovernance__factory {
static createInterface() {
return new Interface(_abi$J);
}
static connect(address, runner) {
return new Contract(address, _abi$J, runner);
}
}
ITornadoGovernance__factory.abi = _abi$J;
const _abi$I = [
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "withdrawTorn",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
let ITornadoVault__factory$1 = class ITornadoVault__factory {
static createInterface() {
return new Interface(_abi$I);
}
static connect(address, runner) {
return new Contract(address, _abi$I, runner);
}
};
ITornadoVault__factory$1.abi = _abi$I;
const _abi$H = [
{
inputs: [
{
internalType: "address",
name: "governanceAddress",
type: "address"
},
{
internalType: "address",
name: "tornAddress",
type: "address"
},
{
internalType: "address",
name: "_relayerRegistry",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "rewardsClaimed",
type: "uint256"
}
],
name: "RewardsClaimed",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "rewards",
type: "uint256"
}
],
name: "RewardsUpdated",
type: "event"
},
{
inputs: [],
name: "Governance",
outputs: [
{
internalType: "contract ITornadoGovernance",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "accumulatedRewardPerTorn",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "accumulatedRewardRateOnLastUpdate",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "accumulatedRewards",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "addBurnRewards",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "checkReward",
outputs: [
{
internalType: "uint256",
name: "rewards",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "getReward",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "ratioConstant",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "relayerRegistry",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "torn",
outputs: [
{
internalType: "contract IERC20",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
},
{
internalType: "uint256",
name: "amountLockedBeforehand",
type: "uint256"
}
],
name: "updateRewardsOnLockedBalanceChange",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "withdrawTorn",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode$o = "0x6101006040523480156200001257600080fd5b506040516200114d3803806200114d8339810160408190526200003591620000e0565b6001600160601b0319606084811b821660a05283811b821660c05282901b1660e052604080516318160ddd60e01b815290516001600160a01b038416916318160ddd916004808301926020929190829003018186803b1580156200009857600080fd5b505afa158015620000ad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000d3919062000133565b6080525062000165915050565b600080600060608486031215620000f5578283fd5b835162000102816200014c565b602085015190935062000115816200014c565b604085015190925062000128816200014c565b809150509250925092565b60006020828403121562000145578081fd5b5051919050565b6001600160a01b03811681146200016257600080fd5b50565b60805160a05160601c60c05160601c60e05160601c610f5e620001ef600039806101bd52806104c852508061020c5280610453528061054652806107b0528061084552508061018b528061023b528061037d5280610522528061056d52806106b75280610752528061086752508061033c52806104fe528061063152806109635250610f5e6000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063adf898a411610071578063adf898a414610124578063c3c90e641461012c578063d7ada20d1461013f578063e0d3265214610152578063e113335f1461015a578063f58073b11461016d576100b4565b8063338610af146100b95780633d18b912146100ce57806347ff589d146100d657806373f273fc146100f457806380a1204114610114578063945391121461011c575b600080fd5b6100cc6100c7366004610ce6565b610180565b005b6100cc610375565b6100de6104c6565b6040516100eb9190610d32565b60405180910390f35b610107610102366004610c63565b6104ea565b6040516100eb9190610eda565b6101076104fc565b6100de610520565b6100de610544565b61010761013a366004610c63565b610568565b61010761014d366004610c63565b610694565b6101076106a6565b6100cc610168366004610c7f565b6106ac565b6100cc61017b366004610ce6565b610747565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806101df5750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b6102045760405162461bcd60e51b81526004016101fb90610e33565b60405180910390fd5b61036f6103667f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a082317f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639daafec76040518163ffffffff1660e01b815260040160206040518083038186803b15801561029257600080fd5b505afa1580156102a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102ca9190610cca565b6040518263ffffffff1660e01b81526004016102e69190610d32565b60206040518083038186803b1580156102fe57600080fd5b505afa158015610312573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103369190610cfe565b610360847f000000000000000000000000000000000000000000000000000000000000000061088f565b906108d2565b60015490610914565b60015550565b600061041c337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639ae697bf336040518263ffffffff1660e01b81526004016103c79190610d32565b60206040518083038186803b1580156103df57600080fd5b505afa1580156103f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104179190610cfe565b610939565b3360009081526003602052604090205490915061043a908290610914565b33600081815260036020526040812055909150610482907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690836109f3565b336001600160a01b03167ffc30cddea38e2bf4d6ea7d3f9ed3b6ad7f176419f4963bd81318067a4aee73fe826040516104bb9190610eda565b60405180910390a250565b7f000000000000000000000000000000000000000000000000000000000000000081565b60036020526000908152604090205481565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639ae697bf846040518263ffffffff1660e01b81526004016105b79190610d32565b60206040518083038186803b1580156105cf57600080fd5b505afa1580156105e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106079190610c
const isSuperArgs$o = (xs) => xs.length > 1;
class TornadoStakingRewards__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$o(args)) {
super(...args);
} else {
super(_abi$H, _bytecode$o, args[0]);
}
}
getDeployTransaction(governanceAddress, tornAddress, _relayerRegistry, overrides) {
return super.getDeployTransaction(
governanceAddress,
tornAddress,
_relayerRegistry,
overrides || {}
);
}
deploy(governanceAddress, tornAddress, _relayerRegistry, overrides) {
return super.deploy(
governanceAddress,
tornAddress,
_relayerRegistry,
overrides || {}
);
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$H);
}
static connect(address, runner) {
return new Contract(
address,
_abi$H,
runner
);
}
}
TornadoStakingRewards__factory.bytecode = _bytecode$o;
TornadoStakingRewards__factory.abi = _abi$H;
var index$q = /*#__PURE__*/Object.freeze({
__proto__: null,
ITornadoGovernance__factory: ITornadoGovernance__factory,
ITornadoVault__factory: ITornadoVault__factory$1,
TornadoStakingRewards__factory: TornadoStakingRewards__factory
});
const _abi$G = [
{
inputs: [
{
internalType: "int24",
name: "tickLower",
type: "int24"
},
{
internalType: "int24",
name: "tickUpper",
type: "int24"
},
{
internalType: "uint128",
name: "amount",
type: "uint128"
}
],
name: "burn",
outputs: [
{
internalType: "uint256",
name: "amount0",
type: "uint256"
},
{
internalType: "uint256",
name: "amount1",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "int24",
name: "tickLower",
type: "int24"
},
{
internalType: "int24",
name: "tickUpper",
type: "int24"
},
{
internalType: "uint128",
name: "amount0Requested",
type: "uint128"
},
{
internalType: "uint128",
name: "amount1Requested",
type: "uint128"
}
],
name: "collect",
outputs: [
{
internalType: "uint128",
name: "amount0",
type: "uint128"
},
{
internalType: "uint128",
name: "amount1",
type: "uint128"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount0",
type: "uint256"
},
{
internalType: "uint256",
name: "amount1",
type: "uint256"
},
{
internalType: "bytes",
name: "data",
type: "bytes"
}
],
name: "flash",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint16",
name: "observationCardinalityNext",
type: "uint16"
}
],
name: "increaseObservationCardinalityNext",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint160",
name: "sqrtPriceX96",
type: "uint160"
}
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "int24",
name: "tickLower",
type: "int24"
},
{
internalType: "int24",
name: "tickUpper",
type: "int24"
},
{
internalType: "uint128",
name: "amount",
type: "uint128"
},
{
internalType: "bytes",
name: "data",
type: "bytes"
}
],
name: "mint",
outputs: [
{
internalType: "uint256",
name: "amount0",
type: "uint256"
},
{
internalType: "uint256",
name: "amount1",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "bool",
name: "zeroForOne",
type: "bool"
},
{
internalType: "int256",
name: "amountSpecified",
type: "int256"
},
{
internalType: "uint160",
name: "sqrtPriceLimitX96",
type: "uint160"
},
{
internalType: "bytes",
name: "data",
type: "bytes"
}
],
name: "swap",
outputs: [
{
internalType: "int256",
name: "amount0",
type: "int256"
},
{
internalType: "int256",
name: "amount1",
type: "int256"
}
],
stateMutability: "nonpayable",
type: "function"
}
];
class IUniswapV3PoolActions__factory {
static createInterface() {
return new Interface(_abi$G);
}
static connect(address, runner) {
return new Contract(
address,
_abi$G,
runner
);
}
}
IUniswapV3PoolActions__factory.abi = _abi$G;
const _abi$F = [
{
inputs: [
{
internalType: "uint32[]",
name: "secondsAgos",
type: "uint32[]"
}
],
name: "observe",
outputs: [
{
internalType: "int56[]",
name: "tickCumulatives",
type: "int56[]"
},
{
internalType: "uint160[]",
name: "secondsPerLiquidityCumulativeX128s",
type: "uint160[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "int24",
name: "tickLower",
type: "int24"
},
{
internalType: "int24",
name: "tickUpper",
type: "int24"
}
],
name: "snapshotCumulativesInside",
outputs: [
{
internalType: "int56",
name: "tickCumulativeInside",
type: "int56"
},
{
internalType: "uint160",
name: "secondsPerLiquidityInsideX128",
type: "uint160"
},
{
internalType: "uint32",
name: "secondsInside",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
}
];
class IUniswapV3PoolDerivedState__factory {
static createInterface() {
return new Interface(_abi$F);
}
static connect(address, runner) {
return new Contract(
address,
_abi$F,
runner
);
}
}
IUniswapV3PoolDerivedState__factory.abi = _abi$F;
const _abi$E = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "int24",
name: "tickLower",
type: "int24"
},
{
indexed: true,
internalType: "int24",
name: "tickUpper",
type: "int24"
},
{
indexed: false,
internalType: "uint128",
name: "amount",
type: "uint128"
},
{
indexed: false,
internalType: "uint256",
name: "amount0",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "amount1",
type: "uint256"
}
],
name: "Burn",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "recipient",
type: "address"
},
{
indexed: true,
internalType: "int24",
name: "tickLower",
type: "int24"
},
{
indexed: true,
internalType: "int24",
name: "tickUpper",
type: "int24"
},
{
indexed: false,
internalType: "uint128",
name: "amount0",
type: "uint128"
},
{
indexed: false,
internalType: "uint128",
name: "amount1",
type: "uint128"
}
],
name: "Collect",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "sender",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "recipient",
type: "address"
},
{
indexed: false,
internalType: "uint128",
name: "amount0",
type: "uint128"
},
{
indexed: false,
internalType: "uint128",
name: "amount1",
type: "uint128"
}
],
name: "CollectProtocol",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "sender",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "recipient",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "amount0",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "amount1",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "paid0",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "paid1",
type: "uint256"
}
],
name: "Flash",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint16",
name: "observationCardinalityNextOld",
type: "uint16"
},
{
indexed: false,
internalType: "uint16",
name: "observationCardinalityNextNew",
type: "uint16"
}
],
name: "IncreaseObservationCardinalityNext",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint160",
name: "sqrtPriceX96",
type: "uint160"
},
{
indexed: false,
internalType: "int24",
name: "tick",
type: "int24"
}
],
name: "Initialize",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "sender",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "int24",
name: "tickLower",
type: "int24"
},
{
indexed: true,
internalType: "int24",
name: "tickUpper",
type: "int24"
},
{
indexed: false,
internalType: "uint128",
name: "amount",
type: "uint128"
},
{
indexed: false,
internalType: "uint256",
name: "amount0",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "amount1",
type: "uint256"
}
],
name: "Mint",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint8",
name: "feeProtocol0Old",
type: "uint8"
},
{
indexed: false,
internalType: "uint8",
name: "feeProtocol1Old",
type: "uint8"
},
{
indexed: false,
internalType: "uint8",
name: "feeProtocol0New",
type: "uint8"
},
{
indexed: false,
internalType: "uint8",
name: "feeProtocol1New",
type: "uint8"
}
],
name: "SetFeeProtocol",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "sender",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "recipient",
type: "address"
},
{
indexed: false,
internalType: "int256",
name: "amount0",
type: "int256"
},
{
indexed: false,
internalType: "int256",
name: "amount1",
type: "int256"
},
{
indexed: false,
internalType: "uint160",
name: "sqrtPriceX96",
type: "uint160"
},
{
indexed: false,
internalType: "uint128",
name: "liquidity",
type: "uint128"
},
{
indexed: false,
internalType: "int24",
name: "tick",
type: "int24"
}
],
name: "Swap",
type: "event"
}
];
class IUniswapV3PoolEvents__factory {
static createInterface() {
return new Interface(_abi$E);
}
static connect(address, runner) {
return new Contract(
address,
_abi$E,
runner
);
}
}
IUniswapV3PoolEvents__factory.abi = _abi$E;
const _abi$D = [
{
inputs: [],
name: "factory",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "fee",
outputs: [
{
internalType: "uint24",
name: "",
type: "uint24"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "maxLiquidityPerTick",
outputs: [
{
internalType: "uint128",
name: "",
type: "uint128"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "tickSpacing",
outputs: [
{
internalType: "int24",
name: "",
type: "int24"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "token0",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "token1",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
}
];
class IUniswapV3PoolImmutables__factory {
static createInterface() {
return new Interface(_abi$D);
}
static connect(address, runner) {
return new Contract(
address,
_abi$D,
runner
);
}
}
IUniswapV3PoolImmutables__factory.abi = _abi$D;
const _abi$C = [
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint128",
name: "amount0Requested",
type: "uint128"
},
{
internalType: "uint128",
name: "amount1Requested",
type: "uint128"
}
],
name: "collectProtocol",
outputs: [
{
internalType: "uint128",
name: "amount0",
type: "uint128"
},
{
internalType: "uint128",
name: "amount1",
type: "uint128"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint8",
name: "feeProtocol0",
type: "uint8"
},
{
internalType: "uint8",
name: "feeProtocol1",
type: "uint8"
}
],
name: "setFeeProtocol",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
class IUniswapV3PoolOwnerActions__factory {
static createInterface() {
return new Interface(_abi$C);
}
static connect(address, runner) {
return new Contract(
address,
_abi$C,
runner
);
}
}
IUniswapV3PoolOwnerActions__factory.abi = _abi$C;
const _abi$B = [
{
inputs: [],
name: "feeGrowthGlobal0X128",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "feeGrowthGlobal1X128",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "liquidity",
outputs: [
{
internalType: "uint128",
name: "",
type: "uint128"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "index",
type: "uint256"
}
],
name: "observations",
outputs: [
{
internalType: "uint32",
name: "blockTimestamp",
type: "uint32"
},
{
internalType: "int56",
name: "tickCumulative",
type: "int56"
},
{
internalType: "uint160",
name: "secondsPerLiquidityCumulativeX128",
type: "uint160"
},
{
internalType: "bool",
name: "initialized",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "key",
type: "bytes32"
}
],
name: "positions",
outputs: [
{
internalType: "uint128",
name: "_liquidity",
type: "uint128"
},
{
internalType: "uint256",
name: "feeGrowthInside0LastX128",
type: "uint256"
},
{
internalType: "uint256",
name: "feeGrowthInside1LastX128",
type: "uint256"
},
{
internalType: "uint128",
name: "tokensOwed0",
type: "uint128"
},
{
internalType: "uint128",
name: "tokensOwed1",
type: "uint128"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "protocolFees",
outputs: [
{
internalType: "uint128",
name: "token0",
type: "uint128"
},
{
internalType: "uint128",
name: "token1",
type: "uint128"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "slot0",
outputs: [
{
internalType: "uint160",
name: "sqrtPriceX96",
type: "uint160"
},
{
internalType: "int24",
name: "tick",
type: "int24"
},
{
internalType: "uint16",
name: "observationIndex",
type: "uint16"
},
{
internalType: "uint16",
name: "observationCardinality",
type: "uint16"
},
{
internalType: "uint16",
name: "observationCardinalityNext",
type: "uint16"
},
{
internalType: "uint8",
name: "feeProtocol",
type: "uint8"
},
{
internalType: "bool",
name: "unlocked",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "int16",
name: "wordPosition",
type: "int16"
}
],
name: "tickBitmap",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "int24",
name: "tick",
type: "int24"
}
],
name: "ticks",
outputs: [
{
internalType: "uint128",
name: "liquidityGross",
type: "uint128"
},
{
internalType: "int128",
name: "liquidityNet",
type: "int128"
},
{
internalType: "uint256",
name: "feeGrowthOutside0X128",
type: "uint256"
},
{
internalType: "uint256",
name: "feeGrowthOutside1X128",
type: "uint256"
},
{
internalType: "int56",
name: "tickCumulativeOutside",
type: "int56"
},
{
internalType: "uint160",
name: "secondsPerLiquidityOutsideX128",
type: "uint160"
},
{
internalType: "uint32",
name: "secondsOutside",
type: "uint32"
},
{
internalType: "bool",
name: "initialized",
type: "bool"
}
],
stateMutability: "view",
type: "function"
}
];
class IUniswapV3PoolState__factory {
static createInterface() {
return new Interface(_abi$B);
}
static connect(address, runner) {
return new Contract(
address,
_abi$B,
runner
);
}
}
IUniswapV3PoolState__factory.abi = _abi$B;
var index$p = /*#__PURE__*/Object.freeze({
__proto__: null,
IUniswapV3PoolActions__factory: IUniswapV3PoolActions__factory,
IUniswapV3PoolDerivedState__factory: IUniswapV3PoolDerivedState__factory,
IUniswapV3PoolEvents__factory: IUniswapV3PoolEvents__factory,
IUniswapV3PoolImmutables__factory: IUniswapV3PoolImmutables__factory,
IUniswapV3PoolOwnerActions__factory: IUniswapV3PoolOwnerActions__factory,
IUniswapV3PoolState__factory: IUniswapV3PoolState__factory
});
const _abi$A = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint24",
name: "fee",
type: "uint24"
},
{
indexed: true,
internalType: "int24",
name: "tickSpacing",
type: "int24"
}
],
name: "FeeAmountEnabled",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "oldOwner",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "newOwner",
type: "address"
}
],
name: "OwnerChanged",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "token0",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "token1",
type: "address"
},
{
indexed: true,
internalType: "uint24",
name: "fee",
type: "uint24"
},
{
indexed: false,
internalType: "int24",
name: "tickSpacing",
type: "int24"
},
{
indexed: false,
internalType: "address",
name: "pool",
type: "address"
}
],
name: "PoolCreated",
type: "event"
},
{
inputs: [
{
internalType: "address",
name: "tokenA",
type: "address"
},
{
internalType: "address",
name: "tokenB",
type: "address"
},
{
internalType: "uint24",
name: "fee",
type: "uint24"
}
],
name: "createPool",
outputs: [
{
internalType: "address",
name: "pool",
type: "address"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint24",
name: "fee",
type: "uint24"
},
{
internalType: "int24",
name: "tickSpacing",
type: "int24"
}
],
name: "enableFeeAmount",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint24",
name: "fee",
type: "uint24"
}
],
name: "feeAmountTickSpacing",
outputs: [
{
internalType: "int24",
name: "",
type: "int24"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "tokenA",
type: "address"
},
{
internalType: "address",
name: "tokenB",
type: "address"
},
{
internalType: "uint24",
name: "fee",
type: "uint24"
}
],
name: "getPool",
outputs: [
{
internalType: "address",
name: "pool",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "owner",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address"
}
],
name: "setOwner",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
class IUniswapV3Factory__factory {
static createInterface() {
return new Interface(_abi$A);
}
static connect(address, runner) {
return new Contract(address, _abi$A, runner);
}
}
IUniswapV3Factory__factory.abi = _abi$A;
const _abi$z = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "int24",
name: "tickLower",
type: "int24"
},
{
indexed: true,
internalType: "int24",
name: "tickUpper",
type: "int24"
},
{
indexed: false,
internalType: "uint128",
name: "amount",
type: "uint128"
},
{
indexed: false,
internalType: "uint256",
name: "amount0",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "amount1",
type: "uint256"
}
],
name: "Burn",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "recipient",
type: "address"
},
{
indexed: true,
internalType: "int24",
name: "tickLower",
type: "int24"
},
{
indexed: true,
internalType: "int24",
name: "tickUpper",
type: "int24"
},
{
indexed: false,
internalType: "uint128",
name: "amount0",
type: "uint128"
},
{
indexed: false,
internalType: "uint128",
name: "amount1",
type: "uint128"
}
],
name: "Collect",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "sender",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "recipient",
type: "address"
},
{
indexed: false,
internalType: "uint128",
name: "amount0",
type: "uint128"
},
{
indexed: false,
internalType: "uint128",
name: "amount1",
type: "uint128"
}
],
name: "CollectProtocol",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "sender",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "recipient",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "amount0",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "amount1",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "paid0",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "paid1",
type: "uint256"
}
],
name: "Flash",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint16",
name: "observationCardinalityNextOld",
type: "uint16"
},
{
indexed: false,
internalType: "uint16",
name: "observationCardinalityNextNew",
type: "uint16"
}
],
name: "IncreaseObservationCardinalityNext",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint160",
name: "sqrtPriceX96",
type: "uint160"
},
{
indexed: false,
internalType: "int24",
name: "tick",
type: "int24"
}
],
name: "Initialize",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "sender",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "int24",
name: "tickLower",
type: "int24"
},
{
indexed: true,
internalType: "int24",
name: "tickUpper",
type: "int24"
},
{
indexed: false,
internalType: "uint128",
name: "amount",
type: "uint128"
},
{
indexed: false,
internalType: "uint256",
name: "amount0",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "amount1",
type: "uint256"
}
],
name: "Mint",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint8",
name: "feeProtocol0Old",
type: "uint8"
},
{
indexed: false,
internalType: "uint8",
name: "feeProtocol1Old",
type: "uint8"
},
{
indexed: false,
internalType: "uint8",
name: "feeProtocol0New",
type: "uint8"
},
{
indexed: false,
internalType: "uint8",
name: "feeProtocol1New",
type: "uint8"
}
],
name: "SetFeeProtocol",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "sender",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "recipient",
type: "address"
},
{
indexed: false,
internalType: "int256",
name: "amount0",
type: "int256"
},
{
indexed: false,
internalType: "int256",
name: "amount1",
type: "int256"
},
{
indexed: false,
internalType: "uint160",
name: "sqrtPriceX96",
type: "uint160"
},
{
indexed: false,
internalType: "uint128",
name: "liquidity",
type: "uint128"
},
{
indexed: false,
internalType: "int24",
name: "tick",
type: "int24"
}
],
name: "Swap",
type: "event"
},
{
inputs: [
{
internalType: "int24",
name: "tickLower",
type: "int24"
},
{
internalType: "int24",
name: "tickUpper",
type: "int24"
},
{
internalType: "uint128",
name: "amount",
type: "uint128"
}
],
name: "burn",
outputs: [
{
internalType: "uint256",
name: "amount0",
type: "uint256"
},
{
internalType: "uint256",
name: "amount1",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "int24",
name: "tickLower",
type: "int24"
},
{
internalType: "int24",
name: "tickUpper",
type: "int24"
},
{
internalType: "uint128",
name: "amount0Requested",
type: "uint128"
},
{
internalType: "uint128",
name: "amount1Requested",
type: "uint128"
}
],
name: "collect",
outputs: [
{
internalType: "uint128",
name: "amount0",
type: "uint128"
},
{
internalType: "uint128",
name: "amount1",
type: "uint128"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint128",
name: "amount0Requested",
type: "uint128"
},
{
internalType: "uint128",
name: "amount1Requested",
type: "uint128"
}
],
name: "collectProtocol",
outputs: [
{
internalType: "uint128",
name: "amount0",
type: "uint128"
},
{
internalType: "uint128",
name: "amount1",
type: "uint128"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "factory",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "fee",
outputs: [
{
internalType: "uint24",
name: "",
type: "uint24"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "feeGrowthGlobal0X128",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "feeGrowthGlobal1X128",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount0",
type: "uint256"
},
{
internalType: "uint256",
name: "amount1",
type: "uint256"
},
{
internalType: "bytes",
name: "data",
type: "bytes"
}
],
name: "flash",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint16",
name: "observationCardinalityNext",
type: "uint16"
}
],
name: "increaseObservationCardinalityNext",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint160",
name: "sqrtPriceX96",
type: "uint160"
}
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "liquidity",
outputs: [
{
internalType: "uint128",
name: "",
type: "uint128"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "maxLiquidityPerTick",
outputs: [
{
internalType: "uint128",
name: "",
type: "uint128"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "int24",
name: "tickLower",
type: "int24"
},
{
internalType: "int24",
name: "tickUpper",
type: "int24"
},
{
internalType: "uint128",
name: "amount",
type: "uint128"
},
{
internalType: "bytes",
name: "data",
type: "bytes"
}
],
name: "mint",
outputs: [
{
internalType: "uint256",
name: "amount0",
type: "uint256"
},
{
internalType: "uint256",
name: "amount1",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "index",
type: "uint256"
}
],
name: "observations",
outputs: [
{
internalType: "uint32",
name: "blockTimestamp",
type: "uint32"
},
{
internalType: "int56",
name: "tickCumulative",
type: "int56"
},
{
internalType: "uint160",
name: "secondsPerLiquidityCumulativeX128",
type: "uint160"
},
{
internalType: "bool",
name: "initialized",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint32[]",
name: "secondsAgos",
type: "uint32[]"
}
],
name: "observe",
outputs: [
{
internalType: "int56[]",
name: "tickCumulatives",
type: "int56[]"
},
{
internalType: "uint160[]",
name: "secondsPerLiquidityCumulativeX128s",
type: "uint160[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "key",
type: "bytes32"
}
],
name: "positions",
outputs: [
{
internalType: "uint128",
name: "_liquidity",
type: "uint128"
},
{
internalType: "uint256",
name: "feeGrowthInside0LastX128",
type: "uint256"
},
{
internalType: "uint256",
name: "feeGrowthInside1LastX128",
type: "uint256"
},
{
internalType: "uint128",
name: "tokensOwed0",
type: "uint128"
},
{
internalType: "uint128",
name: "tokensOwed1",
type: "uint128"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "protocolFees",
outputs: [
{
internalType: "uint128",
name: "token0",
type: "uint128"
},
{
internalType: "uint128",
name: "token1",
type: "uint128"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint8",
name: "feeProtocol0",
type: "uint8"
},
{
internalType: "uint8",
name: "feeProtocol1",
type: "uint8"
}
],
name: "setFeeProtocol",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "slot0",
outputs: [
{
internalType: "uint160",
name: "sqrtPriceX96",
type: "uint160"
},
{
internalType: "int24",
name: "tick",
type: "int24"
},
{
internalType: "uint16",
name: "observationIndex",
type: "uint16"
},
{
internalType: "uint16",
name: "observationCardinality",
type: "uint16"
},
{
internalType: "uint16",
name: "observationCardinalityNext",
type: "uint16"
},
{
internalType: "uint8",
name: "feeProtocol",
type: "uint8"
},
{
internalType: "bool",
name: "unlocked",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "int24",
name: "tickLower",
type: "int24"
},
{
internalType: "int24",
name: "tickUpper",
type: "int24"
}
],
name: "snapshotCumulativesInside",
outputs: [
{
internalType: "int56",
name: "tickCumulativeInside",
type: "int56"
},
{
internalType: "uint160",
name: "secondsPerLiquidityInsideX128",
type: "uint160"
},
{
internalType: "uint32",
name: "secondsInside",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "bool",
name: "zeroForOne",
type: "bool"
},
{
internalType: "int256",
name: "amountSpecified",
type: "int256"
},
{
internalType: "uint160",
name: "sqrtPriceLimitX96",
type: "uint160"
},
{
internalType: "bytes",
name: "data",
type: "bytes"
}
],
name: "swap",
outputs: [
{
internalType: "int256",
name: "amount0",
type: "int256"
},
{
internalType: "int256",
name: "amount1",
type: "int256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "int16",
name: "wordPosition",
type: "int16"
}
],
name: "tickBitmap",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "tickSpacing",
outputs: [
{
internalType: "int24",
name: "",
type: "int24"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "int24",
name: "tick",
type: "int24"
}
],
name: "ticks",
outputs: [
{
internalType: "uint128",
name: "liquidityGross",
type: "uint128"
},
{
internalType: "int128",
name: "liquidityNet",
type: "int128"
},
{
internalType: "uint256",
name: "feeGrowthOutside0X128",
type: "uint256"
},
{
internalType: "uint256",
name: "feeGrowthOutside1X128",
type: "uint256"
},
{
internalType: "int56",
name: "tickCumulativeOutside",
type: "int56"
},
{
internalType: "uint160",
name: "secondsPerLiquidityOutsideX128",
type: "uint160"
},
{
internalType: "uint32",
name: "secondsOutside",
type: "uint32"
},
{
internalType: "bool",
name: "initialized",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "token0",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "token1",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
}
];
class IUniswapV3Pool__factory {
static createInterface() {
return new Interface(_abi$z);
}
static connect(address, runner) {
return new Contract(address, _abi$z, runner);
}
}
IUniswapV3Pool__factory.abi = _abi$z;
var index$o = /*#__PURE__*/Object.freeze({
__proto__: null,
IUniswapV3Factory__factory: IUniswapV3Factory__factory,
IUniswapV3Pool__factory: IUniswapV3Pool__factory,
pool: index$p
});
var index$n = /*#__PURE__*/Object.freeze({
__proto__: null,
interfaces: index$o
});
var index$m = /*#__PURE__*/Object.freeze({
__proto__: null,
contracts: index$n
});
var index$l = /*#__PURE__*/Object.freeze({
__proto__: null,
v3Core: index$m
});
const _abi$y = [
{
inputs: [],
name: "denomination",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "commitment",
type: "bytes32"
}
],
name: "deposit",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [],
name: "token",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes",
name: "proof",
type: "bytes"
},
{
internalType: "bytes32",
name: "root",
type: "bytes32"
},
{
internalType: "bytes32",
name: "nullifierHash",
type: "bytes32"
},
{
internalType: "address payable",
name: "recipient",
type: "address"
},
{
internalType: "address payable",
name: "relayer",
type: "address"
},
{
internalType: "uint256",
name: "fee",
type: "uint256"
},
{
internalType: "uint256",
name: "refund",
type: "uint256"
}
],
name: "withdraw",
outputs: [],
stateMutability: "payable",
type: "function"
}
];
class ITornadoInstance__factory {
static createInterface() {
return new Interface(_abi$y);
}
static connect(address, runner) {
return new Contract(address, _abi$y, runner);
}
}
ITornadoInstance__factory.abi = _abi$y;
var index$k = /*#__PURE__*/Object.freeze({
__proto__: null,
ITornadoInstance__factory: ITornadoInstance__factory
});
const _abi$x = [
{
inputs: [],
name: "decimals",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8"
}
],
stateMutability: "view",
type: "function"
}
];
class IERC20Decimals__factory {
static createInterface() {
return new Interface(_abi$x);
}
static connect(address, runner) {
return new Contract(address, _abi$x, runner);
}
}
IERC20Decimals__factory.abi = _abi$x;
var index$j = /*#__PURE__*/Object.freeze({
__proto__: null,
IERC20Decimals__factory: IERC20Decimals__factory
});
var index$i = /*#__PURE__*/Object.freeze({
__proto__: null,
uniswapV3OracleHelperSol: index$j
});
const _abi$w = [
{
inputs: [],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "text",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "value",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode$n = "0x608060405234801561001057600080fd5b50610278806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80631f1bd692146100465780633fa4f245146100c35780638129fc1c146100dd575b600080fd5b61004e6100e7565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610088578181015183820152602001610070565b50505050905090810190601f1680156100b55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6100cb610174565b60408051918252519081900360200190f35b6100e561017a565b005b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561016c5780601f106101415761010080835404028352916020019161016c565b820191906000526020600020905b81548152906001019060200180831161014f57829003601f168201915b505050505081565b60005481565b600160008190556040805180820190915260058082526464756d6d7960d81b60209092019182526101ac9291906101af565b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106101f057805160ff191683800117855561021d565b8280016001018555821561021d579182015b8281111561021d578251825591602001919060010190610202565b5061022992915061022d565b5090565b5b80821115610229576000815560010161022e56fea26469706673582212204b4d54284aeff9c7c570415da4a9efb9bf7115fe94a322210f9981c1c7ae107a64736f6c634300060c0033";
const isSuperArgs$n = (xs) => xs.length > 1;
class Dummy__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$n(args)) {
super(...args);
} else {
super(_abi$w, _bytecode$n, args[0]);
}
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(overrides || {});
}
deploy(overrides) {
return super.deploy(overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$w);
}
static connect(address, runner) {
return new Contract(address, _abi$w, runner);
}
}
Dummy__factory.bytecode = _bytecode$n;
Dummy__factory.abi = _abi$w;
const _abi$v = [
{
inputs: [],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "text",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "value",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode$m = "0x608060405234801561001057600080fd5b50610278806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80631f1bd692146100465780633fa4f245146100c35780638129fc1c146100dd575b600080fd5b61004e6100e7565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610088578181015183820152602001610070565b50505050905090810190601f1680156100b55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6100cb610174565b60408051918252519081900360200190f35b6100e561017a565b005b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561016c5780601f106101415761010080835404028352916020019161016c565b820191906000526020600020905b81548152906001019060200180831161014f57829003601f168201915b505050505081565b60005481565b600260005560408051808201909152600680825265323ab6b6bc9960d11b60209092019182526101ac916001916101af565b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106101f057805160ff191683800117855561021d565b8280016001018555821561021d579182015b8281111561021d578251825591602001919060010190610202565b5061022992915061022d565b5090565b5b80821115610229576000815560010161022e56fea2646970667358221220056d994e19772e421a19f4bcf8cb09061d5645867c4c352106bf6b809fb5de3664736f6c634300060c0033";
const isSuperArgs$m = (xs) => xs.length > 1;
class DummySecond__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$m(args)) {
super(...args);
} else {
super(_abi$v, _bytecode$m, args[0]);
}
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(overrides || {});
}
deploy(overrides) {
return super.deploy(overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$v);
}
static connect(address, runner) {
return new Contract(address, _abi$v, runner);
}
}
DummySecond__factory.bytecode = _bytecode$m;
DummySecond__factory.abi = _abi$v;
var index$h = /*#__PURE__*/Object.freeze({
__proto__: null,
DummySecond__factory: DummySecond__factory,
Dummy__factory: Dummy__factory
});
const _abi$u = [
{
inputs: [
{
internalType: "uint256",
name: "delay",
type: "uint256"
}
],
name: "setExecutionDelay",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
class IGovernance__factory {
static createInterface() {
return new Interface(_abi$u);
}
static connect(address, runner) {
return new Contract(address, _abi$u, runner);
}
}
IGovernance__factory.abi = _abi$u;
const _abi$t = [
{
inputs: [],
name: "executeProposal",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode$l = "0x608060405234801561001057600080fd5b5060c48061001f6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063373058b814602d575b600080fd5b60336035565b005b6040805163e4917d9f60e01b81526203f48060048201529051309163e4917d9f91602480830192600092919082900301818387803b158015607557600080fd5b505af11580156088573d6000803e3d6000fd5b5050505056fea264697066735822122080cc4a797d58ff69ba6d6a0d2a3849574ef67da2d75c41e66a86d3f6e162209d64736f6c634300060c0033";
const isSuperArgs$l = (xs) => xs.length > 1;
class ProposalStateChangeGovernance__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$l(args)) {
super(...args);
} else {
super(_abi$t, _bytecode$l, args[0]);
}
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(overrides || {});
}
deploy(overrides) {
return super.deploy(overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$t);
}
static connect(address, runner) {
return new Contract(
address,
_abi$t,
runner
);
}
}
ProposalStateChangeGovernance__factory.bytecode = _bytecode$l;
ProposalStateChangeGovernance__factory.abi = _abi$t;
var index$g = /*#__PURE__*/Object.freeze({
__proto__: null,
IGovernance__factory: IGovernance__factory,
ProposalStateChangeGovernance__factory: ProposalStateChangeGovernance__factory
});
const _abi$s = [
{
inputs: [
{
internalType: "address",
name: "newImplementation",
type: "address"
}
],
name: "upgradeTo",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
class IProxy__factory {
static createInterface() {
return new Interface(_abi$s);
}
static connect(address, runner) {
return new Contract(address, _abi$s, runner);
}
}
IProxy__factory.abi = _abi$s;
const _abi$r = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
}
],
name: "Delegated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "x",
type: "uint256"
}
],
name: "Overriden",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "id",
type: "uint256"
},
{
indexed: true,
internalType: "address",
name: "proposer",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "target",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "startTime",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "endTime",
type: "uint256"
},
{
indexed: false,
internalType: "string",
name: "description",
type: "string"
}
],
name: "ProposalCreated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "ProposalExecuted",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
}
],
name: "Undelegated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
indexed: true,
internalType: "address",
name: "voter",
type: "address"
},
{
indexed: true,
internalType: "bool",
name: "support",
type: "bool"
},
{
indexed: false,
internalType: "uint256",
name: "votes",
type: "uint256"
}
],
name: "Voted",
type: "event"
},
{
inputs: [],
name: "CLOSING_PERIOD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "EXECUTION_DELAY",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "EXECUTION_EXPIRATION",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "PROPOSAL_THRESHOLD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "QUORUM_VOTES",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTE_EXTEND_TIME",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTING_DELAY",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTING_PERIOD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "canWithdrawAfter",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address[]",
name: "from",
type: "address[]"
},
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "bool",
name: "support",
type: "bool"
}
],
name: "castDelegatedVote",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "bool",
name: "support",
type: "bool"
}
],
name: "castVote",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
}
],
name: "delegate",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "delegatedTo",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "execute",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "address",
name: "voter",
type: "address"
}
],
name: "getReceipt",
outputs: [
{
components: [
{
internalType: "bool",
name: "hasVoted",
type: "bool"
},
{
internalType: "bool",
name: "support",
type: "bool"
},
{
internalType: "uint256",
name: "votes",
type: "uint256"
}
],
internalType: "struct Governance.Receipt",
name: "",
type: "tuple"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_torn",
type: "address"
}
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "latestProposalIds",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
},
{
internalType: "uint256",
name: "deadline",
type: "uint256"
},
{
internalType: "uint8",
name: "v",
type: "uint8"
},
{
internalType: "bytes32",
name: "r",
type: "bytes32"
},
{
internalType: "bytes32",
name: "s",
type: "bytes32"
}
],
name: "lock",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "lockWithApproval",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "lockedBalance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "newVariable",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "proposalCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "proposals",
outputs: [
{
internalType: "address",
name: "proposer",
type: "address"
},
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "uint256",
name: "startTime",
type: "uint256"
},
{
internalType: "uint256",
name: "endTime",
type: "uint256"
},
{
internalType: "uint256",
name: "forVotes",
type: "uint256"
},
{
internalType: "uint256",
name: "againstVotes",
type: "uint256"
},
{
internalType: "bool",
name: "executed",
type: "bool"
},
{
internalType: "bool",
name: "extended",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "string",
name: "description",
type: "string"
}
],
name: "propose",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address"
},
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "string",
name: "description",
type: "string"
}
],
name: "proposeByDelegate",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "closingPeriod",
type: "uint256"
}
],
name: "setClosingPeriod",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "executionDelay",
type: "uint256"
}
],
name: "setExecutionDelay",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "executionExpiration",
type: "uint256"
}
],
name: "setExecutionExpiration",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalThreshold",
type: "uint256"
}
],
name: "setProposalThreshold",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "quorumVotes",
type: "uint256"
}
],
name: "setQuorumVotes",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "time_",
type: "uint256"
}
],
name: "setTimestamp",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "torna",
type: "address"
}
],
name: "setTorn",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "voteExtendTime",
type: "uint256"
}
],
name: "setVoteExtendTime",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "votingDelay",
type: "uint256"
}
],
name: "setVotingDelay",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "votingPeriod",
type: "uint256"
}
],
name: "setVotingPeriod",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "state",
outputs: [
{
internalType: "enum Governance.ProposalState",
name: "",
type: "uint8"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "time",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "torn",
outputs: [
{
internalType: "contract TORN",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "undelegate",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "unlock",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode$k = "0x6080604052426041553480156200001557600080fd5b50600054610100900460ff168062000032575062000032620000cd565b8062000041575060005460ff16155b620000695760405162461bcd60e51b8152600401620000609062000114565b60405180910390fd5b600054610100900460ff1615801562000095576000805460ff1961ff0019909116610100171660011790555b604080546001600160a01b03191661dead179055620000b3620000d3565b8015620000c6576000805461ff00191690555b5062000162565b303b1590565b6202a3006033556203f480603481905569054b40b1f852bda00000603555683635c9adc5dea00000603655604b603755603855610e10603955615460603a55565b6020808252602e908201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560408201526d195b881a5b9a5d1a585b1a5e995960921b606082015260800190565b6123ac80620001726000396000f3fe60806040526004361061023b5760003560e01c8063a0a2b5731161012e578063ce25d71c116100ab578063e4917d9f1161006f578063e4917d9f14610664578063ea0217cf14610684578063ece40cc1146106a4578063f0b76892146106c4578063fe0d94c1146106e45761023b565b8063ce25d71c146105d8578063d6159fe5146105ed578063d6f0948c14610602578063da35c66414610622578063e23a9a52146106375761023b565b8063b54426c8116100f2578063b54426c814610538578063b5f6a74314610558578063b859f11b14610578578063c0c0e82014610598578063c4d66de8146105b85761023b565b8063a0a2b573146104b9578063a6c26603146104d9578063a72edda3146104ee578063adf898a41461050e578063b1610d7e146105235761023b565b80636198e339116101bc57806370b0f6601161018057806370b0f6601461042f5780638d7a72f31461044f57806392ab89bb146104645780639a9e3b6e146104795780639ae697bf146104995761023b565b80636198e3391461039857806365da1264146103b8578063671dd275146103e55780636a661755146103fa5780636dc2dc6c1461040f5761023b565b806337f135d71161020357806337f135d7146103015780633e4f49e614610316578063587a6ecb1461034357806358e9fff0146103585780635c19a95c146103785761023b565b8063013cf08b1461024057806302ec8f9e1461027d57806315373e3d1461029f57806316ada547146102bf57806317977c61146102e1575b600080fd5b34801561024c57600080fd5b5061026061025b366004611cd6565b6106f7565b604051610274989796959493929190611de5565b60405180910390f35b34801561028957600080fd5b5061029d610298366004611cd6565b61075c565b005b3480156102ab57600080fd5b5061029d6102ba366004611d1a565b610789565b3480156102cb57600080fd5b506102d4610798565b6040516102749190612323565b3480156102ed57600080fd5b506102d46102fc366004611acd565b61079e565b34801561030d57600080fd5b506102d46107b0565b34801561032257600080fd5b50610336610331366004611cd6565b6107b6565b6040516102749190611ea3565b34801561034f57600080fd5b506102d46108f9565b34801561036457600080fd5b506102d4610373366004611ae8565b6108ff565b34801561038457600080fd5b5061029d610393366004611acd565b61094d565b3480156103a457600080fd5b5061029d6103b3366004611cd6565b610a6f565b3480156103c457600080fd5b506103d86103d3366004611acd565b610ba6565b6040516102749190611d94565b3480156103f157600080fd5b506102d4610bc1565b34801561040657600080fd5b506102d4610bc7565b34801561041b57600080fd5b5061029d61042a366004611cd6565b610bcd565b34801561043b57600080fd5b5061029d61044a366004611cd6565b610c12565b34801561045b57600080fd5b506102d4610c36565b34801561047057600080fd5b5061029d610c3c565b34801561048557600080fd5b5061029d610494366004611cd6565b610cc3565b3480156104a557600080fd5b506102d46104b4366004611acd565b610ce7565b3480156104c557600080fd5b5061029d6104d4366004611cd6565b610cf9565b3480156104e557600080fd5b506102d4610cfe565b3480156104fa57600080fd5b506102d4610509366004611acd565b610d04565b34801561051a57600080fd5b506103d8610d16565b34801561052f57600080fd5b506102d4610d25565b34801561054457600080fd5b5061029d610553366004611cd6565b610d2b565b34801561056457600080fd5b5061029d610573366004611acd565b610d35565b34801561058457600080fd5b5061029d610593366004611bf5565b610d57565b3480156105a457600080fd5b5061029d6105b3366004611cd6565b610e0e565b3480156105c457600080fd5b5061029d6105d3366004611acd565b610e32565b3480156105e457600080fd5b506102d4611075565b3480156105f957600080fd5b506102d461107b565b34801561060e57600080fd5b506102d461061d366004611b48565b611081565b34801561062e57600080fd5b506102d4611097565b34801561064357600080fd5b50610657610652366004611cee565b6110a1565b60405161027491906122fe565b34801561067057600080fd5b5061029d61067f366004611cd6565b6111
const isSuperArgs$k = (xs) => xs.length > 1;
class NewImplementation__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$k(args)) {
super(...args);
} else {
super(_abi$r, _bytecode$k, args[0]);
}
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(overrides || {});
}
deploy(overrides) {
return super.deploy(overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$r);
}
static connect(address, runner) {
return new Contract(address, _abi$r, runner);
}
}
NewImplementation__factory.bytecode = _bytecode$k;
NewImplementation__factory.abi = _abi$r;
const _abi$q = [
{
inputs: [
{
internalType: "address",
name: "_newLogic",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
inputs: [],
name: "executeProposal",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "newLogic",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode$j = "0x60a060405234801561001057600080fd5b506040516101da3803806101da83398101604081905261002f91610044565b60601b6001600160601b031916608052610072565b600060208284031215610055578081fd5b81516001600160a01b038116811461006b578182fd5b9392505050565b60805160601c610148610092600039806065528060a252506101486000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806305ccb23e1461003b578063373058b814610059575b600080fd5b610043610063565b60405161005091906100fe565b60405180910390f35b610061610087565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b604051631b2ce7f360e11b81523090633659cfe6906100ca907f0000000000000000000000000000000000000000000000000000000000000000906004016100fe565b600060405180830381600087803b1580156100e457600080fd5b505af11580156100f8573d6000803e3d6000fd5b50505050565b6001600160a01b039190911681526020019056fea26469706673582212207d2c2c988cd8f64fa7efb7ef33cfeee3b01f81a501e4a71ae8a63d6a5e269eb664736f6c634300060c0033";
const isSuperArgs$j = (xs) => xs.length > 1;
class ProposalUpgrade__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$j(args)) {
super(...args);
} else {
super(_abi$q, _bytecode$j, args[0]);
}
}
getDeployTransaction(_newLogic, overrides) {
return super.getDeployTransaction(_newLogic, overrides || {});
}
deploy(_newLogic, overrides) {
return super.deploy(_newLogic, overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$q);
}
static connect(address, runner) {
return new Contract(address, _abi$q, runner);
}
}
ProposalUpgrade__factory.bytecode = _bytecode$j;
ProposalUpgrade__factory.abi = _abi$q;
var index$f = /*#__PURE__*/Object.freeze({
__proto__: null,
IProxy__factory: IProxy__factory,
NewImplementation__factory: NewImplementation__factory,
ProposalUpgrade__factory: ProposalUpgrade__factory
});
const _abi$p = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
}
],
name: "Delegated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "id",
type: "uint256"
},
{
indexed: true,
internalType: "address",
name: "proposer",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "target",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "startTime",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "endTime",
type: "uint256"
},
{
indexed: false,
internalType: "string",
name: "description",
type: "string"
}
],
name: "ProposalCreated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "ProposalExecuted",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
}
],
name: "Undelegated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
indexed: true,
internalType: "address",
name: "voter",
type: "address"
},
{
indexed: true,
internalType: "bool",
name: "support",
type: "bool"
},
{
indexed: false,
internalType: "uint256",
name: "votes",
type: "uint256"
}
],
name: "Voted",
type: "event"
},
{
inputs: [],
name: "CLOSING_PERIOD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "EXECUTION_DELAY",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "EXECUTION_EXPIRATION",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "PROPOSAL_THRESHOLD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "QUORUM_VOTES",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTE_EXTEND_TIME",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTING_DELAY",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTING_PERIOD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "canWithdrawAfter",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address[]",
name: "from",
type: "address[]"
},
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "bool",
name: "support",
type: "bool"
}
],
name: "castDelegatedVote",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "bool",
name: "support",
type: "bool"
}
],
name: "castVote",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
}
],
name: "delegate",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "delegatedTo",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "execute",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "address",
name: "voter",
type: "address"
}
],
name: "getReceipt",
outputs: [
{
components: [
{
internalType: "bool",
name: "hasVoted",
type: "bool"
},
{
internalType: "bool",
name: "support",
type: "bool"
},
{
internalType: "uint256",
name: "votes",
type: "uint256"
}
],
internalType: "struct Governance.Receipt",
name: "",
type: "tuple"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_torn",
type: "address"
}
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "latestProposalIds",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
},
{
internalType: "uint256",
name: "deadline",
type: "uint256"
},
{
internalType: "uint8",
name: "v",
type: "uint8"
},
{
internalType: "bytes32",
name: "r",
type: "bytes32"
},
{
internalType: "bytes32",
name: "s",
type: "bytes32"
}
],
name: "lock",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "lockWithApproval",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "lockedBalance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "proposalCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "proposals",
outputs: [
{
internalType: "address",
name: "proposer",
type: "address"
},
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "uint256",
name: "startTime",
type: "uint256"
},
{
internalType: "uint256",
name: "endTime",
type: "uint256"
},
{
internalType: "uint256",
name: "forVotes",
type: "uint256"
},
{
internalType: "uint256",
name: "againstVotes",
type: "uint256"
},
{
internalType: "bool",
name: "executed",
type: "bool"
},
{
internalType: "bool",
name: "extended",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "string",
name: "description",
type: "string"
}
],
name: "propose",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address"
},
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "string",
name: "description",
type: "string"
}
],
name: "proposeByDelegate",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "closingPeriod",
type: "uint256"
}
],
name: "setClosingPeriod",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "executionDelay",
type: "uint256"
}
],
name: "setExecutionDelay",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "executionExpiration",
type: "uint256"
}
],
name: "setExecutionExpiration",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalThreshold",
type: "uint256"
}
],
name: "setProposalThreshold",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "quorumVotes",
type: "uint256"
}
],
name: "setQuorumVotes",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "time_",
type: "uint256"
}
],
name: "setTimestamp",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "torna",
type: "address"
}
],
name: "setTorn",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "voteExtendTime",
type: "uint256"
}
],
name: "setVoteExtendTime",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "votingDelay",
type: "uint256"
}
],
name: "setVotingDelay",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "votingPeriod",
type: "uint256"
}
],
name: "setVotingPeriod",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "state",
outputs: [
{
internalType: "enum Governance.ProposalState",
name: "",
type: "uint8"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "time",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "torn",
outputs: [
{
internalType: "contract TORN",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "undelegate",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "unlock",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode$i = "0x6080604052426041553480156200001557600080fd5b50600054610100900460ff168062000032575062000032620000cd565b8062000041575060005460ff16155b620000695760405162461bcd60e51b8152600401620000609062000114565b60405180910390fd5b600054610100900460ff1615801562000095576000805460ff1961ff0019909116610100171660011790555b604080546001600160a01b03191661dead179055620000b3620000d3565b8015620000c6576000805461ff00191690555b5062000162565b303b1590565b6202a3006033556203f480603481905569054b40b1f852bda00000603555683635c9adc5dea00000603655604b603755603855610e10603955615460603a55565b6020808252602e908201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560408201526d195b881a5b9a5d1a585b1a5e995960921b606082015260800190565b6125c980620001726000396000f3fe6080604052600436106102305760003560e01c8063a0a2b5731161012e578063ce25d71c116100ab578063e4917d9f1161006f578063e4917d9f14610644578063ea0217cf14610664578063ece40cc114610684578063f0b76892146106a4578063fe0d94c1146106c457610230565b8063ce25d71c146105b8578063d6159fe5146105cd578063d6f0948c146105e2578063da35c66414610602578063e23a9a521461061757610230565b8063b54426c8116100f2578063b54426c814610518578063b5f6a74314610538578063b859f11b14610558578063c0c0e82014610578578063c4d66de81461059857610230565b8063a0a2b57314610499578063a6c26603146104b9578063a72edda3146104ce578063adf898a4146104ee578063b1610d7e1461050357610230565b80635c19a95c116101bc5780636dc2dc6c116101805780636dc2dc6c1461040457806370b0f6601461042457806392ab89bb146104445780639a9e3b6e146104595780639ae697bf1461047957610230565b80635c19a95c1461036d5780636198e3391461038d57806365da1264146103ad578063671dd275146103da5780636a661755146103ef57610230565b806317977c611161020357806317977c61146102d657806337f135d7146102f65780633e4f49e61461030b578063587a6ecb1461033857806358e9fff01461034d57610230565b8063013cf08b1461023557806302ec8f9e1461027257806315373e3d1461029457806316ada547146102b4575b600080fd5b34801561024157600080fd5b50610255610250366004611e01565b6106d7565b604051610269989796959493929190611f0d565b60405180910390f35b34801561027e57600080fd5b5061029261028d366004611e01565b61073c565b005b3480156102a057600080fd5b506102926102af366004611e45565b610769565b3480156102c057600080fd5b506102c9610778565b6040516102699190612510565b3480156102e257600080fd5b506102c96102f1366004611bf8565b61077e565b34801561030257600080fd5b506102c9610790565b34801561031757600080fd5b5061032b610326366004611e01565b610796565b6040516102699190611fcb565b34801561034457600080fd5b506102c96108d9565b34801561035957600080fd5b506102c9610368366004611c13565b6108df565b34801561037957600080fd5b50610292610388366004611bf8565b61092d565b34801561039957600080fd5b506102926103a8366004611e01565b610a4f565b3480156103b957600080fd5b506103cd6103c8366004611bf8565b610b86565b6040516102699190611ebc565b3480156103e657600080fd5b506102c9610ba1565b3480156103fb57600080fd5b506102c9610ba7565b34801561041057600080fd5b5061029261041f366004611e01565b610bad565b34801561043057600080fd5b5061029261043f366004611e01565b610bf2565b34801561045057600080fd5b50610292610c16565b34801561046557600080fd5b50610292610474366004611e01565b610c9d565b34801561048557600080fd5b506102c9610494366004611bf8565b610cc1565b3480156104a557600080fd5b506102926104b4366004611e01565b610cd3565b3480156104c557600080fd5b506102c9610cd8565b3480156104da57600080fd5b506102c96104e9366004611bf8565b610cde565b3480156104fa57600080fd5b506103cd610cf0565b34801561050f57600080fd5b506102c9610cff565b34801561052457600080fd5b50610292610533366004611e01565b610d05565b34801561054457600080fd5b50610292610553366004611bf8565b610d0f565b34801561056457600080fd5b50610292610573366004611d20565b610d31565b34801561058457600080fd5b50610292610593366004611e01565b610de8565b3480156105a457600080fd5b506102926105b3366004611bf8565b610e0c565b3480156105c457600080fd5b506102c961104f565b3480156105d957600080fd5b506102c9611055565b3480156105ee57600080fd5b506102c96105fd366004611c73565b61105b565b34801561060e57600080fd5b506102c9611071565b34801561062357600080fd5b50610637610632366004611e19565b61107b565b60405161026991906124eb565b34801561065057600080fd5b5061029261065f366004611e01565b6110ed565b34801561067057600080fd5b5061029261067f366004611e01565b6111
const isSuperArgs$i = (xs) => xs.length > 1;
class MockGovernance__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$i(args)) {
super(...args);
} else {
super(_abi$p, _bytecode$i, args[0]);
}
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(overrides || {});
}
deploy(overrides) {
return super.deploy(overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$p);
}
static connect(address, runner) {
return new Contract(address, _abi$p, runner);
}
}
MockGovernance__factory.bytecode = _bytecode$i;
MockGovernance__factory.abi = _abi$p;
const _abi$o = [
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "output",
type: "address"
}
],
name: "Debug",
type: "event"
},
{
inputs: [],
name: "executeProposal",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode$h = "0x608060405234801561001057600080fd5b506103d5806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063373058b814610030575b600080fd5b61003861003a565b005b6000604051610048906100fa565b604051809103906000f080158015610064573d6000803e3d6000fd5b509050806001600160a01b0316638129fc1c6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156100a257600080fd5b505af11580156100b6573d6000803e3d6000fd5b5050604080516001600160a01b038516815290517f330da4cde831ccab151372275307c2f0cce2bcce846635cd66e6908f10d203639350908190036020019150a150565b610298806101088339019056fe608060405234801561001057600080fd5b50610278806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80631f1bd692146100465780633fa4f245146100c35780638129fc1c146100dd575b600080fd5b61004e6100e7565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610088578181015183820152602001610070565b50505050905090810190601f1680156100b55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6100cb610174565b60408051918252519081900360200190f35b6100e561017a565b005b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561016c5780601f106101415761010080835404028352916020019161016c565b820191906000526020600020905b81548152906001019060200180831161014f57829003601f168201915b505050505081565b60005481565b600160008190556040805180820190915260058082526464756d6d7960d81b60209092019182526101ac9291906101af565b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106101f057805160ff191683800117855561021d565b8280016001018555821561021d579182015b8281111561021d578251825591602001919060010190610202565b5061022992915061022d565b5090565b5b80821115610229576000815560010161022e56fea26469706673582212204b4d54284aeff9c7c570415da4a9efb9bf7115fe94a322210f9981c1c7ae107a64736f6c634300060c0033a26469706673582212205967b156db23a5fd2372953049f5c366f68a9f95cfa116f9fbd6d0c8e7bdaa6364736f6c634300060c0033";
const isSuperArgs$h = (xs) => xs.length > 1;
class Proposal__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$h(args)) {
super(...args);
} else {
super(_abi$o, _bytecode$h, args[0]);
}
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(overrides || {});
}
deploy(overrides) {
return super.deploy(overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$o);
}
static connect(address, runner) {
return new Contract(address, _abi$o, runner);
}
}
Proposal__factory.bytecode = _bytecode$h;
Proposal__factory.abi = _abi$o;
var index$e = /*#__PURE__*/Object.freeze({
__proto__: null,
MockGovernance__factory: MockGovernance__factory,
Proposal__factory: Proposal__factory,
dummySol: index$h,
proposalStateChangeGovernanceSol: index$g,
proposalUpgradeSol: index$f
});
const _abi$n = [
{
inputs: [],
name: "CLOSING_PERIOD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "EXECUTION_DELAY",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "EXECUTION_EXPIRATION",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "PROPOSAL_THRESHOLD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "QUORUM_VOTES",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTE_EXTEND_TIME",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTING_DELAY",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTING_PERIOD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "closingPeriod",
type: "uint256"
}
],
name: "setClosingPeriod",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "executionDelay",
type: "uint256"
}
],
name: "setExecutionDelay",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "executionExpiration",
type: "uint256"
}
],
name: "setExecutionExpiration",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalThreshold",
type: "uint256"
}
],
name: "setProposalThreshold",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "quorumVotes",
type: "uint256"
}
],
name: "setQuorumVotes",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "voteExtendTime",
type: "uint256"
}
],
name: "setVoteExtendTime",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "votingDelay",
type: "uint256"
}
],
name: "setVotingDelay",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "votingPeriod",
type: "uint256"
}
],
name: "setVotingPeriod",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode$g = "0x608060405234801561001057600080fd5b50610563806100206000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c8063a6c2660311610097578063d6159fe511610066578063d6159fe5146101e2578063e4917d9f146101ea578063ea0217cf14610207578063ece40cc11461022457610100565b8063a6c26603146101ad578063b1610d7e146101b5578063c0c0e820146101bd578063ce25d71c146101da57610100565b80636a661755116100d35780636a6617551461014e5780636dc2dc6c1461015657806370b0f660146101735780639a9e3b6e1461019057610100565b806302ec8f9e1461010557806337f135d714610124578063587a6ecb1461013e578063671dd27514610146575b600080fd5b6101226004803603602081101561011b57600080fd5b5035610241565b005b61012c610288565b60408051918252519081900360200190f35b61012c61028e565b61012c610294565b61012c61029a565b6101226004803603602081101561016c57600080fd5b50356102a0565b6101226004803603602081101561018957600080fd5b5035610327565b610122600480360360208110156101a657600080fd5b503561036e565b61012c6103b5565b61012c6103bb565b610122600480360360208110156101d357600080fd5b50356103c1565b61012c610408565b61012c61040e565b6101226004803603602081101561020057600080fd5b5035610414565b6101226004803603602081101561021d57600080fd5b503561045b565b6101226004803603602081101561023a57600080fd5b50356104a2565b333014610283576040805162461bcd60e51b8152602060048201526018602482015260008051602061050e833981519152604482015290519081900360640190fd5b600255565b60005481565b60075481565b60025481565b60015481565b3330146102e2576040805162461bcd60e51b8152602060048201526018602482015260008051602061050e833981519152604482015290519081900360640190fd5b60005481106103225760405162461bcd60e51b81526004018080602001828103825260248152602001806104ea6024913960400191505060405180910390fd5b600755565b333014610369576040805162461bcd60e51b8152602060048201526018602482015260008051602061050e833981519152604482015290519081900360640190fd5b600455565b3330146103b0576040805162461bcd60e51b8152602060048201526018602482015260008051602061050e833981519152604482015290519081900360640190fd5b600155565b60035481565b60055481565b333014610403576040805162461bcd60e51b8152602060048201526018602482015260008051602061050e833981519152604482015290519081900360640190fd5b600655565b60065481565b60045481565b333014610456576040805162461bcd60e51b8152602060048201526018602482015260008051602061050e833981519152604482015290519081900360640190fd5b600055565b33301461049d576040805162461bcd60e51b8152602060048201526018602482015260008051602061050e833981519152604482015290519081900360640190fd5b600555565b3330146104e4576040805162461bcd60e51b8152602060048201526018602482015260008051602061050e833981519152604482015290519081900360640190fd5b60035556fe476f7665726e616e63653a20696e636f727265637420766f7465457874656e6454696d65476f7665726e616e63653a20756e617574686f72697a65640000000000000000a26469706673582212208fff4d62d622acc801ece8b6a7cc281f67f5959bf09e0ca68afde2a0ab0bc83164736f6c634300060c0033";
const isSuperArgs$g = (xs) => xs.length > 1;
class Configuration__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$g(args)) {
super(...args);
} else {
super(_abi$n, _bytecode$g, args[0]);
}
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(overrides || {});
}
deploy(overrides) {
return super.deploy(overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$n);
}
static connect(address, runner) {
return new Contract(address, _abi$n, runner);
}
}
Configuration__factory.bytecode = _bytecode$g;
Configuration__factory.abi = _abi$n;
const _abi$m = [
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "lockedBalance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
}
];
class Core__factory {
static createInterface() {
return new Interface(_abi$m);
}
static connect(address, runner) {
return new Contract(address, _abi$m, runner);
}
}
Core__factory.abi = _abi$m;
const _abi$l = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
}
],
name: "Delegated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
}
],
name: "Undelegated",
type: "event"
},
{
inputs: [
{
internalType: "address[]",
name: "from",
type: "address[]"
},
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "bool",
name: "support",
type: "bool"
}
],
name: "castDelegatedVote",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
}
],
name: "delegate",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "delegatedTo",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "lockedBalance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address"
},
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "string",
name: "description",
type: "string"
}
],
name: "proposeByDelegate",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "undelegate",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
class Delegation__factory {
static createInterface() {
return new Interface(_abi$l);
}
static connect(address, runner) {
return new Contract(address, _abi$l, runner);
}
}
Delegation__factory.abi = _abi$l;
const _abi$k = [
{
inputs: [],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
}
],
name: "Delegated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "id",
type: "uint256"
},
{
indexed: true,
internalType: "address",
name: "proposer",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "target",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "startTime",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "endTime",
type: "uint256"
},
{
indexed: false,
internalType: "string",
name: "description",
type: "string"
}
],
name: "ProposalCreated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "ProposalExecuted",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
}
],
name: "Undelegated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
indexed: true,
internalType: "address",
name: "voter",
type: "address"
},
{
indexed: true,
internalType: "bool",
name: "support",
type: "bool"
},
{
indexed: false,
internalType: "uint256",
name: "votes",
type: "uint256"
}
],
name: "Voted",
type: "event"
},
{
inputs: [],
name: "CLOSING_PERIOD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "EXECUTION_DELAY",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "EXECUTION_EXPIRATION",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "PROPOSAL_THRESHOLD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "QUORUM_VOTES",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTE_EXTEND_TIME",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTING_DELAY",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTING_PERIOD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "canWithdrawAfter",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address[]",
name: "from",
type: "address[]"
},
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "bool",
name: "support",
type: "bool"
}
],
name: "castDelegatedVote",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "bool",
name: "support",
type: "bool"
}
],
name: "castVote",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
}
],
name: "delegate",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "delegatedTo",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "execute",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "address",
name: "voter",
type: "address"
}
],
name: "getReceipt",
outputs: [
{
components: [
{
internalType: "bool",
name: "hasVoted",
type: "bool"
},
{
internalType: "bool",
name: "support",
type: "bool"
},
{
internalType: "uint256",
name: "votes",
type: "uint256"
}
],
internalType: "struct Governance.Receipt",
name: "",
type: "tuple"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_torn",
type: "address"
}
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "latestProposalIds",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
},
{
internalType: "uint256",
name: "deadline",
type: "uint256"
},
{
internalType: "uint8",
name: "v",
type: "uint8"
},
{
internalType: "bytes32",
name: "r",
type: "bytes32"
},
{
internalType: "bytes32",
name: "s",
type: "bytes32"
}
],
name: "lock",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "lockWithApproval",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "lockedBalance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "proposalCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "proposals",
outputs: [
{
internalType: "address",
name: "proposer",
type: "address"
},
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "uint256",
name: "startTime",
type: "uint256"
},
{
internalType: "uint256",
name: "endTime",
type: "uint256"
},
{
internalType: "uint256",
name: "forVotes",
type: "uint256"
},
{
internalType: "uint256",
name: "againstVotes",
type: "uint256"
},
{
internalType: "bool",
name: "executed",
type: "bool"
},
{
internalType: "bool",
name: "extended",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "string",
name: "description",
type: "string"
}
],
name: "propose",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address"
},
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "string",
name: "description",
type: "string"
}
],
name: "proposeByDelegate",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "closingPeriod",
type: "uint256"
}
],
name: "setClosingPeriod",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "executionDelay",
type: "uint256"
}
],
name: "setExecutionDelay",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "executionExpiration",
type: "uint256"
}
],
name: "setExecutionExpiration",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalThreshold",
type: "uint256"
}
],
name: "setProposalThreshold",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "quorumVotes",
type: "uint256"
}
],
name: "setQuorumVotes",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "voteExtendTime",
type: "uint256"
}
],
name: "setVoteExtendTime",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "votingDelay",
type: "uint256"
}
],
name: "setVotingDelay",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "votingPeriod",
type: "uint256"
}
],
name: "setVotingPeriod",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "state",
outputs: [
{
internalType: "enum Governance.ProposalState",
name: "",
type: "uint8"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "torn",
outputs: [
{
internalType: "contract TORN",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "undelegate",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "unlock",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode$f = "0x60806040523480156200001157600080fd5b50600054610100900460ff16806200002e57506200002e620000c9565b806200003d575060005460ff16155b620000655760405162461bcd60e51b81526004016200005c9062000110565b60405180910390fd5b600054610100900460ff1615801562000091576000805460ff1961ff0019909116610100171660011790555b604080546001600160a01b03191661dead179055620000af620000cf565b8015620000c2576000805461ff00191690555b506200015e565b303b1590565b6202a3006033556203f480603481905569054b40b1f852bda00000603555683635c9adc5dea00000603655604b603755603855610e10603955615460603a55565b6020808252602e908201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560408201526d195b881a5b9a5d1a585b1a5e995960921b606082015260800190565b612524806200016e6000396000f3fe60806040526004361061020f5760003560e01c8063a6c2660311610118578063d6159fe5116100a0578063e4917d9f1161006f578063e4917d9f146105ce578063ea0217cf146105ee578063ece40cc11461060e578063f0b768921461062e578063fe0d94c11461064e5761020f565b8063d6159fe514610557578063d6f0948c1461056c578063da35c6641461058c578063e23a9a52146105a15761020f565b8063b54426c8116100e7578063b54426c8146104c2578063b859f11b146104e2578063c0c0e82014610502578063c4d66de814610522578063ce25d71c146105425761020f565b8063a6c2660314610463578063a72edda314610478578063adf898a414610498578063b1610d7e146104ad5761020f565b80636198e3391161019b5780636dc2dc6c1161016a5780636dc2dc6c146103ce57806370b0f660146103ee57806392ab89bb1461040e5780639a9e3b6e146104235780639ae697bf146104435761020f565b80636198e3391461035757806365da126414610377578063671dd275146103a45780636a661755146103b95761020f565b806337f135d7116101e257806337f135d7146102c05780633e4f49e6146102d5578063587a6ecb1461030257806358e9fff0146103175780635c19a95c146103375761020f565b8063013cf08b1461021457806302ec8f9e1461025157806315373e3d1461027357806317977c6114610293575b600080fd5b34801561022057600080fd5b5061023461022f366004611d5c565b610661565b604051610248989796959493929190611e68565b60405180910390f35b34801561025d57600080fd5b5061027161026c366004611d5c565b6106c6565b005b34801561027f57600080fd5b5061027161028e366004611da0565b6106f3565b34801561029f57600080fd5b506102b36102ae366004611b53565b610702565b604051610248919061246b565b3480156102cc57600080fd5b506102b3610714565b3480156102e157600080fd5b506102f56102f0366004611d5c565b61071a565b6040516102489190611f26565b34801561030e57600080fd5b506102b361085d565b34801561032357600080fd5b506102b3610332366004611b6e565b610863565b34801561034357600080fd5b50610271610352366004611b53565b6108b1565b34801561036357600080fd5b50610271610372366004611d5c565b6109d3565b34801561038357600080fd5b50610397610392366004611b53565b610b0a565b6040516102489190611e17565b3480156103b057600080fd5b506102b3610b25565b3480156103c557600080fd5b506102b3610b2b565b3480156103da57600080fd5b506102716103e9366004611d5c565b610b31565b3480156103fa57600080fd5b50610271610409366004611d5c565b610b76565b34801561041a57600080fd5b50610271610b9a565b34801561042f57600080fd5b5061027161043e366004611d5c565b610c21565b34801561044f57600080fd5b506102b361045e366004611b53565b610c45565b34801561046f57600080fd5b506102b3610c57565b34801561048457600080fd5b506102b3610493366004611b53565b610c5d565b3480156104a457600080fd5b50610397610c6f565b3480156104b957600080fd5b506102b3610c7e565b3480156104ce57600080fd5b506102716104dd366004611d5c565b610c84565b3480156104ee57600080fd5b506102716104fd366004611c7b565b610c8e565b34801561050e57600080fd5b5061027161051d366004611d5c565b610d45565b34801561052e57600080fd5b5061027161053d366004611b53565b610d69565b34801561054e57600080fd5b506102b3610fac565b34801561056357600080fd5b506102b3610fb2565b34801561057857600080fd5b506102b3610587366004611bce565b610fb8565b34801561059857600080fd5b506102b3610fce565b3480156105ad57600080fd5b506105c16105bc366004611d74565b610fd8565b6040516102489190612446565b3480156105da57600080fd5b506102716105e9366004611d5c565b61104a565b3480156105fa57600080fd5b50610271610609366004611d5c565b61106e565b34801561061a57600080fd5b50610271610629366004611d5c565b611092565b34801561063a57600080fd5b50610271610649366004611c1c565b6110b6565b61027161065c366004611d5c565b611136565b603d818154811061066e57fe5b6000918252602090912060089091020180546001820154
const isSuperArgs$f = (xs) => xs.length > 1;
class Governance__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$f(args)) {
super(...args);
} else {
super(_abi$k, _bytecode$f, args[0]);
}
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(overrides || {});
}
deploy(overrides) {
return super.deploy(overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$k);
}
static connect(address, runner) {
return new Contract(address, _abi$k, runner);
}
}
Governance__factory.bytecode = _bytecode$f;
Governance__factory.abi = _abi$k;
var index$d = /*#__PURE__*/Object.freeze({
__proto__: null,
Configuration__factory: Configuration__factory,
Core__factory: Core__factory,
Delegation__factory: Delegation__factory,
Governance__factory: Governance__factory,
mocks: index$e
});
const _abi$j = [
{
inputs: [
{
internalType: "address",
name: "_gasCompensationVault",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
inputs: [],
name: "gasCompensationVault",
outputs: [
{
internalType: "contract IGasCompensationVault",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "_gasCompensationsLimit",
type: "uint256"
}
],
name: "setGasCompensations",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "withdrawFromHelper",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
class GasCompensator__factory {
static createInterface() {
return new Interface(_abi$j);
}
static connect(address, runner) {
return new Contract(address, _abi$j, runner);
}
}
GasCompensator__factory.abi = _abi$j;
const _abi$i = [
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "gasAmount",
type: "uint256"
}
],
name: "compensateGas",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "withdrawToGovernance",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
class IGasCompensationVault__factory {
static createInterface() {
return new Interface(_abi$i);
}
static connect(address, runner) {
return new Contract(
address,
_abi$i,
runner
);
}
}
IGasCompensationVault__factory.abi = _abi$i;
var index$c = /*#__PURE__*/Object.freeze({
__proto__: null,
GasCompensator__factory: GasCompensator__factory,
IGasCompensationVault__factory: IGasCompensationVault__factory
});
const _abi$h = [
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "withdrawTorn",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
class ITornadoVault__factory {
static createInterface() {
return new Interface(_abi$h);
}
static connect(address, runner) {
return new Contract(address, _abi$h, runner);
}
}
ITornadoVault__factory.abi = _abi$h;
var index$b = /*#__PURE__*/Object.freeze({
__proto__: null,
ITornadoVault__factory: ITornadoVault__factory
});
const _abi$g = [
{
inputs: [
{
internalType: "address",
name: "_gasCompLogic",
type: "address"
},
{
internalType: "address",
name: "_userVault",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
}
],
name: "Delegated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "id",
type: "uint256"
},
{
indexed: true,
internalType: "address",
name: "proposer",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "target",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "startTime",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "endTime",
type: "uint256"
},
{
indexed: false,
internalType: "string",
name: "description",
type: "string"
}
],
name: "ProposalCreated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "ProposalExecuted",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
}
],
name: "Undelegated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
indexed: true,
internalType: "address",
name: "voter",
type: "address"
},
{
indexed: true,
internalType: "bool",
name: "support",
type: "bool"
},
{
indexed: false,
internalType: "uint256",
name: "votes",
type: "uint256"
}
],
name: "Voted",
type: "event"
},
{
inputs: [],
name: "CLOSING_PERIOD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "EXECUTION_DELAY",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "EXECUTION_EXPIRATION",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "PROPOSAL_THRESHOLD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "QUORUM_VOTES",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTE_EXTEND_TIME",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTING_DELAY",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTING_PERIOD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "canWithdrawAfter",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address[]",
name: "from",
type: "address[]"
},
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "bool",
name: "support",
type: "bool"
}
],
name: "castDelegatedVote",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "bool",
name: "support",
type: "bool"
}
],
name: "castVote",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "checkIfQuorumReached",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
}
],
name: "delegate",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "delegatedTo",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "execute",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [],
name: "gasCompensationVault",
outputs: [
{
internalType: "contract IGasCompensationVault",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "address",
name: "voter",
type: "address"
}
],
name: "getReceipt",
outputs: [
{
components: [
{
internalType: "bool",
name: "hasVoted",
type: "bool"
},
{
internalType: "bool",
name: "support",
type: "bool"
},
{
internalType: "uint256",
name: "votes",
type: "uint256"
}
],
internalType: "struct Governance.Receipt",
name: "",
type: "tuple"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "hasAccountVoted",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_torn",
type: "address"
}
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "latestProposalIds",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
},
{
internalType: "uint256",
name: "deadline",
type: "uint256"
},
{
internalType: "uint8",
name: "v",
type: "uint8"
},
{
internalType: "bytes32",
name: "r",
type: "bytes32"
},
{
internalType: "bytes32",
name: "s",
type: "bytes32"
}
],
name: "lock",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "lockWithApproval",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "lockedBalance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "proposalCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "proposals",
outputs: [
{
internalType: "address",
name: "proposer",
type: "address"
},
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "uint256",
name: "startTime",
type: "uint256"
},
{
internalType: "uint256",
name: "endTime",
type: "uint256"
},
{
internalType: "uint256",
name: "forVotes",
type: "uint256"
},
{
internalType: "uint256",
name: "againstVotes",
type: "uint256"
},
{
internalType: "bool",
name: "executed",
type: "bool"
},
{
internalType: "bool",
name: "extended",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "string",
name: "description",
type: "string"
}
],
name: "propose",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address"
},
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "string",
name: "description",
type: "string"
}
],
name: "proposeByDelegate",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "returnMultisigAddress",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "pure",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "closingPeriod",
type: "uint256"
}
],
name: "setClosingPeriod",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "executionDelay",
type: "uint256"
}
],
name: "setExecutionDelay",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "executionExpiration",
type: "uint256"
}
],
name: "setExecutionExpiration",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "gasCompensationsLimit",
type: "uint256"
}
],
name: "setGasCompensations",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalThreshold",
type: "uint256"
}
],
name: "setProposalThreshold",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "quorumVotes",
type: "uint256"
}
],
name: "setQuorumVotes",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "voteExtendTime",
type: "uint256"
}
],
name: "setVoteExtendTime",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "votingDelay",
type: "uint256"
}
],
name: "setVotingDelay",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "votingPeriod",
type: "uint256"
}
],
name: "setVotingPeriod",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "state",
outputs: [
{
internalType: "enum Governance.ProposalState",
name: "",
type: "uint8"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "torn",
outputs: [
{
internalType: "contract TORN",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "undelegate",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "unlock",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "userVault",
outputs: [
{
internalType: "contract ITornadoVault",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "version",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "pure",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "withdrawFromHelper",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
stateMutability: "payable",
type: "receive"
}
];
const _bytecode$e = "0x60c06040523480156200001157600080fd5b5060405162002e3138038062002e31833981016040819052620000349162000153565b60005482908290610100900460ff1680620000545750620000546200010c565b8062000063575060005460ff16155b6200008b5760405162461bcd60e51b8152600401620000829062000191565b60405180910390fd5b600054610100900460ff16158015620000b7576000805460ff1961ff0019909116610100171660011790555b604080546001600160a01b03191661dead179055620000d562000112565b8015620000e8576000805461ff00191690555b506001600160601b0319606091821b811660805291901b1660a05250620001f89050565b303b1590565b6202a3006033556203f480603481905569054b40b1f852bda00000603555683635c9adc5dea00000603655604b603755603855610e10603955615460603a55565b6000806040838503121562000166578182fd5b82516200017381620001df565b60208401519092506200018681620001df565b809150509250929050565b6020808252602e908201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560408201526d195b881a5b9a5d1a585b1a5e995960921b606082015260800190565b6001600160a01b0381168114620001f557600080fd5b50565b60805160601c60a05160601c612bf162000240600039806108c55280610e525280610f4a52806114505280611ee1525080610d545280610fb75280611cf75250612bf16000f3fe60806040526004361061026b5760003560e01c80639ae697bf11610144578063d6159fe5116100b6578063e525aa081161007a578063e525aa08146106ff578063ea0217cf1461071f578063ece40cc11461073f578063ef3f8bb11461075f578063f0b768921461077f578063fe0d94c11461079f57610272565b8063d6159fe514610668578063d6f0948c1461067d578063da35c6641461069d578063e23a9a52146106b2578063e4917d9f146106df57610272565b8063b1610d7e11610108578063b1610d7e146105be578063b54426c8146105d3578063b859f11b146105f3578063c0c0e82014610613578063c4d66de814610633578063ce25d71c1461065357610272565b80639ae697bf1461053f5780639daafec71461055f578063a6c2660314610574578063a72edda314610589578063adf898a4146105a957610272565b80635c19a95c116101dd5780636dc2dc6c116101a15780636dc2dc6c1461049557806370b0f660146104b55780638b34a960146104d557806392ab89bb146104ea578063932d5157146104ff5780639a9e3b6e1461051f57610272565b80635c19a95c1461040b5780636198e3391461042b57806365da12641461044b578063671dd2751461046b5780636a6617551461048057610272565b806332687ec11161022f57806332687ec11461034557806337f135d7146103725780633e4f49e61461038757806354fd4d50146103b4578063587a6ecb146103d657806358e9fff0146103eb57610272565b8063013cf08b1461027757806302ec8f9e146102b457806315373e3d146102d657806317977c61146102f657806324b0435f1461032357610272565b3661027257005b600080fd5b34801561028357600080fd5b506102976102923660046123c5565b6107b2565b6040516102ab9897969594939291906124d1565b60405180910390f35b3480156102c057600080fd5b506102d46102cf3660046123c5565b610817565b005b3480156102e257600080fd5b506102d46102f1366004612409565b610844565b34801561030257600080fd5b506103166103113660046121bc565b610947565b6040516102ab9190612b38565b34801561032f57600080fd5b50610338610959565b6040516102ab9190612480565b34801561035157600080fd5b506103656103603660046123c5565b610971565b6040516102ab919061258f565b34801561037e57600080fd5b506103166109bf565b34801561039357600080fd5b506103a76103a23660046123c5565b6109c5565b6040516102ab919061259a565b3480156103c057600080fd5b506103c9610b01565b6040516102ab91906125ae565b3480156103e257600080fd5b50610316610b38565b3480156103f757600080fd5b506103166104063660046121d7565b610b3e565b34801561041757600080fd5b506102d46104263660046121bc565b610b8c565b34801561043757600080fd5b506102d46104463660046123c5565b610cae565b34801561045757600080fd5b506103386104663660046121bc565b610dc0565b34801561047757600080fd5b50610316610ddb565b34801561048c57600080fd5b50610316610de1565b3480156104a157600080fd5b506102d46104b03660046123c5565b610de7565b3480156104c157600080fd5b506102d46104d03660046123c5565b610e2c565b3480156104e157600080fd5b50610338610e50565b3480156104f657600080fd5b506102d4610e74565b34801561050b57600080fd5b506102d461051a3660046123c5565b610efb565b34801561052b57600080fd5b506102d461053a3660046123c5565b610f7f565b34801561054b57600080fd5b5061031661055a3660046121bc565b610fa3565b34801561056b57600080fd5b50610338610fb5565b34801561058057600080fd5b50610316610fd9565b34801561059557600080fd5b506103166105a43660046121bc565b610fdf565b3480156105b557600080
const isSuperArgs$e = (xs) => xs.length > 1;
class GovernanceGasUpgrade__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$e(args)) {
super(...args);
} else {
super(_abi$g, _bytecode$e, args[0]);
}
}
getDeployTransaction(_gasCompLogic, _userVault, overrides) {
return super.getDeployTransaction(
_gasCompLogic,
_userVault,
overrides || {}
);
}
deploy(_gasCompLogic, _userVault, overrides) {
return super.deploy(_gasCompLogic, _userVault, overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$g);
}
static connect(address, runner) {
return new Contract(
address,
_abi$g,
runner
);
}
}
GovernanceGasUpgrade__factory.bytecode = _bytecode$e;
GovernanceGasUpgrade__factory.abi = _abi$g;
const _abi$f = [
{
inputs: [
{
internalType: "address",
name: "_userVault",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
}
],
name: "Delegated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "id",
type: "uint256"
},
{
indexed: true,
internalType: "address",
name: "proposer",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "target",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "startTime",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "endTime",
type: "uint256"
},
{
indexed: false,
internalType: "string",
name: "description",
type: "string"
}
],
name: "ProposalCreated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "ProposalExecuted",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
}
],
name: "Undelegated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
indexed: true,
internalType: "address",
name: "voter",
type: "address"
},
{
indexed: true,
internalType: "bool",
name: "support",
type: "bool"
},
{
indexed: false,
internalType: "uint256",
name: "votes",
type: "uint256"
}
],
name: "Voted",
type: "event"
},
{
inputs: [],
name: "CLOSING_PERIOD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "EXECUTION_DELAY",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "EXECUTION_EXPIRATION",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "PROPOSAL_THRESHOLD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "QUORUM_VOTES",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTE_EXTEND_TIME",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTING_DELAY",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTING_PERIOD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "canWithdrawAfter",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address[]",
name: "from",
type: "address[]"
},
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "bool",
name: "support",
type: "bool"
}
],
name: "castDelegatedVote",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "bool",
name: "support",
type: "bool"
}
],
name: "castVote",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
}
],
name: "delegate",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "delegatedTo",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "execute",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "address",
name: "voter",
type: "address"
}
],
name: "getReceipt",
outputs: [
{
components: [
{
internalType: "bool",
name: "hasVoted",
type: "bool"
},
{
internalType: "bool",
name: "support",
type: "bool"
},
{
internalType: "uint256",
name: "votes",
type: "uint256"
}
],
internalType: "struct Governance.Receipt",
name: "",
type: "tuple"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_torn",
type: "address"
}
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "latestProposalIds",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
},
{
internalType: "uint256",
name: "deadline",
type: "uint256"
},
{
internalType: "uint8",
name: "v",
type: "uint8"
},
{
internalType: "bytes32",
name: "r",
type: "bytes32"
},
{
internalType: "bytes32",
name: "s",
type: "bytes32"
}
],
name: "lock",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "lockWithApproval",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "lockedBalance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "proposalCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "proposals",
outputs: [
{
internalType: "address",
name: "proposer",
type: "address"
},
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "uint256",
name: "startTime",
type: "uint256"
},
{
internalType: "uint256",
name: "endTime",
type: "uint256"
},
{
internalType: "uint256",
name: "forVotes",
type: "uint256"
},
{
internalType: "uint256",
name: "againstVotes",
type: "uint256"
},
{
internalType: "bool",
name: "executed",
type: "bool"
},
{
internalType: "bool",
name: "extended",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "string",
name: "description",
type: "string"
}
],
name: "propose",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address"
},
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "string",
name: "description",
type: "string"
}
],
name: "proposeByDelegate",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "closingPeriod",
type: "uint256"
}
],
name: "setClosingPeriod",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "executionDelay",
type: "uint256"
}
],
name: "setExecutionDelay",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "executionExpiration",
type: "uint256"
}
],
name: "setExecutionExpiration",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalThreshold",
type: "uint256"
}
],
name: "setProposalThreshold",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "quorumVotes",
type: "uint256"
}
],
name: "setQuorumVotes",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "voteExtendTime",
type: "uint256"
}
],
name: "setVoteExtendTime",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "votingDelay",
type: "uint256"
}
],
name: "setVotingDelay",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "votingPeriod",
type: "uint256"
}
],
name: "setVotingPeriod",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "state",
outputs: [
{
internalType: "enum Governance.ProposalState",
name: "",
type: "uint8"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "torn",
outputs: [
{
internalType: "contract TORN",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "undelegate",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "unlock",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "userVault",
outputs: [
{
internalType: "contract ITornadoVault",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "version",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "pure",
type: "function"
}
];
const _bytecode$d = "0x60a06040523480156200001157600080fd5b506040516200277e3803806200277e833981016040819052620000349162000142565b600054610100900460ff168062000050575062000050620000fb565b806200005f575060005460ff16155b620000875760405162461bcd60e51b81526004016200007e9062000172565b60405180910390fd5b600054610100900460ff16158015620000b3576000805460ff1961ff0019909116610100171660011790555b604080546001600160a01b03191661dead179055620000d162000101565b8015620000e4576000805461ff00191690555b5060601b6001600160601b031916608052620001c0565b303b1590565b6202a3006033556203f480603481905569054b40b1f852bda00000603555683635c9adc5dea00000603655604b603755603855610e10603955615460603a55565b60006020828403121562000154578081fd5b81516001600160a01b03811681146200016b578182fd5b9392505050565b6020808252602e908201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560408201526d195b881a5b9a5d1a585b1a5e995960921b606082015260800190565b60805160601c612596620001e860003980610af15280610cb3528061194752506125966000f3fe6080604052600436106102255760003560e01c80639daafec711610123578063ce25d71c116100ab578063e4917d9f1161006f578063e4917d9f1461061b578063ea0217cf1461063b578063ece40cc11461065b578063f0b768921461067b578063fe0d94c11461069b57610225565b8063ce25d71c1461058f578063d6159fe5146105a4578063d6f0948c146105b9578063da35c664146105d9578063e23a9a52146105ee57610225565b8063b1610d7e116100f2578063b1610d7e146104fa578063b54426c81461050f578063b859f11b1461052f578063c0c0e8201461054f578063c4d66de81461056f57610225565b80639daafec71461049b578063a6c26603146104b0578063a72edda3146104c5578063adf898a4146104e557610225565b80635c19a95c116101b15780636dc2dc6c116101755780636dc2dc6c1461040657806370b0f6601461042657806392ab89bb146104465780639a9e3b6e1461045b5780639ae697bf1461047b57610225565b80635c19a95c1461036f5780636198e3391461038f57806365da1264146103af578063671dd275146103dc5780636a661755146103f157610225565b806337f135d7116101f857806337f135d7146102d65780633e4f49e6146102eb57806354fd4d5014610318578063587a6ecb1461033a57806358e9fff01461034f57610225565b8063013cf08b1461022a57806302ec8f9e1461026757806315373e3d1461028957806317977c61146102a9575b600080fd5b34801561023657600080fd5b5061024a610245366004611dfd565b6106ae565b60405161025e989796959493929190611f09565b60405180910390f35b34801561027357600080fd5b50610287610282366004611dfd565b610713565b005b34801561029557600080fd5b506102876102a4366004611e41565b610740565b3480156102b557600080fd5b506102c96102c4366004611bf4565b61074f565b60405161025e91906124dd565b3480156102e257600080fd5b506102c9610761565b3480156102f757600080fd5b5061030b610306366004611dfd565b610767565b60405161025e9190611fc7565b34801561032457600080fd5b5061032d6108aa565b60405161025e9190611fdb565b34801561034657600080fd5b506102c96108d5565b34801561035b57600080fd5b506102c961036a366004611c0f565b6108db565b34801561037b57600080fd5b5061028761038a366004611bf4565b610929565b34801561039b57600080fd5b506102876103aa366004611dfd565b610a4b565b3480156103bb57600080fd5b506103cf6103ca366004611bf4565b610b64565b60405161025e9190611eb8565b3480156103e857600080fd5b506102c9610b7f565b3480156103fd57600080fd5b506102c9610b85565b34801561041257600080fd5b50610287610421366004611dfd565b610b8b565b34801561043257600080fd5b50610287610441366004611dfd565b610bd0565b34801561045257600080fd5b50610287610bf4565b34801561046757600080fd5b50610287610476366004611dfd565b610c7b565b34801561048757600080fd5b506102c9610496366004611bf4565b610c9f565b3480156104a757600080fd5b506103cf610cb1565b3480156104bc57600080fd5b506102c9610cd5565b3480156104d157600080fd5b506102c96104e0366004611bf4565b610cdb565b3480156104f157600080fd5b506103cf610ced565b34801561050657600080fd5b506102c9610cfc565b34801561051b57600080fd5b5061028761052a366004611dfd565b610d02565b34801561053b57600080fd5b5061028761054a366004611d1c565b610d0f565b34801561055b57600080fd5b5061028761056a366004611dfd565b610dc6565b34801561057b57600080fd5b5061028761058a366004611bf4565b610dea565b34801561059b57600080fd5b506102c961102d565b3480156105b057600080fd5b506102c9611033565b3480156105c557600080fd5b506102c96105d4366004611c6f565b611039565b3480156105e557600080fd5b506102c961104f565b3480156105fa57600080fd5b5061060e610609366004611e15565b6110
const isSuperArgs$d = (xs) => xs.length > 1;
class GovernanceVaultUpgrade__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$d(args)) {
super(...args);
} else {
super(_abi$f, _bytecode$d, args[0]);
}
}
getDeployTransaction(_userVault, overrides) {
return super.getDeployTransaction(_userVault, overrides || {});
}
deploy(_userVault, overrides) {
return super.deploy(_userVault, overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$f);
}
static connect(address, runner) {
return new Contract(
address,
_abi$f,
runner
);
}
}
GovernanceVaultUpgrade__factory.bytecode = _bytecode$d;
GovernanceVaultUpgrade__factory.abi = _abi$f;
var index$a = /*#__PURE__*/Object.freeze({
__proto__: null,
GovernanceGasUpgrade__factory: GovernanceGasUpgrade__factory,
GovernanceVaultUpgrade__factory: GovernanceVaultUpgrade__factory,
gasCompensatorSol: index$c,
interfaces: index$b
});
const _abi$e = [
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
},
{
internalType: "uint256",
name: "amountLockedBeforehand",
type: "uint256"
}
],
name: "updateRewardsOnLockedBalanceChange",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
class ITornadoStakingRewards__factory {
static createInterface() {
return new Interface(_abi$e);
}
static connect(address, runner) {
return new Contract(
address,
_abi$e,
runner
);
}
}
ITornadoStakingRewards__factory.abi = _abi$e;
var index$9 = /*#__PURE__*/Object.freeze({
__proto__: null,
ITornadoStakingRewards__factory: ITornadoStakingRewards__factory
});
const _abi$d = [
{
inputs: [
{
internalType: "address",
name: "stakingRewardsAddress",
type: "address"
},
{
internalType: "address",
name: "gasCompLogic",
type: "address"
},
{
internalType: "address",
name: "userVaultAddress",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
}
],
name: "Delegated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "id",
type: "uint256"
},
{
indexed: true,
internalType: "address",
name: "proposer",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "target",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "startTime",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "endTime",
type: "uint256"
},
{
indexed: false,
internalType: "string",
name: "description",
type: "string"
}
],
name: "ProposalCreated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "ProposalExecuted",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "bytes",
name: "errorData",
type: "bytes"
}
],
name: "RewardUpdateFailed",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
}
],
name: "RewardUpdateSuccessful",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
}
],
name: "Undelegated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
indexed: true,
internalType: "address",
name: "voter",
type: "address"
},
{
indexed: true,
internalType: "bool",
name: "support",
type: "bool"
},
{
indexed: false,
internalType: "uint256",
name: "votes",
type: "uint256"
}
],
name: "Voted",
type: "event"
},
{
inputs: [],
name: "CLOSING_PERIOD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "EXECUTION_DELAY",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "EXECUTION_EXPIRATION",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "PROPOSAL_THRESHOLD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "QUORUM_VOTES",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "Staking",
outputs: [
{
internalType: "contract ITornadoStakingRewards",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTE_EXTEND_TIME",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTING_DELAY",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTING_PERIOD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "canWithdrawAfter",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address[]",
name: "from",
type: "address[]"
},
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "bool",
name: "support",
type: "bool"
}
],
name: "castDelegatedVote",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "bool",
name: "support",
type: "bool"
}
],
name: "castVote",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "checkIfQuorumReached",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
}
],
name: "delegate",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "delegatedTo",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "execute",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [],
name: "gasCompensationVault",
outputs: [
{
internalType: "contract IGasCompensationVault",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "address",
name: "voter",
type: "address"
}
],
name: "getReceipt",
outputs: [
{
components: [
{
internalType: "bool",
name: "hasVoted",
type: "bool"
},
{
internalType: "bool",
name: "support",
type: "bool"
},
{
internalType: "uint256",
name: "votes",
type: "uint256"
}
],
internalType: "struct Governance.Receipt",
name: "",
type: "tuple"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "hasAccountVoted",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_torn",
type: "address"
}
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "latestProposalIds",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
},
{
internalType: "uint256",
name: "deadline",
type: "uint256"
},
{
internalType: "uint8",
name: "v",
type: "uint8"
},
{
internalType: "bytes32",
name: "r",
type: "bytes32"
},
{
internalType: "bytes32",
name: "s",
type: "bytes32"
}
],
name: "lock",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "lockWithApproval",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "lockedBalance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "proposalCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "proposals",
outputs: [
{
internalType: "address",
name: "proposer",
type: "address"
},
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "uint256",
name: "startTime",
type: "uint256"
},
{
internalType: "uint256",
name: "endTime",
type: "uint256"
},
{
internalType: "uint256",
name: "forVotes",
type: "uint256"
},
{
internalType: "uint256",
name: "againstVotes",
type: "uint256"
},
{
internalType: "bool",
name: "executed",
type: "bool"
},
{
internalType: "bool",
name: "extended",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "string",
name: "description",
type: "string"
}
],
name: "propose",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address"
},
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "string",
name: "description",
type: "string"
}
],
name: "proposeByDelegate",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "returnMultisigAddress",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "pure",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "closingPeriod",
type: "uint256"
}
],
name: "setClosingPeriod",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "executionDelay",
type: "uint256"
}
],
name: "setExecutionDelay",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "executionExpiration",
type: "uint256"
}
],
name: "setExecutionExpiration",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "gasCompensationsLimit",
type: "uint256"
}
],
name: "setGasCompensations",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalThreshold",
type: "uint256"
}
],
name: "setProposalThreshold",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "quorumVotes",
type: "uint256"
}
],
name: "setQuorumVotes",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "voteExtendTime",
type: "uint256"
}
],
name: "setVoteExtendTime",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "votingDelay",
type: "uint256"
}
],
name: "setVotingDelay",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "votingPeriod",
type: "uint256"
}
],
name: "setVotingPeriod",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "state",
outputs: [
{
internalType: "enum Governance.ProposalState",
name: "",
type: "uint8"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "torn",
outputs: [
{
internalType: "contract TORN",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "undelegate",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "unlock",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "userVault",
outputs: [
{
internalType: "contract ITornadoVault",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "version",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "pure",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "withdrawFromHelper",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
stateMutability: "payable",
type: "receive"
}
];
const _bytecode$c = "0x60e06040523480156200001157600080fd5b50604051620032a6380380620032a6833981016040819052620000349162000165565b81818181600060019054906101000a900460ff1680620000595750620000596200011e565b8062000068575060005460ff16155b620000905760405162461bcd60e51b81526004016200008790620001b8565b60405180910390fd5b600054610100900460ff16158015620000bc576000805460ff1961ff0019909116610100171660011790555b604080546001600160a01b03191661dead179055620000da62000124565b8015620000ed576000805461ff00191690555b506001600160601b0319606091821b811660805291811b821660a0529590951b90941660c052506200021f92505050565b303b1590565b6202a3006033556203f480603481905569054b40b1f852bda00000603555683635c9adc5dea00000603655604b603755603855610e10603955615460603a55565b6000806000606084860312156200017a578283fd5b8351620001878162000206565b60208501519093506200019a8162000206565b6040850151909250620001ad8162000206565b809150509250925092565b6020808252602e908201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560408201526d195b881a5b9a5d1a585b1a5e995960921b606082015260800190565b6001600160a01b03811681146200021c57600080fd5b50565b60805160601c60a05160601c60c05160601c6130246200028260003980610cf652806110b7528061169852806117c95250806108e55280610ead5280610fa552806116145280612164525080611040528061200d528061240e52506130246000f3fe6080604052600436106102765760003560e01c80639ae697bf1161014f578063d6159fe5116100c1578063ea0217cf1161007a578063ea0217cf1461072a578063ece40cc11461074a578063ef3f8bb11461076a578063f0b768921461078a578063f57df22e146107aa578063fe0d94c1146107bf5761027d565b8063d6159fe514610673578063d6f0948c14610688578063da35c664146106a8578063e23a9a52146106bd578063e4917d9f146106ea578063e525aa081461070a5761027d565b8063b1610d7e11610113578063b1610d7e146105c9578063b54426c8146105de578063b859f11b146105fe578063c0c0e8201461061e578063c4d66de81461063e578063ce25d71c1461065e5761027d565b80639ae697bf1461054a5780639daafec71461056a578063a6c266031461057f578063a72edda314610594578063adf898a4146105b45761027d565b80635c19a95c116101e85780636dc2dc6c116101ac5780636dc2dc6c146104a057806370b0f660146104c05780638b34a960146104e057806392ab89bb146104f5578063932d51571461050a5780639a9e3b6e1461052a5761027d565b80635c19a95c146104165780636198e3391461043657806365da126414610456578063671dd275146104765780636a6617551461048b5761027d565b806332687ec11161023a57806332687ec11461035057806337f135d71461037d5780633e4f49e61461039257806354fd4d50146103bf578063587a6ecb146103e157806358e9fff0146103f65761027d565b8063013cf08b1461028257806302ec8f9e146102bf57806315373e3d146102e157806317977c611461030157806324b0435f1461032e5761027d565b3661027d57005b600080fd5b34801561028e57600080fd5b506102a261029d3660046127f8565b6107d2565b6040516102b6989796959493929190612904565b60405180910390f35b3480156102cb57600080fd5b506102df6102da3660046127f8565b610837565b005b3480156102ed57600080fd5b506102df6102fc36600461283c565b610864565b34801561030d57600080fd5b5061032161031c3660046125ef565b610967565b6040516102b69190612f6b565b34801561033a57600080fd5b50610343610979565b6040516102b691906128b3565b34801561035c57600080fd5b5061037061036b3660046127f8565b610991565b6040516102b691906129c2565b34801561038957600080fd5b506103216109df565b34801561039e57600080fd5b506103b26103ad3660046127f8565b6109e5565b6040516102b691906129cd565b3480156103cb57600080fd5b506103d4610b21565b6040516102b691906129e1565b3480156103ed57600080fd5b50610321610b58565b34801561040257600080fd5b5061032161041136600461260a565b610b5e565b34801561042257600080fd5b506102df6104313660046125ef565b610bac565b34801561044257600080fd5b506102df6104513660046127f8565b610cce565b34801561046257600080fd5b506103436104713660046125ef565b610e1b565b34801561048257600080fd5b50610321610e36565b34801561049757600080fd5b50610321610e3c565b3480156104ac57600080fd5b506102df6104bb3660046127f8565b610e42565b3480156104cc57600080fd5b506102df6104db3660046127f8565b610e87565b3480156104ec57600080fd5b50610343610eab565b34801561050157600080fd5b506102df610ecf565b34801561051657600080fd5b506102df6105253660046127f8565b610f56565b34801561053657600080fd5b506102df6105453660046127f8565b611008565b34801561055657600080fd5b506103216105653660046125ef565b61102c565b34801561057657
const isSuperArgs$c = (xs) => xs.length > 1;
class GovernanceStakingUpgrade__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$c(args)) {
super(...args);
} else {
super(_abi$d, _bytecode$c, args[0]);
}
}
getDeployTransaction(stakingRewardsAddress, gasCompLogic, userVaultAddress, overrides) {
return super.getDeployTransaction(
stakingRewardsAddress,
gasCompLogic,
userVaultAddress,
overrides || {}
);
}
deploy(stakingRewardsAddress, gasCompLogic, userVaultAddress, overrides) {
return super.deploy(
stakingRewardsAddress,
gasCompLogic,
userVaultAddress,
overrides || {}
);
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$d);
}
static connect(address, runner) {
return new Contract(
address,
_abi$d,
runner
);
}
}
GovernanceStakingUpgrade__factory.bytecode = _bytecode$c;
GovernanceStakingUpgrade__factory.abi = _abi$d;
var index$8 = /*#__PURE__*/Object.freeze({
__proto__: null,
GovernanceStakingUpgrade__factory: GovernanceStakingUpgrade__factory,
interfaces: index$9
});
const _abi$c = [
{
inputs: [
{
internalType: "bytes32",
name: "salt",
type: "bytes32"
},
{
internalType: "address",
name: "implementationContract",
type: "address"
},
{
internalType: "bytes",
name: "metamorphicContractInitializationCalldata",
type: "bytes"
}
],
name: "deployMetamorphicContractFromExistingImplementation",
outputs: [
{
internalType: "address",
name: "metamorphicContractAddress",
type: "address"
}
],
stateMutability: "payable",
type: "function"
},
{
inputs: [
{
internalType: "bytes32",
name: "salt",
type: "bytes32"
}
],
name: "findMetamorphicContractAddress",
outputs: [
{
internalType: "address",
name: "metamorphicContractAddress",
type: "address"
}
],
stateMutability: "view",
type: "function"
}
];
class IMetamorphicContractFactory__factory {
static createInterface() {
return new Interface(_abi$c);
}
static connect(address, runner) {
return new Contract(
address,
_abi$c,
runner
);
}
}
IMetamorphicContractFactory__factory.abi = _abi$c;
var index$7 = /*#__PURE__*/Object.freeze({
__proto__: null,
IMetamorphicContractFactory__factory: IMetamorphicContractFactory__factory
});
const _abi$b = [
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "num",
type: "uint256"
}
],
name: "MockExecuted",
type: "event"
},
{
inputs: [],
name: "emergencyStop",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "executeProposal",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode$b = "0x608060405234801561001057600080fd5b5060c08061001f6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c8063373058b814603757806363a599a414603f575b600080fd5b603d6045565b005b603d607d565b7f2ff532ec74fd1130db9b7b6800e0992b2363095b00331a891a27edfab97c45406001604051607391906081565b60405180910390a1565b6000ff5b9081526020019056fea264697066735822122018779fa63005d6573862657b4a5cd55f75b705b28a7ff69222461665b78f408a64736f6c634300060c0033";
const isSuperArgs$b = (xs) => xs.length > 1;
class InitialProposal__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$b(args)) {
super(...args);
} else {
super(_abi$b, _bytecode$b, args[0]);
}
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(overrides || {});
}
deploy(overrides) {
return super.deploy(overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$b);
}
static connect(address, runner) {
return new Contract(address, _abi$b, runner);
}
}
InitialProposal__factory.bytecode = _bytecode$b;
InitialProposal__factory.abi = _abi$b;
const _abi$a = [
{
inputs: [],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "num",
type: "uint256"
}
],
name: "MockExecuted",
type: "event"
},
{
inputs: [],
name: "deployer",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "emergencyStop",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "executeProposal",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode$a = "0x60a060405234801561001057600080fd5b5033606081901b6080526102746100366000398061012952806101b052506102746000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c8063373058b81461004657806363a599a414610050578063d5f3948814610058575b600080fd5b61004e610076565b005b61004e6101aa565b6100606101ae565b60405161006d9190610211565b60405180910390f35b6040516370a0823160e01b81527377777feddddffc19ff86db637967013e6c6a116c9060009082906370a08231906100b2903090600401610211565b60206040518083038186803b1580156100ca57600080fd5b505afa1580156100de573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061010291906101f9565b60405163a9059cbb60e01b81529091506001600160a01b0383169063a9059cbb90610153907f0000000000000000000000000000000000000000000000000000000000000000908590600401610225565b602060405180830381600087803b15801561016d57600080fd5b505af1158015610181573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101a591906101d2565b505050565b6000ff5b7f000000000000000000000000000000000000000000000000000000000000000081565b6000602082840312156101e3578081fd5b815180151581146101f2578182fd5b9392505050565b60006020828403121561020a578081fd5b5051919050565b6001600160a01b0391909116815260200190565b6001600160a01b0392909216825260208201526040019056fea2646970667358221220c120adf2a3856eb39e4d2305abf19175fb5f11d87cd96e5c70ce2a9f702ba53664736f6c634300060c0033";
const isSuperArgs$a = (xs) => xs.length > 1;
class MaliciousProposal__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$a(args)) {
super(...args);
} else {
super(_abi$a, _bytecode$a, args[0]);
}
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(overrides || {});
}
deploy(overrides) {
return super.deploy(overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$a);
}
static connect(address, runner) {
return new Contract(address, _abi$a, runner);
}
}
MaliciousProposal__factory.bytecode = _bytecode$a;
MaliciousProposal__factory.abi = _abi$a;
var index$6 = /*#__PURE__*/Object.freeze({
__proto__: null,
InitialProposal__factory: InitialProposal__factory,
MaliciousProposal__factory: MaliciousProposal__factory
});
var index$5 = /*#__PURE__*/Object.freeze({
__proto__: null,
mockProposalsSol: index$6
});
const _abi$9 = [
{
inputs: [
{
internalType: "address",
name: "_logic",
type: "address"
},
{
internalType: "address",
name: "_admin",
type: "address"
},
{
internalType: "bytes",
name: "_data",
type: "bytes"
}
],
stateMutability: "payable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "previousAdmin",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "newAdmin",
type: "address"
}
],
name: "AdminChanged",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "implementation",
type: "address"
}
],
name: "Upgraded",
type: "event"
},
{
stateMutability: "payable",
type: "fallback"
},
{
inputs: [],
name: "admin",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newAdmin",
type: "address"
}
],
name: "changeAdmin",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "implementation",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newImplementation",
type: "address"
}
],
name: "upgradeTo",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newImplementation",
type: "address"
},
{
internalType: "bytes",
name: "data",
type: "bytes"
}
],
name: "upgradeToAndCall",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
stateMutability: "payable",
type: "receive"
}
];
const _bytecode$9 = "0x60806040526040516108403803806108408339818101604052606081101561002657600080fd5b8151602083015160408085018051915193959294830192918464010000000082111561005157600080fd5b90830190602082018581111561006657600080fd5b825164010000000081118282018810171561008057600080fd5b82525081516020918201929091019080838360005b838110156100ad578181015183820152602001610095565b50505050905090810190601f1680156100da5780820380516001836020036101000a031916815260200191505b50604052508491508390508282816100f1826101c5565b8051156101a9576000826001600160a01b0316826040518082805190602001908083835b602083106101345780518252601f199092019160209182019101610115565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610194576040519150601f19603f3d011682016040523d82523d6000602084013e610199565b606091505b50509050806101a757600080fd5b505b506101b19050565b6101ba82610237565b505050505050610261565b6101d88161025b60201b6103b41760201c565b6102135760405162461bcd60e51b815260040180806020018281038252603681526020018061080a6036913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b3b151590565b61059a806102706000396000f3fe60806040526004361061004e5760003560e01c80633659cfe6146100655780634f1ef286146100985780635c60da1b146101185780638f28397014610149578063f851a4401461017c5761005d565b3661005d5761005b610191565b005b61005b610191565b34801561007157600080fd5b5061005b6004803603602081101561008857600080fd5b50356001600160a01b03166101ab565b61005b600480360360408110156100ae57600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100d957600080fd5b8201836020820111156100eb57600080fd5b8035906020019184600183028401116401000000008311171561010d57600080fd5b5090925090506101e5565b34801561012457600080fd5b5061012d610292565b604080516001600160a01b039092168252519081900360200190f35b34801561015557600080fd5b5061005b6004803603602081101561016c57600080fd5b50356001600160a01b03166102cf565b34801561018857600080fd5b5061012d610389565b6101996101a9565b6101a96101a46103ba565b6103df565b565b6101b3610403565b6001600160a01b0316336001600160a01b031614156101da576101d581610428565b6101e2565b6101e2610191565b50565b6101ed610403565b6001600160a01b0316336001600160a01b031614156102855761020f83610428565b6000836001600160a01b031683836040518083838082843760405192019450600093509091505080830381855af49150503d806000811461026c576040519150601f19603f3d011682016040523d82523d6000602084013e610271565b606091505b505090508061027f57600080fd5b5061028d565b61028d610191565b505050565b600061029c610403565b6001600160a01b0316336001600160a01b031614156102c4576102bd6103ba565b90506102cc565b6102cc610191565b90565b6102d7610403565b6001600160a01b0316336001600160a01b031614156101da576001600160a01b0381166103355760405162461bcd60e51b815260040180806020018281038252603a8152602001806104f5603a913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61035e610403565b604080516001600160a01b03928316815291841660208301528051918290030190a16101d581610468565b6000610393610403565b6001600160a01b0316336001600160a01b031614156102c4576102bd610403565b3b151590565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e8080156103fe573d6000f35b3d6000fd5b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b6104318161048c565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b610495816103b4565b6104d05760405162461bcd60e51b815260040180806020018281038252603681526020018061052f6036913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5556fe5472616e73706172656e745570677261646561626c6550726f78793a206e65772061646d696e20697320746865207a65726f20616464726573735570677261646561626c6550726f78793a206e657720696d706c656d656e746174696f6e206973206e6f74206120636f6e7472616374a26469706673582212203c0c6456361fbff816ff53c5547d39ad0e807130f8
const isSuperArgs$9 = (xs) => xs.length > 1;
let AdminUpgradeableProxy__factory$1 = class AdminUpgradeableProxy__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$9(args)) {
super(...args);
} else {
super(_abi$9, _bytecode$9, args[0]);
}
}
getDeployTransaction(_logic, _admin, _data, overrides) {
return super.getDeployTransaction(_logic, _admin, _data, overrides || {});
}
deploy(_logic, _admin, _data, overrides) {
return super.deploy(_logic, _admin, _data, overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$9);
}
static connect(address, runner) {
return new Contract(
address,
_abi$9,
runner
);
}
};
AdminUpgradeableProxy__factory$1.bytecode = _bytecode$9;
AdminUpgradeableProxy__factory$1.abi = _abi$9;
const _abi$8 = [
{
inputs: [
{
internalType: "address",
name: "stakingRewardsAddress",
type: "address"
},
{
internalType: "address",
name: "gasCompLogic",
type: "address"
},
{
internalType: "address",
name: "userVaultAddress",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
}
],
name: "Delegated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "id",
type: "uint256"
},
{
indexed: true,
internalType: "address",
name: "proposer",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "target",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "startTime",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "endTime",
type: "uint256"
},
{
indexed: false,
internalType: "string",
name: "description",
type: "string"
}
],
name: "ProposalCreated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "ProposalExecuted",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "bytes",
name: "errorData",
type: "bytes"
}
],
name: "RewardUpdateFailed",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
}
],
name: "RewardUpdateSuccessful",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
}
],
name: "Undelegated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
indexed: true,
internalType: "address",
name: "voter",
type: "address"
},
{
indexed: true,
internalType: "bool",
name: "support",
type: "bool"
},
{
indexed: false,
internalType: "uint256",
name: "votes",
type: "uint256"
}
],
name: "Voted",
type: "event"
},
{
inputs: [],
name: "CLOSING_PERIOD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "EXECUTION_DELAY",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "EXECUTION_EXPIRATION",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "PROPOSAL_THRESHOLD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "QUORUM_VOTES",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "Staking",
outputs: [
{
internalType: "contract ITornadoStakingRewards",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTE_EXTEND_TIME",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTING_DELAY",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTING_PERIOD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "canWithdrawAfter",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address[]",
name: "from",
type: "address[]"
},
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "bool",
name: "support",
type: "bool"
}
],
name: "castDelegatedVote",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "bool",
name: "support",
type: "bool"
}
],
name: "castVote",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "checkIfQuorumReached",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
}
],
name: "delegate",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "delegatedTo",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "execute",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [],
name: "gasCompensationVault",
outputs: [
{
internalType: "contract IGasCompensationVault",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "address",
name: "voter",
type: "address"
}
],
name: "getReceipt",
outputs: [
{
components: [
{
internalType: "bool",
name: "hasVoted",
type: "bool"
},
{
internalType: "bool",
name: "support",
type: "bool"
},
{
internalType: "uint256",
name: "votes",
type: "uint256"
}
],
internalType: "struct Governance.Receipt",
name: "",
type: "tuple"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "hasAccountVoted",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_torn",
type: "address"
}
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "latestProposalIds",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
},
{
internalType: "uint256",
name: "deadline",
type: "uint256"
},
{
internalType: "uint8",
name: "v",
type: "uint8"
},
{
internalType: "bytes32",
name: "r",
type: "bytes32"
},
{
internalType: "bytes32",
name: "s",
type: "bytes32"
}
],
name: "lock",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "lockWithApproval",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "lockedBalance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "proposalCodehashes",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "proposalCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "proposals",
outputs: [
{
internalType: "address",
name: "proposer",
type: "address"
},
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "uint256",
name: "startTime",
type: "uint256"
},
{
internalType: "uint256",
name: "endTime",
type: "uint256"
},
{
internalType: "uint256",
name: "forVotes",
type: "uint256"
},
{
internalType: "uint256",
name: "againstVotes",
type: "uint256"
},
{
internalType: "bool",
name: "executed",
type: "bool"
},
{
internalType: "bool",
name: "extended",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "string",
name: "description",
type: "string"
}
],
name: "propose",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address"
},
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "string",
name: "description",
type: "string"
}
],
name: "proposeByDelegate",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "returnMultisigAddress",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "pure",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "closingPeriod",
type: "uint256"
}
],
name: "setClosingPeriod",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "executionDelay",
type: "uint256"
}
],
name: "setExecutionDelay",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "executionExpiration",
type: "uint256"
}
],
name: "setExecutionExpiration",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "gasCompensationsLimit",
type: "uint256"
}
],
name: "setGasCompensations",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalThreshold",
type: "uint256"
}
],
name: "setProposalThreshold",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "quorumVotes",
type: "uint256"
}
],
name: "setQuorumVotes",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "voteExtendTime",
type: "uint256"
}
],
name: "setVoteExtendTime",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "votingDelay",
type: "uint256"
}
],
name: "setVotingDelay",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "votingPeriod",
type: "uint256"
}
],
name: "setVotingPeriod",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "state",
outputs: [
{
internalType: "enum Governance.ProposalState",
name: "",
type: "uint8"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "torn",
outputs: [
{
internalType: "contract TORN",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "undelegate",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "unlock",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "userVault",
outputs: [
{
internalType: "contract ITornadoVault",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "version",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "pure",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "withdrawFromHelper",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
stateMutability: "payable",
type: "receive"
}
];
const _bytecode$8 = "0x60e06040523480156200001157600080fd5b50604051620034343803806200343483398101604081905262000034916200016b565b82828281818181600060019054906101000a900460ff16806200005c57506200005c62000124565b806200006b575060005460ff16155b620000935760405162461bcd60e51b81526004016200008a90620001be565b60405180910390fd5b600054610100900460ff16158015620000bf576000805460ff1961ff0019909116610100171660011790555b604080546001600160a01b03191661dead179055620000dd6200012a565b8015620000f0576000805461ff00191690555b506001600160601b0319606091821b811660805291811b821660a0529590951b90941660c052506200022595505050505050565b303b1590565b6202a3006033556203f480603481905569054b40b1f852bda00000603555683635c9adc5dea00000603655604b603755603855610e10603955615460603a55565b60008060006060848603121562000180578283fd5b83516200018d816200020c565b6020850151909350620001a0816200020c565b6040850151909250620001b3816200020c565b809150509250925092565b6020808252602e908201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560408201526d195b881a5b9a5d1a585b1a5e995960921b606082015260800190565b6001600160a01b03811681146200022257600080fd5b50565b60805160601c60a05160601c60c05160601c6131ac6200028860003980610d1352806110d452806116c752806117f85250806109105280610eca5280610fc252806116435280611d6d52508061105d5280611c1652806124f152506131ac6000f3fe6080604052600436106102815760003560e01c80639daafec71161014f578063d6f0948c116100c1578063ea0217cf1161007a578063ea0217cf14610755578063ece40cc114610775578063ef3f8bb114610795578063f0b76892146107b5578063f57df22e146107d5578063fe0d94c1146107ea57610288565b8063d6f0948c14610693578063da35c664146106b3578063e01f5237146106c8578063e23a9a52146106e8578063e4917d9f14610715578063e525aa081461073557610288565b8063b54426c811610113578063b54426c8146105e9578063b859f11b14610609578063c0c0e82014610629578063c4d66de814610649578063ce25d71c14610669578063d6159fe51461067e57610288565b80639daafec714610575578063a6c266031461058a578063a72edda31461059f578063adf898a4146105bf578063b1610d7e146105d457610288565b80635c19a95c116101f357806370b0f660116101ac57806370b0f660146104cb5780638b34a960146104eb57806392ab89bb14610500578063932d5157146105155780639a9e3b6e146105355780639ae697bf1461055557610288565b80635c19a95c146104215780636198e3391461044157806365da126414610461578063671dd275146104815780636a661755146104965780636dc2dc6c146104ab57610288565b806332687ec11161024557806332687ec11461035b57806337f135d7146103885780633e4f49e61461039d57806354fd4d50146103ca578063587a6ecb146103ec57806358e9fff01461040157610288565b8063013cf08b1461028d57806302ec8f9e146102ca57806315373e3d146102ec57806317977c611461030c57806324b0435f1461033957610288565b3661028857005b600080fd5b34801561029957600080fd5b506102ad6102a83660046128e1565b6107fd565b6040516102c19897969594939291906129ed565b60405180910390f35b3480156102d657600080fd5b506102ea6102e53660046128e1565b610862565b005b3480156102f857600080fd5b506102ea610307366004612925565b61088f565b34801561031857600080fd5b5061032c6103273660046126d8565b610992565b6040516102c19190612ab6565b34801561034557600080fd5b5061034e6109a4565b6040516102c1919061299c565b34801561036757600080fd5b5061037b6103763660046128e1565b6109bc565b6040516102c19190612aab565b34801561039457600080fd5b5061032c610a0a565b3480156103a957600080fd5b506103bd6103b83660046128e1565b610a10565b6040516102c19190612abf565b3480156103d657600080fd5b506103df610b4c565b6040516102c19190612ad3565b3480156103f857600080fd5b5061032c610b75565b34801561040d57600080fd5b5061032c61041c3660046126f3565b610b7b565b34801561042d57600080fd5b506102ea61043c3660046126d8565b610bc9565b34801561044d57600080fd5b506102ea61045c3660046128e1565b610ceb565b34801561046d57600080fd5b5061034e61047c3660046126d8565b610e38565b34801561048d57600080fd5b5061032c610e53565b3480156104a257600080fd5b5061032c610e59565b3480156104b757600080fd5b506102ea6104c63660046128e1565b610e5f565b3480156104d757600080fd5b506102ea6104e63660046128e1565b610ea4565b3480156104f757600080fd5b5061034e610ec8565b34801561050c57600080fd5b506102ea610eec565b34801561052157600080fd5b506102ea6105303660046128e1565b610f73565b34801561054157600080fd5b506102ea6105503660046128e1565b611025565b34801561056157600080fd5b5061032c610570366004
const isSuperArgs$8 = (xs) => xs.length > 1;
class GovernanceExploitPatchUpgrade__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$8(args)) {
super(...args);
} else {
super(_abi$8, _bytecode$8, args[0]);
}
}
getDeployTransaction(stakingRewardsAddress, gasCompLogic, userVaultAddress, overrides) {
return super.getDeployTransaction(
stakingRewardsAddress,
gasCompLogic,
userVaultAddress,
overrides || {}
);
}
deploy(stakingRewardsAddress, gasCompLogic, userVaultAddress, overrides) {
return super.deploy(
stakingRewardsAddress,
gasCompLogic,
userVaultAddress,
overrides || {}
);
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$8);
}
static connect(address, runner) {
return new Contract(
address,
_abi$8,
runner
);
}
}
GovernanceExploitPatchUpgrade__factory.bytecode = _bytecode$8;
GovernanceExploitPatchUpgrade__factory.abi = _abi$8;
const _abi$7 = [
{
inputs: [
{
internalType: "address",
name: "_deployedStakingProxyContractAddress",
type: "address"
},
{
internalType: "address",
name: "_deployedRelayerRegistryImplementationAddress",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
inputs: [],
name: "TORN",
outputs: [
{
internalType: "contract IERC20",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "deployedRelayerRegistryImplementationAddress",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "deployedStakingProxyContractAddress",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "executeProposal",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "gasCompensationVaultAddress",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "governanceProxyAddress",
outputs: [
{
internalType: "address payable",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "oldStakingProxyAddress",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "registryProxyAddress",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "userVaultAddress",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
}
];
const _bytecode$7 = "0x60c060405234801561001057600080fd5b50604051613adb380380613adb83398101604081905261002f9161004d565b6001600160601b0319606092831b8116608052911b1660a05261009e565b6000806040838503121561005f578182fd5b825161006a81610086565b602084015190925061007b81610086565b809150509250929050565b6001600160a01b038116811461009b57600080fd5b50565b60805160601c60a05160601c613a056100d66000398061027a52806104985250806102f952806103f452806104bc5250613a056000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063373058b811610066578063373058b8146100ce5780634655478f146100d857806361697d64146100e05780636fc6091d146100e85780639b49989a146100f057610093565b80630cc784761461009857806313f32237146100b657806324044543146100be57806332bf1039146100c6575b600080fd5b6100a06100f8565b6040516100ad9190610542565b60405180910390f35b6100a0610110565b6100a0610128565b6100a0610140565b6100d6610158565b005b6100a061047e565b6100a0610496565b6100a06104ba565b6100a06104de565b7358e8dcc13be9780fc42e8723d8ead4cf46943df281565b732fc93484614a34f26f7970cbb94615ba109bb4bf81565b73fa4c1f3f7d5dd7c12a9adb82cd7dda542e3d59ef81565b7377777feddddffc19ff86db637967013e6c6a116c81565b6040516370a0823160e01b8152732fc93484614a34f26f7970cbb94615ba109bb4bf90819063f58073b1907377777feddddffc19ff86db637967013e6c6a116c906370a08231906101ad908590600401610542565b60206040518083038186803b1580156101c557600080fd5b505afa1580156101d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101fd919061052a565b6040518263ffffffff1660e01b81526004016102199190610592565b600060405180830381600087803b15801561023357600080fd5b505af1158015610247573d6000803e3d6000fd5b5050604051631b2ce7f360e11b81527358e8dcc13be9780fc42e8723d8ead4cf46943df29250633659cfe691506102a2907f000000000000000000000000000000000000000000000000000000000000000090600401610542565b600060405180830381600087803b1580156102bc57600080fd5b505af11580156102d0573d6000803e3d6000fd5b50505050735efda50f22d34f262c29268506c5fa42cb56a1ce6001600160a01b0316633659cfe67f000000000000000000000000000000000000000000000000000000000000000073fa4c1f3f7d5dd7c12a9adb82cd7dda542e3d59ef732f50508a8a3d323b91336fa3ea6ae50e55f3218560405161034e906104f6565b61035a93929190610556565b604051809103906000f080158015610376573d6000803e3d6000fd5b506040518263ffffffff1660e01b81526004016103939190610542565b600060405180830381600087803b1580156103ad57600080fd5b505af11580156103c1573d6000803e3d6000fd5b505060405163a9059cbb60e01b81527377777feddddffc19ff86db637967013e6c6a116c925063a9059cbb9150610428907f0000000000000000000000000000000000000000000000000000000000000000906913ecbccf7737e6b0000090600401610579565b602060405180830381600087803b15801561044257600080fd5b505af1158015610456573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061047a9190610503565b5050565b735efda50f22d34f262c29268506c5fa42cb56a1ce81565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b732f50508a8a3d323b91336fa3ea6ae50e55f3218581565b6134348061059c83390190565b600060208284031215610514578081fd5b81518015158114610523578182fd5b9392505050565b60006020828403121561053b578081fd5b5051919050565b6001600160a01b0391909116815260200190565b6001600160a01b0393841681529183166020830152909116604082015260600190565b6001600160a01b03929092168252602082015260400190565b9081526020019056fe60e06040523480156200001157600080fd5b50604051620034343803806200343483398101604081905262000034916200016b565b82828281818181600060019054906101000a900460ff16806200005c57506200005c62000124565b806200006b575060005460ff16155b620000935760405162461bcd60e51b81526004016200008a90620001be565b60405180910390fd5b600054610100900460ff16158015620000bf576000805460ff1961ff0019909116610100171660011790555b604080546001600160a01b03191661dead179055620000dd6200012a565b8015620000f0576000805461ff00191690555b506001600160601b0319606091821b811660805291811b821660a0529590951b90941660c052506200022595505050505050565b303b1590565b6202a3006033556203f480603481905569054b40b1f852bda00000603555683635c9adc5dea00000603655604b603755603855610e10603955615460603a55565b60008060006060848603121562000180578283fd5b83
const isSuperArgs$7 = (xs) => xs.length > 1;
class PatchProposal__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$7(args)) {
super(...args);
} else {
super(_abi$7, _bytecode$7, args[0]);
}
}
getDeployTransaction(_deployedStakingProxyContractAddress, _deployedRelayerRegistryImplementationAddress, overrides) {
return super.getDeployTransaction(
_deployedStakingProxyContractAddress,
_deployedRelayerRegistryImplementationAddress,
overrides || {}
);
}
deploy(_deployedStakingProxyContractAddress, _deployedRelayerRegistryImplementationAddress, overrides) {
return super.deploy(
_deployedStakingProxyContractAddress,
_deployedRelayerRegistryImplementationAddress,
overrides || {}
);
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$7);
}
static connect(address, runner) {
return new Contract(address, _abi$7, runner);
}
}
PatchProposal__factory.bytecode = _bytecode$7;
PatchProposal__factory.abi = _abi$7;
var index$4 = /*#__PURE__*/Object.freeze({
__proto__: null,
AdminUpgradeableProxy__factory: AdminUpgradeableProxy__factory$1,
GovernanceExploitPatchUpgrade__factory: GovernanceExploitPatchUpgrade__factory,
PatchProposal__factory: PatchProposal__factory,
metamorphic: index$7,
mock: index$5
});
const _abi$6 = [
{
inputs: [
{
internalType: "address",
name: "stakingRewardsAddress",
type: "address"
},
{
internalType: "address",
name: "gasCompLogic",
type: "address"
},
{
internalType: "address",
name: "userVaultAddress",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
}
],
name: "Delegated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "id",
type: "uint256"
},
{
indexed: true,
internalType: "address",
name: "proposer",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "target",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "startTime",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "endTime",
type: "uint256"
},
{
indexed: false,
internalType: "string",
name: "description",
type: "string"
}
],
name: "ProposalCreated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "ProposalExecuted",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "bytes",
name: "errorData",
type: "bytes"
}
],
name: "RewardUpdateFailed",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
}
],
name: "RewardUpdateSuccessful",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
}
],
name: "Undelegated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
indexed: true,
internalType: "address",
name: "voter",
type: "address"
},
{
indexed: true,
internalType: "bool",
name: "support",
type: "bool"
},
{
indexed: false,
internalType: "uint256",
name: "votes",
type: "uint256"
}
],
name: "Voted",
type: "event"
},
{
inputs: [],
name: "CLOSING_PERIOD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "EXECUTION_DELAY",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "EXECUTION_EXPIRATION",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "PROPOSAL_THRESHOLD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "QUORUM_VOTES",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "Staking",
outputs: [
{
internalType: "contract ITornadoStakingRewards",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTE_EXTEND_TIME",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTING_DELAY",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "VOTING_PERIOD",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "canWithdrawAfter",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address[]",
name: "from",
type: "address[]"
},
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "bool",
name: "support",
type: "bool"
}
],
name: "castDelegatedVote",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "bool",
name: "support",
type: "bool"
}
],
name: "castVote",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "checkIfQuorumReached",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
}
],
name: "delegate",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "delegatedTo",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "execute",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [],
name: "gasCompensationVault",
outputs: [
{
internalType: "contract IGasCompensationVault",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "address",
name: "voter",
type: "address"
}
],
name: "getReceipt",
outputs: [
{
components: [
{
internalType: "bool",
name: "hasVoted",
type: "bool"
},
{
internalType: "bool",
name: "support",
type: "bool"
},
{
internalType: "uint256",
name: "votes",
type: "uint256"
}
],
internalType: "struct Governance.Receipt",
name: "",
type: "tuple"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
},
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "hasAccountVoted",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "_torn",
type: "address"
}
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "latestProposalIds",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
},
{
internalType: "uint256",
name: "deadline",
type: "uint256"
},
{
internalType: "uint8",
name: "v",
type: "uint8"
},
{
internalType: "bytes32",
name: "r",
type: "bytes32"
},
{
internalType: "bytes32",
name: "s",
type: "bytes32"
}
],
name: "lock",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "lockWithApproval",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
name: "lockedBalance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "proposalCodehashes",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "proposalCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
name: "proposals",
outputs: [
{
internalType: "address",
name: "proposer",
type: "address"
},
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "uint256",
name: "startTime",
type: "uint256"
},
{
internalType: "uint256",
name: "endTime",
type: "uint256"
},
{
internalType: "uint256",
name: "forVotes",
type: "uint256"
},
{
internalType: "uint256",
name: "againstVotes",
type: "uint256"
},
{
internalType: "bool",
name: "executed",
type: "bool"
},
{
internalType: "bool",
name: "extended",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "string",
name: "description",
type: "string"
}
],
name: "propose",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address"
},
{
internalType: "address",
name: "target",
type: "address"
},
{
internalType: "string",
name: "description",
type: "string"
}
],
name: "proposeByDelegate",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "returnMultisigAddress",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "pure",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "closingPeriod",
type: "uint256"
}
],
name: "setClosingPeriod",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "executionDelay",
type: "uint256"
}
],
name: "setExecutionDelay",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "executionExpiration",
type: "uint256"
}
],
name: "setExecutionExpiration",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "gasCompensationsLimit",
type: "uint256"
}
],
name: "setGasCompensations",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalThreshold",
type: "uint256"
}
],
name: "setProposalThreshold",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "quorumVotes",
type: "uint256"
}
],
name: "setQuorumVotes",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "voteExtendTime",
type: "uint256"
}
],
name: "setVoteExtendTime",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "votingDelay",
type: "uint256"
}
],
name: "setVotingDelay",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "votingPeriod",
type: "uint256"
}
],
name: "setVotingPeriod",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "proposalId",
type: "uint256"
}
],
name: "state",
outputs: [
{
internalType: "enum Governance.ProposalState",
name: "",
type: "uint8"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "torn",
outputs: [
{
internalType: "contract TORN",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "undelegate",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "unlock",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "userVault",
outputs: [
{
internalType: "contract ITornadoVault",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "version",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "pure",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "withdrawFromHelper",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
stateMutability: "payable",
type: "receive"
}
];
const _bytecode$6 = "0x60e06040523480156200001157600080fd5b506040516200344138038062003441833981016040819052620000349162000171565b82828282828281818181600060019054906101000a900460ff16806200005f57506200005f6200012a565b806200006e575060005460ff16155b620000965760405162461bcd60e51b81526004016200008d90620001c4565b60405180910390fd5b600054610100900460ff16158015620000c2576000805460ff1961ff0019909116610100171660011790555b604080546001600160a01b03191661dead179055620000e062000130565b8015620000f3576000805461ff00191690555b506001600160601b0319606091821b811660805291811b821660a0529590951b90941660c052506200022b98505050505050505050565b303b1590565b6202a3006033556203f480603481905569054b40b1f852bda00000603555683635c9adc5dea00000603655604b603755603855610e10603955615460603a55565b60008060006060848603121562000186578283fd5b8351620001938162000212565b6020850151909350620001a68162000212565b6040850151909250620001b98162000212565b809150509250925092565b6020808252602e908201527f436f6e747261637420696e7374616e63652068617320616c726561647920626560408201526d195b881a5b9a5d1a585b1a5e995960921b606082015260800190565b6001600160a01b03811681146200022857600080fd5b50565b60805160601c60a05160601c60c05160601c6131b36200028e60003980610d1a52806110db52806116ce52806117ff5250806109105280610ed15280610fc9528061164a5280611d745250806110645280611c1d52806124f852506131b36000f3fe6080604052600436106102815760003560e01c80639daafec71161014f578063d6f0948c116100c1578063ea0217cf1161007a578063ea0217cf14610755578063ece40cc114610775578063ef3f8bb114610795578063f0b76892146107b5578063f57df22e146107d5578063fe0d94c1146107ea57610288565b8063d6f0948c14610693578063da35c664146106b3578063e01f5237146106c8578063e23a9a52146106e8578063e4917d9f14610715578063e525aa081461073557610288565b8063b54426c811610113578063b54426c8146105e9578063b859f11b14610609578063c0c0e82014610629578063c4d66de814610649578063ce25d71c14610669578063d6159fe51461067e57610288565b80639daafec714610575578063a6c266031461058a578063a72edda31461059f578063adf898a4146105bf578063b1610d7e146105d457610288565b80635c19a95c116101f357806370b0f660116101ac57806370b0f660146104cb5780638b34a960146104eb57806392ab89bb14610500578063932d5157146105155780639a9e3b6e146105355780639ae697bf1461055557610288565b80635c19a95c146104215780636198e3391461044157806365da126414610461578063671dd275146104815780636a661755146104965780636dc2dc6c146104ab57610288565b806332687ec11161024557806332687ec11461035b57806337f135d7146103885780633e4f49e61461039d57806354fd4d50146103ca578063587a6ecb146103ec57806358e9fff01461040157610288565b8063013cf08b1461028d57806302ec8f9e146102ca57806315373e3d146102ec57806317977c611461030c57806324b0435f1461033957610288565b3661028857005b600080fd5b34801561029957600080fd5b506102ad6102a83660046128e8565b6107fd565b6040516102c19897969594939291906129f4565b60405180910390f35b3480156102d657600080fd5b506102ea6102e53660046128e8565b610862565b005b3480156102f857600080fd5b506102ea61030736600461292c565b61088f565b34801561031857600080fd5b5061032c6103273660046126df565b610992565b6040516102c19190612abd565b34801561034557600080fd5b5061034e6109a4565b6040516102c191906129a3565b34801561036757600080fd5b5061037b6103763660046128e8565b6109bc565b6040516102c19190612ab2565b34801561039457600080fd5b5061032c610a0a565b3480156103a957600080fd5b506103bd6103b83660046128e8565b610a10565b6040516102c19190612ac6565b3480156103d657600080fd5b506103df610b4c565b6040516102c19190612ada565b3480156103f857600080fd5b5061032c610b7c565b34801561040d57600080fd5b5061032c61041c3660046126fa565b610b82565b34801561042d57600080fd5b506102ea61043c3660046126df565b610bd0565b34801561044d57600080fd5b506102ea61045c3660046128e8565b610cf2565b34801561046d57600080fd5b5061034e61047c3660046126df565b610e3f565b34801561048d57600080fd5b5061032c610e5a565b3480156104a257600080fd5b5061032c610e60565b3480156104b757600080fd5b506102ea6104c63660046128e8565b610e66565b3480156104d757600080fd5b506102ea6104e63660046128e8565b610eab565b3480156104f757600080fd5b5061034e610ecf565b34801561050c57600080fd5b506102ea610ef3565b34801561052157600080fd5b506102ea6105303660046128e8565b610f7a565b34801561054157600080fd5b506102ea6105503660046128e8565b61102c565b34801561056157600080fd5b5061032c
const isSuperArgs$6 = (xs) => xs.length > 1;
class GovernanceProposalStateUpgrade__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$6(args)) {
super(...args);
} else {
super(_abi$6, _bytecode$6, args[0]);
}
}
getDeployTransaction(stakingRewardsAddress, gasCompLogic, userVaultAddress, overrides) {
return super.getDeployTransaction(
stakingRewardsAddress,
gasCompLogic,
userVaultAddress,
overrides || {}
);
}
deploy(stakingRewardsAddress, gasCompLogic, userVaultAddress, overrides) {
return super.deploy(
stakingRewardsAddress,
gasCompLogic,
userVaultAddress,
overrides || {}
);
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$6);
}
static connect(address, runner) {
return new Contract(
address,
_abi$6,
runner
);
}
}
GovernanceProposalStateUpgrade__factory.bytecode = _bytecode$6;
GovernanceProposalStateUpgrade__factory.abi = _abi$6;
var index$3 = /*#__PURE__*/Object.freeze({
__proto__: null,
GovernanceProposalStateUpgrade__factory: GovernanceProposalStateUpgrade__factory
});
const _abi$5 = [
{
inputs: [
{
internalType: "address",
name: "_logic",
type: "address"
},
{
internalType: "address",
name: "_admin",
type: "address"
},
{
internalType: "bytes",
name: "_data",
type: "bytes"
}
],
stateMutability: "payable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "previousAdmin",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "newAdmin",
type: "address"
}
],
name: "AdminChanged",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "implementation",
type: "address"
}
],
name: "Upgraded",
type: "event"
},
{
stateMutability: "payable",
type: "fallback"
},
{
inputs: [],
name: "admin",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newAdmin",
type: "address"
}
],
name: "changeAdmin",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "implementation",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newImplementation",
type: "address"
}
],
name: "upgradeTo",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newImplementation",
type: "address"
},
{
internalType: "bytes",
name: "data",
type: "bytes"
}
],
name: "upgradeToAndCall",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
stateMutability: "payable",
type: "receive"
}
];
const _bytecode$5 = "0x60806040526040516108403803806108408339818101604052606081101561002657600080fd5b8151602083015160408085018051915193959294830192918464010000000082111561005157600080fd5b90830190602082018581111561006657600080fd5b825164010000000081118282018810171561008057600080fd5b82525081516020918201929091019080838360005b838110156100ad578181015183820152602001610095565b50505050905090810190601f1680156100da5780820380516001836020036101000a031916815260200191505b50604052508491508390508282816100f1826101c5565b8051156101a9576000826001600160a01b0316826040518082805190602001908083835b602083106101345780518252601f199092019160209182019101610115565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610194576040519150601f19603f3d011682016040523d82523d6000602084013e610199565b606091505b50509050806101a757600080fd5b505b506101b19050565b6101ba82610237565b505050505050610261565b6101d88161025b60201b6103b41760201c565b6102135760405162461bcd60e51b815260040180806020018281038252603681526020018061080a6036913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b3b151590565b61059a806102706000396000f3fe60806040526004361061004e5760003560e01c80633659cfe6146100655780634f1ef286146100985780635c60da1b146101185780638f28397014610149578063f851a4401461017c5761005d565b3661005d5761005b610191565b005b61005b610191565b34801561007157600080fd5b5061005b6004803603602081101561008857600080fd5b50356001600160a01b03166101ab565b61005b600480360360408110156100ae57600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100d957600080fd5b8201836020820111156100eb57600080fd5b8035906020019184600183028401116401000000008311171561010d57600080fd5b5090925090506101e5565b34801561012457600080fd5b5061012d610292565b604080516001600160a01b039092168252519081900360200190f35b34801561015557600080fd5b5061005b6004803603602081101561016c57600080fd5b50356001600160a01b03166102cf565b34801561018857600080fd5b5061012d610389565b6101996101a9565b6101a96101a46103ba565b6103df565b565b6101b3610403565b6001600160a01b0316336001600160a01b031614156101da576101d581610428565b6101e2565b6101e2610191565b50565b6101ed610403565b6001600160a01b0316336001600160a01b031614156102855761020f83610428565b6000836001600160a01b031683836040518083838082843760405192019450600093509091505080830381855af49150503d806000811461026c576040519150601f19603f3d011682016040523d82523d6000602084013e610271565b606091505b505090508061027f57600080fd5b5061028d565b61028d610191565b505050565b600061029c610403565b6001600160a01b0316336001600160a01b031614156102c4576102bd6103ba565b90506102cc565b6102cc610191565b90565b6102d7610403565b6001600160a01b0316336001600160a01b031614156101da576001600160a01b0381166103355760405162461bcd60e51b815260040180806020018281038252603a8152602001806104f5603a913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61035e610403565b604080516001600160a01b03928316815291841660208301528051918290030190a16101d581610468565b6000610393610403565b6001600160a01b0316336001600160a01b031614156102c4576102bd610403565b3b151590565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e8080156103fe573d6000f35b3d6000fd5b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b6104318161048c565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b610495816103b4565b6104d05760405162461bcd60e51b815260040180806020018281038252603681526020018061052f6036913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5556fe5472616e73706172656e745570677261646561626c6550726f78793a206e65772061646d696e20697320746865207a65726f20616464726573735570677261646561626c6550726f78793a206e657720696d706c656d656e746174696f6e206973206e6f74206120636f6e7472616374a2646970667358221220f9da162f8a2d779a4f5f08577ac886bc4694791f74
const isSuperArgs$5 = (xs) => xs.length > 1;
class AdminUpgradeableProxy__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$5(args)) {
super(...args);
} else {
super(_abi$5, _bytecode$5, args[0]);
}
}
getDeployTransaction(_logic, _admin, _data, overrides) {
return super.getDeployTransaction(_logic, _admin, _data, overrides || {});
}
deploy(_logic, _admin, _data, overrides) {
return super.deploy(_logic, _admin, _data, overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$5);
}
static connect(address, runner) {
return new Contract(
address,
_abi$5,
runner
);
}
}
AdminUpgradeableProxy__factory.bytecode = _bytecode$5;
AdminUpgradeableProxy__factory.abi = _abi$5;
const _abi$4 = [
{
inputs: [
{
internalType: "address",
name: "_torn",
type: "address"
},
{
internalType: "address",
name: "_governance",
type: "address"
},
{
internalType: "address",
name: "_registry",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "instance",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "newFee",
type: "uint256"
}
],
name: "FeeUpdated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint24",
name: "newFee",
type: "uint24"
}
],
name: "UniswapTornPoolSwappingFeeChanged",
type: "event"
},
{
inputs: [],
name: "PROTOCOL_FEE_DIVIDER",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract ITornadoInstance",
name: "_instance",
type: "address"
}
],
name: "calculatePoolFee",
outputs: [
{
internalType: "uint160",
name: "",
type: "uint160"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "feeDeviations",
outputs: [
{
components: [
{
internalType: "address",
name: "instance",
type: "address"
},
{
internalType: "int256",
name: "deviation",
type: "int256"
}
],
internalType: "struct FeeManager.Deviation[]",
name: "results",
type: "tuple[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "governance",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract ITornadoInstance",
name: "",
type: "address"
}
],
name: "instanceFee",
outputs: [
{
internalType: "uint160",
name: "",
type: "uint160"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract ITornadoInstance",
name: "",
type: "address"
}
],
name: "instanceFeeUpdated",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract ITornadoInstance",
name: "_instance",
type: "address"
}
],
name: "instanceFeeWithUpdate",
outputs: [
{
internalType: "uint160",
name: "",
type: "uint160"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "registry",
outputs: [
{
internalType: "contract InstanceRegistry",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint32",
name: "newPeriod",
type: "uint32"
}
],
name: "setPeriodForTWAPOracle",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint24",
name: "_uniswapTornPoolSwappingFee",
type: "uint24"
}
],
name: "setUniswapTornPoolSwappingFee",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint24",
name: "newLimit",
type: "uint24"
}
],
name: "setUpdateFeeTimeLimit",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "torn",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "uniswapTimePeriod",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "uniswapTornPoolSwappingFee",
outputs: [
{
internalType: "uint24",
name: "",
type: "uint24"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "updateAllFees",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "contract ITornadoInstance",
name: "_instance",
type: "address"
}
],
name: "updateFee",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "updateFeeTimeLimit",
outputs: [
{
internalType: "uint24",
name: "",
type: "uint24"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract ITornadoInstance[]",
name: "_instances",
type: "address[]"
}
],
name: "updateFees",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode$4 = "0x60e06040523480156200001157600080fd5b5060405162001a7f38038062001a7f83398101604081905262000034916200005c565b6001600160601b0319606093841b811660805291831b821660a05290911b1660c052620000c8565b60008060006060848603121562000071578283fd5b83516200007e81620000af565b60208501519093506200009181620000af565b6040850151909250620000a481620000af565b809150509250925092565b6001600160a01b0381168114620000c557600080fd5b50565b60805160601c60a05160601c60c05160601c61195e62000121600039806102ce52806104f6528061077752806109945250806104b7528061052e528061060f528061070852508061068f528061087e525061195e6000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063a0287520116100a2578063bcc5ee6411610071578063bcc5ee641461020f578063c51c229714610217578063d8718fb11461022a578063e1f121561461023f578063f522d6d61461025257610116565b8063a0287520146101d9578063adf898a4146101ec578063aeb3077a146101f4578063b19a2972146101fc57610116565b8063603a54fe116100e9578063603a54fe146101815780637b103999146101945780637ccd2f481461019c57806380679eb3146101b157806380eb7bf0146101c657610116565b806305e343641461011b5780632efbf384146101445780634bf0a542146101645780635aa6e67514610179575b600080fd5b61012e610129366004611646565b61025a565b60405161013b919061188c565b60405180910390f35b610157610152366004611646565b61026c565b60405161013b91906116d3565b61016c6102c9565b60405161013b919061170f565b6101576104b5565b61015761018f366004611646565b6104d9565b6101576104f4565b6101a4610518565b60405161013b919061187c565b6101c46101bf366004611696565b610523565b005b6101c46101d4366004611646565b61057e565b6101c46101e7366004611662565b610604565b61015761068d565b61012e6106b1565b6101c461020a3660046113e4565b6106b7565b6101a46106eb565b6101c4610225366004611662565b6106fd565b61023261075a565b60405161013b9190611895565b61015761024d366004611646565b61076d565b6101c461098f565b60026020526000908152604090205481565b600080546001600160a01b038316825260026020526040822054600160381b90910462ffffff16429190910311156102a7576102a78261057e565b506001600160a01b03808216600090815260016020526040902054165b919050565b6060807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166310c13ac36040518163ffffffff1660e01b815260040160006040518083038186803b15801561032557600080fd5b505afa158015610339573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610361919081019061147d565b9050805167ffffffffffffffff8111801561037b57600080fd5b506040519080825280602002602001820160405280156103b557816020015b6103a261131d565b81526020019060019003908161039a5790505b50915060005b81518110156104b05760006103e28383815181106103d557fe5b602002602001015161076d565b6001600160a01b031690506000811561045e576103e8826001600087878151811061040957fe5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060009054906101000a90046001600160a01b03166103e8026001600160a01b03168161045957fe5b040390505b604051806040016040528085858151811061047557fe5b60200260200101516001600160a01b031681526020018281525085848151811061049b57fe5b602090810291909101015250506001016103bb565b505090565b7f000000000000000000000000000000000000000000000000000000000000000081565b6001602052600090815260409020546001600160a01b031681565b7f000000000000000000000000000000000000000000000000000000000000000081565b60005462ffffff1681565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461055857600080fd5b6000805463ffffffff90921663010000000266ffffffff00000019909216919091179055565b60006105898261076d565b6001600160a01b03838116600081815260016020908152604080832080546001600160a01b03191695871695909517909455600290528290204290559051919250907f6f0eaf2c2f89fb4cfe96a1dee5e764d60b52c7f48aaa590f0850e308aa1b953a906105f89084906116d3565b60405180910390a25050565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461063957600080fd5b6000805462ffffff191662ffffff83811691909117918290556040517fbfe65cfc2359076c4468c9b895156c309c78f94fb09f6d2fc0463c4ca9a71ac29261068292169061187c565b60405180910390a150565b7f000000000000000000000000000000000000000000000000000000000000000081565b61271081565b60005b81518110156106e7576106df8282815181106106d257fe5b
const isSuperArgs$4 = (xs) => xs.length > 1;
class FeeManager__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$4(args)) {
super(...args);
} else {
super(_abi$4, _bytecode$4, args[0]);
}
}
getDeployTransaction(_torn, _governance, _registry, overrides) {
return super.getDeployTransaction(
_torn,
_governance,
_registry,
overrides || {}
);
}
deploy(_torn, _governance, _registry, overrides) {
return super.deploy(
_torn,
_governance,
_registry,
overrides || {}
);
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$4);
}
static connect(address, runner) {
return new Contract(address, _abi$4, runner);
}
}
FeeManager__factory.bytecode = _bytecode$4;
FeeManager__factory.abi = _abi$4;
const _abi$3 = [
{
inputs: [
{
internalType: "address",
name: "_governance",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
inputs: [],
name: "GovernanceAddress",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "gasAmount",
type: "uint256"
}
],
name: "compensateGas",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "withdrawToGovernance",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
stateMutability: "payable",
type: "receive"
}
];
const _bytecode$3 = "0x60a0604052348015600f57600080fd5b50604051610472380380610472833981016040819052602c91603c565b6001600160a01b0316608052606a565b600060208284031215604d57600080fd5b81516001600160a01b0381168114606357600080fd5b9392505050565b6080516103da6100986000396000818160560152818160e101528181610212015261027701526103da6000f3fe6080604052600436106100385760003560e01c8063a3221c2e14610044578063a99ce80714610094578063e822f784146100b657600080fd5b3661003f57005b600080fd5b34801561005057600080fd5b506100787f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b3480156100a057600080fd5b506100b46100af366004610328565b6100d6565b005b3480156100c257600080fd5b506100b46100d1366004610360565b610207565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461013e5760405162461bcd60e51b815260206004820152600860248201526737b7363c9033b7bb60c11b60448201526064015b60405180910390fd5b47600061014b4884610379565b90508160000361015b5750505050565b6000846001600160a01b03168383116101745782610176565b835b604051600081818185875af1925050503d80600081146101b2576040519150601f19603f3d011682016040523d82523d6000602084013e6101b7565b606091505b50509050806102005760405162461bcd60e51b815260206004820152601560248201527418dbdb5c195b9cd85d194819d85cc819985a5b1959605a1b6044820152606401610135565b5050505050565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461026a5760405162461bcd60e51b815260206004820152600860248201526737b7363c9033b7bb60c11b6044820152606401610135565b4760006001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168284116102a457836102a6565b825b604051600081818185875af1925050503d80600081146102e2576040519150601f19603f3d011682016040523d82523d6000602084013e6102e7565b606091505b50509050806103235760405162461bcd60e51b81526020600482015260086024820152671c185e4819985a5b60c21b6044820152606401610135565b505050565b6000806040838503121561033b57600080fd5b82356001600160a01b038116811461035257600080fd5b946020939093013593505050565b60006020828403121561037257600080fd5b5035919050565b808202811582820484141761039e57634e487b7160e01b600052601160045260246000fd5b9291505056fea264697066735822122073841dd5b5d8687d927814633a2fcb7944a306bb89a9b65a0aab4cc361c8312264736f6c63430008190033";
const isSuperArgs$3 = (xs) => xs.length > 1;
class GasCompensationVault__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$3(args)) {
super(...args);
} else {
super(_abi$3, _bytecode$3, args[0]);
}
}
getDeployTransaction(_governance, overrides) {
return super.getDeployTransaction(_governance, overrides || {});
}
deploy(_governance, overrides) {
return super.deploy(_governance, overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$3);
}
static connect(address, runner) {
return new Contract(
address,
_abi$3,
runner
);
}
}
GasCompensationVault__factory.bytecode = _bytecode$3;
GasCompensationVault__factory.abi = _abi$3;
const _abi$2 = [
{
inputs: [
{
internalType: "address",
name: "_logic",
type: "address"
},
{
internalType: "bytes",
name: "_data",
type: "bytes"
}
],
stateMutability: "payable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "previousAdmin",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "newAdmin",
type: "address"
}
],
name: "AdminChanged",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "implementation",
type: "address"
}
],
name: "Upgraded",
type: "event"
},
{
stateMutability: "payable",
type: "fallback"
},
{
inputs: [],
name: "admin",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newAdmin",
type: "address"
}
],
name: "changeAdmin",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [],
name: "implementation",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newImplementation",
type: "address"
}
],
name: "upgradeTo",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newImplementation",
type: "address"
},
{
internalType: "bytes",
name: "data",
type: "bytes"
}
],
name: "upgradeToAndCall",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
stateMutability: "payable",
type: "receive"
}
];
const _bytecode$2 = "0x608060405260405161083b38038061083b8339818101604052604081101561002657600080fd5b81516020830180516040519294929383019291908464010000000082111561004d57600080fd5b90830190602082018581111561006257600080fd5b825164010000000081118282018810171561007c57600080fd5b82525081516020918201929091019080838360005b838110156100a9578181015183820152602001610091565b50505050905090810190601f1680156100d65780820380516001836020036101000a031916815260200191505b50604052508391503090508282816100ed826101c0565b8051156101a5576000826001600160a01b0316826040518082805190602001908083835b602083106101305780518252601f199092019160209182019101610111565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610190576040519150601f19603f3d011682016040523d82523d6000602084013e610195565b606091505b50509050806101a357600080fd5b505b506101ad9050565b6101b682610232565b505050505061025c565b6101d38161025660201b6103b41760201c565b61020e5760405162461bcd60e51b81526004018080602001828103825260368152602001806108056036913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b3b151590565b61059a8061026b6000396000f3fe60806040526004361061004e5760003560e01c80633659cfe6146100655780634f1ef286146100985780635c60da1b146101185780638f28397014610149578063f851a4401461017c5761005d565b3661005d5761005b610191565b005b61005b610191565b34801561007157600080fd5b5061005b6004803603602081101561008857600080fd5b50356001600160a01b03166101ab565b61005b600480360360408110156100ae57600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100d957600080fd5b8201836020820111156100eb57600080fd5b8035906020019184600183028401116401000000008311171561010d57600080fd5b5090925090506101e5565b34801561012457600080fd5b5061012d610292565b604080516001600160a01b039092168252519081900360200190f35b34801561015557600080fd5b5061005b6004803603602081101561016c57600080fd5b50356001600160a01b03166102cf565b34801561018857600080fd5b5061012d610389565b6101996101a9565b6101a96101a46103ba565b6103df565b565b6101b3610403565b6001600160a01b0316336001600160a01b031614156101da576101d581610428565b6101e2565b6101e2610191565b50565b6101ed610403565b6001600160a01b0316336001600160a01b031614156102855761020f83610428565b6000836001600160a01b031683836040518083838082843760405192019450600093509091505080830381855af49150503d806000811461026c576040519150601f19603f3d011682016040523d82523d6000602084013e610271565b606091505b505090508061027f57600080fd5b5061028d565b61028d610191565b505050565b600061029c610403565b6001600160a01b0316336001600160a01b031614156102c4576102bd6103ba565b90506102cc565b6102cc610191565b90565b6102d7610403565b6001600160a01b0316336001600160a01b031614156101da576001600160a01b0381166103355760405162461bcd60e51b815260040180806020018281038252603a8152602001806104f5603a913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61035e610403565b604080516001600160a01b03928316815291841660208301528051918290030190a16101d581610468565b6000610393610403565b6001600160a01b0316336001600160a01b031614156102c4576102bd610403565b3b151590565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e8080156103fe573d6000f35b3d6000fd5b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b6104318161048c565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b610495816103b4565b6104d05760405162461bcd60e51b815260040180806020018281038252603681526020018061052f6036913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5556fe5472616e73706172656e745570677261646561626c6550726f78793a206e65772061646d696e20697320746865207a65726f20616464726573735570677261646561626c6550726f78793a206e657720696d706c656d656e746174696f6e206973206e6f74206120636f6e7472616374a264697066735822122014d721b179bdff3154685a6f1f0fecdd0d99b7cfc61b3f1a2f7a
const isSuperArgs$2 = (xs) => xs.length > 1;
class LoopbackProxy__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$2(args)) {
super(...args);
} else {
super(_abi$2, _bytecode$2, args[0]);
}
}
getDeployTransaction(_logic, _data, overrides) {
return super.getDeployTransaction(_logic, _data, overrides || {});
}
deploy(_logic, _data, overrides) {
return super.deploy(_logic, _data, overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$2);
}
static connect(address, runner) {
return new Contract(address, _abi$2, runner);
}
}
LoopbackProxy__factory.bytecode = _bytecode$2;
LoopbackProxy__factory.abi = _abi$2;
const _abi$1 = [
{
inputs: [
{
internalType: "address",
name: "_governance",
type: "address"
},
{
internalType: "address",
name: "_instanceRegistry",
type: "address"
},
{
internalType: "address",
name: "_relayerRegistry",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "sender",
type: "address"
},
{
indexed: false,
internalType: "bytes",
name: "encryptedNote",
type: "bytes"
}
],
name: "EncryptedNote",
type: "event"
},
{
inputs: [
{
internalType: "contract IERC20",
name: "_token",
type: "address"
},
{
internalType: "address",
name: "_spender",
type: "address"
},
{
internalType: "uint256",
name: "_amount",
type: "uint256"
}
],
name: "approveExactToken",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "bytes[]",
name: "_encryptedNotes",
type: "bytes[]"
}
],
name: "backupNotes",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "contract ITornadoInstance",
name: "_tornado",
type: "address"
},
{
internalType: "bytes32",
name: "_commitment",
type: "bytes32"
},
{
internalType: "bytes",
name: "_encryptedNote",
type: "bytes"
}
],
name: "deposit",
outputs: [],
stateMutability: "payable",
type: "function"
},
{
inputs: [],
name: "governance",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "instanceRegistry",
outputs: [
{
internalType: "contract InstanceRegistry",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "relayerRegistry",
outputs: [
{
internalType: "contract RelayerRegistry",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "contract IERC20",
name: "_token",
type: "address"
},
{
internalType: "address payable",
name: "_to",
type: "address"
},
{
internalType: "uint256",
name: "_amount",
type: "uint256"
}
],
name: "rescueTokens",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "contract ITornadoInstance",
name: "_tornado",
type: "address"
},
{
internalType: "bytes",
name: "_proof",
type: "bytes"
},
{
internalType: "bytes32",
name: "_root",
type: "bytes32"
},
{
internalType: "bytes32",
name: "_nullifierHash",
type: "bytes32"
},
{
internalType: "address payable",
name: "_recipient",
type: "address"
},
{
internalType: "address payable",
name: "_relayer",
type: "address"
},
{
internalType: "uint256",
name: "_fee",
type: "uint256"
},
{
internalType: "uint256",
name: "_refund",
type: "uint256"
}
],
name: "withdraw",
outputs: [],
stateMutability: "payable",
type: "function"
}
];
const _bytecode$1 = "0x60e060405234801561001057600080fd5b5060405161128438038061128483398101604081905261002f91610056565b6001600160601b0319606093841b811660805291831b821660a05290911b1660c0526100ba565b60008060006060848603121561006a578283fd5b8351610075816100a2565b6020850151909350610086816100a2565b6040850151909250610097816100a2565b809150509250925092565b6001600160a01b03811681146100b757600080fd5b50565b60805160601c60a05160601c60c05160601c61117c610108600039806103ff528061059e525080610164528061037a52806103a752806104c8525080610423528061068e525061117c6000f3fe60806040526004361061007b5760003560e01c80635aa6e6751161004e5780635aa6e675146100f55780636485ba2a1461010a578063b438689f1461012a578063cea9d26f1461013d5761007b565b806313d98d131461008057806336a3874b146100955780633ef10783146100c057806347ff589d146100e0575b600080fd5b61009361008e366004610c77565b61015d565b005b3480156100a157600080fd5b506100aa610378565b6040516100b79190610dd0565b60405180910390f35b3480156100cc57600080fd5b506100936100db366004610c37565b61039c565b3480156100ec57600080fd5b506100aa6103fd565b34801561010157600080fd5b506100aa610421565b34801561011657600080fd5b50610093610125366004610b26565b610445565b610093610138366004610cd1565b6104ae565b34801561014957600080fd5b50610093610158366004610c37565b610683565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663032bb443886040518263ffffffff1660e01b81526004016101ae9190610dd0565b60a06040518083038186803b1580156101c657600080fd5b505afa1580156101da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101fe9190610bb1565b5092955090935091506000905081600181111561021757fe5b141561023e5760405162461bcd60e51b815260040161023590610f00565b60405180910390fd5b82156102cc576102cc3330896001600160a01b0316638bca6d166040518163ffffffff1660e01b815260040160206040518083038186803b15801561028257600080fd5b505afa158015610296573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102ba9190610d72565b6001600160a01b038616929190610817565b60405163b214faa560e01b81526001600160a01b0388169063b214faa59034906102fa908a90600401610e5e565b6000604051808303818588803b15801561031357600080fd5b505af1158015610327573d6000803e3d6000fd5b5050505050336001600160a01b03167ffa28df43db3553771f7209dcef046f3bdfea15870ab625dcda30ac58b82b40088686604051610367929190610e67565b60405180910390a250505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146103e45760405162461bcd60e51b815260040161023590611087565b6103f86001600160a01b0384168383610875565b505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60005b818110156103f857337ffa28df43db3553771f7209dcef046f3bdfea15870ab625dcda30ac58b82b400884848481811061047e57fe5b905060200281019061049091906110af565b60405161049e929190610e67565b60405180910390a2600101610448565b60405163032bb44360e01b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063032bb443906104fd908d90600401610dd0565b60a06040518083038186803b15801561051557600080fd5b505afa158015610529573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054d9190610bb1565b509093506000925061055d915050565b81600181111561056957fe5b14156105875760405162461bcd60e51b815260040161023590610f00565b604051631168473b60e21b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906345a11cec906105d790339088908f90600401610de4565b600060405180830381600087803b1580156105f157600080fd5b505af1158015610605573d6000803e3d6000fd5b50506040516310d056db60e11b81526001600160a01b038d1692506321a0adb691503490610645908d908d908d908d908d908d908d908d90600401610e7b565b6000604051808303818588803b15801561065e57600080fd5b505af1158015610672573d6000803e3d6000fd5b505050505050505050505050505050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146106cb5760405162461bcd60e51b815260040161023590611087565b6001600160a01b0382166106f15760405162461bcd60e51b8152600401610235
const isSuperArgs$1 = (xs) => xs.length > 1;
class TornadoRouter__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs$1(args)) {
super(...args);
} else {
super(_abi$1, _bytecode$1, args[0]);
}
}
getDeployTransaction(_governance, _instanceRegistry, _relayerRegistry, overrides) {
return super.getDeployTransaction(
_governance,
_instanceRegistry,
_relayerRegistry,
overrides || {}
);
}
deploy(_governance, _instanceRegistry, _relayerRegistry, overrides) {
return super.deploy(
_governance,
_instanceRegistry,
_relayerRegistry,
overrides || {}
);
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi$1);
}
static connect(address, runner) {
return new Contract(address, _abi$1, runner);
}
}
TornadoRouter__factory.bytecode = _bytecode$1;
TornadoRouter__factory.abi = _abi$1;
const _abi = [
{
inputs: [
{
internalType: "address",
name: "_torn",
type: "address"
},
{
internalType: "address",
name: "_governance",
type: "address"
}
],
stateMutability: "nonpayable",
type: "constructor"
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address"
},
{
internalType: "uint256",
name: "amount",
type: "uint256"
}
],
name: "withdrawTorn",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
const _bytecode = "0x60c060405234801561001057600080fd5b506040516104aa3803806104aa8339818101604052604081101561003357600080fd5b5080516020909101516001600160601b0319606092831b8116608052911b1660a05260805160601c60a05160601c61042e61007c60003980606952508060d3525061042e6000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806391fe357314610030575b600080fd5b61005c6004803603604081101561004657600080fd5b506001600160a01b03813516906020013561005e565b005b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146100c6576040805162461bcd60e51b815260206004820152600860248201526737b7363c9033b7bb60c11b604482015290519081900360640190fd5b6100fa6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001683836100fe565b5050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610150908490610155565b505050565b60606101aa826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166102069092919063ffffffff16565b805190915015610150578080602001905160208110156101c957600080fd5b50516101505760405162461bcd60e51b815260040180806020018281038252602a8152602001806103cf602a913960400191505060405180910390fd5b6060610215848460008561021d565b949350505050565b6060610228856103c8565b610279576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106102b85780518252601f199092019160209182019101610299565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461031a576040519150601f19603f3d011682016040523d82523d6000602084013e61031f565b606091505b509150915081156103335791506102159050565b8051156103435780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561038d578181015183820152602001610375565b50505050905090810190601f1680156103ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b3b15159056fe5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212208fc65ae8299d617f6cff836a2822363849c7fb35b0b27a6f0aebfa62084005c764736f6c634300060c0033";
const isSuperArgs = (xs) => xs.length > 1;
class TornadoVault__factory extends ContractFactory {
constructor(...args) {
if (isSuperArgs(args)) {
super(...args);
} else {
super(_abi, _bytecode, args[0]);
}
}
getDeployTransaction(_torn, _governance, overrides) {
return super.getDeployTransaction(_torn, _governance, overrides || {});
}
deploy(_torn, _governance, overrides) {
return super.deploy(_torn, _governance, overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface(_abi);
}
static connect(address, runner) {
return new Contract(address, _abi, runner);
}
}
TornadoVault__factory.bytecode = _bytecode;
TornadoVault__factory.abi = _abi;
var index$2 = /*#__PURE__*/Object.freeze({
__proto__: null,
AdminUpgradeableProxy__factory: AdminUpgradeableProxy__factory,
FeeManager__factory: FeeManager__factory,
GasCompensationVault__factory: GasCompensationVault__factory,
LoopbackProxy__factory: LoopbackProxy__factory,
TornadoRouter__factory: TornadoRouter__factory,
TornadoVault__factory: TornadoVault__factory,
aggregator: index$y,
deployerSol: index$x,
instanceRegistrySol: index$w,
interfaces: index$k,
libraries: index$i,
relayerRegistrySol: index$v,
testnet: index$r,
torn: index$s,
tornadoStakingRewardsSol: index$q,
uniswap: index$l,
v1: index$d,
v2VaultAndGas: index$a,
v3RelayerRegistry: index$8,
v4ExploitPatch: index$4,
v5ProposalStatePatch: index$3
});
var index$1 = /*#__PURE__*/Object.freeze({
__proto__: null,
classic: index$A,
governance: index$2
});
var index = /*#__PURE__*/Object.freeze({
__proto__: null,
contracts: index$1,
openzeppelin: index$H
});
export { AdminUpgradeableProxy__factory, Aggregator__factory, AirdropMock__factory, Airdrop__factory, BadRecipient__factory, CTornado__factory, Configuration__factory, Core__factory, Delegation__factory, Deployer__factory, DummySecond__factory, Dummy__factory, ENSMock__factory, ENS__factory, ERC20Basic__factory, ERC20Burnable__factory, ERC20Mock__factory, ERC20Permit__factory, ERC20Tornado__factory, ERC20__factory, ETHTornado__factory, Echoer__factory, EnsResolve__factory, FeeManager__factory, GasCompensationVault__factory, GasCompensator__factory, GovernanceAggregator__factory, GovernanceExploitPatchUpgrade__factory, GovernanceGasUpgrade__factory, GovernanceProposalStateUpgrade__factory, GovernanceStakingUpgrade__factory, GovernanceVaultUpgrade__factory, Governance__factory, IDeployer__factory$1 as IDeployer__factory, IENSRegistry__factory, IENSResolver__factory, IENS__factory, IERC1155Errors__factory, IERC20Decimals__factory, IERC20Errors__factory, IERC20Metadata__factory, IERC20__factory$1 as IERC20__factory, IERC721Errors__factory, IFeeManager__factory, IGasCompensationVault__factory, IGovernance__factory, IHasher__factory, IMetamorphicContractFactory__factory, IProxy__factory, IRelayerRegistry__factory, ITornadoGovernance__factory, ITornadoInstance__factory$1 as ITornadoInstance__factory, ITornadoRouter__factory, ITornadoStakingRewards__factory, ITornadoVault__factory$1 as ITornadoVault__factory, IUSDT__factory, IUniswapV3Factory__factory, IUniswapV3PoolActions__factory, IUniswapV3PoolDerivedState__factory, IUniswapV3PoolEvents__factory, IUniswapV3PoolImmutables__factory, IUniswapV3PoolOwnerActions__factory, IUniswapV3PoolState__factory, IUniswapV3Pool__factory, IVerifier__factory, InitialProposal__factory, InstanceRegistry__factory, LoopbackProxy__factory, MaliciousProposal__factory, MerkleTreeWithHistoryMock__factory, MerkleTreeWithHistory__factory, MockGovernance__factory, NewImplementation__factory, Ownable__factory, PatchProposal__factory, Pausable__factory, ProposalStateChangeGovernance__factory, ProposalUpgrade__factory, Proposal__factory, Proxy__factory, RelayerAggregator__factory, RelayerRegistry__factory, Resolver__factory, TORNMock__factory, TORN__factory, TestnetAdminProxy__factory, TestnetFeeManager__factory, TestnetGovernanceProxy__factory, Timestamp__factory, TornadoProxyLight__factory, TornadoRouter__factory, TornadoStakingRewards__factory, TornadoVault__factory, Tornado__factory, TransparentUpgradeableProxy__factory, UpgradeableProxy__factory, Verifier__factory, VestingMock__factory, Vesting__factory, VoucherMock__factory, Voucher__factory, index as factories };