genlayer-js 0.0.2 → 0.0.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 +1 -1
- package/README.md +1 -1
- package/dist/types/index.cjs +5 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +4 -0
- package/package.json +1 -1
- package/src/accounts/actions.ts +2 -2
- package/src/client/client.ts +0 -1
- package/src/types/accounts.ts +1 -0
- package/tests/client.test.ts +11 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
package/dist/types/index.cjs
CHANGED
|
@@ -3,5 +3,9 @@
|
|
|
3
3
|
var _chunkAR7OM4HIcjs = require('../chunk-AR7OM4HI.cjs');
|
|
4
4
|
require('../chunk-75ZPJI57.cjs');
|
|
5
5
|
|
|
6
|
+
// src/types/accounts.ts
|
|
7
|
+
var _viem = require('viem');
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.Account = _viem.Account; exports.TransactionStatus = _chunkAR7OM4HIcjs.TransactionStatus;
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { A as Address, G as GenLayerClient, a as GenLayerMethod, c as GenLayerTransaction, T as TransactionHash, b as TransactionStatus } from '../clients-CL75M8Ma.cjs';
|
|
2
2
|
export { S as SimulatorChain } from '../chains-CtZJFz4Q.cjs';
|
|
3
|
-
|
|
3
|
+
export { Account } from 'viem';
|
|
4
4
|
|
|
5
5
|
type ContractSchema = {
|
|
6
6
|
abi: Array<{
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { A as Address, G as GenLayerClient, a as GenLayerMethod, c as GenLayerTransaction, T as TransactionHash, b as TransactionStatus } from '../clients-Bt_8fb_v.js';
|
|
2
2
|
export { S as SimulatorChain } from '../chains-CtZJFz4Q.js';
|
|
3
|
-
|
|
3
|
+
export { Account } from 'viem';
|
|
4
4
|
|
|
5
5
|
type ContractSchema = {
|
|
6
6
|
abi: Array<{
|
package/dist/types/index.js
CHANGED
package/package.json
CHANGED
package/src/accounts/actions.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {GenLayerClient, TransactionHash, SimulatorChain} from "
|
|
2
|
-
import {simulator} from "
|
|
1
|
+
import {GenLayerClient, TransactionHash, SimulatorChain} from "../types";
|
|
2
|
+
import {simulator} from "../chains";
|
|
3
3
|
import {Account, Transport} from "viem";
|
|
4
4
|
|
|
5
5
|
export function accountActions<
|
package/src/client/client.ts
CHANGED
|
@@ -4,7 +4,6 @@ import {accountActions} from "../accounts/actions";
|
|
|
4
4
|
import {contractActions, overrideContractActions} from "../contracts/actions";
|
|
5
5
|
import {transactionActions} from "../transactions/actions";
|
|
6
6
|
import {GenLayerClient, SimulatorChain} from "@/types";
|
|
7
|
-
import {createAccount} from "@/accounts/account";
|
|
8
7
|
|
|
9
8
|
// Define the configuration interface for the client
|
|
10
9
|
interface ClientConfig {
|
package/src/types/accounts.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// tests/client.test.ts
|
|
2
|
+
import {createClient} from "../src/client/client";
|
|
3
|
+
import {simulator} from "../src/chains/simulator";
|
|
4
|
+
|
|
5
|
+
describe("Client Creation", () => {
|
|
6
|
+
it("should create a client for the simulator", () => {
|
|
7
|
+
const client = createClient({chain: simulator});
|
|
8
|
+
expect(client).toBeDefined();
|
|
9
|
+
expect(client.chain).toBe(simulator);
|
|
10
|
+
});
|
|
11
|
+
});
|