smart-multisig-engine 0.1.0
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/README.md +409 -0
- package/dist/chunk-YQE6NIEB.js +210 -0
- package/dist/chunk-YQE6NIEB.js.map +1 -0
- package/dist/index.cjs +247 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +85 -0
- package/dist/index.d.ts +85 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/dist/react.cjs +324 -0
- package/dist/react.cjs.map +1 -0
- package/dist/react.d.cts +43 -0
- package/dist/react.d.ts +43 -0
- package/dist/react.js +106 -0
- package/dist/react.js.map +1 -0
- package/dist/types-BJD1jdcY.d.cts +64 -0
- package/dist/types-BJD1jdcY.d.ts +64 -0
- package/package.json +70 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Config } from '@wagmi/core';
|
|
2
|
+
import { Address, Abi, Hex } from 'viem';
|
|
3
|
+
|
|
4
|
+
interface ContractCallParams {
|
|
5
|
+
address: Address;
|
|
6
|
+
abi: Abi;
|
|
7
|
+
functionName: string;
|
|
8
|
+
args?: readonly unknown[];
|
|
9
|
+
value?: bigint;
|
|
10
|
+
chainId?: number;
|
|
11
|
+
account?: Address;
|
|
12
|
+
}
|
|
13
|
+
interface EncodedCallData {
|
|
14
|
+
to: Address;
|
|
15
|
+
data: Hex;
|
|
16
|
+
value: bigint;
|
|
17
|
+
}
|
|
18
|
+
interface TxMatchCriteria {
|
|
19
|
+
to: Address;
|
|
20
|
+
value: bigint;
|
|
21
|
+
data: Hex;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
type AdapterType = "safe";
|
|
25
|
+
interface AdapterServiceOptions {
|
|
26
|
+
txServiceUrl?: string;
|
|
27
|
+
apiKey?: string;
|
|
28
|
+
}
|
|
29
|
+
interface SubmitTxOptions extends ContractCallParams, AdapterServiceOptions {
|
|
30
|
+
adapter: AdapterType;
|
|
31
|
+
walletAddress: Address;
|
|
32
|
+
config: Config;
|
|
33
|
+
pollingInterval?: number;
|
|
34
|
+
maxAttempts?: number;
|
|
35
|
+
}
|
|
36
|
+
interface SubmitTxResult {
|
|
37
|
+
txHash: string;
|
|
38
|
+
}
|
|
39
|
+
interface WaitForExecutionOptions extends AdapterServiceOptions {
|
|
40
|
+
adapter: AdapterType;
|
|
41
|
+
txHash: string;
|
|
42
|
+
chainId: bigint;
|
|
43
|
+
pollingInterval?: number;
|
|
44
|
+
maxAttempts?: number;
|
|
45
|
+
}
|
|
46
|
+
interface WaitForExecutionResult {
|
|
47
|
+
transactionHash: string;
|
|
48
|
+
}
|
|
49
|
+
interface FetchPendingOptions extends AdapterServiceOptions {
|
|
50
|
+
adapter: AdapterType;
|
|
51
|
+
walletAddress: string;
|
|
52
|
+
chainId: bigint;
|
|
53
|
+
}
|
|
54
|
+
interface SimulateOptions extends ContractCallParams {
|
|
55
|
+
adapter: AdapterType;
|
|
56
|
+
config: Config;
|
|
57
|
+
}
|
|
58
|
+
interface WriteOptions {
|
|
59
|
+
adapter: AdapterType;
|
|
60
|
+
config: Config;
|
|
61
|
+
request: unknown;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type { AdapterServiceOptions as A, ContractCallParams as C, EncodedCallData as E, FetchPendingOptions as F, SimulateOptions as S, TxMatchCriteria as T, WaitForExecutionOptions as W, SubmitTxOptions as a, SubmitTxResult as b, WaitForExecutionResult as c, WriteOptions as d, AdapterType as e };
|
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "smart-multisig-engine",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"require": {
|
|
16
|
+
"types": "./dist/index.d.cts",
|
|
17
|
+
"default": "./dist/index.cjs"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"./react": {
|
|
21
|
+
"import": {
|
|
22
|
+
"types": "./dist/react.d.ts",
|
|
23
|
+
"default": "./dist/react.js"
|
|
24
|
+
},
|
|
25
|
+
"require": {
|
|
26
|
+
"types": "./dist/react.d.cts",
|
|
27
|
+
"default": "./dist/react.cjs"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist"
|
|
33
|
+
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "tsup",
|
|
36
|
+
"dev": "tsup --watch",
|
|
37
|
+
"test": "vitest",
|
|
38
|
+
"typecheck": "tsc --noEmit",
|
|
39
|
+
"clean": "rm -rf dist"
|
|
40
|
+
},
|
|
41
|
+
"keywords": [],
|
|
42
|
+
"author": "",
|
|
43
|
+
"license": "ISC",
|
|
44
|
+
"packageManager": "pnpm@10.27.0",
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@tanstack/react-query": "^5.0.0",
|
|
47
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
48
|
+
"tsup": "^8.0.0",
|
|
49
|
+
"typescript": "^5.0.0",
|
|
50
|
+
"vitest": "^3.0.0"
|
|
51
|
+
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"@tanstack/react-query": "^5.0.0",
|
|
54
|
+
"react": "^18.0.0 || ^19.0.0"
|
|
55
|
+
},
|
|
56
|
+
"peerDependenciesMeta": {
|
|
57
|
+
"@tanstack/react-query": {
|
|
58
|
+
"optional": true
|
|
59
|
+
},
|
|
60
|
+
"react": {
|
|
61
|
+
"optional": true
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"dependencies": {
|
|
65
|
+
"@safe-global/api-kit": "^4.0.1",
|
|
66
|
+
"@safe-global/types-kit": "^3.0.0",
|
|
67
|
+
"@wagmi/core": "^3.3.1",
|
|
68
|
+
"viem": "^2.44.4"
|
|
69
|
+
}
|
|
70
|
+
}
|