genlayer-js 0.21.0 → 0.21.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.
- package/dist/{index-B3hpL2wZ.d.ts → index-CsIdmK96.d.ts} +2 -1
- package/dist/{index-DxwfPDf6.d.cts → index-Dja_Xmq_.d.cts} +2 -1
- package/dist/index.cjs +31 -30
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +18 -17
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -218,7 +218,8 @@ type GenLayerRawTransaction = {
|
|
|
218
218
|
currentTimestamp: bigint;
|
|
219
219
|
sender: Address;
|
|
220
220
|
recipient: Address;
|
|
221
|
-
numOfInitialValidators
|
|
221
|
+
numOfInitialValidators?: bigint;
|
|
222
|
+
initialRotations?: bigint;
|
|
222
223
|
txSlot: bigint;
|
|
223
224
|
createdTimestamp: bigint;
|
|
224
225
|
lastVoteTimestamp: bigint;
|
|
@@ -218,7 +218,8 @@ type GenLayerRawTransaction = {
|
|
|
218
218
|
currentTimestamp: bigint;
|
|
219
219
|
sender: Address;
|
|
220
220
|
recipient: Address;
|
|
221
|
-
numOfInitialValidators
|
|
221
|
+
numOfInitialValidators?: bigint;
|
|
222
|
+
initialRotations?: bigint;
|
|
222
223
|
txSlot: bigint;
|
|
223
224
|
createdTimestamp: bigint;
|
|
224
225
|
lastVoteTimestamp: bigint;
|
package/dist/index.cjs
CHANGED
|
@@ -1011,30 +1011,31 @@ var decodeTransaction = (tx) => {
|
|
|
1011
1011
|
...tx,
|
|
1012
1012
|
txData: tx.txData,
|
|
1013
1013
|
txDataDecoded,
|
|
1014
|
-
currentTimestamp: tx.currentTimestamp.toString(),
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1014
|
+
currentTimestamp: _nullishCoalesce(_optionalChain([tx, 'access', _38 => _38.currentTimestamp, 'optionalAccess', _39 => _39.toString, 'call', _40 => _40()]), () => ( "0")),
|
|
1015
|
+
// Bradbury uses `initialRotations`; older chains use `numOfInitialValidators`
|
|
1016
|
+
numOfInitialValidators: _nullishCoalesce(_optionalChain([(_nullishCoalesce(tx.numOfInitialValidators, () => ( tx.initialRotations))), 'optionalAccess', _41 => _41.toString, 'call', _42 => _42()]), () => ( "0")),
|
|
1017
|
+
txSlot: _nullishCoalesce(_optionalChain([tx, 'access', _43 => _43.txSlot, 'optionalAccess', _44 => _44.toString, 'call', _45 => _45()]), () => ( "0")),
|
|
1018
|
+
createdTimestamp: _nullishCoalesce(_optionalChain([tx, 'access', _46 => _46.createdTimestamp, 'optionalAccess', _47 => _47.toString, 'call', _48 => _48()]), () => ( "0")),
|
|
1019
|
+
lastVoteTimestamp: _nullishCoalesce(_optionalChain([tx, 'access', _49 => _49.lastVoteTimestamp, 'optionalAccess', _50 => _50.toString, 'call', _51 => _51()]), () => ( "0")),
|
|
1020
|
+
queuePosition: _nullishCoalesce(_optionalChain([tx, 'access', _52 => _52.queuePosition, 'optionalAccess', _53 => _53.toString, 'call', _54 => _54()]), () => ( "0")),
|
|
1021
|
+
numOfRounds: _nullishCoalesce(_optionalChain([tx, 'access', _55 => _55.numOfRounds, 'optionalAccess', _56 => _56.toString, 'call', _57 => _57()]), () => ( "0")),
|
|
1021
1022
|
readStateBlockRange: {
|
|
1022
1023
|
...tx.readStateBlockRange,
|
|
1023
|
-
activationBlock: tx.readStateBlockRange.activationBlock.toString(),
|
|
1024
|
-
processingBlock: tx.readStateBlockRange.processingBlock.toString(),
|
|
1025
|
-
proposalBlock: tx.readStateBlockRange.proposalBlock.toString()
|
|
1024
|
+
activationBlock: _nullishCoalesce(_optionalChain([tx, 'access', _58 => _58.readStateBlockRange, 'optionalAccess', _59 => _59.activationBlock, 'optionalAccess', _60 => _60.toString, 'call', _61 => _61()]), () => ( "0")),
|
|
1025
|
+
processingBlock: _nullishCoalesce(_optionalChain([tx, 'access', _62 => _62.readStateBlockRange, 'optionalAccess', _63 => _63.processingBlock, 'optionalAccess', _64 => _64.toString, 'call', _65 => _65()]), () => ( "0")),
|
|
1026
|
+
proposalBlock: _nullishCoalesce(_optionalChain([tx, 'access', _66 => _66.readStateBlockRange, 'optionalAccess', _67 => _67.proposalBlock, 'optionalAccess', _68 => _68.toString, 'call', _69 => _69()]), () => ( "0"))
|
|
1026
1027
|
},
|
|
1027
1028
|
statusName: _chunkW4V73RPNcjs.transactionsStatusNumberToName[String(tx.status)],
|
|
1028
1029
|
resultName: _chunkW4V73RPNcjs.transactionResultNumberToName[String(tx.result)],
|
|
1029
1030
|
lastRound: {
|
|
1030
1031
|
...tx.lastRound,
|
|
1031
|
-
round: tx.lastRound.round.toString(),
|
|
1032
|
-
leaderIndex: tx.lastRound.leaderIndex.toString(),
|
|
1033
|
-
votesCommitted: tx.lastRound.votesCommitted.toString(),
|
|
1034
|
-
votesRevealed: tx.lastRound.votesRevealed.toString(),
|
|
1035
|
-
appealBond: tx.lastRound.appealBond.toString(),
|
|
1036
|
-
rotationsLeft: tx.lastRound.rotationsLeft.toString(),
|
|
1037
|
-
validatorVotesName: tx.lastRound.validatorVotes.map(
|
|
1032
|
+
round: _nullishCoalesce(_optionalChain([tx, 'access', _70 => _70.lastRound, 'optionalAccess', _71 => _71.round, 'optionalAccess', _72 => _72.toString, 'call', _73 => _73()]), () => ( "0")),
|
|
1033
|
+
leaderIndex: _nullishCoalesce(_optionalChain([tx, 'access', _74 => _74.lastRound, 'optionalAccess', _75 => _75.leaderIndex, 'optionalAccess', _76 => _76.toString, 'call', _77 => _77()]), () => ( "0")),
|
|
1034
|
+
votesCommitted: _nullishCoalesce(_optionalChain([tx, 'access', _78 => _78.lastRound, 'optionalAccess', _79 => _79.votesCommitted, 'optionalAccess', _80 => _80.toString, 'call', _81 => _81()]), () => ( "0")),
|
|
1035
|
+
votesRevealed: _nullishCoalesce(_optionalChain([tx, 'access', _82 => _82.lastRound, 'optionalAccess', _83 => _83.votesRevealed, 'optionalAccess', _84 => _84.toString, 'call', _85 => _85()]), () => ( "0")),
|
|
1036
|
+
appealBond: _nullishCoalesce(_optionalChain([tx, 'access', _86 => _86.lastRound, 'optionalAccess', _87 => _87.appealBond, 'optionalAccess', _88 => _88.toString, 'call', _89 => _89()]), () => ( "0")),
|
|
1037
|
+
rotationsLeft: _nullishCoalesce(_optionalChain([tx, 'access', _90 => _90.lastRound, 'optionalAccess', _91 => _91.rotationsLeft, 'optionalAccess', _92 => _92.toString, 'call', _93 => _93()]), () => ( "0")),
|
|
1038
|
+
validatorVotesName: (_nullishCoalesce(_optionalChain([tx, 'access', _94 => _94.lastRound, 'optionalAccess', _95 => _95.validatorVotes]), () => ( []))).map(
|
|
1038
1039
|
(vote) => _chunkW4V73RPNcjs.voteTypeNumberToName[String(vote)]
|
|
1039
1040
|
)
|
|
1040
1041
|
}
|
|
@@ -1116,7 +1117,7 @@ var simplifyTransactionReceipt = (tx) => {
|
|
|
1116
1117
|
var decodeLocalnetTransaction = (tx) => {
|
|
1117
1118
|
if (!tx.data) return tx;
|
|
1118
1119
|
try {
|
|
1119
|
-
const leaderReceipt = _optionalChain([tx, 'access',
|
|
1120
|
+
const leaderReceipt = _optionalChain([tx, 'access', _96 => _96.consensus_data, 'optionalAccess', _97 => _97.leader_receipt]);
|
|
1120
1121
|
if (leaderReceipt) {
|
|
1121
1122
|
const receipts = Array.isArray(leaderReceipt) ? leaderReceipt : [leaderReceipt];
|
|
1122
1123
|
receipts.forEach((receipt) => {
|
|
@@ -1147,7 +1148,7 @@ var decodeLocalnetTransaction = (tx) => {
|
|
|
1147
1148
|
}
|
|
1148
1149
|
});
|
|
1149
1150
|
}
|
|
1150
|
-
if (_optionalChain([tx, 'access',
|
|
1151
|
+
if (_optionalChain([tx, 'access', _98 => _98.data, 'optionalAccess', _99 => _99.calldata]) && typeof tx.data.calldata === "string") {
|
|
1151
1152
|
tx.data.calldata = {
|
|
1152
1153
|
base64: tx.data.calldata,
|
|
1153
1154
|
...calldataToUserFriendlyJson(b64ToArray(tx.data.calldata))
|
|
@@ -1209,8 +1210,8 @@ var transactionActions = (client, publicClient) => ({
|
|
|
1209
1210
|
return decodeLocalnetTransaction(transaction2);
|
|
1210
1211
|
}
|
|
1211
1212
|
const transaction = await publicClient.readContract({
|
|
1212
|
-
address: _optionalChain([client, 'access',
|
|
1213
|
-
abi: _optionalChain([client, 'access',
|
|
1213
|
+
address: _optionalChain([client, 'access', _100 => _100.chain, 'access', _101 => _101.consensusDataContract, 'optionalAccess', _102 => _102.address]),
|
|
1214
|
+
abi: _optionalChain([client, 'access', _103 => _103.chain, 'access', _104 => _104.consensusDataContract, 'optionalAccess', _105 => _105.abi]),
|
|
1214
1215
|
functionName: "getTransactionData",
|
|
1215
1216
|
args: [
|
|
1216
1217
|
hash,
|
|
@@ -1249,7 +1250,7 @@ var transactionActions = (client, publicClient) => ({
|
|
|
1249
1250
|
},
|
|
1250
1251
|
estimateTransactionGas: async (transactionParams) => {
|
|
1251
1252
|
const formattedParams = {
|
|
1252
|
-
from: transactionParams.from || _optionalChain([client, 'access',
|
|
1253
|
+
from: transactionParams.from || _optionalChain([client, 'access', _106 => _106.account, 'optionalAccess', _107 => _107.address]),
|
|
1253
1254
|
to: transactionParams.to,
|
|
1254
1255
|
data: transactionParams.data || "0x",
|
|
1255
1256
|
value: transactionParams.value ? `0x${transactionParams.value.toString(16)}` : "0x0"
|
|
@@ -1292,7 +1293,7 @@ var connect = async (client, network = "studionet", snapSource = "npm") => {
|
|
|
1292
1293
|
chainName: selectedNetwork.name,
|
|
1293
1294
|
rpcUrls: selectedNetwork.rpcUrls.default.http,
|
|
1294
1295
|
nativeCurrency: selectedNetwork.nativeCurrency,
|
|
1295
|
-
blockExplorerUrls: [_optionalChain([selectedNetwork, 'access',
|
|
1296
|
+
blockExplorerUrls: [_optionalChain([selectedNetwork, 'access', _108 => _108.blockExplorers, 'optionalAccess', _109 => _109.default, 'access', _110 => _110.url])]
|
|
1296
1297
|
};
|
|
1297
1298
|
const currentChainId = await window.ethereum.request({ method: "eth_chainId" });
|
|
1298
1299
|
if (currentChainId !== chainIdHex) {
|
|
@@ -1326,10 +1327,10 @@ var metamaskClient = async (snapSource = "npm") => {
|
|
|
1326
1327
|
}
|
|
1327
1328
|
const isFlask = async () => {
|
|
1328
1329
|
try {
|
|
1329
|
-
const clientVersion = await _optionalChain([window, 'access',
|
|
1330
|
+
const clientVersion = await _optionalChain([window, 'access', _111 => _111.ethereum, 'optionalAccess', _112 => _112.request, 'call', _113 => _113({
|
|
1330
1331
|
method: "web3_clientVersion"
|
|
1331
1332
|
})]);
|
|
1332
|
-
return _optionalChain([clientVersion, 'optionalAccess',
|
|
1333
|
+
return _optionalChain([clientVersion, 'optionalAccess', _114 => _114.includes, 'call', _115 => _115("flask")]);
|
|
1333
1334
|
} catch (error) {
|
|
1334
1335
|
console.error("Error detecting Flask:", error);
|
|
1335
1336
|
return false;
|
|
@@ -1337,7 +1338,7 @@ var metamaskClient = async (snapSource = "npm") => {
|
|
|
1337
1338
|
};
|
|
1338
1339
|
const installedSnaps = async () => {
|
|
1339
1340
|
try {
|
|
1340
|
-
return await _optionalChain([window, 'access',
|
|
1341
|
+
return await _optionalChain([window, 'access', _116 => _116.ethereum, 'optionalAccess', _117 => _117.request, 'call', _118 => _118({
|
|
1341
1342
|
method: "wallet_getSnaps"
|
|
1342
1343
|
})]);
|
|
1343
1344
|
} catch (error) {
|
|
@@ -1424,7 +1425,7 @@ function extractRevertReason(err) {
|
|
|
1424
1425
|
}
|
|
1425
1426
|
const revertError = err.walk((e) => e instanceof _viem.ContractFunctionRevertedError);
|
|
1426
1427
|
if (revertError instanceof _viem.ContractFunctionRevertedError) {
|
|
1427
|
-
if (_optionalChain([revertError, 'access',
|
|
1428
|
+
if (_optionalChain([revertError, 'access', _119 => _119.data, 'optionalAccess', _120 => _120.errorName])) {
|
|
1428
1429
|
return revertError.data.errorName;
|
|
1429
1430
|
}
|
|
1430
1431
|
return revertError.reason || "Unknown reason";
|
|
@@ -1512,7 +1513,7 @@ var stakingActions = (client, publicClient) => {
|
|
|
1512
1513
|
};
|
|
1513
1514
|
const getStakingAddress = () => {
|
|
1514
1515
|
const stakingConfig = client.chain.stakingContract;
|
|
1515
|
-
if (!_optionalChain([stakingConfig, 'optionalAccess',
|
|
1516
|
+
if (!_optionalChain([stakingConfig, 'optionalAccess', _121 => _121.address]) || stakingConfig.address === "0x0000000000000000000000000000000000000000") {
|
|
1516
1517
|
throw new Error("Staking is not supported on studio-based networks. Use testnet-asimov for staking operations.");
|
|
1517
1518
|
}
|
|
1518
1519
|
return stakingConfig.address;
|
|
@@ -1593,10 +1594,10 @@ var stakingActions = (client, publicClient) => {
|
|
|
1593
1594
|
return executeWrite({ to: getStakingAddress(), data });
|
|
1594
1595
|
},
|
|
1595
1596
|
validatorClaim: async (options) => {
|
|
1596
|
-
if (!_optionalChain([options, 'optionalAccess',
|
|
1597
|
+
if (!_optionalChain([options, 'optionalAccess', _122 => _122.validator]) && !client.account) {
|
|
1597
1598
|
throw new Error("Either provide validator address or initialize client with an account");
|
|
1598
1599
|
}
|
|
1599
|
-
const validatorAddress = _optionalChain([options, 'optionalAccess',
|
|
1600
|
+
const validatorAddress = _optionalChain([options, 'optionalAccess', _123 => _123.validator]) || client.account.address;
|
|
1600
1601
|
const data = _viem.encodeFunctionData.call(void 0, {
|
|
1601
1602
|
abi: _chunkTCAQ6AVFcjs.STAKING_ABI,
|
|
1602
1603
|
functionName: "validatorClaim",
|
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-B7B7UXdn.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-
|
|
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-Dja_Xmq_.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-B7B7UXdn.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-
|
|
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-CsIdmK96.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
|
@@ -1011,30 +1011,31 @@ var decodeTransaction = (tx) => {
|
|
|
1011
1011
|
...tx,
|
|
1012
1012
|
txData: tx.txData,
|
|
1013
1013
|
txDataDecoded,
|
|
1014
|
-
currentTimestamp: tx.currentTimestamp
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1014
|
+
currentTimestamp: tx.currentTimestamp?.toString() ?? "0",
|
|
1015
|
+
// Bradbury uses `initialRotations`; older chains use `numOfInitialValidators`
|
|
1016
|
+
numOfInitialValidators: (tx.numOfInitialValidators ?? tx.initialRotations)?.toString() ?? "0",
|
|
1017
|
+
txSlot: tx.txSlot?.toString() ?? "0",
|
|
1018
|
+
createdTimestamp: tx.createdTimestamp?.toString() ?? "0",
|
|
1019
|
+
lastVoteTimestamp: tx.lastVoteTimestamp?.toString() ?? "0",
|
|
1020
|
+
queuePosition: tx.queuePosition?.toString() ?? "0",
|
|
1021
|
+
numOfRounds: tx.numOfRounds?.toString() ?? "0",
|
|
1021
1022
|
readStateBlockRange: {
|
|
1022
1023
|
...tx.readStateBlockRange,
|
|
1023
|
-
activationBlock: tx.readStateBlockRange
|
|
1024
|
-
processingBlock: tx.readStateBlockRange
|
|
1025
|
-
proposalBlock: tx.readStateBlockRange
|
|
1024
|
+
activationBlock: tx.readStateBlockRange?.activationBlock?.toString() ?? "0",
|
|
1025
|
+
processingBlock: tx.readStateBlockRange?.processingBlock?.toString() ?? "0",
|
|
1026
|
+
proposalBlock: tx.readStateBlockRange?.proposalBlock?.toString() ?? "0"
|
|
1026
1027
|
},
|
|
1027
1028
|
statusName: transactionsStatusNumberToName[String(tx.status)],
|
|
1028
1029
|
resultName: transactionResultNumberToName[String(tx.result)],
|
|
1029
1030
|
lastRound: {
|
|
1030
1031
|
...tx.lastRound,
|
|
1031
|
-
round: tx.lastRound
|
|
1032
|
-
leaderIndex: tx.lastRound
|
|
1033
|
-
votesCommitted: tx.lastRound
|
|
1034
|
-
votesRevealed: tx.lastRound
|
|
1035
|
-
appealBond: tx.lastRound
|
|
1036
|
-
rotationsLeft: tx.lastRound
|
|
1037
|
-
validatorVotesName: tx.lastRound
|
|
1032
|
+
round: tx.lastRound?.round?.toString() ?? "0",
|
|
1033
|
+
leaderIndex: tx.lastRound?.leaderIndex?.toString() ?? "0",
|
|
1034
|
+
votesCommitted: tx.lastRound?.votesCommitted?.toString() ?? "0",
|
|
1035
|
+
votesRevealed: tx.lastRound?.votesRevealed?.toString() ?? "0",
|
|
1036
|
+
appealBond: tx.lastRound?.appealBond?.toString() ?? "0",
|
|
1037
|
+
rotationsLeft: tx.lastRound?.rotationsLeft?.toString() ?? "0",
|
|
1038
|
+
validatorVotesName: (tx.lastRound?.validatorVotes ?? []).map(
|
|
1038
1039
|
(vote) => voteTypeNumberToName[String(vote)]
|
|
1039
1040
|
)
|
|
1040
1041
|
}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -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-
|
|
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-Dja_Xmq_.cjs';
|
|
3
3
|
export { G as GenLayerChain } from '../chains-B7B7UXdn.cjs';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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-
|
|
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-CsIdmK96.js';
|
|
3
3
|
export { G as GenLayerChain } from '../chains-B7B7UXdn.js';
|