@gearbox-protocol/sdk 3.0.0-next.5 → 3.0.0-next.50
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/contracts/IAirdropDistributor.sol +55 -0
- package/contracts/IDegenDistributor.sol +28 -0
- package/contracts/IOffchainOracle.sol +17 -0
- package/contracts/IWETHGateway.sol +33 -0
- package/contracts/IwstETHGateway.sol +24 -0
- package/contracts/index.sol +11 -3
- package/lib/apy/curveAPY.js +2 -1
- package/lib/apy/index.d.ts +2 -2
- package/lib/apy/yearnAPY.js +1 -1
- package/lib/config.d.ts +0 -1
- package/lib/config.js +1 -2
- package/lib/core/assets.d.ts +4 -4
- package/lib/core/assets.js +28 -17
- package/lib/core/creditAccount.d.ts +31 -6
- package/lib/core/creditAccount.js +101 -37
- package/lib/core/creditAccount.spec.js +693 -10
- package/lib/core/creditManager.d.ts +22 -8
- package/lib/core/creditManager.js +86 -30
- package/lib/core/events.js +14 -14
- package/lib/core/gauge.d.ts +26 -0
- package/lib/core/gauge.js +63 -0
- package/lib/core/gaugeMath.d.ts +40 -0
- package/lib/core/gaugeMath.js +108 -0
- package/lib/core/gaugeMath.spec.d.ts +1 -0
- package/lib/core/gaugeMath.spec.js +388 -0
- package/lib/core/{pool/data.d.ts → pool.d.ts} +18 -10
- package/lib/core/{pool/data.js → pool.js} +69 -24
- package/lib/core/strategy.js +2 -2
- package/lib/core/trade.d.ts +5 -23
- package/lib/core/trade.js +4 -61
- package/lib/core/transactions.d.ts +50 -3
- package/lib/core/transactions.js +136 -105
- package/lib/index.d.ts +3 -0
- package/lib/index.js +3 -0
- package/lib/parsers/abstractParser.js +1 -2
- package/lib/parsers/creditFacadeParser.d.ts +2 -1
- package/lib/parsers/creditFacadeParser.js +17 -5
- package/lib/parsers/creditFacadeParser.spec.js +2 -3
- package/lib/parsers/curveAdapterParser.js +2 -3
- package/lib/parsers/txParser.d.ts +4 -4
- package/lib/parsers/txParser.js +9 -3
- package/lib/parsers/uniV2AdapterParser.js +2 -2
- package/lib/parsers/uniV3AdapterParser.js +3 -3
- package/lib/pathfinder/core.d.ts +4 -4
- package/lib/pathfinder/pathOptions.d.ts +2 -1
- package/lib/pathfinder/pathOptions.js +20 -1
- package/lib/pathfinder/pathOptions.spec.js +2 -2
- package/lib/pathfinder/pathfinder.js +4 -3
- package/lib/pathfinder/pathfinder.spec.js +3 -1
- package/lib/payload/creditAccount.d.ts +2 -2
- package/lib/payload/gauge.d.ts +12 -0
- package/lib/payload/pool.d.ts +6 -1
- package/lib/types/IAirdropDistributor.sol/IAirdropDistributor.d.ts +124 -0
- package/lib/types/IAirdropDistributor.sol/IAirdropDistributorEvents.d.ts +73 -0
- package/lib/types/IAirdropDistributor.sol/index.d.ts +2 -0
- package/lib/types/IConvexToken.d.ts +9 -1
- package/lib/types/IConvexV1BaseRewardPoolAdapter.d.ts +17 -1
- package/lib/types/{IConvexV1BoosterAdapter.d.ts → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.d.ts} +19 -4
- package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.d.ts +43 -0
- package/lib/types/IConvexV1BoosterAdapter.sol/index.d.ts +2 -0
- package/lib/types/ICreditConfiguratorV3.sol/ICreditConfiguratorV3.d.ts +716 -0
- package/lib/types/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events.d.ts +275 -0
- package/lib/types/ICreditConfiguratorV3.sol/index.d.ts +2 -0
- package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2Extended.d.ts +7 -11
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.d.ts +165 -20
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.d.ts +5 -7
- package/lib/types/ICreditFacadeV3Multicall.d.ts +35 -12
- package/lib/types/ICreditManagerV3.sol/ICreditManagerV3.d.ts +273 -39
- package/lib/types/IDataCompressorV2_10.d.ts +43 -9
- package/lib/types/IDataCompressorV3_00.d.ts +140 -10
- package/lib/types/IDegenDistributor.sol/IDegenDistributor.d.ts +96 -0
- package/lib/types/IDegenDistributor.sol/IDegenDistributorEvents.d.ts +53 -0
- package/lib/types/IDegenDistributor.sol/index.d.ts +2 -0
- package/lib/types/{draft-IERC20Permit.sol/IERC20Permit.d.ts → IERC20Permit.d.ts} +1 -1
- package/lib/types/IERC20ZapperDeposits.d.ts +117 -0
- package/lib/types/IETHZapperDeposits.d.ts +66 -0
- package/lib/types/IGasPricer.d.ts +44 -0
- package/lib/types/IGearStakingV3.sol/IGearStakingV3.d.ts +408 -0
- package/lib/types/IGearStakingV3.sol/IGearStakingV3Events.d.ts +117 -0
- package/lib/types/IGearStakingV3.sol/index.d.ts +2 -0
- package/lib/types/{ILidoV1Adapter.sol/ILidoV1Adapter.d.ts → ILidoV1Adapter.d.ts} +5 -40
- package/lib/types/ILidoV1Adapter.js +2 -0
- package/lib/types/IOffchainOracle.d.ts +58 -0
- package/lib/types/IOffchainOracle.js +2 -0
- package/lib/types/IPoolV3.sol/IPoolV3.d.ts +43 -11
- package/lib/types/IPoolV3.sol/index.d.ts +0 -1
- package/lib/types/IWETHGateway.d.ts +90 -0
- package/lib/types/IWETHGateway.js +2 -0
- package/lib/types/IZapper.d.ts +130 -0
- package/lib/types/IZapper.js +2 -0
- package/lib/types/IwstETHGateway.sol/IwstETHGateWay.d.ts +70 -0
- package/lib/types/IwstETHGateway.sol/IwstETHGateWay.js +2 -0
- package/lib/types/IwstETHGateway.sol/index.d.ts +1 -0
- package/lib/types/IwstETHGateway.sol/index.js +2 -0
- package/lib/types/factories/AddressProvider__factory.d.ts +1 -1
- package/lib/types/factories/AddressProvider__factory.js +1 -1
- package/lib/types/factories/Balances.sol/BalanceOps__factory.d.ts +1 -1
- package/lib/types/factories/Balances.sol/BalanceOps__factory.js +1 -1
- package/lib/types/factories/Claimable__factory.d.ts +1 -1
- package/lib/types/factories/Claimable__factory.js +1 -1
- package/lib/types/factories/Errors__factory.d.ts +1 -1
- package/lib/types/factories/Errors__factory.js +1 -1
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.d.ts +63 -0
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.js +88 -0
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.d.ts +119 -0
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.js +161 -0
- package/lib/types/factories/IAirdropDistributor.sol/index.d.ts +2 -0
- package/lib/types/factories/IAirdropDistributor.sol/index.js +10 -0
- package/lib/types/factories/IConvexToken__factory.d.ts +10 -0
- package/lib/types/factories/IConvexToken__factory.js +13 -0
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +20 -0
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +26 -0
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.d.ts +23 -0
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.js +38 -0
- package/lib/types/factories/{IConvexV1BoosterAdapter__factory.d.ts → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts} +16 -1
- package/lib/types/factories/{IConvexV1BoosterAdapter__factory.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js} +19 -0
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.d.ts +2 -0
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.js +10 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.d.ts +273 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.js +357 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.d.ts +605 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.js +785 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/index.d.ts +2 -0
- package/lib/types/factories/ICreditConfiguratorV3.sol/index.js +10 -0
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.d.ts +0 -4
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.js +0 -5
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +1 -6
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +1 -7
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +144 -13
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +185 -15
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +35 -5
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +43 -5
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +199 -25
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +252 -28
- package/lib/types/factories/IDataCompressorV2_10__factory.d.ts +110 -12
- package/lib/types/factories/IDataCompressorV2_10__factory.js +138 -14
- package/lib/types/factories/IDataCompressorV3_00__factory.d.ts +400 -16
- package/lib/types/factories/IDataCompressorV3_00__factory.js +508 -19
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.d.ts +38 -0
- package/lib/types/factories/{AaveV2_WrappedAToken.sol/IWrappedATokenEvents__factory.js → IDegenDistributor.sol/IDegenDistributorEvents__factory.js} +13 -25
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.d.ts +84 -0
- package/lib/types/factories/{IPoolV3.sol/IPoolBase__factory.js → IDegenDistributor.sol/IDegenDistributor__factory.js} +46 -41
- package/lib/types/factories/IDegenDistributor.sol/index.d.ts +2 -0
- package/lib/types/factories/IDegenDistributor.sol/index.js +10 -0
- package/lib/types/factories/{draft-IERC20Permit.sol/IERC20Permit__factory.d.ts → IERC20Permit__factory.d.ts} +1 -1
- package/lib/types/factories/IERC20ZapperDeposits__factory.d.ts +120 -0
- package/lib/types/factories/IERC20ZapperDeposits__factory.js +165 -0
- package/lib/types/factories/IETHZapperDeposits__factory.d.ts +40 -0
- package/lib/types/factories/IETHZapperDeposits__factory.js +62 -0
- package/lib/types/factories/IGasPricer__factory.d.ts +22 -0
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.js → IGasPricer__factory.js} +14 -8
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.d.ts +113 -0
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.js +152 -0
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.d.ts +504 -0
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.js +660 -0
- package/lib/types/factories/IGearStakingV3.sol/index.d.ts +2 -0
- package/lib/types/factories/IGearStakingV3.sol/index.js +10 -0
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1Adapter__factory.d.ts → ILidoV1Adapter__factory.d.ts} +1 -35
- package/lib/types/factories/{ILidoV1Adapter.sol/ILidoV1Adapter__factory.js → ILidoV1Adapter__factory.js} +0 -44
- package/lib/types/factories/IOffchainOracle__factory.d.ts +48 -0
- package/lib/types/factories/IOffchainOracle__factory.js +72 -0
- package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.d.ts +62 -14
- package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.js +79 -17
- package/lib/types/factories/IPoolV3.sol/index.d.ts +0 -1
- package/lib/types/factories/IPoolV3.sol/index.js +1 -3
- package/lib/types/factories/IWETHGateway__factory.d.ts +58 -0
- package/lib/types/factories/IWETHGateway__factory.js +83 -0
- package/lib/types/factories/{WERC20ZapperBase__factory.d.ts → IZapper__factory.d.ts} +57 -61
- package/lib/types/factories/{WERC20ZapperBase__factory.js → IZapper__factory.js} +65 -71
- package/lib/types/factories/{ZapperBase__factory.d.ts → IwstETHGateway.sol/IwstETHGateWay__factory.d.ts} +22 -34
- package/lib/types/factories/{ZapperBase__factory.js → IwstETHGateway.sol/IwstETHGateWay__factory.js} +22 -39
- package/lib/types/factories/IwstETHGateway.sol/index.d.ts +1 -0
- package/lib/types/factories/IwstETHGateway.sol/index.js +8 -0
- package/lib/types/factories/SafeERC20__factory.d.ts +1 -1
- package/lib/types/factories/SafeERC20__factory.js +1 -1
- package/lib/types/factories/index.d.ts +15 -13
- package/lib/types/factories/index.js +25 -25
- package/lib/types/factories/{IRouter__factory.d.ts → interfaces/IRouter__factory.d.ts} +15 -1
- package/lib/types/factories/{IRouter__factory.js → interfaces/IRouter__factory.js} +19 -0
- package/lib/types/factories/interfaces/index.d.ts +1 -0
- package/lib/types/factories/interfaces/index.js +8 -0
- package/lib/types/index.d.ts +62 -48
- package/lib/types/index.js +52 -46
- package/lib/types/{IRouter.d.ts → interfaces/IRouter.d.ts} +12 -2
- package/lib/types/interfaces/IRouter.js +2 -0
- package/lib/types/interfaces/index.d.ts +1 -0
- package/lib/types/interfaces/index.js +2 -0
- package/lib/utils/formatter.d.ts +0 -3
- package/lib/utils/formatter.js +1 -67
- package/lib/utils/math.d.ts +2 -0
- package/lib/utils/math.js +2 -0
- package/lib/utils/types.d.ts +1 -0
- package/lib/watchers/creditAccountWatcher.d.ts +3 -2
- package/lib/watchers/creditAccountWatcher.js +19 -13
- package/lib/watchers/creditAccountWatcher.spec.js +18 -18
- package/lib/watchers/creditManagerWatcher.d.ts +5 -3
- package/lib/watchers/creditManagerWatcher.js +32 -10
- package/lib/watchers/creditManagerWatcher.spec.js +12 -4
- package/package.json +10 -9
- package/contracts/IRouter.sol +0 -100
- package/lib/core/pool/index.d.ts +0 -1
- package/lib/core/pool/index.js +0 -17
- package/lib/types/AaveV2_WrappedAToken.sol/IWrappedATokenEvents.d.ts +0 -60
- package/lib/types/AaveV2_WrappedAToken.sol/WrappedAToken.d.ts +0 -332
- package/lib/types/AaveV2_WrappedAToken.sol/index.d.ts +0 -2
- package/lib/types/ERC20.d.ts +0 -198
- package/lib/types/IAToken.d.ts +0 -182
- package/lib/types/ILendingPool.d.ts +0 -140
- package/lib/types/ILidoV1Adapter.sol/ILidoV1AdapterEvents.d.ts +0 -39
- package/lib/types/ILidoV1Adapter.sol/ILidoV1AdapterExceptions.d.ts +0 -27
- package/lib/types/ILidoV1Adapter.sol/index.d.ts +0 -3
- package/lib/types/IPoolV3.sol/IPoolBase.d.ts +0 -102
- package/lib/types/WATokenZapper.d.ts +0 -134
- package/lib/types/WERC20ZapperBase.d.ts +0 -134
- package/lib/types/WETHZapper.d.ts +0 -122
- package/lib/types/WstETHZapper.d.ts +0 -134
- package/lib/types/ZapperBase.d.ts +0 -70
- package/lib/types/draft-IERC20Permit.sol/index.d.ts +0 -1
- package/lib/types/factories/AaveV2_WrappedAToken.sol/IWrappedATokenEvents__factory.d.ts +0 -48
- package/lib/types/factories/AaveV2_WrappedAToken.sol/WrappedAToken__factory.d.ts +0 -397
- package/lib/types/factories/AaveV2_WrappedAToken.sol/WrappedAToken__factory.js +0 -535
- package/lib/types/factories/AaveV2_WrappedAToken.sol/index.d.ts +0 -2
- package/lib/types/factories/AaveV2_WrappedAToken.sol/index.js +0 -10
- package/lib/types/factories/ERC20__factory.d.ts +0 -239
- package/lib/types/factories/ERC20__factory.js +0 -328
- package/lib/types/factories/IAToken__factory.d.ts +0 -198
- package/lib/types/factories/IAToken__factory.js +0 -267
- package/lib/types/factories/ILendingPool__factory.d.ts +0 -134
- package/lib/types/factories/ILendingPool__factory.js +0 -183
- package/lib/types/factories/ILidoV1Adapter.sol/ILidoV1AdapterEvents__factory.d.ts +0 -18
- package/lib/types/factories/ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.d.ts +0 -12
- package/lib/types/factories/ILidoV1Adapter.sol/ILidoV1AdapterExceptions__factory.js +0 -24
- package/lib/types/factories/ILidoV1Adapter.sol/index.d.ts +0 -3
- package/lib/types/factories/ILidoV1Adapter.sol/index.js +0 -12
- package/lib/types/factories/IPoolV3.sol/IPoolBase__factory.d.ts +0 -80
- package/lib/types/factories/WATokenZapper__factory.d.ts +0 -161
- package/lib/types/factories/WATokenZapper__factory.js +0 -227
- package/lib/types/factories/WETHZapper__factory.d.ts +0 -138
- package/lib/types/factories/WETHZapper__factory.js +0 -198
- package/lib/types/factories/WstETHZapper__factory.d.ts +0 -161
- package/lib/types/factories/WstETHZapper__factory.js +0 -227
- package/lib/types/factories/draft-IERC20Permit.sol/index.d.ts +0 -1
- package/lib/types/factories/draft-IERC20Permit.sol/index.js +0 -8
- /package/lib/{types/AaveV2_WrappedAToken.sol/IWrappedATokenEvents.js → payload/gauge.js} +0 -0
- /package/lib/types/{AaveV2_WrappedAToken.sol/WrappedAToken.js → IAirdropDistributor.sol/IAirdropDistributor.js} +0 -0
- /package/lib/types/{AaveV2_WrappedAToken.sol/index.js → IAirdropDistributor.sol/IAirdropDistributorEvents.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol → IAirdropDistributor.sol}/index.js +0 -0
- /package/lib/types/{IConvexV1BoosterAdapter.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.js} +0 -0
- /package/lib/types/{ERC20.js → IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.js} +0 -0
- /package/lib/types/{draft-IERC20Permit.sol → IConvexV1BoosterAdapter.sol}/index.js +0 -0
- /package/lib/types/{IAToken.js → ICreditConfiguratorV3.sol/ICreditConfiguratorV3.js} +0 -0
- /package/lib/types/{ILendingPool.js → ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1Adapter.js → ICreditConfiguratorV3.sol/index.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterEvents.js → IDegenDistributor.sol/IDegenDistributor.js} +0 -0
- /package/lib/types/{ILidoV1Adapter.sol/ILidoV1AdapterExceptions.js → IDegenDistributor.sol/IDegenDistributorEvents.js} +0 -0
- /package/lib/types/{IPoolV3.sol/IPoolBase.js → IDegenDistributor.sol/index.js} +0 -0
- /package/lib/types/{draft-IERC20Permit.sol/IERC20Permit.js → IERC20Permit.js} +0 -0
- /package/lib/types/{IRouter.js → IERC20ZapperDeposits.js} +0 -0
- /package/lib/types/{WATokenZapper.js → IETHZapperDeposits.js} +0 -0
- /package/lib/types/{WERC20ZapperBase.js → IGasPricer.js} +0 -0
- /package/lib/types/{WETHZapper.js → IGearStakingV3.sol/IGearStakingV3.js} +0 -0
- /package/lib/types/{WstETHZapper.js → IGearStakingV3.sol/IGearStakingV3Events.js} +0 -0
- /package/lib/types/{ZapperBase.js → IGearStakingV3.sol/index.js} +0 -0
- /package/lib/types/factories/{draft-IERC20Permit.sol/IERC20Permit__factory.js → IERC20Permit__factory.js} +0 -0
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
import { Signer, ContractFactory, Overrides } from "ethers";
|
|
2
|
-
import type { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
3
|
-
import type { PromiseOrValue } from "../common";
|
|
4
|
-
import type { ERC20, ERC20Interface } from "../ERC20";
|
|
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 = "0x60806040523480156200001157600080fd5b5060405162000e0f38038062000e0f83398101604081905262000034916200011f565b600362000042838262000218565b50600462000051828262000218565b505050620002e4565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200008257600080fd5b81516001600160401b03808211156200009f576200009f6200005a565b604051601f8301601f19908116603f01168101908282118183101715620000ca57620000ca6200005a565b81604052838152602092508683858801011115620000e757600080fd5b600091505b838210156200010b5785820183015181830184015290820190620000ec565b600093810190920192909252949350505050565b600080604083850312156200013357600080fd5b82516001600160401b03808211156200014b57600080fd5b620001598683870162000070565b935060208501519150808211156200017057600080fd5b506200017f8582860162000070565b9150509250929050565b600181811c908216806200019e57607f821691505b602082108103620001bf57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200021357600081815260208120601f850160051c81016020861015620001ee5750805b601f850160051c820191505b818110156200020f57828155600101620001fa565b5050505b505050565b81516001600160401b038111156200023457620002346200005a565b6200024c8162000245845462000189565b84620001c5565b602080601f8311600181146200028457600084156200026b5750858301515b600019600386901b1c1916600185901b1785556200020f565b600085815260208120601f198616915b82811015620002b55788860151825594840194600190910190840162000294565b5085821015620002d45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b610b1b80620002f46000396000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c80633950935111610081578063a457c2d71161005b578063a457c2d714610194578063a9059cbb146101a7578063dd62ed3e146101ba57600080fd5b8063395093511461014357806370a082311461015657806395d89b411461018c57600080fd5b806318160ddd116100b257806318160ddd1461010f57806323b872dd14610121578063313ce5671461013457600080fd5b806306fdde03146100ce578063095ea7b3146100ec575b600080fd5b6100d6610200565b6040516100e39190610908565b60405180910390f35b6100ff6100fa36600461099d565b610292565b60405190151581526020016100e3565b6002545b6040519081526020016100e3565b6100ff61012f3660046109c7565b6102ac565b604051601281526020016100e3565b6100ff61015136600461099d565b6102d0565b610113610164366004610a03565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6100d661031c565b6100ff6101a236600461099d565b61032b565b6100ff6101b536600461099d565b610401565b6101136101c8366004610a25565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b60606003805461020f90610a58565b80601f016020809104026020016040519081016040528092919081815260200182805461023b90610a58565b80156102885780601f1061025d57610100808354040283529160200191610288565b820191906000526020600020905b81548152906001019060200180831161026b57829003601f168201915b5050505050905090565b6000336102a081858561040f565b60019150505b92915050565b6000336102ba8582856105c2565b6102c5858585610699565b506001949350505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906102a09082908690610317908790610aab565b61040f565b60606004805461020f90610a58565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909190838110156103f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6102c5828686840361040f565b6000336102a0818585610699565b73ffffffffffffffffffffffffffffffffffffffff83166104b1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016103eb565b73ffffffffffffffffffffffffffffffffffffffff8216610554576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016103eb565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146106935781811015610686576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016103eb565b610693848484840361040f565b50505050565b73ffffffffffffffffffffffffffffffffffffffff831661073c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016103eb565b73ffffffffffffffffffffffffffffffffffffffff82166107df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016103eb565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015610895576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016103eb565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610693565b600060208083528351808285015260005b8181101561093557858101830151858201604001528201610919565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461099857600080fd5b919050565b600080604083850312156109b057600080fd5b6109b983610974565b946020939093013593505050565b6000806000606084860312156109dc57600080fd5b6109e584610974565b92506109f360208501610974565b9150604084013590509250925092565b600060208284031215610a1557600080fd5b610a1e82610974565b9392505050565b60008060408385031215610a3857600080fd5b610a4183610974565b9150610a4f60208401610974565b90509250929050565b600181811c90821680610a6c57607f821691505b602082108103610aa5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b808201808211156102a6577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea26469706673582212204199705c7c104d34def4966a6cebb1ea013f2c239fda94514222b01e4c429cab64736f6c63430008110033";
|
|
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 {};
|
|
@@ -1,328 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ERC20__factory = void 0;
|
|
4
|
-
/* Autogenerated file. Do not edit manually. */
|
|
5
|
-
/* tslint:disable */
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
const ethers_1 = require("ethers");
|
|
8
|
-
const _abi = [
|
|
9
|
-
{
|
|
10
|
-
inputs: [
|
|
11
|
-
{
|
|
12
|
-
internalType: "string",
|
|
13
|
-
name: "name_",
|
|
14
|
-
type: "string",
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
internalType: "string",
|
|
18
|
-
name: "symbol_",
|
|
19
|
-
type: "string",
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
stateMutability: "nonpayable",
|
|
23
|
-
type: "constructor",
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
anonymous: false,
|
|
27
|
-
inputs: [
|
|
28
|
-
{
|
|
29
|
-
indexed: true,
|
|
30
|
-
internalType: "address",
|
|
31
|
-
name: "owner",
|
|
32
|
-
type: "address",
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
indexed: true,
|
|
36
|
-
internalType: "address",
|
|
37
|
-
name: "spender",
|
|
38
|
-
type: "address",
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
indexed: false,
|
|
42
|
-
internalType: "uint256",
|
|
43
|
-
name: "value",
|
|
44
|
-
type: "uint256",
|
|
45
|
-
},
|
|
46
|
-
],
|
|
47
|
-
name: "Approval",
|
|
48
|
-
type: "event",
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
anonymous: false,
|
|
52
|
-
inputs: [
|
|
53
|
-
{
|
|
54
|
-
indexed: true,
|
|
55
|
-
internalType: "address",
|
|
56
|
-
name: "from",
|
|
57
|
-
type: "address",
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
indexed: true,
|
|
61
|
-
internalType: "address",
|
|
62
|
-
name: "to",
|
|
63
|
-
type: "address",
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
indexed: false,
|
|
67
|
-
internalType: "uint256",
|
|
68
|
-
name: "value",
|
|
69
|
-
type: "uint256",
|
|
70
|
-
},
|
|
71
|
-
],
|
|
72
|
-
name: "Transfer",
|
|
73
|
-
type: "event",
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
inputs: [
|
|
77
|
-
{
|
|
78
|
-
internalType: "address",
|
|
79
|
-
name: "owner",
|
|
80
|
-
type: "address",
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
internalType: "address",
|
|
84
|
-
name: "spender",
|
|
85
|
-
type: "address",
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
|
-
name: "allowance",
|
|
89
|
-
outputs: [
|
|
90
|
-
{
|
|
91
|
-
internalType: "uint256",
|
|
92
|
-
name: "",
|
|
93
|
-
type: "uint256",
|
|
94
|
-
},
|
|
95
|
-
],
|
|
96
|
-
stateMutability: "view",
|
|
97
|
-
type: "function",
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
inputs: [
|
|
101
|
-
{
|
|
102
|
-
internalType: "address",
|
|
103
|
-
name: "spender",
|
|
104
|
-
type: "address",
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
internalType: "uint256",
|
|
108
|
-
name: "amount",
|
|
109
|
-
type: "uint256",
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
name: "approve",
|
|
113
|
-
outputs: [
|
|
114
|
-
{
|
|
115
|
-
internalType: "bool",
|
|
116
|
-
name: "",
|
|
117
|
-
type: "bool",
|
|
118
|
-
},
|
|
119
|
-
],
|
|
120
|
-
stateMutability: "nonpayable",
|
|
121
|
-
type: "function",
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
inputs: [
|
|
125
|
-
{
|
|
126
|
-
internalType: "address",
|
|
127
|
-
name: "account",
|
|
128
|
-
type: "address",
|
|
129
|
-
},
|
|
130
|
-
],
|
|
131
|
-
name: "balanceOf",
|
|
132
|
-
outputs: [
|
|
133
|
-
{
|
|
134
|
-
internalType: "uint256",
|
|
135
|
-
name: "",
|
|
136
|
-
type: "uint256",
|
|
137
|
-
},
|
|
138
|
-
],
|
|
139
|
-
stateMutability: "view",
|
|
140
|
-
type: "function",
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
inputs: [],
|
|
144
|
-
name: "decimals",
|
|
145
|
-
outputs: [
|
|
146
|
-
{
|
|
147
|
-
internalType: "uint8",
|
|
148
|
-
name: "",
|
|
149
|
-
type: "uint8",
|
|
150
|
-
},
|
|
151
|
-
],
|
|
152
|
-
stateMutability: "view",
|
|
153
|
-
type: "function",
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
inputs: [
|
|
157
|
-
{
|
|
158
|
-
internalType: "address",
|
|
159
|
-
name: "spender",
|
|
160
|
-
type: "address",
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
internalType: "uint256",
|
|
164
|
-
name: "subtractedValue",
|
|
165
|
-
type: "uint256",
|
|
166
|
-
},
|
|
167
|
-
],
|
|
168
|
-
name: "decreaseAllowance",
|
|
169
|
-
outputs: [
|
|
170
|
-
{
|
|
171
|
-
internalType: "bool",
|
|
172
|
-
name: "",
|
|
173
|
-
type: "bool",
|
|
174
|
-
},
|
|
175
|
-
],
|
|
176
|
-
stateMutability: "nonpayable",
|
|
177
|
-
type: "function",
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
inputs: [
|
|
181
|
-
{
|
|
182
|
-
internalType: "address",
|
|
183
|
-
name: "spender",
|
|
184
|
-
type: "address",
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
internalType: "uint256",
|
|
188
|
-
name: "addedValue",
|
|
189
|
-
type: "uint256",
|
|
190
|
-
},
|
|
191
|
-
],
|
|
192
|
-
name: "increaseAllowance",
|
|
193
|
-
outputs: [
|
|
194
|
-
{
|
|
195
|
-
internalType: "bool",
|
|
196
|
-
name: "",
|
|
197
|
-
type: "bool",
|
|
198
|
-
},
|
|
199
|
-
],
|
|
200
|
-
stateMutability: "nonpayable",
|
|
201
|
-
type: "function",
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
inputs: [],
|
|
205
|
-
name: "name",
|
|
206
|
-
outputs: [
|
|
207
|
-
{
|
|
208
|
-
internalType: "string",
|
|
209
|
-
name: "",
|
|
210
|
-
type: "string",
|
|
211
|
-
},
|
|
212
|
-
],
|
|
213
|
-
stateMutability: "view",
|
|
214
|
-
type: "function",
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
inputs: [],
|
|
218
|
-
name: "symbol",
|
|
219
|
-
outputs: [
|
|
220
|
-
{
|
|
221
|
-
internalType: "string",
|
|
222
|
-
name: "",
|
|
223
|
-
type: "string",
|
|
224
|
-
},
|
|
225
|
-
],
|
|
226
|
-
stateMutability: "view",
|
|
227
|
-
type: "function",
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
inputs: [],
|
|
231
|
-
name: "totalSupply",
|
|
232
|
-
outputs: [
|
|
233
|
-
{
|
|
234
|
-
internalType: "uint256",
|
|
235
|
-
name: "",
|
|
236
|
-
type: "uint256",
|
|
237
|
-
},
|
|
238
|
-
],
|
|
239
|
-
stateMutability: "view",
|
|
240
|
-
type: "function",
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
inputs: [
|
|
244
|
-
{
|
|
245
|
-
internalType: "address",
|
|
246
|
-
name: "to",
|
|
247
|
-
type: "address",
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
internalType: "uint256",
|
|
251
|
-
name: "amount",
|
|
252
|
-
type: "uint256",
|
|
253
|
-
},
|
|
254
|
-
],
|
|
255
|
-
name: "transfer",
|
|
256
|
-
outputs: [
|
|
257
|
-
{
|
|
258
|
-
internalType: "bool",
|
|
259
|
-
name: "",
|
|
260
|
-
type: "bool",
|
|
261
|
-
},
|
|
262
|
-
],
|
|
263
|
-
stateMutability: "nonpayable",
|
|
264
|
-
type: "function",
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
inputs: [
|
|
268
|
-
{
|
|
269
|
-
internalType: "address",
|
|
270
|
-
name: "from",
|
|
271
|
-
type: "address",
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
internalType: "address",
|
|
275
|
-
name: "to",
|
|
276
|
-
type: "address",
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
internalType: "uint256",
|
|
280
|
-
name: "amount",
|
|
281
|
-
type: "uint256",
|
|
282
|
-
},
|
|
283
|
-
],
|
|
284
|
-
name: "transferFrom",
|
|
285
|
-
outputs: [
|
|
286
|
-
{
|
|
287
|
-
internalType: "bool",
|
|
288
|
-
name: "",
|
|
289
|
-
type: "bool",
|
|
290
|
-
},
|
|
291
|
-
],
|
|
292
|
-
stateMutability: "nonpayable",
|
|
293
|
-
type: "function",
|
|
294
|
-
},
|
|
295
|
-
];
|
|
296
|
-
const _bytecode = "0x60806040523480156200001157600080fd5b5060405162000e0f38038062000e0f83398101604081905262000034916200011f565b600362000042838262000218565b50600462000051828262000218565b505050620002e4565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200008257600080fd5b81516001600160401b03808211156200009f576200009f6200005a565b604051601f8301601f19908116603f01168101908282118183101715620000ca57620000ca6200005a565b81604052838152602092508683858801011115620000e757600080fd5b600091505b838210156200010b5785820183015181830184015290820190620000ec565b600093810190920192909252949350505050565b600080604083850312156200013357600080fd5b82516001600160401b03808211156200014b57600080fd5b620001598683870162000070565b935060208501519150808211156200017057600080fd5b506200017f8582860162000070565b9150509250929050565b600181811c908216806200019e57607f821691505b602082108103620001bf57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200021357600081815260208120601f850160051c81016020861015620001ee5750805b601f850160051c820191505b818110156200020f57828155600101620001fa565b5050505b505050565b81516001600160401b038111156200023457620002346200005a565b6200024c8162000245845462000189565b84620001c5565b602080601f8311600181146200028457600084156200026b5750858301515b600019600386901b1c1916600185901b1785556200020f565b600085815260208120601f198616915b82811015620002b55788860151825594840194600190910190840162000294565b5085821015620002d45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b610b1b80620002f46000396000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c80633950935111610081578063a457c2d71161005b578063a457c2d714610194578063a9059cbb146101a7578063dd62ed3e146101ba57600080fd5b8063395093511461014357806370a082311461015657806395d89b411461018c57600080fd5b806318160ddd116100b257806318160ddd1461010f57806323b872dd14610121578063313ce5671461013457600080fd5b806306fdde03146100ce578063095ea7b3146100ec575b600080fd5b6100d6610200565b6040516100e39190610908565b60405180910390f35b6100ff6100fa36600461099d565b610292565b60405190151581526020016100e3565b6002545b6040519081526020016100e3565b6100ff61012f3660046109c7565b6102ac565b604051601281526020016100e3565b6100ff61015136600461099d565b6102d0565b610113610164366004610a03565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6100d661031c565b6100ff6101a236600461099d565b61032b565b6100ff6101b536600461099d565b610401565b6101136101c8366004610a25565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b60606003805461020f90610a58565b80601f016020809104026020016040519081016040528092919081815260200182805461023b90610a58565b80156102885780601f1061025d57610100808354040283529160200191610288565b820191906000526020600020905b81548152906001019060200180831161026b57829003601f168201915b5050505050905090565b6000336102a081858561040f565b60019150505b92915050565b6000336102ba8582856105c2565b6102c5858585610699565b506001949350505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906102a09082908690610317908790610aab565b61040f565b60606004805461020f90610a58565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909190838110156103f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6102c5828686840361040f565b6000336102a0818585610699565b73ffffffffffffffffffffffffffffffffffffffff83166104b1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016103eb565b73ffffffffffffffffffffffffffffffffffffffff8216610554576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016103eb565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146106935781811015610686576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016103eb565b610693848484840361040f565b50505050565b73ffffffffffffffffffffffffffffffffffffffff831661073c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016103eb565b73ffffffffffffffffffffffffffffffffffffffff82166107df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016103eb565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015610895576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016103eb565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610693565b600060208083528351808285015260005b8181101561093557858101830151858201604001528201610919565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461099857600080fd5b919050565b600080604083850312156109b057600080fd5b6109b983610974565b946020939093013593505050565b6000806000606084860312156109dc57600080fd5b6109e584610974565b92506109f360208501610974565b9150604084013590509250925092565b600060208284031215610a1557600080fd5b610a1e82610974565b9392505050565b60008060408385031215610a3857600080fd5b610a4183610974565b9150610a4f60208401610974565b90509250929050565b600181811c90821680610a6c57607f821691505b602082108103610aa5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b808201808211156102a6577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea26469706673582212204199705c7c104d34def4966a6cebb1ea013f2c239fda94514222b01e4c429cab64736f6c63430008110033";
|
|
297
|
-
const isSuperArgs = (xs) => xs.length > 1;
|
|
298
|
-
class ERC20__factory extends ethers_1.ContractFactory {
|
|
299
|
-
constructor(...args) {
|
|
300
|
-
if (isSuperArgs(args)) {
|
|
301
|
-
super(...args);
|
|
302
|
-
}
|
|
303
|
-
else {
|
|
304
|
-
super(_abi, _bytecode, args[0]);
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
deploy(name_, symbol_, overrides) {
|
|
308
|
-
return super.deploy(name_, symbol_, overrides || {});
|
|
309
|
-
}
|
|
310
|
-
getDeployTransaction(name_, symbol_, overrides) {
|
|
311
|
-
return super.getDeployTransaction(name_, symbol_, overrides || {});
|
|
312
|
-
}
|
|
313
|
-
attach(address) {
|
|
314
|
-
return super.attach(address);
|
|
315
|
-
}
|
|
316
|
-
connect(signer) {
|
|
317
|
-
return super.connect(signer);
|
|
318
|
-
}
|
|
319
|
-
static bytecode = _bytecode;
|
|
320
|
-
static abi = _abi;
|
|
321
|
-
static createInterface() {
|
|
322
|
-
return new ethers_1.utils.Interface(_abi);
|
|
323
|
-
}
|
|
324
|
-
static connect(address, signerOrProvider) {
|
|
325
|
-
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
exports.ERC20__factory = ERC20__factory;
|