@alephium/web3 0.11.6 → 0.11.8

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.
@@ -334,6 +334,8 @@ export interface CompileContractResult {
334
334
  codeHashDebug: string;
335
335
  fields: FieldsSig;
336
336
  functions: FunctionSig[];
337
+ constants: Constant[];
338
+ enums: Enum[];
337
339
  events: EventSig[];
338
340
  warnings: string[];
339
341
  stdInterfaceId?: string;
@@ -372,6 +374,10 @@ export interface Confirmed {
372
374
  toGroupConfirmations: number;
373
375
  type: string;
374
376
  }
377
+ export interface Constant {
378
+ name: string;
379
+ value: Val;
380
+ }
375
381
  export interface Contract {
376
382
  code: string;
377
383
  compilerOptions?: CompilerOptions;
@@ -466,6 +472,14 @@ export interface Destination {
466
472
  message?: string;
467
473
  }
468
474
  export type DiscoveryAction = Reachable | Unreachable;
475
+ export interface Enum {
476
+ name: string;
477
+ fields: EnumField[];
478
+ }
479
+ export interface EnumField {
480
+ name: string;
481
+ value: Val;
482
+ }
469
483
  export interface EventSig {
470
484
  name: string;
471
485
  fieldNames: string[];
@@ -924,7 +938,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
924
938
  }
925
939
  /**
926
940
  * @title Alephium API
927
- * @version 2.3.1
941
+ * @version 2.3.2
928
942
  * @baseUrl ../
929
943
  */
930
944
  export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
@@ -151,7 +151,7 @@ class HttpClient {
151
151
  exports.HttpClient = HttpClient;
152
152
  /**
153
153
  * @title Alephium API
154
- * @version 2.3.1
154
+ * @version 2.3.2
155
155
  * @baseUrl ../
156
156
  */
157
157
  class Api extends HttpClient {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alephium/web3",
3
- "version": "0.11.6",
3
+ "version": "0.11.8",
4
4
  "description": "A JS/TS library to interact with the Alephium platform",
5
5
  "license": "GPL",
6
6
  "main": "dist/src/index.js",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "author": "Alephium dev <dev@alephium.org>",
29
29
  "config": {
30
- "alephium_version": "2.3.1",
30
+ "alephium_version": "2.3.2",
31
31
  "explorer_backend_version": "1.13.5"
32
32
  },
33
33
  "type": "commonjs",
@@ -379,6 +379,8 @@ export interface CompileContractResult {
379
379
  codeHashDebug: string
380
380
  fields: FieldsSig
381
381
  functions: FunctionSig[]
382
+ constants: Constant[]
383
+ enums: Enum[]
382
384
  events: EventSig[]
383
385
  warnings: string[]
384
386
  stdInterfaceId?: string
@@ -422,6 +424,11 @@ export interface Confirmed {
422
424
  type: string
423
425
  }
424
426
 
427
+ export interface Constant {
428
+ name: string
429
+ value: Val
430
+ }
431
+
425
432
  export interface Contract {
426
433
  code: string
427
434
  compilerOptions?: CompilerOptions
@@ -530,6 +537,16 @@ export interface Destination {
530
537
 
531
538
  export type DiscoveryAction = Reachable | Unreachable
532
539
 
540
+ export interface Enum {
541
+ name: string
542
+ fields: EnumField[]
543
+ }
544
+
545
+ export interface EnumField {
546
+ name: string
547
+ value: Val
548
+ }
549
+
533
550
  export interface EventSig {
534
551
  name: string
535
552
  fieldNames: string[]
@@ -1211,7 +1228,7 @@ export class HttpClient<SecurityDataType = unknown> {
1211
1228
 
1212
1229
  /**
1213
1230
  * @title Alephium API
1214
- * @version 2.3.1
1231
+ * @version 2.3.2
1215
1232
  * @baseUrl ../
1216
1233
  */
1217
1234
  export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {