@venusprotocol/protocol-reserve 1.0.0-dev.6 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json +2 -2
- package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol/ReentrancyGuardUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol/IERC20Upgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/{draft-IERC20PermitUpgradeable.sol → IERC20PermitUpgradeable.sol}/IERC20PermitUpgradeable.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol/SafeERC20Upgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol/SafeERC20Upgradeable.json +2 -2
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.json +2 -2
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +1 -1
- package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.sol/AccessControlledV8.dbg.json +1 -1
- package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.sol/IAccessControlManagerV8.dbg.json +1 -1
- package/artifacts/@venusprotocol/isolated-pools/contracts/MaxLoopsLimitHelper.sol/MaxLoopsLimitHelper.dbg.json +1 -1
- package/artifacts/build-info/5e0d0fa03533470b2e430f8020bc271c.json +1 -0
- package/artifacts/contracts/Interfaces/ComptrollerInterface.sol/ComptrollerInterface.dbg.json +1 -1
- package/artifacts/contracts/Interfaces/IIncomeDestination.sol/IIncomeDestination.dbg.json +1 -1
- package/artifacts/contracts/Interfaces/IProtocolShareReserve.sol/IProtocolShareReserve.dbg.json +1 -1
- package/artifacts/contracts/Interfaces/IVToken.sol/IVToken.dbg.json +1 -1
- package/artifacts/contracts/Interfaces/PoolRegistryInterface.sol/PoolRegistryInterface.dbg.json +1 -1
- package/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.dbg.json +1 -1
- package/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.json +67 -56
- package/artifacts/contracts/Test/Mocks/MockToken.sol/MockToken.dbg.json +1 -1
- package/artifacts/contracts/Test/Mocks/MockToken.sol/MockToken.json +2 -2
- package/contracts/Interfaces/IProtocolShareReserve.sol +5 -1
- package/contracts/ProtocolReserve/ProtocolShareReserve.sol +70 -86
- package/contracts/Test/Mocks/MockToken.sol +5 -1
- package/deploy/1-deploy.ts +64 -0
- package/deployments/bscmainnet/.chainId +1 -0
- package/deployments/bscmainnet/DefaultProxyAdmin.json +257 -0
- package/deployments/bscmainnet/ProtocolShareReserve.json +1054 -0
- package/deployments/bscmainnet/ProtocolShareReserve_Implementation.json +1264 -0
- package/deployments/bscmainnet/ProtocolShareReserve_Proxy.json +277 -0
- package/deployments/bscmainnet/solcInputs/0e89febeebc7444140de8e67c9067d2c.json +78 -0
- package/deployments/bscmainnet/solcInputs/45a7e25696ff2229490239636d073de0.json +90 -0
- package/deployments/bscmainnet/solcInputs/c87a4970e440c0598abee31750358915.json +90 -0
- package/deployments/bscmainnet/solcInputs/f7c7133e4506082d7aa8242a8f52a4c9.json +87 -0
- package/deployments/bsctestnet/.chainId +1 -0
- package/deployments/bsctestnet/DefaultProxyAdmin.json +257 -0
- package/deployments/bsctestnet/ProtocolShareReserve.json +1054 -0
- package/deployments/bsctestnet/ProtocolShareReserve_Implementation.json +1264 -0
- package/deployments/bsctestnet/ProtocolShareReserve_Proxy.json +277 -0
- package/deployments/bsctestnet/solcInputs/0e89febeebc7444140de8e67c9067d2c.json +78 -0
- package/deployments/bsctestnet/solcInputs/45a7e25696ff2229490239636d073de0.json +90 -0
- package/deployments/bsctestnet/solcInputs/c87a4970e440c0598abee31750358915.json +90 -0
- package/deployments/bsctestnet/solcInputs/f7c7133e4506082d7aa8242a8f52a4c9.json +87 -0
- package/package.json +56 -61
- package/typechain/{@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.ts → AccessControlledV8.d.ts} +125 -128
- package/typechain/ComptrollerInterface.d.ts +101 -0
- package/typechain/ContextUpgradeable.d.ts +92 -0
- package/typechain/ERC20.d.ts +441 -0
- package/typechain/IAccessControl.d.ts +333 -0
- package/typechain/IAccessControlManagerV8.d.ts +504 -0
- package/typechain/IERC20.d.ts +324 -0
- package/typechain/{@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts → IERC20Metadata.d.ts} +146 -169
- package/typechain/IERC20PermitUpgradeable.d.ts +187 -0
- package/typechain/IERC20Upgradeable.d.ts +324 -0
- package/typechain/IIncomeDestination.d.ts +122 -0
- package/typechain/IProtocolShareReserve.d.ts +127 -0
- package/typechain/IVToken.d.ts +98 -0
- package/typechain/Initializable.d.ts +92 -0
- package/typechain/MaxLoopsLimitHelper.d.ts +128 -0
- package/typechain/MockToken.d.ts +469 -0
- package/typechain/{@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.ts → Ownable2StepUpgradeable.d.ts} +102 -105
- package/typechain/OwnableUpgradeable.d.ts +193 -0
- package/typechain/PoolRegistryInterface.d.ts +121 -0
- package/typechain/{contracts/ProtocolReserve/ProtocolShareReserve.ts → ProtocolShareReserve.d.ts} +538 -486
- package/typechain/ReentrancyGuardUpgradeable.d.ts +92 -0
- package/typechain/common.d.ts +35 -0
- package/typechain/factories/{@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8__factory.ts → AccessControlledV8__factory.ts} +5 -6
- package/typechain/factories/{contracts/Interfaces/ComptrollerInterface__factory.ts → ComptrollerInterface__factory.ts} +5 -6
- package/typechain/factories/{@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts → ContextUpgradeable__factory.ts} +5 -6
- package/typechain/factories/{@openzeppelin/contracts/token/ERC20/ERC20__factory.ts → ERC20__factory.ts} +21 -33
- package/typechain/factories/{@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8__factory.ts → IAccessControlManagerV8__factory.ts} +5 -6
- package/typechain/factories/{@openzeppelin/contracts/access/IAccessControl__factory.ts → IAccessControl__factory.ts} +5 -6
- package/typechain/factories/{@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts → IERC20Metadata__factory.ts} +5 -6
- package/typechain/factories/{@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable__factory.ts → IERC20PermitUpgradeable__factory.ts} +5 -6
- package/typechain/factories/{@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable__factory.ts → IERC20Upgradeable__factory.ts} +5 -6
- package/typechain/factories/{@openzeppelin/contracts/token/ERC20/IERC20__factory.ts → IERC20__factory.ts} +4 -8
- package/typechain/factories/{contracts/Interfaces/IIncomeDestination__factory.ts → IIncomeDestination__factory.ts} +5 -6
- package/typechain/factories/{contracts/Interfaces/IProtocolShareReserve__factory.ts → IProtocolShareReserve__factory.ts} +5 -6
- package/typechain/factories/{contracts/Interfaces/IVToken__factory.ts → IVToken__factory.ts} +4 -8
- package/typechain/factories/{@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.ts → Initializable__factory.ts} +4 -8
- package/typechain/factories/{@venusprotocol/isolated-pools/contracts/MaxLoopsLimitHelper__factory.ts → MaxLoopsLimitHelper__factory.ts} +5 -6
- package/typechain/factories/{contracts/Test/Mocks/MockToken__factory.ts → MockToken__factory.ts} +24 -36
- package/typechain/factories/{@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable__factory.ts → Ownable2StepUpgradeable__factory.ts} +5 -6
- package/typechain/factories/{@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.ts → OwnableUpgradeable__factory.ts} +5 -6
- package/typechain/factories/{contracts/Interfaces/PoolRegistryInterface__factory.ts → PoolRegistryInterface__factory.ts} +5 -6
- package/typechain/factories/ProtocolShareReserve__factory.ts +869 -0
- package/typechain/factories/{@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable__factory.ts → ReentrancyGuardUpgradeable__factory.ts} +5 -6
- package/typechain/index.ts +42 -55
- package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.dbg.json +0 -4
- package/artifacts/build-info/1b4d833fe9f0ac50f7e6ab5ae3115468.json +0 -1
- package/artifacts/contracts/Interfaces/IPrime.sol/IPrime.dbg.json +0 -4
- package/artifacts/contracts/Interfaces/IPrime.sol/IPrime.json +0 -74
- package/contracts/Interfaces/IPrime.sol +0 -12
- package/contracts/interfaces/IProtocolShareReserve.sol +0 -12
- package/contracts/test/Mocks/MockToken.sol +0 -22
- package/typechain/@openzeppelin/contracts/access/IAccessControl.ts +0 -343
- package/typechain/@openzeppelin/contracts/access/index.ts +0 -4
- package/typechain/@openzeppelin/contracts/index.ts +0 -11
- package/typechain/@openzeppelin/contracts/token/ERC20/ERC20.ts +0 -466
- package/typechain/@openzeppelin/contracts/token/ERC20/IERC20.ts +0 -344
- package/typechain/@openzeppelin/contracts/token/ERC20/extensions/index.ts +0 -4
- package/typechain/@openzeppelin/contracts/token/ERC20/index.ts +0 -10
- package/typechain/@openzeppelin/contracts/token/index.ts +0 -8
- package/typechain/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.ts +0 -190
- package/typechain/@openzeppelin/contracts-upgradeable/access/index.ts +0 -5
- package/typechain/@openzeppelin/contracts-upgradeable/index.ts +0 -20
- package/typechain/@openzeppelin/contracts-upgradeable/proxy/index.ts +0 -8
- package/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.ts +0 -72
- package/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +0 -4
- package/typechain/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.ts +0 -72
- package/typechain/@openzeppelin/contracts-upgradeable/security/index.ts +0 -4
- package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.ts +0 -344
- package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.ts +0 -195
- package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts +0 -4
- package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts +0 -8
- package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +0 -9
- package/typechain/@openzeppelin/contracts-upgradeable/token/index.ts +0 -8
- package/typechain/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.ts +0 -72
- package/typechain/@openzeppelin/contracts-upgradeable/utils/index.ts +0 -4
- package/typechain/@openzeppelin/index.ts +0 -11
- package/typechain/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.ts +0 -530
- package/typechain/@venusprotocol/governance-contracts/contracts/Governance/index.ts +0 -5
- package/typechain/@venusprotocol/governance-contracts/contracts/index.ts +0 -8
- package/typechain/@venusprotocol/governance-contracts/index.ts +0 -8
- package/typechain/@venusprotocol/index.ts +0 -11
- package/typechain/@venusprotocol/isolated-pools/contracts/MaxLoopsLimitHelper.ts +0 -119
- package/typechain/@venusprotocol/isolated-pools/contracts/index.ts +0 -4
- package/typechain/@venusprotocol/isolated-pools/index.ts +0 -8
- package/typechain/common.ts +0 -48
- package/typechain/contracts/Interfaces/ComptrollerInterface.ts +0 -90
- package/typechain/contracts/Interfaces/IIncomeDestination.ts +0 -112
- package/typechain/contracts/Interfaces/IPrime.ts +0 -205
- package/typechain/contracts/Interfaces/IProtocolShareReserve.ts +0 -122
- package/typechain/contracts/Interfaces/IVToken.ts +0 -87
- package/typechain/contracts/Interfaces/PoolRegistryInterface.ts +0 -110
- package/typechain/contracts/Interfaces/index.ts +0 -9
- package/typechain/contracts/ProtocolReserve/index.ts +0 -4
- package/typechain/contracts/Test/Mocks/MockToken.ts +0 -498
- package/typechain/contracts/Test/Mocks/index.ts +0 -4
- package/typechain/contracts/Test/index.ts +0 -8
- package/typechain/contracts/index.ts +0 -14
- package/typechain/factories/@openzeppelin/contracts/access/index.ts +0 -4
- package/typechain/factories/@openzeppelin/contracts/index.ts +0 -5
- package/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts +0 -4
- package/typechain/factories/@openzeppelin/contracts/token/ERC20/index.ts +0 -6
- package/typechain/factories/@openzeppelin/contracts/token/index.ts +0 -4
- package/typechain/factories/@openzeppelin/contracts-upgradeable/access/index.ts +0 -5
- package/typechain/factories/@openzeppelin/contracts-upgradeable/index.ts +0 -8
- package/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/index.ts +0 -4
- package/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +0 -4
- package/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.ts +0 -4
- package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts +0 -4
- package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts +0 -4
- package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +0 -5
- package/typechain/factories/@openzeppelin/contracts-upgradeable/token/index.ts +0 -4
- package/typechain/factories/@openzeppelin/contracts-upgradeable/utils/index.ts +0 -4
- package/typechain/factories/@openzeppelin/index.ts +0 -5
- package/typechain/factories/@venusprotocol/governance-contracts/contracts/Governance/index.ts +0 -5
- package/typechain/factories/@venusprotocol/governance-contracts/contracts/index.ts +0 -4
- package/typechain/factories/@venusprotocol/governance-contracts/index.ts +0 -4
- package/typechain/factories/@venusprotocol/index.ts +0 -5
- package/typechain/factories/@venusprotocol/isolated-pools/contracts/index.ts +0 -4
- package/typechain/factories/@venusprotocol/isolated-pools/index.ts +0 -4
- package/typechain/factories/contracts/Interfaces/IPrime__factory.ts +0 -87
- package/typechain/factories/contracts/Interfaces/index.ts +0 -9
- package/typechain/factories/contracts/ProtocolReserve/ProtocolShareReserve__factory.ts +0 -867
- package/typechain/factories/contracts/ProtocolReserve/index.ts +0 -4
- package/typechain/factories/contracts/Test/Mocks/index.ts +0 -4
- package/typechain/factories/contracts/Test/index.ts +0 -4
- package/typechain/factories/contracts/index.ts +0 -6
- package/typechain/factories/index.ts +0 -6
- package/typechain/hardhat.d.ts +0 -231
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
ethers,
|
|
7
|
+
EventFilter,
|
|
8
|
+
Signer,
|
|
9
|
+
BigNumber,
|
|
10
|
+
BigNumberish,
|
|
11
|
+
PopulatedTransaction,
|
|
12
|
+
BaseContract,
|
|
13
|
+
ContractTransaction,
|
|
14
|
+
Overrides,
|
|
15
|
+
CallOverrides,
|
|
16
|
+
} from "ethers";
|
|
17
|
+
import { BytesLike } from "@ethersproject/bytes";
|
|
18
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
19
|
+
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
|
|
20
|
+
import type { TypedEventFilter, TypedEvent, TypedListener } from "./common";
|
|
21
|
+
|
|
22
|
+
interface IAccessControlManagerV8Interface extends ethers.utils.Interface {
|
|
23
|
+
functions: {
|
|
24
|
+
"getRoleAdmin(bytes32)": FunctionFragment;
|
|
25
|
+
"giveCallPermission(address,string,address)": FunctionFragment;
|
|
26
|
+
"grantRole(bytes32,address)": FunctionFragment;
|
|
27
|
+
"hasPermission(address,address,string)": FunctionFragment;
|
|
28
|
+
"hasRole(bytes32,address)": FunctionFragment;
|
|
29
|
+
"isAllowedToCall(address,string)": FunctionFragment;
|
|
30
|
+
"renounceRole(bytes32,address)": FunctionFragment;
|
|
31
|
+
"revokeCallPermission(address,string,address)": FunctionFragment;
|
|
32
|
+
"revokeRole(bytes32,address)": FunctionFragment;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
encodeFunctionData(
|
|
36
|
+
functionFragment: "getRoleAdmin",
|
|
37
|
+
values: [BytesLike]
|
|
38
|
+
): string;
|
|
39
|
+
encodeFunctionData(
|
|
40
|
+
functionFragment: "giveCallPermission",
|
|
41
|
+
values: [string, string, string]
|
|
42
|
+
): string;
|
|
43
|
+
encodeFunctionData(
|
|
44
|
+
functionFragment: "grantRole",
|
|
45
|
+
values: [BytesLike, string]
|
|
46
|
+
): string;
|
|
47
|
+
encodeFunctionData(
|
|
48
|
+
functionFragment: "hasPermission",
|
|
49
|
+
values: [string, string, string]
|
|
50
|
+
): string;
|
|
51
|
+
encodeFunctionData(
|
|
52
|
+
functionFragment: "hasRole",
|
|
53
|
+
values: [BytesLike, string]
|
|
54
|
+
): string;
|
|
55
|
+
encodeFunctionData(
|
|
56
|
+
functionFragment: "isAllowedToCall",
|
|
57
|
+
values: [string, string]
|
|
58
|
+
): string;
|
|
59
|
+
encodeFunctionData(
|
|
60
|
+
functionFragment: "renounceRole",
|
|
61
|
+
values: [BytesLike, string]
|
|
62
|
+
): string;
|
|
63
|
+
encodeFunctionData(
|
|
64
|
+
functionFragment: "revokeCallPermission",
|
|
65
|
+
values: [string, string, string]
|
|
66
|
+
): string;
|
|
67
|
+
encodeFunctionData(
|
|
68
|
+
functionFragment: "revokeRole",
|
|
69
|
+
values: [BytesLike, string]
|
|
70
|
+
): string;
|
|
71
|
+
|
|
72
|
+
decodeFunctionResult(
|
|
73
|
+
functionFragment: "getRoleAdmin",
|
|
74
|
+
data: BytesLike
|
|
75
|
+
): Result;
|
|
76
|
+
decodeFunctionResult(
|
|
77
|
+
functionFragment: "giveCallPermission",
|
|
78
|
+
data: BytesLike
|
|
79
|
+
): Result;
|
|
80
|
+
decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result;
|
|
81
|
+
decodeFunctionResult(
|
|
82
|
+
functionFragment: "hasPermission",
|
|
83
|
+
data: BytesLike
|
|
84
|
+
): Result;
|
|
85
|
+
decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result;
|
|
86
|
+
decodeFunctionResult(
|
|
87
|
+
functionFragment: "isAllowedToCall",
|
|
88
|
+
data: BytesLike
|
|
89
|
+
): Result;
|
|
90
|
+
decodeFunctionResult(
|
|
91
|
+
functionFragment: "renounceRole",
|
|
92
|
+
data: BytesLike
|
|
93
|
+
): Result;
|
|
94
|
+
decodeFunctionResult(
|
|
95
|
+
functionFragment: "revokeCallPermission",
|
|
96
|
+
data: BytesLike
|
|
97
|
+
): Result;
|
|
98
|
+
decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
|
|
99
|
+
|
|
100
|
+
events: {
|
|
101
|
+
"RoleAdminChanged(bytes32,bytes32,bytes32)": EventFragment;
|
|
102
|
+
"RoleGranted(bytes32,address,address)": EventFragment;
|
|
103
|
+
"RoleRevoked(bytes32,address,address)": EventFragment;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
getEvent(nameOrSignatureOrTopic: "RoleAdminChanged"): EventFragment;
|
|
107
|
+
getEvent(nameOrSignatureOrTopic: "RoleGranted"): EventFragment;
|
|
108
|
+
getEvent(nameOrSignatureOrTopic: "RoleRevoked"): EventFragment;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type RoleAdminChangedEvent = TypedEvent<
|
|
112
|
+
[string, string, string] & {
|
|
113
|
+
role: string;
|
|
114
|
+
previousAdminRole: string;
|
|
115
|
+
newAdminRole: string;
|
|
116
|
+
}
|
|
117
|
+
>;
|
|
118
|
+
|
|
119
|
+
export type RoleGrantedEvent = TypedEvent<
|
|
120
|
+
[string, string, string] & { role: string; account: string; sender: string }
|
|
121
|
+
>;
|
|
122
|
+
|
|
123
|
+
export type RoleRevokedEvent = TypedEvent<
|
|
124
|
+
[string, string, string] & { role: string; account: string; sender: string }
|
|
125
|
+
>;
|
|
126
|
+
|
|
127
|
+
export class IAccessControlManagerV8 extends BaseContract {
|
|
128
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
129
|
+
attach(addressOrName: string): this;
|
|
130
|
+
deployed(): Promise<this>;
|
|
131
|
+
|
|
132
|
+
listeners<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
133
|
+
eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>
|
|
134
|
+
): Array<TypedListener<EventArgsArray, EventArgsObject>>;
|
|
135
|
+
off<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
136
|
+
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
|
|
137
|
+
listener: TypedListener<EventArgsArray, EventArgsObject>
|
|
138
|
+
): this;
|
|
139
|
+
on<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
140
|
+
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
|
|
141
|
+
listener: TypedListener<EventArgsArray, EventArgsObject>
|
|
142
|
+
): this;
|
|
143
|
+
once<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
144
|
+
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
|
|
145
|
+
listener: TypedListener<EventArgsArray, EventArgsObject>
|
|
146
|
+
): this;
|
|
147
|
+
removeListener<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
148
|
+
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
|
|
149
|
+
listener: TypedListener<EventArgsArray, EventArgsObject>
|
|
150
|
+
): this;
|
|
151
|
+
removeAllListeners<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
152
|
+
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
|
|
153
|
+
): this;
|
|
154
|
+
|
|
155
|
+
listeners(eventName?: string): Array<Listener>;
|
|
156
|
+
off(eventName: string, listener: Listener): this;
|
|
157
|
+
on(eventName: string, listener: Listener): this;
|
|
158
|
+
once(eventName: string, listener: Listener): this;
|
|
159
|
+
removeListener(eventName: string, listener: Listener): this;
|
|
160
|
+
removeAllListeners(eventName?: string): this;
|
|
161
|
+
|
|
162
|
+
queryFilter<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
163
|
+
event: TypedEventFilter<EventArgsArray, EventArgsObject>,
|
|
164
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
165
|
+
toBlock?: string | number | undefined
|
|
166
|
+
): Promise<Array<TypedEvent<EventArgsArray & EventArgsObject>>>;
|
|
167
|
+
|
|
168
|
+
interface: IAccessControlManagerV8Interface;
|
|
169
|
+
|
|
170
|
+
functions: {
|
|
171
|
+
getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise<[string]>;
|
|
172
|
+
|
|
173
|
+
giveCallPermission(
|
|
174
|
+
contractAddress: string,
|
|
175
|
+
functionSig: string,
|
|
176
|
+
accountToPermit: string,
|
|
177
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
178
|
+
): Promise<ContractTransaction>;
|
|
179
|
+
|
|
180
|
+
grantRole(
|
|
181
|
+
role: BytesLike,
|
|
182
|
+
account: string,
|
|
183
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
184
|
+
): Promise<ContractTransaction>;
|
|
185
|
+
|
|
186
|
+
hasPermission(
|
|
187
|
+
account: string,
|
|
188
|
+
contractAddress: string,
|
|
189
|
+
functionSig: string,
|
|
190
|
+
overrides?: CallOverrides
|
|
191
|
+
): Promise<[boolean]>;
|
|
192
|
+
|
|
193
|
+
hasRole(
|
|
194
|
+
role: BytesLike,
|
|
195
|
+
account: string,
|
|
196
|
+
overrides?: CallOverrides
|
|
197
|
+
): Promise<[boolean]>;
|
|
198
|
+
|
|
199
|
+
isAllowedToCall(
|
|
200
|
+
account: string,
|
|
201
|
+
functionSig: string,
|
|
202
|
+
overrides?: CallOverrides
|
|
203
|
+
): Promise<[boolean]>;
|
|
204
|
+
|
|
205
|
+
renounceRole(
|
|
206
|
+
role: BytesLike,
|
|
207
|
+
account: string,
|
|
208
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
209
|
+
): Promise<ContractTransaction>;
|
|
210
|
+
|
|
211
|
+
revokeCallPermission(
|
|
212
|
+
contractAddress: string,
|
|
213
|
+
functionSig: string,
|
|
214
|
+
accountToRevoke: string,
|
|
215
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
216
|
+
): Promise<ContractTransaction>;
|
|
217
|
+
|
|
218
|
+
revokeRole(
|
|
219
|
+
role: BytesLike,
|
|
220
|
+
account: string,
|
|
221
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
222
|
+
): Promise<ContractTransaction>;
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise<string>;
|
|
226
|
+
|
|
227
|
+
giveCallPermission(
|
|
228
|
+
contractAddress: string,
|
|
229
|
+
functionSig: string,
|
|
230
|
+
accountToPermit: string,
|
|
231
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
232
|
+
): Promise<ContractTransaction>;
|
|
233
|
+
|
|
234
|
+
grantRole(
|
|
235
|
+
role: BytesLike,
|
|
236
|
+
account: string,
|
|
237
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
238
|
+
): Promise<ContractTransaction>;
|
|
239
|
+
|
|
240
|
+
hasPermission(
|
|
241
|
+
account: string,
|
|
242
|
+
contractAddress: string,
|
|
243
|
+
functionSig: string,
|
|
244
|
+
overrides?: CallOverrides
|
|
245
|
+
): Promise<boolean>;
|
|
246
|
+
|
|
247
|
+
hasRole(
|
|
248
|
+
role: BytesLike,
|
|
249
|
+
account: string,
|
|
250
|
+
overrides?: CallOverrides
|
|
251
|
+
): Promise<boolean>;
|
|
252
|
+
|
|
253
|
+
isAllowedToCall(
|
|
254
|
+
account: string,
|
|
255
|
+
functionSig: string,
|
|
256
|
+
overrides?: CallOverrides
|
|
257
|
+
): Promise<boolean>;
|
|
258
|
+
|
|
259
|
+
renounceRole(
|
|
260
|
+
role: BytesLike,
|
|
261
|
+
account: string,
|
|
262
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
263
|
+
): Promise<ContractTransaction>;
|
|
264
|
+
|
|
265
|
+
revokeCallPermission(
|
|
266
|
+
contractAddress: string,
|
|
267
|
+
functionSig: string,
|
|
268
|
+
accountToRevoke: string,
|
|
269
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
270
|
+
): Promise<ContractTransaction>;
|
|
271
|
+
|
|
272
|
+
revokeRole(
|
|
273
|
+
role: BytesLike,
|
|
274
|
+
account: string,
|
|
275
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
276
|
+
): Promise<ContractTransaction>;
|
|
277
|
+
|
|
278
|
+
callStatic: {
|
|
279
|
+
getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise<string>;
|
|
280
|
+
|
|
281
|
+
giveCallPermission(
|
|
282
|
+
contractAddress: string,
|
|
283
|
+
functionSig: string,
|
|
284
|
+
accountToPermit: string,
|
|
285
|
+
overrides?: CallOverrides
|
|
286
|
+
): Promise<void>;
|
|
287
|
+
|
|
288
|
+
grantRole(
|
|
289
|
+
role: BytesLike,
|
|
290
|
+
account: string,
|
|
291
|
+
overrides?: CallOverrides
|
|
292
|
+
): Promise<void>;
|
|
293
|
+
|
|
294
|
+
hasPermission(
|
|
295
|
+
account: string,
|
|
296
|
+
contractAddress: string,
|
|
297
|
+
functionSig: string,
|
|
298
|
+
overrides?: CallOverrides
|
|
299
|
+
): Promise<boolean>;
|
|
300
|
+
|
|
301
|
+
hasRole(
|
|
302
|
+
role: BytesLike,
|
|
303
|
+
account: string,
|
|
304
|
+
overrides?: CallOverrides
|
|
305
|
+
): Promise<boolean>;
|
|
306
|
+
|
|
307
|
+
isAllowedToCall(
|
|
308
|
+
account: string,
|
|
309
|
+
functionSig: string,
|
|
310
|
+
overrides?: CallOverrides
|
|
311
|
+
): Promise<boolean>;
|
|
312
|
+
|
|
313
|
+
renounceRole(
|
|
314
|
+
role: BytesLike,
|
|
315
|
+
account: string,
|
|
316
|
+
overrides?: CallOverrides
|
|
317
|
+
): Promise<void>;
|
|
318
|
+
|
|
319
|
+
revokeCallPermission(
|
|
320
|
+
contractAddress: string,
|
|
321
|
+
functionSig: string,
|
|
322
|
+
accountToRevoke: string,
|
|
323
|
+
overrides?: CallOverrides
|
|
324
|
+
): Promise<void>;
|
|
325
|
+
|
|
326
|
+
revokeRole(
|
|
327
|
+
role: BytesLike,
|
|
328
|
+
account: string,
|
|
329
|
+
overrides?: CallOverrides
|
|
330
|
+
): Promise<void>;
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
filters: {
|
|
334
|
+
"RoleAdminChanged(bytes32,bytes32,bytes32)"(
|
|
335
|
+
role?: BytesLike | null,
|
|
336
|
+
previousAdminRole?: BytesLike | null,
|
|
337
|
+
newAdminRole?: BytesLike | null
|
|
338
|
+
): TypedEventFilter<
|
|
339
|
+
[string, string, string],
|
|
340
|
+
{ role: string; previousAdminRole: string; newAdminRole: string }
|
|
341
|
+
>;
|
|
342
|
+
|
|
343
|
+
RoleAdminChanged(
|
|
344
|
+
role?: BytesLike | null,
|
|
345
|
+
previousAdminRole?: BytesLike | null,
|
|
346
|
+
newAdminRole?: BytesLike | null
|
|
347
|
+
): TypedEventFilter<
|
|
348
|
+
[string, string, string],
|
|
349
|
+
{ role: string; previousAdminRole: string; newAdminRole: string }
|
|
350
|
+
>;
|
|
351
|
+
|
|
352
|
+
"RoleGranted(bytes32,address,address)"(
|
|
353
|
+
role?: BytesLike | null,
|
|
354
|
+
account?: string | null,
|
|
355
|
+
sender?: string | null
|
|
356
|
+
): TypedEventFilter<
|
|
357
|
+
[string, string, string],
|
|
358
|
+
{ role: string; account: string; sender: string }
|
|
359
|
+
>;
|
|
360
|
+
|
|
361
|
+
RoleGranted(
|
|
362
|
+
role?: BytesLike | null,
|
|
363
|
+
account?: string | null,
|
|
364
|
+
sender?: string | null
|
|
365
|
+
): TypedEventFilter<
|
|
366
|
+
[string, string, string],
|
|
367
|
+
{ role: string; account: string; sender: string }
|
|
368
|
+
>;
|
|
369
|
+
|
|
370
|
+
"RoleRevoked(bytes32,address,address)"(
|
|
371
|
+
role?: BytesLike | null,
|
|
372
|
+
account?: string | null,
|
|
373
|
+
sender?: string | null
|
|
374
|
+
): TypedEventFilter<
|
|
375
|
+
[string, string, string],
|
|
376
|
+
{ role: string; account: string; sender: string }
|
|
377
|
+
>;
|
|
378
|
+
|
|
379
|
+
RoleRevoked(
|
|
380
|
+
role?: BytesLike | null,
|
|
381
|
+
account?: string | null,
|
|
382
|
+
sender?: string | null
|
|
383
|
+
): TypedEventFilter<
|
|
384
|
+
[string, string, string],
|
|
385
|
+
{ role: string; account: string; sender: string }
|
|
386
|
+
>;
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
estimateGas: {
|
|
390
|
+
getRoleAdmin(
|
|
391
|
+
role: BytesLike,
|
|
392
|
+
overrides?: CallOverrides
|
|
393
|
+
): Promise<BigNumber>;
|
|
394
|
+
|
|
395
|
+
giveCallPermission(
|
|
396
|
+
contractAddress: string,
|
|
397
|
+
functionSig: string,
|
|
398
|
+
accountToPermit: string,
|
|
399
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
400
|
+
): Promise<BigNumber>;
|
|
401
|
+
|
|
402
|
+
grantRole(
|
|
403
|
+
role: BytesLike,
|
|
404
|
+
account: string,
|
|
405
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
406
|
+
): Promise<BigNumber>;
|
|
407
|
+
|
|
408
|
+
hasPermission(
|
|
409
|
+
account: string,
|
|
410
|
+
contractAddress: string,
|
|
411
|
+
functionSig: string,
|
|
412
|
+
overrides?: CallOverrides
|
|
413
|
+
): Promise<BigNumber>;
|
|
414
|
+
|
|
415
|
+
hasRole(
|
|
416
|
+
role: BytesLike,
|
|
417
|
+
account: string,
|
|
418
|
+
overrides?: CallOverrides
|
|
419
|
+
): Promise<BigNumber>;
|
|
420
|
+
|
|
421
|
+
isAllowedToCall(
|
|
422
|
+
account: string,
|
|
423
|
+
functionSig: string,
|
|
424
|
+
overrides?: CallOverrides
|
|
425
|
+
): Promise<BigNumber>;
|
|
426
|
+
|
|
427
|
+
renounceRole(
|
|
428
|
+
role: BytesLike,
|
|
429
|
+
account: string,
|
|
430
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
431
|
+
): Promise<BigNumber>;
|
|
432
|
+
|
|
433
|
+
revokeCallPermission(
|
|
434
|
+
contractAddress: string,
|
|
435
|
+
functionSig: string,
|
|
436
|
+
accountToRevoke: string,
|
|
437
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
438
|
+
): Promise<BigNumber>;
|
|
439
|
+
|
|
440
|
+
revokeRole(
|
|
441
|
+
role: BytesLike,
|
|
442
|
+
account: string,
|
|
443
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
444
|
+
): Promise<BigNumber>;
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
populateTransaction: {
|
|
448
|
+
getRoleAdmin(
|
|
449
|
+
role: BytesLike,
|
|
450
|
+
overrides?: CallOverrides
|
|
451
|
+
): Promise<PopulatedTransaction>;
|
|
452
|
+
|
|
453
|
+
giveCallPermission(
|
|
454
|
+
contractAddress: string,
|
|
455
|
+
functionSig: string,
|
|
456
|
+
accountToPermit: string,
|
|
457
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
458
|
+
): Promise<PopulatedTransaction>;
|
|
459
|
+
|
|
460
|
+
grantRole(
|
|
461
|
+
role: BytesLike,
|
|
462
|
+
account: string,
|
|
463
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
464
|
+
): Promise<PopulatedTransaction>;
|
|
465
|
+
|
|
466
|
+
hasPermission(
|
|
467
|
+
account: string,
|
|
468
|
+
contractAddress: string,
|
|
469
|
+
functionSig: string,
|
|
470
|
+
overrides?: CallOverrides
|
|
471
|
+
): Promise<PopulatedTransaction>;
|
|
472
|
+
|
|
473
|
+
hasRole(
|
|
474
|
+
role: BytesLike,
|
|
475
|
+
account: string,
|
|
476
|
+
overrides?: CallOverrides
|
|
477
|
+
): Promise<PopulatedTransaction>;
|
|
478
|
+
|
|
479
|
+
isAllowedToCall(
|
|
480
|
+
account: string,
|
|
481
|
+
functionSig: string,
|
|
482
|
+
overrides?: CallOverrides
|
|
483
|
+
): Promise<PopulatedTransaction>;
|
|
484
|
+
|
|
485
|
+
renounceRole(
|
|
486
|
+
role: BytesLike,
|
|
487
|
+
account: string,
|
|
488
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
489
|
+
): Promise<PopulatedTransaction>;
|
|
490
|
+
|
|
491
|
+
revokeCallPermission(
|
|
492
|
+
contractAddress: string,
|
|
493
|
+
functionSig: string,
|
|
494
|
+
accountToRevoke: string,
|
|
495
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
496
|
+
): Promise<PopulatedTransaction>;
|
|
497
|
+
|
|
498
|
+
revokeRole(
|
|
499
|
+
role: BytesLike,
|
|
500
|
+
account: string,
|
|
501
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
502
|
+
): Promise<PopulatedTransaction>;
|
|
503
|
+
};
|
|
504
|
+
}
|