@wireio/stake 0.1.3 → 0.2.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.
Files changed (135) hide show
  1. package/lib/stake.browser.js +15333 -4964
  2. package/lib/stake.browser.js.map +1 -1
  3. package/lib/stake.d.ts +4880 -112
  4. package/lib/stake.js +15636 -5116
  5. package/lib/stake.js.map +1 -1
  6. package/lib/stake.m.js +15333 -4964
  7. package/lib/stake.m.js.map +1 -1
  8. package/package.json +1 -1
  9. package/src/assets/ethereum/ABI/liqEth/DepositManager.sol/DepositManager.dbg.json +1 -1
  10. package/src/assets/ethereum/ABI/liqEth/DepositManager.sol/DepositManager.json +26 -65
  11. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IAccounting.dbg.json +1 -1
  12. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IAccounting.json +24 -20
  13. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IDepositContract.dbg.json +1 -1
  14. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IDepositManager.dbg.json +1 -1
  15. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IRewardsERC20.dbg.json +1 -1
  16. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IStakingModule.dbg.json +1 -1
  17. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IStakingModule.json +0 -20
  18. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IValidatorBalanceVerifier.dbg.json +1 -1
  19. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IWithdrawalRecord.dbg.json +1 -1
  20. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/LiqEthCommon.dbg.json +1 -1
  21. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/LiqEthCommon.json +2 -2
  22. package/src/assets/ethereum/ABI/liqEth/RewardsERC20.sol/RewardsERC20.dbg.json +1 -1
  23. package/src/assets/ethereum/ABI/liqEth/RewardsERC20Pausable.sol/RewardsERC20Pausable.dbg.json +1 -1
  24. package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/BeaconRoots.dbg.json +1 -1
  25. package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/SSZ.dbg.json +1 -1
  26. package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/ValidatorBalanceVerifier.dbg.json +1 -1
  27. package/src/assets/ethereum/ABI/liqEth/Yield.sol/BeaconRoots.dbg.json +1 -1
  28. package/src/assets/ethereum/ABI/liqEth/Yield.sol/BeaconRoots.json +2 -2
  29. package/src/assets/ethereum/ABI/liqEth/Yield.sol/SSZ.dbg.json +1 -1
  30. package/src/assets/ethereum/ABI/liqEth/Yield.sol/SSZ.json +2 -2
  31. package/src/assets/ethereum/ABI/liqEth/Yield.sol/YieldOracle.dbg.json +1 -1
  32. package/src/assets/ethereum/ABI/liqEth/Yield.sol/YieldOracle.json +2 -2
  33. package/src/assets/ethereum/ABI/liqEth/accounting.sol/Accounting.dbg.json +1 -1
  34. package/src/assets/ethereum/ABI/liqEth/accounting.sol/Accounting.json +31 -109
  35. package/src/assets/ethereum/ABI/liqEth/liqEth.sol/LiqEthToken.dbg.json +1 -1
  36. package/src/assets/ethereum/ABI/liqEth/liqEth.sol/LiqEthToken.json +2 -25
  37. package/src/assets/ethereum/ABI/liqEth/stakingModule.sol/StakingModule.dbg.json +1 -1
  38. package/src/assets/ethereum/ABI/liqEth/stakingModule.sol/StakingModule.json +30 -72
  39. package/src/assets/ethereum/ABI/liqEth/withdrawalQueue.sol/WithdrawalQueue.dbg.json +1 -1
  40. package/src/assets/ethereum/ABI/liqEth/withdrawalQueue.sol/WithdrawalQueue.json +2 -2
  41. package/src/assets/ethereum/ABI/liqEth/withdrawalVault.sol/Uint64BE.dbg.json +1 -1
  42. package/src/assets/ethereum/ABI/liqEth/withdrawalVault.sol/Uint64BE.json +2 -2
  43. package/src/assets/ethereum/ABI/liqEth/withdrawalVault.sol/WithdrawalVault.dbg.json +1 -1
  44. package/src/assets/ethereum/ABI/liqEth/withdrawalVault.sol/WithdrawalVault.json +2 -2
  45. package/src/assets/ethereum/ABI/outpost/BAR.sol/BAR.dbg.json +4 -0
  46. package/src/assets/ethereum/ABI/outpost/BAR.sol/BAR.json +1856 -0
  47. package/src/assets/ethereum/ABI/outpost/Depositor.sol/Depositor.dbg.json +4 -0
  48. package/src/assets/ethereum/ABI/outpost/Depositor.sol/Depositor.json +1753 -0
  49. package/src/assets/ethereum/ABI/outpost/EthUsdPriceConsumer.sol/AggregatorV3Interface.dbg.json +4 -0
  50. package/src/assets/ethereum/ABI/outpost/EthUsdPriceConsumer.sol/AggregatorV3Interface.json +122 -0
  51. package/src/assets/ethereum/ABI/outpost/EthUsdPriceConsumer.sol/EthUsdPriceConsumer.dbg.json +4 -0
  52. package/src/assets/ethereum/ABI/outpost/EthUsdPriceConsumer.sol/EthUsdPriceConsumer.json +601 -0
  53. package/src/assets/ethereum/ABI/outpost/OPP.sol/OPP.dbg.json +4 -0
  54. package/src/assets/ethereum/ABI/outpost/OPP.sol/OPP.json +930 -0
  55. package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPP.dbg.json +4 -0
  56. package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPP.json +88 -0
  57. package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPPEndpoint.dbg.json +4 -0
  58. package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPPEndpoint.json +29 -0
  59. package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPPInbound.dbg.json +4 -0
  60. package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPPInbound.json +194 -0
  61. package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPPReceiver.dbg.json +4 -0
  62. package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPPReceiver.json +29 -0
  63. package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPPSender.dbg.json +4 -0
  64. package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPPSender.json +36 -0
  65. package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/OPPCommon.dbg.json +4 -0
  66. package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/OPPCommon.json +199 -0
  67. package/src/assets/ethereum/ABI/outpost/OPPEndpoint.sol/OPPEndpoint.dbg.json +4 -0
  68. package/src/assets/ethereum/ABI/outpost/OPPEndpoint.sol/OPPEndpoint.json +273 -0
  69. package/src/assets/ethereum/ABI/outpost/OPPEndpointManaged.sol/OPPEndpointManaged.dbg.json +4 -0
  70. package/src/assets/ethereum/ABI/outpost/OPPEndpointManaged.sol/OPPEndpointManaged.json +394 -0
  71. package/src/assets/ethereum/ABI/outpost/OPPEndpointOwnable.sol/OPPEndpointOwnable.dbg.json +4 -0
  72. package/src/assets/ethereum/ABI/outpost/OPPEndpointOwnable.sol/OPPEndpointOwnable.json +378 -0
  73. package/src/assets/ethereum/ABI/outpost/OPPErrors.sol/OPPErrors.dbg.json +4 -0
  74. package/src/assets/ethereum/ABI/outpost/OPPErrors.sol/OPPErrors.json +224 -0
  75. package/src/assets/ethereum/ABI/outpost/OPPInbound.sol/OPPInbound.dbg.json +4 -0
  76. package/src/assets/ethereum/ABI/outpost/OPPInbound.sol/OPPInbound.json +1010 -0
  77. package/src/assets/ethereum/ABI/outpost/OPPReceiver.sol/OPPReceiver.dbg.json +4 -0
  78. package/src/assets/ethereum/ABI/outpost/OPPReceiver.sol/OPPReceiver.json +291 -0
  79. package/src/assets/ethereum/ABI/outpost/OPPSender.sol/OPPSender.dbg.json +4 -0
  80. package/src/assets/ethereum/ABI/outpost/OPPSender.sol/OPPSender.json +298 -0
  81. package/src/assets/ethereum/ABI/outpost/OutpostErrors.sol/OutpostErrors.dbg.json +4 -0
  82. package/src/assets/ethereum/ABI/outpost/OutpostErrors.sol/OutpostErrors.json +473 -0
  83. package/src/assets/ethereum/ABI/outpost/OutpostManaged.sol/OutpostManaged.dbg.json +4 -0
  84. package/src/assets/ethereum/ABI/outpost/OutpostManaged.sol/OutpostManaged.json +229 -0
  85. package/src/assets/ethereum/ABI/outpost/OutpostManager.sol/OutpostManager.dbg.json +4 -0
  86. package/src/assets/ethereum/ABI/outpost/OutpostManager.sol/OutpostManager.json +730 -0
  87. package/src/assets/ethereum/ABI/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.dbg.json +4 -0
  88. package/src/assets/ethereum/ABI/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.json +1432 -0
  89. package/src/assets/ethereum/ABI/outpost/OutpostManagerCommon.sol/IOutpostManager.dbg.json +4 -0
  90. package/src/assets/ethereum/ABI/outpost/OutpostManagerCommon.sol/IOutpostManager.json +130 -0
  91. package/src/assets/ethereum/ABI/outpost/OutpostManagerCommon.sol/IOutpostUpgradeable.dbg.json +4 -0
  92. package/src/assets/ethereum/ABI/outpost/OutpostManagerCommon.sol/IOutpostUpgradeable.json +29 -0
  93. package/src/assets/ethereum/ABI/outpost/OutpostManagerCommon.sol/OutpostManagerCommon.dbg.json +4 -0
  94. package/src/assets/ethereum/ABI/outpost/OutpostManagerCommon.sol/OutpostManagerCommon.json +141 -0
  95. package/src/assets/ethereum/ABI/outpost/OutpostOwnable.sol/OutpostOwnable.dbg.json +4 -0
  96. package/src/assets/ethereum/ABI/outpost/OutpostOwnable.sol/OutpostOwnable.json +213 -0
  97. package/src/assets/ethereum/ABI/outpost/Pool.sol/Pool.dbg.json +4 -0
  98. package/src/assets/ethereum/ABI/outpost/Pool.sol/Pool.json +921 -0
  99. package/src/assets/ethereum/ABI/outpost/ReceiptNFT.sol/ReceiptNFT.dbg.json +4 -0
  100. package/src/assets/ethereum/ABI/outpost/ReceiptNFT.sol/ReceiptNFT.json +2020 -0
  101. package/src/assets/ethereum/ABI/outpost/Warrant.sol/Warrant.dbg.json +4 -0
  102. package/src/assets/ethereum/ABI/outpost/Warrant.sol/Warrant.json +1650 -0
  103. package/src/assets/ethereum/ABI/outpost/interfaces/IWarrant.sol/IWarrant.dbg.json +4 -0
  104. package/src/assets/ethereum/ABI/{liqEth/LiqEthCommon.sol/ILiqEthMint.json → outpost/interfaces/IWarrant.sol/IWarrant.json} +6 -12
  105. package/src/assets/ethereum/ABI/outpost/token/ERC721EthEquivalentVotesUpgradeable.sol/ERC721EthEquivalentVotesUpgradeable.dbg.json +4 -0
  106. package/src/assets/ethereum/ABI/outpost/token/ERC721EthEquivalentVotesUpgradeable.sol/ERC721EthEquivalentVotesUpgradeable.json +858 -0
  107. package/src/assets/ethereum/ABI/outpost/token/IERC721EthEquivalent.sol/IERC721EthEquivalent.dbg.json +4 -0
  108. package/src/assets/ethereum/ABI/outpost/token/IERC721EthEquivalent.sol/IERC721EthEquivalent.json +30 -0
  109. package/src/assets/solana/idl/liqsol_core.json +1369 -1129
  110. package/src/assets/solana/idl/liqsol_token.json +1 -1
  111. package/src/assets/solana/idl/validator_leaderboard.json +1 -1
  112. package/src/assets/solana/types/liqsol_core.ts +1369 -1129
  113. package/src/assets/solana/types/liqsol_token.ts +1 -1
  114. package/src/assets/solana/types/validator_leaderboard.ts +1 -1
  115. package/src/index.ts +2 -1
  116. package/src/networks/ethereum/clients/deposit.client.ts +82 -0
  117. package/src/networks/ethereum/clients/stake.client.ts +215 -0
  118. package/src/networks/ethereum/contract.ts +82 -23
  119. package/src/networks/ethereum/ethereum.ts +148 -69
  120. package/src/networks/ethereum/types.ts +74 -7
  121. package/src/networks/solana/clients/deposit.client.ts +7 -11
  122. package/src/networks/solana/clients/distribution.client.ts +1 -3
  123. package/src/networks/solana/clients/outpost.client.ts +474 -0
  124. package/src/networks/solana/constants.ts +90 -52
  125. package/src/networks/solana/solana.ts +155 -128
  126. package/src/networks/solana/types.ts +95 -8
  127. package/src/networks/solana/utils.ts +111 -94
  128. package/src/staker/types.ts +7 -5
  129. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/ILiqEthBurn.dbg.json +0 -4
  130. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/ILiqEthBurn.json +0 -24
  131. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/ILiqEthMint.dbg.json +0 -4
  132. package/src/assets/ethereum/ABI/liqEth/liqEthBurn.sol/LiqEthBurn.dbg.json +0 -4
  133. package/src/assets/ethereum/ABI/liqEth/liqEthBurn.sol/LiqEthBurn.json +0 -391
  134. package/src/assets/ethereum/ABI/liqEth/liqEthMint.sol/LiqEthMint.dbg.json +0 -4
  135. package/src/assets/ethereum/ABI/liqEth/liqEthMint.sol/LiqEthMint.json +0 -402
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/ed9aaec874c02fdb46b7a115ba311ca3.json"
4
+ }
@@ -0,0 +1,88 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IOPP",
4
+ "sourceName": "contracts/outpost/OPPCommon.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint16",
10
+ "name": "assertionType",
11
+ "type": "uint16"
12
+ },
13
+ {
14
+ "components": [
15
+ {
16
+ "internalType": "bytes",
17
+ "name": "data",
18
+ "type": "bytes"
19
+ }
20
+ ],
21
+ "internalType": "struct iodata.Buffer",
22
+ "name": "assertion",
23
+ "type": "tuple"
24
+ }
25
+ ],
26
+ "name": "addAssertion",
27
+ "outputs": [],
28
+ "stateMutability": "nonpayable",
29
+ "type": "function"
30
+ },
31
+ {
32
+ "inputs": [
33
+ {
34
+ "internalType": "uint256",
35
+ "name": "tag",
36
+ "type": "uint256"
37
+ }
38
+ ],
39
+ "name": "enterSendMode",
40
+ "outputs": [],
41
+ "stateMutability": "nonpayable",
42
+ "type": "function"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "uint256",
48
+ "name": "tag",
49
+ "type": "uint256"
50
+ }
51
+ ],
52
+ "name": "exitSendMode",
53
+ "outputs": [],
54
+ "stateMutability": "nonpayable",
55
+ "type": "function"
56
+ },
57
+ {
58
+ "inputs": [],
59
+ "name": "inSendMode",
60
+ "outputs": [
61
+ {
62
+ "internalType": "bool",
63
+ "name": "",
64
+ "type": "bool"
65
+ }
66
+ ],
67
+ "stateMutability": "view",
68
+ "type": "function"
69
+ },
70
+ {
71
+ "inputs": [
72
+ {
73
+ "internalType": "uint256",
74
+ "name": "adjustment",
75
+ "type": "uint256"
76
+ }
77
+ ],
78
+ "name": "testAdvanceEpochClock",
79
+ "outputs": [],
80
+ "stateMutability": "nonpayable",
81
+ "type": "function"
82
+ }
83
+ ],
84
+ "bytecode": "0x",
85
+ "deployedBytecode": "0x",
86
+ "linkReferences": {},
87
+ "deployedLinkReferences": {}
88
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/ed9aaec874c02fdb46b7a115ba311ca3.json"
4
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IOPPEndpoint",
4
+ "sourceName": "contracts/outpost/OPPCommon.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "_oppAddress",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "internalType": "address",
15
+ "name": "_oppInboundAddress",
16
+ "type": "address"
17
+ }
18
+ ],
19
+ "name": "setOPPAddresses",
20
+ "outputs": [],
21
+ "stateMutability": "nonpayable",
22
+ "type": "function"
23
+ }
24
+ ],
25
+ "bytecode": "0x",
26
+ "deployedBytecode": "0x",
27
+ "linkReferences": {},
28
+ "deployedLinkReferences": {}
29
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/ed9aaec874c02fdb46b7a115ba311ca3.json"
4
+ }
@@ -0,0 +1,194 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IOPPInbound",
4
+ "sourceName": "contracts/outpost/OPPCommon.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "components": [
10
+ {
11
+ "internalType": "uint32",
12
+ "name": "epochNumber",
13
+ "type": "uint32"
14
+ },
15
+ {
16
+ "internalType": "uint64",
17
+ "name": "timestamp",
18
+ "type": "uint64"
19
+ },
20
+ {
21
+ "internalType": "bytes32",
22
+ "name": "prevEpochHash",
23
+ "type": "bytes32"
24
+ },
25
+ {
26
+ "internalType": "bytes32",
27
+ "name": "merkleRoot",
28
+ "type": "bytes32"
29
+ },
30
+ {
31
+ "internalType": "bytes32",
32
+ "name": "firstMessageID",
33
+ "type": "bytes32"
34
+ },
35
+ {
36
+ "internalType": "bytes32",
37
+ "name": "lastMessageID",
38
+ "type": "bytes32"
39
+ }
40
+ ],
41
+ "internalType": "struct OPPEpochEnvelope",
42
+ "name": "epoch",
43
+ "type": "tuple"
44
+ },
45
+ {
46
+ "components": [
47
+ {
48
+ "internalType": "bytes32",
49
+ "name": "r",
50
+ "type": "bytes32"
51
+ },
52
+ {
53
+ "internalType": "bytes32",
54
+ "name": "s",
55
+ "type": "bytes32"
56
+ },
57
+ {
58
+ "internalType": "uint8",
59
+ "name": "v",
60
+ "type": "uint8"
61
+ }
62
+ ],
63
+ "internalType": "struct signature[]",
64
+ "name": "signatures",
65
+ "type": "tuple[]"
66
+ }
67
+ ],
68
+ "name": "epochIn",
69
+ "outputs": [],
70
+ "stateMutability": "nonpayable",
71
+ "type": "function"
72
+ },
73
+ {
74
+ "inputs": [
75
+ {
76
+ "components": [
77
+ {
78
+ "components": [
79
+ {
80
+ "internalType": "bytes32",
81
+ "name": "messageID",
82
+ "type": "bytes32"
83
+ },
84
+ {
85
+ "internalType": "bytes32",
86
+ "name": "previousMessageID",
87
+ "type": "bytes32"
88
+ },
89
+ {
90
+ "internalType": "bytes32",
91
+ "name": "payloadHash",
92
+ "type": "bytes32"
93
+ },
94
+ {
95
+ "internalType": "uint64",
96
+ "name": "timestamp",
97
+ "type": "uint64"
98
+ }
99
+ ],
100
+ "internalType": "struct OPPMessageHeader",
101
+ "name": "header",
102
+ "type": "tuple"
103
+ },
104
+ {
105
+ "components": [
106
+ {
107
+ "internalType": "uint8",
108
+ "name": "protocolVersion",
109
+ "type": "uint8"
110
+ },
111
+ {
112
+ "internalType": "uint8",
113
+ "name": "encodingFlags",
114
+ "type": "uint8"
115
+ },
116
+ {
117
+ "components": [
118
+ {
119
+ "internalType": "uint16",
120
+ "name": "assertionType",
121
+ "type": "uint16"
122
+ },
123
+ {
124
+ "internalType": "bytes",
125
+ "name": "assertion",
126
+ "type": "bytes"
127
+ }
128
+ ],
129
+ "internalType": "struct OPPAssertion[]",
130
+ "name": "assertions",
131
+ "type": "tuple[]"
132
+ }
133
+ ],
134
+ "internalType": "struct OPPPayload",
135
+ "name": "payload",
136
+ "type": "tuple"
137
+ }
138
+ ],
139
+ "internalType": "struct OPPMessageIn[]",
140
+ "name": "messages",
141
+ "type": "tuple[]"
142
+ },
143
+ {
144
+ "components": [
145
+ {
146
+ "internalType": "bytes32[]",
147
+ "name": "proof",
148
+ "type": "bytes32[]"
149
+ },
150
+ {
151
+ "internalType": "uint8[]",
152
+ "name": "ops",
153
+ "type": "uint8[]"
154
+ },
155
+ {
156
+ "internalType": "uint256",
157
+ "name": "maxStack",
158
+ "type": "uint256"
159
+ }
160
+ ],
161
+ "internalType": "struct MerkleProof",
162
+ "name": "merkleProof",
163
+ "type": "tuple"
164
+ }
165
+ ],
166
+ "name": "messagesIn",
167
+ "outputs": [],
168
+ "stateMutability": "nonpayable",
169
+ "type": "function"
170
+ },
171
+ {
172
+ "inputs": [
173
+ {
174
+ "internalType": "uint16",
175
+ "name": "assertionType",
176
+ "type": "uint16"
177
+ },
178
+ {
179
+ "internalType": "address",
180
+ "name": "handler",
181
+ "type": "address"
182
+ }
183
+ ],
184
+ "name": "setAssertionHandler",
185
+ "outputs": [],
186
+ "stateMutability": "nonpayable",
187
+ "type": "function"
188
+ }
189
+ ],
190
+ "bytecode": "0x",
191
+ "deployedBytecode": "0x",
192
+ "linkReferences": {},
193
+ "deployedLinkReferences": {}
194
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/ed9aaec874c02fdb46b7a115ba311ca3.json"
4
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IOPPReceiver",
4
+ "sourceName": "contracts/outpost/OPPCommon.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint16",
10
+ "name": "assertionType",
11
+ "type": "uint16"
12
+ },
13
+ {
14
+ "internalType": "bytes",
15
+ "name": "assertion",
16
+ "type": "bytes"
17
+ }
18
+ ],
19
+ "name": "OPPAssertionIn",
20
+ "outputs": [],
21
+ "stateMutability": "nonpayable",
22
+ "type": "function"
23
+ }
24
+ ],
25
+ "bytecode": "0x",
26
+ "deployedBytecode": "0x",
27
+ "linkReferences": {},
28
+ "deployedLinkReferences": {}
29
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/ed9aaec874c02fdb46b7a115ba311ca3.json"
4
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IOPPSender",
4
+ "sourceName": "contracts/outpost/OPPCommon.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "getSummaryAssertions",
9
+ "outputs": [
10
+ {
11
+ "components": [
12
+ {
13
+ "internalType": "uint16",
14
+ "name": "assertionType",
15
+ "type": "uint16"
16
+ },
17
+ {
18
+ "internalType": "bytes",
19
+ "name": "assertion",
20
+ "type": "bytes"
21
+ }
22
+ ],
23
+ "internalType": "struct OPPAssertion[]",
24
+ "name": "",
25
+ "type": "tuple[]"
26
+ }
27
+ ],
28
+ "stateMutability": "nonpayable",
29
+ "type": "function"
30
+ }
31
+ ],
32
+ "bytecode": "0x",
33
+ "deployedBytecode": "0x",
34
+ "linkReferences": {},
35
+ "deployedLinkReferences": {}
36
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/ed9aaec874c02fdb46b7a115ba311ca3.json"
4
+ }
@@ -0,0 +1,199 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "OPPCommon",
4
+ "sourceName": "contracts/outpost/OPPCommon.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "components": [
10
+ {
11
+ "internalType": "bytes32",
12
+ "name": "messageID",
13
+ "type": "bytes32"
14
+ },
15
+ {
16
+ "internalType": "bytes32",
17
+ "name": "previousMessageID",
18
+ "type": "bytes32"
19
+ },
20
+ {
21
+ "internalType": "bytes32",
22
+ "name": "payloadHash",
23
+ "type": "bytes32"
24
+ },
25
+ {
26
+ "internalType": "uint64",
27
+ "name": "timestamp",
28
+ "type": "uint64"
29
+ }
30
+ ],
31
+ "internalType": "struct OPPMessageHeader",
32
+ "name": "header",
33
+ "type": "tuple"
34
+ }
35
+ ],
36
+ "name": "getMessageID",
37
+ "outputs": [
38
+ {
39
+ "internalType": "bytes32",
40
+ "name": "",
41
+ "type": "bytes32"
42
+ }
43
+ ],
44
+ "stateMutability": "pure",
45
+ "type": "function"
46
+ },
47
+ {
48
+ "inputs": [
49
+ {
50
+ "components": [
51
+ {
52
+ "internalType": "bytes32",
53
+ "name": "messageID",
54
+ "type": "bytes32"
55
+ },
56
+ {
57
+ "internalType": "bytes32",
58
+ "name": "previousMessageID",
59
+ "type": "bytes32"
60
+ },
61
+ {
62
+ "internalType": "bytes32",
63
+ "name": "payloadHash",
64
+ "type": "bytes32"
65
+ },
66
+ {
67
+ "internalType": "uint64",
68
+ "name": "timestamp",
69
+ "type": "uint64"
70
+ }
71
+ ],
72
+ "internalType": "struct OPPMessageHeader",
73
+ "name": "header",
74
+ "type": "tuple"
75
+ }
76
+ ],
77
+ "name": "messageHash",
78
+ "outputs": [
79
+ {
80
+ "internalType": "bytes32",
81
+ "name": "",
82
+ "type": "bytes32"
83
+ }
84
+ ],
85
+ "stateMutability": "pure",
86
+ "type": "function"
87
+ },
88
+ {
89
+ "inputs": [
90
+ {
91
+ "components": [
92
+ {
93
+ "internalType": "uint8",
94
+ "name": "protocolVersion",
95
+ "type": "uint8"
96
+ },
97
+ {
98
+ "internalType": "uint8",
99
+ "name": "encodingFlags",
100
+ "type": "uint8"
101
+ },
102
+ {
103
+ "components": [
104
+ {
105
+ "internalType": "uint16",
106
+ "name": "assertionType",
107
+ "type": "uint16"
108
+ },
109
+ {
110
+ "internalType": "bytes",
111
+ "name": "assertion",
112
+ "type": "bytes"
113
+ }
114
+ ],
115
+ "internalType": "struct OPPAssertion[]",
116
+ "name": "assertions",
117
+ "type": "tuple[]"
118
+ }
119
+ ],
120
+ "internalType": "struct OPPPayload",
121
+ "name": "payload",
122
+ "type": "tuple"
123
+ }
124
+ ],
125
+ "name": "payloadHash",
126
+ "outputs": [
127
+ {
128
+ "internalType": "bytes32",
129
+ "name": "",
130
+ "type": "bytes32"
131
+ }
132
+ ],
133
+ "stateMutability": "pure",
134
+ "type": "function"
135
+ }
136
+ ],
137
+ "bytecode": "0x60808060405234601957610b99908161001f823930815050f35b600080fdfe604060808152600436101561001357600080fd5b6000803560e01c91826366f86af81461004c5750508063a41872d0146100475763ee37a9951461004257600080fd5b6102ee565b6102d3565b600319602036820181136101cd576004359067ffffffffffffffff928383116101c95760609083360301126101c55761008560e0604052565b61009182600401610251565b60805260246100a260248401610251565b60a0526044926044810135908582116101dd570195366023880112156101da576004870135948086116101d5578560051b918751966100e38685018961022f565b87526024858801938a0101933685116101d15760248a01935b858510610126576101228a8a60c052610113610532565b90519081529081906020820190565b0390f35b84358481116101cd578b018a60231982360301126101cd578a519061014a826101f7565b8381013561ffff811681036101c957825289810135908682116101c95701366043820112156101c55780848d9201359061018f61018683610264565b9351938461022f565b818352368c83830101116101c15791868b83819795948f839896018386013783010152838201528152019401936100fc565b8680fd5b8480fd5b8580fd5b8380fd5b5080fd5b6101e1565b80fd5b8780fd5b634e487b7160e01b600052604160045260246000fd5b6040810190811067ffffffffffffffff8211176101d557604052565b6020810190811067ffffffffffffffff8211176101d557604052565b90601f8019910116810190811067ffffffffffffffff8211176101d557604052565b359060ff8216820361025f57565b600080fd5b67ffffffffffffffff81116101d557601f01601f191660200190565b608090600319011261025f5760405167ffffffffffffffff60808201818111838210176101d557604052600435825260243560208301526044356040830152606435908116810361025f57606082015290565b60206102e66102e136610280565b6109a1565b604051908152f35b6102f736610280565b60016020610304836109a1565b92015160c01c0167ffffffffffffffff8111610340576040516001600160c01b0390921660c09190911b6001600160c01b031916178152602090f35b634e487b7160e01b600052601160045260246000fd5b60005b8381106103695750506000910152565b8181015183820152602001610359565b9060208282031261025f57815167ffffffffffffffff9283821161025f57019160208383031261025f57604051926103b084610213565b805191821161025f570181601f8201121561025f5780516103d081610264565b926103de604051948561022f565b8184526020828401011161025f576103fc9160208085019101610356565b815290565b6040513d6000823e3d90fd5b9060209161042681518092818552858086019101610356565b601f01601f1916010190565b9060ff6104536020929594956040855251836040860152606085019061040d565b9416910152565b805182101561046e5760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b9061ffff6104536020929594956040855251836040860152606085019061040d565b90916104c56104d393604084525160206040850152606084019061040d565b91602081840391015261040d565b90565b9081602091031261025f575190565b60406104d392602083525191602080820152019061040d565b906104d39261051e6020926040855251836040860152606085019061040d565b92828185039101525191818152019061040d565b73__$871508ae888325252fdba23f15f3f16064$__906040805191635ca2159160e11b91828452600094600486868281855af495861561072257879661095d575b5073__$46bbbc6398365a8909166570292cf8d34e$__946105b48861059a60805160ff1690565b86518093819263f2f2044f60e01b9c8d8452888401610432565b03818a5af480156107225789918291610943575b5060a05160ff16986105e487519a8b9384938452878401610432565b0381895af4968715610722578897610927575b50835190815287818381865af490811561072257889161090d575b509087915b60c080518051851015610763578a61063e610635876106589461045a565b515161ffff1690565b885180938192632b62c68560e21b97888452898401610484565b03818c5af4908115610722578b91610749575b508a60209161068a8361067f89875161045a565b5101515161ffff1690565b9461069f8a5196879384938452898401610484565b03818c5af490811561072257858c936106e2958594610727575b50906106c5915161045a565b5101518751638353c19960e01b81529384928392908784016104a6565b0381875af48015610722576001918a91610700575b50920191610617565b61071c91503d808c833e610714818361022f565b810190610379565b386106f7565b610401565b6106c592919450610741903d8088833e610714818361022f565b9390916106b9565b61075d91503d808d833e610714818361022f565b3861066b565b5050939594979661079a919392508761078060c0515161ffff1690565b885180948192632b62c68560e21b95868452898401610484565b0381895af49182156107225788926108f1575b508651634f36c63960e11b81526020968782806107cc8a8a83016104e5565b0381885af48015610722578a9361ffff9385926108d2575b506107fd8b5196879586948594855216908a8401610484565b03915af49384156107225761082f94889283916108b8575b5087516334feb4f760e21b815295869283928784016104fe565b0381845af491821561072257610861958594889461089c575b50518096819482936308b9b14760e11b845283016104e5565b03915af4928315610722579261087657505090565b6104d39250803d10610895575b61088d818361022f565b8101906104d6565b503d610883565b6108b19194503d808a833e610714818361022f565b9238610848565b6108cc91503d8085833e610714818361022f565b38610815565b6108ea9192508a3d8c116108955761088d818361022f565b90386107e4565b6109069192503d808a833e610714818361022f565b90386107ad565b61092191503d808a833e610714818361022f565b38610612565b61093c9197503d808a833e610714818361022f565b95386105f7565b61095791503d8084833e610714818361022f565b386105c8565b6109729196503d8089833e610714818361022f565b9438610573565b9067ffffffffffffffff6104536020929594956040855251836040860152606085019061040d565b604051635ca2159160e11b815260009173__$871508ae888325252fdba23f15f3f16064$__918381600481865af491821561072257610a156060610a056109fa610a319689968791610ac3575b50602086015190610add565b604085015190610add565b92015167ffffffffffffffff1690565b6040516375a2a7e360e01b815293849283929060048401610979565b038173__$46bbbc6398365a8909166570292cf8d34e$__5af4801561072257610a7a926020928592610aa7575b5060405180809581946308b9b14760e11b8352600483016104e5565b03915af49182156107225791610a8e575090565b6104d3915060203d6020116108955761088d818361022f565b610abc9192503d8087833e610714818361022f565b9038610a5e565b610ad791503d8089833e610714818361022f565b386109ee565b610b23916000916060604051610af281610213565b5260405191610b00836101f7565b6020808452830152604051638353c19960e01b81529384928392600484016104a6565b038173__$871508ae888325252fdba23f15f3f16064$__5af490811561072257600091610b4e575090565b6104d391503d806000833e610714818361022f56fea264697066735822122051aee6a8eb63b12a6380265cd4312100af1440fed698f5d4eb5ee9c2b90ff30164736f6c63430008190033",
138
+ "deployedBytecode": "0x604060808152600436101561001357600080fd5b6000803560e01c91826366f86af81461004c5750508063a41872d0146100475763ee37a9951461004257600080fd5b6102ee565b6102d3565b600319602036820181136101cd576004359067ffffffffffffffff928383116101c95760609083360301126101c55761008560e0604052565b61009182600401610251565b60805260246100a260248401610251565b60a0526044926044810135908582116101dd570195366023880112156101da576004870135948086116101d5578560051b918751966100e38685018961022f565b87526024858801938a0101933685116101d15760248a01935b858510610126576101228a8a60c052610113610532565b90519081529081906020820190565b0390f35b84358481116101cd578b018a60231982360301126101cd578a519061014a826101f7565b8381013561ffff811681036101c957825289810135908682116101c95701366043820112156101c55780848d9201359061018f61018683610264565b9351938461022f565b818352368c83830101116101c15791868b83819795948f839896018386013783010152838201528152019401936100fc565b8680fd5b8480fd5b8580fd5b8380fd5b5080fd5b6101e1565b80fd5b8780fd5b634e487b7160e01b600052604160045260246000fd5b6040810190811067ffffffffffffffff8211176101d557604052565b6020810190811067ffffffffffffffff8211176101d557604052565b90601f8019910116810190811067ffffffffffffffff8211176101d557604052565b359060ff8216820361025f57565b600080fd5b67ffffffffffffffff81116101d557601f01601f191660200190565b608090600319011261025f5760405167ffffffffffffffff60808201818111838210176101d557604052600435825260243560208301526044356040830152606435908116810361025f57606082015290565b60206102e66102e136610280565b6109a1565b604051908152f35b6102f736610280565b60016020610304836109a1565b92015160c01c0167ffffffffffffffff8111610340576040516001600160c01b0390921660c09190911b6001600160c01b031916178152602090f35b634e487b7160e01b600052601160045260246000fd5b60005b8381106103695750506000910152565b8181015183820152602001610359565b9060208282031261025f57815167ffffffffffffffff9283821161025f57019160208383031261025f57604051926103b084610213565b805191821161025f570181601f8201121561025f5780516103d081610264565b926103de604051948561022f565b8184526020828401011161025f576103fc9160208085019101610356565b815290565b6040513d6000823e3d90fd5b9060209161042681518092818552858086019101610356565b601f01601f1916010190565b9060ff6104536020929594956040855251836040860152606085019061040d565b9416910152565b805182101561046e5760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b9061ffff6104536020929594956040855251836040860152606085019061040d565b90916104c56104d393604084525160206040850152606084019061040d565b91602081840391015261040d565b90565b9081602091031261025f575190565b60406104d392602083525191602080820152019061040d565b906104d39261051e6020926040855251836040860152606085019061040d565b92828185039101525191818152019061040d565b73__$871508ae888325252fdba23f15f3f16064$__906040805191635ca2159160e11b91828452600094600486868281855af495861561072257879661095d575b5073__$46bbbc6398365a8909166570292cf8d34e$__946105b48861059a60805160ff1690565b86518093819263f2f2044f60e01b9c8d8452888401610432565b03818a5af480156107225789918291610943575b5060a05160ff16986105e487519a8b9384938452878401610432565b0381895af4968715610722578897610927575b50835190815287818381865af490811561072257889161090d575b509087915b60c080518051851015610763578a61063e610635876106589461045a565b515161ffff1690565b885180938192632b62c68560e21b97888452898401610484565b03818c5af4908115610722578b91610749575b508a60209161068a8361067f89875161045a565b5101515161ffff1690565b9461069f8a5196879384938452898401610484565b03818c5af490811561072257858c936106e2958594610727575b50906106c5915161045a565b5101518751638353c19960e01b81529384928392908784016104a6565b0381875af48015610722576001918a91610700575b50920191610617565b61071c91503d808c833e610714818361022f565b810190610379565b386106f7565b610401565b6106c592919450610741903d8088833e610714818361022f565b9390916106b9565b61075d91503d808d833e610714818361022f565b3861066b565b5050939594979661079a919392508761078060c0515161ffff1690565b885180948192632b62c68560e21b95868452898401610484565b0381895af49182156107225788926108f1575b508651634f36c63960e11b81526020968782806107cc8a8a83016104e5565b0381885af48015610722578a9361ffff9385926108d2575b506107fd8b5196879586948594855216908a8401610484565b03915af49384156107225761082f94889283916108b8575b5087516334feb4f760e21b815295869283928784016104fe565b0381845af491821561072257610861958594889461089c575b50518096819482936308b9b14760e11b845283016104e5565b03915af4928315610722579261087657505090565b6104d39250803d10610895575b61088d818361022f565b8101906104d6565b503d610883565b6108b19194503d808a833e610714818361022f565b9238610848565b6108cc91503d8085833e610714818361022f565b38610815565b6108ea9192508a3d8c116108955761088d818361022f565b90386107e4565b6109069192503d808a833e610714818361022f565b90386107ad565b61092191503d808a833e610714818361022f565b38610612565b61093c9197503d808a833e610714818361022f565b95386105f7565b61095791503d8084833e610714818361022f565b386105c8565b6109729196503d8089833e610714818361022f565b9438610573565b9067ffffffffffffffff6104536020929594956040855251836040860152606085019061040d565b604051635ca2159160e11b815260009173__$871508ae888325252fdba23f15f3f16064$__918381600481865af491821561072257610a156060610a056109fa610a319689968791610ac3575b50602086015190610add565b604085015190610add565b92015167ffffffffffffffff1690565b6040516375a2a7e360e01b815293849283929060048401610979565b038173__$46bbbc6398365a8909166570292cf8d34e$__5af4801561072257610a7a926020928592610aa7575b5060405180809581946308b9b14760e11b8352600483016104e5565b03915af49182156107225791610a8e575090565b6104d3915060203d6020116108955761088d818361022f565b610abc9192503d8087833e610714818361022f565b9038610a5e565b610ad791503d8089833e610714818361022f565b386109ee565b610b23916000916060604051610af281610213565b5260405191610b00836101f7565b6020808452830152604051638353c19960e01b81529384928392600484016104a6565b038173__$871508ae888325252fdba23f15f3f16064$__5af490811561072257600091610b4e575090565b6104d391503d806000833e610714818361022f56fea264697066735822122051aee6a8eb63b12a6380265cd4312100af1440fed698f5d4eb5ee9c2b90ff30164736f6c63430008190033",
139
+ "linkReferences": {
140
+ "contracts/common/iodata.sol": {
141
+ "iodata": [
142
+ {
143
+ "length": 20,
144
+ "start": 1363
145
+ },
146
+ {
147
+ "length": 20,
148
+ "start": 2514
149
+ },
150
+ {
151
+ "length": 20,
152
+ "start": 2886
153
+ }
154
+ ]
155
+ },
156
+ "contracts/common/sysio_write.sol": {
157
+ "sysio_write": [
158
+ {
159
+ "length": 20,
160
+ "start": 1429
161
+ },
162
+ {
163
+ "length": 20,
164
+ "start": 2644
165
+ }
166
+ ]
167
+ }
168
+ },
169
+ "deployedLinkReferences": {
170
+ "contracts/common/iodata.sol": {
171
+ "iodata": [
172
+ {
173
+ "length": 20,
174
+ "start": 1332
175
+ },
176
+ {
177
+ "length": 20,
178
+ "start": 2483
179
+ },
180
+ {
181
+ "length": 20,
182
+ "start": 2855
183
+ }
184
+ ]
185
+ },
186
+ "contracts/common/sysio_write.sol": {
187
+ "sysio_write": [
188
+ {
189
+ "length": 20,
190
+ "start": 1398
191
+ },
192
+ {
193
+ "length": 20,
194
+ "start": 2613
195
+ }
196
+ ]
197
+ }
198
+ }
199
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/ed9aaec874c02fdb46b7a115ba311ca3.json"
4
+ }