@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,388 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ERC721__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: "approved",
|
|
38
|
+
type: "address",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
indexed: true,
|
|
42
|
+
internalType: "uint256",
|
|
43
|
+
name: "tokenId",
|
|
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: "owner",
|
|
57
|
+
type: "address",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
indexed: true,
|
|
61
|
+
internalType: "address",
|
|
62
|
+
name: "operator",
|
|
63
|
+
type: "address",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
indexed: false,
|
|
67
|
+
internalType: "bool",
|
|
68
|
+
name: "approved",
|
|
69
|
+
type: "bool",
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
name: "ApprovalForAll",
|
|
73
|
+
type: "event",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
anonymous: false,
|
|
77
|
+
inputs: [
|
|
78
|
+
{
|
|
79
|
+
indexed: true,
|
|
80
|
+
internalType: "address",
|
|
81
|
+
name: "from",
|
|
82
|
+
type: "address",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
indexed: true,
|
|
86
|
+
internalType: "address",
|
|
87
|
+
name: "to",
|
|
88
|
+
type: "address",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
indexed: true,
|
|
92
|
+
internalType: "uint256",
|
|
93
|
+
name: "tokenId",
|
|
94
|
+
type: "uint256",
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
name: "Transfer",
|
|
98
|
+
type: "event",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
inputs: [
|
|
102
|
+
{
|
|
103
|
+
internalType: "address",
|
|
104
|
+
name: "to",
|
|
105
|
+
type: "address",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
internalType: "uint256",
|
|
109
|
+
name: "tokenId",
|
|
110
|
+
type: "uint256",
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
name: "approve",
|
|
114
|
+
outputs: [],
|
|
115
|
+
stateMutability: "nonpayable",
|
|
116
|
+
type: "function",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
inputs: [
|
|
120
|
+
{
|
|
121
|
+
internalType: "address",
|
|
122
|
+
name: "owner",
|
|
123
|
+
type: "address",
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
name: "balanceOf",
|
|
127
|
+
outputs: [
|
|
128
|
+
{
|
|
129
|
+
internalType: "uint256",
|
|
130
|
+
name: "",
|
|
131
|
+
type: "uint256",
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
stateMutability: "view",
|
|
135
|
+
type: "function",
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
inputs: [
|
|
139
|
+
{
|
|
140
|
+
internalType: "uint256",
|
|
141
|
+
name: "tokenId",
|
|
142
|
+
type: "uint256",
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
name: "getApproved",
|
|
146
|
+
outputs: [
|
|
147
|
+
{
|
|
148
|
+
internalType: "address",
|
|
149
|
+
name: "",
|
|
150
|
+
type: "address",
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
stateMutability: "view",
|
|
154
|
+
type: "function",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
inputs: [
|
|
158
|
+
{
|
|
159
|
+
internalType: "address",
|
|
160
|
+
name: "owner",
|
|
161
|
+
type: "address",
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
internalType: "address",
|
|
165
|
+
name: "operator",
|
|
166
|
+
type: "address",
|
|
167
|
+
},
|
|
168
|
+
],
|
|
169
|
+
name: "isApprovedForAll",
|
|
170
|
+
outputs: [
|
|
171
|
+
{
|
|
172
|
+
internalType: "bool",
|
|
173
|
+
name: "",
|
|
174
|
+
type: "bool",
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
stateMutability: "view",
|
|
178
|
+
type: "function",
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
inputs: [],
|
|
182
|
+
name: "name",
|
|
183
|
+
outputs: [
|
|
184
|
+
{
|
|
185
|
+
internalType: "string",
|
|
186
|
+
name: "",
|
|
187
|
+
type: "string",
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
stateMutability: "view",
|
|
191
|
+
type: "function",
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
inputs: [
|
|
195
|
+
{
|
|
196
|
+
internalType: "uint256",
|
|
197
|
+
name: "tokenId",
|
|
198
|
+
type: "uint256",
|
|
199
|
+
},
|
|
200
|
+
],
|
|
201
|
+
name: "ownerOf",
|
|
202
|
+
outputs: [
|
|
203
|
+
{
|
|
204
|
+
internalType: "address",
|
|
205
|
+
name: "",
|
|
206
|
+
type: "address",
|
|
207
|
+
},
|
|
208
|
+
],
|
|
209
|
+
stateMutability: "view",
|
|
210
|
+
type: "function",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
inputs: [
|
|
214
|
+
{
|
|
215
|
+
internalType: "address",
|
|
216
|
+
name: "from",
|
|
217
|
+
type: "address",
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
internalType: "address",
|
|
221
|
+
name: "to",
|
|
222
|
+
type: "address",
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
internalType: "uint256",
|
|
226
|
+
name: "tokenId",
|
|
227
|
+
type: "uint256",
|
|
228
|
+
},
|
|
229
|
+
],
|
|
230
|
+
name: "safeTransferFrom",
|
|
231
|
+
outputs: [],
|
|
232
|
+
stateMutability: "nonpayable",
|
|
233
|
+
type: "function",
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
inputs: [
|
|
237
|
+
{
|
|
238
|
+
internalType: "address",
|
|
239
|
+
name: "from",
|
|
240
|
+
type: "address",
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
internalType: "address",
|
|
244
|
+
name: "to",
|
|
245
|
+
type: "address",
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
internalType: "uint256",
|
|
249
|
+
name: "tokenId",
|
|
250
|
+
type: "uint256",
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
internalType: "bytes",
|
|
254
|
+
name: "_data",
|
|
255
|
+
type: "bytes",
|
|
256
|
+
},
|
|
257
|
+
],
|
|
258
|
+
name: "safeTransferFrom",
|
|
259
|
+
outputs: [],
|
|
260
|
+
stateMutability: "nonpayable",
|
|
261
|
+
type: "function",
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
inputs: [
|
|
265
|
+
{
|
|
266
|
+
internalType: "address",
|
|
267
|
+
name: "operator",
|
|
268
|
+
type: "address",
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
internalType: "bool",
|
|
272
|
+
name: "approved",
|
|
273
|
+
type: "bool",
|
|
274
|
+
},
|
|
275
|
+
],
|
|
276
|
+
name: "setApprovalForAll",
|
|
277
|
+
outputs: [],
|
|
278
|
+
stateMutability: "nonpayable",
|
|
279
|
+
type: "function",
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
inputs: [
|
|
283
|
+
{
|
|
284
|
+
internalType: "bytes4",
|
|
285
|
+
name: "interfaceId",
|
|
286
|
+
type: "bytes4",
|
|
287
|
+
},
|
|
288
|
+
],
|
|
289
|
+
name: "supportsInterface",
|
|
290
|
+
outputs: [
|
|
291
|
+
{
|
|
292
|
+
internalType: "bool",
|
|
293
|
+
name: "",
|
|
294
|
+
type: "bool",
|
|
295
|
+
},
|
|
296
|
+
],
|
|
297
|
+
stateMutability: "view",
|
|
298
|
+
type: "function",
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
inputs: [],
|
|
302
|
+
name: "symbol",
|
|
303
|
+
outputs: [
|
|
304
|
+
{
|
|
305
|
+
internalType: "string",
|
|
306
|
+
name: "",
|
|
307
|
+
type: "string",
|
|
308
|
+
},
|
|
309
|
+
],
|
|
310
|
+
stateMutability: "view",
|
|
311
|
+
type: "function",
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
inputs: [
|
|
315
|
+
{
|
|
316
|
+
internalType: "uint256",
|
|
317
|
+
name: "tokenId",
|
|
318
|
+
type: "uint256",
|
|
319
|
+
},
|
|
320
|
+
],
|
|
321
|
+
name: "tokenURI",
|
|
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: "from",
|
|
337
|
+
type: "address",
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
internalType: "address",
|
|
341
|
+
name: "to",
|
|
342
|
+
type: "address",
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
internalType: "uint256",
|
|
346
|
+
name: "tokenId",
|
|
347
|
+
type: "uint256",
|
|
348
|
+
},
|
|
349
|
+
],
|
|
350
|
+
name: "transferFrom",
|
|
351
|
+
outputs: [],
|
|
352
|
+
stateMutability: "nonpayable",
|
|
353
|
+
type: "function",
|
|
354
|
+
},
|
|
355
|
+
];
|
|
356
|
+
const _bytecode = "0x60806040523480156200001157600080fd5b50604051620016cc380380620016cc8339810160408190526200003491620001db565b81516200004990600090602085019062000068565b5080516200005f90600190602084019062000068565b50505062000282565b828054620000769062000245565b90600052602060002090601f0160209004810192826200009a5760008555620000e5565b82601f10620000b557805160ff1916838001178555620000e5565b82800160010185558215620000e5579182015b82811115620000e5578251825591602001919060010190620000c8565b50620000f3929150620000f7565b5090565b5b80821115620000f35760008155600101620000f8565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200013657600080fd5b81516001600160401b03808211156200015357620001536200010e565b604051601f8301601f19908116603f011681019082821181831017156200017e576200017e6200010e565b816040528381526020925086838588010111156200019b57600080fd5b600091505b83821015620001bf5785820183015181830184015290820190620001a0565b83821115620001d15760008385830101525b9695505050505050565b60008060408385031215620001ef57600080fd5b82516001600160401b03808211156200020757600080fd5b620002158683870162000124565b935060208501519150808211156200022c57600080fd5b506200023b8582860162000124565b9150509250929050565b600181811c908216806200025a57607f821691505b602082108114156200027c57634e487b7160e01b600052602260045260246000fd5b50919050565b61143a80620002926000396000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c80636352211e1161008c578063a22cb46511610066578063a22cb465146101c3578063b88d4fde146101d6578063c87b56dd146101e9578063e985e9c5146101fc57600080fd5b80636352211e1461018757806370a082311461019a57806395d89b41146101bb57600080fd5b8063095ea7b3116100bd578063095ea7b31461014c57806323b872dd1461016157806342842e0e1461017457600080fd5b806301ffc9a7146100e457806306fdde031461010c578063081812fc14610121575b600080fd5b6100f76100f2366004610fee565b610238565b60405190151581526020015b60405180910390f35b6101146102d5565b6040516101039190611063565b61013461012f366004611076565b610367565b6040516001600160a01b039091168152602001610103565b61015f61015a3660046110ab565b610401565b005b61015f61016f3660046110d5565b610533565b61015f6101823660046110d5565b6105ba565b610134610195366004611076565b6105d5565b6101ad6101a8366004611111565b610660565b604051908152602001610103565b6101146106fa565b61015f6101d136600461112c565b610709565b61015f6101e436600461117e565b610718565b6101146101f7366004611076565b6107a6565b6100f761020a36600461125a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061029b57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806102cf57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6060600080546102e49061128d565b80601f01602080910402602001604051908101604052809291908181526020018280546103109061128d565b801561035d5780601f106103325761010080835404028352916020019161035d565b820191906000526020600020905b81548152906001019060200180831161034057829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166103e55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061040c826105d5565b9050806001600160a01b0316836001600160a01b031614156104965760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016103dc565b336001600160a01b03821614806104b257506104b2813361020a565b6105245760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016103dc565b61052e838361089c565b505050565b61053d3382610917565b6105af5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016103dc565b61052e838383610a0e565b61052e83838360405180602001604052806000815250610718565b6000818152600260205260408120546001600160a01b0316806102cf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016103dc565b60006001600160a01b0382166106de5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016103dc565b506001600160a01b031660009081526003602052604090205490565b6060600180546102e49061128d565b610714338383610be8565b5050565b6107223383610917565b6107945760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016103dc565b6107a084848484610cb7565b50505050565b6000818152600260205260409020546060906001600160a01b03166108335760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016103dc565b600061084a60408051602081019091526000815290565b9050600081511161086a5760405180602001604052806000815250610895565b8061087484610d40565b6040516020016108859291906112c8565b6040516020818303038152906040525b9392505050565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906108de826105d5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166109905760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016103dc565b600061099b836105d5565b9050806001600160a01b0316846001600160a01b031614806109e257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610a065750836001600160a01b03166109fb84610367565b6001600160a01b0316145b949350505050565b826001600160a01b0316610a21826105d5565b6001600160a01b031614610a9d5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e657200000000000000000000000000000000000000000000000000000060648201526084016103dc565b6001600160a01b038216610b185760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016103dc565b610b2360008261089c565b6001600160a01b0383166000908152600360205260408120805460019290610b4c90849061130d565b90915550506001600160a01b0382166000908152600360205260408120805460019290610b7a908490611324565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b03161415610c4a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016103dc565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b610cc2848484610a0e565b610cce84848484610e72565b6107a05760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016103dc565b606081610d8057505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115610daa5780610d948161133c565b9150610da39050600a8361136d565b9150610d84565b60008167ffffffffffffffff811115610dc557610dc5611168565b6040519080825280601f01601f191660200182016040528015610def576020820181803683370190505b5090505b8415610a0657610e0460018361130d565b9150610e11600a86611381565b610e1c906030611324565b60f81b818381518110610e3157610e31611395565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350610e6b600a8661136d565b9450610df3565b60006001600160a01b0384163b15610fca57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290610eb69033908990889088906004016113ab565b602060405180830381600087803b158015610ed057600080fd5b505af1925050508015610f00575060408051601f3d908101601f19168201909252610efd918101906113e7565b60015b610fb0573d808015610f2e576040519150601f19603f3d011682016040523d82523d6000602084013e610f33565b606091505b508051610fa85760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016103dc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610a06565b506001949350505050565b6001600160e01b031981168114610feb57600080fd5b50565b60006020828403121561100057600080fd5b813561089581610fd5565b60005b8381101561102657818101518382015260200161100e565b838111156107a05750506000910152565b6000815180845261104f81602086016020860161100b565b601f01601f19169290920160200192915050565b6020815260006108956020830184611037565b60006020828403121561108857600080fd5b5035919050565b80356001600160a01b03811681146110a657600080fd5b919050565b600080604083850312156110be57600080fd5b6110c78361108f565b946020939093013593505050565b6000806000606084860312156110ea57600080fd5b6110f38461108f565b92506111016020850161108f565b9150604084013590509250925092565b60006020828403121561112357600080fd5b6108958261108f565b6000806040838503121561113f57600080fd5b6111488361108f565b91506020830135801515811461115d57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561119457600080fd5b61119d8561108f565b93506111ab6020860161108f565b925060408501359150606085013567ffffffffffffffff808211156111cf57600080fd5b818701915087601f8301126111e357600080fd5b8135818111156111f5576111f5611168565b604051601f8201601f19908116603f0116810190838211818310171561121d5761121d611168565b816040528281528a602084870101111561123657600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561126d57600080fd5b6112768361108f565b91506112846020840161108f565b90509250929050565b600181811c908216806112a157607f821691505b602082108114156112c257634e487b7160e01b600052602260045260246000fd5b50919050565b600083516112da81846020880161100b565b8351908301906112ee81836020880161100b565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b60008282101561131f5761131f6112f7565b500390565b60008219821115611337576113376112f7565b500190565b6000600019821415611350576113506112f7565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261137c5761137c611357565b500490565b60008261139057611390611357565b500690565b634e487b7160e01b600052603260045260246000fd5b60006001600160a01b038087168352808616602084015250836040830152608060608301526113dd6080830184611037565b9695505050505050565b6000602082840312156113f957600080fd5b815161089581610fd556fea264697066735822122037591c3fe9910dba9b361b77abd29884de6441eb98a6c04626b8d7f4b5740dab64736f6c63430008090033";
|
|
357
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
358
|
+
class ERC721__factory extends ethers_1.ContractFactory {
|
|
359
|
+
constructor(...args) {
|
|
360
|
+
if (isSuperArgs(args)) {
|
|
361
|
+
super(...args);
|
|
362
|
+
}
|
|
363
|
+
else {
|
|
364
|
+
super(_abi, _bytecode, args[0]);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
deploy(name_, symbol_, overrides) {
|
|
368
|
+
return super.deploy(name_, symbol_, overrides || {});
|
|
369
|
+
}
|
|
370
|
+
getDeployTransaction(name_, symbol_, overrides) {
|
|
371
|
+
return super.getDeployTransaction(name_, symbol_, overrides || {});
|
|
372
|
+
}
|
|
373
|
+
attach(address) {
|
|
374
|
+
return super.attach(address);
|
|
375
|
+
}
|
|
376
|
+
connect(signer) {
|
|
377
|
+
return super.connect(signer);
|
|
378
|
+
}
|
|
379
|
+
static createInterface() {
|
|
380
|
+
return new ethers_1.utils.Interface(_abi);
|
|
381
|
+
}
|
|
382
|
+
static connect(address, signerOrProvider) {
|
|
383
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
exports.ERC721__factory = ERC721__factory;
|
|
387
|
+
ERC721__factory.bytecode = _bytecode;
|
|
388
|
+
ERC721__factory.abi = _abi;
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EcdsaAuthorization__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
|
+
anonymous: false,
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
indexed: true,
|
|
14
|
+
internalType: "address",
|
|
15
|
+
name: "stakingProvider",
|
|
16
|
+
type: "address",
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
name: "AuthorizationDecreaseApproved",
|
|
20
|
+
type: "event",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
anonymous: false,
|
|
24
|
+
inputs: [
|
|
25
|
+
{
|
|
26
|
+
indexed: true,
|
|
27
|
+
internalType: "address",
|
|
28
|
+
name: "stakingProvider",
|
|
29
|
+
type: "address",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
indexed: true,
|
|
33
|
+
internalType: "address",
|
|
34
|
+
name: "operator",
|
|
35
|
+
type: "address",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
indexed: false,
|
|
39
|
+
internalType: "uint96",
|
|
40
|
+
name: "fromAmount",
|
|
41
|
+
type: "uint96",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
indexed: false,
|
|
45
|
+
internalType: "uint96",
|
|
46
|
+
name: "toAmount",
|
|
47
|
+
type: "uint96",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
indexed: false,
|
|
51
|
+
internalType: "uint64",
|
|
52
|
+
name: "decreasingAt",
|
|
53
|
+
type: "uint64",
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
name: "AuthorizationDecreaseRequested",
|
|
57
|
+
type: "event",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
anonymous: false,
|
|
61
|
+
inputs: [
|
|
62
|
+
{
|
|
63
|
+
indexed: true,
|
|
64
|
+
internalType: "address",
|
|
65
|
+
name: "stakingProvider",
|
|
66
|
+
type: "address",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
indexed: true,
|
|
70
|
+
internalType: "address",
|
|
71
|
+
name: "operator",
|
|
72
|
+
type: "address",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
indexed: false,
|
|
76
|
+
internalType: "uint96",
|
|
77
|
+
name: "fromAmount",
|
|
78
|
+
type: "uint96",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
indexed: false,
|
|
82
|
+
internalType: "uint96",
|
|
83
|
+
name: "toAmount",
|
|
84
|
+
type: "uint96",
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
name: "AuthorizationIncreased",
|
|
88
|
+
type: "event",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
anonymous: false,
|
|
92
|
+
inputs: [
|
|
93
|
+
{
|
|
94
|
+
indexed: true,
|
|
95
|
+
internalType: "address",
|
|
96
|
+
name: "stakingProvider",
|
|
97
|
+
type: "address",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
indexed: true,
|
|
101
|
+
internalType: "address",
|
|
102
|
+
name: "operator",
|
|
103
|
+
type: "address",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
indexed: false,
|
|
107
|
+
internalType: "uint96",
|
|
108
|
+
name: "fromAmount",
|
|
109
|
+
type: "uint96",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
indexed: false,
|
|
113
|
+
internalType: "uint96",
|
|
114
|
+
name: "toAmount",
|
|
115
|
+
type: "uint96",
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
name: "InvoluntaryAuthorizationDecreaseFailed",
|
|
119
|
+
type: "event",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
anonymous: false,
|
|
123
|
+
inputs: [
|
|
124
|
+
{
|
|
125
|
+
indexed: true,
|
|
126
|
+
internalType: "address",
|
|
127
|
+
name: "stakingProvider",
|
|
128
|
+
type: "address",
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
indexed: true,
|
|
132
|
+
internalType: "address",
|
|
133
|
+
name: "operator",
|
|
134
|
+
type: "address",
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
name: "OperatorJoinedSortitionPool",
|
|
138
|
+
type: "event",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
anonymous: false,
|
|
142
|
+
inputs: [
|
|
143
|
+
{
|
|
144
|
+
indexed: true,
|
|
145
|
+
internalType: "address",
|
|
146
|
+
name: "stakingProvider",
|
|
147
|
+
type: "address",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
indexed: true,
|
|
151
|
+
internalType: "address",
|
|
152
|
+
name: "operator",
|
|
153
|
+
type: "address",
|
|
154
|
+
},
|
|
155
|
+
],
|
|
156
|
+
name: "OperatorRegistered",
|
|
157
|
+
type: "event",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
anonymous: false,
|
|
161
|
+
inputs: [
|
|
162
|
+
{
|
|
163
|
+
indexed: true,
|
|
164
|
+
internalType: "address",
|
|
165
|
+
name: "stakingProvider",
|
|
166
|
+
type: "address",
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
indexed: true,
|
|
170
|
+
internalType: "address",
|
|
171
|
+
name: "operator",
|
|
172
|
+
type: "address",
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
name: "OperatorStatusUpdated",
|
|
176
|
+
type: "event",
|
|
177
|
+
},
|
|
178
|
+
];
|
|
179
|
+
const _bytecode = "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220c5f1615ccf18e1cfacefeb988ec1d86dbf6d8b64204e331b921d77a1391a2ece64736f6c63430008090033";
|
|
180
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
181
|
+
class EcdsaAuthorization__factory extends ethers_1.ContractFactory {
|
|
182
|
+
constructor(...args) {
|
|
183
|
+
if (isSuperArgs(args)) {
|
|
184
|
+
super(...args);
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
super(_abi, _bytecode, args[0]);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
deploy(overrides) {
|
|
191
|
+
return super.deploy(overrides || {});
|
|
192
|
+
}
|
|
193
|
+
getDeployTransaction(overrides) {
|
|
194
|
+
return super.getDeployTransaction(overrides || {});
|
|
195
|
+
}
|
|
196
|
+
attach(address) {
|
|
197
|
+
return super.attach(address);
|
|
198
|
+
}
|
|
199
|
+
connect(signer) {
|
|
200
|
+
return super.connect(signer);
|
|
201
|
+
}
|
|
202
|
+
static createInterface() {
|
|
203
|
+
return new ethers_1.utils.Interface(_abi);
|
|
204
|
+
}
|
|
205
|
+
static connect(address, signerOrProvider) {
|
|
206
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
exports.EcdsaAuthorization__factory = EcdsaAuthorization__factory;
|
|
210
|
+
EcdsaAuthorization__factory.bytecode = _bytecode;
|
|
211
|
+
EcdsaAuthorization__factory.abi = _abi;
|