@venusprotocol/protocol-reserve 1.0.0-dev.6 → 1.0.0-dev.7
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,869 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
6
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
ProtocolShareReserve,
|
|
9
|
+
ProtocolShareReserveInterface,
|
|
10
|
+
} from "../ProtocolShareReserve";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
internalType: "address",
|
|
17
|
+
name: "_corePoolComptroller",
|
|
18
|
+
type: "address",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
internalType: "address",
|
|
22
|
+
name: "_wbnb",
|
|
23
|
+
type: "address",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
internalType: "address",
|
|
27
|
+
name: "_vbnb",
|
|
28
|
+
type: "address",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
stateMutability: "nonpayable",
|
|
32
|
+
type: "constructor",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
inputs: [],
|
|
36
|
+
name: "InvalidAddress",
|
|
37
|
+
type: "error",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
inputs: [],
|
|
41
|
+
name: "InvalidTotalPercentage",
|
|
42
|
+
type: "error",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
inputs: [
|
|
46
|
+
{
|
|
47
|
+
internalType: "uint256",
|
|
48
|
+
name: "loopsLimit",
|
|
49
|
+
type: "uint256",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
internalType: "uint256",
|
|
53
|
+
name: "requiredLoops",
|
|
54
|
+
type: "uint256",
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
name: "MaxLoopsLimitExceeded",
|
|
58
|
+
type: "error",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
inputs: [
|
|
62
|
+
{
|
|
63
|
+
internalType: "address",
|
|
64
|
+
name: "sender",
|
|
65
|
+
type: "address",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
internalType: "address",
|
|
69
|
+
name: "calledContract",
|
|
70
|
+
type: "address",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
internalType: "string",
|
|
74
|
+
name: "methodSignature",
|
|
75
|
+
type: "string",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
name: "Unauthorized",
|
|
79
|
+
type: "error",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
anonymous: false,
|
|
83
|
+
inputs: [
|
|
84
|
+
{
|
|
85
|
+
indexed: true,
|
|
86
|
+
internalType: "address",
|
|
87
|
+
name: "destination",
|
|
88
|
+
type: "address",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
indexed: true,
|
|
92
|
+
internalType: "address",
|
|
93
|
+
name: "asset",
|
|
94
|
+
type: "address",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
indexed: false,
|
|
98
|
+
internalType: "enum ProtocolShareReserve.Schema",
|
|
99
|
+
name: "schema",
|
|
100
|
+
type: "uint8",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
indexed: false,
|
|
104
|
+
internalType: "uint256",
|
|
105
|
+
name: "percent",
|
|
106
|
+
type: "uint256",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
indexed: false,
|
|
110
|
+
internalType: "uint256",
|
|
111
|
+
name: "amount",
|
|
112
|
+
type: "uint256",
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
name: "AssetReleased",
|
|
116
|
+
type: "event",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
anonymous: false,
|
|
120
|
+
inputs: [
|
|
121
|
+
{
|
|
122
|
+
indexed: true,
|
|
123
|
+
internalType: "address",
|
|
124
|
+
name: "comptroller",
|
|
125
|
+
type: "address",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
indexed: true,
|
|
129
|
+
internalType: "address",
|
|
130
|
+
name: "asset",
|
|
131
|
+
type: "address",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
indexed: false,
|
|
135
|
+
internalType: "uint256",
|
|
136
|
+
name: "amount",
|
|
137
|
+
type: "uint256",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
indexed: false,
|
|
141
|
+
internalType: "enum IProtocolShareReserve.IncomeType",
|
|
142
|
+
name: "incomeType",
|
|
143
|
+
type: "uint8",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
indexed: false,
|
|
147
|
+
internalType: "enum ProtocolShareReserve.Schema",
|
|
148
|
+
name: "schema",
|
|
149
|
+
type: "uint8",
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
name: "AssetsReservesUpdated",
|
|
153
|
+
type: "event",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
anonymous: false,
|
|
157
|
+
inputs: [
|
|
158
|
+
{
|
|
159
|
+
indexed: true,
|
|
160
|
+
internalType: "address",
|
|
161
|
+
name: "destination",
|
|
162
|
+
type: "address",
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
indexed: false,
|
|
166
|
+
internalType: "uint8",
|
|
167
|
+
name: "percentage",
|
|
168
|
+
type: "uint8",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
indexed: false,
|
|
172
|
+
internalType: "enum ProtocolShareReserve.Schema",
|
|
173
|
+
name: "schema",
|
|
174
|
+
type: "uint8",
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
name: "DistributionConfigAdded",
|
|
178
|
+
type: "event",
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
anonymous: false,
|
|
182
|
+
inputs: [
|
|
183
|
+
{
|
|
184
|
+
indexed: true,
|
|
185
|
+
internalType: "address",
|
|
186
|
+
name: "destination",
|
|
187
|
+
type: "address",
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
indexed: false,
|
|
191
|
+
internalType: "uint8",
|
|
192
|
+
name: "percentage",
|
|
193
|
+
type: "uint8",
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
indexed: false,
|
|
197
|
+
internalType: "enum ProtocolShareReserve.Schema",
|
|
198
|
+
name: "schema",
|
|
199
|
+
type: "uint8",
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
name: "DistributionConfigRemoved",
|
|
203
|
+
type: "event",
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
anonymous: false,
|
|
207
|
+
inputs: [
|
|
208
|
+
{
|
|
209
|
+
indexed: true,
|
|
210
|
+
internalType: "address",
|
|
211
|
+
name: "destination",
|
|
212
|
+
type: "address",
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
indexed: false,
|
|
216
|
+
internalType: "uint8",
|
|
217
|
+
name: "oldPercentage",
|
|
218
|
+
type: "uint8",
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
indexed: false,
|
|
222
|
+
internalType: "uint8",
|
|
223
|
+
name: "newPercentage",
|
|
224
|
+
type: "uint8",
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
indexed: false,
|
|
228
|
+
internalType: "enum ProtocolShareReserve.Schema",
|
|
229
|
+
name: "schema",
|
|
230
|
+
type: "uint8",
|
|
231
|
+
},
|
|
232
|
+
],
|
|
233
|
+
name: "DistributionConfigUpdated",
|
|
234
|
+
type: "event",
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
anonymous: false,
|
|
238
|
+
inputs: [
|
|
239
|
+
{
|
|
240
|
+
indexed: false,
|
|
241
|
+
internalType: "uint8",
|
|
242
|
+
name: "version",
|
|
243
|
+
type: "uint8",
|
|
244
|
+
},
|
|
245
|
+
],
|
|
246
|
+
name: "Initialized",
|
|
247
|
+
type: "event",
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
anonymous: false,
|
|
251
|
+
inputs: [
|
|
252
|
+
{
|
|
253
|
+
indexed: false,
|
|
254
|
+
internalType: "uint256",
|
|
255
|
+
name: "oldMaxLoopsLimit",
|
|
256
|
+
type: "uint256",
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
indexed: false,
|
|
260
|
+
internalType: "uint256",
|
|
261
|
+
name: "newmaxLoopsLimit",
|
|
262
|
+
type: "uint256",
|
|
263
|
+
},
|
|
264
|
+
],
|
|
265
|
+
name: "MaxLoopsLimitUpdated",
|
|
266
|
+
type: "event",
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
anonymous: false,
|
|
270
|
+
inputs: [
|
|
271
|
+
{
|
|
272
|
+
indexed: false,
|
|
273
|
+
internalType: "address",
|
|
274
|
+
name: "oldAccessControlManager",
|
|
275
|
+
type: "address",
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
indexed: false,
|
|
279
|
+
internalType: "address",
|
|
280
|
+
name: "newAccessControlManager",
|
|
281
|
+
type: "address",
|
|
282
|
+
},
|
|
283
|
+
],
|
|
284
|
+
name: "NewAccessControlManager",
|
|
285
|
+
type: "event",
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
anonymous: false,
|
|
289
|
+
inputs: [
|
|
290
|
+
{
|
|
291
|
+
indexed: true,
|
|
292
|
+
internalType: "address",
|
|
293
|
+
name: "previousOwner",
|
|
294
|
+
type: "address",
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
indexed: true,
|
|
298
|
+
internalType: "address",
|
|
299
|
+
name: "newOwner",
|
|
300
|
+
type: "address",
|
|
301
|
+
},
|
|
302
|
+
],
|
|
303
|
+
name: "OwnershipTransferStarted",
|
|
304
|
+
type: "event",
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
anonymous: false,
|
|
308
|
+
inputs: [
|
|
309
|
+
{
|
|
310
|
+
indexed: true,
|
|
311
|
+
internalType: "address",
|
|
312
|
+
name: "previousOwner",
|
|
313
|
+
type: "address",
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
indexed: true,
|
|
317
|
+
internalType: "address",
|
|
318
|
+
name: "newOwner",
|
|
319
|
+
type: "address",
|
|
320
|
+
},
|
|
321
|
+
],
|
|
322
|
+
name: "OwnershipTransferred",
|
|
323
|
+
type: "event",
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
anonymous: false,
|
|
327
|
+
inputs: [
|
|
328
|
+
{
|
|
329
|
+
indexed: true,
|
|
330
|
+
internalType: "address",
|
|
331
|
+
name: "oldPoolRegistry",
|
|
332
|
+
type: "address",
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
indexed: true,
|
|
336
|
+
internalType: "address",
|
|
337
|
+
name: "newPoolRegistry",
|
|
338
|
+
type: "address",
|
|
339
|
+
},
|
|
340
|
+
],
|
|
341
|
+
name: "PoolRegistryUpdated",
|
|
342
|
+
type: "event",
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
anonymous: false,
|
|
346
|
+
inputs: [
|
|
347
|
+
{
|
|
348
|
+
indexed: true,
|
|
349
|
+
internalType: "address",
|
|
350
|
+
name: "comptroller",
|
|
351
|
+
type: "address",
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
indexed: true,
|
|
355
|
+
internalType: "address",
|
|
356
|
+
name: "asset",
|
|
357
|
+
type: "address",
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
indexed: false,
|
|
361
|
+
internalType: "enum ProtocolShareReserve.Schema",
|
|
362
|
+
name: "schema",
|
|
363
|
+
type: "uint8",
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
indexed: false,
|
|
367
|
+
internalType: "uint256",
|
|
368
|
+
name: "oldBalance",
|
|
369
|
+
type: "uint256",
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
indexed: false,
|
|
373
|
+
internalType: "uint256",
|
|
374
|
+
name: "newBalance",
|
|
375
|
+
type: "uint256",
|
|
376
|
+
},
|
|
377
|
+
],
|
|
378
|
+
name: "ReservesUpdated",
|
|
379
|
+
type: "event",
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
inputs: [],
|
|
383
|
+
name: "CORE_POOL_COMPTROLLER",
|
|
384
|
+
outputs: [
|
|
385
|
+
{
|
|
386
|
+
internalType: "address",
|
|
387
|
+
name: "",
|
|
388
|
+
type: "address",
|
|
389
|
+
},
|
|
390
|
+
],
|
|
391
|
+
stateMutability: "view",
|
|
392
|
+
type: "function",
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
inputs: [],
|
|
396
|
+
name: "MAX_PERCENT",
|
|
397
|
+
outputs: [
|
|
398
|
+
{
|
|
399
|
+
internalType: "uint8",
|
|
400
|
+
name: "",
|
|
401
|
+
type: "uint8",
|
|
402
|
+
},
|
|
403
|
+
],
|
|
404
|
+
stateMutability: "view",
|
|
405
|
+
type: "function",
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
inputs: [],
|
|
409
|
+
name: "WBNB",
|
|
410
|
+
outputs: [
|
|
411
|
+
{
|
|
412
|
+
internalType: "address",
|
|
413
|
+
name: "",
|
|
414
|
+
type: "address",
|
|
415
|
+
},
|
|
416
|
+
],
|
|
417
|
+
stateMutability: "view",
|
|
418
|
+
type: "function",
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
inputs: [],
|
|
422
|
+
name: "acceptOwnership",
|
|
423
|
+
outputs: [],
|
|
424
|
+
stateMutability: "nonpayable",
|
|
425
|
+
type: "function",
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
inputs: [],
|
|
429
|
+
name: "accessControlManager",
|
|
430
|
+
outputs: [
|
|
431
|
+
{
|
|
432
|
+
internalType: "contract IAccessControlManagerV8",
|
|
433
|
+
name: "",
|
|
434
|
+
type: "address",
|
|
435
|
+
},
|
|
436
|
+
],
|
|
437
|
+
stateMutability: "view",
|
|
438
|
+
type: "function",
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
inputs: [
|
|
442
|
+
{
|
|
443
|
+
components: [
|
|
444
|
+
{
|
|
445
|
+
internalType: "enum ProtocolShareReserve.Schema",
|
|
446
|
+
name: "schema",
|
|
447
|
+
type: "uint8",
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
internalType: "uint8",
|
|
451
|
+
name: "percentage",
|
|
452
|
+
type: "uint8",
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
internalType: "address",
|
|
456
|
+
name: "destination",
|
|
457
|
+
type: "address",
|
|
458
|
+
},
|
|
459
|
+
],
|
|
460
|
+
internalType: "struct ProtocolShareReserve.DistributionConfig[]",
|
|
461
|
+
name: "configs",
|
|
462
|
+
type: "tuple[]",
|
|
463
|
+
},
|
|
464
|
+
],
|
|
465
|
+
name: "addOrUpdateDistributionConfigs",
|
|
466
|
+
outputs: [],
|
|
467
|
+
stateMutability: "nonpayable",
|
|
468
|
+
type: "function",
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
inputs: [
|
|
472
|
+
{
|
|
473
|
+
internalType: "address",
|
|
474
|
+
name: "",
|
|
475
|
+
type: "address",
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
internalType: "address",
|
|
479
|
+
name: "",
|
|
480
|
+
type: "address",
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
internalType: "enum ProtocolShareReserve.Schema",
|
|
484
|
+
name: "",
|
|
485
|
+
type: "uint8",
|
|
486
|
+
},
|
|
487
|
+
],
|
|
488
|
+
name: "assetsReserves",
|
|
489
|
+
outputs: [
|
|
490
|
+
{
|
|
491
|
+
internalType: "uint256",
|
|
492
|
+
name: "",
|
|
493
|
+
type: "uint256",
|
|
494
|
+
},
|
|
495
|
+
],
|
|
496
|
+
stateMutability: "view",
|
|
497
|
+
type: "function",
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
inputs: [
|
|
501
|
+
{
|
|
502
|
+
internalType: "uint256",
|
|
503
|
+
name: "",
|
|
504
|
+
type: "uint256",
|
|
505
|
+
},
|
|
506
|
+
],
|
|
507
|
+
name: "distributionTargets",
|
|
508
|
+
outputs: [
|
|
509
|
+
{
|
|
510
|
+
internalType: "enum ProtocolShareReserve.Schema",
|
|
511
|
+
name: "schema",
|
|
512
|
+
type: "uint8",
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
internalType: "uint8",
|
|
516
|
+
name: "percentage",
|
|
517
|
+
type: "uint8",
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
internalType: "address",
|
|
521
|
+
name: "destination",
|
|
522
|
+
type: "address",
|
|
523
|
+
},
|
|
524
|
+
],
|
|
525
|
+
stateMutability: "view",
|
|
526
|
+
type: "function",
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
inputs: [
|
|
530
|
+
{
|
|
531
|
+
internalType: "address",
|
|
532
|
+
name: "destination",
|
|
533
|
+
type: "address",
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
internalType: "enum ProtocolShareReserve.Schema",
|
|
537
|
+
name: "schema",
|
|
538
|
+
type: "uint8",
|
|
539
|
+
},
|
|
540
|
+
],
|
|
541
|
+
name: "getPercentageDistribution",
|
|
542
|
+
outputs: [
|
|
543
|
+
{
|
|
544
|
+
internalType: "uint256",
|
|
545
|
+
name: "",
|
|
546
|
+
type: "uint256",
|
|
547
|
+
},
|
|
548
|
+
],
|
|
549
|
+
stateMutability: "view",
|
|
550
|
+
type: "function",
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
inputs: [
|
|
554
|
+
{
|
|
555
|
+
internalType: "address",
|
|
556
|
+
name: "comptroller",
|
|
557
|
+
type: "address",
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
internalType: "enum ProtocolShareReserve.Schema",
|
|
561
|
+
name: "schema",
|
|
562
|
+
type: "uint8",
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
internalType: "address",
|
|
566
|
+
name: "destination",
|
|
567
|
+
type: "address",
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
internalType: "address",
|
|
571
|
+
name: "asset",
|
|
572
|
+
type: "address",
|
|
573
|
+
},
|
|
574
|
+
],
|
|
575
|
+
name: "getUnreleasedFunds",
|
|
576
|
+
outputs: [
|
|
577
|
+
{
|
|
578
|
+
internalType: "uint256",
|
|
579
|
+
name: "",
|
|
580
|
+
type: "uint256",
|
|
581
|
+
},
|
|
582
|
+
],
|
|
583
|
+
stateMutability: "view",
|
|
584
|
+
type: "function",
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
inputs: [
|
|
588
|
+
{
|
|
589
|
+
internalType: "address",
|
|
590
|
+
name: "_accessControlManager",
|
|
591
|
+
type: "address",
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
internalType: "uint256",
|
|
595
|
+
name: "_loopsLimit",
|
|
596
|
+
type: "uint256",
|
|
597
|
+
},
|
|
598
|
+
],
|
|
599
|
+
name: "initialize",
|
|
600
|
+
outputs: [],
|
|
601
|
+
stateMutability: "nonpayable",
|
|
602
|
+
type: "function",
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
inputs: [],
|
|
606
|
+
name: "maxLoopsLimit",
|
|
607
|
+
outputs: [
|
|
608
|
+
{
|
|
609
|
+
internalType: "uint256",
|
|
610
|
+
name: "",
|
|
611
|
+
type: "uint256",
|
|
612
|
+
},
|
|
613
|
+
],
|
|
614
|
+
stateMutability: "view",
|
|
615
|
+
type: "function",
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
inputs: [],
|
|
619
|
+
name: "owner",
|
|
620
|
+
outputs: [
|
|
621
|
+
{
|
|
622
|
+
internalType: "address",
|
|
623
|
+
name: "",
|
|
624
|
+
type: "address",
|
|
625
|
+
},
|
|
626
|
+
],
|
|
627
|
+
stateMutability: "view",
|
|
628
|
+
type: "function",
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
inputs: [],
|
|
632
|
+
name: "pendingOwner",
|
|
633
|
+
outputs: [
|
|
634
|
+
{
|
|
635
|
+
internalType: "address",
|
|
636
|
+
name: "",
|
|
637
|
+
type: "address",
|
|
638
|
+
},
|
|
639
|
+
],
|
|
640
|
+
stateMutability: "view",
|
|
641
|
+
type: "function",
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
inputs: [],
|
|
645
|
+
name: "poolRegistry",
|
|
646
|
+
outputs: [
|
|
647
|
+
{
|
|
648
|
+
internalType: "address",
|
|
649
|
+
name: "",
|
|
650
|
+
type: "address",
|
|
651
|
+
},
|
|
652
|
+
],
|
|
653
|
+
stateMutability: "view",
|
|
654
|
+
type: "function",
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
inputs: [
|
|
658
|
+
{
|
|
659
|
+
internalType: "address",
|
|
660
|
+
name: "comptroller",
|
|
661
|
+
type: "address",
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
internalType: "address[]",
|
|
665
|
+
name: "assets",
|
|
666
|
+
type: "address[]",
|
|
667
|
+
},
|
|
668
|
+
],
|
|
669
|
+
name: "releaseFunds",
|
|
670
|
+
outputs: [],
|
|
671
|
+
stateMutability: "nonpayable",
|
|
672
|
+
type: "function",
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
inputs: [
|
|
676
|
+
{
|
|
677
|
+
internalType: "enum ProtocolShareReserve.Schema",
|
|
678
|
+
name: "schema",
|
|
679
|
+
type: "uint8",
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
internalType: "address",
|
|
683
|
+
name: "destination",
|
|
684
|
+
type: "address",
|
|
685
|
+
},
|
|
686
|
+
],
|
|
687
|
+
name: "removeDistributionConfig",
|
|
688
|
+
outputs: [],
|
|
689
|
+
stateMutability: "nonpayable",
|
|
690
|
+
type: "function",
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
inputs: [],
|
|
694
|
+
name: "renounceOwnership",
|
|
695
|
+
outputs: [],
|
|
696
|
+
stateMutability: "nonpayable",
|
|
697
|
+
type: "function",
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
inputs: [
|
|
701
|
+
{
|
|
702
|
+
internalType: "address",
|
|
703
|
+
name: "accessControlManager_",
|
|
704
|
+
type: "address",
|
|
705
|
+
},
|
|
706
|
+
],
|
|
707
|
+
name: "setAccessControlManager",
|
|
708
|
+
outputs: [],
|
|
709
|
+
stateMutability: "nonpayable",
|
|
710
|
+
type: "function",
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
inputs: [
|
|
714
|
+
{
|
|
715
|
+
internalType: "address",
|
|
716
|
+
name: "_poolRegistry",
|
|
717
|
+
type: "address",
|
|
718
|
+
},
|
|
719
|
+
],
|
|
720
|
+
name: "setPoolRegistry",
|
|
721
|
+
outputs: [],
|
|
722
|
+
stateMutability: "nonpayable",
|
|
723
|
+
type: "function",
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
inputs: [
|
|
727
|
+
{
|
|
728
|
+
internalType: "address",
|
|
729
|
+
name: "",
|
|
730
|
+
type: "address",
|
|
731
|
+
},
|
|
732
|
+
],
|
|
733
|
+
name: "totalAssetReserve",
|
|
734
|
+
outputs: [
|
|
735
|
+
{
|
|
736
|
+
internalType: "uint256",
|
|
737
|
+
name: "",
|
|
738
|
+
type: "uint256",
|
|
739
|
+
},
|
|
740
|
+
],
|
|
741
|
+
stateMutability: "view",
|
|
742
|
+
type: "function",
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
inputs: [],
|
|
746
|
+
name: "totalDistributions",
|
|
747
|
+
outputs: [
|
|
748
|
+
{
|
|
749
|
+
internalType: "uint256",
|
|
750
|
+
name: "",
|
|
751
|
+
type: "uint256",
|
|
752
|
+
},
|
|
753
|
+
],
|
|
754
|
+
stateMutability: "view",
|
|
755
|
+
type: "function",
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
inputs: [
|
|
759
|
+
{
|
|
760
|
+
internalType: "address",
|
|
761
|
+
name: "newOwner",
|
|
762
|
+
type: "address",
|
|
763
|
+
},
|
|
764
|
+
],
|
|
765
|
+
name: "transferOwnership",
|
|
766
|
+
outputs: [],
|
|
767
|
+
stateMutability: "nonpayable",
|
|
768
|
+
type: "function",
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
inputs: [
|
|
772
|
+
{
|
|
773
|
+
internalType: "address",
|
|
774
|
+
name: "comptroller",
|
|
775
|
+
type: "address",
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
internalType: "address",
|
|
779
|
+
name: "asset",
|
|
780
|
+
type: "address",
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
internalType: "enum IProtocolShareReserve.IncomeType",
|
|
784
|
+
name: "incomeType",
|
|
785
|
+
type: "uint8",
|
|
786
|
+
},
|
|
787
|
+
],
|
|
788
|
+
name: "updateAssetsState",
|
|
789
|
+
outputs: [],
|
|
790
|
+
stateMutability: "nonpayable",
|
|
791
|
+
type: "function",
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
inputs: [],
|
|
795
|
+
name: "vBNB",
|
|
796
|
+
outputs: [
|
|
797
|
+
{
|
|
798
|
+
internalType: "address",
|
|
799
|
+
name: "",
|
|
800
|
+
type: "address",
|
|
801
|
+
},
|
|
802
|
+
],
|
|
803
|
+
stateMutability: "view",
|
|
804
|
+
type: "function",
|
|
805
|
+
},
|
|
806
|
+
];
|
|
807
|
+
|
|
808
|
+
const _bytecode =
|
|
809
|
+
"0x60e06040523480156200001157600080fd5b5060405162002ff438038062002ff48339810160408190526200003491620001b6565b6001600160a01b0383166200005c5760405163e6c4247b60e01b815260040160405180910390fd5b6001600160a01b038216620000845760405163e6c4247b60e01b815260040160405180910390fd5b6001600160a01b038116620000ac5760405163e6c4247b60e01b815260040160405180910390fd5b6001600160a01b0380841660805282811660a052811660c052620000cf620000d8565b50505062000200565b600054610100900460ff1615620001455760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff9081161462000197576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b80516001600160a01b0381168114620001b157600080fd5b919050565b600080600060608486031215620001cc57600080fd5b620001d78462000199565b9250620001e76020850162000199565b9150620001f76040850162000199565b90509250925092565b60805160a05160c051612dbd620002376000396000610207015260006103070152600081816103c701526104f10152612dbd6000f3fe608060405234801561001057600080fd5b50600436106101a35760003560e01c8063893ffe98116100ee578063b4a0bdf311610097578063e30c397811610071578063e30c39781461039e578063f2fde38b146103af578063fa7b81a0146103c2578063fc31116a146103e957600080fd5b8063b4a0bdf314610371578063be26317e14610382578063cd6dc6871461038b57600080fd5b8063966961f0116100c8578063966961f014610329578063aea211211461033c578063afcff50f1461035d57600080fd5b8063893ffe98146102de5780638da5cb5b146102f15780638dd950021461030257600080fd5b80634f429f361161015057806379ba50971161012a57806379ba5097146102b05780637b77cd6a146102b8578063840a05e0146102cb57600080fd5b80634f429f36146102635780635db6da1214610276578063715018a6146102a857600080fd5b806316faecec1161018157806316faecec146101ef57806333e1567f14610202578063392ee7121461024157600080fd5b80630e32cb86146101a85780631036bbe2146101bd578063163db71b146101dc575b600080fd5b6101bb6101b63660046125ef565b6103fc565b005b6101c5606481565b60405160ff90911681526020015b60405180910390f35b610130545b6040519081526020016101d3565b6101bb6101fd366004612620565b610410565b6102297f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101d3565b61025461024f36600461266b565b6107bd565b6040516101d3939291906126ea565b6101bb610271366004612717565b6107fa565b6101e1610284366004612620565b61012e60209081526000938452604080852082529284528284209052825290205481565b6101bb610b37565b6101bb610b4b565b6101bb6102c63660046125ef565b610bdb565b6101bb6102d9366004612750565b610c99565b6101e16102ec3660046127c5565b610fdb565b6033546001600160a01b0316610229565b6102297f000000000000000000000000000000000000000000000000000000000000000081565b6101e1610337366004612821565b6110fa565b6101e161034a3660046125ef565b61012f6020526000908152604090205481565b61012d54610229906001600160a01b031681565b6097546001600160a01b0316610229565b6101e160fb5481565b6101bb61039936600461284f565b6111ec565b6065546001600160a01b0316610229565b6101bb6103bd3660046125ef565b611377565b6102297f000000000000000000000000000000000000000000000000000000000000000081565b6101bb6103f736600461287b565b611400565b610404611456565b61040d816114b0565b50565b6104186115a6565b826001600160a01b0316627e3dd26040518163ffffffff1660e01b8152600401602060405180830381865afa158015610455573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104799190612903565b6104af576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0382166104ef576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b0316141580156105c8575061012d546040517f266e0a7f0000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301528481166024830152600092169063266e0a7f90604401602060405180830381865afa158015610599573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105bd9190612925565b6001600160a01b0316145b156105ff576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061060a826115ff565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529091506000906001600160a01b038516906370a0823190602401602060405180830381865afa15801561066d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106919190612942565b6001600160a01b038516600090815261012f6020526040902054909150808211156107ab576001600160a01b03808716600090815261012e602090815260408083209389168352929052908120828403918291908660018111156106f7576106f7612684565b600181111561070857610708612684565b81526020019081526020016000206000828254610725919061298a565b90915550506001600160a01b038616600090815261012f60205260408120805483929061075390849061298a565b92505081905550856001600160a01b0316876001600160a01b03167fa46b2431e663cf7b50c9d5129aff85d2394ecfd447b7ccba83986510a9d945ea8388886040516107a1939291906129a2565b60405180910390a3505b5050506107b8600160c955565b505050565b61013081815481106107ce57600080fd5b60009182526020909120015460ff8082169250610100820416906201000090046001600160a01b031683565b61081b604051806060016040528060288152602001612d2c6028913961162a565b600080805b610130548110156108c45760006101308281548110610841576108416129cf565b6000918252602090912001805490915060ff16600181111561086557610865612684565b86600181111561087757610877612684565b148015610896575080546001600160a01b038681166201000090920416145b80156108a957508054610100900460ff16155b156108bb5760019250819350506108c4565b50600101610820565b508015610b295761013082815481106108df576108df6129cf565b9060005260206000200160000160029054906101000a90046001600160a01b03166001600160a01b03167f1ac2d5fa1b44dc6086053de4a872e5bcdf9a98e5069a325572aef982a1b743bb610130848154811061093e5761093e6129cf565b9060005260206000200160000160019054906101000a900460ff16610130858154811061096d5761096d6129cf565b60009182526020909120015460405161098a929160ff16906129fe565b60405180910390a261013080546109a390600190612a1e565b815481106109b3576109b36129cf565b9060005260206000200161013083815481106109d1576109d16129cf565b60009182526020909120825491018054909160ff169082907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660018381811115610a1e57610a1e612684565b02179055508154815460ff61010092839004169091027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff82168117835592546001600160a01b03620100009182900416027fffffffffffffffffffff0000000000000000000000000000000000000000ffff9093167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617919091179055610130805480610ad057610ad0612a35565b60008281526020902081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffff000000000000000000000000000000000000000000001690550190555b610b316116f6565b50505050565b610b3f611456565b610b4960006118c7565b565b60655433906001600160a01b03168114610bd25760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61040d816118c7565b610be3611456565b6001600160a01b038116610c23576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61012d546040516001600160a01b038084169216907fa87b964d321035d2165e484ff4b722dd6eae30606c0b98887d2ed1a34e594bfe90600090a361012d80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b610ca16115a6565b610cc2604051806060016040528060348152602001612d546034913961162a565b60005b81811015610fb7576000838383818110610ce157610ce16129cf565b905060600201803603810190610cf79190612a93565b60408101519091506001600160a01b0316610d3e576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61013054600090815b81811015610e695760006101308281548110610d6557610d656129cf565b6000918252602090912001805490915060ff166001811115610d8957610d89612684565b85516001811115610d9c57610d9c612684565b148015610dc05750604085015181546201000090046001600160a01b039081169116145b15610e605760408581015182546020880151885193516001600160a01b03909316937f7b9512a7d53862cbbb1d78873d1809728aa9241f63fdf818e3525869ab0d03ce93610e1893610100900460ff16929190612b32565b60405180910390a26020850151815460ff909116610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff90911617905560019250610e69565b50600101610d47565b5081610fa95761013080546001818101835560009290925284517f2f605e086faac1d93117bbfbc18835d434e9405fadc1ca66faf4b864746daf349091018054869391929183917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016908381811115610ee457610ee4612684565b021790555060208281015182546040948501517fffffffffffffffffffff000000000000000000000000000000000000000000ff90911661010060ff909316929092027fffffffffffffffffffff0000000000000000000000000000000000000000ffff1691909117620100006001600160a01b03928316021790925585830151908601518651935191909216927fc4584834cab3196e27e1b931e874fecbfada0785b639b02ed649d08c8e3ca85792610fa0929091906129fe565b60405180910390a25b836001019350505050610cc5565b50610fc06116f6565b61013054610fcd906118f8565b610fd7600160c955565b5050565b61013054600090815b818110156110ef5760006101308281548110611002576110026129cf565b90600052602060002001905086600181111561102057611020612684565b815460ff16600181111561103657611036612684565b148015611055575080546001600160a01b038781166201000090920416145b156110e6576001600160a01b03808916600090815261012e6020908152604080832093891683529290529081208189600181111561109557611095612684565b60018111156110a6576110a6612684565b815260208101919091526040016000205482549091506064906110d190610100900460ff1683612b4d565b6110db9190612b8a565b9450505050506110f2565b50600101610fe4565b50505b949350505050565b61013054600090815b818110156111e35760006101308281548110611121576111216129cf565b60009182526020909120604080516060810190915291018054829060ff16600181111561115057611150612684565b600181111561116157611161612684565b81529054610100810460ff1660208301526201000090046001600160a01b039081166040928301529082015191925087811691161480156111c457508460018111156111af576111af612684565b815160018111156111c2576111c2612684565b145b156111da576020015160ff1692506111e6915050565b50600101611103565b50505b92915050565b600054610100900460ff161580801561120c5750600054600160ff909116105b806112265750303b158015611226575060005460ff166001145b6112985760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610bc9565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905580156112f657600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b6112ff83611942565b6113076119d0565b61131082611a55565b80156107b857600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a1505050565b61137f611456565b606580546001600160a01b0383167fffffffffffffffffffffffff000000000000000000000000000000000000000090911681179091556113c86033546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6114086115a6565b60005b8181101561144b5761144384848484818110611429576114296129cf565b905060200201602081019061143e91906125ef565b611b0a565b60010161140b565b506107b8600160c955565b6033546001600160a01b03163314610b495760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bc9565b6001600160a01b03811661152c5760405162461bcd60e51b815260206004820152602560248201527f696e76616c696420616365737320636f6e74726f6c206d616e6167657220616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610bc9565b609780546001600160a01b038381167fffffffffffffffffffffffff000000000000000000000000000000000000000083168117909355604080519190921680825260208201939093527f66fd58e82f7b31a2a5c30e0888f3093efe4e111b00cd2b0c31fe014601293aa091015b60405180910390a15050565b600260c954036115f85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bc9565b600260c955565b6001600082600181111561161557611615612684565b0361161e575060005b919050565b600160c955565b6097546040517f18c5e8ab0000000000000000000000000000000000000000000000000000000081526000916001600160a01b0316906318c5e8ab906116769033908690600401612c3b565b602060405180830381865afa158015611693573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116b79190612903565b905080610fd7573330836040517f4a3fa293000000000000000000000000000000000000000000000000000000008152600401610bc993929190612c5d565b600061170360018061298a565b905060008167ffffffffffffffff81111561172057611720612a64565b604051908082528060200260200182016040528015611749578160200160208202803683370190505b506101305490915060005b8181101561182f5760006101308281548110611772576117726129cf565b60009182526020909120604080516060810190915291018054829060ff1660018111156117a1576117a1612684565b60018111156117b2576117b2612684565b81529054610100810460ff16602080840191909152620100009091046001600160a01b0316604090920191909152810151815191925090859060018111156117fc576117fc612684565b8151811061180c5761180c6129cf565b602002602001018181516118209190612c92565b60ff1690525050600101611754565b5060005b83811015610b3157606460ff16838281518110611852576118526129cf565b602002602001015160ff16141580156118885750828181518110611878576118786129cf565b602002602001015160ff16600014155b156118bf576040517f0b8ad7f100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600101611833565b606580547fffffffffffffffffffffffff000000000000000000000000000000000000000016905561040d816120e0565b60fb5481111561040d5760fb546040517ff257f636000000000000000000000000000000000000000000000000000000008152600481019190915260248101829052604401610bc9565b600054610100900460ff166119bf5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610bc9565b6119c761214a565b61040d816121cf565b600054610100900460ff16611a4d5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610bc9565b610b4961224c565b60fb548111611acc5760405162461bcd60e51b815260206004820152602260248201527f436f6d7074726f6c6c65723a20496e76616c6964206d61784c6f6f70734c696d60448201527f69740000000000000000000000000000000000000000000000000000000000006064820152608401610bc9565b60fb80549082905560408051828152602081018490527fc2d09fef144f7c8a86f71ea459f8fc17f675768eb1ae369cbd77fb31d467aafa910161159a565b6000611b1760018061298a565b905060008167ffffffffffffffff811115611b3457611b34612a64565b604051908082528060200260200182016040528015611b5d578160200160208202803683370190505b5090506000805b83811015611c25576001600160a01b03808716600090815261012e60209081526040808320938916835292905290812090826001811115611ba757611ba7612684565b6001811115611bb857611bb8612684565b6001811115611bc957611bc9612684565b815260200190815260200160002054838281518110611bea57611bea6129cf565b602002602001018181525050828181518110611c0857611c086129cf565b602002602001015182611c1b919061298a565b9150600101611b64565b5080600003611c35575050505050565b60008367ffffffffffffffff811115611c5057611c50612a64565b604051908082528060200260200182016040528015611c79578160200160208202803683370190505b50905060005b61013054811015611eab5760006101308281548110611ca057611ca06129cf565b60009182526020909120604080516060810190915291018054829060ff166001811115611ccf57611ccf612684565b6001811115611ce057611ce0612684565b81529054610100810460ff908116602080850191909152620100009092046001600160a01b03166040909301929092528201518251929350600092606492919091169088906001811115611d3657611d36612684565b81518110611d4657611d466129cf565b6020026020010151611d589190612b4d565b611d629190612b8a565b9050808483600001516001811115611d7c57611d7c612684565b81518110611d8c57611d8c6129cf565b60200260200101818151611da0919061298a565b9052508015611ea1576040820151611dc3906001600160a01b038a1690836122c9565b60408083015190517faac59a750000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301528a811660248301529091169063aac59a7590604401600060405180830381600087803b158015611e2d57600080fd5b505af1158015611e41573d6000803e3d6000fd5b50505050876001600160a01b031682604001516001600160a01b03167f09f71e7b22d78540ee9a42f09917a9d62f46735cb0dfa70d6bab27866d9cb5008460000151856020015185604051611e9893929190612cb7565b60405180910390a35b5050600101611c7f565b5060008467ffffffffffffffff811115611ec757611ec7612a64565b604051908082528060200260200182016040528015611ef0578160200160208202803683370190505b50905060005b858110156120d657828181518110611f1057611f106129cf565b6020026020010151858281518110611f2a57611f2a6129cf565b6020026020010151611f3c9190612a1e565b828281518110611f4e57611f4e6129cf565b602002602001018181525050818181518110611f6c57611f6c6129cf565b6020908102919091018101516001600160a01b03808b16600090815261012e84526040808220928c1682529190935282209091836001811115611fb157611fb1612684565b6001811115611fc257611fc2612684565b6001811115611fd357611fd3612684565b815260200190815260200160002081905550828181518110611ff757611ff76129cf565b602002602001015161012f6000896001600160a01b03166001600160a01b03168152602001908152602001600020546120309190612a1e565b6001600160a01b03808916600081815261012f602052604090209290925589167f7d881f3d6246a6a2b97b121b8ba093c17497912c68e8b2bca6108528e91df3ca83600181111561208357612083612684565b888581518110612095576120956129cf565b60200260200101518686815181106120af576120af6129cf565b60200260200101516040516120c693929190612cdb565b60405180910390a3600101611ef6565b5050505050505050565b603380546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166121c75760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610bc9565b610b49612349565b600054610100900460ff166104045760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610bc9565b600054610100900460ff166116235760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610bc9565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526107b89084906123cf565b600054610100900460ff166123c65760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610bc9565b610b49336118c7565b6000612424826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166124b79092919063ffffffff16565b90508051600014806124455750808060200190518101906124459190612903565b6107b85760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610bc9565b60606110f2848460008585600080866001600160a01b031685876040516124de9190612cfc565b60006040518083038185875af1925050503d806000811461251b576040519150601f19603f3d011682016040523d82523d6000602084013e612520565b606091505b50915091506125318783838761253c565b979650505050505050565b606083156125ab5782516000036125a4576001600160a01b0385163b6125a45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610bc9565b50816110f2565b6110f283838151156125c05781518083602001fd5b8060405162461bcd60e51b8152600401610bc99190612d18565b6001600160a01b038116811461040d57600080fd5b60006020828403121561260157600080fd5b813561260c816125da565b9392505050565b6002811061040d57600080fd5b60008060006060848603121561263557600080fd5b8335612640816125da565b92506020840135612650816125da565b9150604084013561266081612613565b809150509250925092565b60006020828403121561267d57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6002811061040d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b606081016126f7856126b3565b93815260ff9290921660208301526001600160a01b031660409091015290565b6000806040838503121561272a57600080fd5b823561273581612613565b91506020830135612745816125da565b809150509250929050565b6000806020838503121561276357600080fd5b823567ffffffffffffffff8082111561277b57600080fd5b818501915085601f83011261278f57600080fd5b81358181111561279e57600080fd5b8660206060830285010111156127b357600080fd5b60209290920196919550909350505050565b600080600080608085870312156127db57600080fd5b84356127e6816125da565b935060208501356127f681612613565b92506040850135612806816125da565b91506060850135612816816125da565b939692955090935050565b6000806040838503121561283457600080fd5b823561283f816125da565b9150602083013561274581612613565b6000806040838503121561286257600080fd5b823561286d816125da565b946020939093013593505050565b60008060006040848603121561289057600080fd5b833561289b816125da565b9250602084013567ffffffffffffffff808211156128b857600080fd5b818601915086601f8301126128cc57600080fd5b8135818111156128db57600080fd5b8760208260051b85010111156128f057600080fd5b6020830194508093505050509250925092565b60006020828403121561291557600080fd5b8151801515811461260c57600080fd5b60006020828403121561293757600080fd5b815161260c816125da565b60006020828403121561295457600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000821982111561299d5761299d61295b565b500190565b838152606081016129b2846126b3565b8360208301526129c1836126b3565b826040830152949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60ff8316815260408101612a11836126b3565b8260208301529392505050565b600082821015612a3057612a3061295b565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060608284031215612aa557600080fd5b6040516060810181811067ffffffffffffffff82111715612aef577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040528235612afd81612613565b8152602083013560ff81168114612b1357600080fd5b60208201526040830135612b26816125da565b60408201529392505050565b60ff848116825283166020820152606081016129c1836126b3565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612b8557612b8561295b565b500290565b600082612bc0577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60005b83811015612be0578181015183820152602001612bc8565b83811115610b315750506000910152565b60008151808452612c09816020860160208601612bc5565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6001600160a01b03831681526040602082015260006110f26040830184612bf1565b60006001600160a01b03808616835280851660208401525060606040830152612c896060830184612bf1565b95945050505050565b600060ff821660ff84168060ff03821115612caf57612caf61295b565b019392505050565b60608101612cc4856126b3565b93815260ff92909216602083015260409091015290565b60608101612ce8856126b3565b938152602081019290925260409091015290565b60008251612d0e818460208701612bc5565b9190910192915050565b60208152600061260c6020830184612bf156fe72656d6f7665446973747269627574696f6e436f6e66696728536368656d612c61646472657373296164644f72557064617465446973747269627574696f6e436f6e6669677328446973747269627574696f6e436f6e6669675b5d29a26469706673582212202d8ce9e612aa426bd24aad9f177c9140f44085b5595830f8a50674c26bce63d064736f6c634300080d0033";
|
|
810
|
+
|
|
811
|
+
export class ProtocolShareReserve__factory extends ContractFactory {
|
|
812
|
+
constructor(
|
|
813
|
+
...args: [signer: Signer] | ConstructorParameters<typeof ContractFactory>
|
|
814
|
+
) {
|
|
815
|
+
if (args.length === 1) {
|
|
816
|
+
super(_abi, _bytecode, args[0]);
|
|
817
|
+
} else {
|
|
818
|
+
super(...args);
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
deploy(
|
|
823
|
+
_corePoolComptroller: string,
|
|
824
|
+
_wbnb: string,
|
|
825
|
+
_vbnb: string,
|
|
826
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
827
|
+
): Promise<ProtocolShareReserve> {
|
|
828
|
+
return super.deploy(
|
|
829
|
+
_corePoolComptroller,
|
|
830
|
+
_wbnb,
|
|
831
|
+
_vbnb,
|
|
832
|
+
overrides || {}
|
|
833
|
+
) as Promise<ProtocolShareReserve>;
|
|
834
|
+
}
|
|
835
|
+
getDeployTransaction(
|
|
836
|
+
_corePoolComptroller: string,
|
|
837
|
+
_wbnb: string,
|
|
838
|
+
_vbnb: string,
|
|
839
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
840
|
+
): TransactionRequest {
|
|
841
|
+
return super.getDeployTransaction(
|
|
842
|
+
_corePoolComptroller,
|
|
843
|
+
_wbnb,
|
|
844
|
+
_vbnb,
|
|
845
|
+
overrides || {}
|
|
846
|
+
);
|
|
847
|
+
}
|
|
848
|
+
attach(address: string): ProtocolShareReserve {
|
|
849
|
+
return super.attach(address) as ProtocolShareReserve;
|
|
850
|
+
}
|
|
851
|
+
connect(signer: Signer): ProtocolShareReserve__factory {
|
|
852
|
+
return super.connect(signer) as ProtocolShareReserve__factory;
|
|
853
|
+
}
|
|
854
|
+
static readonly bytecode = _bytecode;
|
|
855
|
+
static readonly abi = _abi;
|
|
856
|
+
static createInterface(): ProtocolShareReserveInterface {
|
|
857
|
+
return new utils.Interface(_abi) as ProtocolShareReserveInterface;
|
|
858
|
+
}
|
|
859
|
+
static connect(
|
|
860
|
+
address: string,
|
|
861
|
+
signerOrProvider: Signer | Provider
|
|
862
|
+
): ProtocolShareReserve {
|
|
863
|
+
return new Contract(
|
|
864
|
+
address,
|
|
865
|
+
_abi,
|
|
866
|
+
signerOrProvider
|
|
867
|
+
) as ProtocolShareReserve;
|
|
868
|
+
}
|
|
869
|
+
}
|