@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,853 @@
|
|
|
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.TransceiverStructs__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
|
+
{
|
|
52
|
+
internalType: "bytes4",
|
|
53
|
+
name: "prefix",
|
|
54
|
+
type: "bytes4",
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
name: "IncorrectPrefix",
|
|
58
|
+
type: "error",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
inputs: [
|
|
62
|
+
{
|
|
63
|
+
internalType: "uint256",
|
|
64
|
+
name: "providedIndex",
|
|
65
|
+
type: "uint256",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
internalType: "uint256",
|
|
69
|
+
name: "numTransceivers",
|
|
70
|
+
type: "uint256",
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
name: "InvalidInstructionIndex",
|
|
74
|
+
type: "error",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
inputs: [
|
|
78
|
+
{
|
|
79
|
+
internalType: "uint256",
|
|
80
|
+
name: "size",
|
|
81
|
+
type: "uint256",
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
name: "PayloadTooLong",
|
|
85
|
+
type: "error",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
inputs: [
|
|
89
|
+
{
|
|
90
|
+
internalType: "uint256",
|
|
91
|
+
name: "lastIndex",
|
|
92
|
+
type: "uint256",
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
internalType: "uint256",
|
|
96
|
+
name: "instructionIndex",
|
|
97
|
+
type: "uint256",
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
name: "UnorderedInstructions",
|
|
101
|
+
type: "error",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
inputs: [
|
|
105
|
+
{
|
|
106
|
+
internalType: "bytes4",
|
|
107
|
+
name: "prefix",
|
|
108
|
+
type: "bytes4",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
internalType: "bytes32",
|
|
112
|
+
name: "sourceNttManagerAddress",
|
|
113
|
+
type: "bytes32",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
internalType: "bytes32",
|
|
117
|
+
name: "recipientNttManagerAddress",
|
|
118
|
+
type: "bytes32",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
internalType: "bytes",
|
|
122
|
+
name: "nttManagerMessage",
|
|
123
|
+
type: "bytes",
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
internalType: "bytes",
|
|
127
|
+
name: "transceiverPayload",
|
|
128
|
+
type: "bytes",
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
name: "buildAndEncodeTransceiverMessage",
|
|
132
|
+
outputs: [
|
|
133
|
+
{
|
|
134
|
+
components: [
|
|
135
|
+
{
|
|
136
|
+
internalType: "bytes32",
|
|
137
|
+
name: "sourceNttManagerAddress",
|
|
138
|
+
type: "bytes32",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
internalType: "bytes32",
|
|
142
|
+
name: "recipientNttManagerAddress",
|
|
143
|
+
type: "bytes32",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
internalType: "bytes",
|
|
147
|
+
name: "nttManagerPayload",
|
|
148
|
+
type: "bytes",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
internalType: "bytes",
|
|
152
|
+
name: "transceiverPayload",
|
|
153
|
+
type: "bytes",
|
|
154
|
+
},
|
|
155
|
+
],
|
|
156
|
+
internalType: "struct TransceiverStructs.TransceiverMessage",
|
|
157
|
+
name: "",
|
|
158
|
+
type: "tuple",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
internalType: "bytes",
|
|
162
|
+
name: "",
|
|
163
|
+
type: "bytes",
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
stateMutability: "pure",
|
|
167
|
+
type: "function",
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
inputs: [
|
|
171
|
+
{
|
|
172
|
+
internalType: "bytes",
|
|
173
|
+
name: "encoded",
|
|
174
|
+
type: "bytes",
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
name: "decodeTransceiverInit",
|
|
178
|
+
outputs: [
|
|
179
|
+
{
|
|
180
|
+
components: [
|
|
181
|
+
{
|
|
182
|
+
internalType: "bytes4",
|
|
183
|
+
name: "transceiverIdentifier",
|
|
184
|
+
type: "bytes4",
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
internalType: "bytes32",
|
|
188
|
+
name: "nttManagerAddress",
|
|
189
|
+
type: "bytes32",
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
internalType: "uint8",
|
|
193
|
+
name: "nttManagerMode",
|
|
194
|
+
type: "uint8",
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
internalType: "bytes32",
|
|
198
|
+
name: "tokenAddress",
|
|
199
|
+
type: "bytes32",
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
internalType: "uint8",
|
|
203
|
+
name: "tokenDecimals",
|
|
204
|
+
type: "uint8",
|
|
205
|
+
},
|
|
206
|
+
],
|
|
207
|
+
internalType: "struct TransceiverStructs.TransceiverInit",
|
|
208
|
+
name: "init",
|
|
209
|
+
type: "tuple",
|
|
210
|
+
},
|
|
211
|
+
],
|
|
212
|
+
stateMutability: "pure",
|
|
213
|
+
type: "function",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
inputs: [
|
|
217
|
+
{
|
|
218
|
+
internalType: "bytes",
|
|
219
|
+
name: "encoded",
|
|
220
|
+
type: "bytes",
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
name: "decodeTransceiverRegistration",
|
|
224
|
+
outputs: [
|
|
225
|
+
{
|
|
226
|
+
components: [
|
|
227
|
+
{
|
|
228
|
+
internalType: "bytes4",
|
|
229
|
+
name: "transceiverIdentifier",
|
|
230
|
+
type: "bytes4",
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
internalType: "uint16",
|
|
234
|
+
name: "transceiverChainId",
|
|
235
|
+
type: "uint16",
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
internalType: "bytes32",
|
|
239
|
+
name: "transceiverAddress",
|
|
240
|
+
type: "bytes32",
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
internalType: "struct TransceiverStructs.TransceiverRegistration",
|
|
244
|
+
name: "registration",
|
|
245
|
+
type: "tuple",
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
stateMutability: "pure",
|
|
249
|
+
type: "function",
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
inputs: [
|
|
253
|
+
{
|
|
254
|
+
components: [
|
|
255
|
+
{
|
|
256
|
+
internalType: "TrimmedAmount",
|
|
257
|
+
name: "amount",
|
|
258
|
+
type: "uint256",
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
internalType: "bytes32",
|
|
262
|
+
name: "sourceToken",
|
|
263
|
+
type: "bytes32",
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
internalType: "bytes32",
|
|
267
|
+
name: "to",
|
|
268
|
+
type: "bytes32",
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
internalType: "uint16",
|
|
272
|
+
name: "toChain",
|
|
273
|
+
type: "uint16",
|
|
274
|
+
},
|
|
275
|
+
],
|
|
276
|
+
internalType: "struct TransceiverStructs.NativeTokenTransfer",
|
|
277
|
+
name: "m",
|
|
278
|
+
type: "tuple",
|
|
279
|
+
},
|
|
280
|
+
],
|
|
281
|
+
name: "encodeNativeTokenTransfer",
|
|
282
|
+
outputs: [
|
|
283
|
+
{
|
|
284
|
+
internalType: "bytes",
|
|
285
|
+
name: "encoded",
|
|
286
|
+
type: "bytes",
|
|
287
|
+
},
|
|
288
|
+
],
|
|
289
|
+
stateMutability: "pure",
|
|
290
|
+
type: "function",
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
inputs: [
|
|
294
|
+
{
|
|
295
|
+
components: [
|
|
296
|
+
{
|
|
297
|
+
internalType: "bytes32",
|
|
298
|
+
name: "id",
|
|
299
|
+
type: "bytes32",
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
internalType: "bytes32",
|
|
303
|
+
name: "sender",
|
|
304
|
+
type: "bytes32",
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
internalType: "bytes",
|
|
308
|
+
name: "payload",
|
|
309
|
+
type: "bytes",
|
|
310
|
+
},
|
|
311
|
+
],
|
|
312
|
+
internalType: "struct TransceiverStructs.NttManagerMessage",
|
|
313
|
+
name: "m",
|
|
314
|
+
type: "tuple",
|
|
315
|
+
},
|
|
316
|
+
],
|
|
317
|
+
name: "encodeNttManagerMessage",
|
|
318
|
+
outputs: [
|
|
319
|
+
{
|
|
320
|
+
internalType: "bytes",
|
|
321
|
+
name: "encoded",
|
|
322
|
+
type: "bytes",
|
|
323
|
+
},
|
|
324
|
+
],
|
|
325
|
+
stateMutability: "pure",
|
|
326
|
+
type: "function",
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
inputs: [
|
|
330
|
+
{
|
|
331
|
+
components: [
|
|
332
|
+
{
|
|
333
|
+
internalType: "bytes4",
|
|
334
|
+
name: "transceiverIdentifier",
|
|
335
|
+
type: "bytes4",
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
internalType: "bytes32",
|
|
339
|
+
name: "nttManagerAddress",
|
|
340
|
+
type: "bytes32",
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
internalType: "uint8",
|
|
344
|
+
name: "nttManagerMode",
|
|
345
|
+
type: "uint8",
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
internalType: "bytes32",
|
|
349
|
+
name: "tokenAddress",
|
|
350
|
+
type: "bytes32",
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
internalType: "uint8",
|
|
354
|
+
name: "tokenDecimals",
|
|
355
|
+
type: "uint8",
|
|
356
|
+
},
|
|
357
|
+
],
|
|
358
|
+
internalType: "struct TransceiverStructs.TransceiverInit",
|
|
359
|
+
name: "init",
|
|
360
|
+
type: "tuple",
|
|
361
|
+
},
|
|
362
|
+
],
|
|
363
|
+
name: "encodeTransceiverInit",
|
|
364
|
+
outputs: [
|
|
365
|
+
{
|
|
366
|
+
internalType: "bytes",
|
|
367
|
+
name: "",
|
|
368
|
+
type: "bytes",
|
|
369
|
+
},
|
|
370
|
+
],
|
|
371
|
+
stateMutability: "pure",
|
|
372
|
+
type: "function",
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
inputs: [
|
|
376
|
+
{
|
|
377
|
+
components: [
|
|
378
|
+
{
|
|
379
|
+
internalType: "uint8",
|
|
380
|
+
name: "index",
|
|
381
|
+
type: "uint8",
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
internalType: "bytes",
|
|
385
|
+
name: "payload",
|
|
386
|
+
type: "bytes",
|
|
387
|
+
},
|
|
388
|
+
],
|
|
389
|
+
internalType: "struct TransceiverStructs.TransceiverInstruction",
|
|
390
|
+
name: "instruction",
|
|
391
|
+
type: "tuple",
|
|
392
|
+
},
|
|
393
|
+
],
|
|
394
|
+
name: "encodeTransceiverInstruction",
|
|
395
|
+
outputs: [
|
|
396
|
+
{
|
|
397
|
+
internalType: "bytes",
|
|
398
|
+
name: "",
|
|
399
|
+
type: "bytes",
|
|
400
|
+
},
|
|
401
|
+
],
|
|
402
|
+
stateMutability: "pure",
|
|
403
|
+
type: "function",
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
inputs: [
|
|
407
|
+
{
|
|
408
|
+
components: [
|
|
409
|
+
{
|
|
410
|
+
internalType: "uint8",
|
|
411
|
+
name: "index",
|
|
412
|
+
type: "uint8",
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
internalType: "bytes",
|
|
416
|
+
name: "payload",
|
|
417
|
+
type: "bytes",
|
|
418
|
+
},
|
|
419
|
+
],
|
|
420
|
+
internalType: "struct TransceiverStructs.TransceiverInstruction[]",
|
|
421
|
+
name: "instructions",
|
|
422
|
+
type: "tuple[]",
|
|
423
|
+
},
|
|
424
|
+
],
|
|
425
|
+
name: "encodeTransceiverInstructions",
|
|
426
|
+
outputs: [
|
|
427
|
+
{
|
|
428
|
+
internalType: "bytes",
|
|
429
|
+
name: "",
|
|
430
|
+
type: "bytes",
|
|
431
|
+
},
|
|
432
|
+
],
|
|
433
|
+
stateMutability: "pure",
|
|
434
|
+
type: "function",
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
inputs: [
|
|
438
|
+
{
|
|
439
|
+
internalType: "bytes4",
|
|
440
|
+
name: "prefix",
|
|
441
|
+
type: "bytes4",
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
components: [
|
|
445
|
+
{
|
|
446
|
+
internalType: "bytes32",
|
|
447
|
+
name: "sourceNttManagerAddress",
|
|
448
|
+
type: "bytes32",
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
internalType: "bytes32",
|
|
452
|
+
name: "recipientNttManagerAddress",
|
|
453
|
+
type: "bytes32",
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
internalType: "bytes",
|
|
457
|
+
name: "nttManagerPayload",
|
|
458
|
+
type: "bytes",
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
internalType: "bytes",
|
|
462
|
+
name: "transceiverPayload",
|
|
463
|
+
type: "bytes",
|
|
464
|
+
},
|
|
465
|
+
],
|
|
466
|
+
internalType: "struct TransceiverStructs.TransceiverMessage",
|
|
467
|
+
name: "m",
|
|
468
|
+
type: "tuple",
|
|
469
|
+
},
|
|
470
|
+
],
|
|
471
|
+
name: "encodeTransceiverMessage",
|
|
472
|
+
outputs: [
|
|
473
|
+
{
|
|
474
|
+
internalType: "bytes",
|
|
475
|
+
name: "encoded",
|
|
476
|
+
type: "bytes",
|
|
477
|
+
},
|
|
478
|
+
],
|
|
479
|
+
stateMutability: "pure",
|
|
480
|
+
type: "function",
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
inputs: [
|
|
484
|
+
{
|
|
485
|
+
components: [
|
|
486
|
+
{
|
|
487
|
+
internalType: "bytes4",
|
|
488
|
+
name: "transceiverIdentifier",
|
|
489
|
+
type: "bytes4",
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
internalType: "uint16",
|
|
493
|
+
name: "transceiverChainId",
|
|
494
|
+
type: "uint16",
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
internalType: "bytes32",
|
|
498
|
+
name: "transceiverAddress",
|
|
499
|
+
type: "bytes32",
|
|
500
|
+
},
|
|
501
|
+
],
|
|
502
|
+
internalType: "struct TransceiverStructs.TransceiverRegistration",
|
|
503
|
+
name: "registration",
|
|
504
|
+
type: "tuple",
|
|
505
|
+
},
|
|
506
|
+
],
|
|
507
|
+
name: "encodeTransceiverRegistration",
|
|
508
|
+
outputs: [
|
|
509
|
+
{
|
|
510
|
+
internalType: "bytes",
|
|
511
|
+
name: "",
|
|
512
|
+
type: "bytes",
|
|
513
|
+
},
|
|
514
|
+
],
|
|
515
|
+
stateMutability: "pure",
|
|
516
|
+
type: "function",
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
inputs: [
|
|
520
|
+
{
|
|
521
|
+
internalType: "uint16",
|
|
522
|
+
name: "sourceChainId",
|
|
523
|
+
type: "uint16",
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
components: [
|
|
527
|
+
{
|
|
528
|
+
internalType: "bytes32",
|
|
529
|
+
name: "id",
|
|
530
|
+
type: "bytes32",
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
internalType: "bytes32",
|
|
534
|
+
name: "sender",
|
|
535
|
+
type: "bytes32",
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
internalType: "bytes",
|
|
539
|
+
name: "payload",
|
|
540
|
+
type: "bytes",
|
|
541
|
+
},
|
|
542
|
+
],
|
|
543
|
+
internalType: "struct TransceiverStructs.NttManagerMessage",
|
|
544
|
+
name: "m",
|
|
545
|
+
type: "tuple",
|
|
546
|
+
},
|
|
547
|
+
],
|
|
548
|
+
name: "nttManagerMessageDigest",
|
|
549
|
+
outputs: [
|
|
550
|
+
{
|
|
551
|
+
internalType: "bytes32",
|
|
552
|
+
name: "",
|
|
553
|
+
type: "bytes32",
|
|
554
|
+
},
|
|
555
|
+
],
|
|
556
|
+
stateMutability: "pure",
|
|
557
|
+
type: "function",
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
inputs: [
|
|
561
|
+
{
|
|
562
|
+
internalType: "bytes",
|
|
563
|
+
name: "encoded",
|
|
564
|
+
type: "bytes",
|
|
565
|
+
},
|
|
566
|
+
],
|
|
567
|
+
name: "parseNativeTokenTransfer",
|
|
568
|
+
outputs: [
|
|
569
|
+
{
|
|
570
|
+
components: [
|
|
571
|
+
{
|
|
572
|
+
internalType: "TrimmedAmount",
|
|
573
|
+
name: "amount",
|
|
574
|
+
type: "uint256",
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
internalType: "bytes32",
|
|
578
|
+
name: "sourceToken",
|
|
579
|
+
type: "bytes32",
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
internalType: "bytes32",
|
|
583
|
+
name: "to",
|
|
584
|
+
type: "bytes32",
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
internalType: "uint16",
|
|
588
|
+
name: "toChain",
|
|
589
|
+
type: "uint16",
|
|
590
|
+
},
|
|
591
|
+
],
|
|
592
|
+
internalType: "struct TransceiverStructs.NativeTokenTransfer",
|
|
593
|
+
name: "nativeTokenTransfer",
|
|
594
|
+
type: "tuple",
|
|
595
|
+
},
|
|
596
|
+
],
|
|
597
|
+
stateMutability: "pure",
|
|
598
|
+
type: "function",
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
inputs: [
|
|
602
|
+
{
|
|
603
|
+
internalType: "bytes",
|
|
604
|
+
name: "encoded",
|
|
605
|
+
type: "bytes",
|
|
606
|
+
},
|
|
607
|
+
],
|
|
608
|
+
name: "parseNttManagerMessage",
|
|
609
|
+
outputs: [
|
|
610
|
+
{
|
|
611
|
+
components: [
|
|
612
|
+
{
|
|
613
|
+
internalType: "bytes32",
|
|
614
|
+
name: "id",
|
|
615
|
+
type: "bytes32",
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
internalType: "bytes32",
|
|
619
|
+
name: "sender",
|
|
620
|
+
type: "bytes32",
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
internalType: "bytes",
|
|
624
|
+
name: "payload",
|
|
625
|
+
type: "bytes",
|
|
626
|
+
},
|
|
627
|
+
],
|
|
628
|
+
internalType: "struct TransceiverStructs.NttManagerMessage",
|
|
629
|
+
name: "nttManagerMessage",
|
|
630
|
+
type: "tuple",
|
|
631
|
+
},
|
|
632
|
+
],
|
|
633
|
+
stateMutability: "pure",
|
|
634
|
+
type: "function",
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
inputs: [
|
|
638
|
+
{
|
|
639
|
+
internalType: "bytes4",
|
|
640
|
+
name: "expectedPrefix",
|
|
641
|
+
type: "bytes4",
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
internalType: "bytes",
|
|
645
|
+
name: "payload",
|
|
646
|
+
type: "bytes",
|
|
647
|
+
},
|
|
648
|
+
],
|
|
649
|
+
name: "parseTransceiverAndNttManagerMessage",
|
|
650
|
+
outputs: [
|
|
651
|
+
{
|
|
652
|
+
components: [
|
|
653
|
+
{
|
|
654
|
+
internalType: "bytes32",
|
|
655
|
+
name: "sourceNttManagerAddress",
|
|
656
|
+
type: "bytes32",
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
internalType: "bytes32",
|
|
660
|
+
name: "recipientNttManagerAddress",
|
|
661
|
+
type: "bytes32",
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
internalType: "bytes",
|
|
665
|
+
name: "nttManagerPayload",
|
|
666
|
+
type: "bytes",
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
internalType: "bytes",
|
|
670
|
+
name: "transceiverPayload",
|
|
671
|
+
type: "bytes",
|
|
672
|
+
},
|
|
673
|
+
],
|
|
674
|
+
internalType: "struct TransceiverStructs.TransceiverMessage",
|
|
675
|
+
name: "",
|
|
676
|
+
type: "tuple",
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
components: [
|
|
680
|
+
{
|
|
681
|
+
internalType: "bytes32",
|
|
682
|
+
name: "id",
|
|
683
|
+
type: "bytes32",
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
internalType: "bytes32",
|
|
687
|
+
name: "sender",
|
|
688
|
+
type: "bytes32",
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
internalType: "bytes",
|
|
692
|
+
name: "payload",
|
|
693
|
+
type: "bytes",
|
|
694
|
+
},
|
|
695
|
+
],
|
|
696
|
+
internalType: "struct TransceiverStructs.NttManagerMessage",
|
|
697
|
+
name: "",
|
|
698
|
+
type: "tuple",
|
|
699
|
+
},
|
|
700
|
+
],
|
|
701
|
+
stateMutability: "pure",
|
|
702
|
+
type: "function",
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
inputs: [
|
|
706
|
+
{
|
|
707
|
+
internalType: "bytes",
|
|
708
|
+
name: "encoded",
|
|
709
|
+
type: "bytes",
|
|
710
|
+
},
|
|
711
|
+
],
|
|
712
|
+
name: "parseTransceiverInstructionChecked",
|
|
713
|
+
outputs: [
|
|
714
|
+
{
|
|
715
|
+
components: [
|
|
716
|
+
{
|
|
717
|
+
internalType: "uint8",
|
|
718
|
+
name: "index",
|
|
719
|
+
type: "uint8",
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
internalType: "bytes",
|
|
723
|
+
name: "payload",
|
|
724
|
+
type: "bytes",
|
|
725
|
+
},
|
|
726
|
+
],
|
|
727
|
+
internalType: "struct TransceiverStructs.TransceiverInstruction",
|
|
728
|
+
name: "instruction",
|
|
729
|
+
type: "tuple",
|
|
730
|
+
},
|
|
731
|
+
],
|
|
732
|
+
stateMutability: "pure",
|
|
733
|
+
type: "function",
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
inputs: [
|
|
737
|
+
{
|
|
738
|
+
internalType: "bytes",
|
|
739
|
+
name: "encoded",
|
|
740
|
+
type: "bytes",
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
internalType: "uint256",
|
|
744
|
+
name: "offset",
|
|
745
|
+
type: "uint256",
|
|
746
|
+
},
|
|
747
|
+
],
|
|
748
|
+
name: "parseTransceiverInstructionUnchecked",
|
|
749
|
+
outputs: [
|
|
750
|
+
{
|
|
751
|
+
components: [
|
|
752
|
+
{
|
|
753
|
+
internalType: "uint8",
|
|
754
|
+
name: "index",
|
|
755
|
+
type: "uint8",
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
internalType: "bytes",
|
|
759
|
+
name: "payload",
|
|
760
|
+
type: "bytes",
|
|
761
|
+
},
|
|
762
|
+
],
|
|
763
|
+
internalType: "struct TransceiverStructs.TransceiverInstruction",
|
|
764
|
+
name: "instruction",
|
|
765
|
+
type: "tuple",
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
internalType: "uint256",
|
|
769
|
+
name: "nextOffset",
|
|
770
|
+
type: "uint256",
|
|
771
|
+
},
|
|
772
|
+
],
|
|
773
|
+
stateMutability: "pure",
|
|
774
|
+
type: "function",
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
inputs: [
|
|
778
|
+
{
|
|
779
|
+
internalType: "bytes",
|
|
780
|
+
name: "encoded",
|
|
781
|
+
type: "bytes",
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
internalType: "uint256",
|
|
785
|
+
name: "numRegisteredTransceivers",
|
|
786
|
+
type: "uint256",
|
|
787
|
+
},
|
|
788
|
+
],
|
|
789
|
+
name: "parseTransceiverInstructions",
|
|
790
|
+
outputs: [
|
|
791
|
+
{
|
|
792
|
+
components: [
|
|
793
|
+
{
|
|
794
|
+
internalType: "uint8",
|
|
795
|
+
name: "index",
|
|
796
|
+
type: "uint8",
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
internalType: "bytes",
|
|
800
|
+
name: "payload",
|
|
801
|
+
type: "bytes",
|
|
802
|
+
},
|
|
803
|
+
],
|
|
804
|
+
internalType: "struct TransceiverStructs.TransceiverInstruction[]",
|
|
805
|
+
name: "",
|
|
806
|
+
type: "tuple[]",
|
|
807
|
+
},
|
|
808
|
+
],
|
|
809
|
+
stateMutability: "pure",
|
|
810
|
+
type: "function",
|
|
811
|
+
},
|
|
812
|
+
];
|
|
813
|
+
var _bytecode = "0x61183661003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106101155760003560e01c806340d2f75a116100ac578063a733bdaa1161007b578063a733bdaa14610288578063b3f07bbd146102d2578063b620e872146102f3578063c9bc77bb14610313578063eeca1f601461037757600080fd5b806340d2f75a146101f1578063433e3f29146102125780635f396d4b146102555780638b4979b81461027557600080fd5b80631185b23c116100e85780631185b23c1461019757806322cebdee146101b85780632b9f4796146101cb5780633906001d146101de57600080fd5b8063054a7d841461011a578063055cedbd1461014357806308a700d614610156578063107383fb14610177575b600080fd5b61012d610128366004610e1d565b61038a565b60405161013a9190610eec565b60405180910390f35b61012d610151366004610fea565b610401565b6101696101643660046110ac565b6104cf565b60405161013a929190611175565b61018a61018536600461119a565b610536565b60405161013a91906111ce565b6101aa6101a53660046111e1565b610590565b60405161013a929190611268565b61012d6101c636600461128d565b6105f6565b61012d6101d93660046112d3565b61065f565b61012d6101ec36600461133c565b6106f1565b6102046101ff3660046113f3565b6107a3565b60405161013a929190611459565b61022561022036600461119a565b6107f1565b6040805182516001600160e01b031916815260208084015161ffff1690820152918101519082015260600161013a565b61026861026336600461119a565b610842565b60405161013a919061147b565b61012d610283366004611506565b610872565b61029b61029636600461119a565b6108cd565b60405161013a919081518152602080830151908201526040808301519082015260609182015161ffff169181019190915260800190565b6102e56102e036600461153a565b61099b565b60405190815260200161013a565b6103066103013660046113f3565b6109d6565b60405161013a919061157d565b61032661032136600461119a565b610b37565b60405161013a9190600060a08201905063ffffffff60e01b83511682526020830151602083015260ff60408401511660408301526060830151606083015260ff608084015116608083015292915050565b61012d6103853660046115df565b610ba1565b8051602080830151604080850151606086810151608088015193516001600160e01b03199097169587019590955260248601939093526001600160f81b031960f891821b8116604487015260458601949094521b9091166065830152906066015b6040516020818303038152906040529050919050565b606060ff80168251111561043657815160405163a341969160e01b815260040161042d91815260200190565b60405180910390fd5b8151606060005b828110156104a357600061046986838151811061045c5761045c611646565b60200260200101516105f6565b9050828160405160200161047e92919061165c565b604051602081830303815290604052925050808061049b9061168b565b91505061043d565b5081816040516020016104b79291906116b2565b60405160208183030381529060405292505050919050565b6040805160808101825260008082526020820152606091810182905281810191909152604080516060808201835260008083526020830181905292820152906105188585610be6565b905060006105298260400151610536565b9196919550909350505050565b6040805160608082018352600080835260208084019182528385018390528501518352928401519092529082015160429060f01c610575848383610cbb565b604085019190915291506105898483610d37565b5050919050565b604080516080810182526000808252602082015260609181018290528181019190915260606000604051806080016040528088815260200187815260200186815260200185815250905060006105e689836106f1565b9199919850909650505050505050565b606060ff8016826020015151111561062a5781602001515160405163a341969160e01b815260040161042d91815260200190565b602080830151805184516040519193610648939192859291016116e1565b604051602081830303815290604052915050919050565b8051606090632653951560e21b816106778360081c90565b856020015186604001518760600151604051602001610648969594939291906001600160e01b031996909616865260f89490941b6001600160f81b031916600486015260c09290921b6001600160c01b0319166005850152600d840152602d83015260f01b6001600160f01b031916604d820152604f0190565b606061ffff801682604001515111156107265781604001515160405163a341969160e01b815260040161042d91815260200190565b60408201515160608301515161ffff101561075d5782606001515160405163a341969160e01b815260040161042d91815260200190565b6060830151805184516020808701516040808901519051949561078a958b9594899392899290910161171e565b6040516020818303038152906040529250505092915050565b604080518082019091526000808252606060208084019190915283850190810151821a83526021015160028401911a6107dd858383610cbb565b846020018194508290525050509250929050565b60408051606081018252600080825260208083018281529383019182528401516001600160e01b0319168252602484015160f01c9092526026808401519092529061083c8382610d37565b50919050565b604080518082019091526000815260606020820152600061086383826107a3565b909250905061083c8382610d37565b606061ffff801682604001515111156108a75781604001515160405163a341969160e01b815260040161042d91815260200190565b604080830151805184516020808701519451929461064894929390928692909101611792565b6040805160808101825260008082526020808301829052928201819052606082015290820151600490632653951560e21b6001600160e01b0319821614610933576040516356d2569d60e01b81526001600160e01b03198216600482015260240161042d565b602082850181810151602182015160009190911a68ffffffffffffffff0060b883901c16811787526029830151938701939093526049820151604087015260699091015160f01c6060860152604b9093019260c01c6109928685610d37565b50505050919050565b6000826109a783610872565b6040516020016109b89291906117d0565b60405160208183030381529060405280519060200120905092915050565b6020820151606090600190600090811a90846001600160401b038111156109ff576109ff610d81565b604051908082528060200260200182016040528015610a4557816020015b604080518082019091526000815260606020820152815260200190600190039081610a1d5790505b5090506000805b83811015610b2257604080518082019091526000815260606020820152610a7389876107a3565b81519097509091508215801590610a8d5750838160ff1611155b15610ab757604051630555a4b960e01b81526004810185905260ff8216602482015260440161042d565b888160ff1610610ae65760405163344fa80b60e11b815260ff82166004820152602481018a905260440161042d565b8060ff16935081858260ff1681518110610b0257610b02611646565b602002602001018190525050508080610b1a9061168b565b915050610a4c565b50610b2d8785610d37565b5095945050505050565b6040805160a081018252600080825260208083018281529383018281526060840183815260808501848152928701516001600160e01b031916855260248701519095526044860151831a905260458501519093526065840151901a909152604661083c8382610d37565b805160208083015160408085015190516001600160e01b03199094169284019290925260f01b6001600160f01b031916602483015260268201526060906046016103eb565b604080516080810182526000808252602080830191909152606092820183905282820192909252908201516004906001600160e01b031985811690821614610c4d576040516356d2569d60e01b81526001600160e01b03198216600482015260240161042d565b81840160208181015185526040820151908501526060015160429092019160f01c610c79858483610cbb565b6040860191909152858101602001516002909101935060f01c610c9d868583610cbb565b60608701919091529350610cb18685610d37565b5050505092915050565b60606000826001600160401b03811115610cd757610cd7610d81565b6040519080825280601f01601f191660200182016040528015610d01576020820181803683370190505b5091508360208601016020830160005b85811015610d29578281015182820152602001610d11565b509296949093019450505050565b80825114610d7d5760405162461bcd60e51b8152602060048201526013602482015272092dcecc2d8d2c840c8c2e8c240d8cadccee8d606b1b604482015260640161042d565b5050565b634e487b7160e01b600052604160045260246000fd5b604051608081016001600160401b0381118282101715610db957610db9610d81565b60405290565b604051601f8201601f191681016001600160401b0381118282101715610de757610de7610d81565b604052919050565b80356001600160e01b031981168114610e0757600080fd5b919050565b803560ff81168114610e0757600080fd5b600060a08284031215610e2f57600080fd5b60405160a081018181106001600160401b0382111715610e5157610e51610d81565b604052610e5d83610def565b815260208301356020820152610e7560408401610e0c565b604082015260608301356060820152610e9060808401610e0c565b60808201529392505050565b60005b83811015610eb7578181015183820152602001610e9f565b50506000910152565b60008151808452610ed8816020860160208601610e9c565b601f01601f19169290920160200192915050565b602081526000610eff6020830184610ec0565b9392505050565b600082601f830112610f1757600080fd5b81356001600160401b03811115610f3057610f30610d81565b610f43601f8201601f1916602001610dbf565b818152846020838601011115610f5857600080fd5b816020850160208301376000918101602001919091529392505050565b600060408284031215610f8757600080fd5b604051604081016001600160401b038282108183111715610faa57610faa610d81565b81604052829350610fba85610e0c565b83526020850135915080821115610fd057600080fd5b50610fdd85828601610f06565b6020830152505092915050565b60006020808385031215610ffd57600080fd5b82356001600160401b038082111561101457600080fd5b818501915085601f83011261102857600080fd5b81358181111561103a5761103a610d81565b8060051b611049858201610dbf565b918252838101850191858101908984111561106357600080fd5b86860192505b8383101561109f578235858111156110815760008081fd5b61108f8b89838a0101610f75565b8352509186019190860190611069565b9998505050505050505050565b600080604083850312156110bf57600080fd5b6110c883610def565b915060208301356001600160401b038111156110e357600080fd5b6110ef85828601610f06565b9150509250929050565b805182526020810151602083015260006040820151608060408501526111226080850182610ec0565b90506060830151848203606086015261113b8282610ec0565b95945050505050565b8051825260208101516020830152600060408201516060604085015261116d6060850182610ec0565b949350505050565b60408152600061118860408301856110f9565b828103602084015261113b8185611144565b6000602082840312156111ac57600080fd5b81356001600160401b038111156111c257600080fd5b61116d84828501610f06565b602081526000610eff6020830184611144565b600080600080600060a086880312156111f957600080fd5b61120286610def565b9450602086013593506040860135925060608601356001600160401b038082111561122c57600080fd5b61123889838a01610f06565b9350608088013591508082111561124e57600080fd5b5061125b88828901610f06565b9150509295509295909350565b60408152600061127b60408301856110f9565b828103602084015261113b8185610ec0565b60006020828403121561129f57600080fd5b81356001600160401b038111156112b557600080fd5b61116d84828501610f75565b803561ffff81168114610e0757600080fd5b6000608082840312156112e557600080fd5b604051608081018181106001600160401b038211171561130757611307610d81565b8060405250823581526020830135602082015260408301356040820152611330606084016112c1565b60608201529392505050565b6000806040838503121561134f57600080fd5b61135883610def565b915060208301356001600160401b038082111561137457600080fd5b908401906080828703121561138857600080fd5b611390610d97565b82358152602083013560208201526040830135828111156113b057600080fd5b6113bc88828601610f06565b6040830152506060830135828111156113d457600080fd5b6113e088828601610f06565b6060830152508093505050509250929050565b6000806040838503121561140657600080fd5b82356001600160401b0381111561141c57600080fd5b61142885828601610f06565b95602094909401359450505050565b60ff8151168252600060208201516040602085015261116d6040850182610ec0565b60408152600061146c6040830185611437565b90508260208301529392505050565b602081526000610eff6020830184611437565b6000606082840312156114a057600080fd5b604051606081016001600160401b0382821081831117156114c3576114c3610d81565b81604052829350843583526020850135602084015260408501359150808211156114ec57600080fd5b506114f985828601610f06565b6040830152505092915050565b60006020828403121561151857600080fd5b81356001600160401b0381111561152e57600080fd5b61116d8482850161148e565b6000806040838503121561154d57600080fd5b611556836112c1565b915060208301356001600160401b0381111561157157600080fd5b6110ef8582860161148e565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156115d257603f198886030184526115c0858351611437565b945092850192908501906001016115a4565b5092979650505050505050565b6000606082840312156115f157600080fd5b604051606081018181106001600160401b038211171561161357611613610d81565b60405261161f83610def565b815261162d602084016112c1565b6020820152604083013560408201528091505092915050565b634e487b7160e01b600052603260045260246000fd5b6000835161166e818460208801610e9c565b835190830190611682818360208801610e9c565b01949350505050565b6000600182016116ab57634e487b7160e01b600052601160045260246000fd5b5060010190565b60ff60f81b8360f81b168152600082516116d3816001850160208701610e9c565b919091016001019392505050565b600060ff60f81b808660f81b168352808560f81b16600184015250825161170f816002850160208701610e9c565b91909101600201949350505050565b63ffffffff60e01b88168152866004820152856024820152600061ffff60f01b808760f01b166044840152855161175c816046860160208a01610e9c565b8084019050818660f01b16604682015284519150611781826048830160208801610e9c565b016048019998505050505050505050565b84815283602082015261ffff60f01b8360f01b166040820152600082516117c0816042850160208701610e9c565b9190910160420195945050505050565b61ffff60f01b8360f01b168152600082516117f2816002850160208701610e9c565b91909101600201939250505056fea2646970667358221220a5acb3867e9c8988d7d5088bda81491f97f271bcc0dd96bf3ce0fa7bbe18fb1a64736f6c63430008110033";
|
|
814
|
+
var isSuperArgs = function (xs) { return xs.length > 1; };
|
|
815
|
+
var TransceiverStructs__factory = /** @class */ (function (_super) {
|
|
816
|
+
__extends(TransceiverStructs__factory, _super);
|
|
817
|
+
function TransceiverStructs__factory() {
|
|
818
|
+
var args = [];
|
|
819
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
820
|
+
args[_i] = arguments[_i];
|
|
821
|
+
}
|
|
822
|
+
var _this = this;
|
|
823
|
+
if (isSuperArgs(args)) {
|
|
824
|
+
_this = _super.apply(this, __spreadArray([], __read(args), false)) || this;
|
|
825
|
+
}
|
|
826
|
+
else {
|
|
827
|
+
_this = _super.call(this, _abi, _bytecode, args[0]) || this;
|
|
828
|
+
}
|
|
829
|
+
return _this;
|
|
830
|
+
}
|
|
831
|
+
TransceiverStructs__factory.prototype.deploy = function (overrides) {
|
|
832
|
+
return _super.prototype.deploy.call(this, overrides || {});
|
|
833
|
+
};
|
|
834
|
+
TransceiverStructs__factory.prototype.getDeployTransaction = function (overrides) {
|
|
835
|
+
return _super.prototype.getDeployTransaction.call(this, overrides || {});
|
|
836
|
+
};
|
|
837
|
+
TransceiverStructs__factory.prototype.attach = function (address) {
|
|
838
|
+
return _super.prototype.attach.call(this, address);
|
|
839
|
+
};
|
|
840
|
+
TransceiverStructs__factory.prototype.connect = function (signer) {
|
|
841
|
+
return _super.prototype.connect.call(this, signer);
|
|
842
|
+
};
|
|
843
|
+
TransceiverStructs__factory.createInterface = function () {
|
|
844
|
+
return new ethers_1.utils.Interface(_abi);
|
|
845
|
+
};
|
|
846
|
+
TransceiverStructs__factory.connect = function (address, signerOrProvider) {
|
|
847
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
848
|
+
};
|
|
849
|
+
TransceiverStructs__factory.bytecode = _bytecode;
|
|
850
|
+
TransceiverStructs__factory.abi = _abi;
|
|
851
|
+
return TransceiverStructs__factory;
|
|
852
|
+
}(ethers_1.ContractFactory));
|
|
853
|
+
exports.TransceiverStructs__factory = TransceiverStructs__factory;
|