genlayer-js 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -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 +4059 -26
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4052 -19
- 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 +26 -3
- 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
package/dist/types/index.cjs
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
|
|
13
|
+
var _chunkH4ZYXVV2cjs = require('../chunk-H4ZYXVV2.cjs');
|
|
13
14
|
require('../chunk-75ZPJI57.cjs');
|
|
14
15
|
|
|
15
16
|
|
|
@@ -22,4 +23,5 @@ require('../chunk-75ZPJI57.cjs');
|
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
|
|
25
|
-
|
|
26
|
+
|
|
27
|
+
exports.CalldataAddress = _chunkH4ZYXVV2cjs.CalldataAddress; exports.TransactionHashVariant = _chunkH4ZYXVV2cjs.TransactionHashVariant; exports.TransactionResult = _chunkH4ZYXVV2cjs.TransactionResult; exports.TransactionResultNameToNumber = _chunkH4ZYXVV2cjs.TransactionResultNameToNumber; exports.TransactionStatus = _chunkH4ZYXVV2cjs.TransactionStatus; exports.VoteType = _chunkH4ZYXVV2cjs.VoteType; exports.transactionResultNumberToName = _chunkH4ZYXVV2cjs.transactionResultNumberToName; exports.transactionsStatusNameToNumber = _chunkH4ZYXVV2cjs.transactionsStatusNameToNumber; exports.transactionsStatusNumberToName = _chunkH4ZYXVV2cjs.transactionsStatusNumberToName; exports.voteTypeNameToNumber = _chunkH4ZYXVV2cjs.voteTypeNameToNumber; exports.voteTypeNumberToName = _chunkH4ZYXVV2cjs.voteTypeNumberToName;
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Account, Address } from 'viem';
|
|
2
|
-
export { a as CalldataAddress, C as CalldataEncodable, f as ContractMethod, e as ContractMethodBase, c as ContractParamsArraySchemaElement, d as ContractParamsSchema, g as ContractSchema,
|
|
2
|
+
export { a as CalldataAddress, C as CalldataEncodable, f as ContractMethod, e as ContractMethodBase, c as ContractParamsArraySchemaElement, d as ContractParamsSchema, g as ContractSchema, q as DecodedCallData, D as DecodedDeployData, G as GenLayerClient, b as GenLayerMethod, s as GenLayerRawTransaction, r as GenLayerTransaction, H as Hash, M as MethodDescription, N as Network, S as SnapSource, h as TransactionHash, p as TransactionHashVariant, j as TransactionResult, m as TransactionResultNameToNumber, i as TransactionStatus, o as TransactionType, V as VoteType, l as transactionResultNumberToName, k as transactionsStatusNameToNumber, t as transactionsStatusNumberToName, n as voteTypeNameToNumber, v as voteTypeNumberToName } from '../index-B_gpaVzJ.cjs';
|
|
3
3
|
export { G as GenLayerChain } from '../chains-BYSCF33g.cjs';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Account, Address } from 'viem';
|
|
2
|
-
export { a as CalldataAddress, C as CalldataEncodable, f as ContractMethod, e as ContractMethodBase, c as ContractParamsArraySchemaElement, d as ContractParamsSchema, g as ContractSchema,
|
|
2
|
+
export { a as CalldataAddress, C as CalldataEncodable, f as ContractMethod, e as ContractMethodBase, c as ContractParamsArraySchemaElement, d as ContractParamsSchema, g as ContractSchema, q as DecodedCallData, D as DecodedDeployData, G as GenLayerClient, b as GenLayerMethod, s as GenLayerRawTransaction, r as GenLayerTransaction, H as Hash, M as MethodDescription, N as Network, S as SnapSource, h as TransactionHash, p as TransactionHashVariant, j as TransactionResult, m as TransactionResultNameToNumber, i as TransactionStatus, o as TransactionType, V as VoteType, l as transactionResultNumberToName, k as transactionsStatusNameToNumber, t as transactionsStatusNumberToName, n as voteTypeNameToNumber, v as voteTypeNumberToName } from '../index-to6d0Hzj.js';
|
|
3
3
|
export { G as GenLayerChain } from '../chains-BYSCF33g.js';
|
package/dist/types/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CalldataAddress,
|
|
3
|
+
TransactionHashVariant,
|
|
3
4
|
TransactionResult,
|
|
4
5
|
TransactionResultNameToNumber,
|
|
5
6
|
TransactionStatus,
|
|
@@ -9,10 +10,11 @@ import {
|
|
|
9
10
|
transactionsStatusNumberToName,
|
|
10
11
|
voteTypeNameToNumber,
|
|
11
12
|
voteTypeNumberToName
|
|
12
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-GACCNOPJ.js";
|
|
13
14
|
import "../chunk-MLKGABMK.js";
|
|
14
15
|
export {
|
|
15
16
|
CalldataAddress,
|
|
17
|
+
TransactionHashVariant,
|
|
16
18
|
TransactionResult,
|
|
17
19
|
TransactionResultNameToNumber,
|
|
18
20
|
TransactionStatus,
|
package/package.json
CHANGED
package/src/chains/actions.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {GenLayerClient, GenLayerChain} from "@/types";
|
|
2
|
-
import {
|
|
2
|
+
import {testnetAsimov} from "./testnetAsimov";
|
|
3
3
|
|
|
4
4
|
export function chainActions(client: GenLayerClient<GenLayerChain>) {
|
|
5
5
|
return {
|
|
6
6
|
initializeConsensusSmartContract: async (forceReset: boolean = false): Promise<void> => {
|
|
7
|
-
if (client.chain?.id
|
|
7
|
+
if (client.chain?.id === testnetAsimov.id) {
|
|
8
8
|
return;
|
|
9
9
|
}
|
|
10
10
|
|
package/src/chains/index.ts
CHANGED