@keep-network/tbtc-v2 1.0.3-dev.3 → 1.1.0
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/artifacts/.chainId +1 -1
- package/artifacts/Bank.json +40 -50
- package/artifacts/Bridge.json +32 -449
- package/artifacts/BridgeGovernance.json +24 -24
- package/artifacts/BridgeGovernanceParameters.json +10 -10
- package/artifacts/Deposit.json +13 -13
- package/artifacts/DepositSweep.json +13 -13
- package/artifacts/DonationVault.json +17 -17
- package/artifacts/Fraud.json +14 -14
- package/artifacts/LightRelay.json +38 -38
- package/artifacts/MaintainerProxy.json +47 -47
- package/artifacts/MovingFunds.json +14 -14
- package/artifacts/Redemption.json +13 -13
- package/artifacts/TBTC.json +36 -37
- package/artifacts/TBTCVault.json +47 -47
- package/artifacts/VendingMachine.json +34 -35
- package/artifacts/VendingMachineV2.json +19 -19
- package/artifacts/VendingMachineV3.json +19 -19
- package/artifacts/Wallets.json +13 -13
- package/artifacts/solcInputs/7cc3eda3cb3ff2522d18b5e7b31ea228.json +102 -0
- package/artifacts/solcInputs/802132f7da69a8a4226cb9424480847b.json +218 -0
- package/artifacts/solcInputs/887fad6b16575ba42183543c324eeb0e.json +335 -0
- package/artifacts/solcInputs/{cc4433405642a987910ddb374547d19a.json → fccb130292c8c7cc958ab4fa31a3e180.json} +12 -15
- package/export/deploy/00_resolve_relay.js +83 -0
- package/export/deploy/01_deploy_tbtc_v2_token.js +70 -0
- package/export/deploy/02_deploy_vending_machine.js +84 -0
- package/export/deploy/03_transfer_vending_machine_roles.js +69 -0
- package/export/deploy/04_deploy_bank.js +73 -0
- package/export/deploy/05_deploy_bridge.js +178 -0
- package/export/{test/integration/utils/staking.js → deploy/06_deploy_tbtc_vault.js} +32 -35
- package/export/deploy/07_deploy_bridge_governance.js +87 -0
- package/export/deploy/08_deploy_maintainer_proxy.js +80 -0
- package/export/deploy/09_bank_update_bridge.js +63 -0
- package/export/deploy/10_authorize_spv_maintainer_in_bridge.js +61 -0
- package/export/deploy/11_transfer_bank_ownership.js +60 -0
- package/export/deploy/12_transfer_bridge_governance.js +63 -0
- package/export/deploy/13_transfer_bridge_governance_ownership.js +60 -0
- package/export/deploy/14_transfer_tbtc_vault_ownership.js +60 -0
- package/export/deploy/15_transfer_maintainer_proxy_ownership.js +60 -0
- package/export/deploy/16_initialize_wallet_owner.js +63 -0
- package/export/deploy/16_transfer_proxy_admin_ownership.js +73 -0
- package/export/deploy/17_authorize_maintainer_proxy_in_bridge.js +63 -0
- package/export/deploy/17_transfer_proxy_admin_ownership.js +73 -0
- package/export/deploy/18_authorize_maintainer_proxy_in_bridge.js +63 -0
- package/export/deploy/18_authorize_maintainer_proxy_in_reimbursement_pool.js +63 -0
- package/export/deploy/19_authorize_bridge_in_reimbursement_pool.js +63 -0
- package/export/deploy/19_authorize_maintainer_proxy_in_reimbursement_pool.js +63 -0
- package/export/deploy/20_authorize_bridge_in_reimbursement_pool.js +63 -0
- package/export/deploy/20_deploy_proxy_admin_with_deputy.js +80 -0
- package/export/deploy/21_transfer_reimbursement_pool_ownership.js +60 -0
- package/export/deploy/22_deploy_proxy_admin_with_deputy.js +80 -0
- package/export/deploy/24_transfer_maintainer_proxy_ownership.js +60 -0
- package/export/deploy/25_transfer_proxy_admin_ownership.js +73 -0
- package/export/deploy/26_authorize_maintainer_proxy_in_reimbursement_pool.js +70 -0
- package/export/deploy/27_authorize_bridge_in_reimbursement_pool.js +70 -0
- package/export/deploy/28_deploy_proxy_admin_with_deputy.js +80 -0
- package/export/typechain/RelayStub.js +2 -0
- package/export/typechain/TestRelay.js +2 -0
- package/export/typechain/factories/RelayStub__factory.js +546 -0
- package/export/typechain/factories/TestRelay__factory.js +168 -0
- package/export.json +566 -55
- package/package.json +5 -5
- package/artifacts/BLS.json +0 -223
- package/artifacts/BeaconAuthorization.json +0 -273
- package/artifacts/BeaconDkg.json +0 -241
- package/artifacts/BeaconDkgValidator.json +0 -501
- package/artifacts/BeaconInactivity.json +0 -151
- package/artifacts/BeaconSortitionPool.json +0 -1187
- package/artifacts/EcdsaDkgValidator.json +0 -517
- package/artifacts/EcdsaInactivity.json +0 -156
- package/artifacts/EcdsaSortitionPool.json +0 -1187
- package/artifacts/KeepRegistry.json +0 -99
- package/artifacts/KeepStake.json +0 -286
- package/artifacts/KeepToken.json +0 -711
- package/artifacts/KeepTokenStaking.json +0 -483
- package/artifacts/NuCypherStakingEscrow.json +0 -287
- package/artifacts/NuCypherToken.json +0 -711
- package/artifacts/RandomBeacon.json +0 -3271
- package/artifacts/RandomBeaconChaosnet.json +0 -252
- package/artifacts/RandomBeaconGovernance.json +0 -3499
- package/artifacts/ReimbursementPool.json +0 -509
- package/artifacts/T.json +0 -1148
- package/artifacts/TBTCToken.json +0 -738
- package/artifacts/TokenStaking.json +0 -2288
- package/artifacts/TokenholderGovernor.json +0 -1795
- package/artifacts/TokenholderTimelock.json +0 -1058
- package/artifacts/VendingMachineKeep.json +0 -400
- package/artifacts/VendingMachineNuCypher.json +0 -400
- package/artifacts/WalletRegistry.json +0 -1962
- package/artifacts/WalletRegistryGovernance.json +0 -2863
- package/export/artifacts/contracts/test/BankStub.sol/BankStub.json +0 -11975
- package/export/artifacts/contracts/test/BridgeStub.sol/BridgeStub.json +0 -51806
- package/export/artifacts/contracts/test/GoerliLightRelay.sol/GoerliLightRelay.json +0 -11988
- package/export/artifacts/contracts/test/HeartbeatStub.sol/HeartbeatStub.json +0 -822
- package/export/artifacts/contracts/test/LightRelayStub.sol/LightRelayStub.json +0 -12729
- package/export/artifacts/contracts/test/ReceiveApprovalStub.sol/ReceiveApprovalStub.json +0 -2160
- package/export/artifacts/contracts/test/SystemTestRelay.sol/SystemTestRelay.json +0 -3407
- package/export/artifacts/contracts/test/TestERC20.sol/TestERC20.json +0 -14263
- package/export/artifacts/contracts/test/TestERC721.sol/TestERC721.json +0 -10644
- package/export/artifacts/contracts/test/TestEcdsaLib.sol/TestEcdsaLib.json +0 -1160
- package/export/test/integration/data/bls.js +0 -12
- package/export/test/integration/data/integration.js +0 -133
- package/export/test/integration/utils/ecdsa-wallet-registry.js +0 -370
- package/export/test/integration/utils/random-beacon.js +0 -193
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
18
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
19
|
+
if (!m) return o;
|
|
20
|
+
var i = m.call(o), r, ar = [], e;
|
|
21
|
+
try {
|
|
22
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
23
|
+
}
|
|
24
|
+
catch (error) { e = { error: error }; }
|
|
25
|
+
finally {
|
|
26
|
+
try {
|
|
27
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
28
|
+
}
|
|
29
|
+
finally { if (e) throw e.error; }
|
|
30
|
+
}
|
|
31
|
+
return ar;
|
|
32
|
+
};
|
|
33
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
34
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
35
|
+
if (ar || !(i in from)) {
|
|
36
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
37
|
+
ar[i] = from[i];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
41
|
+
};
|
|
42
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.TestRelay__factory = void 0;
|
|
44
|
+
/* Autogenerated file. Do not edit manually. */
|
|
45
|
+
/* tslint:disable */
|
|
46
|
+
/* eslint-disable */
|
|
47
|
+
var ethers_1 = require("ethers");
|
|
48
|
+
var _abi = [
|
|
49
|
+
{
|
|
50
|
+
inputs: [],
|
|
51
|
+
name: "getCurrentEpochDifficulty",
|
|
52
|
+
outputs: [
|
|
53
|
+
{
|
|
54
|
+
internalType: "uint256",
|
|
55
|
+
name: "",
|
|
56
|
+
type: "uint256",
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
stateMutability: "view",
|
|
60
|
+
type: "function",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
inputs: [],
|
|
64
|
+
name: "getPrevEpochDifficulty",
|
|
65
|
+
outputs: [
|
|
66
|
+
{
|
|
67
|
+
internalType: "uint256",
|
|
68
|
+
name: "",
|
|
69
|
+
type: "uint256",
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
stateMutability: "view",
|
|
73
|
+
type: "function",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
inputs: [
|
|
77
|
+
{
|
|
78
|
+
internalType: "uint256",
|
|
79
|
+
name: "_difficulty",
|
|
80
|
+
type: "uint256",
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
name: "setCurrentEpochDifficulty",
|
|
84
|
+
outputs: [],
|
|
85
|
+
stateMutability: "nonpayable",
|
|
86
|
+
type: "function",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
inputs: [
|
|
90
|
+
{
|
|
91
|
+
internalType: "bytes",
|
|
92
|
+
name: "bitcoinHeaders",
|
|
93
|
+
type: "bytes",
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
name: "setCurrentEpochDifficultyFromHeaders",
|
|
97
|
+
outputs: [],
|
|
98
|
+
stateMutability: "nonpayable",
|
|
99
|
+
type: "function",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
inputs: [
|
|
103
|
+
{
|
|
104
|
+
internalType: "uint256",
|
|
105
|
+
name: "_difficulty",
|
|
106
|
+
type: "uint256",
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
name: "setPrevEpochDifficulty",
|
|
110
|
+
outputs: [],
|
|
111
|
+
stateMutability: "nonpayable",
|
|
112
|
+
type: "function",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
inputs: [
|
|
116
|
+
{
|
|
117
|
+
internalType: "bytes",
|
|
118
|
+
name: "bitcoinHeaders",
|
|
119
|
+
type: "bytes",
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
name: "setPrevEpochDifficultyFromHeaders",
|
|
123
|
+
outputs: [],
|
|
124
|
+
stateMutability: "nonpayable",
|
|
125
|
+
type: "function",
|
|
126
|
+
},
|
|
127
|
+
];
|
|
128
|
+
var _bytecode = "0x608060405234801561001057600080fd5b506104af806100206000396000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c80634308f6dc116100505780634308f6dc146100aa5780637d4046fb146100bd578063c3def248146100d057600080fd5b8063113764be146100775780632b97be241461008d5780633c5e875214610095575b600080fd5b6000545b60405190815260200160405180910390f35b60015461007b565b6100a86100a3366004610218565b600155565b005b6100a86100b8366004610247565b6100e3565b6100a86100cb366004610218565b600055565b6100a86100de366004610247565b6100fd565b60006100f66100f183610112565b610125565b6000555050565b600061010b6100f183610112565b6001555050565b600061011f82600061014d565b92915050565b600061011f7bffff0000000000000000000000000000000000000000000000000000836101f6565b60008061016561015e84604861030e565b8590610209565b60e81c905060008461017885604b61030e565b8151811061018857610188610321565b016020015160f81c905060006101bc83600060108262ffffff16901c8261ff001660108462ffffff16901b17179050919050565b62ffffff16905060006101d0600384610337565b60ff1690506101e181610100610434565b6101eb9083610440565b979650505050505050565b60006102028284610457565b9392505050565b60006102028383016020015190565b60006020828403121561022a57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561025957600080fd5b813567ffffffffffffffff8082111561027157600080fd5b818401915084601f83011261028557600080fd5b81358181111561029757610297610231565b604051601f8201601f19908116603f011681019083821181831017156102bf576102bf610231565b816040528281528760208487010111156102d857600080fd5b826020860160208301376000928101602001929092525095945050505050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561011f5761011f6102f8565b634e487b7160e01b600052603260045260246000fd5b60ff828116828216039081111561011f5761011f6102f8565b600181815b8085111561038b578160001904821115610371576103716102f8565b8085161561037e57918102915b93841c9390800290610355565b509250929050565b6000826103a25750600161011f565b816103af5750600061011f565b81600181146103c557600281146103cf576103eb565b600191505061011f565b60ff8411156103e0576103e06102f8565b50506001821b61011f565b5060208310610133831016604e8410600b841016171561040e575081810a61011f565b6104188383610350565b806000190482111561042c5761042c6102f8565b029392505050565b60006102028383610393565b808202811582820484141761011f5761011f6102f8565b60008261047457634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220cc8ac2c604f07de26e0cf114f5ef21743184b91cf2ae201189066b52eda809a064736f6c63430008110033";
|
|
129
|
+
var isSuperArgs = function (xs) { return xs.length > 1; };
|
|
130
|
+
var TestRelay__factory = /** @class */ (function (_super) {
|
|
131
|
+
__extends(TestRelay__factory, _super);
|
|
132
|
+
function TestRelay__factory() {
|
|
133
|
+
var args = [];
|
|
134
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
135
|
+
args[_i] = arguments[_i];
|
|
136
|
+
}
|
|
137
|
+
var _this = this;
|
|
138
|
+
if (isSuperArgs(args)) {
|
|
139
|
+
_this = _super.apply(this, __spreadArray([], __read(args), false)) || this;
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
_this = _super.call(this, _abi, _bytecode, args[0]) || this;
|
|
143
|
+
}
|
|
144
|
+
return _this;
|
|
145
|
+
}
|
|
146
|
+
TestRelay__factory.prototype.deploy = function (overrides) {
|
|
147
|
+
return _super.prototype.deploy.call(this, overrides || {});
|
|
148
|
+
};
|
|
149
|
+
TestRelay__factory.prototype.getDeployTransaction = function (overrides) {
|
|
150
|
+
return _super.prototype.getDeployTransaction.call(this, overrides || {});
|
|
151
|
+
};
|
|
152
|
+
TestRelay__factory.prototype.attach = function (address) {
|
|
153
|
+
return _super.prototype.attach.call(this, address);
|
|
154
|
+
};
|
|
155
|
+
TestRelay__factory.prototype.connect = function (signer) {
|
|
156
|
+
return _super.prototype.connect.call(this, signer);
|
|
157
|
+
};
|
|
158
|
+
TestRelay__factory.createInterface = function () {
|
|
159
|
+
return new ethers_1.utils.Interface(_abi);
|
|
160
|
+
};
|
|
161
|
+
TestRelay__factory.connect = function (address, signerOrProvider) {
|
|
162
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
163
|
+
};
|
|
164
|
+
TestRelay__factory.bytecode = _bytecode;
|
|
165
|
+
TestRelay__factory.abi = _abi;
|
|
166
|
+
return TestRelay__factory;
|
|
167
|
+
}(ethers_1.ContractFactory));
|
|
168
|
+
exports.TestRelay__factory = TestRelay__factory;
|