genlayer-js 0.9.0 → 0.9.2

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 (53) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/chains/index.cjs +2 -2
  3. package/dist/chains/index.d.cts +2 -2
  4. package/dist/chains/index.d.ts +2 -2
  5. package/dist/chains/index.js +3 -3
  6. package/dist/chains-BYSCF33g.d.cts +18 -0
  7. package/dist/chains-BYSCF33g.d.ts +18 -0
  8. package/dist/chunk-4FVQ3G7J.js +8039 -0
  9. package/dist/chunk-GACCNOPJ.js +138 -0
  10. package/dist/chunk-H4ZYXVV2.cjs +138 -0
  11. package/dist/chunk-SMCXL465.cjs +8039 -0
  12. package/dist/index-B52a6DSr.d.cts +13 -0
  13. package/dist/index-B_gpaVzJ.d.cts +374 -0
  14. package/dist/index-DNvW8slT.d.ts +13 -0
  15. package/dist/index-to6d0Hzj.d.ts +374 -0
  16. package/dist/index.cjs +4508 -290
  17. package/dist/index.d.cts +6 -6
  18. package/dist/index.d.ts +6 -6
  19. package/dist/index.js +4507 -289
  20. package/dist/types/index.cjs +20 -2
  21. package/dist/types/index.d.cts +3 -3
  22. package/dist/types/index.d.ts +3 -3
  23. package/dist/types/index.js +21 -3
  24. package/package.json +2 -2
  25. package/src/accounts/IAccountActions.ts +2 -2
  26. package/src/accounts/actions.ts +10 -4
  27. package/src/chains/actions.ts +5 -5
  28. package/src/chains/index.ts +1 -1
  29. package/src/chains/localnet.ts +3989 -5
  30. package/src/chains/studionet.ts +4015 -0
  31. package/src/chains/testnetAsimov.ts +4015 -0
  32. package/src/client/client.ts +64 -21
  33. package/src/contracts/actions.ts +198 -127
  34. package/src/transactions/actions.ts +158 -23
  35. package/src/types/accounts.ts +1 -2
  36. package/src/types/chains.ts +8 -2
  37. package/src/types/clients.ts +14 -13
  38. package/src/types/network.ts +1 -1
  39. package/src/types/transactions.ts +254 -8
  40. package/src/wallet/actions.ts +4 -4
  41. package/src/wallet/connect.ts +18 -16
  42. package/tests/client.test.ts +105 -45
  43. package/dist/chains-C5PI_Nr_.d.cts +0 -13
  44. package/dist/chains-C5PI_Nr_.d.ts +0 -13
  45. package/dist/chunk-I6HC44KD.cjs +0 -72
  46. package/dist/chunk-K72OSU5N.js +0 -28
  47. package/dist/chunk-WEXFFND6.js +0 -72
  48. package/dist/chunk-YDFRDDP5.cjs +0 -28
  49. package/dist/index-B8E0qiOq.d.cts +0 -13
  50. package/dist/index-BCbofn6t.d.cts +0 -188
  51. package/dist/index-Ctmshvtv.d.ts +0 -188
  52. package/dist/index-ZoW0HQ_m.d.ts +0 -13
  53. package/src/chains/simulator.ts +0 -30
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
 
2
2
 
3
+ ## 0.9.2 (2025-05-14)
4
+
5
+ ## 0.9.1 (2025-05-09)
6
+
3
7
  ## 0.9.0 (2025-03-12)
4
8
 
5
9
 
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkI6HC44KDcjs = require('../chunk-I6HC44KD.cjs');
4
+ var _chunkSMCXL465cjs = require('../chunk-SMCXL465.cjs');
5
5
  require('../chunk-75ZPJI57.cjs');
6
6
 
7
7
 
8
8
 
9
- exports.localnet = _chunkI6HC44KDcjs.localnet; exports.simulator = _chunkI6HC44KDcjs.simulator;
9
+ exports.localnet = _chunkSMCXL465cjs.localnet; exports.testnetAsimov = _chunkSMCXL465cjs.testnetAsimov;
@@ -1,3 +1,3 @@
1
- export { l as localnet, s as simulator } from '../index-B8E0qiOq.cjs';
2
- import '../chains-C5PI_Nr_.cjs';
1
+ export { l as localnet, t as testnetAsimov } from '../index-B52a6DSr.cjs';
2
+ import '../chains-BYSCF33g.cjs';
3
3
  import 'viem';
@@ -1,3 +1,3 @@
1
- export { l as localnet, s as simulator } from '../index-ZoW0HQ_m.js';
2
- import '../chains-C5PI_Nr_.js';
1
+ export { l as localnet, t as testnetAsimov } from '../index-DNvW8slT.js';
2
+ import '../chains-BYSCF33g.js';
3
3
  import 'viem';
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  localnet,
3
- simulator
4
- } from "../chunk-WEXFFND6.js";
3
+ testnetAsimov
4
+ } from "../chunk-4FVQ3G7J.js";
5
5
  import "../chunk-MLKGABMK.js";
6
6
  export {
7
7
  localnet,
8
- simulator
8
+ testnetAsimov
9
9
  };
@@ -0,0 +1,18 @@
1
+ import { Chain, Address } from 'viem';
2
+
3
+ type GenLayerChain = Chain & {
4
+ consensusMainContract: {
5
+ address: Address;
6
+ abi: any[];
7
+ bytecode: string;
8
+ } | null;
9
+ consensusDataContract: {
10
+ address: Address;
11
+ abi: any[];
12
+ bytecode: string;
13
+ } | null;
14
+ defaultNumberOfInitialValidators: number;
15
+ defaultConsensusMaxRotations: number;
16
+ };
17
+
18
+ export type { GenLayerChain as G };
@@ -0,0 +1,18 @@
1
+ import { Chain, Address } from 'viem';
2
+
3
+ type GenLayerChain = Chain & {
4
+ consensusMainContract: {
5
+ address: Address;
6
+ abi: any[];
7
+ bytecode: string;
8
+ } | null;
9
+ consensusDataContract: {
10
+ address: Address;
11
+ abi: any[];
12
+ bytecode: string;
13
+ } | null;
14
+ defaultNumberOfInitialValidators: number;
15
+ defaultConsensusMaxRotations: number;
16
+ };
17
+
18
+ export type { GenLayerChain as G };