@keep-network/tbtc-v2 0.1.1-dev.10 → 0.1.1-dev.11

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.
@@ -0,0 +1,37 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IRelay",
4
+ "sourceName": "contracts/bridge/Bridge.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "getCurrentEpochDifficulty",
9
+ "outputs": [
10
+ {
11
+ "internalType": "uint256",
12
+ "name": "",
13
+ "type": "uint256"
14
+ }
15
+ ],
16
+ "stateMutability": "view",
17
+ "type": "function"
18
+ },
19
+ {
20
+ "inputs": [],
21
+ "name": "getPrevEpochDifficulty",
22
+ "outputs": [
23
+ {
24
+ "internalType": "uint256",
25
+ "name": "",
26
+ "type": "uint256"
27
+ }
28
+ ],
29
+ "stateMutability": "view",
30
+ "type": "function"
31
+ }
32
+ ],
33
+ "bytecode": "0x",
34
+ "deployedBytecode": "0x",
35
+ "linkReferences": {},
36
+ "deployedLinkReferences": {}
37
+ }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/f858e31993d81cc64384b34812cb47e9.json"
3
+ "buildInfo": "../../../build-info/3206c2d870ed0f2860be9f86882ddfac.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/f858e31993d81cc64384b34812cb47e9.json"
3
+ "buildInfo": "../../../build-info/3206c2d870ed0f2860be9f86882ddfac.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/f858e31993d81cc64384b34812cb47e9.json"
3
+ "buildInfo": "../../../build-info/3206c2d870ed0f2860be9f86882ddfac.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/f858e31993d81cc64384b34812cb47e9.json"
3
+ "buildInfo": "../../../build-info/3206c2d870ed0f2860be9f86882ddfac.json"
4
4
  }
@@ -101,4 +101,25 @@ library BitcoinTx {
101
101
  /// Encoded as 4-bytes unsigned integer, little endian.
102
102
  bytes4 locktime;
103
103
  }
104
+
105
+ /// @notice Represents data needed to perform a Bitcoin SPV proof.
106
+ struct Proof {
107
+ /// @notice The merkle proof of transaction inclusion in a block.
108
+ bytes merkleProof;
109
+ /// @notice Transaction index in the block (0-indexed).
110
+ uint256 txIndexInBlock;
111
+ /// @notice Single byte-string of 80-byte bitcoin headers,
112
+ /// lowest height first.
113
+ bytes bitcoinHeaders;
114
+ }
115
+
116
+ /// @notice Represents info about an unspent transaction output.
117
+ struct UTXO {
118
+ /// @notice Hash of the transaction the output belongs to.
119
+ bytes32 txHash;
120
+ /// @notice Index of the transaction output.
121
+ uint32 txOutputIndex;
122
+ /// @notice Value of the transaction output.
123
+ uint64 txOutputValue;
124
+ }
104
125
  }