@nexus-cross/crossx-sdk-wagmi 1.0.2 → 1.0.4
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/connector.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +72 -72
- package/dist/provider.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/connector.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../src/connector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAInD,oCAAoC;AACpC,MAAM,WAAW,sBAAsB;IACrC,GAAG,EAAE,SAAS,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAClC;AAED,uCAAuC;AACvC,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,GAAG;IACtE,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAClC,CAAC;AAWF,wBAAgB,eAAe,CAAC,OAAO,EAAE,sBAAsB,8GAI9D;AAID,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../src/connector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAInD,oCAAoC;AACpC,MAAM,WAAW,sBAAsB;IACrC,GAAG,EAAE,SAAS,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAClC;AAED,uCAAuC;AACvC,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,GAAG;IACtE,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAClC,CAAC;AAWF,wBAAgB,eAAe,CAAC,OAAO,EAAE,sBAAsB,8GAI9D;AAID,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,sBAAsB,8GA8IpE"}
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("wagmi"),p=require("@nexus-cross/crossx-sdk-core");function _(r){return parseInt(r.split(":")[1]??"1",10)}function u(r){return`eip155:${r}`}function f(r){return"0x"+r.toString(16)}class w{constructor(t,a=p.ChainId.CROSS_MAINNET){this.sdk=t,this.listeners=new Map,this.off=this.removeListener.bind(this),this.chainId=typeof a=="number"?a:_(a)}async request({method:t,params:a}){var o;const i=a??[];switch(t){case"eth_requestAccounts":case"eth_accounts":{const e=await this.sdk.getAddress();return e?[e.address]:[]}case"eth_chainId":return f(this.chainId);case"net_version":return String(this.chainId);case"personal_sign":{const[e]=i;return(await this.sdk.signMessage(u(this.chainId),e)).signature}case"eth_sign":{const[,e]=i;return(await this.sdk.signMessage(u(this.chainId),e)).signature}case"eth_signTypedData":case"eth_signTypedData_v3":case"eth_signTypedData_v4":{const[,e]=i,s=typeof e=="string"?JSON.parse(e):e,c=(o=s==null?void 0:s.domain)==null?void 0:o.chainId,n=c==null||c===0,g=n?0:Number(c);return(n?await this.sdk.signTypedDataOffchain(s):await this.sdk.signTypedData(u(g),s)).signature}case"eth_sendTransaction":{const[e]=i,s=u(this.chainId);return(await this.sdk.sendTransaction(s,{from:e.from,to:e.to,value:e.value,data:e.data,gasLimit:e.gasLimit??e.gas,gasPrice:e.gasPrice,maxFeePerGas:e.maxFeePerGas,maxPriorityFeePerGas:e.maxPriorityFeePerGas,nonce:e.nonce!==void 0?parseInt(String(e.nonce),16):void 0,chainId:this.chainId})).txHash}case"wallet_switchEthereumChain":{const[{chainId:e}]=i,s=parseInt(e,16);return s!==this.chainId&&(this.chainId=s,this.emit("chainChanged",f(s))),null}case"wallet_addEthereumChain":return null;default:return this.sdk.walletRpc(t,i,u(this.chainId))}}on(t,a){return this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(a),this}removeListener(t,a){var i;return(i=this.listeners.get(t))==null||i.delete(a),this}emit(t,...a){var i;(i=this.listeners.get(t))==null||i.forEach(o=>o(...a))}notifyAccountsChanged(t){this.emit("accountsChanged",t)}notifyDisconnect(t){this.emit("disconnect",t)}getCurrentChainId(){return this.chainId}setChainId(t){t!==this.chainId&&(this.chainId=t,this.emit("chainChanged",f(t)))}}function P(r){return typeof r=="number"?r:parseInt(r.split(":")[1]??"1",10)}function v(r){const{defaultChainId:t,...a}=r,i=p.createCROSSxSDK(a);return S({sdk:i,defaultChainId:t})}function S(r){const{sdk:t,defaultChainId:a=p.ChainId.CROSS_MAINNET}=r,i=P(a);let o=null,e=!1;function s(){return o||(o=new w(t,i)),o}return x.createConnector(c=>({id:"crossx",name:"CROSSx Wallet",type:"crossx",async setup(){e||(await t.initialize(),e=!0);const n=s();n.on("accountsChanged",this.onAccountsChanged.bind(this)),n.on("chainChanged",this.onChainChanged.bind(this)),n.on("disconnect",this.onDisconnect.bind(this))},async connect({chainId:n,isReconnecting:g}={}){const d=s(),l=n??i;if(g||t.isAuthenticated()){const h=await t.getAddress();if(h)return{accounts:[h.address],chainId:l}}const C=await t.signInWithCreate();if(!C.success)throw new Error(C.error??"CROSSx sign-in failed");const I=C.address,y=C.addresses.map(h=>h.address).filter(h=>!I||h.toLowerCase()!==I.toLowerCase()),m=I?[I,...y]:y;if(m.length===0)throw new Error("No address found after sign-in");return d.notifyAccountsChanged(m),{accounts:m,chainId:l}},async disconnect(){const n=s();await t.signOut(),n.notifyDisconnect(),c.emitter.emit("disconnect")},async getAccounts(){const n=await t.getAddress();return n?[n.address]:[]},async getChainId(){return s().getCurrentChainId()},async getProvider({chainId:n}={}){return s()},async isAuthorized(){return t.isAuthenticated()},async switchChain({chainId:n}){s().setChainId(n),c.emitter.emit("change",{chainId:n});const d=c.chains.find(l=>l.id===n);if(!d)throw new Error(`Chain ${n} is not configured`);return d},onAccountsChanged(n){n.length===0?c.emitter.emit("disconnect"):c.emitter.emit("change",{accounts:n})},onChainChanged(n){c.emitter.emit("change",{chainId:Number(n)})},onDisconnect(){c.emitter.emit("disconnect")}}))}exports.CROSSxEIP1193Provider=w;exports.createCROSSxConnector=S;exports.crossxConnector=v;
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { createConnector as
|
|
2
|
-
import { ChainId as
|
|
3
|
-
function
|
|
1
|
+
import { createConnector as y } from "wagmi";
|
|
2
|
+
import { ChainId as w, createCROSSxSDK as S } from "@nexus-cross/crossx-sdk-core";
|
|
3
|
+
function x(r) {
|
|
4
4
|
return parseInt(r.split(":")[1] ?? "1", 10);
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function u(r) {
|
|
7
7
|
return `eip155:${r}`;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function I(r) {
|
|
10
10
|
return "0x" + r.toString(16);
|
|
11
11
|
}
|
|
12
|
-
class
|
|
13
|
-
constructor(t, a =
|
|
14
|
-
this.sdk = t, this.listeners = /* @__PURE__ */ new Map(), this.off = this.removeListener.bind(this), this.chainId = typeof a == "number" ? a :
|
|
12
|
+
class _ {
|
|
13
|
+
constructor(t, a = w.CROSS_MAINNET) {
|
|
14
|
+
this.sdk = t, this.listeners = /* @__PURE__ */ new Map(), this.off = this.removeListener.bind(this), this.chainId = typeof a == "number" ? a : x(a);
|
|
15
15
|
}
|
|
16
16
|
// ── EIP-1193 request ──────────────────────────────────────────────────────
|
|
17
17
|
async request({ method: t, params: a }) {
|
|
@@ -20,50 +20,50 @@ class S {
|
|
|
20
20
|
switch (t) {
|
|
21
21
|
case "eth_requestAccounts":
|
|
22
22
|
case "eth_accounts": {
|
|
23
|
-
const
|
|
24
|
-
return
|
|
23
|
+
const e = await this.sdk.getAddress();
|
|
24
|
+
return e ? [e.address] : [];
|
|
25
25
|
}
|
|
26
26
|
case "eth_chainId":
|
|
27
|
-
return
|
|
27
|
+
return I(this.chainId);
|
|
28
28
|
case "net_version":
|
|
29
29
|
return String(this.chainId);
|
|
30
30
|
case "personal_sign": {
|
|
31
|
-
const [
|
|
32
|
-
return (await this.sdk.signMessage(
|
|
31
|
+
const [e] = i;
|
|
32
|
+
return (await this.sdk.signMessage(u(this.chainId), e)).signature;
|
|
33
33
|
}
|
|
34
34
|
case "eth_sign": {
|
|
35
|
-
const [,
|
|
36
|
-
return (await this.sdk.signMessage(
|
|
35
|
+
const [, e] = i;
|
|
36
|
+
return (await this.sdk.signMessage(u(this.chainId), e)).signature;
|
|
37
37
|
}
|
|
38
38
|
case "eth_signTypedData":
|
|
39
39
|
case "eth_signTypedData_v3":
|
|
40
40
|
case "eth_signTypedData_v4": {
|
|
41
|
-
const [,
|
|
42
|
-
return (
|
|
41
|
+
const [, e] = i, s = typeof e == "string" ? JSON.parse(e) : e, c = (o = s == null ? void 0 : s.domain) == null ? void 0 : o.chainId, n = c == null || c === 0, g = n ? 0 : Number(c);
|
|
42
|
+
return (n ? await this.sdk.signTypedDataOffchain(s) : await this.sdk.signTypedData(u(g), s)).signature;
|
|
43
43
|
}
|
|
44
44
|
case "eth_sendTransaction": {
|
|
45
|
-
const [
|
|
45
|
+
const [e] = i, s = u(this.chainId);
|
|
46
46
|
return (await this.sdk.sendTransaction(s, {
|
|
47
|
-
from:
|
|
48
|
-
to:
|
|
49
|
-
value:
|
|
50
|
-
data:
|
|
51
|
-
gasLimit:
|
|
52
|
-
gasPrice:
|
|
53
|
-
maxFeePerGas:
|
|
54
|
-
maxPriorityFeePerGas:
|
|
55
|
-
nonce:
|
|
47
|
+
from: e.from,
|
|
48
|
+
to: e.to,
|
|
49
|
+
value: e.value,
|
|
50
|
+
data: e.data,
|
|
51
|
+
gasLimit: e.gasLimit ?? e.gas,
|
|
52
|
+
gasPrice: e.gasPrice,
|
|
53
|
+
maxFeePerGas: e.maxFeePerGas,
|
|
54
|
+
maxPriorityFeePerGas: e.maxPriorityFeePerGas,
|
|
55
|
+
nonce: e.nonce !== void 0 ? parseInt(String(e.nonce), 16) : void 0,
|
|
56
56
|
chainId: this.chainId
|
|
57
57
|
})).txHash;
|
|
58
58
|
}
|
|
59
59
|
case "wallet_switchEthereumChain": {
|
|
60
|
-
const [{ chainId:
|
|
61
|
-
return s !== this.chainId && (this.chainId = s, this.emit("chainChanged",
|
|
60
|
+
const [{ chainId: e }] = i, s = parseInt(e, 16);
|
|
61
|
+
return s !== this.chainId && (this.chainId = s, this.emit("chainChanged", I(s))), null;
|
|
62
62
|
}
|
|
63
63
|
case "wallet_addEthereumChain":
|
|
64
64
|
return null;
|
|
65
65
|
default:
|
|
66
|
-
return this.sdk.walletRpc(t, i,
|
|
66
|
+
return this.sdk.walletRpc(t, i, u(this.chainId));
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
// ── EIP-1193 이벤트 ───────────────────────────────────────────────────────
|
|
@@ -89,69 +89,69 @@ class S {
|
|
|
89
89
|
return this.chainId;
|
|
90
90
|
}
|
|
91
91
|
setChainId(t) {
|
|
92
|
-
t !== this.chainId && (this.chainId = t, this.emit("chainChanged",
|
|
92
|
+
t !== this.chainId && (this.chainId = t, this.emit("chainChanged", I(t)));
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function A(r) {
|
|
96
96
|
return typeof r == "number" ? r : parseInt(r.split(":")[1] ?? "1", 10);
|
|
97
97
|
}
|
|
98
98
|
function O(r) {
|
|
99
|
-
const { defaultChainId: t, ...a } = r, i =
|
|
100
|
-
return
|
|
99
|
+
const { defaultChainId: t, ...a } = r, i = S(a);
|
|
100
|
+
return v({ sdk: i, defaultChainId: t });
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
const { sdk: t, defaultChainId: a =
|
|
104
|
-
let o = null,
|
|
102
|
+
function v(r) {
|
|
103
|
+
const { sdk: t, defaultChainId: a = w.CROSS_MAINNET } = r, i = A(a);
|
|
104
|
+
let o = null, e = !1;
|
|
105
105
|
function s() {
|
|
106
|
-
return o || (o = new
|
|
106
|
+
return o || (o = new _(t, i)), o;
|
|
107
107
|
}
|
|
108
|
-
return
|
|
108
|
+
return y((c) => ({
|
|
109
109
|
id: "crossx",
|
|
110
110
|
name: "CROSSx Wallet",
|
|
111
111
|
type: "crossx",
|
|
112
112
|
async setup() {
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
|
|
113
|
+
e || (await t.initialize(), e = !0);
|
|
114
|
+
const n = s();
|
|
115
|
+
n.on("accountsChanged", this.onAccountsChanged.bind(this)), n.on("chainChanged", this.onChainChanged.bind(this)), n.on("disconnect", this.onDisconnect.bind(this));
|
|
116
116
|
},
|
|
117
117
|
// ── connect ─────────────────────────────────────────────────────────────
|
|
118
|
-
async connect({ chainId:
|
|
119
|
-
const d = s(),
|
|
118
|
+
async connect({ chainId: n, isReconnecting: g } = {}) {
|
|
119
|
+
const d = s(), l = n ?? i;
|
|
120
120
|
if (g || t.isAuthenticated()) {
|
|
121
|
-
const
|
|
122
|
-
if (
|
|
121
|
+
const h = await t.getAddress();
|
|
122
|
+
if (h)
|
|
123
123
|
return {
|
|
124
|
-
accounts: [
|
|
125
|
-
chainId:
|
|
124
|
+
accounts: [h.address],
|
|
125
|
+
chainId: l
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
|
-
const
|
|
129
|
-
if (!
|
|
130
|
-
throw new Error(
|
|
131
|
-
const
|
|
132
|
-
if (
|
|
128
|
+
const m = await t.signInWithCreate();
|
|
129
|
+
if (!m.success)
|
|
130
|
+
throw new Error(m.error ?? "CROSSx sign-in failed");
|
|
131
|
+
const f = m.address, p = m.addresses.map((h) => h.address).filter((h) => !f || h.toLowerCase() !== f.toLowerCase()), C = f ? [f, ...p] : p;
|
|
132
|
+
if (C.length === 0)
|
|
133
133
|
throw new Error("No address found after sign-in");
|
|
134
|
-
return d.notifyAccountsChanged(
|
|
135
|
-
accounts:
|
|
136
|
-
chainId:
|
|
134
|
+
return d.notifyAccountsChanged(C), {
|
|
135
|
+
accounts: C,
|
|
136
|
+
chainId: l
|
|
137
137
|
};
|
|
138
138
|
},
|
|
139
139
|
// ── disconnect ──────────────────────────────────────────────────────────
|
|
140
140
|
async disconnect() {
|
|
141
|
-
const
|
|
142
|
-
await t.signOut(),
|
|
141
|
+
const n = s();
|
|
142
|
+
await t.signOut(), n.notifyDisconnect(), c.emitter.emit("disconnect");
|
|
143
143
|
},
|
|
144
144
|
// ── getAccounts ─────────────────────────────────────────────────────────
|
|
145
145
|
async getAccounts() {
|
|
146
|
-
const
|
|
147
|
-
return
|
|
146
|
+
const n = await t.getAddress();
|
|
147
|
+
return n ? [n.address] : [];
|
|
148
148
|
},
|
|
149
149
|
// ── getChainId ──────────────────────────────────────────────────────────
|
|
150
150
|
async getChainId() {
|
|
151
151
|
return s().getCurrentChainId();
|
|
152
152
|
},
|
|
153
153
|
// ── getProvider ─────────────────────────────────────────────────────────
|
|
154
|
-
async getProvider({ chainId:
|
|
154
|
+
async getProvider({ chainId: n } = {}) {
|
|
155
155
|
return s();
|
|
156
156
|
},
|
|
157
157
|
// ── isAuthorized ────────────────────────────────────────────────────────
|
|
@@ -159,22 +159,22 @@ function _(r) {
|
|
|
159
159
|
return t.isAuthenticated();
|
|
160
160
|
},
|
|
161
161
|
// ── switchChain ─────────────────────────────────────────────────────────
|
|
162
|
-
async switchChain({ chainId:
|
|
163
|
-
s().setChainId(
|
|
164
|
-
const d = c.chains.find((
|
|
162
|
+
async switchChain({ chainId: n }) {
|
|
163
|
+
s().setChainId(n), c.emitter.emit("change", { chainId: n });
|
|
164
|
+
const d = c.chains.find((l) => l.id === n);
|
|
165
165
|
if (!d)
|
|
166
|
-
throw new Error(`Chain ${
|
|
166
|
+
throw new Error(`Chain ${n} is not configured`);
|
|
167
167
|
return d;
|
|
168
168
|
},
|
|
169
169
|
// ── 이벤트 핸들러 ───────────────────────────────────────────────────────
|
|
170
|
-
onAccountsChanged(
|
|
171
|
-
|
|
172
|
-
accounts:
|
|
170
|
+
onAccountsChanged(n) {
|
|
171
|
+
n.length === 0 ? c.emitter.emit("disconnect") : c.emitter.emit("change", {
|
|
172
|
+
accounts: n
|
|
173
173
|
});
|
|
174
174
|
},
|
|
175
|
-
onChainChanged(
|
|
175
|
+
onChainChanged(n) {
|
|
176
176
|
c.emitter.emit("change", {
|
|
177
|
-
chainId: Number(
|
|
177
|
+
chainId: Number(n)
|
|
178
178
|
});
|
|
179
179
|
},
|
|
180
180
|
onDisconnect() {
|
|
@@ -183,7 +183,7 @@ function _(r) {
|
|
|
183
183
|
}));
|
|
184
184
|
}
|
|
185
185
|
export {
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
_ as CROSSxEIP1193Provider,
|
|
187
|
+
v as createCROSSxConnector,
|
|
188
188
|
O as crossxConnector
|
|
189
189
|
};
|
package/dist/provider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAG9D,KAAK,aAAa,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;AAE9C,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,SAAS,OAAO,EAAE,GAAG,MAAM,CAAC;CACtC;AAcD,qBAAa,qBAAqB;IAK9B,OAAO,CAAC,QAAQ,CAAC,GAAG;IAJtB,OAAO,CAAC,SAAS,CAA8C;IAC/D,OAAO,CAAC,OAAO,CAAS;gBAGL,GAAG,EAAE,SAAS,EAC/B,cAAc,GAAE,MAAM,GAAG,MAA8B;IAUnD,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,uBAAuB,GAAG,OAAO,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAG9D,KAAK,aAAa,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;AAE9C,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,SAAS,OAAO,EAAE,GAAG,MAAM,CAAC;CACtC;AAcD,qBAAa,qBAAqB;IAK9B,OAAO,CAAC,QAAQ,CAAC,GAAG;IAJtB,OAAO,CAAC,SAAS,CAA8C;IAC/D,OAAO,CAAC,OAAO,CAAS;gBAGL,GAAG,EAAE,SAAS,EAC/B,cAAc,GAAE,MAAM,GAAG,MAA8B;IAUnD,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,uBAAuB,GAAG,OAAO,CAAC,OAAO,CAAC;IA2F5E,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,GAAG,IAAI;IAQhD,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,GAAG,IAAI;IAK5D,GAAG,UALmB,MAAM,YAAY,aAAa,KAAG,IAAI,CAKvB;IAErC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAM7C,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI;IAI/C,gBAAgB,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI;IAIrC,iBAAiB,IAAI,MAAM;IAI3B,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;CAM7B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexus-cross/crossx-sdk-wagmi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "CROSSx SDK wagmi Connector — OAuth 임베디드 지갑을 wagmi에 통합",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dist"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@nexus-cross/crossx-sdk-core": "1.0.
|
|
20
|
+
"@nexus-cross/crossx-sdk-core": "1.0.4"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"viem": ">=2.0.0",
|