@keep-network/tbtc-v2 1.8.0 → 1.8.2
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/Bridge.json +1998 -1972
- package/artifacts/Bridge_v2_Implementation.json +2817 -0
- package/artifacts/Deposit.json +7 -7
- package/artifacts/Redemption.json +95 -171
- package/build/contracts/GovernanceUtils.sol/GovernanceUtils.dbg.json +1 -1
- package/build/contracts/Timelock.sol/Timelock.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/BitcoinTx.sol/BitcoinTx.json +2 -2
- package/build/contracts/bridge/Bridge.sol/Bridge.dbg.json +1 -1
- package/build/contracts/bridge/Bridge.sol/Bridge.json +74 -48
- package/build/contracts/bridge/BridgeGovernance.sol/BridgeGovernance.dbg.json +1 -1
- package/build/contracts/bridge/BridgeGovernance.sol/BridgeGovernance.json +2 -2
- 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/BridgeState.sol/BridgeState.json +2 -2
- package/build/contracts/bridge/Deposit.sol/Deposit.dbg.json +1 -1
- package/build/contracts/bridge/Deposit.sol/Deposit.json +2 -2
- package/build/contracts/bridge/DepositSweep.sol/DepositSweep.dbg.json +1 -1
- package/build/contracts/bridge/DepositSweep.sol/DepositSweep.json +2 -2
- 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/Fraud.sol/Fraud.json +2 -2
- 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/MovingFunds.sol/MovingFunds.json +2 -2
- package/build/contracts/bridge/Redemption.sol/IRedemptionWatchtower.dbg.json +1 -1
- package/build/contracts/bridge/Redemption.sol/OutboundTx.dbg.json +1 -1
- package/build/contracts/bridge/Redemption.sol/OutboundTx.json +2 -2
- package/build/contracts/bridge/Redemption.sol/Redemption.dbg.json +1 -1
- package/build/contracts/bridge/Redemption.sol/Redemption.json +2 -2
- package/build/contracts/bridge/RedemptionWatchtower.sol/RedemptionWatchtower.dbg.json +1 -1
- package/build/contracts/bridge/RedemptionWatchtower.sol/RedemptionWatchtower.json +2 -2
- 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/WalletProposalValidator.sol/WalletProposalValidator.dbg.json +1 -1
- package/build/contracts/bridge/WalletProposalValidator.sol/WalletProposalValidator.json +2 -2
- package/build/contracts/bridge/Wallets.sol/Wallets.dbg.json +1 -1
- package/build/contracts/bridge/Wallets.sol/Wallets.json +2 -2
- package/build/contracts/cross-chain/AbstractL1BTCDepositor.sol/AbstractL1BTCDepositor.dbg.json +1 -1
- package/build/contracts/cross-chain/L2TBTC.sol/L2TBTC.dbg.json +1 -1
- package/build/contracts/cross-chain/starknet/StarkNetBitcoinDepositor.sol/StarkNetBitcoinDepositor.dbg.json +1 -1
- package/build/contracts/cross-chain/starknet/interfaces/IStarkGateBridge.sol/IStarkGateBridge.dbg.json +1 -1
- package/build/contracts/cross-chain/utils/Crosschain.sol/CrosschainUtils.dbg.json +1 -1
- package/build/contracts/cross-chain/wormhole/BTCDepositorWormhole.sol/BTCDepositorWormhole.dbg.json +1 -1
- package/build/contracts/cross-chain/wormhole/L1BTCDepositorWormhole.sol/L1BTCDepositorWormhole.dbg.json +1 -1
- package/build/contracts/cross-chain/wormhole/L2BTCDepositorWormhole.sol/L2BTCDepositorWormhole.dbg.json +1 -1
- package/build/contracts/cross-chain/wormhole/L2WormholeGateway.sol/L2WormholeGateway.dbg.json +1 -1
- package/build/contracts/cross-chain/wormhole/Wormhole.sol/IWormhole.dbg.json +1 -1
- package/build/contracts/cross-chain/wormhole/Wormhole.sol/IWormholeGateway.dbg.json +1 -1
- package/build/contracts/cross-chain/wormhole/Wormhole.sol/IWormholeReceiver.dbg.json +1 -1
- package/build/contracts/cross-chain/wormhole/Wormhole.sol/IWormholeRelayer.dbg.json +1 -1
- package/build/contracts/cross-chain/wormhole/Wormhole.sol/IWormholeTokenBridge.dbg.json +1 -1
- package/build/contracts/cross-chain/wormhole/Wormhole.sol/WormholeTypes.dbg.json +1 -1
- package/build/contracts/cross-chain/wormhole/Wormhole.sol/WormholeUtils.dbg.json +1 -1
- package/build/contracts/integrator/AbstractBTCDepositor.sol/AbstractBTCDepositor.dbg.json +1 -1
- package/build/contracts/integrator/IBridge.sol/IBridge.dbg.json +1 -1
- package/build/contracts/integrator/IBridge.sol/IBridgeTypes.dbg.json +1 -1
- package/build/contracts/integrator/ITBTCVault.sol/ITBTCVault.dbg.json +1 -1
- package/build/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.dbg.json +1 -1
- package/build/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.json +2 -2
- 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/test/BankStub.sol/BankStub.dbg.json +1 -1
- package/build/contracts/test/BridgeStub.sol/BridgeStub.dbg.json +1 -1
- package/build/contracts/test/BridgeStub.sol/BridgeStub.json +74 -48
- package/build/contracts/test/HeartbeatStub.sol/HeartbeatStub.dbg.json +1 -1
- package/build/contracts/test/LightRelayStub.sol/LightRelayStub.dbg.json +1 -1
- package/build/contracts/test/MockBridgeForStarkNet.sol/MockBridgeForStarkNet.dbg.json +1 -1
- package/build/contracts/test/MockStarkGateBridge.sol/MockStarkGateBridge.dbg.json +1 -1
- package/build/contracts/test/MockTBTCBridge.sol/MockTBTCBridge.dbg.json +1 -1
- package/build/contracts/test/MockTBTCBridgeWithSweep.sol/MockTBTCBridgeWithSweep.dbg.json +1 -1
- package/build/contracts/test/MockTBTCToken.sol/MockTBTCToken.dbg.json +1 -1
- package/build/contracts/test/MockTBTCVault.sol/MockTBTCVault.dbg.json +1 -1
- package/build/contracts/test/ReceiveApprovalStub.sol/ReceiveApprovalStub.dbg.json +1 -1
- package/build/contracts/test/ReentrancyAttacker.sol/ReentrancyAttacker.dbg.json +1 -1
- package/build/contracts/test/SepoliaLightRelay.sol/SepoliaLightRelay.dbg.json +1 -1
- package/build/contracts/test/SystemTestRelay.sol/SystemTestRelay.dbg.json +1 -1
- package/build/contracts/test/SystemTestRelay.sol/SystemTestRelay.json +2 -2
- package/build/contracts/test/TestBTCDepositor.sol/MockBridge.dbg.json +1 -1
- package/build/contracts/test/TestBTCDepositor.sol/MockTBTCVault.dbg.json +1 -1
- package/build/contracts/test/TestBTCDepositor.sol/TestBTCDepositor.dbg.json +1 -1
- package/build/contracts/test/TestBitcoinTx.sol/TestBitcoinTx.dbg.json +1 -1
- package/build/contracts/test/TestBitcoinTx.sol/TestBitcoinTx.json +2 -2
- package/build/contracts/test/TestERC20.sol/TestERC20.dbg.json +1 -1
- package/build/contracts/test/TestERC721.sol/TestERC721.dbg.json +1 -1
- package/build/contracts/test/TestEcdsaLib.sol/TestEcdsaLib.dbg.json +1 -1
- package/build/contracts/test/WormholeBridgeStub.sol/WormholeBridgeStub.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/build/contracts/vault/TBTCVault.sol/TBTCVault.json +2 -2
- package/contracts/bridge/Bridge.sol +34 -0
- package/contracts/bridge/Deposit.sol +7 -5
- package/deploy/80_upgrade_bridge_v2.ts +107 -54
- package/deploy/81_upgrade_bridge_v2_vault_fix.ts +160 -0
- package/export/artifacts/contracts/bridge/Bridge.sol/Bridge.json +4891 -4170
- package/export/artifacts/contracts/bridge/BridgeGovernance.sol/BridgeGovernance.json +207 -207
- package/export/artifacts/contracts/bridge/RedemptionWatchtower.sol/RedemptionWatchtower.json +104 -104
- package/export/artifacts/contracts/bridge/VendingMachine.sol/VendingMachine.json +67 -67
- package/export/artifacts/contracts/bridge/VendingMachineV2.sol/VendingMachineV2.json +24 -24
- package/export/artifacts/contracts/bridge/VendingMachineV3.sol/VendingMachineV3.json +26 -26
- package/export/artifacts/contracts/bridge/WalletProposalValidator.sol/WalletProposalValidator.json +72 -72
- package/export/artifacts/contracts/cross-chain/L2TBTC.sol/L2TBTC.json +40 -40
- package/export/artifacts/contracts/cross-chain/starknet/StarkNetBitcoinDepositor.sol/StarkNetBitcoinDepositor.json +3360 -3360
- package/export/artifacts/contracts/cross-chain/wormhole/BTCDepositorWormhole.sol/BTCDepositorWormhole.json +117 -117
- package/export/artifacts/contracts/cross-chain/wormhole/L1BTCDepositorWormhole.sol/L1BTCDepositorWormhole.json +140 -140
- package/export/artifacts/contracts/cross-chain/wormhole/L2BTCDepositorWormhole.sol/L2BTCDepositorWormhole.json +37 -37
- package/export/artifacts/contracts/cross-chain/wormhole/L2WormholeGateway.sol/L2WormholeGateway.json +51 -51
- package/export/artifacts/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.json +103 -103
- 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 +2 -2
- package/export/artifacts/contracts/test/BridgeStub.sol/BridgeStub.json +5130 -4414
- package/export/artifacts/contracts/test/HeartbeatStub.sol/HeartbeatStub.json +4 -4
- package/export/artifacts/contracts/test/LightRelayStub.sol/LightRelayStub.json +59 -59
- package/export/artifacts/contracts/test/MockBridgeForStarkNet.sol/MockBridgeForStarkNet.json +730 -730
- package/export/artifacts/contracts/test/MockStarkGateBridge.sol/MockStarkGateBridge.json +956 -956
- package/export/artifacts/contracts/test/MockTBTCBridge.sol/MockTBTCBridge.json +781 -781
- package/export/artifacts/contracts/test/MockTBTCBridgeWithSweep.sol/MockTBTCBridgeWithSweep.json +458 -458
- package/export/artifacts/contracts/test/MockTBTCToken.sol/MockTBTCToken.json +1273 -1273
- package/export/artifacts/contracts/test/MockTBTCVault.sol/MockTBTCVault.json +305 -305
- package/export/artifacts/contracts/test/ReceiveApprovalStub.sol/ReceiveApprovalStub.json +7 -7
- package/export/artifacts/contracts/test/ReentrancyAttacker.sol/ReentrancyAttacker.json +204 -204
- package/export/artifacts/contracts/test/SepoliaLightRelay.sol/SepoliaLightRelay.json +59 -59
- package/export/artifacts/contracts/test/SystemTestRelay.sol/SystemTestRelay.json +19 -19
- package/export/artifacts/contracts/test/TestBTCDepositor.sol/MockBridge.json +34 -34
- package/export/artifacts/contracts/test/TestBTCDepositor.sol/MockTBTCVault.json +20 -20
- package/export/artifacts/contracts/test/TestBTCDepositor.sol/TestBTCDepositor.json +52 -52
- package/export/artifacts/contracts/test/TestBitcoinTx.sol/TestBitcoinTx.json +124 -124
- package/export/artifacts/contracts/test/TestERC20.sol/TestERC20.json +6 -6
- package/export/artifacts/contracts/test/TestERC721.sol/TestERC721.json +8 -8
- package/export/artifacts/contracts/test/TestEcdsaLib.sol/TestEcdsaLib.json +4 -4
- package/export/artifacts/contracts/test/WormholeBridgeStub.sol/WormholeBridgeStub.json +37 -37
- 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 +144 -144
- package/export/deploy/80_upgrade_bridge_v2.js +127 -90
- package/export/deploy/81_upgrade_bridge_v2_vault_fix.js +211 -0
- package/export/typechain/AbstractBTCRedeemer.js +2 -0
- package/export/typechain/IBank.js +2 -0
- package/export/typechain/IL2WormholeGateway.js +2 -0
- package/export/typechain/INttManager.js +2 -0
- package/export/typechain/INttManagerWithExecutor.js +2 -0
- package/export/typechain/L1BTCDepositorNtt.js +2 -0
- package/export/typechain/L1BTCDepositorNttWithExecutor.js +2 -0
- package/export/typechain/L1BTCRedeemerWormhole.js +2 -0
- package/export/typechain/L2BTCRedeemerWormhole.js +2 -0
- package/export/typechain/MockBank.js +2 -0
- package/export/typechain/MockBridgeWithRebateStaking.js +2 -0
- package/export/typechain/MockL1BTCRedeemerWormhole.js +2 -0
- package/export/typechain/MockNttManager.js +2 -0
- package/export/typechain/MockNttManagerWithExecutor.js +2 -0
- package/export/typechain/NativeBTCDepositor.js +2 -0
- package/export/typechain/RebateStaking.js +2 -0
- package/export/typechain/TestBTCRedeemer.js +2 -0
- package/export/typechain/TestBTCUtilsHelper.js +2 -0
- package/export/typechain/TransceiverStructs.js +2 -0
- package/export/typechain/factories/AbstractBTCRedeemer__factory.js +204 -0
- package/export/typechain/factories/BridgeGovernance__factory.js +1 -1
- package/export/typechain/factories/BridgeState__factory.js +1 -1
- package/export/typechain/factories/BridgeStub__factory.js +27 -1
- package/export/typechain/factories/Bridge__factory.js +27 -1
- package/export/typechain/factories/DepositSweep__factory.js +1 -1
- package/export/typechain/factories/Deposit__factory.js +1 -1
- package/export/typechain/factories/Fraud__factory.js +1 -1
- package/export/typechain/factories/IBank__factory.js +138 -0
- package/export/typechain/factories/IL2WormholeGateway__factory.js +61 -0
- package/export/typechain/factories/INttManagerWithExecutor__factory.js +183 -0
- package/export/typechain/factories/INttManager__factory.js +51 -0
- package/export/typechain/factories/L1BTCDepositorNttWithExecutor__factory.js +1454 -0
- package/export/typechain/factories/L1BTCDepositorNtt__factory.js +920 -0
- package/export/typechain/factories/L1BTCRedeemerWormhole__factory.js +622 -0
- package/export/typechain/factories/L2BTCRedeemerWormhole__factory.js +348 -0
- package/export/typechain/factories/MaintainerProxy__factory.js +1 -1
- package/export/typechain/factories/MockBank__factory.js +248 -0
- package/export/typechain/factories/MockBridgeWithRebateStaking__factory.js +129 -0
- package/export/typechain/factories/MockL1BTCRedeemerWormhole__factory.js +638 -0
- package/export/typechain/factories/MockNttManagerWithExecutor__factory.js +423 -0
- package/export/typechain/factories/MockNttManager__factory.js +211 -0
- package/export/typechain/factories/MovingFunds__factory.js +1 -1
- package/export/typechain/factories/NativeBTCDepositor__factory.js +635 -0
- package/export/typechain/factories/RebateStaking__factory.js +720 -0
- package/export/typechain/factories/RedemptionWatchtower__factory.js +1 -1
- package/export/typechain/factories/Redemption__factory.js +1 -1
- package/export/typechain/factories/SystemTestRelay__factory.js +1 -1
- package/export/typechain/factories/TBTCVault__factory.js +1 -1
- package/export/typechain/factories/TestBTCRedeemer__factory.js +425 -0
- package/export/typechain/factories/TestBTCUtilsHelper__factory.js +109 -0
- package/export/typechain/factories/TestBitcoinTx__factory.js +1 -1
- package/export/typechain/factories/TransceiverStructs__factory.js +853 -0
- package/export/typechain/factories/WalletProposalValidator__factory.js +1 -1
- package/export/typechain/factories/Wallets__factory.js +1 -1
- package/export/typechain/index.js +40 -2
- package/export.json +40910 -0
- package/package.json +1 -1
|
@@ -0,0 +1,248 @@
|
|
|
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.MockBank__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
|
+
anonymous: false,
|
|
51
|
+
inputs: [
|
|
52
|
+
{
|
|
53
|
+
indexed: true,
|
|
54
|
+
internalType: "address",
|
|
55
|
+
name: "owner",
|
|
56
|
+
type: "address",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
indexed: true,
|
|
60
|
+
internalType: "address",
|
|
61
|
+
name: "spender",
|
|
62
|
+
type: "address",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
indexed: false,
|
|
66
|
+
internalType: "uint256",
|
|
67
|
+
name: "value",
|
|
68
|
+
type: "uint256",
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
name: "BalanceApproval",
|
|
72
|
+
type: "event",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
anonymous: false,
|
|
76
|
+
inputs: [
|
|
77
|
+
{
|
|
78
|
+
indexed: true,
|
|
79
|
+
internalType: "address",
|
|
80
|
+
name: "from",
|
|
81
|
+
type: "address",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
indexed: true,
|
|
85
|
+
internalType: "address",
|
|
86
|
+
name: "to",
|
|
87
|
+
type: "address",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
indexed: false,
|
|
91
|
+
internalType: "uint256",
|
|
92
|
+
name: "value",
|
|
93
|
+
type: "uint256",
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
name: "TransferBalance",
|
|
97
|
+
type: "event",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
inputs: [
|
|
101
|
+
{
|
|
102
|
+
internalType: "address",
|
|
103
|
+
name: "account",
|
|
104
|
+
type: "address",
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
name: "balanceAvailable",
|
|
108
|
+
outputs: [
|
|
109
|
+
{
|
|
110
|
+
internalType: "uint256",
|
|
111
|
+
name: "",
|
|
112
|
+
type: "uint256",
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
stateMutability: "view",
|
|
116
|
+
type: "function",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
inputs: [
|
|
120
|
+
{
|
|
121
|
+
internalType: "address",
|
|
122
|
+
name: "owner",
|
|
123
|
+
type: "address",
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
internalType: "address",
|
|
127
|
+
name: "spender",
|
|
128
|
+
type: "address",
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
name: "getAllowance",
|
|
132
|
+
outputs: [
|
|
133
|
+
{
|
|
134
|
+
internalType: "uint256",
|
|
135
|
+
name: "",
|
|
136
|
+
type: "uint256",
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
stateMutability: "view",
|
|
140
|
+
type: "function",
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
inputs: [
|
|
144
|
+
{
|
|
145
|
+
internalType: "address",
|
|
146
|
+
name: "spender",
|
|
147
|
+
type: "address",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
internalType: "uint256",
|
|
151
|
+
name: "amount",
|
|
152
|
+
type: "uint256",
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
name: "increaseBalanceAllowance",
|
|
156
|
+
outputs: [],
|
|
157
|
+
stateMutability: "nonpayable",
|
|
158
|
+
type: "function",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
inputs: [
|
|
162
|
+
{
|
|
163
|
+
internalType: "address",
|
|
164
|
+
name: "account",
|
|
165
|
+
type: "address",
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
internalType: "uint256",
|
|
169
|
+
name: "amount",
|
|
170
|
+
type: "uint256",
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
name: "setBalance",
|
|
174
|
+
outputs: [],
|
|
175
|
+
stateMutability: "nonpayable",
|
|
176
|
+
type: "function",
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
inputs: [
|
|
180
|
+
{
|
|
181
|
+
internalType: "address",
|
|
182
|
+
name: "sender",
|
|
183
|
+
type: "address",
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
internalType: "address",
|
|
187
|
+
name: "recipient",
|
|
188
|
+
type: "address",
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
internalType: "uint256",
|
|
192
|
+
name: "amount",
|
|
193
|
+
type: "uint256",
|
|
194
|
+
},
|
|
195
|
+
],
|
|
196
|
+
name: "transferBalanceFrom",
|
|
197
|
+
outputs: [
|
|
198
|
+
{
|
|
199
|
+
internalType: "bool",
|
|
200
|
+
name: "",
|
|
201
|
+
type: "bool",
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
stateMutability: "nonpayable",
|
|
205
|
+
type: "function",
|
|
206
|
+
},
|
|
207
|
+
];
|
|
208
|
+
var _bytecode = "0x608060405234801561001057600080fd5b506104c8806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80630af4187d1461005c5780635bfd99b9146100825780637c6db49c14610097578063ddd5f110146100ba578063e30443bc146100e3575b600080fd5b61006f61006a36600461039b565b61010d565b6040519081526020015b60405180910390f35b6100956100903660046103ce565b61013a565b005b6100aa6100a53660046103f8565b6101d0565b6040519015158152602001610079565b61006f6100c8366004610434565b6001600160a01b031660009081526020819052604090205490565b6100956100f13660046103ce565b6001600160a01b03909116600090815260208190526040902055565b6001600160a01b038083166000908152600160209081526040808320938516835292905220545b92915050565b3360009081526001602090815260408083206001600160a01b03861684529091528120805483929061016d90849061046c565b90915550503360008181526001602090815260408083206001600160a01b038716808552908352928190205490519081529192917f057a909a16ed5e7c36b4ad294bafef96b656415c0145b8273450411d6cf7dee4910160405180910390a35050565b6001600160a01b0383166000908152600160209081526040808320338452909152812054828110156102495760405162461bcd60e51b815260206004820181905260248201527f4d6f636b42616e6b3a20696e73756666696369656e7420616c6c6f77616e636560448201526064015b60405180910390fd5b6001600160a01b0385166000908152602081905260409020548311156102b15760405162461bcd60e51b815260206004820152601e60248201527f4d6f636b42616e6b3a20696e73756666696369656e742062616c616e636500006044820152606401610240565b6001600160a01b038516600090815260208190526040812080548592906102d990849061047f565b90915550506001600160a01b0384166000908152602081905260408120805485929061030690849061046c565b909155506103169050838261047f565b6001600160a01b03868116600081815260016020908152604080832033845282529182902094909455518681529187169290917f7c40e34e15c377e6d7c719a1bc3aac59e7b9e78f3242bd677c694b4d9cf1f7cb910160405180910390a3506001949350505050565b80356001600160a01b038116811461039657600080fd5b919050565b600080604083850312156103ae57600080fd5b6103b78361037f565b91506103c56020840161037f565b90509250929050565b600080604083850312156103e157600080fd5b6103ea8361037f565b946020939093013593505050565b60008060006060848603121561040d57600080fd5b6104168461037f565b92506104246020850161037f565b9150604084013590509250925092565b60006020828403121561044657600080fd5b61044f8261037f565b9392505050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561013457610134610456565b818103818111156101345761013461045656fea2646970667358221220e3b852b08e087f670eb4ad4cac732943ce60e1bf7b4ba49a01a3275f2f108f5e64736f6c63430008110033";
|
|
209
|
+
var isSuperArgs = function (xs) { return xs.length > 1; };
|
|
210
|
+
var MockBank__factory = /** @class */ (function (_super) {
|
|
211
|
+
__extends(MockBank__factory, _super);
|
|
212
|
+
function MockBank__factory() {
|
|
213
|
+
var args = [];
|
|
214
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
215
|
+
args[_i] = arguments[_i];
|
|
216
|
+
}
|
|
217
|
+
var _this = this;
|
|
218
|
+
if (isSuperArgs(args)) {
|
|
219
|
+
_this = _super.apply(this, __spreadArray([], __read(args), false)) || this;
|
|
220
|
+
}
|
|
221
|
+
else {
|
|
222
|
+
_this = _super.call(this, _abi, _bytecode, args[0]) || this;
|
|
223
|
+
}
|
|
224
|
+
return _this;
|
|
225
|
+
}
|
|
226
|
+
MockBank__factory.prototype.deploy = function (overrides) {
|
|
227
|
+
return _super.prototype.deploy.call(this, overrides || {});
|
|
228
|
+
};
|
|
229
|
+
MockBank__factory.prototype.getDeployTransaction = function (overrides) {
|
|
230
|
+
return _super.prototype.getDeployTransaction.call(this, overrides || {});
|
|
231
|
+
};
|
|
232
|
+
MockBank__factory.prototype.attach = function (address) {
|
|
233
|
+
return _super.prototype.attach.call(this, address);
|
|
234
|
+
};
|
|
235
|
+
MockBank__factory.prototype.connect = function (signer) {
|
|
236
|
+
return _super.prototype.connect.call(this, signer);
|
|
237
|
+
};
|
|
238
|
+
MockBank__factory.createInterface = function () {
|
|
239
|
+
return new ethers_1.utils.Interface(_abi);
|
|
240
|
+
};
|
|
241
|
+
MockBank__factory.connect = function (address, signerOrProvider) {
|
|
242
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
243
|
+
};
|
|
244
|
+
MockBank__factory.bytecode = _bytecode;
|
|
245
|
+
MockBank__factory.abi = _abi;
|
|
246
|
+
return MockBank__factory;
|
|
247
|
+
}(ethers_1.ContractFactory));
|
|
248
|
+
exports.MockBank__factory = MockBank__factory;
|
|
@@ -0,0 +1,129 @@
|
|
|
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.MockBridgeWithRebateStaking__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
|
+
anonymous: false,
|
|
51
|
+
inputs: [
|
|
52
|
+
{
|
|
53
|
+
indexed: false,
|
|
54
|
+
internalType: "address",
|
|
55
|
+
name: "rebateStaking",
|
|
56
|
+
type: "address",
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
name: "RebateStakingSet",
|
|
60
|
+
type: "event",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
inputs: [],
|
|
64
|
+
name: "rebateStaking",
|
|
65
|
+
outputs: [
|
|
66
|
+
{
|
|
67
|
+
internalType: "address",
|
|
68
|
+
name: "",
|
|
69
|
+
type: "address",
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
stateMutability: "view",
|
|
73
|
+
type: "function",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
inputs: [
|
|
77
|
+
{
|
|
78
|
+
internalType: "address",
|
|
79
|
+
name: "_rebateStaking",
|
|
80
|
+
type: "address",
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
name: "setRebateStaking",
|
|
84
|
+
outputs: [],
|
|
85
|
+
stateMutability: "nonpayable",
|
|
86
|
+
type: "function",
|
|
87
|
+
},
|
|
88
|
+
];
|
|
89
|
+
var _bytecode = "0x608060405234801561001057600080fd5b506101fc806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063997ab84d1461003b578063ca73c4621461006a575b600080fd5b60005461004e906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b61007d610078366004610196565b61007f565b005b6000546001600160a01b0316156100dd5760405162461bcd60e51b815260206004820152601a60248201527f526562617465207374616b696e6720616c72656164792073657400000000000060448201526064015b60405180910390fd5b6001600160a01b0381166101425760405162461bcd60e51b815260206004820152602660248201527f526562617465207374616b696e672061646472657373206d757374206e6f742060448201526506265203078360d41b60648201526084016100d4565b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527fd1d9d4e9f516cb983e81d2a124ec97cb8d4ff00637f2a7f3229eadbed84e2df69060200160405180910390a150565b6000602082840312156101a857600080fd5b81356001600160a01b03811681146101bf57600080fd5b939250505056fea2646970667358221220430356b32cabf96cee1bc1f465ed8f2a372f916c0b636ed915fa6ae43ddb3b3164736f6c63430008110033";
|
|
90
|
+
var isSuperArgs = function (xs) { return xs.length > 1; };
|
|
91
|
+
var MockBridgeWithRebateStaking__factory = /** @class */ (function (_super) {
|
|
92
|
+
__extends(MockBridgeWithRebateStaking__factory, _super);
|
|
93
|
+
function MockBridgeWithRebateStaking__factory() {
|
|
94
|
+
var args = [];
|
|
95
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
96
|
+
args[_i] = arguments[_i];
|
|
97
|
+
}
|
|
98
|
+
var _this = this;
|
|
99
|
+
if (isSuperArgs(args)) {
|
|
100
|
+
_this = _super.apply(this, __spreadArray([], __read(args), false)) || this;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
_this = _super.call(this, _abi, _bytecode, args[0]) || this;
|
|
104
|
+
}
|
|
105
|
+
return _this;
|
|
106
|
+
}
|
|
107
|
+
MockBridgeWithRebateStaking__factory.prototype.deploy = function (overrides) {
|
|
108
|
+
return _super.prototype.deploy.call(this, overrides || {});
|
|
109
|
+
};
|
|
110
|
+
MockBridgeWithRebateStaking__factory.prototype.getDeployTransaction = function (overrides) {
|
|
111
|
+
return _super.prototype.getDeployTransaction.call(this, overrides || {});
|
|
112
|
+
};
|
|
113
|
+
MockBridgeWithRebateStaking__factory.prototype.attach = function (address) {
|
|
114
|
+
return _super.prototype.attach.call(this, address);
|
|
115
|
+
};
|
|
116
|
+
MockBridgeWithRebateStaking__factory.prototype.connect = function (signer) {
|
|
117
|
+
return _super.prototype.connect.call(this, signer);
|
|
118
|
+
};
|
|
119
|
+
MockBridgeWithRebateStaking__factory.createInterface = function () {
|
|
120
|
+
return new ethers_1.utils.Interface(_abi);
|
|
121
|
+
};
|
|
122
|
+
MockBridgeWithRebateStaking__factory.connect = function (address, signerOrProvider) {
|
|
123
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
124
|
+
};
|
|
125
|
+
MockBridgeWithRebateStaking__factory.bytecode = _bytecode;
|
|
126
|
+
MockBridgeWithRebateStaking__factory.abi = _abi;
|
|
127
|
+
return MockBridgeWithRebateStaking__factory;
|
|
128
|
+
}(ethers_1.ContractFactory));
|
|
129
|
+
exports.MockBridgeWithRebateStaking__factory = MockBridgeWithRebateStaking__factory;
|