@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,549 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VendingMachine__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: "contract IERC20",
|
|
13
|
+
name: "_tbtcV1",
|
|
14
|
+
type: "address",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
internalType: "contract TBTC",
|
|
18
|
+
name: "_tbtcV2",
|
|
19
|
+
type: "address",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
internalType: "uint256",
|
|
23
|
+
name: "_unmintFee",
|
|
24
|
+
type: "uint256",
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
stateMutability: "nonpayable",
|
|
28
|
+
type: "constructor",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
anonymous: false,
|
|
32
|
+
inputs: [
|
|
33
|
+
{
|
|
34
|
+
indexed: true,
|
|
35
|
+
internalType: "address",
|
|
36
|
+
name: "recipient",
|
|
37
|
+
type: "address",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
indexed: false,
|
|
41
|
+
internalType: "uint256",
|
|
42
|
+
name: "amount",
|
|
43
|
+
type: "uint256",
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
name: "Minted",
|
|
47
|
+
type: "event",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
anonymous: false,
|
|
51
|
+
inputs: [
|
|
52
|
+
{
|
|
53
|
+
indexed: true,
|
|
54
|
+
internalType: "address",
|
|
55
|
+
name: "previousOwner",
|
|
56
|
+
type: "address",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
indexed: true,
|
|
60
|
+
internalType: "address",
|
|
61
|
+
name: "newOwner",
|
|
62
|
+
type: "address",
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
name: "OwnershipTransferred",
|
|
66
|
+
type: "event",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
anonymous: false,
|
|
70
|
+
inputs: [
|
|
71
|
+
{
|
|
72
|
+
indexed: false,
|
|
73
|
+
internalType: "uint256",
|
|
74
|
+
name: "newUnmintFee",
|
|
75
|
+
type: "uint256",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
indexed: false,
|
|
79
|
+
internalType: "uint256",
|
|
80
|
+
name: "timestamp",
|
|
81
|
+
type: "uint256",
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
name: "UnmintFeeUpdateInitiated",
|
|
85
|
+
type: "event",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
anonymous: false,
|
|
89
|
+
inputs: [
|
|
90
|
+
{
|
|
91
|
+
indexed: false,
|
|
92
|
+
internalType: "uint256",
|
|
93
|
+
name: "newUnmintFee",
|
|
94
|
+
type: "uint256",
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
name: "UnmintFeeUpdated",
|
|
98
|
+
type: "event",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
anonymous: false,
|
|
102
|
+
inputs: [
|
|
103
|
+
{
|
|
104
|
+
indexed: true,
|
|
105
|
+
internalType: "address",
|
|
106
|
+
name: "recipient",
|
|
107
|
+
type: "address",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
indexed: false,
|
|
111
|
+
internalType: "uint256",
|
|
112
|
+
name: "amount",
|
|
113
|
+
type: "uint256",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
indexed: false,
|
|
117
|
+
internalType: "uint256",
|
|
118
|
+
name: "fee",
|
|
119
|
+
type: "uint256",
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
name: "Unminted",
|
|
123
|
+
type: "event",
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
anonymous: false,
|
|
127
|
+
inputs: [
|
|
128
|
+
{
|
|
129
|
+
indexed: false,
|
|
130
|
+
internalType: "address",
|
|
131
|
+
name: "newVendingMachine",
|
|
132
|
+
type: "address",
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
indexed: false,
|
|
136
|
+
internalType: "uint256",
|
|
137
|
+
name: "timestamp",
|
|
138
|
+
type: "uint256",
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
name: "VendingMachineUpgradeInitiated",
|
|
142
|
+
type: "event",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
anonymous: false,
|
|
146
|
+
inputs: [
|
|
147
|
+
{
|
|
148
|
+
indexed: false,
|
|
149
|
+
internalType: "address",
|
|
150
|
+
name: "newVendingMachine",
|
|
151
|
+
type: "address",
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
name: "VendingMachineUpgraded",
|
|
155
|
+
type: "event",
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
inputs: [],
|
|
159
|
+
name: "FLOATING_POINT_DIVISOR",
|
|
160
|
+
outputs: [
|
|
161
|
+
{
|
|
162
|
+
internalType: "uint256",
|
|
163
|
+
name: "",
|
|
164
|
+
type: "uint256",
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
stateMutability: "view",
|
|
168
|
+
type: "function",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
inputs: [],
|
|
172
|
+
name: "GOVERNANCE_DELAY",
|
|
173
|
+
outputs: [
|
|
174
|
+
{
|
|
175
|
+
internalType: "uint256",
|
|
176
|
+
name: "",
|
|
177
|
+
type: "uint256",
|
|
178
|
+
},
|
|
179
|
+
],
|
|
180
|
+
stateMutability: "view",
|
|
181
|
+
type: "function",
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
inputs: [],
|
|
185
|
+
name: "finalizeUnmintFeeUpdate",
|
|
186
|
+
outputs: [],
|
|
187
|
+
stateMutability: "nonpayable",
|
|
188
|
+
type: "function",
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
inputs: [],
|
|
192
|
+
name: "finalizeVendingMachineUpgrade",
|
|
193
|
+
outputs: [],
|
|
194
|
+
stateMutability: "nonpayable",
|
|
195
|
+
type: "function",
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
inputs: [],
|
|
199
|
+
name: "getRemainingUnmintFeeUpdateTime",
|
|
200
|
+
outputs: [
|
|
201
|
+
{
|
|
202
|
+
internalType: "uint256",
|
|
203
|
+
name: "",
|
|
204
|
+
type: "uint256",
|
|
205
|
+
},
|
|
206
|
+
],
|
|
207
|
+
stateMutability: "view",
|
|
208
|
+
type: "function",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
inputs: [],
|
|
212
|
+
name: "getRemainingVendingMachineUpgradeTime",
|
|
213
|
+
outputs: [
|
|
214
|
+
{
|
|
215
|
+
internalType: "uint256",
|
|
216
|
+
name: "",
|
|
217
|
+
type: "uint256",
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
stateMutability: "view",
|
|
221
|
+
type: "function",
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
inputs: [
|
|
225
|
+
{
|
|
226
|
+
internalType: "uint256",
|
|
227
|
+
name: "_newUnmintFee",
|
|
228
|
+
type: "uint256",
|
|
229
|
+
},
|
|
230
|
+
],
|
|
231
|
+
name: "initiateUnmintFeeUpdate",
|
|
232
|
+
outputs: [],
|
|
233
|
+
stateMutability: "nonpayable",
|
|
234
|
+
type: "function",
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
inputs: [
|
|
238
|
+
{
|
|
239
|
+
internalType: "address",
|
|
240
|
+
name: "_newVendingMachine",
|
|
241
|
+
type: "address",
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
name: "initiateVendingMachineUpgrade",
|
|
245
|
+
outputs: [],
|
|
246
|
+
stateMutability: "nonpayable",
|
|
247
|
+
type: "function",
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
inputs: [
|
|
251
|
+
{
|
|
252
|
+
internalType: "uint256",
|
|
253
|
+
name: "amount",
|
|
254
|
+
type: "uint256",
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
name: "mint",
|
|
258
|
+
outputs: [],
|
|
259
|
+
stateMutability: "nonpayable",
|
|
260
|
+
type: "function",
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
inputs: [],
|
|
264
|
+
name: "newUnmintFee",
|
|
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: "newVendingMachine",
|
|
278
|
+
outputs: [
|
|
279
|
+
{
|
|
280
|
+
internalType: "address",
|
|
281
|
+
name: "",
|
|
282
|
+
type: "address",
|
|
283
|
+
},
|
|
284
|
+
],
|
|
285
|
+
stateMutability: "view",
|
|
286
|
+
type: "function",
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
inputs: [],
|
|
290
|
+
name: "owner",
|
|
291
|
+
outputs: [
|
|
292
|
+
{
|
|
293
|
+
internalType: "address",
|
|
294
|
+
name: "",
|
|
295
|
+
type: "address",
|
|
296
|
+
},
|
|
297
|
+
],
|
|
298
|
+
stateMutability: "view",
|
|
299
|
+
type: "function",
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
inputs: [
|
|
303
|
+
{
|
|
304
|
+
internalType: "address",
|
|
305
|
+
name: "from",
|
|
306
|
+
type: "address",
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
internalType: "uint256",
|
|
310
|
+
name: "amount",
|
|
311
|
+
type: "uint256",
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
internalType: "address",
|
|
315
|
+
name: "token",
|
|
316
|
+
type: "address",
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
internalType: "bytes",
|
|
320
|
+
name: "",
|
|
321
|
+
type: "bytes",
|
|
322
|
+
},
|
|
323
|
+
],
|
|
324
|
+
name: "receiveApproval",
|
|
325
|
+
outputs: [],
|
|
326
|
+
stateMutability: "nonpayable",
|
|
327
|
+
type: "function",
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
inputs: [],
|
|
331
|
+
name: "renounceOwnership",
|
|
332
|
+
outputs: [],
|
|
333
|
+
stateMutability: "nonpayable",
|
|
334
|
+
type: "function",
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
inputs: [],
|
|
338
|
+
name: "tbtcV1",
|
|
339
|
+
outputs: [
|
|
340
|
+
{
|
|
341
|
+
internalType: "contract IERC20",
|
|
342
|
+
name: "",
|
|
343
|
+
type: "address",
|
|
344
|
+
},
|
|
345
|
+
],
|
|
346
|
+
stateMutability: "view",
|
|
347
|
+
type: "function",
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
inputs: [],
|
|
351
|
+
name: "tbtcV2",
|
|
352
|
+
outputs: [
|
|
353
|
+
{
|
|
354
|
+
internalType: "contract TBTC",
|
|
355
|
+
name: "",
|
|
356
|
+
type: "address",
|
|
357
|
+
},
|
|
358
|
+
],
|
|
359
|
+
stateMutability: "view",
|
|
360
|
+
type: "function",
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
inputs: [
|
|
364
|
+
{
|
|
365
|
+
internalType: "address",
|
|
366
|
+
name: "newOwner",
|
|
367
|
+
type: "address",
|
|
368
|
+
},
|
|
369
|
+
],
|
|
370
|
+
name: "transferOwnership",
|
|
371
|
+
outputs: [],
|
|
372
|
+
stateMutability: "nonpayable",
|
|
373
|
+
type: "function",
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
inputs: [
|
|
377
|
+
{
|
|
378
|
+
internalType: "address",
|
|
379
|
+
name: "newInitiator",
|
|
380
|
+
type: "address",
|
|
381
|
+
},
|
|
382
|
+
],
|
|
383
|
+
name: "transferUnmintFeeUpdateInitiatorRole",
|
|
384
|
+
outputs: [],
|
|
385
|
+
stateMutability: "nonpayable",
|
|
386
|
+
type: "function",
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
inputs: [
|
|
390
|
+
{
|
|
391
|
+
internalType: "address",
|
|
392
|
+
name: "newInitiator",
|
|
393
|
+
type: "address",
|
|
394
|
+
},
|
|
395
|
+
],
|
|
396
|
+
name: "transferVendingMachineUpgradeInitiatorRole",
|
|
397
|
+
outputs: [],
|
|
398
|
+
stateMutability: "nonpayable",
|
|
399
|
+
type: "function",
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
inputs: [
|
|
403
|
+
{
|
|
404
|
+
internalType: "uint256",
|
|
405
|
+
name: "amount",
|
|
406
|
+
type: "uint256",
|
|
407
|
+
},
|
|
408
|
+
],
|
|
409
|
+
name: "unmint",
|
|
410
|
+
outputs: [],
|
|
411
|
+
stateMutability: "nonpayable",
|
|
412
|
+
type: "function",
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
inputs: [],
|
|
416
|
+
name: "unmintFee",
|
|
417
|
+
outputs: [
|
|
418
|
+
{
|
|
419
|
+
internalType: "uint256",
|
|
420
|
+
name: "",
|
|
421
|
+
type: "uint256",
|
|
422
|
+
},
|
|
423
|
+
],
|
|
424
|
+
stateMutability: "view",
|
|
425
|
+
type: "function",
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
inputs: [
|
|
429
|
+
{
|
|
430
|
+
internalType: "uint256",
|
|
431
|
+
name: "amount",
|
|
432
|
+
type: "uint256",
|
|
433
|
+
},
|
|
434
|
+
],
|
|
435
|
+
name: "unmintFeeFor",
|
|
436
|
+
outputs: [
|
|
437
|
+
{
|
|
438
|
+
internalType: "uint256",
|
|
439
|
+
name: "",
|
|
440
|
+
type: "uint256",
|
|
441
|
+
},
|
|
442
|
+
],
|
|
443
|
+
stateMutability: "view",
|
|
444
|
+
type: "function",
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
inputs: [],
|
|
448
|
+
name: "unmintFeeUpdateInitiatedTimestamp",
|
|
449
|
+
outputs: [
|
|
450
|
+
{
|
|
451
|
+
internalType: "uint256",
|
|
452
|
+
name: "",
|
|
453
|
+
type: "uint256",
|
|
454
|
+
},
|
|
455
|
+
],
|
|
456
|
+
stateMutability: "view",
|
|
457
|
+
type: "function",
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
inputs: [],
|
|
461
|
+
name: "unmintFeeUpdateInitiator",
|
|
462
|
+
outputs: [
|
|
463
|
+
{
|
|
464
|
+
internalType: "address",
|
|
465
|
+
name: "",
|
|
466
|
+
type: "address",
|
|
467
|
+
},
|
|
468
|
+
],
|
|
469
|
+
stateMutability: "view",
|
|
470
|
+
type: "function",
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
inputs: [],
|
|
474
|
+
name: "vendingMachineUpgradeInitiatedTimestamp",
|
|
475
|
+
outputs: [
|
|
476
|
+
{
|
|
477
|
+
internalType: "uint256",
|
|
478
|
+
name: "",
|
|
479
|
+
type: "uint256",
|
|
480
|
+
},
|
|
481
|
+
],
|
|
482
|
+
stateMutability: "view",
|
|
483
|
+
type: "function",
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
inputs: [],
|
|
487
|
+
name: "vendingMachineUpgradeInitiator",
|
|
488
|
+
outputs: [
|
|
489
|
+
{
|
|
490
|
+
internalType: "address",
|
|
491
|
+
name: "",
|
|
492
|
+
type: "address",
|
|
493
|
+
},
|
|
494
|
+
],
|
|
495
|
+
stateMutability: "view",
|
|
496
|
+
type: "function",
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
inputs: [
|
|
500
|
+
{
|
|
501
|
+
internalType: "address",
|
|
502
|
+
name: "recipient",
|
|
503
|
+
type: "address",
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
internalType: "uint256",
|
|
507
|
+
name: "amount",
|
|
508
|
+
type: "uint256",
|
|
509
|
+
},
|
|
510
|
+
],
|
|
511
|
+
name: "withdrawFees",
|
|
512
|
+
outputs: [],
|
|
513
|
+
stateMutability: "nonpayable",
|
|
514
|
+
type: "function",
|
|
515
|
+
},
|
|
516
|
+
];
|
|
517
|
+
const _bytecode = "0x60c06040523480156200001157600080fd5b5060405162001a0238038062001a028339810160408190526200003491620000e6565b6200003f336200007d565b6001600160a01b03928316608052911660a05260015560048054336001600160a01b031991821681179092556007805490911690911790556200012e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114620000e357600080fd5b50565b600080600060608486031215620000fc57600080fd5b83516200010981620000cd565b60208501519093506200011c81620000cd565b80925050604084015190509250925092565b60805160a05161185a620001a8600039600081816102dc015281816107a0015281816108a2015281816108ff01528181610b8101528181610cb601526112f40152600081816102410152818161097001528181610a0501528181610a8f01528181610d3c01528181610dc2015261128d015261185a6000f3fe608060405234801561001057600080fd5b50600436106101b95760003560e01c80638da5cb5b116100f9578063b766bd8a11610097578063ea1a4e6811610071578063ea1a4e681461035a578063f257a1a01461036d578063f2fde38b14610380578063fe7294a81461039357600080fd5b8063b766bd8a14610337578063bb81268c1461034a578063c2b4aa751461035257600080fd5b8063a0712d68116100d3578063a0712d68146102fe578063ad3b1b4714610311578063b0b5489514610324578063b29b95ce1461032e57600080fd5b80638da5cb5b146102b35780638f4ffcb1146102c457806395de5a41146102d757600080fd5b80632d42067d116101665780635bf32f52116101405780635bf32f52146102725780636386d0b11461028557806364e779b114610298578063715018a6146102ab57600080fd5b80632d42067d146102295780633678252f1461023c57806351b83ebc1461026357600080fd5b80630c505b7a116101975780630c505b7a1461020d57806320ad25dc14610216578063240b57e81461022057600080fd5b806305e448fc146101be5780630bb037df146101da5780630c05ab39146101e2575b600080fd5b6101c760065481565b6040519081526020015b60405180910390f35b6101c76103a6565b6007546101f5906001600160a01b031681565b6040516001600160a01b0390911681526020016101d1565b6101c760015481565b61021e6103bc565b005b6101c760025481565b61021e6102373660046115ef565b610479565b6101f57f000000000000000000000000000000000000000000000000000000000000000081565b6101c7670de0b6b3a764000081565b61021e61028036600461160a565b61055c565b61021e6102933660046115ef565b6105f9565b61021e6102a636600461160a565b610738565b61021e61099d565b6000546001600160a01b03166101f5565b61021e6102d2366004611623565b610a03565b6101f57f000000000000000000000000000000000000000000000000000000000000000081565b61021e61030c36600461160a565b610b0d565b61021e61031f3660046116be565b610b1a565b6101c762093a8081565b6101c760035481565b6101c761034536600461160a565b610ba8565b61021e610bd1565b6101c7610e01565b6004546101f5906001600160a01b031681565b61021e61037b3660046115ef565b610e12565b61021e61038e3660046115ef565b610ef5565b6005546101f5906001600160a01b031681565b60006103b760065462093a80610fbd565b905090565b6000546001600160a01b0316331461041b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60035461042b8162093a8061103f565b7f3fd2a429fdc4324c186eb6c71dc1bf3accae43e10f21367f6d143635dd5ed33c60025460405161045e91815260200190565b60405180910390a15060028054600155600090819055600355565b6004546001600160a01b03163381146104d45760405162461bcd60e51b815260206004820152601860248201527f43616c6c6572206973206e6f7420617574686f72697a656400000000000000006044820152606401610412565b6001600160a01b0382166105395760405162461bcd60e51b815260206004820152602660248201527f4e657720696e69746961746f72206d757374206e6f74206265207a65726f206160448201526564647265737360d01b6064820152608401610412565b50600480546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b03163381146105b75760405162461bcd60e51b815260206004820152601860248201527f43616c6c6572206973206e6f7420617574686f72697a656400000000000000006044820152606401610412565b604080518381524260208201527f0ddb39c814329b5da82b52fcacf65e4db6a1f64a0db4755282bee877cb97991a910160405180910390a15060025542600355565b6007546001600160a01b03163381146106545760405162461bcd60e51b815260206004820152601860248201527f43616c6c6572206973206e6f7420617574686f72697a656400000000000000006044820152606401610412565b6001600160a01b0382166106d05760405162461bcd60e51b815260206004820152602960248201527f4e65772056656e64696e674d616368696e652063616e6e6f74206265207a657260448201527f6f206164647265737300000000000000000000000000000000000000000000006064820152608401610412565b604080516001600160a01b03841681524260208201527f424e3c8894757dd6fd019d0d8065b19c7e49af137aeb89a275ed3d2435025a96910160405180910390a150600580546001600160a01b0319166001600160a01b039290921691909117905542600655565b600061074382610ba8565b604080518481526020810183905291925033917fe8a2f49c528033a686bb566d35ac82ca6fd93449bdd9f5d5b36c2f1aa68214b3910160405180910390a261078b81836116fe565b6040516370a0823160e01b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b1580156107ea57600080fd5b505afa1580156107fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108229190611716565b10156108955760405162461bcd60e51b8152602060048201526024808201527f416d6f756e74202b20666565206578636565647320544254432076322062616c60448201527f616e6365000000000000000000000000000000000000000000000000000000006064820152608401610412565b6108ca6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330846110e8565b6040517f79cc6790000000000000000000000000000000000000000000000000000000008152336004820152602481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906379cc679090604401600060405180830381600087803b15801561094b57600080fd5b505af115801561095f573d6000803e3d6000fd5b506109999250506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169050338461119f565b5050565b6000546001600160a01b031633146109f75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610412565b610a0160006111ed565b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031614610a845760405162461bcd60e51b815260206004820152601460248201527f546f6b656e206973206e6f7420544254432076310000000000000000000000006044820152606401610412565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610afc5760405162461bcd60e51b815260206004820152601b60248201527f4f6e6c7920544254432076312063616c6c657220616c6c6f77656400000000006044820152606401610412565b610b06858561123d565b5050505050565b610b17338261123d565b50565b6000546001600160a01b03163314610b745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610412565b6109996001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016838361119f565b6000670de0b6b3a764000060015483610bc1919061172f565b610bcb919061174e565b92915050565b6000546001600160a01b03163314610c2b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610412565b600654610c3b8162093a8061103f565b6005546040516001600160a01b0390911681527f99610bc40a14194a7a819ffeded94200b49e68ba00bc3a3ab89625c0972217ff9060200160405180910390a16005546040517ff2fde38b0000000000000000000000000000000000000000000000000000000081526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063f2fde38b90602401600060405180830381600087803b158015610cfc57600080fd5b505af1158015610d10573d6000803e3d6000fd5b50506005546040516370a0823160e01b8152306004820152610de993506001600160a01b0391821692507f0000000000000000000000000000000000000000000000000000000000000000909116906370a082319060240160206040518083038186803b158015610d8057600080fd5b505afa158015610d94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db89190611716565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016919061119f565b50600580546001600160a01b03191690556000600655565b60006103b760035462093a80610fbd565b6007546001600160a01b0316338114610e6d5760405162461bcd60e51b815260206004820152601860248201527f43616c6c6572206973206e6f7420617574686f72697a656400000000000000006044820152606401610412565b6001600160a01b038216610ed25760405162461bcd60e51b815260206004820152602660248201527f4e657720696e69746961746f72206d757374206e6f74206265207a65726f206160448201526564647265737360d01b6064820152608401610412565b50600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610f4f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610412565b6001600160a01b038116610fb45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610412565b610b17816111ed565b600080831161100e5760405162461bcd60e51b815260206004820152601460248201527f4368616e6765206e6f7420696e697469617465640000000000000000000000006044820152606401610412565b600061101a8442611770565b905082811061102d576000915050610bcb565b6110378184611770565b949350505050565b6000821161108f5760405162461bcd60e51b815260206004820152601460248201527f4368616e6765206e6f7420696e697469617465640000000000000000000000006044820152606401610412565b8061109a8342611770565b10156109995760405162461bcd60e51b815260206004820181905260248201527f476f7665726e616e63652064656c617920686173206e6f7420656c61707365646044820152606401610412565b6040516001600160a01b03808516602483015283166044820152606481018290526111999085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611354565b50505050565b6040516001600160a01b0383166024820152604481018290526111e89084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401611135565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b03167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe8260405161127891815260200190565b60405180910390a26112b56001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168330846110e8565b6040517f40c10f190000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152602482018390527f000000000000000000000000000000000000000000000000000000000000000016906340c10f1990604401600060405180830381600087803b15801561133857600080fd5b505af115801561134c573d6000803e3d6000fd5b505050505050565b60006113a9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114399092919063ffffffff16565b8051909150156111e857808060200190518101906113c79190611787565b6111e85760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610412565b60606114488484600085611452565b90505b9392505050565b6060824710156114ca5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610412565b6001600160a01b0385163b6115215760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610412565b600080866001600160a01b0316858760405161153d91906117d5565b60006040518083038185875af1925050503d806000811461157a576040519150601f19603f3d011682016040523d82523d6000602084013e61157f565b606091505b509150915061158f82828661159a565b979650505050505050565b606083156115a957508161144b565b8251156115b95782518084602001fd5b8160405162461bcd60e51b815260040161041291906117f1565b80356001600160a01b03811681146115ea57600080fd5b919050565b60006020828403121561160157600080fd5b61144b826115d3565b60006020828403121561161c57600080fd5b5035919050565b60008060008060006080868803121561163b57600080fd5b611644866115d3565b945060208601359350611659604087016115d3565b9250606086013567ffffffffffffffff8082111561167657600080fd5b818801915088601f83011261168a57600080fd5b81358181111561169957600080fd5b8960208285010111156116ab57600080fd5b9699959850939650602001949392505050565b600080604083850312156116d157600080fd5b6116da836115d3565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611711576117116116e8565b500190565b60006020828403121561172857600080fd5b5051919050565b6000816000190483118215151615611749576117496116e8565b500290565b60008261176b57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015611782576117826116e8565b500390565b60006020828403121561179957600080fd5b8151801515811461144b57600080fd5b60005b838110156117c45781810151838201526020016117ac565b838111156111995750506000910152565b600082516117e78184602087016117a9565b9190910192915050565b60208152600082518060208401526118108160408501602087016117a9565b601f01601f1916919091016040019291505056fea2646970667358221220455334ea9789b21e26b9f1c24474fc80e3512b721e0e0f3a0b0c3f965a5652be64736f6c63430008090033";
|
|
518
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
519
|
+
class VendingMachine__factory extends ethers_1.ContractFactory {
|
|
520
|
+
constructor(...args) {
|
|
521
|
+
if (isSuperArgs(args)) {
|
|
522
|
+
super(...args);
|
|
523
|
+
}
|
|
524
|
+
else {
|
|
525
|
+
super(_abi, _bytecode, args[0]);
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
deploy(_tbtcV1, _tbtcV2, _unmintFee, overrides) {
|
|
529
|
+
return super.deploy(_tbtcV1, _tbtcV2, _unmintFee, overrides || {});
|
|
530
|
+
}
|
|
531
|
+
getDeployTransaction(_tbtcV1, _tbtcV2, _unmintFee, overrides) {
|
|
532
|
+
return super.getDeployTransaction(_tbtcV1, _tbtcV2, _unmintFee, overrides || {});
|
|
533
|
+
}
|
|
534
|
+
attach(address) {
|
|
535
|
+
return super.attach(address);
|
|
536
|
+
}
|
|
537
|
+
connect(signer) {
|
|
538
|
+
return super.connect(signer);
|
|
539
|
+
}
|
|
540
|
+
static createInterface() {
|
|
541
|
+
return new ethers_1.utils.Interface(_abi);
|
|
542
|
+
}
|
|
543
|
+
static connect(address, signerOrProvider) {
|
|
544
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
exports.VendingMachine__factory = VendingMachine__factory;
|
|
548
|
+
VendingMachine__factory.bytecode = _bytecode;
|
|
549
|
+
VendingMachine__factory.abi = _abi;
|