@keep-network/tbtc-v2 0.1.0 → 0.1.1-dev
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/README.adoc +12 -0
- package/artifacts/.chainId +1 -1
- package/artifacts/Bank.json +807 -0
- package/artifacts/Bridge.json +2300 -0
- package/artifacts/Deposit.json +117 -0
- package/artifacts/DepositSweep.json +77 -0
- package/artifacts/EcdsaDkgValidator.json +532 -0
- package/artifacts/EcdsaInactivity.json +156 -0
- package/artifacts/EcdsaSortitionPool.json +1004 -0
- package/artifacts/Fraud.json +164 -0
- package/artifacts/KeepRegistry.json +99 -0
- package/artifacts/KeepStake.json +286 -0
- package/artifacts/KeepToken.json +711 -0
- package/artifacts/KeepTokenStaking.json +483 -0
- package/artifacts/MovingFunds.json +249 -0
- package/artifacts/NuCypherStakingEscrow.json +256 -0
- package/artifacts/NuCypherToken.json +711 -0
- package/artifacts/RandomBeaconStub.json +141 -0
- package/artifacts/Redemption.json +174 -0
- package/artifacts/ReimbursementPool.json +509 -0
- package/artifacts/Relay.json +123 -0
- package/artifacts/T.json +1148 -0
- package/artifacts/TBTC.json +36 -35
- package/artifacts/TBTCToken.json +738 -0
- package/artifacts/TBTCVault.json +691 -0
- package/artifacts/TokenStaking.json +2288 -0
- package/artifacts/TokenholderGovernor.json +1795 -0
- package/artifacts/TokenholderTimelock.json +1058 -0
- package/artifacts/VendingMachine.json +34 -33
- package/artifacts/VendingMachineKeep.json +400 -0
- package/artifacts/VendingMachineNuCypher.json +400 -0
- package/artifacts/WalletRegistry.json +1843 -0
- package/artifacts/WalletRegistryGovernance.json +2754 -0
- package/artifacts/Wallets.json +186 -0
- package/artifacts/solcInputs/5e62cff1ead0900b07facca4b559e818.json +314 -0
- package/build/contracts/GovernanceUtils.sol/GovernanceUtils.dbg.json +1 -1
- package/build/contracts/GovernanceUtils.sol/GovernanceUtils.json +2 -2
- package/build/contracts/bank/Bank.sol/Bank.dbg.json +4 -0
- package/build/contracts/bank/Bank.sol/Bank.json +542 -0
- package/build/contracts/bank/IReceiveBalanceApproval.sol/IReceiveBalanceApproval.dbg.json +4 -0
- package/build/contracts/bank/IReceiveBalanceApproval.sol/IReceiveBalanceApproval.json +34 -0
- package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.dbg.json +4 -0
- package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.json +10 -0
- package/build/contracts/bridge/Bridge.sol/Bridge.dbg.json +4 -0
- package/build/contracts/bridge/Bridge.sol/Bridge.json +2686 -0
- package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +4 -0
- package/build/contracts/bridge/BridgeState.sol/BridgeState.json +226 -0
- package/build/contracts/bridge/Deposit.sol/Deposit.dbg.json +4 -0
- package/build/contracts/bridge/Deposit.sol/Deposit.json +72 -0
- package/build/contracts/bridge/DepositSweep.sol/DepositSweep.dbg.json +4 -0
- package/build/contracts/bridge/DepositSweep.sol/DepositSweep.json +30 -0
- package/build/contracts/bridge/EcdsaLib.sol/EcdsaLib.dbg.json +4 -0
- package/build/contracts/bridge/EcdsaLib.sol/EcdsaLib.json +10 -0
- package/build/contracts/bridge/Fraud.sol/Fraud.dbg.json +4 -0
- package/build/contracts/bridge/Fraud.sol/Fraud.json +86 -0
- package/build/contracts/bridge/Heartbeat.sol/Heartbeat.dbg.json +4 -0
- package/build/contracts/bridge/Heartbeat.sol/Heartbeat.json +10 -0
- package/build/contracts/bridge/IRelay.sol/IRelay.dbg.json +4 -0
- package/build/contracts/bridge/IRelay.sol/IRelay.json +37 -0
- package/build/contracts/bridge/MovingFunds.sol/MovingFunds.dbg.json +4 -0
- package/build/contracts/bridge/MovingFunds.sol/MovingFunds.json +138 -0
- package/build/contracts/bridge/Redemption.sol/OutboundTx.dbg.json +4 -0
- package/build/contracts/bridge/Redemption.sol/OutboundTx.json +10 -0
- package/build/contracts/bridge/Redemption.sol/Redemption.dbg.json +4 -0
- package/build/contracts/bridge/Redemption.sol/Redemption.json +92 -0
- package/build/contracts/bridge/VendingMachine.sol/VendingMachine.dbg.json +1 -1
- package/build/contracts/bridge/VendingMachine.sol/VendingMachine.json +2 -2
- package/build/contracts/bridge/Wallets.sol/Wallets.dbg.json +4 -0
- package/build/contracts/bridge/Wallets.sol/Wallets.json +112 -0
- package/build/contracts/token/TBTC.sol/TBTC.dbg.json +1 -1
- package/build/contracts/token/TBTC.sol/TBTC.json +4 -4
- package/build/contracts/vault/DonationVault.sol/DonationVault.dbg.json +4 -0
- package/build/contracts/vault/DonationVault.sol/DonationVault.json +108 -0
- package/build/contracts/vault/IVault.sol/IVault.dbg.json +4 -0
- package/build/contracts/vault/IVault.sol/IVault.json +52 -0
- package/build/contracts/vault/TBTCVault.sol/TBTCVault.dbg.json +4 -0
- package/build/contracts/vault/TBTCVault.sol/TBTCVault.json +449 -0
- package/contracts/GovernanceUtils.sol +4 -4
- package/contracts/bank/Bank.sol +436 -0
- package/contracts/bank/IReceiveBalanceApproval.sol +45 -0
- package/contracts/bridge/BitcoinTx.sol +326 -0
- package/contracts/bridge/Bridge.sol +1793 -0
- package/contracts/bridge/BridgeState.sol +739 -0
- package/contracts/bridge/Deposit.sol +269 -0
- package/contracts/bridge/DepositSweep.sol +574 -0
- package/contracts/bridge/EcdsaLib.sol +45 -0
- package/contracts/bridge/Fraud.sol +579 -0
- package/contracts/bridge/Heartbeat.sol +112 -0
- package/contracts/bridge/IRelay.sol +28 -0
- package/contracts/bridge/MovingFunds.sol +1077 -0
- package/contracts/bridge/Redemption.sol +1020 -0
- package/contracts/bridge/VendingMachine.sol +2 -2
- package/contracts/bridge/Wallets.sol +719 -0
- package/contracts/hardhat-dependency-compiler/.hardhat-dependency-compiler +1 -0
- package/contracts/hardhat-dependency-compiler/@keep-network/ecdsa/contracts/WalletRegistry.sol +3 -0
- package/contracts/hardhat-dependency-compiler/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol +3 -0
- package/contracts/hardhat-dependency-compiler/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol +3 -0
- package/contracts/token/TBTC.sol +1 -1
- package/contracts/vault/DonationVault.sol +125 -0
- package/contracts/vault/IVault.sol +44 -0
- package/contracts/vault/TBTCVault.sol +305 -0
- package/deploy/00_resolve_relay.ts +28 -0
- package/deploy/00_resolve_tbtc_v1_token.ts +1 -1
- package/deploy/01_deploy_tbtc_v2_token.ts +8 -1
- package/deploy/02_deploy_vending_machine.ts +7 -0
- package/deploy/{03_transfer_roles.ts → 03_transfer_vending_machine_roles.ts} +1 -1
- package/deploy/04_deploy_bank.ts +27 -0
- package/deploy/05_deploy_bridge.ts +80 -0
- package/deploy/06_deploy_tbtc_vault.ts +30 -0
- package/deploy/07_bank_update_bridge.ts +19 -0
- package/deploy/08_transfer_bank_ownership.ts +15 -0
- package/deploy/09_transfer_tbtc_vault_ownership.ts +15 -0
- package/deploy/10_transfer_bridge_governance.ts +20 -0
- package/deploy/11_initialize_wallet_owner.ts +18 -0
- package/deploy/11_transfer_proxy_admin_ownership.ts +30 -0
- package/deploy/12_deploy_proxy_admin_with_deputy.ts +33 -0
- package/export/deploy/00_resolve_relay.js +24 -0
- package/export/deploy/00_resolve_tbtc_v1_token.js +24 -0
- package/export/deploy/01_deploy_tbtc_v2_token.js +19 -0
- package/export/deploy/02_deploy_vending_machine.js +25 -0
- package/export/deploy/03_transfer_vending_machine_roles.js +19 -0
- package/export/deploy/04_deploy_bank.js +21 -0
- package/export/deploy/05_deploy_bridge.js +69 -0
- package/export/deploy/06_deploy_tbtc_vault.js +24 -0
- package/export/deploy/07_bank_update_bridge.js +13 -0
- package/export/deploy/08_transfer_bank_ownership.js +11 -0
- package/export/deploy/09_transfer_tbtc_vault_ownership.js +11 -0
- package/export/deploy/10_transfer_bridge_governance.js +11 -0
- package/export/deploy/11_initialize_wallet_owner.js +14 -0
- package/export/deploy/11_transfer_proxy_admin_ownership.js +23 -0
- package/export/deploy/12_deploy_proxy_admin_with_deputy.js +22 -0
- package/export/hardhat.config.js +169 -0
- package/export/test/bank/Bank.test.js +1012 -0
- package/export/test/bridge/Bridge.Deployment.test.js +76 -0
- package/export/test/bridge/Bridge.Deposit.test.js +1834 -0
- package/export/test/bridge/Bridge.Frauds.test.js +1349 -0
- package/export/test/bridge/Bridge.MovingFunds.test.js +2437 -0
- package/export/test/bridge/Bridge.Parameters.test.js +400 -0
- package/export/test/bridge/Bridge.Redemption.test.js +2523 -0
- package/export/test/bridge/Bridge.Vaults.test.js +74 -0
- package/export/test/bridge/Bridge.Wallets.test.js +1017 -0
- package/export/test/bridge/EcdsaLib.test.js +46 -0
- package/export/test/bridge/Heartbeat.test.js +77 -0
- package/export/test/bridge/VendingMachine.Upgrade.test.js +160 -0
- package/export/test/bridge/VendingMachine.test.js +762 -0
- package/export/test/data/deposit-sweep.js +655 -0
- package/export/test/data/ecdsa.js +18 -0
- package/export/test/data/fraud.js +158 -0
- package/export/test/data/moving-funds.js +815 -0
- package/export/test/data/redemption.js +1011 -0
- package/export/test/fixtures/bridge.js +54 -0
- package/export/test/fixtures/index.js +57 -0
- package/export/test/helpers/contract-test-helpers.js +18 -0
- package/export/test/integration/Slashing.test.js +279 -0
- package/export/test/integration/WalleCreation.test.js +66 -0
- package/export/test/integration/utils/ecdsa-wallet-registry.js +137 -0
- package/export/test/integration/utils/fixture.js +77 -0
- package/export/test/integration/utils/gas.js +36 -0
- package/export/test/integration/utils/random-beacon.js +26 -0
- package/export/test/integration/utils/staking.js +19 -0
- package/export/test/vault/DonationVault.test.js +202 -0
- package/export/test/vault/TBTCVault.Redemption.test.js +357 -0
- package/export/test/vault/TBTCVault.test.js +768 -0
- package/export/typechain/BTCUtils.js +2 -0
- package/export/typechain/Bank.js +2 -0
- package/export/typechain/BankStub.js +2 -0
- package/export/typechain/Bridge.js +2 -0
- package/export/typechain/BridgeState.js +2 -0
- package/export/typechain/BridgeStub.js +2 -0
- package/export/typechain/Deposit.js +2 -0
- package/export/typechain/DepositSweep.js +2 -0
- package/export/typechain/DonationVault.js +2 -0
- package/export/typechain/ERC165.js +2 -0
- package/export/typechain/ERC1967Proxy.js +2 -0
- package/export/typechain/ERC1967Upgrade.js +2 -0
- package/export/typechain/ERC20WithPermit.js +2 -0
- package/export/typechain/ERC721.js +2 -0
- package/export/typechain/EcdsaAuthorization.js +2 -0
- package/export/typechain/EcdsaDkg.js +2 -0
- package/export/typechain/EcdsaDkgValidator.js +2 -0
- package/export/typechain/EcdsaInactivity.js +2 -0
- package/export/typechain/Fraud.js +2 -0
- package/export/typechain/Governable.js +2 -0
- package/export/typechain/HeartbeatStub.js +2 -0
- package/export/typechain/IApplication.js +2 -0
- package/export/typechain/IApproveAndCall.js +2 -0
- package/export/typechain/IBeacon.js +2 -0
- package/export/typechain/IERC165.js +2 -0
- package/export/typechain/IERC1822Proxiable.js +2 -0
- package/export/typechain/IERC20.js +2 -0
- package/export/typechain/IERC20Metadata.js +2 -0
- package/export/typechain/IERC20WithPermit.js +2 -0
- package/export/typechain/IERC721.js +2 -0
- package/export/typechain/IERC721Metadata.js +2 -0
- package/export/typechain/IERC721Receiver.js +2 -0
- package/export/typechain/IRandomBeacon.js +2 -0
- package/export/typechain/IRandomBeaconConsumer.js +2 -0
- package/export/typechain/IReceiveApproval.js +2 -0
- package/export/typechain/IReceiveBalanceApproval.js +2 -0
- package/export/typechain/IRelay.js +2 -0
- package/export/typechain/IStaking.js +2 -0
- package/export/typechain/IVault.js +2 -0
- package/export/typechain/IWalletOwner.js +2 -0
- package/export/typechain/IWalletRegistry.js +2 -0
- package/export/typechain/Initializable.js +2 -0
- package/export/typechain/MisfundRecovery.js +2 -0
- package/export/typechain/MovingFunds.js +2 -0
- package/export/typechain/Ownable.js +2 -0
- package/export/typechain/Proxy.js +2 -0
- package/export/typechain/ProxyAdmin.js +2 -0
- package/export/typechain/ReceiveApprovalStub.js +2 -0
- package/export/typechain/Redemption.js +2 -0
- package/export/typechain/Reimbursable.js +2 -0
- package/export/typechain/ReimbursementPool.js +2 -0
- package/export/typechain/Rewards.js +2 -0
- package/export/typechain/SortitionPool.js +2 -0
- package/export/typechain/SortitionTree.js +2 -0
- package/export/typechain/TBTC.js +2 -0
- package/export/typechain/TBTCVault.js +2 -0
- package/export/typechain/TestERC20.js +2 -0
- package/export/typechain/TestERC721.js +2 -0
- package/export/typechain/TestEcdsaLib.js +2 -0
- package/export/typechain/TestRelay.js +2 -0
- package/export/typechain/TransparentUpgradeableProxy.js +2 -0
- package/export/typechain/VendingMachine.js +2 -0
- package/export/typechain/WalletRegistry.js +2 -0
- package/export/typechain/Wallets.js +2 -0
- package/export/typechain/common.js +2 -0
- package/export/typechain/factories/BTCUtils__factory.js +94 -0
- package/export/typechain/factories/BankStub__factory.js +586 -0
- package/export/typechain/factories/Bank__factory.js +573 -0
- package/export/typechain/factories/BridgeState__factory.js +257 -0
- package/export/typechain/factories/BridgeStub__factory.js +2912 -0
- package/export/typechain/factories/Bridge__factory.js +2526 -0
- package/export/typechain/factories/DepositSweep__factory.js +61 -0
- package/export/typechain/factories/Deposit__factory.js +103 -0
- package/export/typechain/factories/DonationVault__factory.js +139 -0
- package/export/typechain/factories/ERC165__factory.js +38 -0
- package/export/typechain/factories/ERC1967Proxy__factory.js +111 -0
- package/export/typechain/factories/ERC1967Upgrade__factory.js +64 -0
- package/export/typechain/factories/ERC20WithPermit__factory.js +524 -0
- package/export/typechain/factories/ERC721__factory.js +388 -0
- package/export/typechain/factories/EcdsaAuthorization__factory.js +211 -0
- package/export/typechain/factories/EcdsaDkgValidator__factory.js +441 -0
- package/export/typechain/factories/EcdsaDkg__factory.js +192 -0
- package/export/typechain/factories/EcdsaInactivity__factory.js +134 -0
- package/export/typechain/factories/Fraud__factory.js +117 -0
- package/export/typechain/factories/Governable__factory.js +64 -0
- package/export/typechain/factories/HeartbeatStub__factory.js +61 -0
- package/export/typechain/factories/IApplication__factory.js +152 -0
- package/export/typechain/factories/IApproveAndCall__factory.js +48 -0
- package/export/typechain/factories/IBeacon__factory.js +32 -0
- package/export/typechain/factories/IERC165__factory.js +38 -0
- package/export/typechain/factories/IERC1822Proxiable__factory.js +32 -0
- package/export/typechain/factories/IERC20Metadata__factory.js +241 -0
- package/export/typechain/factories/IERC20WithPermit__factory.js +389 -0
- package/export/typechain/factories/IERC20__factory.js +202 -0
- package/export/typechain/factories/IERC721Metadata__factory.js +349 -0
- package/export/typechain/factories/IERC721Receiver__factory.js +53 -0
- package/export/typechain/factories/IERC721__factory.js +304 -0
- package/export/typechain/factories/IRandomBeaconConsumer__factory.js +37 -0
- package/export/typechain/factories/IRandomBeacon__factory.js +32 -0
- package/export/typechain/factories/IReceiveApproval__factory.js +47 -0
- package/export/typechain/factories/IReceiveBalanceApproval__factory.js +42 -0
- package/export/typechain/factories/IRelay__factory.js +45 -0
- package/export/typechain/factories/IStaking__factory.js +722 -0
- package/export/typechain/factories/IVault__factory.js +60 -0
- package/export/typechain/factories/IWalletOwner__factory.js +65 -0
- package/export/typechain/factories/IWalletRegistry__factory.js +138 -0
- package/export/typechain/factories/Initializable__factory.js +32 -0
- package/export/typechain/factories/MisfundRecovery__factory.js +145 -0
- package/export/typechain/factories/MovingFunds__factory.js +169 -0
- package/export/typechain/factories/Ownable__factory.js +71 -0
- package/export/typechain/factories/ProxyAdmin__factory.js +191 -0
- package/export/typechain/factories/Proxy__factory.js +27 -0
- package/export/typechain/factories/ReceiveApprovalStub__factory.js +127 -0
- package/export/typechain/factories/Redemption__factory.js +123 -0
- package/export/typechain/factories/Reimbursable__factory.js +58 -0
- package/export/typechain/factories/ReimbursementPool__factory.js +350 -0
- package/export/typechain/factories/Rewards__factory.js +117 -0
- package/export/typechain/factories/SortitionPool__factory.js +610 -0
- package/export/typechain/factories/SortitionTree__factory.js +149 -0
- package/export/typechain/factories/TBTCVault__factory.js +480 -0
- package/export/typechain/factories/TBTC__factory.js +564 -0
- package/export/typechain/factories/TestERC20__factory.js +539 -0
- package/export/typechain/factories/TestERC721__factory.js +421 -0
- package/export/typechain/factories/TestEcdsaLib__factory.js +66 -0
- package/export/typechain/factories/TestRelay__factory.js +94 -0
- package/export/typechain/factories/TransparentUpgradeableProxy__factory.js +186 -0
- package/export/typechain/factories/VendingMachine__factory.js +549 -0
- package/export/typechain/factories/WalletRegistry__factory.js +1919 -0
- package/export/typechain/factories/Wallets__factory.js +143 -0
- package/export/typechain/index.js +132 -0
- package/export.json +15932 -503
- package/package.json +47 -26
- package/artifacts/solcInputs/7cc3eda3cb3ff2522d18b5e7b31ea228.json +0 -104
|
@@ -0,0 +1,539 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TestERC20__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
|
+
stateMutability: "nonpayable",
|
|
12
|
+
type: "constructor",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
anonymous: false,
|
|
16
|
+
inputs: [
|
|
17
|
+
{
|
|
18
|
+
indexed: true,
|
|
19
|
+
internalType: "address",
|
|
20
|
+
name: "owner",
|
|
21
|
+
type: "address",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
indexed: true,
|
|
25
|
+
internalType: "address",
|
|
26
|
+
name: "spender",
|
|
27
|
+
type: "address",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
indexed: false,
|
|
31
|
+
internalType: "uint256",
|
|
32
|
+
name: "value",
|
|
33
|
+
type: "uint256",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
name: "Approval",
|
|
37
|
+
type: "event",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
anonymous: false,
|
|
41
|
+
inputs: [
|
|
42
|
+
{
|
|
43
|
+
indexed: true,
|
|
44
|
+
internalType: "address",
|
|
45
|
+
name: "previousOwner",
|
|
46
|
+
type: "address",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
indexed: true,
|
|
50
|
+
internalType: "address",
|
|
51
|
+
name: "newOwner",
|
|
52
|
+
type: "address",
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
name: "OwnershipTransferred",
|
|
56
|
+
type: "event",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
anonymous: false,
|
|
60
|
+
inputs: [
|
|
61
|
+
{
|
|
62
|
+
indexed: true,
|
|
63
|
+
internalType: "address",
|
|
64
|
+
name: "from",
|
|
65
|
+
type: "address",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
indexed: true,
|
|
69
|
+
internalType: "address",
|
|
70
|
+
name: "to",
|
|
71
|
+
type: "address",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
indexed: false,
|
|
75
|
+
internalType: "uint256",
|
|
76
|
+
name: "value",
|
|
77
|
+
type: "uint256",
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
name: "Transfer",
|
|
81
|
+
type: "event",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
inputs: [],
|
|
85
|
+
name: "DOMAIN_SEPARATOR",
|
|
86
|
+
outputs: [
|
|
87
|
+
{
|
|
88
|
+
internalType: "bytes32",
|
|
89
|
+
name: "",
|
|
90
|
+
type: "bytes32",
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
stateMutability: "view",
|
|
94
|
+
type: "function",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
inputs: [],
|
|
98
|
+
name: "NAME",
|
|
99
|
+
outputs: [
|
|
100
|
+
{
|
|
101
|
+
internalType: "string",
|
|
102
|
+
name: "",
|
|
103
|
+
type: "string",
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
stateMutability: "view",
|
|
107
|
+
type: "function",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
inputs: [],
|
|
111
|
+
name: "PERMIT_TYPEHASH",
|
|
112
|
+
outputs: [
|
|
113
|
+
{
|
|
114
|
+
internalType: "bytes32",
|
|
115
|
+
name: "",
|
|
116
|
+
type: "bytes32",
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
stateMutability: "view",
|
|
120
|
+
type: "function",
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
inputs: [],
|
|
124
|
+
name: "SYMBOL",
|
|
125
|
+
outputs: [
|
|
126
|
+
{
|
|
127
|
+
internalType: "string",
|
|
128
|
+
name: "",
|
|
129
|
+
type: "string",
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
stateMutability: "view",
|
|
133
|
+
type: "function",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
inputs: [
|
|
137
|
+
{
|
|
138
|
+
internalType: "address",
|
|
139
|
+
name: "",
|
|
140
|
+
type: "address",
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
internalType: "address",
|
|
144
|
+
name: "",
|
|
145
|
+
type: "address",
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
name: "allowance",
|
|
149
|
+
outputs: [
|
|
150
|
+
{
|
|
151
|
+
internalType: "uint256",
|
|
152
|
+
name: "",
|
|
153
|
+
type: "uint256",
|
|
154
|
+
},
|
|
155
|
+
],
|
|
156
|
+
stateMutability: "view",
|
|
157
|
+
type: "function",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
inputs: [
|
|
161
|
+
{
|
|
162
|
+
internalType: "address",
|
|
163
|
+
name: "spender",
|
|
164
|
+
type: "address",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
internalType: "uint256",
|
|
168
|
+
name: "amount",
|
|
169
|
+
type: "uint256",
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
name: "approve",
|
|
173
|
+
outputs: [
|
|
174
|
+
{
|
|
175
|
+
internalType: "bool",
|
|
176
|
+
name: "",
|
|
177
|
+
type: "bool",
|
|
178
|
+
},
|
|
179
|
+
],
|
|
180
|
+
stateMutability: "nonpayable",
|
|
181
|
+
type: "function",
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
inputs: [
|
|
185
|
+
{
|
|
186
|
+
internalType: "address",
|
|
187
|
+
name: "spender",
|
|
188
|
+
type: "address",
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
internalType: "uint256",
|
|
192
|
+
name: "amount",
|
|
193
|
+
type: "uint256",
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
internalType: "bytes",
|
|
197
|
+
name: "extraData",
|
|
198
|
+
type: "bytes",
|
|
199
|
+
},
|
|
200
|
+
],
|
|
201
|
+
name: "approveAndCall",
|
|
202
|
+
outputs: [
|
|
203
|
+
{
|
|
204
|
+
internalType: "bool",
|
|
205
|
+
name: "",
|
|
206
|
+
type: "bool",
|
|
207
|
+
},
|
|
208
|
+
],
|
|
209
|
+
stateMutability: "nonpayable",
|
|
210
|
+
type: "function",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
inputs: [
|
|
214
|
+
{
|
|
215
|
+
internalType: "address",
|
|
216
|
+
name: "",
|
|
217
|
+
type: "address",
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
name: "balanceOf",
|
|
221
|
+
outputs: [
|
|
222
|
+
{
|
|
223
|
+
internalType: "uint256",
|
|
224
|
+
name: "",
|
|
225
|
+
type: "uint256",
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
stateMutability: "view",
|
|
229
|
+
type: "function",
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
inputs: [
|
|
233
|
+
{
|
|
234
|
+
internalType: "uint256",
|
|
235
|
+
name: "amount",
|
|
236
|
+
type: "uint256",
|
|
237
|
+
},
|
|
238
|
+
],
|
|
239
|
+
name: "burn",
|
|
240
|
+
outputs: [],
|
|
241
|
+
stateMutability: "nonpayable",
|
|
242
|
+
type: "function",
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
inputs: [
|
|
246
|
+
{
|
|
247
|
+
internalType: "address",
|
|
248
|
+
name: "account",
|
|
249
|
+
type: "address",
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
internalType: "uint256",
|
|
253
|
+
name: "amount",
|
|
254
|
+
type: "uint256",
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
name: "burnFrom",
|
|
258
|
+
outputs: [],
|
|
259
|
+
stateMutability: "nonpayable",
|
|
260
|
+
type: "function",
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
inputs: [],
|
|
264
|
+
name: "cachedChainId",
|
|
265
|
+
outputs: [
|
|
266
|
+
{
|
|
267
|
+
internalType: "uint256",
|
|
268
|
+
name: "",
|
|
269
|
+
type: "uint256",
|
|
270
|
+
},
|
|
271
|
+
],
|
|
272
|
+
stateMutability: "view",
|
|
273
|
+
type: "function",
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
inputs: [],
|
|
277
|
+
name: "cachedDomainSeparator",
|
|
278
|
+
outputs: [
|
|
279
|
+
{
|
|
280
|
+
internalType: "bytes32",
|
|
281
|
+
name: "",
|
|
282
|
+
type: "bytes32",
|
|
283
|
+
},
|
|
284
|
+
],
|
|
285
|
+
stateMutability: "view",
|
|
286
|
+
type: "function",
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
inputs: [],
|
|
290
|
+
name: "decimals",
|
|
291
|
+
outputs: [
|
|
292
|
+
{
|
|
293
|
+
internalType: "uint8",
|
|
294
|
+
name: "",
|
|
295
|
+
type: "uint8",
|
|
296
|
+
},
|
|
297
|
+
],
|
|
298
|
+
stateMutability: "view",
|
|
299
|
+
type: "function",
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
inputs: [
|
|
303
|
+
{
|
|
304
|
+
internalType: "address",
|
|
305
|
+
name: "recipient",
|
|
306
|
+
type: "address",
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
internalType: "uint256",
|
|
310
|
+
name: "amount",
|
|
311
|
+
type: "uint256",
|
|
312
|
+
},
|
|
313
|
+
],
|
|
314
|
+
name: "mint",
|
|
315
|
+
outputs: [],
|
|
316
|
+
stateMutability: "nonpayable",
|
|
317
|
+
type: "function",
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
inputs: [],
|
|
321
|
+
name: "name",
|
|
322
|
+
outputs: [
|
|
323
|
+
{
|
|
324
|
+
internalType: "string",
|
|
325
|
+
name: "",
|
|
326
|
+
type: "string",
|
|
327
|
+
},
|
|
328
|
+
],
|
|
329
|
+
stateMutability: "view",
|
|
330
|
+
type: "function",
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
inputs: [
|
|
334
|
+
{
|
|
335
|
+
internalType: "address",
|
|
336
|
+
name: "",
|
|
337
|
+
type: "address",
|
|
338
|
+
},
|
|
339
|
+
],
|
|
340
|
+
name: "nonce",
|
|
341
|
+
outputs: [
|
|
342
|
+
{
|
|
343
|
+
internalType: "uint256",
|
|
344
|
+
name: "",
|
|
345
|
+
type: "uint256",
|
|
346
|
+
},
|
|
347
|
+
],
|
|
348
|
+
stateMutability: "view",
|
|
349
|
+
type: "function",
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
inputs: [],
|
|
353
|
+
name: "owner",
|
|
354
|
+
outputs: [
|
|
355
|
+
{
|
|
356
|
+
internalType: "address",
|
|
357
|
+
name: "",
|
|
358
|
+
type: "address",
|
|
359
|
+
},
|
|
360
|
+
],
|
|
361
|
+
stateMutability: "view",
|
|
362
|
+
type: "function",
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
inputs: [
|
|
366
|
+
{
|
|
367
|
+
internalType: "address",
|
|
368
|
+
name: "owner",
|
|
369
|
+
type: "address",
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
internalType: "address",
|
|
373
|
+
name: "spender",
|
|
374
|
+
type: "address",
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
internalType: "uint256",
|
|
378
|
+
name: "amount",
|
|
379
|
+
type: "uint256",
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
internalType: "uint256",
|
|
383
|
+
name: "deadline",
|
|
384
|
+
type: "uint256",
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
internalType: "uint8",
|
|
388
|
+
name: "v",
|
|
389
|
+
type: "uint8",
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
internalType: "bytes32",
|
|
393
|
+
name: "r",
|
|
394
|
+
type: "bytes32",
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
internalType: "bytes32",
|
|
398
|
+
name: "s",
|
|
399
|
+
type: "bytes32",
|
|
400
|
+
},
|
|
401
|
+
],
|
|
402
|
+
name: "permit",
|
|
403
|
+
outputs: [],
|
|
404
|
+
stateMutability: "nonpayable",
|
|
405
|
+
type: "function",
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
inputs: [],
|
|
409
|
+
name: "renounceOwnership",
|
|
410
|
+
outputs: [],
|
|
411
|
+
stateMutability: "nonpayable",
|
|
412
|
+
type: "function",
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
inputs: [],
|
|
416
|
+
name: "symbol",
|
|
417
|
+
outputs: [
|
|
418
|
+
{
|
|
419
|
+
internalType: "string",
|
|
420
|
+
name: "",
|
|
421
|
+
type: "string",
|
|
422
|
+
},
|
|
423
|
+
],
|
|
424
|
+
stateMutability: "view",
|
|
425
|
+
type: "function",
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
inputs: [],
|
|
429
|
+
name: "totalSupply",
|
|
430
|
+
outputs: [
|
|
431
|
+
{
|
|
432
|
+
internalType: "uint256",
|
|
433
|
+
name: "",
|
|
434
|
+
type: "uint256",
|
|
435
|
+
},
|
|
436
|
+
],
|
|
437
|
+
stateMutability: "view",
|
|
438
|
+
type: "function",
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
inputs: [
|
|
442
|
+
{
|
|
443
|
+
internalType: "address",
|
|
444
|
+
name: "recipient",
|
|
445
|
+
type: "address",
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
internalType: "uint256",
|
|
449
|
+
name: "amount",
|
|
450
|
+
type: "uint256",
|
|
451
|
+
},
|
|
452
|
+
],
|
|
453
|
+
name: "transfer",
|
|
454
|
+
outputs: [
|
|
455
|
+
{
|
|
456
|
+
internalType: "bool",
|
|
457
|
+
name: "",
|
|
458
|
+
type: "bool",
|
|
459
|
+
},
|
|
460
|
+
],
|
|
461
|
+
stateMutability: "nonpayable",
|
|
462
|
+
type: "function",
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
inputs: [
|
|
466
|
+
{
|
|
467
|
+
internalType: "address",
|
|
468
|
+
name: "spender",
|
|
469
|
+
type: "address",
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
internalType: "address",
|
|
473
|
+
name: "recipient",
|
|
474
|
+
type: "address",
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
internalType: "uint256",
|
|
478
|
+
name: "amount",
|
|
479
|
+
type: "uint256",
|
|
480
|
+
},
|
|
481
|
+
],
|
|
482
|
+
name: "transferFrom",
|
|
483
|
+
outputs: [
|
|
484
|
+
{
|
|
485
|
+
internalType: "bool",
|
|
486
|
+
name: "",
|
|
487
|
+
type: "bool",
|
|
488
|
+
},
|
|
489
|
+
],
|
|
490
|
+
stateMutability: "nonpayable",
|
|
491
|
+
type: "function",
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
inputs: [
|
|
495
|
+
{
|
|
496
|
+
internalType: "address",
|
|
497
|
+
name: "newOwner",
|
|
498
|
+
type: "address",
|
|
499
|
+
},
|
|
500
|
+
],
|
|
501
|
+
name: "transferOwnership",
|
|
502
|
+
outputs: [],
|
|
503
|
+
stateMutability: "nonpayable",
|
|
504
|
+
type: "function",
|
|
505
|
+
},
|
|
506
|
+
];
|
|
507
|
+
const _bytecode = "0x60c06040523480156200001157600080fd5b506040518060400160405280601081526020016f2a32b9ba1022a9219918102a37b5b2b760811b81525060405180604001604052806002815260200161151560f21b815250620000706200006a620000b660201b60201c565b620000ba565b815162000085906005906020850190620001bb565b5080516200009b906006906020840190620001bb565b5046608052620000aa6200010a565b60a05250620003429050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60056040516200013e91906200029e565b60408051918290038220828201825260018352603160f81b6020938401528151928301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b828054620001c99062000261565b90600052602060002090601f016020900481019282620001ed576000855562000238565b82601f106200020857805160ff191683800117855562000238565b8280016001018555821562000238579182015b82811115620002385782518255916020019190600101906200021b565b50620002469291506200024a565b5090565b5b808211156200024657600081556001016200024b565b600181811c908216806200027657607f821691505b602082108114156200029857634e487b7160e01b600052602260045260246000fd5b50919050565b600080835481600182811c915080831680620002bb57607f831692505b6020808410821415620002dc57634e487b7160e01b86526022600452602486fd5b818015620002f35760018114620003055762000334565b60ff1986168952848901965062000334565b60008a81526020902060005b868110156200032c5781548b82015290850190830162000311565b505084890196505b509498975050505050505050565b60805160a05161166c620003766000396000818161037201526105d90152600081816102c601526105b0015261166c6000f3fe608060405234801561001057600080fd5b50600436106101985760003560e01c8063771da5c5116100e3578063b4f94b2e1161008c578063dd62ed3e11610066578063dd62ed3e146103ba578063f2fde38b146103e5578063f76f8d78146103f857600080fd5b8063b4f94b2e1461036d578063cae9ca5114610394578063d505accf146103a757600080fd5b806395d89b41116100bd57806395d89b4114610316578063a3f4df7e1461031e578063a9059cbb1461035a57600080fd5b8063771da5c5146102c157806379cc6790146102e85780638da5cb5b146102fb57600080fd5b80633644e5151161014557806370a082311161011f57806370a082311461027957806370ae92d214610299578063715018a6146102b957600080fd5b80633644e5151461024957806340c10f191461025157806342966c681461026657600080fd5b806323b872dd1161017657806323b872dd146101f557806330adf81f14610208578063313ce5671461022f57600080fd5b806306fdde031461019d578063095ea7b3146101bb57806318160ddd146101de575b600080fd5b6101a5610434565b6040516101b29190611273565b60405180910390f35b6101ce6101c93660046112a2565b6104c2565b60405190151581526020016101b2565b6101e760045481565b6040519081526020016101b2565b6101ce6102033660046112cc565b6104d8565b6101e77f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b610237601281565b60405160ff90911681526020016101b2565b6101e76105ac565b61026461025f3660046112a2565b610608565b005b610264610274366004611308565b610741565b6101e7610287366004611321565b60016020526000908152604090205481565b6101e76102a7366004611321565b60036020526000908152604090205481565b61026461074e565b6101e77f000000000000000000000000000000000000000000000000000000000000000081565b6102646102f63660046112a2565b6107b4565b6000546040516001600160a01b0390911681526020016101b2565b6101a561084f565b6101a56040518060400160405280601081526020017f5465737420455243323020546f6b656e0000000000000000000000000000000081525081565b6101ce6103683660046112a2565b61085c565b6101e77f000000000000000000000000000000000000000000000000000000000000000081565b6101ce6103a2366004611352565b610869565b6102646103b536600461141d565b61090a565b6101e76103c8366004611490565b600260209081526000928352604080842090915290825290205481565b6102646103f3366004611321565b610c1a565b6101a56040518060400160405280600281526020017f545400000000000000000000000000000000000000000000000000000000000081525081565b60058054610441906114c3565b80601f016020809104026020016040519081016040528092919081815260200182805461046d906114c3565b80156104ba5780601f1061048f576101008083540402835291602001916104ba565b820191906000526020600020905b81548152906001019060200180831161049d57829003601f168201915b505050505081565b60006104cf338484610cf9565b50600192915050565b6001600160a01b0383166000908152600260209081526040808320338452909152812054600019811461059457828110156105805760405162461bcd60e51b815260206004820152602160248201527f5472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6360448201527f650000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610594853361058f8685611514565b610cf9565b61059f858585610e07565b60019150505b9392505050565b60007f00000000000000000000000000000000000000000000000000000000000000004614156105fb57507f000000000000000000000000000000000000000000000000000000000000000090565b61060361100f565b905090565b6000546001600160a01b031633146106625760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610577565b6001600160a01b0382166106b85760405162461bcd60e51b815260206004820152601860248201527f4d696e7420746f20746865207a65726f206164647265737300000000000000006044820152606401610577565b80600460008282546106ca919061152b565b90915550506001600160a01b038216600090815260016020526040812080548392906106f790849061152b565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b61074b33826110da565b50565b6000546001600160a01b031633146107a85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610577565b6107b260006111be565b565b6001600160a01b0382166000908152600260209081526040808320338452909152902054600019811461084057818110156108315760405162461bcd60e51b815260206004820152601d60248201527f4275726e20616d6f756e74206578636565647320616c6c6f77616e63650000006044820152606401610577565b610840833361058f8585611514565b61084a83836110da565b505050565b60068054610441906114c3565b60006104cf338484610e07565b600061087584846104c2565b15610900576040517f8f4ffcb10000000000000000000000000000000000000000000000000000000081526001600160a01b03851690638f4ffcb1906108c5903390879030908890600401611543565b600060405180830381600087803b1580156108df57600080fd5b505af11580156108f3573d6000803e3d6000fd5b50505050600190506105a5565b5060009392505050565b4284101561095a5760405162461bcd60e51b815260206004820152601260248201527f5065726d697373696f6e206578706972656400000000000000000000000000006044820152606401610577565b7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08111156109ca5760405162461bcd60e51b815260206004820152601b60248201527f496e76616c6964207369676e6174757265202773272076616c756500000000006044820152606401610577565b8260ff16601b14806109df57508260ff16601c145b610a2b5760405162461bcd60e51b815260206004820152601b60248201527f496e76616c6964207369676e6174757265202776272076616c756500000000006044820152606401610577565b6000610a356105ac565b6001600160a01b038916600090815260036020526040812080547f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9928c928c928c92909190610a838361157f565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810187905260e00160405160208183030381529060405280519060200120604051602001610b179291907f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa158015610b82573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590610bb85750886001600160a01b0316816001600160a01b0316145b610c045760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964207369676e61747572650000000000000000000000000000006044820152606401610577565b610c0f898989610cf9565b505050505050505050565b6000546001600160a01b03163314610c745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610577565b6001600160a01b038116610cf05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610577565b61074b816111be565b6001600160a01b038316610d4f5760405162461bcd60e51b815260206004820152601d60248201527f417070726f76652066726f6d20746865207a65726f20616464726573730000006044820152606401610577565b6001600160a01b038216610da55760405162461bcd60e51b815260206004820152601b60248201527f417070726f766520746f20746865207a65726f206164647265737300000000006044820152606401610577565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610e5d5760405162461bcd60e51b815260206004820152601e60248201527f5472616e736665722066726f6d20746865207a65726f206164647265737300006044820152606401610577565b6001600160a01b038216610eb35760405162461bcd60e51b815260206004820152601c60248201527f5472616e7366657220746f20746865207a65726f2061646472657373000000006044820152606401610577565b6001600160a01b038216301415610f0c5760405162461bcd60e51b815260206004820152601d60248201527f5472616e7366657220746f2074686520746f6b656e20616464726573730000006044820152606401610577565b6001600160a01b03831660009081526001602052604090205481811015610f755760405162461bcd60e51b815260206004820152601f60248201527f5472616e7366657220616d6f756e7420657863656564732062616c616e6365006044820152606401610577565b610f7f8282611514565b6001600160a01b038086166000908152600160205260408082209390935590851681529081208054849290610fb590849061152b565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161100191815260200190565b60405180910390a350505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6005604051611041919061159a565b604080519182900382208282018252600183527f31000000000000000000000000000000000000000000000000000000000000006020938401528151928301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b6001600160a01b038216600090815260016020526040902054818110156111435760405162461bcd60e51b815260206004820152601b60248201527f4275726e20616d6f756e7420657863656564732062616c616e636500000000006044820152606401610577565b61114d8282611514565b6001600160a01b0384166000908152600160205260408120919091556004805484929061117b908490611514565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610dfa565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000815180845260005b8181101561124c57602081850181015186830182015201611230565b8181111561125e576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006105a56020830184611226565b80356001600160a01b038116811461129d57600080fd5b919050565b600080604083850312156112b557600080fd5b6112be83611286565b946020939093013593505050565b6000806000606084860312156112e157600080fd5b6112ea84611286565b92506112f860208501611286565b9150604084013590509250925092565b60006020828403121561131a57600080fd5b5035919050565b60006020828403121561133357600080fd5b6105a582611286565b634e487b7160e01b600052604160045260246000fd5b60008060006060848603121561136757600080fd5b61137084611286565b925060208401359150604084013567ffffffffffffffff8082111561139457600080fd5b818601915086601f8301126113a857600080fd5b8135818111156113ba576113ba61133c565b604051601f8201601f19908116603f011681019083821181831017156113e2576113e261133c565b816040528281528960208487010111156113fb57600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b600080600080600080600060e0888a03121561143857600080fd5b61144188611286565b965061144f60208901611286565b95506040880135945060608801359350608088013560ff8116811461147357600080fd5b9699959850939692959460a0840135945060c09093013592915050565b600080604083850312156114a357600080fd5b6114ac83611286565b91506114ba60208401611286565b90509250929050565b600181811c908216806114d757607f821691505b602082108114156114f857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611526576115266114fe565b500390565b6000821982111561153e5761153e6114fe565b500190565b60006001600160a01b038087168352856020840152808516604084015250608060608301526115756080830184611226565b9695505050505050565b6000600019821415611593576115936114fe565b5060010190565b600080835481600182811c9150808316806115b657607f831692505b60208084108214156115d657634e487b7160e01b86526022600452602486fd5b8180156115ea57600181146115fb57611628565b60ff19861689528489019650611628565b60008a81526020902060005b868110156116205781548b820152908501908301611607565b505084890196505b50949897505050505050505056fea26469706673582212207d4d417aa71b543e79c7ee803402c76f277c0aa7ca08c2bfd3a097fbb1ed7fed64736f6c63430008090033";
|
|
508
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
509
|
+
class TestERC20__factory extends ethers_1.ContractFactory {
|
|
510
|
+
constructor(...args) {
|
|
511
|
+
if (isSuperArgs(args)) {
|
|
512
|
+
super(...args);
|
|
513
|
+
}
|
|
514
|
+
else {
|
|
515
|
+
super(_abi, _bytecode, args[0]);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
deploy(overrides) {
|
|
519
|
+
return super.deploy(overrides || {});
|
|
520
|
+
}
|
|
521
|
+
getDeployTransaction(overrides) {
|
|
522
|
+
return super.getDeployTransaction(overrides || {});
|
|
523
|
+
}
|
|
524
|
+
attach(address) {
|
|
525
|
+
return super.attach(address);
|
|
526
|
+
}
|
|
527
|
+
connect(signer) {
|
|
528
|
+
return super.connect(signer);
|
|
529
|
+
}
|
|
530
|
+
static createInterface() {
|
|
531
|
+
return new ethers_1.utils.Interface(_abi);
|
|
532
|
+
}
|
|
533
|
+
static connect(address, signerOrProvider) {
|
|
534
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
exports.TestERC20__factory = TestERC20__factory;
|
|
538
|
+
TestERC20__factory.bytecode = _bytecode;
|
|
539
|
+
TestERC20__factory.abi = _abi;
|