UNPKG

@q-dev/q-js-sdk

Version:

Typescript Library to interact with Q System Contracts

364 lines 8.71 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ContractRegistry__factory = void 0; const ethers_1 = require("ethers"); const _abi = [ { inputs: [], name: "MAX_CALLS", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "VERSION", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "__ContractRegistryUpgrader_init", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "string", name: "key_", type: "string", }, ], name: "contains", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "string", name: "key_", type: "string", }, ], name: "getAddress", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "getContracts", outputs: [ { components: [ { internalType: "string", name: "key", type: "string", }, { internalType: "address", name: "contractAddress", type: "address", }, ], internalType: "struct IContractRegistry.Pair[]", name: "", type: "tuple[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "proxy_", type: "address", }, ], name: "getImplementation", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "getMaintainers", outputs: [ { internalType: "address[]", name: "", type: "address[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address[]", name: "maintainerList_", type: "address[]", }, { internalType: "string[]", name: "keys_", type: "string[]", }, { internalType: "address[]", name: "addresses_", type: "address[]", }, ], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], name: "isInitialized", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "leaveMaintainers", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bytes[]", name: "data_", type: "bytes[]", }, ], name: "multicall", outputs: [ { internalType: "bytes[]", name: "results_", type: "bytes[]", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "string", name: "key_", type: "string", }, ], name: "mustGetAddress", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "proxyAdmin", outputs: [ { internalType: "contract ProxyAdmin", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "string", name: "key_", type: "string", }, ], name: "removeKey", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "string[]", name: "keys_", type: "string[]", }, ], name: "removeKeys", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "string", name: "key_", type: "string", }, { internalType: "address", name: "address_", type: "address", }, ], name: "setAddress", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "string[]", name: "keys_", type: "string[]", }, { internalType: "address[]", name: "addresses_", type: "address[]", }, ], name: "setAddresses", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "maintainer_", type: "address", }, ], name: "setMaintainer", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "proxy_", type: "address", }, { internalType: "address", name: "newImplementation_", type: "address", }, ], name: "upgradeContract", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "proxy_", type: "address", }, { internalType: "address", name: "newImplementation_", type: "address", }, { internalType: "bytes", name: "data_", type: "bytes", }, ], name: "upgradeContractAndCall", outputs: [], stateMutability: "nonpayable", type: "function", }, ]; class ContractRegistry__factory { static createInterface() { return new ethers_1.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.ContractRegistry__factory = ContractRegistry__factory; ContractRegistry__factory.abi = _abi; //# sourceMappingURL=ContractRegistry__factory.js.map