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