@venusprotocol/venus-protocol 7.3.0-dev.3 → 7.3.0-dev.4

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.
Files changed (94) hide show
  1. package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.dbg.json +1 -1
  2. package/artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.dbg.json +1 -1
  3. package/artifacts/@openzeppelin/contracts/access/Ownable2Step.sol/Ownable2Step.dbg.json +1 -1
  4. package/artifacts/@openzeppelin/contracts/interfaces/IERC1967.sol/IERC1967.dbg.json +1 -1
  5. package/artifacts/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.dbg.json +1 -1
  6. package/artifacts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol/ERC1967Proxy.dbg.json +1 -1
  7. package/artifacts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol/ERC1967Upgrade.dbg.json +1 -1
  8. package/artifacts/@openzeppelin/contracts/proxy/Proxy.sol/Proxy.dbg.json +1 -1
  9. package/artifacts/@openzeppelin/contracts/proxy/beacon/IBeacon.sol/IBeacon.dbg.json +1 -1
  10. package/artifacts/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.dbg.json +1 -1
  11. package/artifacts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy.dbg.json +1 -1
  12. package/artifacts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.dbg.json +1 -1
  13. package/artifacts/@openzeppelin/contracts/security/ReentrancyGuard.sol/ReentrancyGuard.dbg.json +1 -1
  14. package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +4 -0
  15. package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json +297 -0
  16. package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
  17. package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +4 -0
  18. package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.json +233 -0
  19. package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol/IERC20Permit.dbg.json +1 -1
  20. package/artifacts/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol/SafeERC20.dbg.json +1 -1
  21. package/artifacts/@openzeppelin/contracts/utils/Address.sol/Address.dbg.json +1 -1
  22. package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +1 -1
  23. package/artifacts/@openzeppelin/contracts/utils/StorageSlot.sol/StorageSlot.dbg.json +1 -1
  24. package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.dbg.json +1 -1
  25. package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +1 -1
  26. package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +1 -1
  27. package/artifacts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.dbg.json +1 -1
  28. package/artifacts/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol/ReentrancyGuardUpgradeable.dbg.json +1 -1
  29. package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol/IERC20Upgradeable.dbg.json +1 -1
  30. package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol/IERC20MetadataUpgradeable.dbg.json +1 -1
  31. package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.dbg.json +1 -1
  32. package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol/SafeERC20Upgradeable.dbg.json +1 -1
  33. package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +1 -1
  34. package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +1 -1
  35. package/artifacts/@openzeppelin/contracts-upgradeable/utils/math/SafeCastUpgradeable.sol/SafeCastUpgradeable.dbg.json +1 -1
  36. package/artifacts/build-info/5d3c5040759360fa4c28ba5b26a6b9f1.json +1 -0
  37. package/artifacts/contracts/Governance/VTreasuryV8.sol/VTreasuryV8.dbg.json +1 -1
  38. package/artifacts/contracts/test/MockToken.sol/MockToken.dbg.json +4 -0
  39. package/artifacts/contracts/test/MockToken.sol/MockToken.json +315 -0
  40. package/contracts/test/MockToken.sol +22 -0
  41. package/deploy/010-deploy-mock-tokens.ts +30 -0
  42. package/deploy/011-deploy-markets.ts +92 -0
  43. package/deployments/bscmainnet/JumpRateModel_base0bps_slope687bps_jump25000bps_kink8000bps.json +380 -0
  44. package/deployments/bscmainnet/solcInputs/7830d2b3dd486e9651687b362529ec15.json +345 -0
  45. package/deployments/bscmainnet/vFDUSD_Proxy.json +2382 -0
  46. package/deployments/bscmainnet.json +11054 -11355
  47. package/deployments/bscmainnet_addresses.json +2 -1
  48. package/deployments/bsctestnet/JumpRateModel_base0bps_slope687bps_jump25000bps_kink8000bps.json +380 -0
  49. package/deployments/bsctestnet/MockFDUSD.json +458 -0
  50. package/deployments/bsctestnet/solcInputs/7830d2b3dd486e9651687b362529ec15.json +345 -0
  51. package/deployments/bsctestnet/solcInputs/f4ba922efa57be24c0606389b67afaaa.json +46 -0
  52. package/deployments/bsctestnet/vFDUSD_Proxy.json +2382 -0
  53. package/deployments/bsctestnet.json +17362 -17871
  54. package/deployments/bsctestnet_addresses.json +3 -1
  55. package/dist/deploy/010-deploy-mock-tokens.d.ts +3 -0
  56. package/dist/deploy/010-deploy-mock-tokens.js +24 -0
  57. package/dist/deploy/011-deploy-markets.d.ts +3 -0
  58. package/dist/deploy/011-deploy-markets.js +76 -0
  59. package/dist/deployments/bscmainnet.json +11054 -11355
  60. package/dist/deployments/bscmainnet_addresses.json +202 -0
  61. package/dist/deployments/bsctestnet.json +17362 -17871
  62. package/dist/deployments/bsctestnet_addresses.json +121 -0
  63. package/dist/hardhat.config.js +1 -3
  64. package/dist/helpers/deploymentConfig.d.ts +47 -0
  65. package/dist/helpers/deploymentConfig.js +157 -0
  66. package/dist/helpers/utils.d.ts +2 -0
  67. package/dist/helpers/utils.js +27 -0
  68. package/dist/typechain/@openzeppelin/contracts/token/ERC20/ERC20.d.ts +198 -0
  69. package/dist/typechain/@openzeppelin/contracts/token/ERC20/ERC20.js +3 -0
  70. package/dist/typechain/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.d.ts +166 -0
  71. package/dist/typechain/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.js +3 -0
  72. package/dist/typechain/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +1 -0
  73. package/dist/typechain/@openzeppelin/contracts/token/ERC20/index.d.ts +1 -0
  74. package/dist/typechain/contracts/test/MockToken.d.ts +214 -0
  75. package/dist/typechain/contracts/test/MockToken.js +3 -0
  76. package/dist/typechain/contracts/test/index.d.ts +1 -0
  77. package/dist/typechain/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.d.ts +239 -0
  78. package/dist/typechain/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.js +326 -0
  79. package/dist/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.d.ts +178 -0
  80. package/dist/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.js +239 -0
  81. package/dist/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +1 -0
  82. package/dist/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.js +3 -1
  83. package/dist/typechain/factories/@openzeppelin/contracts/token/ERC20/index.d.ts +1 -0
  84. package/dist/typechain/factories/@openzeppelin/contracts/token/ERC20/index.js +3 -1
  85. package/dist/typechain/factories/contracts/test/MockToken__factory.d.ts +253 -0
  86. package/dist/typechain/factories/contracts/test/MockToken__factory.js +344 -0
  87. package/dist/typechain/factories/contracts/test/index.d.ts +1 -0
  88. package/dist/typechain/factories/contracts/test/index.js +3 -1
  89. package/dist/typechain/index.d.ts +6 -0
  90. package/dist/typechain/index.js +12 -6
  91. package/package.json +1 -1
  92. package/artifacts/build-info/836b5274e4a94df50d1ff043d8579f59.json +0 -1
  93. package/deployments/bscmainnet/Comptroller.json +0 -2237
  94. package/deployments/bsctestnet/Comptroller.json +0 -2754
@@ -0,0 +1,239 @@
1
+ import type { ERC20, ERC20Interface } from "../../../../../@openzeppelin/contracts/token/ERC20/ERC20";
2
+ import type { PromiseOrValue } from "../../../../../common";
3
+ import type { Provider, TransactionRequest } from "@ethersproject/providers";
4
+ import { Signer, ContractFactory, Overrides } from "ethers";
5
+ type ERC20ConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
6
+ export declare class ERC20__factory extends ContractFactory {
7
+ constructor(...args: ERC20ConstructorParams);
8
+ deploy(name_: PromiseOrValue<string>, symbol_: PromiseOrValue<string>, overrides?: Overrides & {
9
+ from?: PromiseOrValue<string>;
10
+ }): Promise<ERC20>;
11
+ getDeployTransaction(name_: PromiseOrValue<string>, symbol_: PromiseOrValue<string>, overrides?: Overrides & {
12
+ from?: PromiseOrValue<string>;
13
+ }): TransactionRequest;
14
+ attach(address: string): ERC20;
15
+ connect(signer: Signer): ERC20__factory;
16
+ static readonly bytecode = "0x60806040523480156200001157600080fd5b5060405162000b4638038062000b4683398101604081905262000034916200011f565b600362000042838262000218565b50600462000051828262000218565b505050620002e4565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200008257600080fd5b81516001600160401b03808211156200009f576200009f6200005a565b604051601f8301601f19908116603f01168101908282118183101715620000ca57620000ca6200005a565b81604052838152602092508683858801011115620000e757600080fd5b600091505b838210156200010b5785820183015181830184015290820190620000ec565b600093810190920192909252949350505050565b600080604083850312156200013357600080fd5b82516001600160401b03808211156200014b57600080fd5b620001598683870162000070565b935060208501519150808211156200017057600080fd5b506200017f8582860162000070565b9150509250929050565b600181811c908216806200019e57607f821691505b602082108103620001bf57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200021357600081815260208120601f850160051c81016020861015620001ee5750805b601f850160051c820191505b818110156200020f57828155600101620001fa565b5050505b505050565b81516001600160401b038111156200023457620002346200005a565b6200024c8162000245845462000189565b84620001c5565b602080601f8311600181146200028457600084156200026b5750858301515b600019600386901b1c1916600185901b1785556200020f565b600085815260208120601f198616915b82811015620002b55788860151825594840194600190910190840162000294565b5085821015620002d45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61085280620002f46000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461012357806370a082311461013657806395d89b411461015f578063a457c2d714610167578063a9059cbb1461017a578063dd62ed3e1461018d57600080fd5b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100ef57806323b872dd14610101578063313ce56714610114575b600080fd5b6100b66101a0565b6040516100c3919061069c565b60405180910390f35b6100df6100da366004610706565b610232565b60405190151581526020016100c3565b6002545b6040519081526020016100c3565b6100df61010f366004610730565b61024c565b604051601281526020016100c3565b6100df610131366004610706565b610270565b6100f361014436600461076c565b6001600160a01b031660009081526020819052604090205490565b6100b6610292565b6100df610175366004610706565b6102a1565b6100df610188366004610706565b610321565b6100f361019b36600461078e565b61032f565b6060600380546101af906107c1565b80601f01602080910402602001604051908101604052809291908181526020018280546101db906107c1565b80156102285780601f106101fd57610100808354040283529160200191610228565b820191906000526020600020905b81548152906001019060200180831161020b57829003601f168201915b5050505050905090565b60003361024081858561035a565b60019150505b92915050565b60003361025a85828561047e565b6102658585856104f8565b506001949350505050565b600033610240818585610283838361032f565b61028d91906107fb565b61035a565b6060600480546101af906107c1565b600033816102af828661032f565b9050838110156103145760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b610265828686840361035a565b6000336102408185856104f8565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166103bc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161030b565b6001600160a01b03821661041d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161030b565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061048a848461032f565b905060001981146104f257818110156104e55760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161030b565b6104f2848484840361035a565b50505050565b6001600160a01b03831661055c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161030b565b6001600160a01b0382166105be5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161030b565b6001600160a01b038316600090815260208190526040902054818110156106365760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161030b565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36104f2565b600060208083528351808285015260005b818110156106c9578581018301518582016040015282016106ad565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461070157600080fd5b919050565b6000806040838503121561071957600080fd5b610722836106ea565b946020939093013593505050565b60008060006060848603121561074557600080fd5b61074e846106ea565b925061075c602085016106ea565b9150604084013590509250925092565b60006020828403121561077e57600080fd5b610787826106ea565b9392505050565b600080604083850312156107a157600080fd5b6107aa836106ea565b91506107b8602084016106ea565b90509250929050565b600181811c908216806107d557607f821691505b6020821081036107f557634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561024657634e487b7160e01b600052601160045260246000fdfea2646970667358221220f8259cee0ba935feb38de8a52cd98c520685a589ab362010965f81e23723cee564736f6c63430008140033";
17
+ static readonly abi: readonly [{
18
+ readonly inputs: readonly [{
19
+ readonly internalType: "string";
20
+ readonly name: "name_";
21
+ readonly type: "string";
22
+ }, {
23
+ readonly internalType: "string";
24
+ readonly name: "symbol_";
25
+ readonly type: "string";
26
+ }];
27
+ readonly stateMutability: "nonpayable";
28
+ readonly type: "constructor";
29
+ }, {
30
+ readonly anonymous: false;
31
+ readonly inputs: readonly [{
32
+ readonly indexed: true;
33
+ readonly internalType: "address";
34
+ readonly name: "owner";
35
+ readonly type: "address";
36
+ }, {
37
+ readonly indexed: true;
38
+ readonly internalType: "address";
39
+ readonly name: "spender";
40
+ readonly type: "address";
41
+ }, {
42
+ readonly indexed: false;
43
+ readonly internalType: "uint256";
44
+ readonly name: "value";
45
+ readonly type: "uint256";
46
+ }];
47
+ readonly name: "Approval";
48
+ readonly type: "event";
49
+ }, {
50
+ readonly anonymous: false;
51
+ readonly inputs: readonly [{
52
+ readonly indexed: true;
53
+ readonly internalType: "address";
54
+ readonly name: "from";
55
+ readonly type: "address";
56
+ }, {
57
+ readonly indexed: true;
58
+ readonly internalType: "address";
59
+ readonly name: "to";
60
+ readonly type: "address";
61
+ }, {
62
+ readonly indexed: false;
63
+ readonly internalType: "uint256";
64
+ readonly name: "value";
65
+ readonly type: "uint256";
66
+ }];
67
+ readonly name: "Transfer";
68
+ readonly type: "event";
69
+ }, {
70
+ readonly inputs: readonly [{
71
+ readonly internalType: "address";
72
+ readonly name: "owner";
73
+ readonly type: "address";
74
+ }, {
75
+ readonly internalType: "address";
76
+ readonly name: "spender";
77
+ readonly type: "address";
78
+ }];
79
+ readonly name: "allowance";
80
+ readonly outputs: readonly [{
81
+ readonly internalType: "uint256";
82
+ readonly name: "";
83
+ readonly type: "uint256";
84
+ }];
85
+ readonly stateMutability: "view";
86
+ readonly type: "function";
87
+ }, {
88
+ readonly inputs: readonly [{
89
+ readonly internalType: "address";
90
+ readonly name: "spender";
91
+ readonly type: "address";
92
+ }, {
93
+ readonly internalType: "uint256";
94
+ readonly name: "amount";
95
+ readonly type: "uint256";
96
+ }];
97
+ readonly name: "approve";
98
+ readonly outputs: readonly [{
99
+ readonly internalType: "bool";
100
+ readonly name: "";
101
+ readonly type: "bool";
102
+ }];
103
+ readonly stateMutability: "nonpayable";
104
+ readonly type: "function";
105
+ }, {
106
+ readonly inputs: readonly [{
107
+ readonly internalType: "address";
108
+ readonly name: "account";
109
+ readonly type: "address";
110
+ }];
111
+ readonly name: "balanceOf";
112
+ readonly outputs: readonly [{
113
+ readonly internalType: "uint256";
114
+ readonly name: "";
115
+ readonly type: "uint256";
116
+ }];
117
+ readonly stateMutability: "view";
118
+ readonly type: "function";
119
+ }, {
120
+ readonly inputs: readonly [];
121
+ readonly name: "decimals";
122
+ readonly outputs: readonly [{
123
+ readonly internalType: "uint8";
124
+ readonly name: "";
125
+ readonly type: "uint8";
126
+ }];
127
+ readonly stateMutability: "view";
128
+ readonly type: "function";
129
+ }, {
130
+ readonly inputs: readonly [{
131
+ readonly internalType: "address";
132
+ readonly name: "spender";
133
+ readonly type: "address";
134
+ }, {
135
+ readonly internalType: "uint256";
136
+ readonly name: "subtractedValue";
137
+ readonly type: "uint256";
138
+ }];
139
+ readonly name: "decreaseAllowance";
140
+ readonly outputs: readonly [{
141
+ readonly internalType: "bool";
142
+ readonly name: "";
143
+ readonly type: "bool";
144
+ }];
145
+ readonly stateMutability: "nonpayable";
146
+ readonly type: "function";
147
+ }, {
148
+ readonly inputs: readonly [{
149
+ readonly internalType: "address";
150
+ readonly name: "spender";
151
+ readonly type: "address";
152
+ }, {
153
+ readonly internalType: "uint256";
154
+ readonly name: "addedValue";
155
+ readonly type: "uint256";
156
+ }];
157
+ readonly name: "increaseAllowance";
158
+ readonly outputs: readonly [{
159
+ readonly internalType: "bool";
160
+ readonly name: "";
161
+ readonly type: "bool";
162
+ }];
163
+ readonly stateMutability: "nonpayable";
164
+ readonly type: "function";
165
+ }, {
166
+ readonly inputs: readonly [];
167
+ readonly name: "name";
168
+ readonly outputs: readonly [{
169
+ readonly internalType: "string";
170
+ readonly name: "";
171
+ readonly type: "string";
172
+ }];
173
+ readonly stateMutability: "view";
174
+ readonly type: "function";
175
+ }, {
176
+ readonly inputs: readonly [];
177
+ readonly name: "symbol";
178
+ readonly outputs: readonly [{
179
+ readonly internalType: "string";
180
+ readonly name: "";
181
+ readonly type: "string";
182
+ }];
183
+ readonly stateMutability: "view";
184
+ readonly type: "function";
185
+ }, {
186
+ readonly inputs: readonly [];
187
+ readonly name: "totalSupply";
188
+ readonly outputs: readonly [{
189
+ readonly internalType: "uint256";
190
+ readonly name: "";
191
+ readonly type: "uint256";
192
+ }];
193
+ readonly stateMutability: "view";
194
+ readonly type: "function";
195
+ }, {
196
+ readonly inputs: readonly [{
197
+ readonly internalType: "address";
198
+ readonly name: "to";
199
+ readonly type: "address";
200
+ }, {
201
+ readonly internalType: "uint256";
202
+ readonly name: "amount";
203
+ readonly type: "uint256";
204
+ }];
205
+ readonly name: "transfer";
206
+ readonly outputs: readonly [{
207
+ readonly internalType: "bool";
208
+ readonly name: "";
209
+ readonly type: "bool";
210
+ }];
211
+ readonly stateMutability: "nonpayable";
212
+ readonly type: "function";
213
+ }, {
214
+ readonly inputs: readonly [{
215
+ readonly internalType: "address";
216
+ readonly name: "from";
217
+ readonly type: "address";
218
+ }, {
219
+ readonly internalType: "address";
220
+ readonly name: "to";
221
+ readonly type: "address";
222
+ }, {
223
+ readonly internalType: "uint256";
224
+ readonly name: "amount";
225
+ readonly type: "uint256";
226
+ }];
227
+ readonly name: "transferFrom";
228
+ readonly outputs: readonly [{
229
+ readonly internalType: "bool";
230
+ readonly name: "";
231
+ readonly type: "bool";
232
+ }];
233
+ readonly stateMutability: "nonpayable";
234
+ readonly type: "function";
235
+ }];
236
+ static createInterface(): ERC20Interface;
237
+ static connect(address: string, signerOrProvider: Signer | Provider): ERC20;
238
+ }
239
+ export {};
@@ -0,0 +1,326 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ERC20__factory = void 0;
5
+ const ethers_1 = require("ethers");
6
+ const _abi = [
7
+ {
8
+ inputs: [
9
+ {
10
+ internalType: "string",
11
+ name: "name_",
12
+ type: "string",
13
+ },
14
+ {
15
+ internalType: "string",
16
+ name: "symbol_",
17
+ type: "string",
18
+ },
19
+ ],
20
+ stateMutability: "nonpayable",
21
+ type: "constructor",
22
+ },
23
+ {
24
+ anonymous: false,
25
+ inputs: [
26
+ {
27
+ indexed: true,
28
+ internalType: "address",
29
+ name: "owner",
30
+ type: "address",
31
+ },
32
+ {
33
+ indexed: true,
34
+ internalType: "address",
35
+ name: "spender",
36
+ type: "address",
37
+ },
38
+ {
39
+ indexed: false,
40
+ internalType: "uint256",
41
+ name: "value",
42
+ type: "uint256",
43
+ },
44
+ ],
45
+ name: "Approval",
46
+ type: "event",
47
+ },
48
+ {
49
+ anonymous: false,
50
+ inputs: [
51
+ {
52
+ indexed: true,
53
+ internalType: "address",
54
+ name: "from",
55
+ type: "address",
56
+ },
57
+ {
58
+ indexed: true,
59
+ internalType: "address",
60
+ name: "to",
61
+ type: "address",
62
+ },
63
+ {
64
+ indexed: false,
65
+ internalType: "uint256",
66
+ name: "value",
67
+ type: "uint256",
68
+ },
69
+ ],
70
+ name: "Transfer",
71
+ type: "event",
72
+ },
73
+ {
74
+ inputs: [
75
+ {
76
+ internalType: "address",
77
+ name: "owner",
78
+ type: "address",
79
+ },
80
+ {
81
+ internalType: "address",
82
+ name: "spender",
83
+ type: "address",
84
+ },
85
+ ],
86
+ name: "allowance",
87
+ outputs: [
88
+ {
89
+ internalType: "uint256",
90
+ name: "",
91
+ type: "uint256",
92
+ },
93
+ ],
94
+ stateMutability: "view",
95
+ type: "function",
96
+ },
97
+ {
98
+ inputs: [
99
+ {
100
+ internalType: "address",
101
+ name: "spender",
102
+ type: "address",
103
+ },
104
+ {
105
+ internalType: "uint256",
106
+ name: "amount",
107
+ type: "uint256",
108
+ },
109
+ ],
110
+ name: "approve",
111
+ outputs: [
112
+ {
113
+ internalType: "bool",
114
+ name: "",
115
+ type: "bool",
116
+ },
117
+ ],
118
+ stateMutability: "nonpayable",
119
+ type: "function",
120
+ },
121
+ {
122
+ inputs: [
123
+ {
124
+ internalType: "address",
125
+ name: "account",
126
+ type: "address",
127
+ },
128
+ ],
129
+ name: "balanceOf",
130
+ outputs: [
131
+ {
132
+ internalType: "uint256",
133
+ name: "",
134
+ type: "uint256",
135
+ },
136
+ ],
137
+ stateMutability: "view",
138
+ type: "function",
139
+ },
140
+ {
141
+ inputs: [],
142
+ name: "decimals",
143
+ outputs: [
144
+ {
145
+ internalType: "uint8",
146
+ name: "",
147
+ type: "uint8",
148
+ },
149
+ ],
150
+ stateMutability: "view",
151
+ type: "function",
152
+ },
153
+ {
154
+ inputs: [
155
+ {
156
+ internalType: "address",
157
+ name: "spender",
158
+ type: "address",
159
+ },
160
+ {
161
+ internalType: "uint256",
162
+ name: "subtractedValue",
163
+ type: "uint256",
164
+ },
165
+ ],
166
+ name: "decreaseAllowance",
167
+ outputs: [
168
+ {
169
+ internalType: "bool",
170
+ name: "",
171
+ type: "bool",
172
+ },
173
+ ],
174
+ stateMutability: "nonpayable",
175
+ type: "function",
176
+ },
177
+ {
178
+ inputs: [
179
+ {
180
+ internalType: "address",
181
+ name: "spender",
182
+ type: "address",
183
+ },
184
+ {
185
+ internalType: "uint256",
186
+ name: "addedValue",
187
+ type: "uint256",
188
+ },
189
+ ],
190
+ name: "increaseAllowance",
191
+ outputs: [
192
+ {
193
+ internalType: "bool",
194
+ name: "",
195
+ type: "bool",
196
+ },
197
+ ],
198
+ stateMutability: "nonpayable",
199
+ type: "function",
200
+ },
201
+ {
202
+ inputs: [],
203
+ name: "name",
204
+ outputs: [
205
+ {
206
+ internalType: "string",
207
+ name: "",
208
+ type: "string",
209
+ },
210
+ ],
211
+ stateMutability: "view",
212
+ type: "function",
213
+ },
214
+ {
215
+ inputs: [],
216
+ name: "symbol",
217
+ outputs: [
218
+ {
219
+ internalType: "string",
220
+ name: "",
221
+ type: "string",
222
+ },
223
+ ],
224
+ stateMutability: "view",
225
+ type: "function",
226
+ },
227
+ {
228
+ inputs: [],
229
+ name: "totalSupply",
230
+ outputs: [
231
+ {
232
+ internalType: "uint256",
233
+ name: "",
234
+ type: "uint256",
235
+ },
236
+ ],
237
+ stateMutability: "view",
238
+ type: "function",
239
+ },
240
+ {
241
+ inputs: [
242
+ {
243
+ internalType: "address",
244
+ name: "to",
245
+ type: "address",
246
+ },
247
+ {
248
+ internalType: "uint256",
249
+ name: "amount",
250
+ type: "uint256",
251
+ },
252
+ ],
253
+ name: "transfer",
254
+ outputs: [
255
+ {
256
+ internalType: "bool",
257
+ name: "",
258
+ type: "bool",
259
+ },
260
+ ],
261
+ stateMutability: "nonpayable",
262
+ type: "function",
263
+ },
264
+ {
265
+ inputs: [
266
+ {
267
+ internalType: "address",
268
+ name: "from",
269
+ type: "address",
270
+ },
271
+ {
272
+ internalType: "address",
273
+ name: "to",
274
+ type: "address",
275
+ },
276
+ {
277
+ internalType: "uint256",
278
+ name: "amount",
279
+ type: "uint256",
280
+ },
281
+ ],
282
+ name: "transferFrom",
283
+ outputs: [
284
+ {
285
+ internalType: "bool",
286
+ name: "",
287
+ type: "bool",
288
+ },
289
+ ],
290
+ stateMutability: "nonpayable",
291
+ type: "function",
292
+ },
293
+ ];
294
+ const _bytecode = "0x60806040523480156200001157600080fd5b5060405162000b4638038062000b4683398101604081905262000034916200011f565b600362000042838262000218565b50600462000051828262000218565b505050620002e4565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200008257600080fd5b81516001600160401b03808211156200009f576200009f6200005a565b604051601f8301601f19908116603f01168101908282118183101715620000ca57620000ca6200005a565b81604052838152602092508683858801011115620000e757600080fd5b600091505b838210156200010b5785820183015181830184015290820190620000ec565b600093810190920192909252949350505050565b600080604083850312156200013357600080fd5b82516001600160401b03808211156200014b57600080fd5b620001598683870162000070565b935060208501519150808211156200017057600080fd5b506200017f8582860162000070565b9150509250929050565b600181811c908216806200019e57607f821691505b602082108103620001bf57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200021357600081815260208120601f850160051c81016020861015620001ee5750805b601f850160051c820191505b818110156200020f57828155600101620001fa565b5050505b505050565b81516001600160401b038111156200023457620002346200005a565b6200024c8162000245845462000189565b84620001c5565b602080601f8311600181146200028457600084156200026b5750858301515b600019600386901b1c1916600185901b1785556200020f565b600085815260208120601f198616915b82811015620002b55788860151825594840194600190910190840162000294565b5085821015620002d45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61085280620002f46000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461012357806370a082311461013657806395d89b411461015f578063a457c2d714610167578063a9059cbb1461017a578063dd62ed3e1461018d57600080fd5b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100ef57806323b872dd14610101578063313ce56714610114575b600080fd5b6100b66101a0565b6040516100c3919061069c565b60405180910390f35b6100df6100da366004610706565b610232565b60405190151581526020016100c3565b6002545b6040519081526020016100c3565b6100df61010f366004610730565b61024c565b604051601281526020016100c3565b6100df610131366004610706565b610270565b6100f361014436600461076c565b6001600160a01b031660009081526020819052604090205490565b6100b6610292565b6100df610175366004610706565b6102a1565b6100df610188366004610706565b610321565b6100f361019b36600461078e565b61032f565b6060600380546101af906107c1565b80601f01602080910402602001604051908101604052809291908181526020018280546101db906107c1565b80156102285780601f106101fd57610100808354040283529160200191610228565b820191906000526020600020905b81548152906001019060200180831161020b57829003601f168201915b5050505050905090565b60003361024081858561035a565b60019150505b92915050565b60003361025a85828561047e565b6102658585856104f8565b506001949350505050565b600033610240818585610283838361032f565b61028d91906107fb565b61035a565b6060600480546101af906107c1565b600033816102af828661032f565b9050838110156103145760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b610265828686840361035a565b6000336102408185856104f8565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166103bc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161030b565b6001600160a01b03821661041d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161030b565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061048a848461032f565b905060001981146104f257818110156104e55760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161030b565b6104f2848484840361035a565b50505050565b6001600160a01b03831661055c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161030b565b6001600160a01b0382166105be5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161030b565b6001600160a01b038316600090815260208190526040902054818110156106365760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161030b565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36104f2565b600060208083528351808285015260005b818110156106c9578581018301518582016040015282016106ad565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461070157600080fd5b919050565b6000806040838503121561071957600080fd5b610722836106ea565b946020939093013593505050565b60008060006060848603121561074557600080fd5b61074e846106ea565b925061075c602085016106ea565b9150604084013590509250925092565b60006020828403121561077e57600080fd5b610787826106ea565b9392505050565b600080604083850312156107a157600080fd5b6107aa836106ea565b91506107b8602084016106ea565b90509250929050565b600181811c908216806107d557607f821691505b6020821081036107f557634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561024657634e487b7160e01b600052601160045260246000fdfea2646970667358221220f8259cee0ba935feb38de8a52cd98c520685a589ab362010965f81e23723cee564736f6c63430008140033";
295
+ const isSuperArgs = (xs) => xs.length > 1;
296
+ class ERC20__factory extends ethers_1.ContractFactory {
297
+ constructor(...args) {
298
+ if (isSuperArgs(args)) {
299
+ super(...args);
300
+ }
301
+ else {
302
+ super(_abi, _bytecode, args[0]);
303
+ }
304
+ }
305
+ deploy(name_, symbol_, overrides) {
306
+ return super.deploy(name_, symbol_, overrides || {});
307
+ }
308
+ getDeployTransaction(name_, symbol_, overrides) {
309
+ return super.getDeployTransaction(name_, symbol_, overrides || {});
310
+ }
311
+ attach(address) {
312
+ return super.attach(address);
313
+ }
314
+ connect(signer) {
315
+ return super.connect(signer);
316
+ }
317
+ static createInterface() {
318
+ return new ethers_1.utils.Interface(_abi);
319
+ }
320
+ static connect(address, signerOrProvider) {
321
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
322
+ }
323
+ }
324
+ exports.ERC20__factory = ERC20__factory;
325
+ ERC20__factory.bytecode = _bytecode;
326
+ ERC20__factory.abi = _abi;