@aeternity/aepp-sdk 14.0.0 → 14.1.0

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 (205) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +11 -19
  3. package/dist/aepp-sdk.browser-script.cjs +1 -1
  4. package/dist/aepp-sdk.browser-script.cjs.LICENSE.txt +2 -0
  5. package/dist/aepp-sdk.browser-script.cjs.map +1 -1
  6. package/dist/aepp-sdk.browser.cjs +1 -1
  7. package/dist/aepp-sdk.browser.cjs.map +1 -1
  8. package/dist/aepp-sdk.cjs +11678 -6969
  9. package/dist/aepp-sdk.cjs.map +1 -1
  10. package/es/AeSdkBase.d.ts +10 -1
  11. package/es/AeSdkBase.js +12 -2
  12. package/es/AeSdkBase.js.map +1 -1
  13. package/es/AeSdkMethods.d.ts +1 -1
  14. package/es/AeSdkMethods.js.map +1 -1
  15. package/es/AeSdkWallet.js +1 -1
  16. package/es/AeSdkWallet.js.map +1 -1
  17. package/es/Middleware.d.ts +5 -1
  18. package/es/Middleware.js +7 -2
  19. package/es/Middleware.js.map +1 -1
  20. package/es/MiddlewareSubscriber.d.ts +3 -0
  21. package/es/MiddlewareSubscriber.js +4 -0
  22. package/es/MiddlewareSubscriber.js.map +1 -1
  23. package/es/Node.d.ts +6 -1
  24. package/es/Node.js +28 -4
  25. package/es/Node.js.map +1 -1
  26. package/es/account/Base.d.ts +12 -0
  27. package/es/account/Base.js +1 -0
  28. package/es/account/Base.js.map +1 -1
  29. package/es/account/BaseFactory.d.ts +1 -0
  30. package/es/account/BaseFactory.js +1 -0
  31. package/es/account/BaseFactory.js.map +1 -1
  32. package/es/account/Generalized.d.ts +5 -0
  33. package/es/account/Generalized.js +9 -0
  34. package/es/account/Generalized.js.map +1 -1
  35. package/es/account/Ledger.d.ts +5 -0
  36. package/es/account/Ledger.js +9 -0
  37. package/es/account/Ledger.js.map +1 -1
  38. package/es/account/LedgerFactory.d.ts +2 -0
  39. package/es/account/LedgerFactory.js +10 -4
  40. package/es/account/LedgerFactory.js.map +1 -1
  41. package/es/account/Memory.d.ts +5 -0
  42. package/es/account/Memory.js +14 -5
  43. package/es/account/Memory.js.map +1 -1
  44. package/es/account/Metamask.d.ts +8 -0
  45. package/es/account/Metamask.js +13 -0
  46. package/es/account/Metamask.js.map +1 -1
  47. package/es/account/MetamaskFactory.d.ts +20 -2
  48. package/es/account/MetamaskFactory.js +93 -39
  49. package/es/account/MetamaskFactory.js.map +1 -1
  50. package/es/account/MnemonicFactory.d.ts +12 -2
  51. package/es/account/MnemonicFactory.js +48 -24
  52. package/es/account/MnemonicFactory.js.map +1 -1
  53. package/es/account/Rpc.d.ts +5 -0
  54. package/es/account/Rpc.js +8 -0
  55. package/es/account/Rpc.js.map +1 -1
  56. package/es/aens.d.ts +25 -5
  57. package/es/aens.js +52 -18
  58. package/es/aens.js.map +1 -1
  59. package/es/aepp-wallet-communication/connection/BrowserRuntime.d.ts +1 -1
  60. package/es/aepp-wallet-communication/connection/BrowserRuntime.js.map +1 -1
  61. package/es/apis/middleware/middleware.d.ts +99 -9
  62. package/es/apis/middleware/middleware.js +560 -91
  63. package/es/apis/middleware/middleware.js.map +1 -1
  64. package/es/apis/middleware/models/index.d.ts +1267 -1582
  65. package/es/apis/middleware/models/index.js +1 -1363
  66. package/es/apis/middleware/models/index.js.map +1 -1
  67. package/es/apis/middleware/models/mappers.d.ts +126 -56
  68. package/es/apis/middleware/models/mappers.js +6250 -2989
  69. package/es/apis/middleware/models/mappers.js.map +1 -1
  70. package/es/apis/middleware/models/parameters.d.ts +54 -33
  71. package/es/apis/middleware/models/parameters.js +389 -134
  72. package/es/apis/middleware/models/parameters.js.map +1 -1
  73. package/es/apis/node/models/index.d.ts +60 -15
  74. package/es/apis/node/models/index.js.map +1 -1
  75. package/es/apis/node/models/mappers.d.ts +3 -0
  76. package/es/apis/node/models/mappers.js +130 -2
  77. package/es/apis/node/models/mappers.js.map +1 -1
  78. package/es/apis/node/node.d.ts +13 -1
  79. package/es/apis/node/node.js +54 -0
  80. package/es/apis/node/node.js.map +1 -1
  81. package/es/chain.d.ts +19 -6
  82. package/es/chain.js +30 -24
  83. package/es/chain.js.map +1 -1
  84. package/es/channel/Contract.d.ts +6 -3
  85. package/es/channel/Contract.js +5 -2
  86. package/es/channel/Contract.js.map +1 -1
  87. package/es/channel/Spend.d.ts +1 -1
  88. package/es/channel/Spend.js.map +1 -1
  89. package/es/channel/handlers.js +1 -2
  90. package/es/channel/handlers.js.map +1 -1
  91. package/es/channel/internal.d.ts +1 -1
  92. package/es/channel/internal.js +2 -2
  93. package/es/channel/internal.js.map +1 -1
  94. package/es/contract/Contract.d.ts +13 -2
  95. package/es/contract/Contract.js +22 -12
  96. package/es/contract/Contract.js.map +1 -1
  97. package/es/contract/compiler/Base.d.ts +1 -0
  98. package/es/contract/compiler/Base.js +1 -0
  99. package/es/contract/compiler/Base.js.map +1 -1
  100. package/es/contract/compiler/Cli.d.ts +2 -1
  101. package/es/contract/compiler/Cli.js +11 -9
  102. package/es/contract/compiler/Cli.js.map +1 -1
  103. package/es/contract/compiler/Http.d.ts +2 -1
  104. package/es/contract/compiler/Http.js +3 -2
  105. package/es/contract/compiler/Http.js.map +1 -1
  106. package/es/contract/compiler/getFileSystem.d.ts +1 -0
  107. package/es/contract/compiler/getFileSystem.js +1 -0
  108. package/es/contract/compiler/getFileSystem.js.map +1 -1
  109. package/es/contract/ga.d.ts +3 -3
  110. package/es/contract/ga.js +3 -3
  111. package/es/contract/ga.js.map +1 -1
  112. package/es/index-browser.d.ts +32 -2
  113. package/es/index-browser.js +32 -2
  114. package/es/index-browser.js.map +1 -1
  115. package/es/oracle/Oracle.d.ts +10 -1
  116. package/es/oracle/Oracle.js +16 -6
  117. package/es/oracle/Oracle.js.map +1 -1
  118. package/es/oracle/OracleBase.d.ts +15 -2
  119. package/es/oracle/OracleBase.js +23 -1
  120. package/es/oracle/OracleBase.js.map +1 -1
  121. package/es/oracle/OracleClient.d.ts +3 -0
  122. package/es/oracle/OracleClient.js +6 -1
  123. package/es/oracle/OracleClient.js.map +1 -1
  124. package/es/spend.js +1 -1
  125. package/es/spend.js.map +1 -1
  126. package/es/tx/builder/common.js +6 -3
  127. package/es/tx/builder/common.js.map +1 -1
  128. package/es/tx/builder/constants.d.ts +53 -3
  129. package/es/tx/builder/constants.js +62 -12
  130. package/es/tx/builder/constants.js.map +1 -1
  131. package/es/tx/builder/delegation/schema.js +15 -0
  132. package/es/tx/builder/delegation/schema.js.map +1 -1
  133. package/es/tx/builder/entry/constants.d.ts +4 -1
  134. package/es/tx/builder/entry/constants.js +10 -1
  135. package/es/tx/builder/entry/constants.js.map +1 -1
  136. package/es/tx/builder/entry/index.js +1 -2
  137. package/es/tx/builder/entry/index.js.map +1 -1
  138. package/es/tx/builder/field-types/ct-version.js +1 -2
  139. package/es/tx/builder/field-types/ct-version.js.map +1 -1
  140. package/es/tx/builder/field-types/fee.d.ts +1 -1
  141. package/es/tx/builder/field-types/fee.js +4 -4
  142. package/es/tx/builder/field-types/fee.js.map +1 -1
  143. package/es/tx/builder/field-types/gas-price.d.ts +3 -0
  144. package/es/tx/builder/field-types/gas-price.js +1 -1
  145. package/es/tx/builder/field-types/gas-price.js.map +1 -1
  146. package/es/tx/builder/field-types/name-fee.js +1 -1
  147. package/es/tx/builder/field-types/name-fee.js.map +1 -1
  148. package/es/tx/builder/field-types/name-id.js +2 -2
  149. package/es/tx/builder/field-types/name-id.js.map +1 -1
  150. package/es/tx/builder/field-types/nonce.d.ts +1 -1
  151. package/es/tx/builder/field-types/nonce.js.map +1 -1
  152. package/es/tx/builder/field-types/pointers.js +3 -3
  153. package/es/tx/builder/field-types/pointers.js.map +1 -1
  154. package/es/tx/builder/field-types/ttl.js +1 -2
  155. package/es/tx/builder/field-types/ttl.js.map +1 -1
  156. package/es/tx/builder/helpers.d.ts +18 -12
  157. package/es/tx/builder/helpers.js +25 -17
  158. package/es/tx/builder/helpers.js.map +1 -1
  159. package/es/tx/builder/schema.d.ts +27 -24
  160. package/es/tx/builder/schema.generated.d.ts +12 -12
  161. package/es/tx/builder/schema.generated.js.map +1 -1
  162. package/es/tx/builder/schema.js +5 -3
  163. package/es/tx/builder/schema.js.map +1 -1
  164. package/es/tx/execution-cost.d.ts +3 -0
  165. package/es/tx/execution-cost.js +7 -4
  166. package/es/tx/execution-cost.js.map +1 -1
  167. package/es/tx/transaction-signer.d.ts +1 -0
  168. package/es/tx/transaction-signer.js +1 -0
  169. package/es/tx/transaction-signer.js.map +1 -1
  170. package/es/tx/validator.js +4 -3
  171. package/es/tx/validator.js.map +1 -1
  172. package/es/utils/MiddlewarePage.d.ts +4 -3
  173. package/es/utils/MiddlewarePage.js.map +1 -1
  174. package/es/utils/amount-formatter.d.ts +15 -1
  175. package/es/utils/amount-formatter.js +17 -1
  176. package/es/utils/amount-formatter.js.map +1 -1
  177. package/es/utils/autorest.d.ts +1 -1
  178. package/es/utils/autorest.js +10 -4
  179. package/es/utils/autorest.js.map +1 -1
  180. package/es/utils/bignumber.d.ts +1 -1
  181. package/es/utils/bignumber.js +1 -1
  182. package/es/utils/bignumber.js.map +1 -1
  183. package/es/utils/bytes.d.ts +3 -1
  184. package/es/utils/bytes.js +3 -1
  185. package/es/utils/bytes.js.map +1 -1
  186. package/es/utils/crypto.d.ts +48 -15
  187. package/es/utils/crypto.js +80 -29
  188. package/es/utils/crypto.js.map +1 -1
  189. package/es/utils/encoder-types.d.ts +1 -1
  190. package/es/utils/encoder-types.js +1 -1
  191. package/es/utils/encoder-types.js.map +1 -1
  192. package/es/utils/encoder.d.ts +2 -0
  193. package/es/utils/encoder.js +2 -0
  194. package/es/utils/encoder.js.map +1 -1
  195. package/es/utils/errors.d.ts +2 -2
  196. package/es/utils/errors.js +2 -2
  197. package/es/utils/errors.js.map +1 -1
  198. package/es/utils/json-big.js +1 -1
  199. package/es/utils/json-big.js.map +1 -1
  200. package/es/utils/jwt.js +3 -3
  201. package/es/utils/jwt.js.map +1 -1
  202. package/es/utils/typed-data.d.ts +5 -0
  203. package/es/utils/typed-data.js +6 -0
  204. package/es/utils/typed-data.js.map +1 -1
  205. package/package.json +50 -51
@@ -20,29 +20,6 @@ export const $host = {
20
20
  },
21
21
  skipEncoding: true
22
22
  };
23
- export const limit = {
24
- parameterPath: ["options", "limit"],
25
- mapper: {
26
- defaultValue: 10,
27
- constraints: {
28
- InclusiveMaximum: 100,
29
- InclusiveMinimum: 1
30
- },
31
- serializedName: "limit",
32
- type: {
33
- name: "Number"
34
- }
35
- }
36
- };
37
- export const direction = {
38
- parameterPath: ["options", "direction"],
39
- mapper: {
40
- serializedName: "direction",
41
- type: {
42
- name: "String"
43
- }
44
- }
45
- };
46
23
  export const accountId = {
47
24
  parameterPath: "accountId",
48
25
  mapper: {
@@ -56,78 +33,78 @@ export const accountId = {
56
33
  }
57
34
  }
58
35
  };
59
- export const contract = {
60
- parameterPath: ["options", "contract"],
36
+ export const ownedOnly = {
37
+ parameterPath: ["options", "ownedOnly"],
61
38
  mapper: {
62
- constraints: {
63
- Pattern: new RegExp("^ct_\\w{38,50}$")
64
- },
65
- serializedName: "contract",
39
+ serializedName: "owned_only",
66
40
  type: {
67
- name: "String"
41
+ name: "Boolean"
68
42
  }
69
43
  }
70
44
  };
71
- export const direction1 = {
72
- parameterPath: ["options", "direction"],
45
+ export const typeParam = {
46
+ parameterPath: ["options", "type"],
73
47
  mapper: {
74
- serializedName: "direction",
48
+ serializedName: "type",
75
49
  type: {
76
- name: "String"
50
+ name: "Enum",
51
+ allowedValues: ["transactions", "aexn", "aex9", "aex141", "contract", "transfers", "claims", "swaps"]
77
52
  }
78
53
  }
79
54
  };
80
- export const accountId1 = {
81
- parameterPath: "accountId",
55
+ export const limit = {
56
+ parameterPath: ["options", "limit"],
82
57
  mapper: {
58
+ defaultValue: 10,
83
59
  constraints: {
84
- Pattern: new RegExp("^ak_\\w{38,50}$")
60
+ InclusiveMaximum: 100,
61
+ InclusiveMinimum: 1
85
62
  },
86
- serializedName: "account_id",
87
- required: true,
63
+ serializedName: "limit",
88
64
  type: {
89
- name: "String"
65
+ name: "Number"
90
66
  }
91
67
  }
92
68
  };
93
- export const id = {
94
- parameterPath: "id",
69
+ export const scope = {
70
+ parameterPath: ["options", "scope"],
95
71
  mapper: {
96
72
  constraints: {
97
- Pattern: new RegExp("^ak_\\w{38,50}$")
73
+ Pattern: new RegExp("(gen):\\d+(-\\d+)?")
98
74
  },
99
- serializedName: "id",
100
- required: true,
75
+ serializedName: "scope",
101
76
  type: {
102
77
  name: "String"
103
78
  }
104
79
  }
105
80
  };
106
- export const ownedOnly = {
107
- parameterPath: ["options", "ownedOnly"],
81
+ export const direction = {
82
+ parameterPath: ["options", "direction"],
108
83
  mapper: {
109
- serializedName: "owned_only",
84
+ serializedName: "direction",
110
85
  type: {
111
- name: "Boolean"
86
+ name: "Enum",
87
+ allowedValues: ["forward", "backward"]
112
88
  }
113
89
  }
114
90
  };
115
- export const typeParam = {
116
- parameterPath: ["options", "type"],
91
+ export const direction1 = {
92
+ parameterPath: ["options", "direction"],
117
93
  mapper: {
118
- serializedName: "type",
94
+ serializedName: "direction",
119
95
  type: {
120
- name: "String"
96
+ name: "Enum",
97
+ allowedValues: ["forward", "backward"]
121
98
  }
122
99
  }
123
100
  };
124
- export const scope = {
125
- parameterPath: ["options", "scope"],
101
+ export const contract = {
102
+ parameterPath: ["options", "contract"],
126
103
  mapper: {
127
104
  constraints: {
128
- Pattern: new RegExp("(txi|gen):\\d+(-\\d+)?")
105
+ Pattern: new RegExp("^ct_\\w{38,50}$")
129
106
  },
130
- serializedName: "scope",
107
+ serializedName: "contract",
131
108
  type: {
132
109
  name: "String"
133
110
  }
@@ -138,7 +115,8 @@ export const direction2 = {
138
115
  mapper: {
139
116
  serializedName: "direction",
140
117
  type: {
141
- name: "String"
118
+ name: "Enum",
119
+ allowedValues: ["forward", "backward"]
142
120
  }
143
121
  }
144
122
  };
@@ -147,7 +125,18 @@ export const direction3 = {
147
125
  mapper: {
148
126
  serializedName: "direction",
149
127
  type: {
150
- name: "String"
128
+ name: "Enum",
129
+ allowedValues: ["forward", "backward"]
130
+ }
131
+ }
132
+ };
133
+ export const direction4 = {
134
+ parameterPath: ["options", "direction"],
135
+ mapper: {
136
+ serializedName: "direction",
137
+ type: {
138
+ name: "Enum",
139
+ allowedValues: ["forward", "backward"]
151
140
  }
152
141
  }
153
142
  };
@@ -156,7 +145,8 @@ export const by = {
156
145
  mapper: {
157
146
  serializedName: "by",
158
147
  type: {
159
- name: "String"
148
+ name: "Enum",
149
+ allowedValues: ["creation", "name", "symbol"]
160
150
  }
161
151
  }
162
152
  };
@@ -178,12 +168,13 @@ export const exact = {
178
168
  }
179
169
  }
180
170
  };
181
- export const direction4 = {
171
+ export const direction5 = {
182
172
  parameterPath: ["options", "direction"],
183
173
  mapper: {
184
174
  serializedName: "direction",
185
175
  type: {
186
- name: "String"
176
+ name: "Enum",
177
+ allowedValues: ["forward", "backward"]
187
178
  }
188
179
  }
189
180
  };
@@ -200,12 +191,13 @@ export const contractId = {
200
191
  }
201
192
  }
202
193
  };
203
- export const direction5 = {
194
+ export const direction6 = {
204
195
  parameterPath: ["options", "direction"],
205
196
  mapper: {
206
197
  serializedName: "direction",
207
198
  type: {
208
- name: "String"
199
+ name: "Enum",
200
+ allowedValues: ["forward", "backward"]
209
201
  }
210
202
  }
211
203
  };
@@ -219,12 +211,13 @@ export const templateId = {
219
211
  }
220
212
  }
221
213
  };
222
- export const direction6 = {
214
+ export const direction7 = {
223
215
  parameterPath: ["options", "direction"],
224
216
  mapper: {
225
217
  serializedName: "direction",
226
218
  type: {
227
- name: "String"
219
+ name: "Enum",
220
+ allowedValues: ["forward", "backward"]
228
221
  }
229
222
  }
230
223
  };
@@ -238,12 +231,13 @@ export const tokenId = {
238
231
  }
239
232
  }
240
233
  };
241
- export const direction7 = {
234
+ export const direction8 = {
242
235
  parameterPath: ["options", "direction"],
243
236
  mapper: {
244
237
  serializedName: "direction",
245
238
  type: {
246
- name: "String"
239
+ name: "Enum",
240
+ allowedValues: ["forward", "backward"]
247
241
  }
248
242
  }
249
243
  };
@@ -271,7 +265,7 @@ export const to = {
271
265
  }
272
266
  }
273
267
  };
274
- export const id1 = {
268
+ export const id = {
275
269
  parameterPath: "id",
276
270
  mapper: {
277
271
  constraints: {
@@ -284,12 +278,13 @@ export const id1 = {
284
278
  }
285
279
  }
286
280
  };
287
- export const direction8 = {
281
+ export const direction9 = {
288
282
  parameterPath: ["options", "direction"],
289
283
  mapper: {
290
284
  serializedName: "direction",
291
285
  type: {
292
- name: "String"
286
+ name: "Enum",
287
+ allowedValues: ["forward", "backward"]
293
288
  }
294
289
  }
295
290
  };
@@ -298,16 +293,18 @@ export const by1 = {
298
293
  mapper: {
299
294
  serializedName: "by",
300
295
  type: {
301
- name: "String"
296
+ name: "Enum",
297
+ allowedValues: ["creation", "name", "symbol"]
302
298
  }
303
299
  }
304
300
  };
305
- export const direction9 = {
301
+ export const direction10 = {
306
302
  parameterPath: ["options", "direction"],
307
303
  mapper: {
308
304
  serializedName: "direction",
309
305
  type: {
310
- name: "String"
306
+ name: "Enum",
307
+ allowedValues: ["forward", "backward"]
311
308
  }
312
309
  }
313
310
  };
@@ -344,21 +341,23 @@ export const hash = {
344
341
  }
345
342
  }
346
343
  };
347
- export const direction10 = {
344
+ export const direction11 = {
348
345
  parameterPath: ["options", "direction"],
349
346
  mapper: {
350
347
  serializedName: "direction",
351
348
  type: {
352
- name: "String"
349
+ name: "Enum",
350
+ allowedValues: ["forward", "backward"]
353
351
  }
354
352
  }
355
353
  };
356
- export const direction11 = {
354
+ export const direction12 = {
357
355
  parameterPath: ["options", "direction"],
358
356
  mapper: {
359
357
  serializedName: "direction",
360
358
  type: {
361
- name: "String"
359
+ name: "Enum",
360
+ allowedValues: ["forward", "backward"]
362
361
  }
363
362
  }
364
363
  };
@@ -367,11 +366,12 @@ export const state = {
367
366
  mapper: {
368
367
  serializedName: "state",
369
368
  type: {
370
- name: "String"
369
+ name: "Enum",
370
+ allowedValues: ["active", "inactive"]
371
371
  }
372
372
  }
373
373
  };
374
- export const id2 = {
374
+ export const id1 = {
375
375
  parameterPath: "id",
376
376
  mapper: {
377
377
  constraints: {
@@ -384,12 +384,13 @@ export const id2 = {
384
384
  }
385
385
  }
386
386
  };
387
- export const direction12 = {
387
+ export const direction13 = {
388
388
  parameterPath: ["options", "direction"],
389
389
  mapper: {
390
390
  serializedName: "direction",
391
391
  type: {
392
- name: "String"
392
+ name: "Enum",
393
+ allowedValues: ["forward", "backward"]
393
394
  }
394
395
  }
395
396
  };
@@ -450,30 +451,33 @@ export const aexnArgs = {
450
451
  }
451
452
  }
452
453
  };
453
- export const direction13 = {
454
+ export const direction14 = {
454
455
  parameterPath: ["options", "direction"],
455
456
  mapper: {
456
457
  serializedName: "direction",
457
458
  type: {
458
- name: "String"
459
+ name: "Enum",
460
+ allowedValues: ["forward", "backward"]
459
461
  }
460
462
  }
461
463
  };
462
- export const direction14 = {
464
+ export const direction15 = {
463
465
  parameterPath: ["options", "direction"],
464
466
  mapper: {
465
467
  serializedName: "direction",
466
468
  type: {
467
- name: "String"
469
+ name: "Enum",
470
+ allowedValues: ["forward", "backward"]
468
471
  }
469
472
  }
470
473
  };
471
- export const direction15 = {
474
+ export const direction16 = {
472
475
  parameterPath: ["options", "direction"],
473
476
  mapper: {
474
477
  serializedName: "direction",
475
478
  type: {
476
- name: "String"
479
+ name: "Enum",
480
+ allowedValues: ["forward", "backward"]
477
481
  }
478
482
  }
479
483
  };
@@ -490,15 +494,101 @@ export const contractId2 = {
490
494
  }
491
495
  }
492
496
  };
493
- export const direction16 = {
497
+ export const direction17 = {
494
498
  parameterPath: ["options", "direction"],
495
499
  mapper: {
496
500
  serializedName: "direction",
501
+ type: {
502
+ name: "Enum",
503
+ allowedValues: ["forward", "backward"]
504
+ }
505
+ }
506
+ };
507
+ export const scope1 = {
508
+ parameterPath: ["options", "scope"],
509
+ mapper: {
510
+ constraints: {
511
+ Pattern: new RegExp("(epoch):\\d+(-\\d+)?")
512
+ },
513
+ serializedName: "scope",
497
514
  type: {
498
515
  name: "String"
499
516
  }
500
517
  }
501
518
  };
519
+ export const direction18 = {
520
+ parameterPath: ["options", "direction"],
521
+ mapper: {
522
+ serializedName: "direction",
523
+ type: {
524
+ name: "Enum",
525
+ allowedValues: ["forward", "backward"]
526
+ }
527
+ }
528
+ };
529
+ export const height = {
530
+ parameterPath: "height",
531
+ mapper: {
532
+ serializedName: "height",
533
+ required: true,
534
+ type: {
535
+ name: "Number"
536
+ }
537
+ }
538
+ };
539
+ export const direction19 = {
540
+ parameterPath: ["options", "direction"],
541
+ mapper: {
542
+ serializedName: "direction",
543
+ type: {
544
+ name: "Enum",
545
+ allowedValues: ["forward", "backward"]
546
+ }
547
+ }
548
+ };
549
+ export const validator = {
550
+ parameterPath: "validator",
551
+ mapper: {
552
+ constraints: {
553
+ Pattern: new RegExp("^ak_\\w{38,50}$")
554
+ },
555
+ serializedName: "validator",
556
+ required: true,
557
+ type: {
558
+ name: "String"
559
+ }
560
+ }
561
+ };
562
+ export const direction20 = {
563
+ parameterPath: ["options", "direction"],
564
+ mapper: {
565
+ serializedName: "direction",
566
+ type: {
567
+ name: "Enum",
568
+ allowedValues: ["forward", "backward"]
569
+ }
570
+ }
571
+ };
572
+ export const direction21 = {
573
+ parameterPath: ["options", "direction"],
574
+ mapper: {
575
+ serializedName: "direction",
576
+ type: {
577
+ name: "Enum",
578
+ allowedValues: ["forward", "backward"]
579
+ }
580
+ }
581
+ };
582
+ export const direction22 = {
583
+ parameterPath: ["options", "direction"],
584
+ mapper: {
585
+ serializedName: "direction",
586
+ type: {
587
+ name: "Enum",
588
+ allowedValues: ["forward", "backward"]
589
+ }
590
+ }
591
+ };
502
592
  export const hashOrKbi = {
503
593
  parameterPath: "hashOrKbi",
504
594
  mapper: {
@@ -509,12 +599,13 @@ export const hashOrKbi = {
509
599
  }
510
600
  }
511
601
  };
512
- export const direction17 = {
602
+ export const direction23 = {
513
603
  parameterPath: ["options", "direction"],
514
604
  mapper: {
515
605
  serializedName: "direction",
516
606
  type: {
517
- name: "String"
607
+ name: "Enum",
608
+ allowedValues: ["forward", "backward"]
518
609
  }
519
610
  }
520
611
  };
@@ -552,25 +643,27 @@ export const state1 = {
552
643
  }
553
644
  }
554
645
  };
555
- export const direction18 = {
646
+ export const direction24 = {
556
647
  parameterPath: ["options", "direction"],
557
648
  mapper: {
558
649
  serializedName: "direction",
559
650
  type: {
560
- name: "String"
651
+ name: "Enum",
652
+ allowedValues: ["forward", "backward"]
561
653
  }
562
654
  }
563
655
  };
564
- export const direction19 = {
656
+ export const direction25 = {
565
657
  parameterPath: ["options", "direction"],
566
658
  mapper: {
567
659
  serializedName: "direction",
568
660
  type: {
569
- name: "String"
661
+ name: "Enum",
662
+ allowedValues: ["forward", "backward"]
570
663
  }
571
664
  }
572
665
  };
573
- export const id3 = {
666
+ export const id2 = {
574
667
  parameterPath: "id",
575
668
  mapper: {
576
669
  serializedName: "id",
@@ -580,61 +673,67 @@ export const id3 = {
580
673
  }
581
674
  }
582
675
  };
583
- export const direction20 = {
676
+ export const direction26 = {
584
677
  parameterPath: ["options", "direction"],
585
678
  mapper: {
586
679
  serializedName: "direction",
587
680
  type: {
588
- name: "String"
681
+ name: "Enum",
682
+ allowedValues: ["forward", "backward"]
589
683
  }
590
684
  }
591
685
  };
592
- export const direction21 = {
686
+ export const direction27 = {
593
687
  parameterPath: ["options", "direction"],
594
688
  mapper: {
595
689
  serializedName: "direction",
596
690
  type: {
597
- name: "String"
691
+ name: "Enum",
692
+ allowedValues: ["forward", "backward"]
598
693
  }
599
694
  }
600
695
  };
601
- export const direction22 = {
696
+ export const direction28 = {
602
697
  parameterPath: ["options", "direction"],
603
698
  mapper: {
604
699
  serializedName: "direction",
605
700
  type: {
606
- name: "String"
701
+ name: "Enum",
702
+ allowedValues: ["forward", "backward"]
607
703
  }
608
704
  }
609
705
  };
610
- export const direction23 = {
706
+ export const direction29 = {
611
707
  parameterPath: ["options", "direction"],
612
708
  mapper: {
613
709
  serializedName: "direction",
614
710
  type: {
615
- name: "String"
711
+ name: "Enum",
712
+ allowedValues: ["forward", "backward"]
616
713
  }
617
714
  }
618
715
  };
619
- export const direction24 = {
716
+ export const direction30 = {
620
717
  parameterPath: ["options", "direction"],
621
718
  mapper: {
622
719
  serializedName: "direction",
623
720
  type: {
624
- name: "String"
721
+ name: "Enum",
722
+ allowedValues: ["forward", "backward"]
625
723
  }
626
724
  }
627
725
  };
628
- export const direction25 = {
726
+ export const direction31 = {
629
727
  parameterPath: ["options", "direction"],
630
728
  mapper: {
631
729
  serializedName: "direction",
632
730
  type: {
633
- name: "String"
731
+ name: "Enum",
732
+ allowedValues: ["forward", "backward"]
634
733
  }
635
734
  }
636
735
  };
637
- export const id4 = {
736
+ export const id3 = {
638
737
  parameterPath: "id",
639
738
  mapper: {
640
739
  constraints: {
@@ -652,7 +751,28 @@ export const intervalBy = {
652
751
  mapper: {
653
752
  serializedName: "interval_by",
654
753
  type: {
655
- name: "String"
754
+ name: "Enum",
755
+ allowedValues: ["day", "week", "month"]
756
+ }
757
+ }
758
+ };
759
+ export const direction32 = {
760
+ parameterPath: ["options", "direction"],
761
+ mapper: {
762
+ serializedName: "direction",
763
+ type: {
764
+ name: "Enum",
765
+ allowedValues: ["forward", "backward"]
766
+ }
767
+ }
768
+ };
769
+ export const intervalBy1 = {
770
+ parameterPath: ["options", "intervalBy"],
771
+ mapper: {
772
+ serializedName: "interval_by",
773
+ type: {
774
+ name: "Enum",
775
+ allowedValues: ["day", "week", "month"]
656
776
  }
657
777
  }
658
778
  };
@@ -674,75 +794,183 @@ export const maxStartDate = {
674
794
  }
675
795
  }
676
796
  };
797
+ export const direction33 = {
798
+ parameterPath: ["options", "direction"],
799
+ mapper: {
800
+ serializedName: "direction",
801
+ type: {
802
+ name: "Enum",
803
+ allowedValues: ["forward", "backward"]
804
+ }
805
+ }
806
+ };
807
+ export const intervalBy2 = {
808
+ parameterPath: ["options", "intervalBy"],
809
+ mapper: {
810
+ serializedName: "interval_by",
811
+ type: {
812
+ name: "Enum",
813
+ allowedValues: ["day", "week", "month"]
814
+ }
815
+ }
816
+ };
677
817
  export const typeParam1 = {
678
818
  parameterPath: ["options", "type"],
679
819
  mapper: {
680
820
  serializedName: "type",
681
821
  type: {
682
- name: "String"
822
+ name: "Enum",
823
+ allowedValues: ["key", "micro"]
683
824
  }
684
825
  }
685
826
  };
686
- export const direction26 = {
827
+ export const direction34 = {
687
828
  parameterPath: ["options", "direction"],
688
829
  mapper: {
689
830
  serializedName: "direction",
690
831
  type: {
691
- name: "String"
832
+ name: "Enum",
833
+ allowedValues: ["forward", "backward"]
692
834
  }
693
835
  }
694
836
  };
695
- export const direction27 = {
837
+ export const intervalBy3 = {
838
+ parameterPath: ["options", "intervalBy"],
839
+ mapper: {
840
+ serializedName: "interval_by",
841
+ type: {
842
+ name: "Enum",
843
+ allowedValues: ["day", "week", "month"]
844
+ }
845
+ }
846
+ };
847
+ export const direction35 = {
696
848
  parameterPath: ["options", "direction"],
697
849
  mapper: {
698
850
  serializedName: "direction",
699
851
  type: {
700
- name: "String"
852
+ name: "Enum",
853
+ allowedValues: ["forward", "backward"]
701
854
  }
702
855
  }
703
856
  };
704
- export const direction28 = {
857
+ export const direction36 = {
705
858
  parameterPath: ["options", "direction"],
706
859
  mapper: {
707
860
  serializedName: "direction",
708
861
  type: {
709
- name: "String"
862
+ name: "Enum",
863
+ allowedValues: ["forward", "backward"]
710
864
  }
711
865
  }
712
866
  };
713
- export const intervalBy1 = {
867
+ export const intervalBy4 = {
714
868
  parameterPath: ["options", "intervalBy"],
715
869
  mapper: {
716
870
  serializedName: "interval_by",
717
871
  type: {
718
- name: "String"
872
+ name: "Enum",
873
+ allowedValues: ["day", "week", "month"]
719
874
  }
720
875
  }
721
876
  };
722
- export const direction29 = {
877
+ export const direction37 = {
723
878
  parameterPath: ["options", "direction"],
724
879
  mapper: {
725
880
  serializedName: "direction",
726
881
  type: {
727
- name: "String"
882
+ name: "Enum",
883
+ allowedValues: ["forward", "backward"]
728
884
  }
729
885
  }
730
886
  };
731
- export const direction30 = {
887
+ export const intervalBy5 = {
888
+ parameterPath: ["options", "intervalBy"],
889
+ mapper: {
890
+ serializedName: "interval_by",
891
+ type: {
892
+ name: "Enum",
893
+ allowedValues: ["day", "week", "month"]
894
+ }
895
+ }
896
+ };
897
+ export const direction38 = {
732
898
  parameterPath: ["options", "direction"],
733
899
  mapper: {
734
900
  serializedName: "direction",
735
901
  type: {
736
- name: "String"
902
+ name: "Enum",
903
+ allowedValues: ["forward", "backward"]
737
904
  }
738
905
  }
739
906
  };
740
- export const intervalBy2 = {
907
+ export const direction39 = {
908
+ parameterPath: ["options", "direction"],
909
+ mapper: {
910
+ serializedName: "direction",
911
+ type: {
912
+ name: "Enum",
913
+ allowedValues: ["forward", "backward"]
914
+ }
915
+ }
916
+ };
917
+ export const intervalBy6 = {
741
918
  parameterPath: ["options", "intervalBy"],
742
919
  mapper: {
743
920
  serializedName: "interval_by",
744
921
  type: {
745
- name: "String"
922
+ name: "Enum",
923
+ allowedValues: ["day", "week", "month"]
924
+ }
925
+ }
926
+ };
927
+ export const direction40 = {
928
+ parameterPath: ["options", "direction"],
929
+ mapper: {
930
+ serializedName: "direction",
931
+ type: {
932
+ name: "Enum",
933
+ allowedValues: ["forward", "backward"]
934
+ }
935
+ }
936
+ };
937
+ export const direction41 = {
938
+ parameterPath: ["options", "direction"],
939
+ mapper: {
940
+ serializedName: "direction",
941
+ type: {
942
+ name: "Enum",
943
+ allowedValues: ["forward", "backward"]
944
+ }
945
+ }
946
+ };
947
+ export const intervalBy7 = {
948
+ parameterPath: ["options", "intervalBy"],
949
+ mapper: {
950
+ serializedName: "interval_by",
951
+ type: {
952
+ name: "Enum",
953
+ allowedValues: ["day", "week", "month"]
954
+ }
955
+ }
956
+ };
957
+ export const direction42 = {
958
+ parameterPath: ["options", "direction"],
959
+ mapper: {
960
+ serializedName: "direction",
961
+ type: {
962
+ name: "Enum",
963
+ allowedValues: ["forward", "backward"]
964
+ }
965
+ }
966
+ };
967
+ export const intervalBy8 = {
968
+ parameterPath: ["options", "intervalBy"],
969
+ mapper: {
970
+ serializedName: "interval_by",
971
+ type: {
972
+ name: "Enum",
973
+ allowedValues: ["day", "week", "month"]
746
974
  }
747
975
  }
748
976
  };
@@ -755,12 +983,13 @@ export const txType = {
755
983
  }
756
984
  }
757
985
  };
758
- export const direction31 = {
986
+ export const direction43 = {
759
987
  parameterPath: ["options", "direction"],
760
988
  mapper: {
761
989
  serializedName: "direction",
762
990
  type: {
763
- name: "String"
991
+ name: "Enum",
992
+ allowedValues: ["forward", "backward"]
764
993
  }
765
994
  }
766
995
  };
@@ -772,7 +1001,8 @@ export const typeParam2 = {
772
1001
  name: "Sequence",
773
1002
  element: {
774
1003
  type: {
775
- name: "String"
1004
+ name: "Enum",
1005
+ allowedValues: ["channel_close_mutual", "channel_close_solo", "channel_create", "channel_deposit", "channel_force_progress", "channel_offchain", "channel_settle", "channel_slash", "channel_snapshot_solo", "channel_withdraw", "contract_call", "contract_create", "ga_attach", "ga_meta", "name_claim", "name_preclaim", "name_revoke", "name_transfer", "name_update", "oracle_extend", "oracle_query", "oracle_register", "oracle_response", "paying_for", "spend"]
776
1006
  }
777
1007
  }
778
1008
  }
@@ -787,7 +1017,8 @@ export const typeGroup = {
787
1017
  name: "Sequence",
788
1018
  element: {
789
1019
  type: {
790
- name: "String"
1020
+ name: "Enum",
1021
+ allowedValues: ["channel", "contract", "ga", "name", "oracle", "paying_for", "spend"]
791
1022
  }
792
1023
  }
793
1024
  }
@@ -863,16 +1094,29 @@ export const entrypoint = {
863
1094
  }
864
1095
  }
865
1096
  };
866
- export const direction32 = {
1097
+ export const scope2 = {
1098
+ parameterPath: ["options", "scope"],
1099
+ mapper: {
1100
+ constraints: {
1101
+ Pattern: new RegExp("(time|gen):\\d+(-\\d+)?")
1102
+ },
1103
+ serializedName: "scope",
1104
+ type: {
1105
+ name: "String"
1106
+ }
1107
+ }
1108
+ };
1109
+ export const direction44 = {
867
1110
  parameterPath: ["options", "direction"],
868
1111
  mapper: {
869
1112
  serializedName: "direction",
870
1113
  type: {
871
- name: "String"
1114
+ name: "Enum",
1115
+ allowedValues: ["forward", "backward"]
872
1116
  }
873
1117
  }
874
1118
  };
875
- export const id5 = {
1119
+ export const id4 = {
876
1120
  parameterPath: ["options", "id"],
877
1121
  mapper: {
878
1122
  constraints: {
@@ -884,6 +1128,16 @@ export const id5 = {
884
1128
  }
885
1129
  }
886
1130
  };
1131
+ export const direction45 = {
1132
+ parameterPath: ["options", "direction"],
1133
+ mapper: {
1134
+ serializedName: "direction",
1135
+ type: {
1136
+ name: "Enum",
1137
+ allowedValues: ["forward", "backward"]
1138
+ }
1139
+ }
1140
+ };
887
1141
  export const hash2 = {
888
1142
  parameterPath: "hash",
889
1143
  mapper: {
@@ -897,12 +1151,13 @@ export const hash2 = {
897
1151
  }
898
1152
  }
899
1153
  };
900
- export const direction33 = {
1154
+ export const direction46 = {
901
1155
  parameterPath: ["options", "direction"],
902
1156
  mapper: {
903
1157
  serializedName: "direction",
904
1158
  type: {
905
- name: "String"
1159
+ name: "Enum",
1160
+ allowedValues: ["forward", "backward"]
906
1161
  }
907
1162
  }
908
1163
  };