@n1xyz/nord-ts 0.0.1 → 0.0.5

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 (260) hide show
  1. package/README.md +148 -65
  2. package/dist/bridge/client.d.ts +150 -0
  3. package/dist/bridge/client.js +394 -0
  4. package/dist/bridge/const.d.ts +23 -0
  5. package/dist/bridge/const.js +47 -0
  6. package/dist/bridge/index.d.ts +5 -0
  7. package/dist/bridge/index.js +23 -0
  8. package/dist/bridge/types.d.ts +118 -0
  9. package/dist/bridge/types.js +16 -0
  10. package/dist/bridge/utils.d.ts +64 -0
  11. package/dist/bridge/utils.js +131 -0
  12. package/dist/const.d.ts +2 -5
  13. package/dist/const.js +2 -6
  14. package/dist/gen/common.d.ts +6 -1
  15. package/dist/gen/common.js +19 -9
  16. package/dist/gen/nord.d.ts +76 -21
  17. package/dist/gen/nord.js +987 -423
  18. package/dist/idl/bridge.d.ts +2 -0
  19. package/dist/idl/bridge.js +703 -0
  20. package/dist/index.d.ts +5 -2
  21. package/dist/index.js +18 -2
  22. package/dist/nord/{actions.d.ts → api/actions.d.ts} +6 -6
  23. package/dist/nord/{actions.js → api/actions.js} +6 -10
  24. package/dist/nord/api/core.d.ts +49 -0
  25. package/dist/nord/api/core.js +121 -0
  26. package/dist/nord/api/market.d.ts +36 -0
  27. package/dist/nord/api/market.js +98 -0
  28. package/dist/nord/api/metrics.d.ts +67 -0
  29. package/dist/nord/api/metrics.js +132 -0
  30. package/dist/nord/api/queries.d.ts +81 -0
  31. package/dist/nord/api/queries.js +187 -0
  32. package/dist/nord/client/Nord.d.ts +335 -0
  33. package/dist/nord/client/Nord.js +532 -0
  34. package/dist/nord/client/NordUser.d.ts +320 -0
  35. package/dist/nord/client/NordUser.js +697 -0
  36. package/dist/nord/index.d.ts +9 -2
  37. package/dist/nord/index.js +30 -6
  38. package/dist/nord/models/Subscriber.d.ts +37 -0
  39. package/dist/nord/models/Subscriber.js +25 -0
  40. package/dist/nord/utils/NordError.d.ts +35 -0
  41. package/dist/nord/utils/NordError.js +46 -0
  42. package/dist/types.d.ts +143 -86
  43. package/dist/types.js +12 -1
  44. package/dist/utils.d.ts +9 -0
  45. package/dist/utils.js +20 -1
  46. package/dist/websocket/NordWebSocketClient.d.ts +71 -0
  47. package/dist/websocket/NordWebSocketClient.js +343 -0
  48. package/dist/websocket/events.d.ts +19 -0
  49. package/dist/websocket/events.js +2 -0
  50. package/dist/websocket/index.d.ts +2 -0
  51. package/dist/websocket/index.js +5 -0
  52. package/docs/assets/hierarchy.js +1 -0
  53. package/docs/assets/highlight.css +16 -16
  54. package/docs/assets/icons.js +17 -14
  55. package/docs/assets/icons.svg +1 -1
  56. package/docs/assets/main.js +5 -4
  57. package/docs/assets/navigation.js +1 -1
  58. package/docs/assets/search.js +1 -1
  59. package/docs/assets/style.css +1423 -1227
  60. package/docs/classes/Nord.html +189 -43
  61. package/docs/classes/NordError.html +24 -0
  62. package/docs/classes/NordUser.html +120 -35
  63. package/docs/classes/NordWebSocketClient.html +335 -0
  64. package/docs/classes/SolanaBridgeClient.html +86 -0
  65. package/docs/classes/Subscriber.html +10 -6
  66. package/docs/enums/FillMode.html +5 -5
  67. package/docs/enums/KeyType.html +4 -4
  68. package/docs/enums/MetricPeriod.html +9 -0
  69. package/docs/enums/PdaSeedType.html +9 -0
  70. package/docs/enums/PeakTpsPeriodUnit.html +7 -7
  71. package/docs/enums/Side.html +3 -3
  72. package/docs/enums/WebSocketMessageType.html +7 -0
  73. package/docs/functions/actionQueryRollman.html +6 -0
  74. package/docs/functions/actionsQueryRollman.html +6 -0
  75. package/docs/functions/aggregateMetrics-1.html +7 -0
  76. package/docs/functions/assert.html +1 -1
  77. package/docs/functions/bigIntToProtoU128.html +3 -3
  78. package/docs/functions/blockQueryRollman.html +6 -0
  79. package/docs/functions/blockSummaryQueryRollman.html +6 -0
  80. package/docs/functions/bridgeToBN.html +5 -0
  81. package/docs/functions/bufferToHex.html +4 -0
  82. package/docs/functions/cancelOrder.html +1 -0
  83. package/docs/functions/checkPubKeyLength.html +1 -1
  84. package/docs/functions/checkedFetch.html +4 -4
  85. package/docs/functions/createSession.html +1 -0
  86. package/docs/functions/decodeLengthDelimited.html +7 -6
  87. package/docs/functions/encodeLengthDelimited.html +4 -4
  88. package/docs/functions/fillModeToProtoFillMode.html +4 -4
  89. package/docs/functions/findMarket.html +1 -1
  90. package/docs/functions/findPda.html +6 -0
  91. package/docs/functions/findToken.html +1 -1
  92. package/docs/functions/fromBN.html +5 -0
  93. package/docs/functions/getAccount.html +6 -0
  94. package/docs/functions/getActionNonce.html +5 -0
  95. package/docs/functions/getCurrentTps.html +6 -0
  96. package/docs/functions/getInfo.html +5 -0
  97. package/docs/functions/getMedianLatency.html +6 -0
  98. package/docs/functions/getOrderbook.html +6 -0
  99. package/docs/functions/getPeakTps.html +6 -0
  100. package/docs/functions/getTimestamp.html +5 -0
  101. package/docs/functions/getTotalTransactions.html +5 -0
  102. package/docs/functions/getTrades.html +6 -0
  103. package/docs/functions/getUserAccountIds.html +6 -0
  104. package/docs/functions/hexToBuffer.html +4 -0
  105. package/docs/functions/initWebSocketClient.html +12 -0
  106. package/docs/functions/keypairFromPrivateKey.html +4 -0
  107. package/docs/functions/makeSigningFunction.html +4 -0
  108. package/docs/functions/makeWalletSignFn.html +5 -5
  109. package/docs/functions/marketsStats.html +5 -0
  110. package/docs/functions/optExpect.html +4 -4
  111. package/docs/functions/optMap.html +5 -5
  112. package/docs/functions/optUnwrap.html +2 -2
  113. package/docs/functions/panic.html +1 -1
  114. package/docs/functions/placeOrder.html +1 -0
  115. package/docs/functions/queryAction.html +6 -0
  116. package/docs/functions/queryBlock.html +6 -0
  117. package/docs/functions/queryLastNBlocks.html +5 -0
  118. package/docs/functions/queryPrometheus.html +6 -0
  119. package/docs/functions/queryRecentActions.html +6 -0
  120. package/docs/functions/queryRecentBlocks.html +6 -0
  121. package/docs/functions/revokeSession.html +1 -0
  122. package/docs/functions/shortenPublicKey.html +5 -0
  123. package/docs/functions/signAction.html +2 -2
  124. package/docs/functions/toBN.html +5 -0
  125. package/docs/functions/toScaledU128.html +5 -5
  126. package/docs/functions/toScaledU64.html +5 -5
  127. package/docs/functions/transfer.html +1 -0
  128. package/docs/functions/withdraw.html +1 -0
  129. package/docs/hierarchy.html +1 -0
  130. package/docs/index.html +39 -20
  131. package/docs/interfaces/Account.html +8 -8
  132. package/docs/interfaces/ActionInfo.html +8 -8
  133. package/docs/interfaces/ActionNonceResponse.html +3 -0
  134. package/docs/interfaces/ActionQuery.html +4 -4
  135. package/docs/interfaces/ActionResponse.html +8 -8
  136. package/docs/interfaces/ActionsExtendedInfo.html +10 -10
  137. package/docs/interfaces/ActionsQuery.html +5 -5
  138. package/docs/interfaces/ActionsResponse.html +6 -6
  139. package/docs/interfaces/AggregateMetrics.html +12 -12
  140. package/docs/interfaces/BlockFacts.html +10 -0
  141. package/docs/interfaces/BlockQuery.html +6 -6
  142. package/docs/interfaces/BlockResponse.html +6 -6
  143. package/docs/interfaces/BlockSummary.html +8 -8
  144. package/docs/interfaces/BlockSummaryResponse.html +6 -6
  145. package/docs/interfaces/DeltaEvent.html +6 -6
  146. package/docs/interfaces/DepositSplParams.html +10 -0
  147. package/docs/interfaces/Info.html +3 -3
  148. package/docs/interfaces/Market.html +8 -6
  149. package/docs/interfaces/MarketStats.html +7 -7
  150. package/docs/interfaces/MarketsStatsResponse.html +2 -2
  151. package/docs/interfaces/NordConfig.html +14 -5
  152. package/docs/interfaces/NordWebSocketClientEvents.html +4 -0
  153. package/docs/interfaces/NordWebSocketEvents.html +8 -0
  154. package/docs/interfaces/Order.html +6 -6
  155. package/docs/interfaces/OrderInfo.html +6 -6
  156. package/docs/interfaces/OrderbookEntry.html +4 -0
  157. package/docs/interfaces/OrderbookQuery.html +6 -0
  158. package/docs/interfaces/OrderbookResponse.html +6 -10
  159. package/docs/interfaces/OrderbookSubscription.html +159 -0
  160. package/docs/interfaces/PerpMarketStats.html +5 -5
  161. package/docs/interfaces/RollmanActionExtendedInfo.html +4 -4
  162. package/docs/interfaces/RollmanActionInfo.html +4 -4
  163. package/docs/interfaces/RollmanActionResponse.html +4 -4
  164. package/docs/interfaces/RollmanActionsResponse.html +2 -2
  165. package/docs/interfaces/RollmanBlockResponse.html +3 -3
  166. package/docs/interfaces/SPLTokenInfo.html +10 -0
  167. package/docs/interfaces/SolanaBridgeConfig.html +10 -0
  168. package/docs/interfaces/StateFacts.html +10 -0
  169. package/docs/interfaces/SubscriberConfig.html +3 -3
  170. package/docs/interfaces/TimestampResponse.html +3 -0
  171. package/docs/interfaces/Token.html +5 -5
  172. package/docs/interfaces/TokenInfo.html +5 -0
  173. package/docs/interfaces/Trade.html +5 -5
  174. package/docs/interfaces/TradeSubscription.html +159 -0
  175. package/docs/interfaces/Trades.html +5 -5
  176. package/docs/interfaces/TradesQuery.html +6 -0
  177. package/docs/interfaces/TradesResponse.html +7 -12
  178. package/docs/interfaces/TransferParams.html +8 -0
  179. package/docs/interfaces/UserAccountIdsQuery.html +3 -0
  180. package/docs/interfaces/UserAccountIdsResponse.html +3 -0
  181. package/docs/interfaces/WebSocketDeltaUpdate.html +9 -0
  182. package/docs/interfaces/WebSocketSubscription.html +4 -0
  183. package/docs/interfaces/WebSocketTradeUpdate.html +6 -0
  184. package/docs/interfaces/WebSocketUserUpdate.html +6 -0
  185. package/docs/interfaces/WithdrawalClaim.html +14 -0
  186. package/docs/interfaces/WithdrawalParams.html +8 -0
  187. package/docs/modules.html +1 -77
  188. package/docs/types/BigIntValue.html +2 -2
  189. package/docs/types/WebSocketMessage.html +1 -0
  190. package/docs/variables/DEBUG_KEYS.html +1 -1
  191. package/docs/variables/DEFAULT_FUNDING_AMOUNTS.html +1 -1
  192. package/docs/variables/DEV_TOKEN_INFOS.html +1 -1
  193. package/docs/variables/DEV_URL.html +1 -1
  194. package/docs/variables/MAX_BUFFER_LEN.html +1 -1
  195. package/docs/variables/SESSION_TTL.html +1 -1
  196. package/docs/variables/WEBSERVER_DEV_URL.html +1 -1
  197. package/docs/variables/ZERO_DECIMAL.html +1 -1
  198. package/docs/variables/_private.html +2 -0
  199. package/eslint.config.mjs +66 -0
  200. package/package.json +20 -23
  201. package/src/bridge/client.ts +487 -0
  202. package/src/bridge/const.ts +53 -0
  203. package/src/bridge/index.ts +7 -0
  204. package/src/bridge/types.ts +127 -0
  205. package/src/bridge/utils.ts +140 -0
  206. package/src/const.ts +4 -9
  207. package/src/gen/common.ts +27 -10
  208. package/src/gen/nord.ts +1045 -487
  209. package/src/idl/bridge.ts +702 -0
  210. package/src/index.ts +21 -2
  211. package/src/nord/{actions.ts → api/actions.ts} +12 -16
  212. package/src/nord/api/core.ts +130 -0
  213. package/src/nord/api/market.ts +125 -0
  214. package/src/nord/api/metrics.ts +154 -0
  215. package/src/nord/api/queries.ts +236 -0
  216. package/src/nord/client/Nord.ts +652 -0
  217. package/src/nord/client/NordUser.ts +1101 -0
  218. package/src/nord/index.ts +16 -2
  219. package/src/nord/models/Subscriber.ts +56 -0
  220. package/src/nord/utils/NordError.ts +72 -0
  221. package/src/types.ts +163 -92
  222. package/src/utils.ts +22 -1
  223. package/src/websocket/NordWebSocketClient.ts +432 -0
  224. package/src/websocket/events.ts +31 -0
  225. package/src/websocket/index.ts +2 -0
  226. package/tsconfig.eslint.json +12 -0
  227. package/.eslintignore +0 -1
  228. package/.eslintrc.js +0 -20
  229. package/dist/abis/ERC20_ABI.d.ts +0 -39
  230. package/dist/abis/ERC20_ABI.js +0 -313
  231. package/dist/abis/NORD_GETTERS_FACET_ABI.d.ts +0 -34
  232. package/dist/abis/NORD_GETTERS_FACET_ABI.js +0 -195
  233. package/dist/abis/NORD_RAMP_FACET_ABI.d.ts +0 -35
  234. package/dist/abis/NORD_RAMP_FACET_ABI.js +0 -144
  235. package/dist/abis/index.d.ts +0 -3
  236. package/dist/abis/index.js +0 -9
  237. package/dist/nord/Nord.d.ts +0 -76
  238. package/dist/nord/Nord.js +0 -376
  239. package/dist/nord/NordImpl.d.ts +0 -7
  240. package/dist/nord/NordImpl.js +0 -6
  241. package/dist/nord/NordUser.d.ts +0 -77
  242. package/dist/nord/NordUser.js +0 -249
  243. package/docs/functions/createWebSocketSubscription.html +0 -12
  244. package/docs/interfaces/ERC20TokenInfo.html +0 -5
  245. package/docs/interfaces/OrderbookOrder.html +0 -6
  246. package/docs/interfaces/TradeInfo.html +0 -20
  247. package/docs/interfaces/TradesQueryParams.html +0 -10
  248. package/docs/variables/DEV_CONTRACT_ADDRESS.html +0 -1
  249. package/docs/variables/ERC20_ABI.html +0 -1
  250. package/docs/variables/EVM_DEV_URL.html +0 -1
  251. package/docs/variables/FAUCET_PRIVATE_ADDRESS.html +0 -1
  252. package/docs/variables/NORD_GETTERS_FACET_ABI.html +0 -1
  253. package/docs/variables/NORD_RAMP_FACET_ABI.html +0 -1
  254. package/src/abis/ERC20_ABI.ts +0 -310
  255. package/src/abis/NORD_GETTERS_FACET_ABI.ts +0 -192
  256. package/src/abis/NORD_RAMP_FACET_ABI.ts +0 -141
  257. package/src/abis/index.ts +0 -3
  258. package/src/nord/Nord.ts +0 -504
  259. package/src/nord/NordImpl.ts +0 -8
  260. package/src/nord/NordUser.ts +0 -469
@@ -1,313 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ERC20_ABI = void 0;
4
- exports.ERC20_ABI = [
5
- {
6
- type: "function",
7
- name: "allowance",
8
- inputs: [
9
- {
10
- name: "owner",
11
- type: "address",
12
- internalType: "address",
13
- },
14
- {
15
- name: "spender",
16
- type: "address",
17
- internalType: "address",
18
- },
19
- ],
20
- outputs: [
21
- {
22
- name: "",
23
- type: "uint256",
24
- internalType: "uint256",
25
- },
26
- ],
27
- stateMutability: "view",
28
- },
29
- {
30
- type: "function",
31
- name: "approve",
32
- inputs: [
33
- {
34
- name: "spender",
35
- type: "address",
36
- internalType: "address",
37
- },
38
- {
39
- name: "value",
40
- type: "uint256",
41
- internalType: "uint256",
42
- },
43
- ],
44
- outputs: [
45
- {
46
- name: "",
47
- type: "bool",
48
- internalType: "bool",
49
- },
50
- ],
51
- stateMutability: "nonpayable",
52
- },
53
- {
54
- type: "function",
55
- name: "balanceOf",
56
- inputs: [
57
- {
58
- name: "account",
59
- type: "address",
60
- internalType: "address",
61
- },
62
- ],
63
- outputs: [
64
- {
65
- name: "",
66
- type: "uint256",
67
- internalType: "uint256",
68
- },
69
- ],
70
- stateMutability: "view",
71
- },
72
- {
73
- type: "function",
74
- name: "decimals",
75
- inputs: [],
76
- outputs: [
77
- {
78
- name: "",
79
- type: "uint8",
80
- internalType: "uint8",
81
- },
82
- ],
83
- stateMutability: "view",
84
- },
85
- {
86
- type: "function",
87
- name: "name",
88
- inputs: [],
89
- outputs: [
90
- {
91
- name: "",
92
- type: "string",
93
- internalType: "string",
94
- },
95
- ],
96
- stateMutability: "view",
97
- },
98
- {
99
- type: "function",
100
- name: "symbol",
101
- inputs: [],
102
- outputs: [
103
- {
104
- name: "",
105
- type: "string",
106
- internalType: "string",
107
- },
108
- ],
109
- stateMutability: "view",
110
- },
111
- {
112
- type: "function",
113
- name: "totalSupply",
114
- inputs: [],
115
- outputs: [
116
- {
117
- name: "",
118
- type: "uint256",
119
- internalType: "uint256",
120
- },
121
- ],
122
- stateMutability: "view",
123
- },
124
- {
125
- type: "function",
126
- name: "transfer",
127
- inputs: [
128
- {
129
- name: "to",
130
- type: "address",
131
- internalType: "address",
132
- },
133
- {
134
- name: "value",
135
- type: "uint256",
136
- internalType: "uint256",
137
- },
138
- ],
139
- outputs: [
140
- {
141
- name: "",
142
- type: "bool",
143
- internalType: "bool",
144
- },
145
- ],
146
- stateMutability: "nonpayable",
147
- },
148
- {
149
- type: "function",
150
- name: "transferFrom",
151
- inputs: [
152
- {
153
- name: "from",
154
- type: "address",
155
- internalType: "address",
156
- },
157
- {
158
- name: "to",
159
- type: "address",
160
- internalType: "address",
161
- },
162
- {
163
- name: "value",
164
- type: "uint256",
165
- internalType: "uint256",
166
- },
167
- ],
168
- outputs: [
169
- {
170
- name: "",
171
- type: "bool",
172
- internalType: "bool",
173
- },
174
- ],
175
- stateMutability: "nonpayable",
176
- },
177
- {
178
- type: "event",
179
- name: "Approval",
180
- inputs: [
181
- {
182
- name: "owner",
183
- type: "address",
184
- indexed: true,
185
- internalType: "address",
186
- },
187
- {
188
- name: "spender",
189
- type: "address",
190
- indexed: true,
191
- internalType: "address",
192
- },
193
- {
194
- name: "value",
195
- type: "uint256",
196
- indexed: false,
197
- internalType: "uint256",
198
- },
199
- ],
200
- anonymous: false,
201
- },
202
- {
203
- type: "event",
204
- name: "Transfer",
205
- inputs: [
206
- {
207
- name: "from",
208
- type: "address",
209
- indexed: true,
210
- internalType: "address",
211
- },
212
- {
213
- name: "to",
214
- type: "address",
215
- indexed: true,
216
- internalType: "address",
217
- },
218
- {
219
- name: "value",
220
- type: "uint256",
221
- indexed: false,
222
- internalType: "uint256",
223
- },
224
- ],
225
- anonymous: false,
226
- },
227
- {
228
- type: "error",
229
- name: "ERC20InsufficientAllowance",
230
- inputs: [
231
- {
232
- name: "spender",
233
- type: "address",
234
- internalType: "address",
235
- },
236
- {
237
- name: "allowance",
238
- type: "uint256",
239
- internalType: "uint256",
240
- },
241
- {
242
- name: "needed",
243
- type: "uint256",
244
- internalType: "uint256",
245
- },
246
- ],
247
- },
248
- {
249
- type: "error",
250
- name: "ERC20InsufficientBalance",
251
- inputs: [
252
- {
253
- name: "sender",
254
- type: "address",
255
- internalType: "address",
256
- },
257
- {
258
- name: "balance",
259
- type: "uint256",
260
- internalType: "uint256",
261
- },
262
- {
263
- name: "needed",
264
- type: "uint256",
265
- internalType: "uint256",
266
- },
267
- ],
268
- },
269
- {
270
- type: "error",
271
- name: "ERC20InvalidApprover",
272
- inputs: [
273
- {
274
- name: "approver",
275
- type: "address",
276
- internalType: "address",
277
- },
278
- ],
279
- },
280
- {
281
- type: "error",
282
- name: "ERC20InvalidReceiver",
283
- inputs: [
284
- {
285
- name: "receiver",
286
- type: "address",
287
- internalType: "address",
288
- },
289
- ],
290
- },
291
- {
292
- type: "error",
293
- name: "ERC20InvalidSender",
294
- inputs: [
295
- {
296
- name: "sender",
297
- type: "address",
298
- internalType: "address",
299
- },
300
- ],
301
- },
302
- {
303
- type: "error",
304
- name: "ERC20InvalidSpender",
305
- inputs: [
306
- {
307
- name: "spender",
308
- type: "address",
309
- internalType: "address",
310
- },
311
- ],
312
- },
313
- ];
@@ -1,34 +0,0 @@
1
- export declare const NORD_GETTERS_FACET_ABI: ({
2
- type: string;
3
- name: string;
4
- inputs: {
5
- name: string;
6
- type: string;
7
- internalType: string;
8
- }[];
9
- outputs: {
10
- name: string;
11
- type: string;
12
- internalType: string;
13
- }[];
14
- stateMutability: string;
15
- } | {
16
- type: string;
17
- name: string;
18
- inputs: {
19
- name: string;
20
- type: string;
21
- internalType: string;
22
- }[];
23
- outputs: {
24
- name: string;
25
- type: string;
26
- internalType: string;
27
- components: {
28
- name: string;
29
- type: string;
30
- internalType: string;
31
- }[];
32
- }[];
33
- stateMutability: string;
34
- })[];
@@ -1,195 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NORD_GETTERS_FACET_ABI = void 0;
4
- exports.NORD_GETTERS_FACET_ABI = [
5
- {
6
- type: "function",
7
- name: "getActionId",
8
- inputs: [],
9
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
10
- stateMutability: "view",
11
- },
12
- {
13
- type: "function",
14
- name: "getActionNonce",
15
- inputs: [],
16
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
17
- stateMutability: "view",
18
- },
19
- {
20
- type: "function",
21
- name: "getAssetInfo",
22
- inputs: [{ name: "assetId", type: "uint256", internalType: "uint256" }],
23
- outputs: [
24
- { name: "addr", type: "address", internalType: "address" },
25
- {
26
- name: "decimals",
27
- type: "uint8",
28
- internalType: "uint8",
29
- },
30
- { name: "added", type: "bool", internalType: "bool" },
31
- ],
32
- stateMutability: "view",
33
- },
34
- {
35
- type: "function",
36
- name: "getBlockId",
37
- inputs: [],
38
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
39
- stateMutability: "view",
40
- },
41
- {
42
- type: "function",
43
- name: "getCurrentStateHash",
44
- inputs: [],
45
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
46
- stateMutability: "view",
47
- },
48
- {
49
- type: "function",
50
- name: "getDAFactRegistry",
51
- inputs: [],
52
- outputs: [{ name: "", type: "address", internalType: "address" }],
53
- stateMutability: "view",
54
- },
55
- {
56
- type: "function",
57
- name: "getFraudProofParticipant",
58
- inputs: [{ name: "index", type: "uint256", internalType: "uint256" }],
59
- outputs: [{ name: "", type: "address", internalType: "address" }],
60
- stateMutability: "view",
61
- },
62
- {
63
- type: "function",
64
- name: "getFraudProofParticipantCount",
65
- inputs: [],
66
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
67
- stateMutability: "view",
68
- },
69
- {
70
- type: "function",
71
- name: "getFraudProofParticipants",
72
- inputs: [],
73
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
74
- stateMutability: "view",
75
- },
76
- {
77
- type: "function",
78
- name: "getLastFinalizedStateUpdateInfo",
79
- inputs: [],
80
- outputs: [
81
- { name: "blockId", type: "uint64", internalType: "uint64" },
82
- {
83
- name: "actionId",
84
- type: "uint64",
85
- internalType: "uint64",
86
- },
87
- { name: "currentStateHash", type: "uint256", internalType: "uint256" },
88
- ],
89
- stateMutability: "view",
90
- },
91
- {
92
- type: "function",
93
- name: "getNextProposedBlockId",
94
- inputs: [],
95
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
96
- stateMutability: "view",
97
- },
98
- {
99
- type: "function",
100
- name: "getOperator",
101
- inputs: [{ name: "index", type: "uint256", internalType: "uint256" }],
102
- outputs: [{ name: "", type: "address", internalType: "address" }],
103
- stateMutability: "view",
104
- },
105
- {
106
- type: "function",
107
- name: "getOperatorCount",
108
- inputs: [],
109
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
110
- stateMutability: "view",
111
- },
112
- {
113
- type: "function",
114
- name: "getOperators",
115
- inputs: [],
116
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
117
- stateMutability: "view",
118
- },
119
- {
120
- type: "function",
121
- name: "getPendingDeposit",
122
- inputs: [
123
- { name: "owner", type: "bytes", internalType: "bytes" },
124
- {
125
- name: "assetId",
126
- type: "uint256",
127
- internalType: "uint256",
128
- },
129
- ],
130
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
131
- stateMutability: "view",
132
- },
133
- {
134
- type: "function",
135
- name: "getPendingFacts",
136
- inputs: [{ name: "blockId", type: "uint256", internalType: "uint256" }],
137
- outputs: [
138
- {
139
- name: "",
140
- type: "tuple",
141
- internalType: "struct Types.StateUpdateFacts",
142
- components: [
143
- {
144
- name: "prevStateHash",
145
- type: "uint256",
146
- internalType: "uint256",
147
- },
148
- {
149
- name: "pendingStateHash",
150
- type: "uint256",
151
- internalType: "uint256",
152
- },
153
- {
154
- name: "daFact",
155
- type: "uint256",
156
- internalType: "uint256",
157
- },
158
- {
159
- name: "onchainUpdatesHash",
160
- type: "uint256",
161
- internalType: "uint256",
162
- },
163
- { name: "startingActionId", type: "uint64", internalType: "uint64" },
164
- {
165
- name: "endingActionId",
166
- type: "uint64",
167
- internalType: "uint64",
168
- },
169
- ],
170
- },
171
- ],
172
- stateMutability: "view",
173
- },
174
- {
175
- type: "function",
176
- name: "getPendingWithdrawal",
177
- inputs: [
178
- { name: "owner", type: "address", internalType: "address" },
179
- {
180
- name: "assetId",
181
- type: "uint256",
182
- internalType: "uint256",
183
- },
184
- ],
185
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
186
- stateMutability: "view",
187
- },
188
- {
189
- type: "function",
190
- name: "getStateFactRegistry",
191
- inputs: [],
192
- outputs: [{ name: "", type: "address", internalType: "address" }],
193
- stateMutability: "view",
194
- },
195
- ];
@@ -1,35 +0,0 @@
1
- export declare const NORD_RAMP_FACET_ABI: ({
2
- type: string;
3
- name: string;
4
- inputs: {
5
- name: string;
6
- type: string;
7
- internalType: string;
8
- }[];
9
- outputs: never[];
10
- stateMutability: string;
11
- anonymous?: undefined;
12
- } | {
13
- type: string;
14
- name: string;
15
- inputs: {
16
- name: string;
17
- type: string;
18
- indexed: boolean;
19
- internalType: string;
20
- }[];
21
- anonymous: boolean;
22
- outputs?: undefined;
23
- stateMutability?: undefined;
24
- } | {
25
- type: string;
26
- name: string;
27
- inputs: {
28
- name: string;
29
- type: string;
30
- internalType: string;
31
- }[];
32
- outputs?: undefined;
33
- stateMutability?: undefined;
34
- anonymous?: undefined;
35
- })[];