@keep-network/tbtc-v2 1.5.0 → 1.5.1
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/build/contracts/GovernanceUtils.sol/GovernanceUtils.dbg.json +1 -1
- package/build/contracts/bank/Bank.sol/Bank.dbg.json +1 -1
- package/build/contracts/bank/IReceiveBalanceApproval.sol/IReceiveBalanceApproval.dbg.json +1 -1
- package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.dbg.json +1 -1
- package/build/contracts/bridge/Bridge.sol/Bridge.dbg.json +1 -1
- package/build/contracts/bridge/BridgeGovernanceParameters.sol/BridgeGovernanceParameters.dbg.json +1 -1
- package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
- package/build/contracts/bridge/Deposit.sol/Deposit.dbg.json +1 -1
- package/build/contracts/bridge/DepositSweep.sol/DepositSweep.dbg.json +1 -1
- package/build/contracts/bridge/EcdsaLib.sol/EcdsaLib.dbg.json +1 -1
- package/build/contracts/bridge/Fraud.sol/Fraud.dbg.json +1 -1
- package/build/contracts/bridge/Heartbeat.sol/Heartbeat.dbg.json +1 -1
- package/build/contracts/bridge/IRelay.sol/IRelay.dbg.json +1 -1
- package/build/contracts/bridge/MovingFunds.sol/MovingFunds.dbg.json +1 -1
- package/build/contracts/bridge/Redemption.sol/OutboundTx.dbg.json +1 -1
- package/build/contracts/bridge/Redemption.sol/Redemption.dbg.json +1 -1
- package/build/contracts/bridge/VendingMachine.sol/VendingMachine.dbg.json +1 -1
- package/build/contracts/bridge/VendingMachineV2.sol/VendingMachineV2.dbg.json +1 -1
- package/build/contracts/bridge/VendingMachineV3.sol/VendingMachineV3.dbg.json +1 -1
- package/build/contracts/bridge/WalletCoordinator.sol/WalletCoordinator.dbg.json +1 -1
- package/build/contracts/bridge/Wallets.sol/Wallets.dbg.json +1 -1
- package/build/contracts/l2/L2TBTC.sol/L2TBTC.dbg.json +1 -1
- package/build/contracts/l2/L2WormholeGateway.sol/IWormholeTokenBridge.dbg.json +1 -1
- package/build/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.dbg.json +1 -1
- package/build/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.json +2 -15
- package/build/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.dbg.json +1 -1
- package/build/contracts/relay/LightRelay.sol/ILightRelay.dbg.json +1 -1
- package/build/contracts/relay/LightRelay.sol/LightRelay.dbg.json +1 -1
- package/build/contracts/relay/LightRelay.sol/RelayUtils.dbg.json +1 -1
- package/build/contracts/relay/LightRelayMaintainerProxy.sol/LightRelayMaintainerProxy.dbg.json +1 -1
- package/build/contracts/token/TBTC.sol/TBTC.dbg.json +1 -1
- package/build/contracts/vault/DonationVault.sol/DonationVault.dbg.json +1 -1
- package/build/contracts/vault/IVault.sol/IVault.dbg.json +1 -1
- package/build/contracts/vault/TBTCOptimisticMinting.sol/TBTCOptimisticMinting.dbg.json +1 -1
- package/build/contracts/vault/TBTCVault.sol/TBTCVault.dbg.json +1 -1
- package/contracts/l2/L2WormholeGateway.sol +7 -27
- package/export/artifacts/contracts/bridge/VendingMachine.sol/VendingMachine.json +6 -6
- package/export/artifacts/contracts/bridge/VendingMachineV2.sol/VendingMachineV2.json +6 -6
- package/export/artifacts/contracts/bridge/VendingMachineV3.sol/VendingMachineV3.json +6 -6
- package/export/artifacts/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.json +3030 -3498
- package/export/artifacts/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.json +88 -88
- package/export/artifacts/contracts/relay/LightRelay.sol/LightRelay.json +57 -57
- package/export/artifacts/contracts/relay/LightRelayMaintainerProxy.sol/LightRelayMaintainerProxy.json +31 -31
- package/export/artifacts/contracts/test/BankStub.sol/BankStub.json +11975 -0
- package/export/artifacts/contracts/test/BridgeStub.sol/BridgeStub.json +51806 -0
- package/export/artifacts/contracts/test/GoerliLightRelay.sol/GoerliLightRelay.json +12024 -0
- package/export/artifacts/contracts/test/HeartbeatStub.sol/HeartbeatStub.json +822 -0
- package/export/artifacts/contracts/test/LightRelayStub.sol/LightRelayStub.json +12729 -0
- package/export/artifacts/contracts/test/ReceiveApprovalStub.sol/ReceiveApprovalStub.json +2160 -0
- package/export/artifacts/contracts/test/SystemTestRelay.sol/SystemTestRelay.json +3407 -0
- package/export/artifacts/contracts/test/TestERC20.sol/TestERC20.json +14263 -0
- package/export/artifacts/contracts/test/TestERC721.sol/TestERC721.json +10644 -0
- package/export/artifacts/contracts/test/TestEcdsaLib.sol/TestEcdsaLib.json +1160 -0
- package/export/artifacts/contracts/test/WormholeBridgeStub.sol/WormholeBridgeStub.json +8665 -0
- package/export/artifacts/contracts/token/TBTC.sol/TBTC.json +2 -2
- package/export/artifacts/contracts/vault/DonationVault.sol/DonationVault.json +11 -11
- package/export/artifacts/contracts/vault/TBTCVault.sol/TBTCVault.json +135 -135
- package/export/test/integration/data/bls.js +12 -0
- package/export/test/integration/data/integration.js +133 -0
- package/export/test/integration/utils/ecdsa-wallet-registry.js +370 -0
- package/export/test/integration/utils/random-beacon.js +193 -0
- package/export/{deploy/08_deploy_maintainer_proxy.js → test/integration/utils/staking.js} +35 -32
- package/export/typechain/factories/L2WormholeGateway__factory.js +1 -14
- package/export/typechain/factories/WormholeBridgeStub__factory.js +1 -1
- package/package.json +1 -1
- package/export/deploy/00_resolve_relay.js +0 -83
- package/export/deploy/01_deploy_tbtc_v2_token.js +0 -70
- package/export/deploy/02_deploy_vending_machine.js +0 -84
- package/export/deploy/03_transfer_vending_machine_roles.js +0 -69
- package/export/deploy/04_deploy_bank.js +0 -73
- package/export/deploy/05_deploy_bridge.js +0 -178
- package/export/deploy/06_deploy_tbtc_vault.js +0 -80
- package/export/deploy/07_deploy_bridge_governance.js +0 -87
- package/export/deploy/09_bank_update_bridge.js +0 -63
- package/export/deploy/10_authorize_spv_maintainer_in_bridge.js +0 -61
- package/export/deploy/11_transfer_bank_ownership.js +0 -60
- package/export/deploy/12_transfer_bridge_governance.js +0 -63
- package/export/deploy/13_transfer_bridge_governance_ownership.js +0 -60
- package/export/deploy/14_transfer_tbtc_vault_ownership.js +0 -60
- package/export/deploy/15_transfer_maintainer_proxy_ownership.js +0 -60
- package/export/deploy/16_initialize_wallet_owner.js +0 -63
- package/export/deploy/16_transfer_proxy_admin_ownership.js +0 -73
- package/export/deploy/17_authorize_maintainer_proxy_in_bridge.js +0 -63
- package/export/deploy/17_transfer_proxy_admin_ownership.js +0 -73
- package/export/deploy/18_authorize_maintainer_proxy_in_bridge.js +0 -63
- package/export/deploy/18_authorize_maintainer_proxy_in_reimbursement_pool.js +0 -63
- package/export/deploy/19_authorize_bridge_in_reimbursement_pool.js +0 -63
- package/export/deploy/19_authorize_maintainer_proxy_in_reimbursement_pool.js +0 -63
- package/export/deploy/20_authorize_bridge_in_reimbursement_pool.js +0 -63
- package/export/deploy/20_deploy_proxy_admin_with_deputy.js +0 -80
- package/export/deploy/21_transfer_reimbursement_pool_ownership.js +0 -60
- package/export/deploy/22_deploy_proxy_admin_with_deputy.js +0 -80
- package/export/deploy/24_transfer_maintainer_proxy_ownership.js +0 -60
- package/export/deploy/25_transfer_proxy_admin_ownership.js +0 -73
- package/export/deploy/26_authorize_maintainer_proxy_in_reimbursement_pool.js +0 -70
- package/export/deploy/27_authorize_bridge_in_reimbursement_pool.js +0 -70
- package/export/deploy/28_deploy_proxy_admin_with_deputy.js +0 -80
- package/export/deploy/35_transfer_wallet_coordinator_ownership.js +0 -60
- package/export/deploy/36_deploy_light_relay_maintainer_proxy.js +0 -86
- package/export/deploy/37_authorize_maintainer_in_light_relay_maintainer_proxy.js +0 -65
- package/export/deploy/38_transfer_light_relay_maintainer_proxy_ownership.js +0 -60
- package/export/deploy/39_authorize_light_relay_maintainer_proxy_in_reimbursement_pool.js +0 -70
- package/export/deploy/40_authorize_light_relay_maintainer_proxy_in_light_relay.js +0 -66
- package/export/typechain/RelayStub.js +0 -2
- package/export/typechain/TestRelay.js +0 -2
- package/export/typechain/factories/RelayStub__factory.js +0 -546
- package/export/typechain/factories/TestRelay__factory.js +0 -168
|
@@ -1,168 +0,0 @@
|
|
|
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;
|