@amadeus-protocol/sdk 1.0.7 → 1.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 (199) hide show
  1. package/dist/api/chain.d.ts +144 -117
  2. package/dist/api/chain.d.ts.map +1 -1
  3. package/dist/api/chain.js +175 -146
  4. package/dist/api/chain.js.map +1 -1
  5. package/dist/api/contract.d.ts +78 -60
  6. package/dist/api/contract.d.ts.map +1 -1
  7. package/dist/api/contract.js +102 -75
  8. package/dist/api/contract.js.map +1 -1
  9. package/dist/api/epoch.d.ts +65 -66
  10. package/dist/api/epoch.d.ts.map +1 -1
  11. package/dist/api/epoch.js +90 -98
  12. package/dist/api/epoch.js.map +1 -1
  13. package/dist/api/peer.d.ts +77 -78
  14. package/dist/api/peer.d.ts.map +1 -1
  15. package/dist/api/peer.js +93 -94
  16. package/dist/api/peer.js.map +1 -1
  17. package/dist/api/proof.d.ts +44 -23
  18. package/dist/api/proof.d.ts.map +1 -1
  19. package/dist/api/proof.js +56 -29
  20. package/dist/api/proof.js.map +1 -1
  21. package/dist/api/transaction.d.ts +68 -69
  22. package/dist/api/transaction.d.ts.map +1 -1
  23. package/dist/api/transaction.js +84 -84
  24. package/dist/api/transaction.js.map +1 -1
  25. package/dist/api/wallet.d.ts +36 -37
  26. package/dist/api/wallet.d.ts.map +1 -1
  27. package/dist/api/wallet.js +47 -50
  28. package/dist/api/wallet.js.map +1 -1
  29. package/dist/client.d.ts +66 -68
  30. package/dist/client.d.ts.map +1 -1
  31. package/dist/client.js +231 -276
  32. package/dist/client.js.map +1 -1
  33. package/dist/constants.d.ts +13 -10
  34. package/dist/constants.d.ts.map +1 -1
  35. package/dist/constants.js +49 -45
  36. package/dist/constants.js.map +1 -1
  37. package/dist/contract-state.d.ts +6 -3
  38. package/dist/contract-state.d.ts.map +1 -1
  39. package/dist/contract-state.js +88 -106
  40. package/dist/contract-state.js.map +1 -1
  41. package/dist/contracts/abi-types.d.ts +32 -32
  42. package/dist/contracts/abi-types.d.ts.map +1 -1
  43. package/dist/contracts/coin.d.ts +13 -20
  44. package/dist/contracts/coin.d.ts.map +1 -1
  45. package/dist/contracts/coin.js +42 -38
  46. package/dist/contracts/coin.js.map +1 -1
  47. package/dist/contracts/contract-call.d.ts +14 -16
  48. package/dist/contracts/contract-call.d.ts.map +1 -1
  49. package/dist/contracts/contract-call.js +45 -54
  50. package/dist/contracts/contract-call.js.map +1 -1
  51. package/dist/contracts/contract.d.ts +24 -55
  52. package/dist/contracts/contract.d.ts.map +1 -1
  53. package/dist/contracts/contract.js +63 -101
  54. package/dist/contracts/contract.js.map +1 -1
  55. package/dist/contracts/lockup/abi.d.ts +54 -51
  56. package/dist/contracts/lockup/abi.d.ts.map +1 -1
  57. package/dist/contracts/lockup/abi.js +65 -74
  58. package/dist/contracts/lockup/abi.js.map +1 -1
  59. package/dist/contracts/lockup/helpers.d.ts +22 -18
  60. package/dist/contracts/lockup/helpers.d.ts.map +1 -1
  61. package/dist/contracts/lockup/helpers.js +44 -47
  62. package/dist/contracts/lockup/helpers.js.map +1 -1
  63. package/dist/contracts/lockup/parsers.d.ts +7 -3
  64. package/dist/contracts/lockup/parsers.d.ts.map +1 -1
  65. package/dist/contracts/lockup/parsers.js +51 -55
  66. package/dist/contracts/lockup/parsers.js.map +1 -1
  67. package/dist/contracts/lockup/storage-keys.d.ts +5 -2
  68. package/dist/contracts/lockup/storage-keys.d.ts.map +1 -1
  69. package/dist/contracts/lockup/storage-keys.js +54 -70
  70. package/dist/contracts/lockup/storage-keys.js.map +1 -1
  71. package/dist/contracts/lockup/types.d.ts +73 -70
  72. package/dist/contracts/lockup/types.d.ts.map +1 -1
  73. package/dist/contracts/lockup-prime/abi.d.ts +328 -325
  74. package/dist/contracts/lockup-prime/abi.d.ts.map +1 -1
  75. package/dist/contracts/lockup-prime/abi.js +397 -417
  76. package/dist/contracts/lockup-prime/abi.js.map +1 -1
  77. package/dist/contracts/lockup-prime/helpers.d.ts +35 -31
  78. package/dist/contracts/lockup-prime/helpers.d.ts.map +1 -1
  79. package/dist/contracts/lockup-prime/helpers.js +131 -137
  80. package/dist/contracts/lockup-prime/helpers.js.map +1 -1
  81. package/dist/contracts/lockup-prime/parsers.d.ts +9 -5
  82. package/dist/contracts/lockup-prime/parsers.d.ts.map +1 -1
  83. package/dist/contracts/lockup-prime/parsers.js +61 -61
  84. package/dist/contracts/lockup-prime/parsers.js.map +1 -1
  85. package/dist/contracts/lockup-prime/storage-keys.d.ts +7 -4
  86. package/dist/contracts/lockup-prime/storage-keys.d.ts.map +1 -1
  87. package/dist/contracts/lockup-prime/storage-keys.js +64 -80
  88. package/dist/contracts/lockup-prime/storage-keys.js.map +1 -1
  89. package/dist/contracts/lockup-prime/types.d.ts +92 -89
  90. package/dist/contracts/lockup-prime/types.d.ts.map +1 -1
  91. package/dist/contracts/lockup-prime/types.js +12 -13
  92. package/dist/contracts/lockup-prime/types.js.map +1 -1
  93. package/dist/contracts/nft/abi.d.ts +104 -0
  94. package/dist/contracts/nft/abi.d.ts.map +1 -0
  95. package/dist/contracts/nft/abi.js +135 -0
  96. package/dist/contracts/nft/abi.js.map +1 -0
  97. package/dist/contracts/nft/helpers.d.ts +21 -0
  98. package/dist/contracts/nft/helpers.d.ts.map +1 -0
  99. package/dist/contracts/nft/helpers.js +61 -0
  100. package/dist/contracts/nft/helpers.js.map +1 -0
  101. package/dist/contracts/nft/types.d.ts +47 -0
  102. package/dist/contracts/nft/types.d.ts.map +1 -0
  103. package/dist/conversion.d.ts +5 -2
  104. package/dist/conversion.d.ts.map +1 -1
  105. package/dist/conversion.js +45 -50
  106. package/dist/conversion.js.map +1 -1
  107. package/dist/crypto.d.ts +14 -16
  108. package/dist/crypto.d.ts.map +1 -1
  109. package/dist/crypto.js +121 -140
  110. package/dist/crypto.js.map +1 -1
  111. package/dist/encoding.d.ts +11 -8
  112. package/dist/encoding.d.ts.map +1 -1
  113. package/dist/encoding.js +123 -144
  114. package/dist/encoding.js.map +1 -1
  115. package/dist/encryption.d.ts +15 -12
  116. package/dist/encryption.d.ts.map +1 -1
  117. package/dist/encryption.js +119 -117
  118. package/dist/encryption.js.map +1 -1
  119. package/dist/explorer.d.ts +10 -7
  120. package/dist/explorer.d.ts.map +1 -1
  121. package/dist/explorer.js +51 -48
  122. package/dist/explorer.js.map +1 -1
  123. package/dist/formatters.d.ts +8 -5
  124. package/dist/formatters.d.ts.map +1 -1
  125. package/dist/formatters.js +67 -68
  126. package/dist/formatters.js.map +1 -1
  127. package/dist/index.d.ts +42 -54
  128. package/dist/index.js +39 -54
  129. package/dist/mnemonic.d.ts +99 -0
  130. package/dist/mnemonic.d.ts.map +1 -0
  131. package/dist/mnemonic.js +119 -0
  132. package/dist/mnemonic.js.map +1 -0
  133. package/dist/networks.d.ts +14 -17
  134. package/dist/networks.d.ts.map +1 -1
  135. package/dist/networks.js +40 -36
  136. package/dist/networks.js.map +1 -1
  137. package/dist/schemas.js +75 -79
  138. package/dist/schemas.js.map +1 -1
  139. package/dist/sdk.d.ts +69 -65
  140. package/dist/sdk.d.ts.map +1 -1
  141. package/dist/sdk.js +126 -117
  142. package/dist/sdk.js.map +1 -1
  143. package/dist/serialization.d.ts +8 -18
  144. package/dist/serialization.d.ts.map +1 -1
  145. package/dist/serialization.js +207 -260
  146. package/dist/serialization.js.map +1 -1
  147. package/dist/signing.js +67 -67
  148. package/dist/signing.js.map +1 -1
  149. package/dist/transaction-builder.d.ts +175 -184
  150. package/dist/transaction-builder.d.ts.map +1 -1
  151. package/dist/transaction-builder.js +295 -344
  152. package/dist/transaction-builder.js.map +1 -1
  153. package/dist/transaction-errors.d.ts +10 -12
  154. package/dist/transaction-errors.d.ts.map +1 -1
  155. package/dist/transaction-errors.js +145 -166
  156. package/dist/transaction-errors.js.map +1 -1
  157. package/dist/types.d.ts +530 -450
  158. package/dist/types.d.ts.map +1 -1
  159. package/dist/types.js +169 -183
  160. package/dist/types.js.map +1 -1
  161. package/dist/validation.d.ts +24 -26
  162. package/dist/validation.d.ts.map +1 -1
  163. package/dist/validation.js +194 -192
  164. package/dist/validation.js.map +1 -1
  165. package/package.json +5 -3
  166. package/dist/api/index.d.ts +0 -8
  167. package/dist/api/index.d.ts.map +0 -1
  168. package/dist/api/index.js +0 -8
  169. package/dist/api/index.js.map +0 -1
  170. package/dist/contracts/abi-types.js +0 -8
  171. package/dist/contracts/abi-types.js.map +0 -1
  172. package/dist/contracts/index.d.ts +0 -7
  173. package/dist/contracts/index.d.ts.map +0 -1
  174. package/dist/contracts/index.js +0 -7
  175. package/dist/contracts/index.js.map +0 -1
  176. package/dist/contracts/lockup/calls.d.ts +0 -23
  177. package/dist/contracts/lockup/calls.d.ts.map +0 -1
  178. package/dist/contracts/lockup/calls.js +0 -25
  179. package/dist/contracts/lockup/calls.js.map +0 -1
  180. package/dist/contracts/lockup/index.d.ts +0 -6
  181. package/dist/contracts/lockup/index.d.ts.map +0 -1
  182. package/dist/contracts/lockup/index.js +0 -6
  183. package/dist/contracts/lockup/index.js.map +0 -1
  184. package/dist/contracts/lockup/types.js +0 -7
  185. package/dist/contracts/lockup/types.js.map +0 -1
  186. package/dist/contracts/lockup-prime/calls.d.ts +0 -53
  187. package/dist/contracts/lockup-prime/calls.d.ts.map +0 -1
  188. package/dist/contracts/lockup-prime/calls.js +0 -60
  189. package/dist/contracts/lockup-prime/calls.js.map +0 -1
  190. package/dist/contracts/lockup-prime/index.d.ts +0 -6
  191. package/dist/contracts/lockup-prime/index.d.ts.map +0 -1
  192. package/dist/contracts/lockup-prime/index.js +0 -6
  193. package/dist/contracts/lockup-prime/index.js.map +0 -1
  194. package/dist/index.d.ts.map +0 -1
  195. package/dist/index.js.map +0 -1
  196. package/dist/schemas.d.ts +0 -67
  197. package/dist/schemas.d.ts.map +0 -1
  198. package/dist/signing.d.ts +0 -39
  199. package/dist/signing.d.ts.map +0 -1
package/dist/api/epoch.js CHANGED
@@ -1,99 +1,91 @@
1
- /**
2
- * Epoch API
3
- *
4
- * Provides methods for querying epoch and validator information
5
- */
6
- import { Base58PublicKeySchema } from '../schemas';
7
- import { Schema } from 'effect';
8
- import { validate } from '../validation';
9
- export class EpochAPI {
10
- client;
11
- constructor(client) {
12
- this.client = client;
13
- }
14
- /**
15
- * Get epoch score for all validators or a specific validator
16
- *
17
- * @param publicKey - Optional validator public key (Base58 encoded)
18
- * @returns Promise resolving to epoch score(s)
19
- * @throws {Error} If public key is invalid
20
- *
21
- * @example
22
- * ```ts
23
- * // Get all scores
24
- * const scores = await sdk.epoch.getScore()
25
- *
26
- * // Get specific validator score
27
- * const score = await sdk.epoch.getScore('5Kd3N...')
28
- * ```
29
- */
30
- async getScore(publicKey) {
31
- if (publicKey) {
32
- validate(Base58PublicKeySchema, publicKey);
33
- }
34
- const url = publicKey ? `/api/epoch/score/${publicKey}` : '/api/epoch/score';
35
- return this.client.get(url);
36
- }
37
- /**
38
- * Get emission address for a public key
39
- *
40
- * @param publicKey - Validator public key (Base58 encoded)
41
- * @returns Promise resolving to emission address
42
- * @throws {Error} If public key is invalid
43
- *
44
- * @example
45
- * ```ts
46
- * const { emission_address } = await sdk.epoch.getEmissionAddress('5Kd3N...')
47
- * ```
48
- */
49
- async getEmissionAddress(publicKey) {
50
- validate(Base58PublicKeySchema, publicKey);
51
- return this.client.get(`/api/epoch/get_emission_address/${publicKey}`);
52
- }
53
- /**
54
- * Get solution in epoch
55
- *
56
- * @param epoch - Epoch number (must be >= 0)
57
- * @param solHash - Solution hash as string or Uint8Array
58
- * @returns Promise resolving to solution data
59
- * @throws {Error} If parameters are invalid
60
- *
61
- * @example
62
- * ```ts
63
- * const sol = await sdk.epoch.getSolInEpoch(100, '5Kd3N...')
64
- * ```
65
- */
66
- async getSolInEpoch(epoch, solHash) {
67
- validate(Schema.NonNegativeInt, epoch);
68
- if (!solHash) {
69
- throw new Error('Solution hash is required');
70
- }
71
- const hash = typeof solHash === 'string' ? solHash : solHash.toString();
72
- return this.client.get(`/api/epoch/sol_in_epoch/${epoch}/${hash}`);
73
- }
74
- /**
75
- * Get all epoch scores as array of [pk, score] tuples
76
- */
77
- async getAllScores() {
78
- const result = await this.getScore();
79
- return Array.isArray(result) ? result : [];
80
- }
81
- /**
82
- * Get epoch score for a specific validator
83
- */
84
- async getValidatorScore(publicKey) {
85
- const result = await this.getScore(publicKey);
86
- if (Array.isArray(result)) {
87
- throw new Error('Unexpected array response for single validator score');
88
- }
89
- return result.score;
90
- }
91
- /**
92
- * Get top validators by score
93
- */
94
- async getTopValidators(limit = 10) {
95
- const scores = await this.getAllScores();
96
- return scores.sort((a, b) => b[1] - a[1]).slice(0, limit);
97
- }
98
- }
1
+ import { validate } from "../validation.js";
2
+ import { Base58PublicKeySchema } from "../schemas.js";
3
+ import { Schema } from "effect";
4
+ //#region src/api/epoch.ts
5
+ var EpochAPI = class {
6
+ client;
7
+ constructor(client) {
8
+ this.client = client;
9
+ }
10
+ /**
11
+ * Get epoch score for all validators or a specific validator
12
+ *
13
+ * @param publicKey - Optional validator public key (Base58 encoded)
14
+ * @returns Promise resolving to epoch score(s)
15
+ * @throws {Error} If public key is invalid
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * // Get all scores
20
+ * const scores = await sdk.epoch.getScore()
21
+ *
22
+ * // Get specific validator score
23
+ * const score = await sdk.epoch.getScore('5Kd3N...')
24
+ * ```
25
+ */
26
+ async getScore(publicKey) {
27
+ if (publicKey) validate(Base58PublicKeySchema, publicKey);
28
+ const url = publicKey ? `/api/epoch/score/${publicKey}` : "/api/epoch/score";
29
+ return this.client.get(url);
30
+ }
31
+ /**
32
+ * Get emission address for a public key
33
+ *
34
+ * @param publicKey - Validator public key (Base58 encoded)
35
+ * @returns Promise resolving to emission address
36
+ * @throws {Error} If public key is invalid
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * const { emission_address } = await sdk.epoch.getEmissionAddress('5Kd3N...')
41
+ * ```
42
+ */
43
+ async getEmissionAddress(publicKey) {
44
+ validate(Base58PublicKeySchema, publicKey);
45
+ return this.client.get(`/api/epoch/get_emission_address/${publicKey}`);
46
+ }
47
+ /**
48
+ * Get solution in epoch
49
+ *
50
+ * @param epoch - Epoch number (must be >= 0)
51
+ * @param solHash - Solution hash as string or Uint8Array
52
+ * @returns Promise resolving to solution data
53
+ * @throws {Error} If parameters are invalid
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * const sol = await sdk.epoch.getSolInEpoch(100, '5Kd3N...')
58
+ * ```
59
+ */
60
+ async getSolInEpoch(epoch, solHash) {
61
+ validate(Schema.NonNegativeInt, epoch);
62
+ if (!solHash) throw new Error("Solution hash is required");
63
+ const hash = typeof solHash === "string" ? solHash : solHash.toString();
64
+ return this.client.get(`/api/epoch/sol_in_epoch/${epoch}/${hash}`);
65
+ }
66
+ /**
67
+ * Get all epoch scores as array of [pk, score] tuples
68
+ */
69
+ async getAllScores() {
70
+ const result = await this.getScore();
71
+ return Array.isArray(result) ? result : [];
72
+ }
73
+ /**
74
+ * Get epoch score for a specific validator
75
+ */
76
+ async getValidatorScore(publicKey) {
77
+ const result = await this.getScore(publicKey);
78
+ if (Array.isArray(result)) throw new Error("Unexpected array response for single validator score");
79
+ return result.score;
80
+ }
81
+ /**
82
+ * Get top validators by score
83
+ */
84
+ async getTopValidators(limit = 10) {
85
+ return (await this.getAllScores()).sort((a, b) => b[1] - a[1]).slice(0, limit);
86
+ }
87
+ };
88
+ //#endregion
89
+ export { EpochAPI };
90
+
99
91
  //# sourceMappingURL=epoch.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"epoch.js","sourceRoot":"","sources":["../../src/api/epoch.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,MAAM,OAAO,QAAQ;IACA;IAApB,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,QAAQ,CAAC,SAAkB;QAChC,IAAI,SAAS,EAAE,CAAC;YACf,QAAQ,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAA;QAC3C,CAAC;QACD,MAAM,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,oBAAoB,SAAS,EAAE,CAAC,CAAC,CAAC,kBAAkB,CAAA;QAC5E,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAa,GAAG,CAAC,CAAA;IACxC,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,kBAAkB,CAAC,SAAiB;QACzC,QAAQ,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAA;QAC1C,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CACrB,mCAAmC,SAAS,EAAE,CAC9C,CAAA;IACF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,aAAa,CAClB,KAAa,EACb,OAA4B;QAE5B,QAAQ,CAAC,MAAM,CAAC,cAAc,EAAE,KAAK,CAAC,CAAA;QAEtC,IAAI,CAAC,OAAO,EAAE,CAAC;YACd,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAA;QAC7C,CAAC;QAED,MAAM,IAAI,GAAG,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAA;QACvE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAwB,2BAA2B,KAAK,IAAI,IAAI,EAAE,CAAC,CAAA;IAC1F,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,YAAY;QACjB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAA;QACpC,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAA;IAC3C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,iBAAiB,CAAC,SAAiB;QACxC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAA;QAC7C,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAA;QACxE,CAAC;QACD,OAAO,MAAM,CAAC,KAAK,CAAA;IACpB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,gBAAgB,CAAC,QAAgB,EAAE;QACxC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,YAAY,EAAE,CAAA;QACxC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAA;IAC1D,CAAC;CACD"}
1
+ {"version":3,"file":"epoch.js","names":[],"sources":["../../src/api/epoch.ts"],"sourcesContent":["/**\n * Epoch API\n *\n * Provides methods for querying epoch and validator information\n */\n\nimport type { AmadeusClient } from '../client'\nimport type { EpochScore, GetEmissionAddressResponse, GetSolInEpochResponse } from '../types'\nimport { Base58PublicKeySchema } from '../schemas'\nimport { Schema } from 'effect'\nimport { validate } from '../validation'\n\nexport class EpochAPI {\n\tconstructor(private client: AmadeusClient) {}\n\n\t/**\n\t * Get epoch score for all validators or a specific validator\n\t *\n\t * @param publicKey - Optional validator public key (Base58 encoded)\n\t * @returns Promise resolving to epoch score(s)\n\t * @throws {Error} If public key is invalid\n\t *\n\t * @example\n\t * ```ts\n\t * // Get all scores\n\t * const scores = await sdk.epoch.getScore()\n\t *\n\t * // Get specific validator score\n\t * const score = await sdk.epoch.getScore('5Kd3N...')\n\t * ```\n\t */\n\tasync getScore(publicKey?: string): Promise<EpochScore> {\n\t\tif (publicKey) {\n\t\t\tvalidate(Base58PublicKeySchema, publicKey)\n\t\t}\n\t\tconst url = publicKey ? `/api/epoch/score/${publicKey}` : '/api/epoch/score'\n\t\treturn this.client.get<EpochScore>(url)\n\t}\n\n\t/**\n\t * Get emission address for a public key\n\t *\n\t * @param publicKey - Validator public key (Base58 encoded)\n\t * @returns Promise resolving to emission address\n\t * @throws {Error} If public key is invalid\n\t *\n\t * @example\n\t * ```ts\n\t * const { emission_address } = await sdk.epoch.getEmissionAddress('5Kd3N...')\n\t * ```\n\t */\n\tasync getEmissionAddress(publicKey: string): Promise<GetEmissionAddressResponse> {\n\t\tvalidate(Base58PublicKeySchema, publicKey)\n\t\treturn this.client.get<GetEmissionAddressResponse>(\n\t\t\t`/api/epoch/get_emission_address/${publicKey}`\n\t\t)\n\t}\n\n\t/**\n\t * Get solution in epoch\n\t *\n\t * @param epoch - Epoch number (must be >= 0)\n\t * @param solHash - Solution hash as string or Uint8Array\n\t * @returns Promise resolving to solution data\n\t * @throws {Error} If parameters are invalid\n\t *\n\t * @example\n\t * ```ts\n\t * const sol = await sdk.epoch.getSolInEpoch(100, '5Kd3N...')\n\t * ```\n\t */\n\tasync getSolInEpoch(\n\t\tepoch: number,\n\t\tsolHash: string | Uint8Array\n\t): Promise<GetSolInEpochResponse> {\n\t\tvalidate(Schema.NonNegativeInt, epoch)\n\n\t\tif (!solHash) {\n\t\t\tthrow new Error('Solution hash is required')\n\t\t}\n\n\t\tconst hash = typeof solHash === 'string' ? solHash : solHash.toString()\n\t\treturn this.client.get<GetSolInEpochResponse>(`/api/epoch/sol_in_epoch/${epoch}/${hash}`)\n\t}\n\n\t/**\n\t * Get all epoch scores as array of [pk, score] tuples\n\t */\n\tasync getAllScores(): Promise<[string, number][]> {\n\t\tconst result = await this.getScore()\n\t\treturn Array.isArray(result) ? result : []\n\t}\n\n\t/**\n\t * Get epoch score for a specific validator\n\t */\n\tasync getValidatorScore(publicKey: string): Promise<number> {\n\t\tconst result = await this.getScore(publicKey)\n\t\tif (Array.isArray(result)) {\n\t\t\tthrow new Error('Unexpected array response for single validator score')\n\t\t}\n\t\treturn result.score\n\t}\n\n\t/**\n\t * Get top validators by score\n\t */\n\tasync getTopValidators(limit: number = 10): Promise<[string, number][]> {\n\t\tconst scores = await this.getAllScores()\n\t\treturn scores.sort((a, b) => b[1] - a[1]).slice(0, limit)\n\t}\n}\n"],"mappings":";;;;AAYA,IAAa,WAAb,MAAsB;CACD;CAApB,YAAY,QAA+B;EAAvB,KAAA,SAAA;;;;;;;;;;;;;;;;;;CAkBpB,MAAM,SAAS,WAAyC;EACvD,IAAI,WACH,SAAS,uBAAuB,UAAU;EAE3C,MAAM,MAAM,YAAY,oBAAoB,cAAc;EAC1D,OAAO,KAAK,OAAO,IAAgB,IAAI;;;;;;;;;;;;;;CAexC,MAAM,mBAAmB,WAAwD;EAChF,SAAS,uBAAuB,UAAU;EAC1C,OAAO,KAAK,OAAO,IAClB,mCAAmC,YACnC;;;;;;;;;;;;;;;CAgBF,MAAM,cACL,OACA,SACiC;EACjC,SAAS,OAAO,gBAAgB,MAAM;EAEtC,IAAI,CAAC,SACJ,MAAM,IAAI,MAAM,4BAA4B;EAG7C,MAAM,OAAO,OAAO,YAAY,WAAW,UAAU,QAAQ,UAAU;EACvE,OAAO,KAAK,OAAO,IAA2B,2BAA2B,MAAM,GAAG,OAAO;;;;;CAM1F,MAAM,eAA4C;EACjD,MAAM,SAAS,MAAM,KAAK,UAAU;EACpC,OAAO,MAAM,QAAQ,OAAO,GAAG,SAAS,EAAE;;;;;CAM3C,MAAM,kBAAkB,WAAoC;EAC3D,MAAM,SAAS,MAAM,KAAK,SAAS,UAAU;EAC7C,IAAI,MAAM,QAAQ,OAAO,EACxB,MAAM,IAAI,MAAM,uDAAuD;EAExE,OAAO,OAAO;;;;;CAMf,MAAM,iBAAiB,QAAgB,IAAiC;EAEvE,QAAO,MADc,KAAK,cAAc,EAC1B,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM"}
@@ -1,80 +1,79 @@
1
- /**
2
- * Peer API
3
- *
4
- * Provides methods for querying network peer information
5
- */
6
- import type { AmadeusClient } from '../client';
7
- import type { GetNodesResponse, GetTrainersResponse, GetRemovedTrainersResponse, GetANRsResponse, GetANRByPkResponse } from '../types';
8
- export declare class PeerAPI {
9
- private client;
10
- constructor(client: AmadeusClient);
11
- /**
12
- * Get all nodes in the network
13
- *
14
- * @returns Promise resolving to network nodes
15
- *
16
- * @example
17
- * ```ts
18
- * const { nodes } = await sdk.peer.getNodes()
19
- * ```
20
- */
21
- getNodes(): Promise<GetNodesResponse>;
22
- /**
23
- * Get all trainers (validators)
24
- *
25
- * @returns Promise resolving to trainer nodes
26
- *
27
- * @example
28
- * ```ts
29
- * const { trainers } = await sdk.peer.getTrainers()
30
- * ```
31
- */
32
- getTrainers(): Promise<GetTrainersResponse>;
33
- /**
34
- * Get removed trainers
35
- *
36
- * @returns Promise resolving to removed trainer nodes
37
- *
38
- * @example
39
- * ```ts
40
- * const { removed_trainers } = await sdk.peer.getRemovedTrainers()
41
- * ```
42
- */
43
- getRemovedTrainers(): Promise<GetRemovedTrainersResponse>;
44
- /**
45
- * Get all ANR (Autonomous Network Registry) entries
46
- *
47
- * @returns Promise resolving to ANR entries
48
- *
49
- * @example
50
- * ```ts
51
- * const { anrs } = await sdk.peer.getANRs()
52
- * ```
53
- */
54
- getANRs(): Promise<GetANRsResponse>;
55
- /**
56
- * Get ANR validators only
57
- *
58
- * @returns Promise resolving to ANR validator entries
59
- *
60
- * @example
61
- * ```ts
62
- * const { anrs } = await sdk.peer.getANRValidators()
63
- * ```
64
- */
65
- getANRValidators(): Promise<GetANRsResponse>;
66
- /**
67
- * Get ANR entry by public key
68
- *
69
- * @param publicKey - Public key (Base58 encoded)
70
- * @returns Promise resolving to ANR entry
71
- * @throws {Error} If public key is invalid
72
- *
73
- * @example
74
- * ```ts
75
- * const { anr } = await sdk.peer.getANRByPk('5Kd3N...')
76
- * ```
77
- */
78
- getANRByPk(publicKey: string): Promise<GetANRByPkResponse>;
1
+ import { GetANRByPkResponse, GetANRsResponse, GetNodesResponse, GetRemovedTrainersResponse, GetTrainersResponse } from "../types.js";
2
+ import { AmadeusClient } from "../client.js";
3
+
4
+ //#region src/api/peer.d.ts
5
+ declare class PeerAPI {
6
+ private client;
7
+ constructor(client: AmadeusClient);
8
+ /**
9
+ * Get all nodes in the network
10
+ *
11
+ * @returns Promise resolving to network nodes
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const { nodes } = await sdk.peer.getNodes()
16
+ * ```
17
+ */
18
+ getNodes(): Promise<GetNodesResponse>;
19
+ /**
20
+ * Get all trainers (validators)
21
+ *
22
+ * @returns Promise resolving to trainer nodes
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const { trainers } = await sdk.peer.getTrainers()
27
+ * ```
28
+ */
29
+ getTrainers(): Promise<GetTrainersResponse>;
30
+ /**
31
+ * Get removed trainers
32
+ *
33
+ * @returns Promise resolving to removed trainer nodes
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * const { removed_trainers } = await sdk.peer.getRemovedTrainers()
38
+ * ```
39
+ */
40
+ getRemovedTrainers(): Promise<GetRemovedTrainersResponse>;
41
+ /**
42
+ * Get all ANR (Autonomous Network Registry) entries
43
+ *
44
+ * @returns Promise resolving to ANR entries
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * const { anrs } = await sdk.peer.getANRs()
49
+ * ```
50
+ */
51
+ getANRs(): Promise<GetANRsResponse>;
52
+ /**
53
+ * Get ANR validators only
54
+ *
55
+ * @returns Promise resolving to ANR validator entries
56
+ *
57
+ * @example
58
+ * ```ts
59
+ * const { anrs } = await sdk.peer.getANRValidators()
60
+ * ```
61
+ */
62
+ getANRValidators(): Promise<GetANRsResponse>;
63
+ /**
64
+ * Get ANR entry by public key
65
+ *
66
+ * @param publicKey - Public key (Base58 encoded)
67
+ * @returns Promise resolving to ANR entry
68
+ * @throws {Error} If public key is invalid
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * const { anr } = await sdk.peer.getANRByPk('5Kd3N...')
73
+ * ```
74
+ */
75
+ getANRByPk(publicKey: string): Promise<GetANRByPkResponse>;
79
76
  }
77
+ //#endregion
78
+ export { PeerAPI };
80
79
  //# sourceMappingURL=peer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"peer.d.ts","sourceRoot":"","sources":["../../src/api/peer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,KAAK,EACX,gBAAgB,EAChB,mBAAmB,EACnB,0BAA0B,EAC1B,eAAe,EACf,kBAAkB,EAClB,MAAM,UAAU,CAAA;AAIjB,qBAAa,OAAO;IACP,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEzC;;;;;;;;;OASG;IACG,QAAQ,IAAI,OAAO,CAAC,gBAAgB,CAAC;IAI3C;;;;;;;;;OASG;IACG,WAAW,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAIjD;;;;;;;;;OASG;IACG,kBAAkB,IAAI,OAAO,CAAC,0BAA0B,CAAC;IAI/D;;;;;;;;;OASG;IACG,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC;IAIzC;;;;;;;;;OASG;IACG,gBAAgB,IAAI,OAAO,CAAC,eAAe,CAAC;IAIlD;;;;;;;;;;;OAWG;IACG,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAIhE"}
1
+ {"version":3,"file":"peer.d.ts","names":[],"sources":["../../src/api/peer.ts"],"mappings":";;;;cAiBa,OAAA;EAAA,QACQ,MAAA;cAAA,MAAA,EAAQ,aAAA;EA0BC;;;;;;;;;;EAdvB,QAAA,CAAA,GAAY,OAAA,CAAQ,gBAAA;EAwEkB;;;;;;;;;;EA1DtC,WAAA,CAAA,GAAe,OAAA,CAAQ,mBAAA;EAcvB;;;;;;;;;;EAAA,kBAAA,CAAA,GAAsB,OAAA,CAAQ,0BAAA;EA4CC;;;;;;;;;;EA9B/B,OAAA,CAAA,GAAW,OAAA,CAAQ,eAAA;;;;;;;;;;;EAcnB,gBAAA,CAAA,GAAoB,OAAA,CAAQ,eAAA;;;;;;;;;;;;;EAgB5B,UAAA,CAAW,SAAA,WAAoB,OAAA,CAAQ,kBAAA;AAAA"}
package/dist/api/peer.js CHANGED
@@ -1,95 +1,94 @@
1
- /**
2
- * Peer API
3
- *
4
- * Provides methods for querying network peer information
5
- */
6
- import { Base58PublicKeySchema } from '../schemas';
7
- import { validate } from '../validation';
8
- export class PeerAPI {
9
- client;
10
- constructor(client) {
11
- this.client = client;
12
- }
13
- /**
14
- * Get all nodes in the network
15
- *
16
- * @returns Promise resolving to network nodes
17
- *
18
- * @example
19
- * ```ts
20
- * const { nodes } = await sdk.peer.getNodes()
21
- * ```
22
- */
23
- async getNodes() {
24
- return this.client.get('/api/peer/nodes');
25
- }
26
- /**
27
- * Get all trainers (validators)
28
- *
29
- * @returns Promise resolving to trainer nodes
30
- *
31
- * @example
32
- * ```ts
33
- * const { trainers } = await sdk.peer.getTrainers()
34
- * ```
35
- */
36
- async getTrainers() {
37
- return this.client.get('/api/peer/trainers');
38
- }
39
- /**
40
- * Get removed trainers
41
- *
42
- * @returns Promise resolving to removed trainer nodes
43
- *
44
- * @example
45
- * ```ts
46
- * const { removed_trainers } = await sdk.peer.getRemovedTrainers()
47
- * ```
48
- */
49
- async getRemovedTrainers() {
50
- return this.client.get('/api/peer/removed_trainers');
51
- }
52
- /**
53
- * Get all ANR (Autonomous Network Registry) entries
54
- *
55
- * @returns Promise resolving to ANR entries
56
- *
57
- * @example
58
- * ```ts
59
- * const { anrs } = await sdk.peer.getANRs()
60
- * ```
61
- */
62
- async getANRs() {
63
- return this.client.get('/api/peer/anr');
64
- }
65
- /**
66
- * Get ANR validators only
67
- *
68
- * @returns Promise resolving to ANR validator entries
69
- *
70
- * @example
71
- * ```ts
72
- * const { anrs } = await sdk.peer.getANRValidators()
73
- * ```
74
- */
75
- async getANRValidators() {
76
- return this.client.get('/api/peer/anr_validators');
77
- }
78
- /**
79
- * Get ANR entry by public key
80
- *
81
- * @param publicKey - Public key (Base58 encoded)
82
- * @returns Promise resolving to ANR entry
83
- * @throws {Error} If public key is invalid
84
- *
85
- * @example
86
- * ```ts
87
- * const { anr } = await sdk.peer.getANRByPk('5Kd3N...')
88
- * ```
89
- */
90
- async getANRByPk(publicKey) {
91
- validate(Base58PublicKeySchema, publicKey);
92
- return this.client.get(`/api/peer/anr/${publicKey}`);
93
- }
94
- }
1
+ import { validate } from "../validation.js";
2
+ import { Base58PublicKeySchema } from "../schemas.js";
3
+ //#region src/api/peer.ts
4
+ var PeerAPI = class {
5
+ client;
6
+ constructor(client) {
7
+ this.client = client;
8
+ }
9
+ /**
10
+ * Get all nodes in the network
11
+ *
12
+ * @returns Promise resolving to network nodes
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const { nodes } = await sdk.peer.getNodes()
17
+ * ```
18
+ */
19
+ async getNodes() {
20
+ return this.client.get("/api/peer/nodes");
21
+ }
22
+ /**
23
+ * Get all trainers (validators)
24
+ *
25
+ * @returns Promise resolving to trainer nodes
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * const { trainers } = await sdk.peer.getTrainers()
30
+ * ```
31
+ */
32
+ async getTrainers() {
33
+ return this.client.get("/api/peer/trainers");
34
+ }
35
+ /**
36
+ * Get removed trainers
37
+ *
38
+ * @returns Promise resolving to removed trainer nodes
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const { removed_trainers } = await sdk.peer.getRemovedTrainers()
43
+ * ```
44
+ */
45
+ async getRemovedTrainers() {
46
+ return this.client.get("/api/peer/removed_trainers");
47
+ }
48
+ /**
49
+ * Get all ANR (Autonomous Network Registry) entries
50
+ *
51
+ * @returns Promise resolving to ANR entries
52
+ *
53
+ * @example
54
+ * ```ts
55
+ * const { anrs } = await sdk.peer.getANRs()
56
+ * ```
57
+ */
58
+ async getANRs() {
59
+ return this.client.get("/api/peer/anr");
60
+ }
61
+ /**
62
+ * Get ANR validators only
63
+ *
64
+ * @returns Promise resolving to ANR validator entries
65
+ *
66
+ * @example
67
+ * ```ts
68
+ * const { anrs } = await sdk.peer.getANRValidators()
69
+ * ```
70
+ */
71
+ async getANRValidators() {
72
+ return this.client.get("/api/peer/anr_validators");
73
+ }
74
+ /**
75
+ * Get ANR entry by public key
76
+ *
77
+ * @param publicKey - Public key (Base58 encoded)
78
+ * @returns Promise resolving to ANR entry
79
+ * @throws {Error} If public key is invalid
80
+ *
81
+ * @example
82
+ * ```ts
83
+ * const { anr } = await sdk.peer.getANRByPk('5Kd3N...')
84
+ * ```
85
+ */
86
+ async getANRByPk(publicKey) {
87
+ validate(Base58PublicKeySchema, publicKey);
88
+ return this.client.get(`/api/peer/anr/${publicKey}`);
89
+ }
90
+ };
91
+ //#endregion
92
+ export { PeerAPI };
93
+
95
94
  //# sourceMappingURL=peer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"peer.js","sourceRoot":"","sources":["../../src/api/peer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAUH,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,MAAM,OAAO,OAAO;IACC;IAApB,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C;;;;;;;;;OASG;IACH,KAAK,CAAC,QAAQ;QACb,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmB,iBAAiB,CAAC,CAAA;IAC5D,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,WAAW;QAChB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAsB,oBAAoB,CAAC,CAAA;IAClE,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,kBAAkB;QACvB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA6B,4BAA4B,CAAC,CAAA;IACjF,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,OAAO;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAkB,eAAe,CAAC,CAAA;IACzD,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,gBAAgB;QACrB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAkB,0BAA0B,CAAC,CAAA;IACpE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,UAAU,CAAC,SAAiB;QACjC,QAAQ,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAA;QAC1C,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAqB,iBAAiB,SAAS,EAAE,CAAC,CAAA;IACzE,CAAC;CACD"}
1
+ {"version":3,"file":"peer.js","names":[],"sources":["../../src/api/peer.ts"],"sourcesContent":["/**\n * Peer API\n *\n * Provides methods for querying network peer information\n */\n\nimport type { AmadeusClient } from '../client'\nimport type {\n\tGetNodesResponse,\n\tGetTrainersResponse,\n\tGetRemovedTrainersResponse,\n\tGetANRsResponse,\n\tGetANRByPkResponse\n} from '../types'\nimport { Base58PublicKeySchema } from '../schemas'\nimport { validate } from '../validation'\n\nexport class PeerAPI {\n\tconstructor(private client: AmadeusClient) {}\n\n\t/**\n\t * Get all nodes in the network\n\t *\n\t * @returns Promise resolving to network nodes\n\t *\n\t * @example\n\t * ```ts\n\t * const { nodes } = await sdk.peer.getNodes()\n\t * ```\n\t */\n\tasync getNodes(): Promise<GetNodesResponse> {\n\t\treturn this.client.get<GetNodesResponse>('/api/peer/nodes')\n\t}\n\n\t/**\n\t * Get all trainers (validators)\n\t *\n\t * @returns Promise resolving to trainer nodes\n\t *\n\t * @example\n\t * ```ts\n\t * const { trainers } = await sdk.peer.getTrainers()\n\t * ```\n\t */\n\tasync getTrainers(): Promise<GetTrainersResponse> {\n\t\treturn this.client.get<GetTrainersResponse>('/api/peer/trainers')\n\t}\n\n\t/**\n\t * Get removed trainers\n\t *\n\t * @returns Promise resolving to removed trainer nodes\n\t *\n\t * @example\n\t * ```ts\n\t * const { removed_trainers } = await sdk.peer.getRemovedTrainers()\n\t * ```\n\t */\n\tasync getRemovedTrainers(): Promise<GetRemovedTrainersResponse> {\n\t\treturn this.client.get<GetRemovedTrainersResponse>('/api/peer/removed_trainers')\n\t}\n\n\t/**\n\t * Get all ANR (Autonomous Network Registry) entries\n\t *\n\t * @returns Promise resolving to ANR entries\n\t *\n\t * @example\n\t * ```ts\n\t * const { anrs } = await sdk.peer.getANRs()\n\t * ```\n\t */\n\tasync getANRs(): Promise<GetANRsResponse> {\n\t\treturn this.client.get<GetANRsResponse>('/api/peer/anr')\n\t}\n\n\t/**\n\t * Get ANR validators only\n\t *\n\t * @returns Promise resolving to ANR validator entries\n\t *\n\t * @example\n\t * ```ts\n\t * const { anrs } = await sdk.peer.getANRValidators()\n\t * ```\n\t */\n\tasync getANRValidators(): Promise<GetANRsResponse> {\n\t\treturn this.client.get<GetANRsResponse>('/api/peer/anr_validators')\n\t}\n\n\t/**\n\t * Get ANR entry by public key\n\t *\n\t * @param publicKey - Public key (Base58 encoded)\n\t * @returns Promise resolving to ANR entry\n\t * @throws {Error} If public key is invalid\n\t *\n\t * @example\n\t * ```ts\n\t * const { anr } = await sdk.peer.getANRByPk('5Kd3N...')\n\t * ```\n\t */\n\tasync getANRByPk(publicKey: string): Promise<GetANRByPkResponse> {\n\t\tvalidate(Base58PublicKeySchema, publicKey)\n\t\treturn this.client.get<GetANRByPkResponse>(`/api/peer/anr/${publicKey}`)\n\t}\n}\n"],"mappings":";;;AAiBA,IAAa,UAAb,MAAqB;CACA;CAApB,YAAY,QAA+B;EAAvB,KAAA,SAAA;;;;;;;;;;;;CAYpB,MAAM,WAAsC;EAC3C,OAAO,KAAK,OAAO,IAAsB,kBAAkB;;;;;;;;;;;;CAa5D,MAAM,cAA4C;EACjD,OAAO,KAAK,OAAO,IAAyB,qBAAqB;;;;;;;;;;;;CAalE,MAAM,qBAA0D;EAC/D,OAAO,KAAK,OAAO,IAAgC,6BAA6B;;;;;;;;;;;;CAajF,MAAM,UAAoC;EACzC,OAAO,KAAK,OAAO,IAAqB,gBAAgB;;;;;;;;;;;;CAazD,MAAM,mBAA6C;EAClD,OAAO,KAAK,OAAO,IAAqB,2BAA2B;;;;;;;;;;;;;;CAepE,MAAM,WAAW,WAAgD;EAChE,SAAS,uBAAuB,UAAU;EAC1C,OAAO,KAAK,OAAO,IAAwB,iBAAiB,YAAY"}