genlayer-js 0.18.14 → 0.19.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.
@@ -276,7 +276,7 @@ interface ContractMethod extends ContractMethodBase {
276
276
  }
277
277
  type ContractSchema = {
278
278
  ctor: ContractMethodBase;
279
- methods: ContractMethod[];
279
+ methods: Record<string, ContractMethod>;
280
280
  };
281
281
 
282
282
  type Network = "localnet" | "studionet" | "testnetAsimov" | "mainnet";
@@ -2836,4 +2836,4 @@ type GenLayerClient<TGenLayerChain extends GenLayerChain> = Omit<Client<Transpor
2836
2836
  }) => Promise<any>;
2837
2837
  } & StakingActions;
2838
2838
 
2839
- export { type ValidatorPrimeOptions as $, type ValidatorView as A, type ValidatorIdentity as B, type CalldataEncodable as C, type DecodedDeployData as D, type ValidatorInfo as E, type PendingWithdrawal as F, type GenLayerClient as G, type Hash as H, type BannedValidatorInfo as I, type StakeInfo as J, type EpochData as K, type LeaderReceipt as L, type MethodDescription as M, type Network as N, type EpochInfo as O, type PendingDeposit as P, type StakingTransactionResult as Q, type ValidatorJoinResult as R, STAKING_ABI as S, type TransactionDataElement as T, type DelegatorJoinResult as U, VALIDATOR_WALLET_ABI as V, type WithdrawalCommit as W, type ValidatorJoinOptions as X, type ValidatorDepositOptions as Y, type ValidatorExitOptions as Z, type ValidatorClaimOptions as _, type DecodedCallData as a, type SetOperatorOptions as a0, type SetIdentityOptions as a1, type DelegatorJoinOptions as a2, type DelegatorExitOptions as a3, type DelegatorClaimOptions as a4, type StakingActions as a5, type GenLayerRawTransaction as b, type GenLayerTransaction as c, CalldataAddress as d, type GenLayerMethod as e, type ContractParamsArraySchemaElement as f, type ContractParamsSchema as g, type ContractMethodBase as h, type ContractMethod as i, type ContractSchema as j, type TransactionHash as k, TransactionStatus as l, TransactionResult as m, transactionsStatusNameToNumber as n, DECIDED_STATES as o, isDecidedState as p, transactionResultNumberToName as q, TransactionResultNameToNumber as r, VoteType as s, transactionsStatusNumberToName as t, voteTypeNameToNumber as u, voteTypeNumberToName as v, type TransactionType as w, TransactionHashVariant as x, type SnapSource as y, type StakingContract as z };
2839
+ export { type ValidatorPrimeOptions as $, type ValidatorView as A, type ValidatorIdentity as B, type CalldataEncodable as C, type DecodedDeployData as D, type ValidatorInfo as E, type PendingWithdrawal as F, type GenLayerClient as G, type Hash as H, type BannedValidatorInfo as I, type StakeInfo as J, type EpochData as K, type LeaderReceipt as L, type MethodDescription as M, type Network as N, type EpochInfo as O, type PendingDeposit as P, type StakingTransactionResult as Q, type ValidatorJoinResult as R, STAKING_ABI as S, type TransactionDataElement as T, type DelegatorJoinResult as U, VALIDATOR_WALLET_ABI as V, type WithdrawalCommit as W, type ValidatorJoinOptions as X, type ValidatorDepositOptions as Y, type ValidatorExitOptions as Z, type ValidatorClaimOptions as _, type DecodedCallData as a, type SetOperatorOptions as a0, type SetIdentityOptions as a1, type DelegatorJoinOptions as a2, type DelegatorExitOptions as a3, type DelegatorClaimOptions as a4, type StakingActions as a5, type GenLayerRawTransaction as b, type GenLayerTransaction as c, type ContractSchema as d, CalldataAddress as e, type GenLayerMethod as f, type ContractParamsArraySchemaElement as g, type ContractParamsSchema as h, type ContractMethodBase as i, type ContractMethod as j, type TransactionHash as k, TransactionStatus as l, TransactionResult as m, transactionsStatusNameToNumber as n, DECIDED_STATES as o, isDecidedState as p, transactionResultNumberToName as q, TransactionResultNameToNumber as r, VoteType as s, transactionsStatusNumberToName as t, voteTypeNameToNumber as u, voteTypeNumberToName as v, type TransactionType as w, TransactionHashVariant as x, type SnapSource as y, type StakingContract as z };
@@ -276,7 +276,7 @@ interface ContractMethod extends ContractMethodBase {
276
276
  }
277
277
  type ContractSchema = {
278
278
  ctor: ContractMethodBase;
279
- methods: ContractMethod[];
279
+ methods: Record<string, ContractMethod>;
280
280
  };
281
281
 
282
282
  type Network = "localnet" | "studionet" | "testnetAsimov" | "mainnet";
@@ -2836,4 +2836,4 @@ type GenLayerClient<TGenLayerChain extends GenLayerChain> = Omit<Client<Transpor
2836
2836
  }) => Promise<any>;
2837
2837
  } & StakingActions;
2838
2838
 
2839
- export { type ValidatorPrimeOptions as $, type ValidatorView as A, type ValidatorIdentity as B, type CalldataEncodable as C, type DecodedDeployData as D, type ValidatorInfo as E, type PendingWithdrawal as F, type GenLayerClient as G, type Hash as H, type BannedValidatorInfo as I, type StakeInfo as J, type EpochData as K, type LeaderReceipt as L, type MethodDescription as M, type Network as N, type EpochInfo as O, type PendingDeposit as P, type StakingTransactionResult as Q, type ValidatorJoinResult as R, STAKING_ABI as S, type TransactionDataElement as T, type DelegatorJoinResult as U, VALIDATOR_WALLET_ABI as V, type WithdrawalCommit as W, type ValidatorJoinOptions as X, type ValidatorDepositOptions as Y, type ValidatorExitOptions as Z, type ValidatorClaimOptions as _, type DecodedCallData as a, type SetOperatorOptions as a0, type SetIdentityOptions as a1, type DelegatorJoinOptions as a2, type DelegatorExitOptions as a3, type DelegatorClaimOptions as a4, type StakingActions as a5, type GenLayerRawTransaction as b, type GenLayerTransaction as c, CalldataAddress as d, type GenLayerMethod as e, type ContractParamsArraySchemaElement as f, type ContractParamsSchema as g, type ContractMethodBase as h, type ContractMethod as i, type ContractSchema as j, type TransactionHash as k, TransactionStatus as l, TransactionResult as m, transactionsStatusNameToNumber as n, DECIDED_STATES as o, isDecidedState as p, transactionResultNumberToName as q, TransactionResultNameToNumber as r, VoteType as s, transactionsStatusNumberToName as t, voteTypeNameToNumber as u, voteTypeNumberToName as v, type TransactionType as w, TransactionHashVariant as x, type SnapSource as y, type StakingContract as z };
2839
+ export { type ValidatorPrimeOptions as $, type ValidatorView as A, type ValidatorIdentity as B, type CalldataEncodable as C, type DecodedDeployData as D, type ValidatorInfo as E, type PendingWithdrawal as F, type GenLayerClient as G, type Hash as H, type BannedValidatorInfo as I, type StakeInfo as J, type EpochData as K, type LeaderReceipt as L, type MethodDescription as M, type Network as N, type EpochInfo as O, type PendingDeposit as P, type StakingTransactionResult as Q, type ValidatorJoinResult as R, STAKING_ABI as S, type TransactionDataElement as T, type DelegatorJoinResult as U, VALIDATOR_WALLET_ABI as V, type WithdrawalCommit as W, type ValidatorJoinOptions as X, type ValidatorDepositOptions as Y, type ValidatorExitOptions as Z, type ValidatorClaimOptions as _, type DecodedCallData as a, type SetOperatorOptions as a0, type SetIdentityOptions as a1, type DelegatorJoinOptions as a2, type DelegatorExitOptions as a3, type DelegatorClaimOptions as a4, type StakingActions as a5, type GenLayerRawTransaction as b, type GenLayerTransaction as c, type ContractSchema as d, CalldataAddress as e, type GenLayerMethod as f, type ContractParamsArraySchemaElement as g, type ContractParamsSchema as h, type ContractMethodBase as i, type ContractMethod as j, type TransactionHash as k, TransactionStatus as l, TransactionResult as m, transactionsStatusNameToNumber as n, DECIDED_STATES as o, isDecidedState as p, transactionResultNumberToName as q, TransactionResultNameToNumber as r, VoteType as s, transactionsStatusNumberToName as t, voteTypeNameToNumber as u, voteTypeNumberToName as v, type TransactionType as w, TransactionHashVariant as x, type SnapSource as y, type StakingContract as z };
package/dist/index.cjs CHANGED
@@ -1921,6 +1921,85 @@ var createAccount = (accountPrivateKey) => {
1921
1921
  return account;
1922
1922
  };
1923
1923
 
1924
+ // src/contracts/schema.ts
1925
+ function buildGenVmPositionalArgs(options) {
1926
+ const { schema, functionName, valuesByParamName, strictTypes = true } = options;
1927
+ const method = schema.methods[functionName];
1928
+ if (!method) {
1929
+ throw new Error(`GenVM schema missing method: ${functionName}`);
1930
+ }
1931
+ return method.params.map(([name, type], index) => {
1932
+ if (!(name in valuesByParamName)) {
1933
+ throw new Error(
1934
+ `Missing argument "${name}" for ${functionName} (index ${index})`
1935
+ );
1936
+ }
1937
+ const value = valuesByParamName[name];
1938
+ if (strictTypes && !validateValueAgainstType(value, type)) {
1939
+ throw new Error(
1940
+ `Invalid argument "${name}" for ${functionName} (index ${index})`
1941
+ );
1942
+ }
1943
+ return value;
1944
+ });
1945
+ }
1946
+ function isPlainObject(value) {
1947
+ return typeof value === "object" && value !== null && !Array.isArray(value) && !(value instanceof Map);
1948
+ }
1949
+ function validateValueAgainstType(value, type) {
1950
+ if (type === "any") return true;
1951
+ if (type === "null") return value === null;
1952
+ if (type === "bool") return typeof value === "boolean";
1953
+ if (type === "string") return typeof value === "string";
1954
+ if (type === "bytes") {
1955
+ return typeof value === "string" || value instanceof Uint8Array;
1956
+ }
1957
+ if (type === "address") return typeof value === "string";
1958
+ if (type === "int") return typeof value === "number" || typeof value === "bigint";
1959
+ if (type === "array") return Array.isArray(value);
1960
+ if (type === "dict") return isPlainObject(value) || value instanceof Map;
1961
+ if (Array.isArray(type)) {
1962
+ if (!Array.isArray(value)) return false;
1963
+ if (type.length === 1 && typeof type[0] === "object" && type[0] !== null && "$rep" in type[0]) {
1964
+ const elementType = type[0].$rep;
1965
+ return value.every((v) => validateValueAgainstType(v, elementType));
1966
+ }
1967
+ return true;
1968
+ }
1969
+ if (isPlainObject(type)) {
1970
+ const orTypes = type.$or;
1971
+ if (Array.isArray(orTypes)) {
1972
+ return orTypes.some(
1973
+ (t) => validateValueAgainstType(value, t)
1974
+ );
1975
+ }
1976
+ if ("$dict" in type) {
1977
+ const dictType = type.$dict;
1978
+ if (value instanceof Map) {
1979
+ for (const v of value.values()) {
1980
+ if (!validateValueAgainstType(v, dictType)) return false;
1981
+ }
1982
+ return true;
1983
+ }
1984
+ if (!isPlainObject(value)) return false;
1985
+ return Object.values(value).every(
1986
+ (v) => validateValueAgainstType(v, dictType)
1987
+ );
1988
+ }
1989
+ if (isPlainObject(value)) {
1990
+ return Object.entries(type).every(([key, keyType]) => {
1991
+ if (!(key in value)) return true;
1992
+ return validateValueAgainstType(
1993
+ value[key],
1994
+ keyType
1995
+ );
1996
+ });
1997
+ }
1998
+ }
1999
+ return true;
2000
+ }
2001
+
2002
+
1924
2003
 
1925
2004
 
1926
2005
 
@@ -1932,4 +2011,4 @@ var createAccount = (accountPrivateKey) => {
1932
2011
 
1933
2012
 
1934
2013
 
1935
- exports.abi = abi_exports; exports.chains = _chunk5TKVNHAOcjs.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;
2014
+ exports.abi = abi_exports; exports.buildGenVmPositionalArgs = buildGenVmPositionalArgs; exports.chains = _chunk5TKVNHAOcjs.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-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 } from './index-DsN7LGHA.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-CYszVbTS.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';
@@ -106,4 +106,11 @@ declare function parseStakingAmount(amount: string | bigint): bigint;
106
106
  */
107
107
  declare function formatStakingAmount(amount: bigint): string;
108
108
 
109
- export { index as abi, createAccount, createClient, decodeInputData, decodeLocalnetTransaction, decodeTransaction, formatStakingAmount, generatePrivateKey, parseStakingAmount, simplifyTransactionReceipt };
109
+ declare function buildGenVmPositionalArgs(options: {
110
+ schema: ContractSchema;
111
+ functionName: string;
112
+ valuesByParamName: Record<string, unknown>;
113
+ strictTypes?: boolean;
114
+ }): unknown[];
115
+
116
+ export { index as abi, buildGenVmPositionalArgs, createAccount, createClient, decodeInputData, decodeLocalnetTransaction, decodeTransaction, formatStakingAmount, generatePrivateKey, parseStakingAmount, simplifyTransactionReceipt };
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 } from './index-sw3NAvBf.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-CbVqYeWa.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';
@@ -106,4 +106,11 @@ declare function parseStakingAmount(amount: string | bigint): bigint;
106
106
  */
107
107
  declare function formatStakingAmount(amount: bigint): string;
108
108
 
109
- export { index as abi, createAccount, createClient, decodeInputData, decodeLocalnetTransaction, decodeTransaction, formatStakingAmount, generatePrivateKey, parseStakingAmount, simplifyTransactionReceipt };
109
+ declare function buildGenVmPositionalArgs(options: {
110
+ schema: ContractSchema;
111
+ functionName: string;
112
+ valuesByParamName: Record<string, unknown>;
113
+ strictTypes?: boolean;
114
+ }): unknown[];
115
+
116
+ export { index as abi, buildGenVmPositionalArgs, createAccount, createClient, decodeInputData, decodeLocalnetTransaction, decodeTransaction, formatStakingAmount, generatePrivateKey, parseStakingAmount, simplifyTransactionReceipt };
package/dist/index.js CHANGED
@@ -1920,8 +1920,87 @@ var createAccount = (accountPrivateKey) => {
1920
1920
  const account = privateKeyToAccount(privateKey);
1921
1921
  return account;
1922
1922
  };
1923
+
1924
+ // src/contracts/schema.ts
1925
+ function buildGenVmPositionalArgs(options) {
1926
+ const { schema, functionName, valuesByParamName, strictTypes = true } = options;
1927
+ const method = schema.methods[functionName];
1928
+ if (!method) {
1929
+ throw new Error(`GenVM schema missing method: ${functionName}`);
1930
+ }
1931
+ return method.params.map(([name, type], index) => {
1932
+ if (!(name in valuesByParamName)) {
1933
+ throw new Error(
1934
+ `Missing argument "${name}" for ${functionName} (index ${index})`
1935
+ );
1936
+ }
1937
+ const value = valuesByParamName[name];
1938
+ if (strictTypes && !validateValueAgainstType(value, type)) {
1939
+ throw new Error(
1940
+ `Invalid argument "${name}" for ${functionName} (index ${index})`
1941
+ );
1942
+ }
1943
+ return value;
1944
+ });
1945
+ }
1946
+ function isPlainObject(value) {
1947
+ return typeof value === "object" && value !== null && !Array.isArray(value) && !(value instanceof Map);
1948
+ }
1949
+ function validateValueAgainstType(value, type) {
1950
+ if (type === "any") return true;
1951
+ if (type === "null") return value === null;
1952
+ if (type === "bool") return typeof value === "boolean";
1953
+ if (type === "string") return typeof value === "string";
1954
+ if (type === "bytes") {
1955
+ return typeof value === "string" || value instanceof Uint8Array;
1956
+ }
1957
+ if (type === "address") return typeof value === "string";
1958
+ if (type === "int") return typeof value === "number" || typeof value === "bigint";
1959
+ if (type === "array") return Array.isArray(value);
1960
+ if (type === "dict") return isPlainObject(value) || value instanceof Map;
1961
+ if (Array.isArray(type)) {
1962
+ if (!Array.isArray(value)) return false;
1963
+ if (type.length === 1 && typeof type[0] === "object" && type[0] !== null && "$rep" in type[0]) {
1964
+ const elementType = type[0].$rep;
1965
+ return value.every((v) => validateValueAgainstType(v, elementType));
1966
+ }
1967
+ return true;
1968
+ }
1969
+ if (isPlainObject(type)) {
1970
+ const orTypes = type.$or;
1971
+ if (Array.isArray(orTypes)) {
1972
+ return orTypes.some(
1973
+ (t) => validateValueAgainstType(value, t)
1974
+ );
1975
+ }
1976
+ if ("$dict" in type) {
1977
+ const dictType = type.$dict;
1978
+ if (value instanceof Map) {
1979
+ for (const v of value.values()) {
1980
+ if (!validateValueAgainstType(v, dictType)) return false;
1981
+ }
1982
+ return true;
1983
+ }
1984
+ if (!isPlainObject(value)) return false;
1985
+ return Object.values(value).every(
1986
+ (v) => validateValueAgainstType(v, dictType)
1987
+ );
1988
+ }
1989
+ if (isPlainObject(value)) {
1990
+ return Object.entries(type).every(([key, keyType]) => {
1991
+ if (!(key in value)) return true;
1992
+ return validateValueAgainstType(
1993
+ value[key],
1994
+ keyType
1995
+ );
1996
+ });
1997
+ }
1998
+ }
1999
+ return true;
2000
+ }
1923
2001
  export {
1924
2002
  abi_exports as abi,
2003
+ buildGenVmPositionalArgs,
1925
2004
  chains_exports as chains,
1926
2005
  createAccount,
1927
2006
  createClient,
@@ -1,3 +1,3 @@
1
1
  export { Account, Address } from 'viem';
2
- export { I as BannedValidatorInfo, d as CalldataAddress, C as CalldataEncodable, i as ContractMethod, h as ContractMethodBase, f as ContractParamsArraySchemaElement, g as ContractParamsSchema, j 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, e 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-DsN7LGHA.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-CYszVbTS.cjs';
3
3
  export { G as GenLayerChain } from '../chains-B7B7UXdn.cjs';
@@ -1,3 +1,3 @@
1
1
  export { Account, Address } from 'viem';
2
- export { I as BannedValidatorInfo, d as CalldataAddress, C as CalldataEncodable, i as ContractMethod, h as ContractMethodBase, f as ContractParamsArraySchemaElement, g as ContractParamsSchema, j 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, e 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-sw3NAvBf.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-CbVqYeWa.js';
3
3
  export { G as GenLayerChain } from '../chains-B7B7UXdn.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "genlayer-js",
3
3
  "type": "module",
4
- "version": "0.18.14",
4
+ "version": "0.19.0",
5
5
  "description": "GenLayer JavaScript SDK",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",