@compilot/web-sdk-wallet-wagmi 2.0.8-dev

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.
@@ -0,0 +1,415 @@
1
+ import { EvmChainId } from '@nexeraid/identity-schemas';
2
+ import { getAccount, getChainId, signMessage } from 'wagmi/actions';
3
+
4
+ function _regeneratorRuntime() {
5
+ _regeneratorRuntime = function () {
6
+ return e;
7
+ };
8
+ var t,
9
+ e = {},
10
+ r = Object.prototype,
11
+ n = r.hasOwnProperty,
12
+ o = Object.defineProperty || function (t, e, r) {
13
+ t[e] = r.value;
14
+ },
15
+ i = "function" == typeof Symbol ? Symbol : {},
16
+ a = i.iterator || "@@iterator",
17
+ c = i.asyncIterator || "@@asyncIterator",
18
+ u = i.toStringTag || "@@toStringTag";
19
+ function define(t, e, r) {
20
+ return Object.defineProperty(t, e, {
21
+ value: r,
22
+ enumerable: !0,
23
+ configurable: !0,
24
+ writable: !0
25
+ }), t[e];
26
+ }
27
+ try {
28
+ define({}, "");
29
+ } catch (t) {
30
+ define = function (t, e, r) {
31
+ return t[e] = r;
32
+ };
33
+ }
34
+ function wrap(t, e, r, n) {
35
+ var i = e && e.prototype instanceof Generator ? e : Generator,
36
+ a = Object.create(i.prototype),
37
+ c = new Context(n || []);
38
+ return o(a, "_invoke", {
39
+ value: makeInvokeMethod(t, r, c)
40
+ }), a;
41
+ }
42
+ function tryCatch(t, e, r) {
43
+ try {
44
+ return {
45
+ type: "normal",
46
+ arg: t.call(e, r)
47
+ };
48
+ } catch (t) {
49
+ return {
50
+ type: "throw",
51
+ arg: t
52
+ };
53
+ }
54
+ }
55
+ e.wrap = wrap;
56
+ var h = "suspendedStart",
57
+ l = "suspendedYield",
58
+ f = "executing",
59
+ s = "completed",
60
+ y = {};
61
+ function Generator() {}
62
+ function GeneratorFunction() {}
63
+ function GeneratorFunctionPrototype() {}
64
+ var p = {};
65
+ define(p, a, function () {
66
+ return this;
67
+ });
68
+ var d = Object.getPrototypeOf,
69
+ v = d && d(d(values([])));
70
+ v && v !== r && n.call(v, a) && (p = v);
71
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
72
+ function defineIteratorMethods(t) {
73
+ ["next", "throw", "return"].forEach(function (e) {
74
+ define(t, e, function (t) {
75
+ return this._invoke(e, t);
76
+ });
77
+ });
78
+ }
79
+ function AsyncIterator(t, e) {
80
+ function invoke(r, o, i, a) {
81
+ var c = tryCatch(t[r], t, o);
82
+ if ("throw" !== c.type) {
83
+ var u = c.arg,
84
+ h = u.value;
85
+ return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
86
+ invoke("next", t, i, a);
87
+ }, function (t) {
88
+ invoke("throw", t, i, a);
89
+ }) : e.resolve(h).then(function (t) {
90
+ u.value = t, i(u);
91
+ }, function (t) {
92
+ return invoke("throw", t, i, a);
93
+ });
94
+ }
95
+ a(c.arg);
96
+ }
97
+ var r;
98
+ o(this, "_invoke", {
99
+ value: function (t, n) {
100
+ function callInvokeWithMethodAndArg() {
101
+ return new e(function (e, r) {
102
+ invoke(t, n, e, r);
103
+ });
104
+ }
105
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
106
+ }
107
+ });
108
+ }
109
+ function makeInvokeMethod(e, r, n) {
110
+ var o = h;
111
+ return function (i, a) {
112
+ if (o === f) throw Error("Generator is already running");
113
+ if (o === s) {
114
+ if ("throw" === i) throw a;
115
+ return {
116
+ value: t,
117
+ done: !0
118
+ };
119
+ }
120
+ for (n.method = i, n.arg = a;;) {
121
+ var c = n.delegate;
122
+ if (c) {
123
+ var u = maybeInvokeDelegate(c, n);
124
+ if (u) {
125
+ if (u === y) continue;
126
+ return u;
127
+ }
128
+ }
129
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
130
+ if (o === h) throw o = s, n.arg;
131
+ n.dispatchException(n.arg);
132
+ } else "return" === n.method && n.abrupt("return", n.arg);
133
+ o = f;
134
+ var p = tryCatch(e, r, n);
135
+ if ("normal" === p.type) {
136
+ if (o = n.done ? s : l, p.arg === y) continue;
137
+ return {
138
+ value: p.arg,
139
+ done: n.done
140
+ };
141
+ }
142
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
143
+ }
144
+ };
145
+ }
146
+ function maybeInvokeDelegate(e, r) {
147
+ var n = r.method,
148
+ o = e.iterator[n];
149
+ if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
150
+ var i = tryCatch(o, e.iterator, r.arg);
151
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
152
+ var a = i.arg;
153
+ return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
154
+ }
155
+ function pushTryEntry(t) {
156
+ var e = {
157
+ tryLoc: t[0]
158
+ };
159
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
160
+ }
161
+ function resetTryEntry(t) {
162
+ var e = t.completion || {};
163
+ e.type = "normal", delete e.arg, t.completion = e;
164
+ }
165
+ function Context(t) {
166
+ this.tryEntries = [{
167
+ tryLoc: "root"
168
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
169
+ }
170
+ function values(e) {
171
+ if (e || "" === e) {
172
+ var r = e[a];
173
+ if (r) return r.call(e);
174
+ if ("function" == typeof e.next) return e;
175
+ if (!isNaN(e.length)) {
176
+ var o = -1,
177
+ i = function next() {
178
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
179
+ return next.value = t, next.done = !0, next;
180
+ };
181
+ return i.next = i;
182
+ }
183
+ }
184
+ throw new TypeError(typeof e + " is not iterable");
185
+ }
186
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
187
+ value: GeneratorFunctionPrototype,
188
+ configurable: !0
189
+ }), o(GeneratorFunctionPrototype, "constructor", {
190
+ value: GeneratorFunction,
191
+ configurable: !0
192
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
193
+ var e = "function" == typeof t && t.constructor;
194
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
195
+ }, e.mark = function (t) {
196
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
197
+ }, e.awrap = function (t) {
198
+ return {
199
+ __await: t
200
+ };
201
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
202
+ return this;
203
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
204
+ void 0 === i && (i = Promise);
205
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
206
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
207
+ return t.done ? t.value : a.next();
208
+ });
209
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
210
+ return this;
211
+ }), define(g, "toString", function () {
212
+ return "[object Generator]";
213
+ }), e.keys = function (t) {
214
+ var e = Object(t),
215
+ r = [];
216
+ for (var n in e) r.push(n);
217
+ return r.reverse(), function next() {
218
+ for (; r.length;) {
219
+ var t = r.pop();
220
+ if (t in e) return next.value = t, next.done = !1, next;
221
+ }
222
+ return next.done = !0, next;
223
+ };
224
+ }, e.values = values, Context.prototype = {
225
+ constructor: Context,
226
+ reset: function (e) {
227
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
228
+ },
229
+ stop: function () {
230
+ this.done = !0;
231
+ var t = this.tryEntries[0].completion;
232
+ if ("throw" === t.type) throw t.arg;
233
+ return this.rval;
234
+ },
235
+ dispatchException: function (e) {
236
+ if (this.done) throw e;
237
+ var r = this;
238
+ function handle(n, o) {
239
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
240
+ }
241
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
242
+ var i = this.tryEntries[o],
243
+ a = i.completion;
244
+ if ("root" === i.tryLoc) return handle("end");
245
+ if (i.tryLoc <= this.prev) {
246
+ var c = n.call(i, "catchLoc"),
247
+ u = n.call(i, "finallyLoc");
248
+ if (c && u) {
249
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
250
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
251
+ } else if (c) {
252
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
253
+ } else {
254
+ if (!u) throw Error("try statement without catch or finally");
255
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
256
+ }
257
+ }
258
+ }
259
+ },
260
+ abrupt: function (t, e) {
261
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
262
+ var o = this.tryEntries[r];
263
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
264
+ var i = o;
265
+ break;
266
+ }
267
+ }
268
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
269
+ var a = i ? i.completion : {};
270
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
271
+ },
272
+ complete: function (t, e) {
273
+ if ("throw" === t.type) throw t.arg;
274
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
275
+ },
276
+ finish: function (t) {
277
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
278
+ var r = this.tryEntries[e];
279
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
280
+ }
281
+ },
282
+ catch: function (t) {
283
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
284
+ var r = this.tryEntries[e];
285
+ if (r.tryLoc === t) {
286
+ var n = r.completion;
287
+ if ("throw" === n.type) {
288
+ var o = n.arg;
289
+ resetTryEntry(r);
290
+ }
291
+ return o;
292
+ }
293
+ }
294
+ throw Error("illegal catch attempt");
295
+ },
296
+ delegateYield: function (e, r, n) {
297
+ return this.delegate = {
298
+ iterator: values(e),
299
+ resultName: r,
300
+ nextLoc: n
301
+ }, "next" === this.method && (this.arg = t), y;
302
+ }
303
+ }, e;
304
+ }
305
+
306
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
307
+ try {
308
+ var i = n[a](c),
309
+ u = i.value;
310
+ } catch (n) {
311
+ return void e(n);
312
+ }
313
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
314
+ }
315
+ function _asyncToGenerator(n) {
316
+ return function () {
317
+ var t = this,
318
+ e = arguments;
319
+ return new Promise(function (r, o) {
320
+ var a = n.apply(t, e);
321
+ function _next(n) {
322
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
323
+ }
324
+ function _throw(n) {
325
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
326
+ }
327
+ _next(void 0);
328
+ });
329
+ };
330
+ }
331
+
332
+ /**
333
+ * Create a wallet adapter bound to a wagmi configuration
334
+ *
335
+ * @param wagmiConfig - The wagmi configuration
336
+ * @returns The wallet adapter
337
+ *
338
+ * @example ```ts
339
+ * import { createConfig } from "@compilot/web-sdk";
340
+ * import { createWagmiWalletAdapter } from "@compilot/web-sdk-wallet-wagmi";
341
+ * import { http, createConfig } from 'wagmi'
342
+ * import { mainnet, sepolia } from 'wagmi/chains'
343
+ *
344
+ * export const wagmiConfig = createConfig({
345
+ * chains: [mainnet, sepolia],
346
+ * transports: {
347
+ * [mainnet.id]: http(),
348
+ * [sepolia.id]: http(),
349
+ * },
350
+ * })
351
+ *
352
+ * const walletAdapter = createWagmiWalletAdapter(wagmiConfig);
353
+ * const config = createConfig({
354
+ * wallet: walletAdapter,
355
+ * /// ...
356
+ * });
357
+ * ```
358
+ */
359
+ var createWagmiWalletAdapter = function createWagmiWalletAdapter(wagmiConfig) {
360
+ return {
361
+ namespace: "eip155",
362
+ isConnected: function isConnected() {
363
+ var _getAccount = getAccount(wagmiConfig),
364
+ isConnected = _getAccount.isConnected;
365
+ return isConnected;
366
+ },
367
+ sign: function () {
368
+ var _sign = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
369
+ var _getAccount2, address, signature;
370
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
371
+ while (1) switch (_context.prev = _context.next) {
372
+ case 0:
373
+ _getAccount2 = getAccount(wagmiConfig), address = _getAccount2.address;
374
+ if (address) {
375
+ _context.next = 3;
376
+ break;
377
+ }
378
+ throw new Error("Missing address");
379
+ case 3:
380
+ _context.next = 5;
381
+ return signMessage(wagmiConfig, {
382
+ message: data.message
383
+ });
384
+ case 5:
385
+ signature = _context.sent;
386
+ return _context.abrupt("return", {
387
+ signature: signature,
388
+ signerPublicKey: address,
389
+ message: data.message,
390
+ signedMessage: data.message
391
+ });
392
+ case 7:
393
+ case "end":
394
+ return _context.stop();
395
+ }
396
+ }, _callee);
397
+ }));
398
+ function sign(_x) {
399
+ return _sign.apply(this, arguments);
400
+ }
401
+ return sign;
402
+ }(),
403
+ getAddress: function getAddress() {
404
+ var _getAccount3 = getAccount(wagmiConfig),
405
+ address = _getAccount3.address;
406
+ return address;
407
+ },
408
+ getBlockchainId: function getBlockchainId() {
409
+ var number = getChainId(wagmiConfig);
410
+ return EvmChainId.parse("".concat(number));
411
+ }
412
+ };
413
+ };
414
+
415
+ export { createWagmiWalletAdapter };
@@ -0,0 +1,31 @@
1
+ import type { Web3Wallet } from "@compilot/web-sdk";
2
+ import type { Config } from "wagmi";
3
+ /**
4
+ * Create a wallet adapter bound to a wagmi configuration
5
+ *
6
+ * @param wagmiConfig - The wagmi configuration
7
+ * @returns The wallet adapter
8
+ *
9
+ * @example ```ts
10
+ * import { createConfig } from "@compilot/web-sdk";
11
+ * import { createWagmiWalletAdapter } from "@compilot/web-sdk-wallet-wagmi";
12
+ * import { http, createConfig } from 'wagmi'
13
+ * import { mainnet, sepolia } from 'wagmi/chains'
14
+ *
15
+ * export const wagmiConfig = createConfig({
16
+ * chains: [mainnet, sepolia],
17
+ * transports: {
18
+ * [mainnet.id]: http(),
19
+ * [sepolia.id]: http(),
20
+ * },
21
+ * })
22
+ *
23
+ * const walletAdapter = createWagmiWalletAdapter(wagmiConfig);
24
+ * const config = createConfig({
25
+ * wallet: walletAdapter,
26
+ * /// ...
27
+ * });
28
+ * ```
29
+ */
30
+ export declare const createWagmiWalletAdapter: (wagmiConfig: Config) => Web3Wallet;
31
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"../../../src","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAGpC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,wBAAwB,gBAAiB,MAAM,KAAG,UAyB7D,CAAC"}
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "@compilot/web-sdk-wallet-wagmi",
3
+ "version": "2.0.8",
4
+ "description": "ComPilot SDK - Wagmi Wallet connector",
5
+ "keywords": [],
6
+ "license": "ISC",
7
+ "author": "",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/compilot-web-sdk-wallet-wagmi.esm.js",
11
+ "require": "./dist/compilot-web-sdk-wallet-wagmi.cjs.js"
12
+ }
13
+ },
14
+ "main": "dist/compilot-web-sdk-wallet-wagmi.cjs.js",
15
+ "module": "dist/compilot-web-sdk-wallet-wagmi.esm.js",
16
+ "types": "dist/compilot-web-sdk-wallet-wagmi.cjs.d.ts",
17
+ "files": [
18
+ "/dist"
19
+ ],
20
+ "scripts": {
21
+ "build": "preconstruct build && npm run copy-package-json-to-dist",
22
+ "copy-package-json-to-dist": "copyfiles package.json dist/",
23
+ "postinstall": "if [ \"$BUILDING_IN_DOCKER\" != \"true\" ]; then preconstruct dev; fi",
24
+ "lint": "eslint .",
25
+ "lint:fix": "pnpm lint --fix",
26
+ "prepare:release": "sed -i 's/.*\"postinstall\":.*//' package.json",
27
+ "prepare:release:mac": "sed -i '' 's/.*\"postinstall\":.*//' package.json",
28
+ "prettier": "prettier 'src/' --check",
29
+ "prettier:fix": "prettier 'src/' --write",
30
+ "publish:public": "pnpm run prepare:release && publish --access=public --no-git-checks --registry https://registry.npmjs.org/",
31
+ "publish:public:mac": "pnpm run prepare:release:mac && publish --access=public --no-git-checks --registry https://registry.npmjs.org/",
32
+ "test": "vitest --config ./vitest.config.ts",
33
+ "type-check": "tsc --noEmit"
34
+ },
35
+ "eslintConfig": {
36
+ "extends": [
37
+ "@unblokttechnology/eslint-config/base"
38
+ ],
39
+ "root": true
40
+ },
41
+ "devDependencies": {
42
+ "@unblokttechnology/eslint-config": "workspace:*",
43
+ "prettier": "^3.3.3",
44
+ "typescript": "^5.6.2"
45
+ },
46
+ "peerDependencies": {
47
+ "@compilot/web-sdk": "workspace:^",
48
+ "@nexeraid/identity-schemas": "workspace:^",
49
+ "wagmi": ">= 2.10.0 && < 3.0.0"
50
+ },
51
+ "preconstruct": {
52
+ "entrypoints": [
53
+ "index.ts"
54
+ ]
55
+ }
56
+ }
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@compilot/web-sdk-wallet-wagmi",
3
+ "version": "2.0.8-dev",
4
+ "description": "ComPilot SDK - Wagmi Wallet connector",
5
+ "keywords": [],
6
+ "license": "ISC",
7
+ "author": "",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/compilot-web-sdk-wallet-wagmi.esm.js",
11
+ "require": "./dist/compilot-web-sdk-wallet-wagmi.cjs.js"
12
+ }
13
+ },
14
+ "main": "dist/compilot-web-sdk-wallet-wagmi.cjs.js",
15
+ "module": "dist/compilot-web-sdk-wallet-wagmi.esm.js",
16
+ "types": "dist/compilot-web-sdk-wallet-wagmi.cjs.d.ts",
17
+ "files": [
18
+ "/dist"
19
+ ],
20
+ "eslintConfig": {
21
+ "extends": [
22
+ "@unblokttechnology/eslint-config/base"
23
+ ],
24
+ "root": true
25
+ },
26
+ "devDependencies": {
27
+ "prettier": "^3.3.3",
28
+ "typescript": "^5.6.2",
29
+ "@unblokttechnology/eslint-config": "0.1.1"
30
+ },
31
+ "peerDependencies": {
32
+ "wagmi": ">= 2.10.0 && < 3.0.0",
33
+ "@compilot/web-sdk": "^2.0.41-dev",
34
+ "@nexeraid/identity-schemas": "^1.12.38-dev"
35
+ },
36
+ "preconstruct": {
37
+ "entrypoints": [
38
+ "index.ts"
39
+ ]
40
+ },
41
+ "scripts": {
42
+ "build": "preconstruct build && npm run copy-package-json-to-dist",
43
+ "copy-package-json-to-dist": "copyfiles package.json dist/",
44
+ "lint": "eslint .",
45
+ "lint:fix": "pnpm lint --fix",
46
+ "prepare:release": "sed -i 's/.*\"postinstall\":.*//' package.json",
47
+ "prepare:release:mac": "sed -i '' 's/.*\"postinstall\":.*//' package.json",
48
+ "prettier": "prettier 'src/' --check",
49
+ "prettier:fix": "prettier 'src/' --write",
50
+ "publish:public": "pnpm run prepare:release && publish --access=public --no-git-checks --registry https://registry.npmjs.org/",
51
+ "publish:public:mac": "pnpm run prepare:release:mac && publish --access=public --no-git-checks --registry https://registry.npmjs.org/",
52
+ "test": "vitest --config ./vitest.config.ts",
53
+ "type-check": "tsc --noEmit"
54
+ }
55
+ }
package/readme.md ADDED
@@ -0,0 +1,13 @@
1
+ # ComPilot Wallet adapter for Wagmi
2
+
3
+ Adapter for the Wagmi wallet, compatible with the ComPilot Web SDK.
4
+
5
+ ## How to install
6
+
7
+ ```bash
8
+ npm install @compilot/web-sdk-wallet-wagmi
9
+ ```
10
+
11
+ ### How to use
12
+
13
+ Please refer to the [ComPilot SDKs](../index.md) documentation for more information on how to get started.