@keep-network/tbtc-v2 0.1.1-dev.120 → 0.1.1-dev.122
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/BLS.json +1 -1
- package/artifacts/Bank.json +11 -11
- package/artifacts/BeaconAuthorization.json +1 -1
- package/artifacts/BeaconDkg.json +1 -1
- package/artifacts/BeaconDkgValidator.json +1 -1
- package/artifacts/BeaconInactivity.json +1 -1
- package/artifacts/BeaconSortitionPool.json +3 -3
- package/artifacts/Bridge.json +32 -32
- package/artifacts/BridgeGovernance.json +16 -16
- package/artifacts/BridgeGovernanceParameters.json +6 -6
- package/artifacts/Deposit.json +6 -6
- package/artifacts/DepositSweep.json +6 -6
- package/artifacts/EcdsaDkgValidator.json +7 -7
- package/artifacts/EcdsaInactivity.json +6 -6
- package/artifacts/EcdsaSortitionPool.json +15 -15
- package/artifacts/Fraud.json +6 -6
- package/artifacts/KeepRegistry.json +1 -1
- package/artifacts/KeepStake.json +2 -2
- package/artifacts/KeepToken.json +2 -2
- package/artifacts/KeepTokenStaking.json +1 -1
- package/artifacts/LightRelay.json +11 -11
- package/artifacts/MaintainerProxy.json +12 -12
- package/artifacts/MovingFunds.json +6 -6
- package/artifacts/NuCypherStakingEscrow.json +1 -1
- package/artifacts/NuCypherToken.json +2 -2
- package/artifacts/RandomBeacon.json +73 -73
- package/artifacts/RandomBeaconChaosnet.json +297 -0
- package/artifacts/RandomBeaconGovernance.json +53 -53
- package/artifacts/Redemption.json +6 -6
- package/artifacts/ReimbursementPool.json +5 -5
- package/artifacts/T.json +2 -2
- package/artifacts/TBTC.json +11 -11
- package/artifacts/TBTCToken.json +11 -11
- package/artifacts/TBTCVault.json +14 -14
- package/artifacts/TokenStaking.json +1 -1
- package/artifacts/TokenholderGovernor.json +9 -9
- package/artifacts/TokenholderTimelock.json +8 -8
- package/artifacts/VendingMachine.json +12 -12
- package/artifacts/VendingMachineKeep.json +1 -1
- package/artifacts/VendingMachineNuCypher.json +1 -1
- package/artifacts/WalletRegistry.json +28 -28
- package/artifacts/WalletRegistryGovernance.json +12 -12
- package/artifacts/Wallets.json +6 -6
- package/deploy/06_disable_fraud_challenges.ts +45 -0
- package/deploy/07_disable_redemptions.ts +46 -0
- package/deploy/{06_deploy_tbtc_vault.ts → 08_deploy_tbtc_vault.ts} +0 -0
- package/deploy/{07_deploy_bridge_governance.ts → 09_deploy_bridge_governance.ts} +0 -0
- package/deploy/{08_deploy_maintainer_proxy.ts → 10_deploy_maintainer_proxy.ts} +0 -0
- package/deploy/{09_bank_update_bridge.ts → 11_bank_update_bridge.ts} +0 -0
- package/deploy/{10_authorize_spv_maintainer_in_bridge.ts → 12_authorize_spv_maintainer_in_bridge.ts} +0 -0
- package/deploy/{11_transfer_bank_ownership.ts → 13_transfer_bank_ownership.ts} +0 -0
- package/deploy/{12_transfer_bridge_governance.ts → 14_transfer_bridge_governance.ts} +0 -0
- package/deploy/{13_transfer_bridge_governance_ownership.ts → 15_transfer_bridge_governance_ownership.ts} +0 -0
- package/deploy/{14_transfer_tbtc_vault_ownership.ts → 16_transfer_tbtc_vault_ownership.ts} +0 -0
- package/deploy/{15_transfer_maintainer_proxy_ownership.ts → 17_transfer_maintainer_proxy_ownership.ts} +0 -0
- package/deploy/{16_transfer_proxy_admin_ownership.ts → 18_transfer_proxy_admin_ownership.ts} +0 -0
- package/deploy/{17_authorize_maintainer_proxy_in_bridge.ts → 19_authorize_maintainer_proxy_in_bridge.ts} +0 -0
- package/deploy/{18_authorize_maintainer_proxy_in_reimbursement_pool.ts → 20_authorize_maintainer_proxy_in_reimbursement_pool.ts} +0 -0
- package/deploy/{19_authorize_bridge_in_reimbursement_pool.ts → 21_authorize_bridge_in_reimbursement_pool.ts} +0 -0
- package/deploy/{20_deploy_proxy_admin_with_deputy.ts → 22_deploy_proxy_admin_with_deputy.ts} +0 -0
- package/export/deploy/06_disable_fraud_challenges.js +68 -0
- package/export/deploy/07_disable_redemptions.js +68 -0
- package/export/deploy/{06_deploy_tbtc_vault.js → 08_deploy_tbtc_vault.js} +0 -0
- package/export/deploy/{07_deploy_bridge_governance.js → 09_deploy_bridge_governance.js} +0 -0
- package/export/deploy/{08_deploy_maintainer_proxy.js → 10_deploy_maintainer_proxy.js} +0 -0
- package/export/deploy/{09_bank_update_bridge.js → 11_bank_update_bridge.js} +0 -0
- package/export/deploy/{10_authorize_spv_maintainer_in_bridge.js → 12_authorize_spv_maintainer_in_bridge.js} +0 -0
- package/export/deploy/{11_transfer_bank_ownership.js → 13_transfer_bank_ownership.js} +0 -0
- package/export/deploy/{12_transfer_bridge_governance.js → 14_transfer_bridge_governance.js} +0 -0
- package/export/deploy/{13_transfer_bridge_governance_ownership.js → 15_transfer_bridge_governance_ownership.js} +0 -0
- package/export/deploy/{14_transfer_tbtc_vault_ownership.js → 16_transfer_tbtc_vault_ownership.js} +0 -0
- package/export/deploy/{15_transfer_maintainer_proxy_ownership.js → 17_transfer_maintainer_proxy_ownership.js} +0 -0
- package/export/deploy/{16_transfer_proxy_admin_ownership.js → 18_transfer_proxy_admin_ownership.js} +0 -0
- package/export/deploy/{17_authorize_maintainer_proxy_in_bridge.js → 19_authorize_maintainer_proxy_in_bridge.js} +0 -0
- package/export/deploy/{18_authorize_maintainer_proxy_in_reimbursement_pool.js → 20_authorize_maintainer_proxy_in_reimbursement_pool.js} +0 -0
- package/export/deploy/{19_authorize_bridge_in_reimbursement_pool.js → 21_authorize_bridge_in_reimbursement_pool.js} +0 -0
- package/export/deploy/{20_deploy_proxy_admin_with_deputy.js → 22_deploy_proxy_admin_with_deputy.js} +0 -0
- package/package.json +2 -2
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/deploy/{20_deploy_proxy_admin_with_deputy.ts → 22_deploy_proxy_admin_with_deputy.ts}
RENAMED
|
File without changes
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
var func = function (hre) { return __awaiter(void 0, void 0, void 0, function () {
|
|
40
|
+
var deployments, ethers, getNamedAccounts, execute, read, deployer, fraudChallengeDepositAmount, fraudChallengeDefeatTimeout, fraudSlashingAmount, fraudParameters;
|
|
41
|
+
return __generator(this, function (_a) {
|
|
42
|
+
switch (_a.label) {
|
|
43
|
+
case 0:
|
|
44
|
+
deployments = hre.deployments, ethers = hre.ethers, getNamedAccounts = hre.getNamedAccounts;
|
|
45
|
+
execute = deployments.execute, read = deployments.read;
|
|
46
|
+
return [4 /*yield*/, getNamedAccounts()];
|
|
47
|
+
case 1:
|
|
48
|
+
deployer = (_a.sent()).deployer;
|
|
49
|
+
deployments.log("disabling fraud challenges in the Bridge");
|
|
50
|
+
fraudChallengeDepositAmount = ethers.BigNumber.from("79228162514264337593543950335");
|
|
51
|
+
fraudChallengeDefeatTimeout = ethers.BigNumber.from("4294967295");
|
|
52
|
+
fraudSlashingAmount = ethers.BigNumber.from("0");
|
|
53
|
+
return [4 /*yield*/, read("Bridge", "fraudParameters")];
|
|
54
|
+
case 2:
|
|
55
|
+
fraudParameters = _a.sent();
|
|
56
|
+
return [4 /*yield*/, execute("Bridge", { from: deployer, log: true, waitConfirmations: 1 }, "updateFraudParameters", fraudChallengeDepositAmount, fraudChallengeDefeatTimeout, fraudSlashingAmount, fraudParameters.fraudNotifierRewardMultiplier)];
|
|
57
|
+
case 3:
|
|
58
|
+
_a.sent();
|
|
59
|
+
return [2 /*return*/];
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}); };
|
|
63
|
+
exports.default = func;
|
|
64
|
+
func.tags = ["DisableFraudChallenges"];
|
|
65
|
+
func.dependencies = ["Bridge"];
|
|
66
|
+
func.skip = function (hre) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
67
|
+
return [2 /*return*/, hre.network.name !== "mainnet"];
|
|
68
|
+
}); }); };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
var func = function (hre) { return __awaiter(void 0, void 0, void 0, function () {
|
|
40
|
+
var deployments, ethers, getNamedAccounts, execute, read, deployer, redemptionDustThreshold, redemptionTimeout, redemptionTimeoutSlashingAmount, redemptionParameters;
|
|
41
|
+
return __generator(this, function (_a) {
|
|
42
|
+
switch (_a.label) {
|
|
43
|
+
case 0:
|
|
44
|
+
deployments = hre.deployments, ethers = hre.ethers, getNamedAccounts = hre.getNamedAccounts;
|
|
45
|
+
execute = deployments.execute, read = deployments.read;
|
|
46
|
+
return [4 /*yield*/, getNamedAccounts()];
|
|
47
|
+
case 1:
|
|
48
|
+
deployer = (_a.sent()).deployer;
|
|
49
|
+
deployments.log("disabling redemptions in the Bridge");
|
|
50
|
+
redemptionDustThreshold = ethers.BigNumber.from("18446744073709551615");
|
|
51
|
+
redemptionTimeout = ethers.BigNumber.from("4294967295");
|
|
52
|
+
redemptionTimeoutSlashingAmount = ethers.BigNumber.from("0");
|
|
53
|
+
return [4 /*yield*/, read("Bridge", "redemptionParameters")];
|
|
54
|
+
case 2:
|
|
55
|
+
redemptionParameters = _a.sent();
|
|
56
|
+
return [4 /*yield*/, execute("Bridge", { from: deployer, log: true, waitConfirmations: 1 }, "updateRedemptionParameters", redemptionDustThreshold, redemptionParameters.redemptionTreasuryFeeDivisor, redemptionParameters.redemptionTxMaxFee, redemptionParameters.redemptionTxMaxTotalFee, redemptionTimeout, redemptionTimeoutSlashingAmount, redemptionParameters.redemptionTimeoutNotifierRewardMultiplier)];
|
|
57
|
+
case 3:
|
|
58
|
+
_a.sent();
|
|
59
|
+
return [2 /*return*/];
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}); };
|
|
63
|
+
exports.default = func;
|
|
64
|
+
func.tags = ["DisableRedemptions"];
|
|
65
|
+
func.dependencies = ["Bridge"];
|
|
66
|
+
func.skip = function (hre) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
67
|
+
return [2 /*return*/, hre.network.name !== "mainnet"];
|
|
68
|
+
}); }); };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/export/deploy/{14_transfer_tbtc_vault_ownership.js → 16_transfer_tbtc_vault_ownership.js}
RENAMED
|
File without changes
|
|
File without changes
|
package/export/deploy/{16_transfer_proxy_admin_ownership.js → 18_transfer_proxy_admin_ownership.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/export/deploy/{20_deploy_proxy_admin_with_deputy.js → 22_deploy_proxy_admin_with_deputy.js}
RENAMED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keep-network/tbtc-v2",
|
|
3
|
-
"version": "0.1.1-dev.
|
|
3
|
+
"version": "0.1.1-dev.122+main.aefd8185857a1e58f5e9ac61ff27bd75779e9948",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"artifacts/",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@keep-network/bitcoin-spv-sol": "3.4.0-solc-0.8",
|
|
35
35
|
"@keep-network/ecdsa": "2.1.0-dev.2",
|
|
36
|
-
"@keep-network/random-beacon": "2.1.0-dev.
|
|
36
|
+
"@keep-network/random-beacon": "2.1.0-dev.3",
|
|
37
37
|
"@keep-network/tbtc": "1.1.2-dev.1",
|
|
38
38
|
"@openzeppelin/contracts": "^4.6.0",
|
|
39
39
|
"@openzeppelin/contracts-upgradeable": "^4.6.0",
|