UNPKG

@q-dev/q-js-sdk

Version:

Typescript Library to interact with Q System Contracts

320 lines 7.59 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.AddressStorageStakes__factory = void 0; const ethers_1 = require("ethers"); const _abi = [ { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "_addr", type: "address", }, ], name: "AddressAdded", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "_addr", type: "address", }, ], name: "AddressRemoved", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "_addr", type: "address", }, { indexed: false, internalType: "uint256", name: "_stake", type: "uint256", }, ], name: "DelegatedStakeUpdated", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "previousOwner", type: "address", }, { indexed: true, internalType: "address", name: "newOwner", type: "address", }, ], name: "OwnershipTransferred", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "_addr", type: "address", }, { indexed: false, internalType: "uint256", name: "_stake", type: "uint256", }, ], name: "StakeDecreased", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "_addr", type: "address", }, { indexed: false, internalType: "uint256", name: "_stake", type: "uint256", }, ], name: "StakeIncreased", type: "event", }, { inputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], name: "addrList", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "", type: "address", }, ], name: "addrStake", outputs: [ { internalType: "uint256", name: "listIndex", type: "uint256", }, { internalType: "uint256", name: "stake", type: "uint256", }, { internalType: "uint256", name: "delegatedStake", type: "uint256", }, ], stateMutability: "view", type: "function", }, { 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", }, { inputs: [ { internalType: "address", name: "_addr", type: "address", }, { internalType: "uint256", name: "_stake", type: "uint256", }, ], name: "add", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_addr", type: "address", }, { internalType: "uint256", name: "_stake", type: "uint256", }, ], name: "sub", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_addr", type: "address", }, { internalType: "uint256", name: "_delegatedStake", type: "uint256", }, ], name: "setDelegated", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "size", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "getAddresses", outputs: [ { internalType: "address[]", name: "", type: "address[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_addr", type: "address", }, ], name: "contains", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, ]; class AddressStorageStakes__factory { static createInterface() { return new ethers_1.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.AddressStorageStakes__factory = AddressStorageStakes__factory; AddressStorageStakes__factory.abi = _abi; //# sourceMappingURL=AddressStorageStakes__factory.js.map