genlayer-js 0.8.0 → 0.9.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/CHANGELOG.md +9 -0
- package/dist/chains/index.cjs +2 -2
- package/dist/chains/index.d.cts +2 -2
- package/dist/chains/index.d.ts +2 -2
- package/dist/chains/index.js +3 -3
- package/dist/chains-BYSCF33g.d.cts +18 -0
- package/dist/chains-BYSCF33g.d.ts +18 -0
- package/dist/chunk-7YZQQWJZ.js +4056 -0
- package/dist/chunk-AZSICIZ3.cjs +132 -0
- package/dist/chunk-FPFZLPXI.cjs +4056 -0
- package/dist/chunk-RS7NCSOQ.js +132 -0
- package/dist/index-BM9hOtGg.d.cts +13 -0
- package/dist/index-C7Colsnk.d.ts +13 -0
- package/dist/index-DvSbRKD5.d.ts +370 -0
- package/dist/index-kDM_9wW1.d.cts +370 -0
- package/dist/index.cjs +393 -134
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +385 -126
- package/dist/types/index.cjs +18 -2
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.js +19 -3
- package/package.json +2 -2
- package/src/accounts/IAccountActions.ts +2 -2
- package/src/accounts/actions.ts +10 -4
- package/src/chains/actions.ts +5 -5
- package/src/chains/index.ts +1 -1
- package/src/chains/localnet.ts +4 -3
- package/src/chains/testnet.ts +4015 -0
- package/src/client/client.ts +64 -21
- package/src/contracts/actions.ts +185 -137
- package/src/transactions/actions.ts +173 -8
- package/src/types/accounts.ts +1 -2
- package/src/types/chains.ts +8 -2
- package/src/types/clients.ts +14 -13
- package/src/types/transactions.ts +250 -8
- package/src/utils/jsonifier.ts +47 -0
- package/src/wallet/actions.ts +4 -4
- package/src/wallet/connect.ts +12 -14
- package/tests/client.test.ts +105 -45
- package/dist/chains-C5PI_Nr_.d.cts +0 -13
- package/dist/chains-C5PI_Nr_.d.ts +0 -13
- package/dist/chunk-I6HC44KD.cjs +0 -72
- package/dist/chunk-K72OSU5N.js +0 -28
- package/dist/chunk-WEXFFND6.js +0 -72
- package/dist/chunk-YDFRDDP5.cjs +0 -28
- package/dist/index-B8E0qiOq.d.cts +0 -13
- package/dist/index-BfeTR7rO.d.cts +0 -187
- package/dist/index-CODAJePj.d.ts +0 -187
- package/dist/index-ZoW0HQ_m.d.ts +0 -13
- package/src/chains/simulator.ts +0 -30
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as viem from 'viem';
|
|
2
2
|
import { Account, Address } from 'viem';
|
|
3
|
-
import {
|
|
4
|
-
import { G as GenLayerClient, C as CalldataEncodable, T as TransactionDataElement } from './index-
|
|
3
|
+
import { G as GenLayerChain } from './chains-BYSCF33g.cjs';
|
|
4
|
+
import { G as GenLayerClient, C as CalldataEncodable, T as TransactionDataElement } from './index-kDM_9wW1.cjs';
|
|
5
5
|
import * as abitype from 'abitype';
|
|
6
|
-
import * as
|
|
6
|
+
import * as viem__types_types_authorization from 'viem/_types/types/authorization';
|
|
7
7
|
import * as viem_accounts from 'viem/accounts';
|
|
8
|
-
export { i as chains } from './index-
|
|
8
|
+
export { i as chains } from './index-BM9hOtGg.cjs';
|
|
9
9
|
|
|
10
10
|
interface ClientConfig {
|
|
11
11
|
chain?: {
|
|
@@ -31,7 +31,7 @@ interface ClientConfig {
|
|
|
31
31
|
endpoint?: string;
|
|
32
32
|
account?: Account | Address;
|
|
33
33
|
}
|
|
34
|
-
declare const createClient: (config?: ClientConfig) => GenLayerClient<
|
|
34
|
+
declare const createClient: (config?: ClientConfig) => GenLayerClient<GenLayerChain>;
|
|
35
35
|
|
|
36
36
|
declare const generatePrivateKey: () => `0x${string}`;
|
|
37
37
|
declare const createAccount: (accountPrivateKey?: `0x${string}`) => {
|
|
@@ -40,7 +40,7 @@ declare const createAccount: (accountPrivateKey?: `0x${string}`) => {
|
|
|
40
40
|
sign: (parameters: {
|
|
41
41
|
hash: viem.Hash;
|
|
42
42
|
}) => Promise<viem.Hex>;
|
|
43
|
-
|
|
43
|
+
signAuthorization: (parameters: viem__types_types_authorization.AuthorizationRequest) => Promise<viem_accounts.SignAuthorizationReturnType>;
|
|
44
44
|
signMessage: ({ message }: {
|
|
45
45
|
message: viem.SignableMessage;
|
|
46
46
|
}) => Promise<viem.Hex>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as viem from 'viem';
|
|
2
2
|
import { Account, Address } from 'viem';
|
|
3
|
-
import {
|
|
4
|
-
import { G as GenLayerClient, C as CalldataEncodable, T as TransactionDataElement } from './index-
|
|
3
|
+
import { G as GenLayerChain } from './chains-BYSCF33g.js';
|
|
4
|
+
import { G as GenLayerClient, C as CalldataEncodable, T as TransactionDataElement } from './index-DvSbRKD5.js';
|
|
5
5
|
import * as abitype from 'abitype';
|
|
6
|
-
import * as
|
|
6
|
+
import * as viem__types_types_authorization from 'viem/_types/types/authorization';
|
|
7
7
|
import * as viem_accounts from 'viem/accounts';
|
|
8
|
-
export { i as chains } from './index-
|
|
8
|
+
export { i as chains } from './index-C7Colsnk.js';
|
|
9
9
|
|
|
10
10
|
interface ClientConfig {
|
|
11
11
|
chain?: {
|
|
@@ -31,7 +31,7 @@ interface ClientConfig {
|
|
|
31
31
|
endpoint?: string;
|
|
32
32
|
account?: Account | Address;
|
|
33
33
|
}
|
|
34
|
-
declare const createClient: (config?: ClientConfig) => GenLayerClient<
|
|
34
|
+
declare const createClient: (config?: ClientConfig) => GenLayerClient<GenLayerChain>;
|
|
35
35
|
|
|
36
36
|
declare const generatePrivateKey: () => `0x${string}`;
|
|
37
37
|
declare const createAccount: (accountPrivateKey?: `0x${string}`) => {
|
|
@@ -40,7 +40,7 @@ declare const createAccount: (accountPrivateKey?: `0x${string}`) => {
|
|
|
40
40
|
sign: (parameters: {
|
|
41
41
|
hash: viem.Hash;
|
|
42
42
|
}) => Promise<viem.Hex>;
|
|
43
|
-
|
|
43
|
+
signAuthorization: (parameters: viem__types_types_authorization.AuthorizationRequest) => Promise<viem_accounts.SignAuthorizationReturnType>;
|
|
44
44
|
signMessage: ({ message }: {
|
|
45
45
|
message: viem.SignableMessage;
|
|
46
46
|
}) => Promise<viem.Hex>;
|