genlayer-js 0.9.1 → 0.9.3
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/CHANGELOG.md +4 -0
- package/dist/chains/index.cjs +2 -2
- package/dist/chains/index.d.cts +1 -1
- package/dist/chains/index.d.ts +1 -1
- package/dist/chains/index.js +3 -3
- package/dist/chunk-4FVQ3G7J.js +8039 -0
- package/dist/{chunk-RS7NCSOQ.js → chunk-GACCNOPJ.js} +7 -1
- package/dist/{chunk-AZSICIZ3.cjs → chunk-H4ZYXVV2.cjs} +7 -1
- package/dist/{chunk-FPFZLPXI.cjs → chunk-SMCXL465.cjs} +3996 -13
- package/dist/index-B52a6DSr.d.cts +13 -0
- package/dist/{index-kDM_9wW1.d.cts → index-B_gpaVzJ.d.cts} +6 -2
- package/dist/index-DNvW8slT.d.ts +13 -0
- package/dist/{index-DvSbRKD5.d.ts → index-to6d0Hzj.d.ts} +6 -2
- package/dist/index.cjs +4118 -41
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4097 -20
- package/dist/types/index.cjs +4 -2
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +3 -1
- package/package.json +1 -1
- package/src/chains/actions.ts +2 -2
- package/src/chains/index.ts +1 -1
- package/src/chains/localnet.ts +3986 -3
- package/{dist/chunk-7YZQQWJZ.js → src/chains/studionet.ts} +899 -940
- package/src/chains/{testnet.ts → testnetAsimov.ts} +5 -5
- package/src/contracts/actions.ts +93 -4
- package/src/transactions/actions.ts +14 -3
- package/src/types/network.ts +1 -1
- package/src/types/transactions.ts +5 -0
- package/src/wallet/connect.ts +6 -2
- package/dist/index-BM9hOtGg.d.cts +0 -13
- package/dist/index-C7Colsnk.d.ts +0 -13
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { G as GenLayerChain } from './chains-BYSCF33g.cjs';
|
|
2
|
+
|
|
3
|
+
declare const localnet: GenLayerChain;
|
|
4
|
+
|
|
5
|
+
declare const testnetAsimov: GenLayerChain;
|
|
6
|
+
|
|
7
|
+
declare const index_localnet: typeof localnet;
|
|
8
|
+
declare const index_testnetAsimov: typeof testnetAsimov;
|
|
9
|
+
declare namespace index {
|
|
10
|
+
export { index_localnet as localnet, index_testnetAsimov as testnetAsimov };
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { index as i, localnet as l, testnetAsimov as t };
|
|
@@ -122,6 +122,10 @@ declare const voteTypeNameToNumber: {
|
|
|
122
122
|
DETERMINISTIC_VIOLATION: string;
|
|
123
123
|
};
|
|
124
124
|
type TransactionType = "deploy" | "call";
|
|
125
|
+
declare enum TransactionHashVariant {
|
|
126
|
+
LATEST_FINAL = "latest-final",
|
|
127
|
+
LATEST_NONFINAL = "latest-nonfinal"
|
|
128
|
+
}
|
|
125
129
|
type DecodedDeployData = {
|
|
126
130
|
code?: Hex;
|
|
127
131
|
constructorArgs?: any;
|
|
@@ -271,7 +275,7 @@ type ContractSchema = {
|
|
|
271
275
|
methods: ContractMethod[];
|
|
272
276
|
};
|
|
273
277
|
|
|
274
|
-
type Network =
|
|
278
|
+
type Network = "localnet" | "studionet" | "testnetAsimov" | "mainnet";
|
|
275
279
|
|
|
276
280
|
type SnapSource = 'npm' | 'local';
|
|
277
281
|
|
|
@@ -367,4 +371,4 @@ type GenLayerClient<TGenLayerChain extends GenLayerChain> = Omit<Client<Transpor
|
|
|
367
371
|
metamaskClient: (snapSource?: SnapSource) => Promise<MetaMaskClientResult>;
|
|
368
372
|
};
|
|
369
373
|
|
|
370
|
-
export { type CalldataEncodable as C, type DecodedDeployData as D, type GenLayerClient as G, type Hash as H, type MethodDescription as M, type Network as N, type SnapSource as S, type TransactionDataElement as T, VoteType as V, CalldataAddress as a, type GenLayerMethod as b, type ContractParamsArraySchemaElement as c, type ContractParamsSchema as d, type ContractMethodBase as e, type ContractMethod as f, type ContractSchema as g, type TransactionHash as h, TransactionStatus as i, TransactionResult as j, transactionsStatusNameToNumber as k, transactionResultNumberToName as l, TransactionResultNameToNumber as m, voteTypeNameToNumber as n, type TransactionType as o, type DecodedCallData as
|
|
374
|
+
export { type CalldataEncodable as C, type DecodedDeployData as D, type GenLayerClient as G, type Hash as H, type MethodDescription as M, type Network as N, type SnapSource as S, type TransactionDataElement as T, VoteType as V, CalldataAddress as a, type GenLayerMethod as b, type ContractParamsArraySchemaElement as c, type ContractParamsSchema as d, type ContractMethodBase as e, type ContractMethod as f, type ContractSchema as g, type TransactionHash as h, TransactionStatus as i, TransactionResult as j, transactionsStatusNameToNumber as k, transactionResultNumberToName as l, TransactionResultNameToNumber as m, voteTypeNameToNumber as n, type TransactionType as o, TransactionHashVariant as p, type DecodedCallData as q, type GenLayerTransaction as r, type GenLayerRawTransaction as s, transactionsStatusNumberToName as t, voteTypeNumberToName as v };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { G as GenLayerChain } from './chains-BYSCF33g.js';
|
|
2
|
+
|
|
3
|
+
declare const localnet: GenLayerChain;
|
|
4
|
+
|
|
5
|
+
declare const testnetAsimov: GenLayerChain;
|
|
6
|
+
|
|
7
|
+
declare const index_localnet: typeof localnet;
|
|
8
|
+
declare const index_testnetAsimov: typeof testnetAsimov;
|
|
9
|
+
declare namespace index {
|
|
10
|
+
export { index_localnet as localnet, index_testnetAsimov as testnetAsimov };
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { index as i, localnet as l, testnetAsimov as t };
|
|
@@ -122,6 +122,10 @@ declare const voteTypeNameToNumber: {
|
|
|
122
122
|
DETERMINISTIC_VIOLATION: string;
|
|
123
123
|
};
|
|
124
124
|
type TransactionType = "deploy" | "call";
|
|
125
|
+
declare enum TransactionHashVariant {
|
|
126
|
+
LATEST_FINAL = "latest-final",
|
|
127
|
+
LATEST_NONFINAL = "latest-nonfinal"
|
|
128
|
+
}
|
|
125
129
|
type DecodedDeployData = {
|
|
126
130
|
code?: Hex;
|
|
127
131
|
constructorArgs?: any;
|
|
@@ -271,7 +275,7 @@ type ContractSchema = {
|
|
|
271
275
|
methods: ContractMethod[];
|
|
272
276
|
};
|
|
273
277
|
|
|
274
|
-
type Network =
|
|
278
|
+
type Network = "localnet" | "studionet" | "testnetAsimov" | "mainnet";
|
|
275
279
|
|
|
276
280
|
type SnapSource = 'npm' | 'local';
|
|
277
281
|
|
|
@@ -367,4 +371,4 @@ type GenLayerClient<TGenLayerChain extends GenLayerChain> = Omit<Client<Transpor
|
|
|
367
371
|
metamaskClient: (snapSource?: SnapSource) => Promise<MetaMaskClientResult>;
|
|
368
372
|
};
|
|
369
373
|
|
|
370
|
-
export { type CalldataEncodable as C, type DecodedDeployData as D, type GenLayerClient as G, type Hash as H, type MethodDescription as M, type Network as N, type SnapSource as S, type TransactionDataElement as T, VoteType as V, CalldataAddress as a, type GenLayerMethod as b, type ContractParamsArraySchemaElement as c, type ContractParamsSchema as d, type ContractMethodBase as e, type ContractMethod as f, type ContractSchema as g, type TransactionHash as h, TransactionStatus as i, TransactionResult as j, transactionsStatusNameToNumber as k, transactionResultNumberToName as l, TransactionResultNameToNumber as m, voteTypeNameToNumber as n, type TransactionType as o, type DecodedCallData as
|
|
374
|
+
export { type CalldataEncodable as C, type DecodedDeployData as D, type GenLayerClient as G, type Hash as H, type MethodDescription as M, type Network as N, type SnapSource as S, type TransactionDataElement as T, VoteType as V, CalldataAddress as a, type GenLayerMethod as b, type ContractParamsArraySchemaElement as c, type ContractParamsSchema as d, type ContractMethodBase as e, type ContractMethod as f, type ContractSchema as g, type TransactionHash as h, TransactionStatus as i, TransactionResult as j, transactionsStatusNameToNumber as k, transactionResultNumberToName as l, TransactionResultNameToNumber as m, voteTypeNameToNumber as n, type TransactionType as o, TransactionHashVariant as p, type DecodedCallData as q, type GenLayerTransaction as r, type GenLayerRawTransaction as s, transactionsStatusNumberToName as t, voteTypeNumberToName as v };
|