@q-dev/gdk-sdk
Version:
Typescript Library to interact with GDK Contracts
569 lines • 13.6 kB
JavaScript
"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.ProtectedTreasury__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
{
inputs: [
{
internalType: "string",
name: "name",
type: "string",
},
{
internalType: "enum ParameterType",
name: "expected",
type: "uint8",
},
{
internalType: "enum ParameterType",
name: "actual",
type: "uint8",
},
],
name: "InvalidParameterType",
type: "error",
},
{
inputs: [
{
internalType: "bytes",
name: "reason",
type: "bytes",
},
],
name: "ProposalExecutionFailed",
type: "error",
},
{
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: "beacon",
type: "address",
},
],
name: "BeaconUpgraded",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint8",
name: "version",
type: "uint8",
},
],
name: "Initialized",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "implementation",
type: "address",
},
],
name: "Upgraded",
type: "event",
},
{
inputs: [],
name: "EXECUTION_BY_ROOTS_PERIOD_KEY",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "TREASURY_RESOURCE",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "roots_",
type: "address",
},
{
internalType: "contract DAORegistry",
name: "daoRegistry_",
type: "address",
},
],
name: "__ExecutionByRoots_init",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "registryAddress_",
type: "address",
},
{
internalType: "address",
name: "roots_",
type: "address",
},
{
internalType: "string",
name: "relatedExpertPanelName_",
type: "string",
},
],
name: "__ProtectedTreasury_init",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "roots_",
type: "address",
},
],
name: "__RootNodesConnector_init",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "member_",
type: "address",
},
{
internalType: "string",
name: "permission_",
type: "string",
},
],
name: "checkPermission",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "votingContract_",
type: "address",
},
{
internalType: "uint256",
name: "proposalId_",
type: "uint256",
},
],
name: "executeVetoedProposal",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token_",
type: "address",
},
],
name: "getERC20Balance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getInjector",
outputs: [
{
internalType: "address",
name: "injector_",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getMembers",
outputs: [
{
internalType: "address[]",
name: "",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getMembersCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getNativeBalance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getResource",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "pure",
type: "function",
},
{
inputs: [],
name: "getResourceRecords",
outputs: [
{
components: [
{
internalType: "string",
name: "existingRole",
type: "string",
},
{
internalType: "string",
name: "resource",
type: "string",
},
{
internalType: "string[]",
name: "permissions",
type: "string[]",
},
],
internalType: "struct IDAOIntegration.ResourceRecords[]",
name: "records_",
type: "tuple[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "implementation",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "member_",
type: "address",
},
],
name: "isMember",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "isValidExecutionByRootsOnFailedP",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "parameterStorage",
outputs: [
{
internalType: "contract IDAOParameterStorage",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "permissionManager",
outputs: [
{
internalType: "contract IPermissionManager",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "proxiableUUID",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "rootMembers",
outputs: [
{
internalType: "contract IRootMembers",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token_",
type: "address",
},
{
internalType: "address",
name: "to_",
type: "address",
},
{
internalType: "uint256",
name: "amount_",
type: "uint256",
},
],
name: "sendERC20",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address payable",
name: "to_",
type: "address",
},
{
internalType: "uint256",
name: "amount_",
type: "uint256",
},
],
name: "sendNative",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "registry_",
type: "address",
},
{
internalType: "bytes",
name: "",
type: "bytes",
},
],
name: "setDependencies",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "injector_",
type: "address",
},
],
name: "setInjector",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bytes4",
name: "interfaceId",
type: "bytes4",
},
],
name: "supportsInterface",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
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",
},
];
class ProtectedTreasury__factory {
static createInterface() {
return new ethers_1.utils.Interface(_abi);
}
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.ProtectedTreasury__factory = ProtectedTreasury__factory;
ProtectedTreasury__factory.abi = _abi;
//# sourceMappingURL=ProtectedTreasury__factory.js.map