@getpara/viem-v2-integration 1.16.0 → 1.17.0-dev.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.
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
var __create = Object.create;
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
7
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -18,6 +20,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
20
|
}
|
|
19
21
|
return a;
|
|
20
22
|
};
|
|
23
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
24
|
var __export = (target, all) => {
|
|
22
25
|
for (var name in all)
|
|
23
26
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -128,9 +131,10 @@ function getViemChain(chainId) {
|
|
|
128
131
|
throw new Error(`chain with id ${chainId} not found`);
|
|
129
132
|
}
|
|
130
133
|
function createParaViemClient(para, params, opts) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
+
const account = (opts == null ? void 0 : opts.noAccount) ? void 0 : createParaAccount(para);
|
|
135
|
+
return (0, import_viem.createWalletClient)(__spreadProps(__spreadValues({}, params), {
|
|
136
|
+
account
|
|
137
|
+
}));
|
|
134
138
|
}
|
|
135
139
|
// Annotate the CommonJS export names for ESM import in node:
|
|
136
140
|
0 && (module.exports = {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
2
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
6
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -14,6 +16,7 @@ var __spreadValues = (a, b) => {
|
|
|
14
16
|
}
|
|
15
17
|
return a;
|
|
16
18
|
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
17
20
|
var __async = (__this, __arguments, generator) => {
|
|
18
21
|
return new Promise((resolve, reject) => {
|
|
19
22
|
var fulfilled = (value) => {
|
|
@@ -101,9 +104,10 @@ function getViemChain(chainId) {
|
|
|
101
104
|
throw new Error(`chain with id ${chainId} not found`);
|
|
102
105
|
}
|
|
103
106
|
function createParaViemClient(para, params, opts) {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
+
const account = (opts == null ? void 0 : opts.noAccount) ? void 0 : createParaAccount(para);
|
|
108
|
+
return createWalletClient(__spreadProps(__spreadValues({}, params), {
|
|
109
|
+
account
|
|
110
|
+
}));
|
|
107
111
|
}
|
|
108
112
|
export {
|
|
109
113
|
createParaAccount,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WalletClient, WalletClientConfig, LocalAccount, Hex } from 'viem';
|
|
1
|
+
import { WalletClient, WalletClientConfig, LocalAccount, Hex, Transport, Chain } from 'viem';
|
|
2
2
|
import * as viemChains from 'viem/chains';
|
|
3
3
|
import ParaCore from '@getpara/core-sdk';
|
|
4
4
|
interface ViemClientOpts {
|
|
@@ -6,5 +6,5 @@ interface ViemClientOpts {
|
|
|
6
6
|
}
|
|
7
7
|
export declare function createParaAccount(para: ParaCore, walletAddress?: Hex): LocalAccount;
|
|
8
8
|
export declare function getViemChain(chainId: string): viemChains.Chain;
|
|
9
|
-
export declare function createParaViemClient(para: ParaCore, params: WalletClientConfig, opts?: ViemClientOpts): WalletClient
|
|
9
|
+
export declare function createParaViemClient<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined>(para: ParaCore, params: WalletClientConfig<TTransport, TChain, LocalAccount | undefined>, opts?: ViemClientOpts): WalletClient<TTransport, TChain, LocalAccount | undefined>;
|
|
10
10
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/viem-v2-integration",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0-dev.0",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,8 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"typescript": "5.1.6",
|
|
21
|
-
"viem": "^2.
|
|
22
|
-
"wagmi": "^2.14.16"
|
|
21
|
+
"viem": "^2.30.5"
|
|
23
22
|
},
|
|
24
23
|
"peerDependencies": {
|
|
25
24
|
"viem": "2.x"
|
|
@@ -35,5 +34,5 @@
|
|
|
35
34
|
"types": "./dist/types/index.d.ts"
|
|
36
35
|
}
|
|
37
36
|
},
|
|
38
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "e6e791d4e4f9afd94f2093d6045d686b85e5a682"
|
|
39
38
|
}
|