genlayer-js 0.22.1 → 0.23.1

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.
@@ -3,11 +3,11 @@
3
3
 
4
4
 
5
5
 
6
- var _chunk3UA74NI6cjs = require('../chunk-3UA74NI6.cjs');
6
+ var _chunkNOMVZBCRcjs = require('../chunk-NOMVZBCR.cjs');
7
7
  require('../chunk-75ZPJI57.cjs');
8
8
 
9
9
 
10
10
 
11
11
 
12
12
 
13
- exports.localnet = _chunk3UA74NI6cjs.localnet; exports.studionet = _chunk3UA74NI6cjs.studionet; exports.testnetAsimov = _chunk3UA74NI6cjs.testnetAsimov; exports.testnetBradbury = _chunk3UA74NI6cjs.testnetBradbury;
13
+ exports.localnet = _chunkNOMVZBCRcjs.localnet; exports.studionet = _chunkNOMVZBCRcjs.studionet; exports.testnetAsimov = _chunkNOMVZBCRcjs.testnetAsimov; exports.testnetBradbury = _chunkNOMVZBCRcjs.testnetBradbury;
@@ -3,7 +3,7 @@ import {
3
3
  studionet,
4
4
  testnetAsimov,
5
5
  testnetBradbury
6
- } from "../chunk-BU7ME7KN.js";
6
+ } from "../chunk-C4Z24PT6.js";
7
7
  import "../chunk-MLKGABMK.js";
8
8
  export {
9
9
  localnet,
@@ -9498,6 +9498,20 @@ var STAKING_ABI = [
9498
9498
  inputs: [{ name: "_validator", type: "address" }],
9499
9499
  outputs: [{ name: "", type: "uint256" }]
9500
9500
  },
9501
+ {
9502
+ name: "validatorMinStake",
9503
+ type: "function",
9504
+ stateMutability: "view",
9505
+ inputs: [],
9506
+ outputs: [{ name: "", type: "uint256" }]
9507
+ },
9508
+ {
9509
+ name: "delegatorMinStake",
9510
+ type: "function",
9511
+ stateMutability: "view",
9512
+ inputs: [],
9513
+ outputs: [{ name: "", type: "uint256" }]
9514
+ },
9501
9515
  {
9502
9516
  name: "validatorsCount",
9503
9517
  type: "function",
@@ -9498,6 +9498,20 @@ var STAKING_ABI = [
9498
9498
  inputs: [{ name: "_validator", type: "address" }],
9499
9499
  outputs: [{ name: "", type: "uint256" }]
9500
9500
  },
9501
+ {
9502
+ name: "validatorMinStake",
9503
+ type: "function",
9504
+ stateMutability: "view",
9505
+ inputs: [],
9506
+ outputs: [{ name: "", type: "uint256" }]
9507
+ },
9508
+ {
9509
+ name: "delegatorMinStake",
9510
+ type: "function",
9511
+ stateMutability: "view",
9512
+ inputs: [],
9513
+ outputs: [{ name: "", type: "uint256" }]
9514
+ },
9501
9515
  {
9502
9516
  name: "validatorsCount",
9503
9517
  type: "function",
@@ -2503,6 +2503,24 @@ declare const STAKING_ABI: readonly [{
2503
2503
  readonly name: "";
2504
2504
  readonly type: "uint256";
2505
2505
  }];
2506
+ }, {
2507
+ readonly name: "validatorMinStake";
2508
+ readonly type: "function";
2509
+ readonly stateMutability: "view";
2510
+ readonly inputs: readonly [];
2511
+ readonly outputs: readonly [{
2512
+ readonly name: "";
2513
+ readonly type: "uint256";
2514
+ }];
2515
+ }, {
2516
+ readonly name: "delegatorMinStake";
2517
+ readonly type: "function";
2518
+ readonly stateMutability: "view";
2519
+ readonly inputs: readonly [];
2520
+ readonly outputs: readonly [{
2521
+ readonly name: "";
2522
+ readonly type: "uint256";
2523
+ }];
2506
2524
  }, {
2507
2525
  readonly name: "validatorsCount";
2508
2526
  readonly type: "function";
@@ -2637,6 +2655,10 @@ interface EpochInfo {
2637
2655
  activeValidatorsCount: bigint;
2638
2656
  epochMinDuration: bigint;
2639
2657
  nextEpochEstimate: Date | null;
2658
+ validatorMinStake: string;
2659
+ validatorMinStakeRaw: bigint;
2660
+ delegatorMinStake: string;
2661
+ delegatorMinStakeRaw: bigint;
2640
2662
  }
2641
2663
  interface StakingTransactionResult {
2642
2664
  transactionHash: `0x${string}`;
@@ -2503,6 +2503,24 @@ declare const STAKING_ABI: readonly [{
2503
2503
  readonly name: "";
2504
2504
  readonly type: "uint256";
2505
2505
  }];
2506
+ }, {
2507
+ readonly name: "validatorMinStake";
2508
+ readonly type: "function";
2509
+ readonly stateMutability: "view";
2510
+ readonly inputs: readonly [];
2511
+ readonly outputs: readonly [{
2512
+ readonly name: "";
2513
+ readonly type: "uint256";
2514
+ }];
2515
+ }, {
2516
+ readonly name: "delegatorMinStake";
2517
+ readonly type: "function";
2518
+ readonly stateMutability: "view";
2519
+ readonly inputs: readonly [];
2520
+ readonly outputs: readonly [{
2521
+ readonly name: "";
2522
+ readonly type: "uint256";
2523
+ }];
2506
2524
  }, {
2507
2525
  readonly name: "validatorsCount";
2508
2526
  readonly type: "function";
@@ -2637,6 +2655,10 @@ interface EpochInfo {
2637
2655
  activeValidatorsCount: bigint;
2638
2656
  epochMinDuration: bigint;
2639
2657
  nextEpochEstimate: Date | null;
2658
+ validatorMinStake: string;
2659
+ validatorMinStakeRaw: bigint;
2660
+ delegatorMinStake: string;
2661
+ delegatorMinStakeRaw: bigint;
2640
2662
  }
2641
2663
  interface StakingTransactionResult {
2642
2664
  transactionHash: `0x${string}`;
package/dist/index.cjs CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
 
8
8
 
9
- var _chunk3UA74NI6cjs = require('./chunk-3UA74NI6.cjs');
9
+ var _chunkNOMVZBCRcjs = require('./chunk-NOMVZBCR.cjs');
10
10
 
11
11
 
12
12
 
@@ -32,7 +32,7 @@ var _viem = require('viem');
32
32
  function accountActions(client) {
33
33
  return {
34
34
  fundAccount: async ({ address, amount }) => {
35
- if (_optionalChain([client, 'access', _ => _.chain, 'optionalAccess', _2 => _2.id]) !== _chunk3UA74NI6cjs.localnet.id) {
35
+ if (_optionalChain([client, 'access', _ => _.chain, 'optionalAccess', _2 => _2.id]) !== _chunkNOMVZBCRcjs.localnet.id) {
36
36
  throw new Error("Client is not connected to the localnet");
37
37
  }
38
38
  return client.request({
@@ -416,8 +416,8 @@ function serialize(data) {
416
416
  // src/abi/index.ts
417
417
  var abi_exports = {};
418
418
  _chunk75ZPJI57cjs.__export.call(void 0, abi_exports, {
419
- STAKING_ABI: () => _chunk3UA74NI6cjs.STAKING_ABI,
420
- VALIDATOR_WALLET_ABI: () => _chunk3UA74NI6cjs.VALIDATOR_WALLET_ABI,
419
+ STAKING_ABI: () => _chunkNOMVZBCRcjs.STAKING_ABI,
420
+ VALIDATOR_WALLET_ABI: () => _chunkNOMVZBCRcjs.VALIDATOR_WALLET_ABI,
421
421
  calldata: () => calldata,
422
422
  transactions: () => transactions
423
423
  });
@@ -530,7 +530,7 @@ function extractGenCallResult(result) {
530
530
  var contractActions = (client, publicClient) => {
531
531
  return {
532
532
  getContractCode: async (address) => {
533
- if (client.chain.id !== _chunk3UA74NI6cjs.localnet.id) {
533
+ if (client.chain.id !== _chunkNOMVZBCRcjs.localnet.id) {
534
534
  throw new Error("Getting contract code is not supported on this network");
535
535
  }
536
536
  const result = await client.request({
@@ -541,7 +541,7 @@ var contractActions = (client, publicClient) => {
541
541
  return new TextDecoder().decode(codeBytes);
542
542
  },
543
543
  getContractSchema: async (address) => {
544
- if (client.chain.id !== _chunk3UA74NI6cjs.localnet.id) {
544
+ if (client.chain.id !== _chunkNOMVZBCRcjs.localnet.id) {
545
545
  throw new Error("Contract schema is not supported on this network");
546
546
  }
547
547
  const schema = await client.request({
@@ -551,7 +551,7 @@ var contractActions = (client, publicClient) => {
551
551
  return schema;
552
552
  },
553
553
  getContractSchemaForCode: async (contractCode) => {
554
- if (client.chain.id !== _chunk3UA74NI6cjs.localnet.id) {
554
+ if (client.chain.id !== _chunkNOMVZBCRcjs.localnet.id) {
555
555
  throw new Error("Contract schema is not supported on this network");
556
556
  }
557
557
  const schema = await client.request({
@@ -950,10 +950,23 @@ var _sendTransaction = async ({
950
950
  chainId: `0x${client.chain.id.toString(16)}`,
951
951
  ...gasPriceHex ? { gasPrice: gasPriceHex } : {}
952
952
  };
953
- return await client.request({
953
+ const evmTxHash = await client.request({
954
954
  method: "eth_sendTransaction",
955
955
  params: [formattedRequest]
956
956
  });
957
+ const externalReceipt = await publicClient.waitForTransactionReceipt({ hash: evmTxHash });
958
+ if (externalReceipt.status === "reverted") {
959
+ throw new Error("Transaction reverted");
960
+ }
961
+ const externalNewTxEvents = _viem.parseEventLogs.call(void 0, {
962
+ abi: _optionalChain([client, 'access', _50 => _50.chain, 'access', _51 => _51.consensusMainContract, 'optionalAccess', _52 => _52.abi]),
963
+ eventName: "NewTransaction",
964
+ logs: externalReceipt.logs
965
+ });
966
+ if (externalNewTxEvents.length === 0) {
967
+ throw new Error("Transaction not processed by consensus");
968
+ }
969
+ return externalNewTxEvents[0].args["txId"];
957
970
  };
958
971
  try {
959
972
  return await sendWithEncodedData(encodedData);
@@ -1070,7 +1083,7 @@ var decodeTransaction = (tx) => {
1070
1083
  txData,
1071
1084
  txDataDecoded,
1072
1085
  currentTimestamp: tx.currentTimestamp.toString(),
1073
- numOfInitialValidators: _nullishCoalesce(_optionalChain([numOfInitialValidators, 'optionalAccess', _50 => _50.toString, 'call', _51 => _51()]), () => ( "0")),
1086
+ numOfInitialValidators: _nullishCoalesce(_optionalChain([numOfInitialValidators, 'optionalAccess', _53 => _53.toString, 'call', _54 => _54()]), () => ( "0")),
1074
1087
  txSlot: tx.txSlot.toString(),
1075
1088
  createdTimestamp: tx.createdTimestamp.toString(),
1076
1089
  lastVoteTimestamp: tx.lastVoteTimestamp.toString(),
@@ -1078,21 +1091,21 @@ var decodeTransaction = (tx) => {
1078
1091
  numOfRounds: tx.numOfRounds.toString(),
1079
1092
  readStateBlockRange: {
1080
1093
  ...tx.readStateBlockRange,
1081
- activationBlock: _nullishCoalesce(_optionalChain([tx, 'access', _52 => _52.readStateBlockRange, 'optionalAccess', _53 => _53.activationBlock, 'optionalAccess', _54 => _54.toString, 'call', _55 => _55()]), () => ( "0")),
1082
- processingBlock: _nullishCoalesce(_optionalChain([tx, 'access', _56 => _56.readStateBlockRange, 'optionalAccess', _57 => _57.processingBlock, 'optionalAccess', _58 => _58.toString, 'call', _59 => _59()]), () => ( "0")),
1083
- proposalBlock: _nullishCoalesce(_optionalChain([tx, 'access', _60 => _60.readStateBlockRange, 'optionalAccess', _61 => _61.proposalBlock, 'optionalAccess', _62 => _62.toString, 'call', _63 => _63()]), () => ( "0"))
1094
+ activationBlock: _nullishCoalesce(_optionalChain([tx, 'access', _55 => _55.readStateBlockRange, 'optionalAccess', _56 => _56.activationBlock, 'optionalAccess', _57 => _57.toString, 'call', _58 => _58()]), () => ( "0")),
1095
+ processingBlock: _nullishCoalesce(_optionalChain([tx, 'access', _59 => _59.readStateBlockRange, 'optionalAccess', _60 => _60.processingBlock, 'optionalAccess', _61 => _61.toString, 'call', _62 => _62()]), () => ( "0")),
1096
+ proposalBlock: _nullishCoalesce(_optionalChain([tx, 'access', _63 => _63.readStateBlockRange, 'optionalAccess', _64 => _64.proposalBlock, 'optionalAccess', _65 => _65.toString, 'call', _66 => _66()]), () => ( "0"))
1084
1097
  },
1085
1098
  statusName: _chunkW4V73RPNcjs.transactionsStatusNumberToName[String(tx.status)],
1086
1099
  resultName: _chunkW4V73RPNcjs.transactionResultNumberToName[String(tx.result)],
1087
1100
  lastRound: {
1088
1101
  ...tx.lastRound,
1089
- round: _nullishCoalesce(_optionalChain([tx, 'access', _64 => _64.lastRound, 'optionalAccess', _65 => _65.round, 'optionalAccess', _66 => _66.toString, 'call', _67 => _67()]), () => ( "0")),
1090
- leaderIndex: _nullishCoalesce(_optionalChain([tx, 'access', _68 => _68.lastRound, 'optionalAccess', _69 => _69.leaderIndex, 'optionalAccess', _70 => _70.toString, 'call', _71 => _71()]), () => ( "0")),
1091
- votesCommitted: _nullishCoalesce(_optionalChain([tx, 'access', _72 => _72.lastRound, 'optionalAccess', _73 => _73.votesCommitted, 'optionalAccess', _74 => _74.toString, 'call', _75 => _75()]), () => ( "0")),
1092
- votesRevealed: _nullishCoalesce(_optionalChain([tx, 'access', _76 => _76.lastRound, 'optionalAccess', _77 => _77.votesRevealed, 'optionalAccess', _78 => _78.toString, 'call', _79 => _79()]), () => ( "0")),
1093
- appealBond: _nullishCoalesce(_optionalChain([tx, 'access', _80 => _80.lastRound, 'optionalAccess', _81 => _81.appealBond, 'optionalAccess', _82 => _82.toString, 'call', _83 => _83()]), () => ( "0")),
1094
- rotationsLeft: _nullishCoalesce(_optionalChain([tx, 'access', _84 => _84.lastRound, 'optionalAccess', _85 => _85.rotationsLeft, 'optionalAccess', _86 => _86.toString, 'call', _87 => _87()]), () => ( "0")),
1095
- validatorVotesName: (_nullishCoalesce(_optionalChain([tx, 'access', _88 => _88.lastRound, 'optionalAccess', _89 => _89.validatorVotes]), () => ( []))).map(
1102
+ round: _nullishCoalesce(_optionalChain([tx, 'access', _67 => _67.lastRound, 'optionalAccess', _68 => _68.round, 'optionalAccess', _69 => _69.toString, 'call', _70 => _70()]), () => ( "0")),
1103
+ leaderIndex: _nullishCoalesce(_optionalChain([tx, 'access', _71 => _71.lastRound, 'optionalAccess', _72 => _72.leaderIndex, 'optionalAccess', _73 => _73.toString, 'call', _74 => _74()]), () => ( "0")),
1104
+ votesCommitted: _nullishCoalesce(_optionalChain([tx, 'access', _75 => _75.lastRound, 'optionalAccess', _76 => _76.votesCommitted, 'optionalAccess', _77 => _77.toString, 'call', _78 => _78()]), () => ( "0")),
1105
+ votesRevealed: _nullishCoalesce(_optionalChain([tx, 'access', _79 => _79.lastRound, 'optionalAccess', _80 => _80.votesRevealed, 'optionalAccess', _81 => _81.toString, 'call', _82 => _82()]), () => ( "0")),
1106
+ appealBond: _nullishCoalesce(_optionalChain([tx, 'access', _83 => _83.lastRound, 'optionalAccess', _84 => _84.appealBond, 'optionalAccess', _85 => _85.toString, 'call', _86 => _86()]), () => ( "0")),
1107
+ rotationsLeft: _nullishCoalesce(_optionalChain([tx, 'access', _87 => _87.lastRound, 'optionalAccess', _88 => _88.rotationsLeft, 'optionalAccess', _89 => _89.toString, 'call', _90 => _90()]), () => ( "0")),
1108
+ validatorVotesName: (_nullishCoalesce(_optionalChain([tx, 'access', _91 => _91.lastRound, 'optionalAccess', _92 => _92.validatorVotes]), () => ( []))).map(
1096
1109
  (vote) => _chunkW4V73RPNcjs.voteTypeNumberToName[String(vote)]
1097
1110
  )
1098
1111
  }
@@ -1174,7 +1187,7 @@ var simplifyTransactionReceipt = (tx) => {
1174
1187
  var decodeLocalnetTransaction = (tx) => {
1175
1188
  if (!tx.data) return tx;
1176
1189
  try {
1177
- const leaderReceipt = _optionalChain([tx, 'access', _90 => _90.consensus_data, 'optionalAccess', _91 => _91.leader_receipt]);
1190
+ const leaderReceipt = _optionalChain([tx, 'access', _93 => _93.consensus_data, 'optionalAccess', _94 => _94.leader_receipt]);
1178
1191
  if (leaderReceipt) {
1179
1192
  const receipts = Array.isArray(leaderReceipt) ? leaderReceipt : [leaderReceipt];
1180
1193
  receipts.forEach((receipt) => {
@@ -1205,7 +1218,7 @@ var decodeLocalnetTransaction = (tx) => {
1205
1218
  }
1206
1219
  });
1207
1220
  }
1208
- if (_optionalChain([tx, 'access', _92 => _92.data, 'optionalAccess', _93 => _93.calldata]) && typeof tx.data.calldata === "string") {
1221
+ if (_optionalChain([tx, 'access', _95 => _95.data, 'optionalAccess', _96 => _96.calldata]) && typeof tx.data.calldata === "string") {
1209
1222
  tx.data.calldata = {
1210
1223
  base64: tx.data.calldata,
1211
1224
  ...calldataToUserFriendlyJson(b64ToArray(tx.data.calldata))
@@ -1236,7 +1249,7 @@ var receiptActions = (client, publicClient) => ({
1236
1249
  const requestedStatus = _chunkW4V73RPNcjs.transactionsStatusNameToNumber[status];
1237
1250
  if (transactionStatusString === requestedStatus || status === "ACCEPTED" /* ACCEPTED */ && _chunkW4V73RPNcjs.isDecidedState.call(void 0, transactionStatusString)) {
1238
1251
  let finalTransaction = transaction;
1239
- if (client.chain.id === _chunk3UA74NI6cjs.localnet.id) {
1252
+ if (client.chain.id === _chunkNOMVZBCRcjs.localnet.id) {
1240
1253
  finalTransaction = decodeLocalnetTransaction(transaction);
1241
1254
  }
1242
1255
  if (!fullTransaction) {
@@ -1267,8 +1280,8 @@ var transactionActions = (client, publicClient) => ({
1267
1280
  return decodeLocalnetTransaction(transaction2);
1268
1281
  }
1269
1282
  const transaction = await publicClient.readContract({
1270
- address: _optionalChain([client, 'access', _94 => _94.chain, 'access', _95 => _95.consensusDataContract, 'optionalAccess', _96 => _96.address]),
1271
- abi: _optionalChain([client, 'access', _97 => _97.chain, 'access', _98 => _98.consensusDataContract, 'optionalAccess', _99 => _99.abi]),
1283
+ address: _optionalChain([client, 'access', _97 => _97.chain, 'access', _98 => _98.consensusDataContract, 'optionalAccess', _99 => _99.address]),
1284
+ abi: _optionalChain([client, 'access', _100 => _100.chain, 'access', _101 => _101.consensusDataContract, 'optionalAccess', _102 => _102.abi]),
1272
1285
  functionName: "getTransactionData",
1273
1286
  args: [
1274
1287
  hash,
@@ -1307,7 +1320,7 @@ var transactionActions = (client, publicClient) => ({
1307
1320
  },
1308
1321
  estimateTransactionGas: async (transactionParams) => {
1309
1322
  const formattedParams = {
1310
- from: transactionParams.from || _optionalChain([client, 'access', _100 => _100.account, 'optionalAccess', _101 => _101.address]),
1323
+ from: transactionParams.from || _optionalChain([client, 'access', _103 => _103.account, 'optionalAccess', _104 => _104.address]),
1311
1324
  to: transactionParams.to,
1312
1325
  data: transactionParams.data || "0x",
1313
1326
  value: transactionParams.value ? `0x${transactionParams.value.toString(16)}` : "0x0"
@@ -1328,10 +1341,10 @@ var snapID = {
1328
1341
 
1329
1342
  // src/wallet/connect.ts
1330
1343
  var networks = {
1331
- localnet: _chunk3UA74NI6cjs.localnet,
1332
- studionet: _chunk3UA74NI6cjs.studionet,
1333
- testnetAsimov: _chunk3UA74NI6cjs.testnetAsimov,
1334
- testnetBradbury: _chunk3UA74NI6cjs.testnetBradbury
1344
+ localnet: _chunkNOMVZBCRcjs.localnet,
1345
+ studionet: _chunkNOMVZBCRcjs.studionet,
1346
+ testnetAsimov: _chunkNOMVZBCRcjs.testnetAsimov,
1347
+ testnetBradbury: _chunkNOMVZBCRcjs.testnetBradbury
1335
1348
  };
1336
1349
  var connect = async (client, network = "studionet", snapSource = "npm") => {
1337
1350
  if (!window.ethereum) {
@@ -1350,7 +1363,7 @@ var connect = async (client, network = "studionet", snapSource = "npm") => {
1350
1363
  chainName: selectedNetwork.name,
1351
1364
  rpcUrls: selectedNetwork.rpcUrls.default.http,
1352
1365
  nativeCurrency: selectedNetwork.nativeCurrency,
1353
- blockExplorerUrls: [_optionalChain([selectedNetwork, 'access', _102 => _102.blockExplorers, 'optionalAccess', _103 => _103.default, 'access', _104 => _104.url])]
1366
+ blockExplorerUrls: [_optionalChain([selectedNetwork, 'access', _105 => _105.blockExplorers, 'optionalAccess', _106 => _106.default, 'access', _107 => _107.url])]
1354
1367
  };
1355
1368
  const currentChainId = await window.ethereum.request({ method: "eth_chainId" });
1356
1369
  if (currentChainId !== chainIdHex) {
@@ -1384,10 +1397,10 @@ var metamaskClient = async (snapSource = "npm") => {
1384
1397
  }
1385
1398
  const isFlask = async () => {
1386
1399
  try {
1387
- const clientVersion = await _optionalChain([window, 'access', _105 => _105.ethereum, 'optionalAccess', _106 => _106.request, 'call', _107 => _107({
1400
+ const clientVersion = await _optionalChain([window, 'access', _108 => _108.ethereum, 'optionalAccess', _109 => _109.request, 'call', _110 => _110({
1388
1401
  method: "web3_clientVersion"
1389
1402
  })]);
1390
- return _optionalChain([clientVersion, 'optionalAccess', _108 => _108.includes, 'call', _109 => _109("flask")]);
1403
+ return _optionalChain([clientVersion, 'optionalAccess', _111 => _111.includes, 'call', _112 => _112("flask")]);
1391
1404
  } catch (error) {
1392
1405
  console.error("Error detecting Flask:", error);
1393
1406
  return false;
@@ -1395,7 +1408,7 @@ var metamaskClient = async (snapSource = "npm") => {
1395
1408
  };
1396
1409
  const installedSnaps = async () => {
1397
1410
  try {
1398
- return await _optionalChain([window, 'access', _110 => _110.ethereum, 'optionalAccess', _111 => _111.request, 'call', _112 => _112({
1411
+ return await _optionalChain([window, 'access', _113 => _113.ethereum, 'optionalAccess', _114 => _114.request, 'call', _115 => _115({
1399
1412
  method: "wallet_getSnaps"
1400
1413
  })]);
1401
1414
  } catch (error) {
@@ -1447,7 +1460,7 @@ function formatStakingAmount(amount) {
1447
1460
  // src/staking/actions.ts
1448
1461
  var FALLBACK_GAS = 1000000n;
1449
1462
  var GAS_BUFFER_MULTIPLIER = 2n;
1450
- var COMBINED_ERROR_ABI = [..._chunk3UA74NI6cjs.STAKING_ABI, ..._chunk3UA74NI6cjs.VALIDATOR_WALLET_ABI];
1463
+ var COMBINED_ERROR_ABI = [..._chunkNOMVZBCRcjs.STAKING_ABI, ..._chunkNOMVZBCRcjs.VALIDATOR_WALLET_ABI];
1451
1464
  function extractRevertReason(err) {
1452
1465
  if (err instanceof _viem.BaseError) {
1453
1466
  const rawError = err.walk((e) => e instanceof _viem.RawContractError);
@@ -1482,7 +1495,7 @@ function extractRevertReason(err) {
1482
1495
  }
1483
1496
  const revertError = err.walk((e) => e instanceof _viem.ContractFunctionRevertedError);
1484
1497
  if (revertError instanceof _viem.ContractFunctionRevertedError) {
1485
- if (_optionalChain([revertError, 'access', _113 => _113.data, 'optionalAccess', _114 => _114.errorName])) {
1498
+ if (_optionalChain([revertError, 'access', _116 => _116.data, 'optionalAccess', _117 => _117.errorName])) {
1486
1499
  return revertError.data.errorName;
1487
1500
  }
1488
1501
  return revertError.reason || "Unknown reason";
@@ -1570,7 +1583,7 @@ var stakingActions = (client, publicClient) => {
1570
1583
  };
1571
1584
  const getStakingAddress = () => {
1572
1585
  const stakingConfig = client.chain.stakingContract;
1573
- if (!_optionalChain([stakingConfig, 'optionalAccess', _115 => _115.address]) || stakingConfig.address === "0x0000000000000000000000000000000000000000") {
1586
+ if (!_optionalChain([stakingConfig, 'optionalAccess', _118 => _118.address]) || stakingConfig.address === "0x0000000000000000000000000000000000000000") {
1574
1587
  throw new Error("Staking is not supported on studio-based networks. Use testnet-asimov for staking operations.");
1575
1588
  }
1576
1589
  return stakingConfig.address;
@@ -1579,7 +1592,7 @@ var stakingActions = (client, publicClient) => {
1579
1592
  const address = getStakingAddress();
1580
1593
  return _viem.getContract.call(void 0, {
1581
1594
  address,
1582
- abi: _chunk3UA74NI6cjs.STAKING_ABI,
1595
+ abi: _chunkNOMVZBCRcjs.STAKING_ABI,
1583
1596
  client: { public: publicClient, wallet: client }
1584
1597
  });
1585
1598
  };
@@ -1587,7 +1600,7 @@ var stakingActions = (client, publicClient) => {
1587
1600
  const address = getStakingAddress();
1588
1601
  return _viem.getContract.call(void 0, {
1589
1602
  address,
1590
- abi: _chunk3UA74NI6cjs.STAKING_ABI,
1603
+ abi: _chunkNOMVZBCRcjs.STAKING_ABI,
1591
1604
  client: publicClient
1592
1605
  });
1593
1606
  };
@@ -1596,11 +1609,11 @@ var stakingActions = (client, publicClient) => {
1596
1609
  const amount = parseStakingAmount(options.amount);
1597
1610
  const stakingAddress = getStakingAddress();
1598
1611
  const data = options.operator ? _viem.encodeFunctionData.call(void 0, {
1599
- abi: _chunk3UA74NI6cjs.STAKING_ABI,
1612
+ abi: _chunkNOMVZBCRcjs.STAKING_ABI,
1600
1613
  functionName: "validatorJoin",
1601
1614
  args: [options.operator]
1602
1615
  }) : _viem.encodeFunctionData.call(void 0, {
1603
- abi: _chunk3UA74NI6cjs.STAKING_ABI,
1616
+ abi: _chunkNOMVZBCRcjs.STAKING_ABI,
1604
1617
  functionName: "validatorJoin"
1605
1618
  });
1606
1619
  const result = await executeWrite({ to: stakingAddress, data, value: amount });
@@ -1609,7 +1622,7 @@ var stakingActions = (client, publicClient) => {
1609
1622
  let eventFound = false;
1610
1623
  for (const log of receipt.logs) {
1611
1624
  try {
1612
- const decoded = _viem.decodeEventLog.call(void 0, { abi: _chunk3UA74NI6cjs.STAKING_ABI, data: log.data, topics: log.topics });
1625
+ const decoded = _viem.decodeEventLog.call(void 0, { abi: _chunkNOMVZBCRcjs.STAKING_ABI, data: log.data, topics: log.topics });
1613
1626
  if (decoded.eventName === "ValidatorJoin") {
1614
1627
  validatorWallet = decoded.args.validator;
1615
1628
  eventFound = true;
@@ -1636,7 +1649,7 @@ var stakingActions = (client, publicClient) => {
1636
1649
  validatorDeposit: async (options) => {
1637
1650
  const amount = parseStakingAmount(options.amount);
1638
1651
  const data = _viem.encodeFunctionData.call(void 0, {
1639
- abi: _chunk3UA74NI6cjs.STAKING_ABI,
1652
+ abi: _chunkNOMVZBCRcjs.STAKING_ABI,
1640
1653
  functionName: "validatorDeposit"
1641
1654
  });
1642
1655
  return executeWrite({ to: getStakingAddress(), data, value: amount });
@@ -1644,19 +1657,19 @@ var stakingActions = (client, publicClient) => {
1644
1657
  validatorExit: async (options) => {
1645
1658
  const shares = typeof options.shares === "string" ? BigInt(options.shares) : options.shares;
1646
1659
  const data = _viem.encodeFunctionData.call(void 0, {
1647
- abi: _chunk3UA74NI6cjs.STAKING_ABI,
1660
+ abi: _chunkNOMVZBCRcjs.STAKING_ABI,
1648
1661
  functionName: "validatorExit",
1649
1662
  args: [shares]
1650
1663
  });
1651
1664
  return executeWrite({ to: getStakingAddress(), data });
1652
1665
  },
1653
1666
  validatorClaim: async (options) => {
1654
- if (!_optionalChain([options, 'optionalAccess', _116 => _116.validator]) && !client.account) {
1667
+ if (!_optionalChain([options, 'optionalAccess', _119 => _119.validator]) && !client.account) {
1655
1668
  throw new Error("Either provide validator address or initialize client with an account");
1656
1669
  }
1657
- const validatorAddress = _optionalChain([options, 'optionalAccess', _117 => _117.validator]) || client.account.address;
1670
+ const validatorAddress = _optionalChain([options, 'optionalAccess', _120 => _120.validator]) || client.account.address;
1658
1671
  const data = _viem.encodeFunctionData.call(void 0, {
1659
- abi: _chunk3UA74NI6cjs.STAKING_ABI,
1672
+ abi: _chunkNOMVZBCRcjs.STAKING_ABI,
1660
1673
  functionName: "validatorClaim",
1661
1674
  args: [validatorAddress]
1662
1675
  });
@@ -1665,7 +1678,7 @@ var stakingActions = (client, publicClient) => {
1665
1678
  },
1666
1679
  validatorPrime: async (options) => {
1667
1680
  const data = _viem.encodeFunctionData.call(void 0, {
1668
- abi: _chunk3UA74NI6cjs.STAKING_ABI,
1681
+ abi: _chunkNOMVZBCRcjs.STAKING_ABI,
1669
1682
  functionName: "validatorPrime",
1670
1683
  args: [options.validator]
1671
1684
  });
@@ -1673,7 +1686,7 @@ var stakingActions = (client, publicClient) => {
1673
1686
  },
1674
1687
  setOperator: async (options) => {
1675
1688
  const data = _viem.encodeFunctionData.call(void 0, {
1676
- abi: _chunk3UA74NI6cjs.VALIDATOR_WALLET_ABI,
1689
+ abi: _chunkNOMVZBCRcjs.VALIDATOR_WALLET_ABI,
1677
1690
  functionName: "setOperator",
1678
1691
  args: [options.operator]
1679
1692
  });
@@ -1689,7 +1702,7 @@ var stakingActions = (client, publicClient) => {
1689
1702
  }
1690
1703
  }
1691
1704
  const data = _viem.encodeFunctionData.call(void 0, {
1692
- abi: _chunk3UA74NI6cjs.VALIDATOR_WALLET_ABI,
1705
+ abi: _chunkNOMVZBCRcjs.VALIDATOR_WALLET_ABI,
1693
1706
  functionName: "setIdentity",
1694
1707
  args: [
1695
1708
  options.moniker,
@@ -1708,7 +1721,7 @@ var stakingActions = (client, publicClient) => {
1708
1721
  delegatorJoin: async (options) => {
1709
1722
  const amount = parseStakingAmount(options.amount);
1710
1723
  const data = _viem.encodeFunctionData.call(void 0, {
1711
- abi: _chunk3UA74NI6cjs.STAKING_ABI,
1724
+ abi: _chunkNOMVZBCRcjs.STAKING_ABI,
1712
1725
  functionName: "delegatorJoin",
1713
1726
  args: [options.validator]
1714
1727
  });
@@ -1724,7 +1737,7 @@ var stakingActions = (client, publicClient) => {
1724
1737
  delegatorExit: async (options) => {
1725
1738
  const shares = typeof options.shares === "string" ? BigInt(options.shares) : options.shares;
1726
1739
  const data = _viem.encodeFunctionData.call(void 0, {
1727
- abi: _chunk3UA74NI6cjs.STAKING_ABI,
1740
+ abi: _chunkNOMVZBCRcjs.STAKING_ABI,
1728
1741
  functionName: "delegatorExit",
1729
1742
  args: [options.validator, shares]
1730
1743
  });
@@ -1736,7 +1749,7 @@ var stakingActions = (client, publicClient) => {
1736
1749
  }
1737
1750
  const delegatorAddress = options.delegator || client.account.address;
1738
1751
  const data = _viem.encodeFunctionData.call(void 0, {
1739
- abi: _chunk3UA74NI6cjs.STAKING_ABI,
1752
+ abi: _chunkNOMVZBCRcjs.STAKING_ABI,
1740
1753
  functionName: "delegatorClaim",
1741
1754
  args: [delegatorAddress, options.validator]
1742
1755
  });
@@ -1754,7 +1767,7 @@ var stakingActions = (client, publicClient) => {
1754
1767
  }
1755
1768
  const walletContract = _viem.getContract.call(void 0, {
1756
1769
  address: validator,
1757
- abi: _chunk3UA74NI6cjs.VALIDATOR_WALLET_ABI,
1770
+ abi: _chunkNOMVZBCRcjs.VALIDATOR_WALLET_ABI,
1758
1771
  client: publicClient
1759
1772
  });
1760
1773
  const [view, owner, operator, identityRaw, currentEpoch] = await Promise.all([
@@ -1887,7 +1900,9 @@ var stakingActions = (client, publicClient) => {
1887
1900
  epochMinDuration,
1888
1901
  epochZeroMinDuration,
1889
1902
  epochOdd,
1890
- epochEven
1903
+ epochEven,
1904
+ valMinStake,
1905
+ delMinStake
1891
1906
  ] = await Promise.all([
1892
1907
  contract.read.epoch(),
1893
1908
  contract.read.finalized(),
@@ -1895,7 +1910,9 @@ var stakingActions = (client, publicClient) => {
1895
1910
  contract.read.epochMinDuration(),
1896
1911
  contract.read.epochZeroMinDuration(),
1897
1912
  contract.read.epochOdd(),
1898
- contract.read.epochEven()
1913
+ contract.read.epochEven(),
1914
+ contract.read.validatorMinStake(),
1915
+ contract.read.delegatorMinStake()
1899
1916
  ]);
1900
1917
  const raw = epoch % 2n === 0n ? epochEven : epochOdd;
1901
1918
  const currentEpochData = {
@@ -1923,7 +1940,11 @@ var stakingActions = (client, publicClient) => {
1923
1940
  lastFinalizedEpoch: finalized,
1924
1941
  activeValidatorsCount: activeCount,
1925
1942
  epochMinDuration,
1926
- nextEpochEstimate
1943
+ nextEpochEstimate,
1944
+ validatorMinStake: formatStakingAmount(valMinStake),
1945
+ validatorMinStakeRaw: valMinStake,
1946
+ delegatorMinStake: formatStakingAmount(delMinStake),
1947
+ delegatorMinStakeRaw: delMinStake
1927
1948
  };
1928
1949
  },
1929
1950
  getEpochData: async (epochNumber) => {
@@ -2049,8 +2070,8 @@ var getCustomTransportConfig = (config, chainConfig) => {
2049
2070
  }
2050
2071
  };
2051
2072
  };
2052
- var createClient = (config = { chain: _chunk3UA74NI6cjs.localnet }) => {
2053
- const chainConfig = config.chain || _chunk3UA74NI6cjs.localnet;
2073
+ var createClient = (config = { chain: _chunkNOMVZBCRcjs.localnet }) => {
2074
+ const chainConfig = config.chain || _chunkNOMVZBCRcjs.localnet;
2054
2075
  if (config.endpoint) {
2055
2076
  chainConfig.rpcUrls.default.http = [config.endpoint];
2056
2077
  }
@@ -2187,4 +2208,4 @@ function validateValueAgainstType(value, type) {
2187
2208
 
2188
2209
 
2189
2210
 
2190
- exports.abi = abi_exports; exports.buildGenVmPositionalArgs = buildGenVmPositionalArgs; exports.chains = _chunk3UA74NI6cjs.chains_exports; exports.createAccount = createAccount; exports.createClient = createClient; exports.decodeInputData = decodeInputData; exports.decodeLocalnetTransaction = decodeLocalnetTransaction; exports.decodeTransaction = decodeTransaction; exports.formatStakingAmount = formatStakingAmount; exports.generatePrivateKey = generatePrivateKey; exports.parseStakingAmount = parseStakingAmount; exports.simplifyTransactionReceipt = simplifyTransactionReceipt;
2211
+ exports.abi = abi_exports; exports.buildGenVmPositionalArgs = buildGenVmPositionalArgs; exports.chains = _chunkNOMVZBCRcjs.chains_exports; exports.createAccount = createAccount; exports.createClient = createClient; exports.decodeInputData = decodeInputData; exports.decodeLocalnetTransaction = decodeLocalnetTransaction; exports.decodeTransaction = decodeTransaction; exports.formatStakingAmount = formatStakingAmount; exports.generatePrivateKey = generatePrivateKey; exports.parseStakingAmount = parseStakingAmount; exports.simplifyTransactionReceipt = simplifyTransactionReceipt;
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as viem from 'viem';
2
2
  import { Account, Address, Hex } from 'viem';
3
3
  import { G as GenLayerChain } from './chains-DqSbucSW.cjs';
4
- import { G as GenLayerClient, D as DecodedDeployData, a as DecodedCallData, b as GenLayerRawTransaction, c as GenLayerTransaction, C as CalldataEncodable, T as TransactionDataElement, S as STAKING_ABI, V as VALIDATOR_WALLET_ABI, d as ContractSchema } from './index-DIh568LH.cjs';
4
+ import { G as GenLayerClient, D as DecodedDeployData, a as DecodedCallData, b as GenLayerRawTransaction, c as GenLayerTransaction, C as CalldataEncodable, T as TransactionDataElement, S as STAKING_ABI, V as VALIDATOR_WALLET_ABI, d as ContractSchema } from './index-DOok9G7O.cjs';
5
5
  import * as abitype from 'abitype';
6
6
  import * as viem__types_types_authorization from 'viem/_types/types/authorization';
7
7
  import * as viem_accounts from 'viem/accounts';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as viem from 'viem';
2
2
  import { Account, Address, Hex } from 'viem';
3
3
  import { G as GenLayerChain } from './chains-DqSbucSW.js';
4
- import { G as GenLayerClient, D as DecodedDeployData, a as DecodedCallData, b as GenLayerRawTransaction, c as GenLayerTransaction, C as CalldataEncodable, T as TransactionDataElement, S as STAKING_ABI, V as VALIDATOR_WALLET_ABI, d as ContractSchema } from './index-BJ_hU-bk.js';
4
+ import { G as GenLayerClient, D as DecodedDeployData, a as DecodedCallData, b as GenLayerRawTransaction, c as GenLayerTransaction, C as CalldataEncodable, T as TransactionDataElement, S as STAKING_ABI, V as VALIDATOR_WALLET_ABI, d as ContractSchema } from './index-DbrlrnTQ.js';
5
5
  import * as abitype from 'abitype';
6
6
  import * as viem__types_types_authorization from 'viem/_types/types/authorization';
7
7
  import * as viem_accounts from 'viem/accounts';
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  studionet,
7
7
  testnetAsimov,
8
8
  testnetBradbury
9
- } from "./chunk-BU7ME7KN.js";
9
+ } from "./chunk-C4Z24PT6.js";
10
10
  import {
11
11
  CalldataAddress,
12
12
  isDecidedState,
@@ -950,10 +950,23 @@ var _sendTransaction = async ({
950
950
  chainId: `0x${client.chain.id.toString(16)}`,
951
951
  ...gasPriceHex ? { gasPrice: gasPriceHex } : {}
952
952
  };
953
- return await client.request({
953
+ const evmTxHash = await client.request({
954
954
  method: "eth_sendTransaction",
955
955
  params: [formattedRequest]
956
956
  });
957
+ const externalReceipt = await publicClient.waitForTransactionReceipt({ hash: evmTxHash });
958
+ if (externalReceipt.status === "reverted") {
959
+ throw new Error("Transaction reverted");
960
+ }
961
+ const externalNewTxEvents = parseEventLogs({
962
+ abi: client.chain.consensusMainContract?.abi,
963
+ eventName: "NewTransaction",
964
+ logs: externalReceipt.logs
965
+ });
966
+ if (externalNewTxEvents.length === 0) {
967
+ throw new Error("Transaction not processed by consensus");
968
+ }
969
+ return externalNewTxEvents[0].args["txId"];
957
970
  };
958
971
  try {
959
972
  return await sendWithEncodedData(encodedData);
@@ -1887,7 +1900,9 @@ var stakingActions = (client, publicClient) => {
1887
1900
  epochMinDuration,
1888
1901
  epochZeroMinDuration,
1889
1902
  epochOdd,
1890
- epochEven
1903
+ epochEven,
1904
+ valMinStake,
1905
+ delMinStake
1891
1906
  ] = await Promise.all([
1892
1907
  contract.read.epoch(),
1893
1908
  contract.read.finalized(),
@@ -1895,7 +1910,9 @@ var stakingActions = (client, publicClient) => {
1895
1910
  contract.read.epochMinDuration(),
1896
1911
  contract.read.epochZeroMinDuration(),
1897
1912
  contract.read.epochOdd(),
1898
- contract.read.epochEven()
1913
+ contract.read.epochEven(),
1914
+ contract.read.validatorMinStake(),
1915
+ contract.read.delegatorMinStake()
1899
1916
  ]);
1900
1917
  const raw = epoch % 2n === 0n ? epochEven : epochOdd;
1901
1918
  const currentEpochData = {
@@ -1923,7 +1940,11 @@ var stakingActions = (client, publicClient) => {
1923
1940
  lastFinalizedEpoch: finalized,
1924
1941
  activeValidatorsCount: activeCount,
1925
1942
  epochMinDuration,
1926
- nextEpochEstimate
1943
+ nextEpochEstimate,
1944
+ validatorMinStake: formatStakingAmount(valMinStake),
1945
+ validatorMinStakeRaw: valMinStake,
1946
+ delegatorMinStake: formatStakingAmount(delMinStake),
1947
+ delegatorMinStakeRaw: delMinStake
1927
1948
  };
1928
1949
  },
1929
1950
  getEpochData: async (epochNumber) => {
@@ -1,3 +1,3 @@
1
1
  export { Account, Address } from 'viem';
2
- export { I as BannedValidatorInfo, e as CalldataAddress, C as CalldataEncodable, j as ContractMethod, i as ContractMethodBase, g as ContractParamsArraySchemaElement, h as ContractParamsSchema, d as ContractSchema, o as DECIDED_STATES, a as DecodedCallData, D as DecodedDeployData, a4 as DelegatorClaimOptions, a3 as DelegatorExitOptions, a2 as DelegatorJoinOptions, U as DelegatorJoinResult, K as EpochData, O as EpochInfo, G as GenLayerClient, f as GenLayerMethod, b as GenLayerRawTransaction, c as GenLayerTransaction, H as Hash, L as LeaderReceipt, M as MethodDescription, N as Network, P as PendingDeposit, F as PendingWithdrawal, a1 as SetIdentityOptions, a0 as SetOperatorOptions, y as SnapSource, J as StakeInfo, a5 as StakingActions, z as StakingContract, Q as StakingTransactionResult, k as TransactionHash, x as TransactionHashVariant, m as TransactionResult, r as TransactionResultNameToNumber, l as TransactionStatus, w as TransactionType, _ as ValidatorClaimOptions, Y as ValidatorDepositOptions, Z as ValidatorExitOptions, B as ValidatorIdentity, E as ValidatorInfo, X as ValidatorJoinOptions, R as ValidatorJoinResult, $ as ValidatorPrimeOptions, A as ValidatorView, s as VoteType, W as WithdrawalCommit, p as isDecidedState, q as transactionResultNumberToName, n as transactionsStatusNameToNumber, t as transactionsStatusNumberToName, u as voteTypeNameToNumber, v as voteTypeNumberToName } from '../index-DIh568LH.cjs';
2
+ export { I as BannedValidatorInfo, e as CalldataAddress, C as CalldataEncodable, j as ContractMethod, i as ContractMethodBase, g as ContractParamsArraySchemaElement, h as ContractParamsSchema, d as ContractSchema, o as DECIDED_STATES, a as DecodedCallData, D as DecodedDeployData, a4 as DelegatorClaimOptions, a3 as DelegatorExitOptions, a2 as DelegatorJoinOptions, U as DelegatorJoinResult, K as EpochData, O as EpochInfo, G as GenLayerClient, f as GenLayerMethod, b as GenLayerRawTransaction, c as GenLayerTransaction, H as Hash, L as LeaderReceipt, M as MethodDescription, N as Network, P as PendingDeposit, F as PendingWithdrawal, a1 as SetIdentityOptions, a0 as SetOperatorOptions, y as SnapSource, J as StakeInfo, a5 as StakingActions, z as StakingContract, Q as StakingTransactionResult, k as TransactionHash, x as TransactionHashVariant, m as TransactionResult, r as TransactionResultNameToNumber, l as TransactionStatus, w as TransactionType, _ as ValidatorClaimOptions, Y as ValidatorDepositOptions, Z as ValidatorExitOptions, B as ValidatorIdentity, E as ValidatorInfo, X as ValidatorJoinOptions, R as ValidatorJoinResult, $ as ValidatorPrimeOptions, A as ValidatorView, s as VoteType, W as WithdrawalCommit, p as isDecidedState, q as transactionResultNumberToName, n as transactionsStatusNameToNumber, t as transactionsStatusNumberToName, u as voteTypeNameToNumber, v as voteTypeNumberToName } from '../index-DOok9G7O.cjs';
3
3
  export { G as GenLayerChain } from '../chains-DqSbucSW.cjs';
@@ -1,3 +1,3 @@
1
1
  export { Account, Address } from 'viem';
2
- export { I as BannedValidatorInfo, e as CalldataAddress, C as CalldataEncodable, j as ContractMethod, i as ContractMethodBase, g as ContractParamsArraySchemaElement, h as ContractParamsSchema, d as ContractSchema, o as DECIDED_STATES, a as DecodedCallData, D as DecodedDeployData, a4 as DelegatorClaimOptions, a3 as DelegatorExitOptions, a2 as DelegatorJoinOptions, U as DelegatorJoinResult, K as EpochData, O as EpochInfo, G as GenLayerClient, f as GenLayerMethod, b as GenLayerRawTransaction, c as GenLayerTransaction, H as Hash, L as LeaderReceipt, M as MethodDescription, N as Network, P as PendingDeposit, F as PendingWithdrawal, a1 as SetIdentityOptions, a0 as SetOperatorOptions, y as SnapSource, J as StakeInfo, a5 as StakingActions, z as StakingContract, Q as StakingTransactionResult, k as TransactionHash, x as TransactionHashVariant, m as TransactionResult, r as TransactionResultNameToNumber, l as TransactionStatus, w as TransactionType, _ as ValidatorClaimOptions, Y as ValidatorDepositOptions, Z as ValidatorExitOptions, B as ValidatorIdentity, E as ValidatorInfo, X as ValidatorJoinOptions, R as ValidatorJoinResult, $ as ValidatorPrimeOptions, A as ValidatorView, s as VoteType, W as WithdrawalCommit, p as isDecidedState, q as transactionResultNumberToName, n as transactionsStatusNameToNumber, t as transactionsStatusNumberToName, u as voteTypeNameToNumber, v as voteTypeNumberToName } from '../index-BJ_hU-bk.js';
2
+ export { I as BannedValidatorInfo, e as CalldataAddress, C as CalldataEncodable, j as ContractMethod, i as ContractMethodBase, g as ContractParamsArraySchemaElement, h as ContractParamsSchema, d as ContractSchema, o as DECIDED_STATES, a as DecodedCallData, D as DecodedDeployData, a4 as DelegatorClaimOptions, a3 as DelegatorExitOptions, a2 as DelegatorJoinOptions, U as DelegatorJoinResult, K as EpochData, O as EpochInfo, G as GenLayerClient, f as GenLayerMethod, b as GenLayerRawTransaction, c as GenLayerTransaction, H as Hash, L as LeaderReceipt, M as MethodDescription, N as Network, P as PendingDeposit, F as PendingWithdrawal, a1 as SetIdentityOptions, a0 as SetOperatorOptions, y as SnapSource, J as StakeInfo, a5 as StakingActions, z as StakingContract, Q as StakingTransactionResult, k as TransactionHash, x as TransactionHashVariant, m as TransactionResult, r as TransactionResultNameToNumber, l as TransactionStatus, w as TransactionType, _ as ValidatorClaimOptions, Y as ValidatorDepositOptions, Z as ValidatorExitOptions, B as ValidatorIdentity, E as ValidatorInfo, X as ValidatorJoinOptions, R as ValidatorJoinResult, $ as ValidatorPrimeOptions, A as ValidatorView, s as VoteType, W as WithdrawalCommit, p as isDecidedState, q as transactionResultNumberToName, n as transactionsStatusNameToNumber, t as transactionsStatusNumberToName, u as voteTypeNameToNumber, v as voteTypeNumberToName } from '../index-DbrlrnTQ.js';
3
3
  export { G as GenLayerChain } from '../chains-DqSbucSW.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "genlayer-js",
3
3
  "type": "module",
4
- "version": "0.22.1",
4
+ "version": "0.23.1",
5
5
  "description": "GenLayer JavaScript SDK",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",