@dag-kit/kit 1.0.2 → 1.0.4-alpha.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/dist/index.cjs +564 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +209 -0
- package/dist/index.d.ts +209 -0
- package/dist/index.js +544 -0
- package/dist/index.js.map +1 -0
- package/package.json +16 -11
- package/src/clients/actions/contract.ts +1 -1
- package/src/clients/actions/example.ts +252 -252
- package/src/clients/actions/example2.ts +60 -60
- package/src/clients/actions/index.ts +145 -0
- package/src/clients/actions/main.ts +34 -17
- package/src/clients/actions/test.ts +210 -210
- package/src/clients/types.ts +2 -1
- package/src/exports/index.ts +7 -4
- package/src/exports/public-types.ts +6 -0
- package/src/index.ts +17 -0
- package/src/signers/PrivateKeySigner.ts +41 -0
- package/src/signers/PrivySigner.ts +93 -0
- package/src/signers/types.ts +45 -0
- package/src/version.ts +1 -1
- package/dist/esm/clients/actions/contract.js +0 -42
- package/dist/esm/clients/actions/example.js +0 -211
- package/dist/esm/clients/actions/example2.js +0 -50
- package/dist/esm/clients/actions/index.js +0 -1
- package/dist/esm/clients/actions/main.js +0 -415
- package/dist/esm/clients/actions/test.js +0 -1
- package/dist/esm/clients/actions/testPaymasterService.js +0 -88
- package/dist/esm/clients/chains.js +0 -19
- package/dist/esm/clients/types.js +0 -1
- package/dist/esm/exports/index.js +0 -2
- package/dist/esm/version.js +0 -3
- package/dist/types/clients/actions/contract.d.ts +0 -12
- package/dist/types/clients/actions/contract.d.ts.map +0 -1
- package/dist/types/clients/actions/example.d.ts +0 -2
- package/dist/types/clients/actions/example.d.ts.map +0 -1
- package/dist/types/clients/actions/example2.d.ts +0 -2
- package/dist/types/clients/actions/example2.d.ts.map +0 -1
- package/dist/types/clients/actions/index.d.ts +0 -1
- package/dist/types/clients/actions/index.d.ts.map +0 -1
- package/dist/types/clients/actions/main.d.ts +0 -40
- package/dist/types/clients/actions/main.d.ts.map +0 -1
- package/dist/types/clients/actions/test.d.ts +0 -1
- package/dist/types/clients/actions/test.d.ts.map +0 -1
- package/dist/types/clients/actions/testPaymasterService.d.ts +0 -2
- package/dist/types/clients/actions/testPaymasterService.d.ts.map +0 -1
- package/dist/types/clients/chains.d.ts +0 -81
- package/dist/types/clients/chains.d.ts.map +0 -1
- package/dist/types/clients/types.d.ts +0 -31
- package/dist/types/clients/types.d.ts.map +0 -1
- package/dist/types/exports/index.d.ts +0 -4
- package/dist/types/exports/index.d.ts.map +0 -1
- package/dist/types/version.d.ts +0 -2
- package/dist/types/version.d.ts.map +0 -1
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
export declare const awakening: {
|
|
2
|
-
bundler_rpc: string;
|
|
3
|
-
chain_config: {
|
|
4
|
-
blockExplorers: {
|
|
5
|
-
readonly default: {
|
|
6
|
-
readonly name: "Explorer";
|
|
7
|
-
readonly url: "https://awakening.bdagscan.com/";
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
blockTime?: number | undefined | undefined;
|
|
11
|
-
contracts?: {
|
|
12
|
-
[x: string]: import("viem").ChainContract | {
|
|
13
|
-
[sourceId: number]: import("viem").ChainContract | undefined;
|
|
14
|
-
} | undefined;
|
|
15
|
-
ensRegistry?: import("viem").ChainContract | undefined;
|
|
16
|
-
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
|
17
|
-
multicall3?: import("viem").ChainContract | undefined;
|
|
18
|
-
universalSignatureVerifier?: import("viem").ChainContract | undefined;
|
|
19
|
-
} | undefined;
|
|
20
|
-
ensTlds?: readonly string[] | undefined;
|
|
21
|
-
id: 1043;
|
|
22
|
-
name: "Awakening Testnet";
|
|
23
|
-
nativeCurrency: {
|
|
24
|
-
readonly decimals: 18;
|
|
25
|
-
readonly name: "Dag";
|
|
26
|
-
readonly symbol: "DAG";
|
|
27
|
-
};
|
|
28
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
29
|
-
rpcUrls: {
|
|
30
|
-
readonly default: {
|
|
31
|
-
readonly http: readonly ["https://public-bdag.nownodes.io"];
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
sourceId?: number | undefined | undefined;
|
|
35
|
-
testnet?: boolean | undefined | undefined;
|
|
36
|
-
custom?: Record<string, unknown> | undefined;
|
|
37
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
38
|
-
formatters?: undefined;
|
|
39
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
export declare const arbitrumSep: {
|
|
43
|
-
bundler_rpc: string;
|
|
44
|
-
chain_config: {
|
|
45
|
-
blockExplorers: {
|
|
46
|
-
readonly default: {
|
|
47
|
-
readonly name: "Arbiscan";
|
|
48
|
-
readonly url: "https://sepolia.arbiscan.io";
|
|
49
|
-
readonly apiUrl: "https://api-sepolia.arbiscan.io/api";
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
blockTime: 250;
|
|
53
|
-
contracts: {
|
|
54
|
-
readonly multicall3: {
|
|
55
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
56
|
-
readonly blockCreated: 81930;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
ensTlds?: readonly string[] | undefined;
|
|
60
|
-
id: 421614;
|
|
61
|
-
name: "Arbitrum Sepolia";
|
|
62
|
-
nativeCurrency: {
|
|
63
|
-
readonly name: "Arbitrum Sepolia Ether";
|
|
64
|
-
readonly symbol: "ETH";
|
|
65
|
-
readonly decimals: 18;
|
|
66
|
-
};
|
|
67
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
68
|
-
rpcUrls: {
|
|
69
|
-
readonly default: {
|
|
70
|
-
readonly http: readonly ["https://sepolia-rollup.arbitrum.io/rpc"];
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
sourceId?: number | undefined | undefined;
|
|
74
|
-
testnet: true;
|
|
75
|
-
custom?: Record<string, unknown> | undefined;
|
|
76
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
77
|
-
formatters?: undefined;
|
|
78
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
//# sourceMappingURL=chains.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../../../src/clients/chains.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGrB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGvB,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { type Chain, type Hash, type Address } from "viem";
|
|
2
|
-
export interface DagAAConfig {
|
|
3
|
-
chain: Chain;
|
|
4
|
-
rpcUrl: string;
|
|
5
|
-
bundlerUrl: string;
|
|
6
|
-
factoryAddress: Address;
|
|
7
|
-
entryPointAddress?: Address;
|
|
8
|
-
paymasterUrl?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface SmartAccountConfig {
|
|
11
|
-
owner: `0x${string}`;
|
|
12
|
-
accountAddress?: Address;
|
|
13
|
-
}
|
|
14
|
-
export interface SendUserOperationParams {
|
|
15
|
-
target: Address;
|
|
16
|
-
data?: `0x${string}`;
|
|
17
|
-
value?: bigint;
|
|
18
|
-
maxFeePerGas?: bigint;
|
|
19
|
-
maxPriorityFeePerGas?: bigint;
|
|
20
|
-
callGasLimit?: bigint;
|
|
21
|
-
verificationGasLimit?: bigint;
|
|
22
|
-
preVerificationGas?: bigint;
|
|
23
|
-
}
|
|
24
|
-
export interface UserOperationReceipt {
|
|
25
|
-
userOpHash: Hash;
|
|
26
|
-
transactionHash?: Hash;
|
|
27
|
-
success: boolean;
|
|
28
|
-
blockNumber?: bigint;
|
|
29
|
-
blockHash?: Hash;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/clients/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,KAAK,EAGV,KAAK,IAAI,EACT,KAAK,OAAO,EAGb,MAAM,MAAM,CAAC;AAEd,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,KAAK,MAAM,EAAE,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,IAAI,CAAC;IACjB,eAAe,CAAC,EAAE,IAAI,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { createDagAAClient, parseDAG } from "../clients/actions/main";
|
|
2
|
-
export { DagAAConfig, SmartAccountConfig, SendUserOperationParams, UserOperationReceipt, } from "../clients/types";
|
|
3
|
-
export { awakening, arbitrumSep } from "../clients/chains";
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/types/version.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,UAAU,CAAC"}
|