@venusprotocol/protocol-reserve 1.5.0 → 1.6.0-dev.1

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 (133) hide show
  1. package/package.json +3 -2
  2. package/typechain/AbstractTokenConverter.d.ts +1775 -0
  3. package/typechain/AccessControl.d.ts +388 -0
  4. package/typechain/AccessControlledV8.d.ts +341 -0
  5. package/typechain/BeaconProxy.d.ts +126 -0
  6. package/typechain/BoundValidatorInterface.d.ts +126 -0
  7. package/typechain/ContextUpgradeable.d.ts +92 -0
  8. package/typechain/ConverterNetwork.d.ts +723 -0
  9. package/typechain/ERC165.d.ts +116 -0
  10. package/typechain/ERC1967Proxy.d.ts +126 -0
  11. package/typechain/ERC1967Upgrade.d.ts +126 -0
  12. package/typechain/ERC20.d.ts +441 -0
  13. package/typechain/IAbstractTokenConverter.d.ts +773 -0
  14. package/typechain/IAccessControl.d.ts +333 -0
  15. package/typechain/IAccessControlManagerV8.d.ts +504 -0
  16. package/typechain/IBeacon.d.ts +101 -0
  17. package/typechain/IComptroller.d.ts +136 -0
  18. package/typechain/IConverterNetwork.d.ts +292 -0
  19. package/typechain/IERC165.d.ts +116 -0
  20. package/typechain/IERC1822Proxiable.d.ts +101 -0
  21. package/typechain/IERC1967.d.ts +126 -0
  22. package/typechain/IERC20.d.ts +324 -0
  23. package/typechain/IERC20Metadata.d.ts +363 -0
  24. package/typechain/IERC20PermitUpgradeable.d.ts +187 -0
  25. package/typechain/IERC20Upgradeable.d.ts +324 -0
  26. package/typechain/IIncomeDestination.d.ts +122 -0
  27. package/typechain/IPoolRegistry.d.ts +155 -0
  28. package/typechain/IProtocolShareReserve.d.ts +127 -0
  29. package/typechain/IRiskFund.d.ts +200 -0
  30. package/typechain/IRiskFundConverter.d.ts +138 -0
  31. package/typechain/IRiskFundGetters.d.ts +103 -0
  32. package/typechain/IShortfall.d.ts +110 -0
  33. package/typechain/ITransparentUpgradeableProxy.d.ts +256 -0
  34. package/typechain/IVToken.d.ts +98 -0
  35. package/typechain/IXVSVault.d.ts +95 -0
  36. package/typechain/Initializable.d.ts +92 -0
  37. package/typechain/MaxLoopsLimitHelper.d.ts +128 -0
  38. package/typechain/MaxLoopsLimitHelpersStorage.d.ts +101 -0
  39. package/typechain/MockACM.d.ts +615 -0
  40. package/typechain/MockArraySorter.d.ts +118 -0
  41. package/typechain/MockConverter.d.ts +1969 -0
  42. package/typechain/MockDeflatingToken.d.ts +486 -0
  43. package/typechain/MockRiskFundConverter.d.ts +2479 -0
  44. package/typechain/MockToken.d.ts +505 -0
  45. package/typechain/OracleInterface.d.ts +98 -0
  46. package/typechain/Ownable.d.ts +181 -0
  47. package/typechain/Ownable2StepUpgradeable.d.ts +261 -0
  48. package/typechain/OwnableUpgradeable.d.ts +193 -0
  49. package/typechain/PausableUpgradeable.d.ts +129 -0
  50. package/typechain/ProtocolShareReserve.d.ts +1214 -0
  51. package/typechain/Proxy.d.ts +78 -0
  52. package/typechain/ProxyAdmin.d.ts +357 -0
  53. package/typechain/ReentrancyGuardUpgradeable.d.ts +92 -0
  54. package/typechain/ReserveHelpersStorage.d.ts +300 -0
  55. package/typechain/ResilientOracle.d.ts +1034 -0
  56. package/typechain/ResilientOracleInterface.d.ts +192 -0
  57. package/typechain/RiskFundConverter.d.ts +2235 -0
  58. package/typechain/RiskFundV1Storage.d.ts +353 -0
  59. package/typechain/RiskFundV2.d.ts +965 -0
  60. package/typechain/RiskFundV2Storage.d.ts +372 -0
  61. package/typechain/SingleTokenConverter.d.ts +1944 -0
  62. package/typechain/TransparentUpgradeableProxy.d.ts +126 -0
  63. package/typechain/TwapInterface.d.ts +124 -0
  64. package/typechain/UpgradeableBeacon.d.ts +240 -0
  65. package/typechain/VBep20Interface.d.ts +379 -0
  66. package/typechain/XVSVaultTreasury.d.ts +515 -0
  67. package/typechain/common.d.ts +35 -0
  68. package/typechain/factories/AbstractTokenConverter__factory.ts +1297 -0
  69. package/typechain/factories/AccessControl__factory.ts +227 -0
  70. package/typechain/factories/AccessControlledV8__factory.ts +196 -0
  71. package/typechain/factories/BeaconProxy__factory.ts +133 -0
  72. package/typechain/factories/BoundValidatorInterface__factory.ts +59 -0
  73. package/typechain/factories/ContextUpgradeable__factory.ts +39 -0
  74. package/typechain/factories/ConverterNetwork__factory.ts +502 -0
  75. package/typechain/factories/ERC165__factory.ts +39 -0
  76. package/typechain/factories/ERC1967Proxy__factory.ts +137 -0
  77. package/typechain/factories/ERC1967Upgrade__factory.ts +71 -0
  78. package/typechain/factories/ERC20__factory.ts +340 -0
  79. package/typechain/factories/IAbstractTokenConverter__factory.ts +466 -0
  80. package/typechain/factories/IAccessControlManagerV8__factory.ts +301 -0
  81. package/typechain/factories/IAccessControl__factory.ts +198 -0
  82. package/typechain/factories/IBeacon__factory.ts +36 -0
  83. package/typechain/factories/IComptroller__factory.ts +68 -0
  84. package/typechain/factories/IConverterNetwork__factory.ts +142 -0
  85. package/typechain/factories/IERC165__factory.ts +42 -0
  86. package/typechain/factories/IERC1822Proxiable__factory.ts +39 -0
  87. package/typechain/factories/IERC1967__factory.ts +68 -0
  88. package/typechain/factories/IERC20Metadata__factory.ts +248 -0
  89. package/typechain/factories/IERC20PermitUpgradeable__factory.ts +105 -0
  90. package/typechain/factories/IERC20Upgradeable__factory.ts +209 -0
  91. package/typechain/factories/IERC20__factory.ts +203 -0
  92. package/typechain/factories/IIncomeDestination__factory.ts +44 -0
  93. package/typechain/factories/IPoolRegistry__factory.ts +66 -0
  94. package/typechain/factories/IProtocolShareReserve__factory.ts +53 -0
  95. package/typechain/factories/IRiskFundConverter__factory.ts +63 -0
  96. package/typechain/factories/IRiskFundGetters__factory.ts +39 -0
  97. package/typechain/factories/IRiskFund__factory.ts +89 -0
  98. package/typechain/factories/IShortfall__factory.ts +36 -0
  99. package/typechain/factories/ITransparentUpgradeableProxy__factory.ts +145 -0
  100. package/typechain/factories/IVToken__factory.ts +36 -0
  101. package/typechain/factories/IXVSVault__factory.ts +36 -0
  102. package/typechain/factories/Initializable__factory.ts +36 -0
  103. package/typechain/factories/MaxLoopsLimitHelper__factory.ts +74 -0
  104. package/typechain/factories/MaxLoopsLimitHelpersStorage__factory.ts +75 -0
  105. package/typechain/factories/MockACM__factory.ts +411 -0
  106. package/typechain/factories/MockArraySorter__factory.ts +85 -0
  107. package/typechain/factories/MockConverter__factory.ts +1439 -0
  108. package/typechain/factories/MockDeflatingToken__factory.ts +389 -0
  109. package/typechain/factories/MockRiskFundConverter__factory.ts +1828 -0
  110. package/typechain/factories/MockToken__factory.ts +398 -0
  111. package/typechain/factories/OracleInterface__factory.ts +45 -0
  112. package/typechain/factories/Ownable2StepUpgradeable__factory.ts +134 -0
  113. package/typechain/factories/OwnableUpgradeable__factory.ts +91 -0
  114. package/typechain/factories/Ownable__factory.ts +75 -0
  115. package/typechain/factories/PausableUpgradeable__factory.ts +78 -0
  116. package/typechain/factories/ProtocolShareReserve__factory.ts +874 -0
  117. package/typechain/factories/ProxyAdmin__factory.ts +202 -0
  118. package/typechain/factories/Proxy__factory.ts +28 -0
  119. package/typechain/factories/ReentrancyGuardUpgradeable__factory.ts +43 -0
  120. package/typechain/factories/ReserveHelpersStorage__factory.ts +188 -0
  121. package/typechain/factories/ResilientOracleInterface__factory.ts +94 -0
  122. package/typechain/factories/ResilientOracle__factory.ts +710 -0
  123. package/typechain/factories/RiskFundConverter__factory.ts +1694 -0
  124. package/typechain/factories/RiskFundV1Storage__factory.ts +223 -0
  125. package/typechain/factories/RiskFundV2Storage__factory.ts +236 -0
  126. package/typechain/factories/RiskFundV2__factory.ts +672 -0
  127. package/typechain/factories/SingleTokenConverter__factory.ts +1441 -0
  128. package/typechain/factories/TransparentUpgradeableProxy__factory.ts +152 -0
  129. package/typechain/factories/TwapInterface__factory.ts +61 -0
  130. package/typechain/factories/UpgradeableBeacon__factory.ts +163 -0
  131. package/typechain/factories/VBep20Interface__factory.ts +261 -0
  132. package/typechain/factories/XVSVaultTreasury__factory.ts +365 -0
  133. package/typechain/index.ts +134 -0
@@ -0,0 +1,137 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import {
6
+ Signer,
7
+ utils,
8
+ BytesLike,
9
+ Contract,
10
+ ContractFactory,
11
+ PayableOverrides,
12
+ } from "ethers";
13
+ import { Provider, TransactionRequest } from "@ethersproject/providers";
14
+ import type { ERC1967Proxy, ERC1967ProxyInterface } from "../ERC1967Proxy";
15
+
16
+ const _abi = [
17
+ {
18
+ inputs: [
19
+ {
20
+ internalType: "address",
21
+ name: "_logic",
22
+ type: "address",
23
+ },
24
+ {
25
+ internalType: "bytes",
26
+ name: "_data",
27
+ type: "bytes",
28
+ },
29
+ ],
30
+ stateMutability: "payable",
31
+ type: "constructor",
32
+ },
33
+ {
34
+ anonymous: false,
35
+ inputs: [
36
+ {
37
+ indexed: false,
38
+ internalType: "address",
39
+ name: "previousAdmin",
40
+ type: "address",
41
+ },
42
+ {
43
+ indexed: false,
44
+ internalType: "address",
45
+ name: "newAdmin",
46
+ type: "address",
47
+ },
48
+ ],
49
+ name: "AdminChanged",
50
+ type: "event",
51
+ },
52
+ {
53
+ anonymous: false,
54
+ inputs: [
55
+ {
56
+ indexed: true,
57
+ internalType: "address",
58
+ name: "beacon",
59
+ type: "address",
60
+ },
61
+ ],
62
+ name: "BeaconUpgraded",
63
+ type: "event",
64
+ },
65
+ {
66
+ anonymous: false,
67
+ inputs: [
68
+ {
69
+ indexed: true,
70
+ internalType: "address",
71
+ name: "implementation",
72
+ type: "address",
73
+ },
74
+ ],
75
+ name: "Upgraded",
76
+ type: "event",
77
+ },
78
+ {
79
+ stateMutability: "payable",
80
+ type: "fallback",
81
+ },
82
+ {
83
+ stateMutability: "payable",
84
+ type: "receive",
85
+ },
86
+ ];
87
+
88
+ const _bytecode =
89
+ "0x60806040526040516107c13803806107c183398101604081905261002291610321565b61002e82826000610035565b505061043e565b61003e8361006b565b60008251118061004b5750805b156100665761006483836100ab60201b6100291760201c565b505b505050565b610074816100d7565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606100d0838360405180606001604052806027815260200161079a602791396101a9565b9392505050565b6100ea8161022260201b6100551760201c565b6101515760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b806101887f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61023160201b6100711760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b6060600080856001600160a01b0316856040516101c691906103ef565b600060405180830381855af49150503d8060008114610201576040519150601f19603f3d011682016040523d82523d6000602084013e610206565b606091505b50909250905061021886838387610234565b9695505050505050565b6001600160a01b03163b151590565b90565b606083156102a357825160000361029c576001600160a01b0385163b61029c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610148565b50816102ad565b6102ad83836102b5565b949350505050565b8151156102c55781518083602001fd5b8060405162461bcd60e51b8152600401610148919061040b565b634e487b7160e01b600052604160045260246000fd5b60005b838110156103105781810151838201526020016102f8565b838111156100645750506000910152565b6000806040838503121561033457600080fd5b82516001600160a01b038116811461034b57600080fd5b60208401519092506001600160401b038082111561036857600080fd5b818501915085601f83011261037c57600080fd5b81518181111561038e5761038e6102df565b604051601f8201601f19908116603f011681019083821181831017156103b6576103b66102df565b816040528281528860208487010111156103cf57600080fd5b6103e08360208301602088016102f5565b80955050505050509250929050565b600082516104018184602087016102f5565b9190910192915050565b602081526000825180602084015261042a8160408501602087016102f5565b601f01601f19169190910160400192915050565b61034d8061044d6000396000f3fe60806040523661001357610011610017565b005b6100115b610027610022610074565b6100b9565b565b606061004e83836040518060600160405280602781526020016102f1602791396100dd565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b90565b60006100b47f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e8080156100d8573d6000f35b3d6000fd5b60606000808573ffffffffffffffffffffffffffffffffffffffff16856040516101079190610283565b600060405180830381855af49150503d8060008114610142576040519150601f19603f3d011682016040523d82523d6000602084013e610147565b606091505b509150915061015886838387610162565b9695505050505050565b606083156101fd5782516000036101f65773ffffffffffffffffffffffffffffffffffffffff85163b6101f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b5081610207565b610207838361020f565b949350505050565b81511561021f5781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ed919061029f565b60005b8381101561026e578181015183820152602001610256565b8381111561027d576000848401525b50505050565b60008251610295818460208701610253565b9190910192915050565b60208152600082518060208401526102be816040850160208701610253565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212202bf456099c86cb9e8587402453dc3f2526a2452fc9309801df138d8a1819a9e064736f6c634300080d0033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564";
90
+
91
+ export class ERC1967Proxy__factory extends ContractFactory {
92
+ constructor(
93
+ ...args: [signer: Signer] | ConstructorParameters<typeof ContractFactory>
94
+ ) {
95
+ if (args.length === 1) {
96
+ super(_abi, _bytecode, args[0]);
97
+ } else {
98
+ super(...args);
99
+ }
100
+ }
101
+
102
+ deploy(
103
+ _logic: string,
104
+ _data: BytesLike,
105
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
106
+ ): Promise<ERC1967Proxy> {
107
+ return super.deploy(
108
+ _logic,
109
+ _data,
110
+ overrides || {}
111
+ ) as Promise<ERC1967Proxy>;
112
+ }
113
+ getDeployTransaction(
114
+ _logic: string,
115
+ _data: BytesLike,
116
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
117
+ ): TransactionRequest {
118
+ return super.getDeployTransaction(_logic, _data, overrides || {});
119
+ }
120
+ attach(address: string): ERC1967Proxy {
121
+ return super.attach(address) as ERC1967Proxy;
122
+ }
123
+ connect(signer: Signer): ERC1967Proxy__factory {
124
+ return super.connect(signer) as ERC1967Proxy__factory;
125
+ }
126
+ static readonly bytecode = _bytecode;
127
+ static readonly abi = _abi;
128
+ static createInterface(): ERC1967ProxyInterface {
129
+ return new utils.Interface(_abi) as ERC1967ProxyInterface;
130
+ }
131
+ static connect(
132
+ address: string,
133
+ signerOrProvider: Signer | Provider
134
+ ): ERC1967Proxy {
135
+ return new Contract(address, _abi, signerOrProvider) as ERC1967Proxy;
136
+ }
137
+ }
@@ -0,0 +1,71 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ ERC1967Upgrade,
9
+ ERC1967UpgradeInterface,
10
+ } from "../ERC1967Upgrade";
11
+
12
+ const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ indexed: false,
18
+ internalType: "address",
19
+ name: "previousAdmin",
20
+ type: "address",
21
+ },
22
+ {
23
+ indexed: false,
24
+ internalType: "address",
25
+ name: "newAdmin",
26
+ type: "address",
27
+ },
28
+ ],
29
+ name: "AdminChanged",
30
+ type: "event",
31
+ },
32
+ {
33
+ anonymous: false,
34
+ inputs: [
35
+ {
36
+ indexed: true,
37
+ internalType: "address",
38
+ name: "beacon",
39
+ type: "address",
40
+ },
41
+ ],
42
+ name: "BeaconUpgraded",
43
+ type: "event",
44
+ },
45
+ {
46
+ anonymous: false,
47
+ inputs: [
48
+ {
49
+ indexed: true,
50
+ internalType: "address",
51
+ name: "implementation",
52
+ type: "address",
53
+ },
54
+ ],
55
+ name: "Upgraded",
56
+ type: "event",
57
+ },
58
+ ];
59
+
60
+ export class ERC1967Upgrade__factory {
61
+ static readonly abi = _abi;
62
+ static createInterface(): ERC1967UpgradeInterface {
63
+ return new utils.Interface(_abi) as ERC1967UpgradeInterface;
64
+ }
65
+ static connect(
66
+ address: string,
67
+ signerOrProvider: Signer | Provider
68
+ ): ERC1967Upgrade {
69
+ return new Contract(address, _abi, signerOrProvider) as ERC1967Upgrade;
70
+ }
71
+ }
@@ -0,0 +1,340 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
6
+ import { Provider, TransactionRequest } from "@ethersproject/providers";
7
+ import type { ERC20, ERC20Interface } from "../ERC20";
8
+
9
+ const _abi = [
10
+ {
11
+ inputs: [
12
+ {
13
+ internalType: "string",
14
+ name: "name_",
15
+ type: "string",
16
+ },
17
+ {
18
+ internalType: "string",
19
+ name: "symbol_",
20
+ type: "string",
21
+ },
22
+ ],
23
+ stateMutability: "nonpayable",
24
+ type: "constructor",
25
+ },
26
+ {
27
+ anonymous: false,
28
+ inputs: [
29
+ {
30
+ indexed: true,
31
+ internalType: "address",
32
+ name: "owner",
33
+ type: "address",
34
+ },
35
+ {
36
+ indexed: true,
37
+ internalType: "address",
38
+ name: "spender",
39
+ type: "address",
40
+ },
41
+ {
42
+ indexed: false,
43
+ internalType: "uint256",
44
+ name: "value",
45
+ type: "uint256",
46
+ },
47
+ ],
48
+ name: "Approval",
49
+ type: "event",
50
+ },
51
+ {
52
+ anonymous: false,
53
+ inputs: [
54
+ {
55
+ indexed: true,
56
+ internalType: "address",
57
+ name: "from",
58
+ type: "address",
59
+ },
60
+ {
61
+ indexed: true,
62
+ internalType: "address",
63
+ name: "to",
64
+ type: "address",
65
+ },
66
+ {
67
+ indexed: false,
68
+ internalType: "uint256",
69
+ name: "value",
70
+ type: "uint256",
71
+ },
72
+ ],
73
+ name: "Transfer",
74
+ type: "event",
75
+ },
76
+ {
77
+ inputs: [
78
+ {
79
+ internalType: "address",
80
+ name: "owner",
81
+ type: "address",
82
+ },
83
+ {
84
+ internalType: "address",
85
+ name: "spender",
86
+ type: "address",
87
+ },
88
+ ],
89
+ name: "allowance",
90
+ outputs: [
91
+ {
92
+ internalType: "uint256",
93
+ name: "",
94
+ type: "uint256",
95
+ },
96
+ ],
97
+ stateMutability: "view",
98
+ type: "function",
99
+ },
100
+ {
101
+ inputs: [
102
+ {
103
+ internalType: "address",
104
+ name: "spender",
105
+ type: "address",
106
+ },
107
+ {
108
+ internalType: "uint256",
109
+ name: "amount",
110
+ type: "uint256",
111
+ },
112
+ ],
113
+ name: "approve",
114
+ outputs: [
115
+ {
116
+ internalType: "bool",
117
+ name: "",
118
+ type: "bool",
119
+ },
120
+ ],
121
+ stateMutability: "nonpayable",
122
+ type: "function",
123
+ },
124
+ {
125
+ inputs: [
126
+ {
127
+ internalType: "address",
128
+ name: "account",
129
+ type: "address",
130
+ },
131
+ ],
132
+ name: "balanceOf",
133
+ outputs: [
134
+ {
135
+ internalType: "uint256",
136
+ name: "",
137
+ type: "uint256",
138
+ },
139
+ ],
140
+ stateMutability: "view",
141
+ type: "function",
142
+ },
143
+ {
144
+ inputs: [],
145
+ name: "decimals",
146
+ outputs: [
147
+ {
148
+ internalType: "uint8",
149
+ name: "",
150
+ type: "uint8",
151
+ },
152
+ ],
153
+ stateMutability: "view",
154
+ type: "function",
155
+ },
156
+ {
157
+ inputs: [
158
+ {
159
+ internalType: "address",
160
+ name: "spender",
161
+ type: "address",
162
+ },
163
+ {
164
+ internalType: "uint256",
165
+ name: "subtractedValue",
166
+ type: "uint256",
167
+ },
168
+ ],
169
+ name: "decreaseAllowance",
170
+ outputs: [
171
+ {
172
+ internalType: "bool",
173
+ name: "",
174
+ type: "bool",
175
+ },
176
+ ],
177
+ stateMutability: "nonpayable",
178
+ type: "function",
179
+ },
180
+ {
181
+ inputs: [
182
+ {
183
+ internalType: "address",
184
+ name: "spender",
185
+ type: "address",
186
+ },
187
+ {
188
+ internalType: "uint256",
189
+ name: "addedValue",
190
+ type: "uint256",
191
+ },
192
+ ],
193
+ name: "increaseAllowance",
194
+ outputs: [
195
+ {
196
+ internalType: "bool",
197
+ name: "",
198
+ type: "bool",
199
+ },
200
+ ],
201
+ stateMutability: "nonpayable",
202
+ type: "function",
203
+ },
204
+ {
205
+ inputs: [],
206
+ name: "name",
207
+ outputs: [
208
+ {
209
+ internalType: "string",
210
+ name: "",
211
+ type: "string",
212
+ },
213
+ ],
214
+ stateMutability: "view",
215
+ type: "function",
216
+ },
217
+ {
218
+ inputs: [],
219
+ name: "symbol",
220
+ outputs: [
221
+ {
222
+ internalType: "string",
223
+ name: "",
224
+ type: "string",
225
+ },
226
+ ],
227
+ stateMutability: "view",
228
+ type: "function",
229
+ },
230
+ {
231
+ inputs: [],
232
+ name: "totalSupply",
233
+ outputs: [
234
+ {
235
+ internalType: "uint256",
236
+ name: "",
237
+ type: "uint256",
238
+ },
239
+ ],
240
+ stateMutability: "view",
241
+ type: "function",
242
+ },
243
+ {
244
+ inputs: [
245
+ {
246
+ internalType: "address",
247
+ name: "to",
248
+ type: "address",
249
+ },
250
+ {
251
+ internalType: "uint256",
252
+ name: "amount",
253
+ type: "uint256",
254
+ },
255
+ ],
256
+ name: "transfer",
257
+ outputs: [
258
+ {
259
+ internalType: "bool",
260
+ name: "",
261
+ type: "bool",
262
+ },
263
+ ],
264
+ stateMutability: "nonpayable",
265
+ type: "function",
266
+ },
267
+ {
268
+ inputs: [
269
+ {
270
+ internalType: "address",
271
+ name: "from",
272
+ type: "address",
273
+ },
274
+ {
275
+ internalType: "address",
276
+ name: "to",
277
+ type: "address",
278
+ },
279
+ {
280
+ internalType: "uint256",
281
+ name: "amount",
282
+ type: "uint256",
283
+ },
284
+ ],
285
+ name: "transferFrom",
286
+ outputs: [
287
+ {
288
+ internalType: "bool",
289
+ name: "",
290
+ type: "bool",
291
+ },
292
+ ],
293
+ stateMutability: "nonpayable",
294
+ type: "function",
295
+ },
296
+ ];
297
+
298
+ const _bytecode =
299
+ "0x60806040523480156200001157600080fd5b5060405162000db638038062000db68339810160408190526200003491620001db565b81516200004990600390602085019062000068565b5080516200005f90600490602084019062000068565b50505062000281565b828054620000769062000245565b90600052602060002090601f0160209004810192826200009a5760008555620000e5565b82601f10620000b557805160ff1916838001178555620000e5565b82800160010185558215620000e5579182015b82811115620000e5578251825591602001919060010190620000c8565b50620000f3929150620000f7565b5090565b5b80821115620000f35760008155600101620000f8565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200013657600080fd5b81516001600160401b03808211156200015357620001536200010e565b604051601f8301601f19908116603f011681019082821181831017156200017e576200017e6200010e565b816040528381526020925086838588010111156200019b57600080fd5b600091505b83821015620001bf5785820183015181830184015290820190620001a0565b83821115620001d15760008385830101525b9695505050505050565b60008060408385031215620001ef57600080fd5b82516001600160401b03808211156200020757600080fd5b620002158683870162000124565b935060208501519150808211156200022c57600080fd5b506200023b8582860162000124565b9150509250929050565b600181811c908216806200025a57607f821691505b6020821081036200027b57634e487b7160e01b600052602260045260246000fd5b50919050565b610b2580620002916000396000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c80633950935111610081578063a457c2d71161005b578063a457c2d714610194578063a9059cbb146101a7578063dd62ed3e146101ba57600080fd5b8063395093511461014357806370a082311461015657806395d89b411461018c57600080fd5b806318160ddd116100b257806318160ddd1461010f57806323b872dd14610121578063313ce5671461013457600080fd5b806306fdde03146100ce578063095ea7b3146100ec575b600080fd5b6100d6610200565b6040516100e39190610906565b60405180910390f35b6100ff6100fa3660046109a2565b610292565b60405190151581526020016100e3565b6002545b6040519081526020016100e3565b6100ff61012f3660046109cc565b6102aa565b604051601281526020016100e3565b6100ff6101513660046109a2565b6102ce565b610113610164366004610a08565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6100d661031a565b6100ff6101a23660046109a2565b610329565b6100ff6101b53660046109a2565b6103ff565b6101136101c8366004610a2a565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b60606003805461020f90610a5d565b80601f016020809104026020016040519081016040528092919081815260200182805461023b90610a5d565b80156102885780601f1061025d57610100808354040283529160200191610288565b820191906000526020600020905b81548152906001019060200180831161026b57829003601f168201915b5050505050905090565b6000336102a081858561040d565b5060019392505050565b6000336102b88582856105c0565b6102c3858585610697565b506001949350505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906102a09082908690610315908790610ab0565b61040d565b60606004805461020f90610a5d565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909190838110156103f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6102c3828686840361040d565b6000336102a0818585610697565b73ffffffffffffffffffffffffffffffffffffffff83166104af576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016103e9565b73ffffffffffffffffffffffffffffffffffffffff8216610552576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016103e9565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146106915781811015610684576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016103e9565b610691848484840361040d565b50505050565b73ffffffffffffffffffffffffffffffffffffffff831661073a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016103e9565b73ffffffffffffffffffffffffffffffffffffffff82166107dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016103e9565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015610893576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016103e9565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610691565b600060208083528351808285015260005b8181101561093357858101830151858201604001528201610917565b81811115610945576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461099d57600080fd5b919050565b600080604083850312156109b557600080fd5b6109be83610979565b946020939093013593505050565b6000806000606084860312156109e157600080fd5b6109ea84610979565b92506109f860208501610979565b9150604084013590509250925092565b600060208284031215610a1a57600080fd5b610a2382610979565b9392505050565b60008060408385031215610a3d57600080fd5b610a4683610979565b9150610a5460208401610979565b90509250929050565b600181811c90821680610a7157607f821691505b602082108103610aaa577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60008219821115610aea577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b50019056fea26469706673582212203922d3ab57b4d7b198e37b06d3f2bf829bb7efc7d76a26cd66142c16aa6740d464736f6c634300080d0033";
300
+
301
+ export class ERC20__factory extends ContractFactory {
302
+ constructor(
303
+ ...args: [signer: Signer] | ConstructorParameters<typeof ContractFactory>
304
+ ) {
305
+ if (args.length === 1) {
306
+ super(_abi, _bytecode, args[0]);
307
+ } else {
308
+ super(...args);
309
+ }
310
+ }
311
+
312
+ deploy(
313
+ name_: string,
314
+ symbol_: string,
315
+ overrides?: Overrides & { from?: string | Promise<string> }
316
+ ): Promise<ERC20> {
317
+ return super.deploy(name_, symbol_, overrides || {}) as Promise<ERC20>;
318
+ }
319
+ getDeployTransaction(
320
+ name_: string,
321
+ symbol_: string,
322
+ overrides?: Overrides & { from?: string | Promise<string> }
323
+ ): TransactionRequest {
324
+ return super.getDeployTransaction(name_, symbol_, overrides || {});
325
+ }
326
+ attach(address: string): ERC20 {
327
+ return super.attach(address) as ERC20;
328
+ }
329
+ connect(signer: Signer): ERC20__factory {
330
+ return super.connect(signer) as ERC20__factory;
331
+ }
332
+ static readonly bytecode = _bytecode;
333
+ static readonly abi = _abi;
334
+ static createInterface(): ERC20Interface {
335
+ return new utils.Interface(_abi) as ERC20Interface;
336
+ }
337
+ static connect(address: string, signerOrProvider: Signer | Provider): ERC20 {
338
+ return new Contract(address, _abi, signerOrProvider) as ERC20;
339
+ }
340
+ }