@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.
@@ -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,8GAwIpE"}
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 S=require("wagmi"),I=require("@nexus-cross/crossx-sdk-core");function w(r){return parseInt(r.split(":")[1]??"1",10)}function h(r){return`eip155:${r}`}function C(r){return"0x"+r.toString(16)}class p{constructor(t,a=I.ChainId.CROSS_MAINNET){this.sdk=t,this.listeners=new Map,this.off=this.removeListener.bind(this),this.chainId=typeof a=="number"?a:w(a)}async request({method:t,params:a}){var o;const i=a??[];switch(t){case"eth_requestAccounts":case"eth_accounts":{const n=await this.sdk.getAddress();return n?[n.address]:[]}case"eth_chainId":return C(this.chainId);case"net_version":return String(this.chainId);case"personal_sign":{const[n]=i;return(await this.sdk.signMessage(h(this.chainId),n)).signature}case"eth_sign":{const[,n]=i;return(await this.sdk.signMessage(h(this.chainId),n)).signature}case"eth_signTypedData":case"eth_signTypedData_v3":case"eth_signTypedData_v4":{const[,n]=i,s=typeof n=="string"?JSON.parse(n):n,c=(o=s==null?void 0:s.domain)==null?void 0:o.chainId;return(c==null||c===0?await this.sdk.signTypedDataOffchain(s):await this.sdk.signTypedData(h(this.chainId),s)).signature}case"eth_sendTransaction":{const[n]=i,s=h(this.chainId);return(await this.sdk.sendTransaction(s,{from:n.from,to:n.to,value:n.value,data:n.data,gasLimit:n.gasLimit??n.gas,gasPrice:n.gasPrice,maxFeePerGas:n.maxFeePerGas,maxPriorityFeePerGas:n.maxPriorityFeePerGas,nonce:n.nonce!==void 0?parseInt(String(n.nonce),16):void 0,chainId:this.chainId})).txHash}case"wallet_switchEthereumChain":{const[{chainId:n}]=i,s=parseInt(n,16);return s!==this.chainId&&(this.chainId=s,this.emit("chainChanged",C(s))),null}case"wallet_addEthereumChain":return null;default:return this.sdk.walletRpc(t,i,h(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",C(t)))}}function x(r){return typeof r=="number"?r:parseInt(r.split(":")[1]??"1",10)}function _(r){const{defaultChainId:t,...a}=r,i=I.createCROSSxSDK(a);return y({sdk:i,defaultChainId:t})}function y(r){const{sdk:t,defaultChainId:a=I.ChainId.CROSS_MAINNET}=r,i=x(a);let o=null,n=!1;function s(){return o||(o=new p(t,i)),o}return S.createConnector(c=>({id:"crossx",name:"CROSSx Wallet",type:"crossx",async setup(){n||(await t.initialize(),n=!0);const e=s();e.on("accountsChanged",this.onAccountsChanged.bind(this)),e.on("chainChanged",this.onChainChanged.bind(this)),e.on("disconnect",this.onDisconnect.bind(this))},async connect({chainId:e,isReconnecting:g}={}){const d=s(),u=e??i;if(g||t.isAuthenticated()){const m=await t.getAddress();if(m)return{accounts:[m.address],chainId:u}}const f=await t.signIn();if(!f.success)throw new Error(f.error??"CROSSx sign-in failed");const l=await t.getAddress();if(!l)throw new Error("No address found after sign-in");return d.notifyAccountsChanged([l.address]),{accounts:[l.address],chainId:u}},async disconnect(){const e=s();await t.signOut(),e.notifyDisconnect(),c.emitter.emit("disconnect")},async getAccounts(){const e=await t.getAddress();return e?[e.address]:[]},async getChainId(){return s().getCurrentChainId()},async getProvider({chainId:e}={}){return s()},async isAuthorized(){return t.isAuthenticated()},async switchChain({chainId:e}){s().setChainId(e),c.emitter.emit("change",{chainId:e});const d=c.chains.find(u=>u.id===e);if(!d)throw new Error(`Chain ${e} is not configured`);return d},onAccountsChanged(e){e.length===0?c.emitter.emit("disconnect"):c.emitter.emit("change",{accounts:e})},onChainChanged(e){c.emitter.emit("change",{chainId:Number(e)})},onDisconnect(){c.emitter.emit("disconnect")}}))}exports.CROSSxEIP1193Provider=p;exports.createCROSSxConnector=y;exports.crossxConnector=_;
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 p } from "wagmi";
2
- import { ChainId as C, createCROSSxSDK as w } from "@nexus-cross/crossx-sdk-core";
3
- function y(r) {
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 h(r) {
6
+ function u(r) {
7
7
  return `eip155:${r}`;
8
8
  }
9
- function f(r) {
9
+ function I(r) {
10
10
  return "0x" + r.toString(16);
11
11
  }
12
- class S {
13
- constructor(t, a = C.CROSS_MAINNET) {
14
- this.sdk = t, this.listeners = /* @__PURE__ */ new Map(), this.off = this.removeListener.bind(this), this.chainId = typeof a == "number" ? a : y(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 n = await this.sdk.getAddress();
24
- return n ? [n.address] : [];
23
+ const e = await this.sdk.getAddress();
24
+ return e ? [e.address] : [];
25
25
  }
26
26
  case "eth_chainId":
27
- return f(this.chainId);
27
+ return I(this.chainId);
28
28
  case "net_version":
29
29
  return String(this.chainId);
30
30
  case "personal_sign": {
31
- const [n] = i;
32
- return (await this.sdk.signMessage(h(this.chainId), n)).signature;
31
+ const [e] = i;
32
+ return (await this.sdk.signMessage(u(this.chainId), e)).signature;
33
33
  }
34
34
  case "eth_sign": {
35
- const [, n] = i;
36
- return (await this.sdk.signMessage(h(this.chainId), n)).signature;
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 [, n] = i, s = typeof n == "string" ? JSON.parse(n) : n, c = (o = s == null ? void 0 : s.domain) == null ? void 0 : o.chainId;
42
- return (c == null || c === 0 ? await this.sdk.signTypedDataOffchain(s) : await this.sdk.signTypedData(h(this.chainId), s)).signature;
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 [n] = i, s = h(this.chainId);
45
+ const [e] = i, s = u(this.chainId);
46
46
  return (await this.sdk.sendTransaction(s, {
47
- from: n.from,
48
- to: n.to,
49
- value: n.value,
50
- data: n.data,
51
- gasLimit: n.gasLimit ?? n.gas,
52
- gasPrice: n.gasPrice,
53
- maxFeePerGas: n.maxFeePerGas,
54
- maxPriorityFeePerGas: n.maxPriorityFeePerGas,
55
- nonce: n.nonce !== void 0 ? parseInt(String(n.nonce), 16) : void 0,
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: n }] = i, s = parseInt(n, 16);
61
- return s !== this.chainId && (this.chainId = s, this.emit("chainChanged", f(s))), null;
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, h(this.chainId));
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", f(t)));
92
+ t !== this.chainId && (this.chainId = t, this.emit("chainChanged", I(t)));
93
93
  }
94
94
  }
95
- function x(r) {
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 = w(a);
100
- return _({ sdk: i, defaultChainId: t });
99
+ const { defaultChainId: t, ...a } = r, i = S(a);
100
+ return v({ sdk: i, defaultChainId: t });
101
101
  }
102
- function _(r) {
103
- const { sdk: t, defaultChainId: a = C.CROSS_MAINNET } = r, i = x(a);
104
- let o = null, n = !1;
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 S(t, i)), o;
106
+ return o || (o = new _(t, i)), o;
107
107
  }
108
- return p((c) => ({
108
+ return y((c) => ({
109
109
  id: "crossx",
110
110
  name: "CROSSx Wallet",
111
111
  type: "crossx",
112
112
  async setup() {
113
- n || (await t.initialize(), n = !0);
114
- const e = s();
115
- e.on("accountsChanged", this.onAccountsChanged.bind(this)), e.on("chainChanged", this.onChainChanged.bind(this)), e.on("disconnect", this.onDisconnect.bind(this));
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: e, isReconnecting: g } = {}) {
119
- const d = s(), u = e ?? i;
118
+ async connect({ chainId: n, isReconnecting: g } = {}) {
119
+ const d = s(), l = n ?? i;
120
120
  if (g || t.isAuthenticated()) {
121
- const m = await t.getAddress();
122
- if (m)
121
+ const h = await t.getAddress();
122
+ if (h)
123
123
  return {
124
- accounts: [m.address],
125
- chainId: u
124
+ accounts: [h.address],
125
+ chainId: l
126
126
  };
127
127
  }
128
- const I = await t.signIn();
129
- if (!I.success)
130
- throw new Error(I.error ?? "CROSSx sign-in failed");
131
- const l = await t.getAddress();
132
- if (!l)
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([l.address]), {
135
- accounts: [l.address],
136
- chainId: u
134
+ return d.notifyAccountsChanged(C), {
135
+ accounts: C,
136
+ chainId: l
137
137
  };
138
138
  },
139
139
  // ── disconnect ──────────────────────────────────────────────────────────
140
140
  async disconnect() {
141
- const e = s();
142
- await t.signOut(), e.notifyDisconnect(), c.emitter.emit("disconnect");
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 e = await t.getAddress();
147
- return e ? [e.address] : [];
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: e } = {}) {
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: e }) {
163
- s().setChainId(e), c.emitter.emit("change", { chainId: e });
164
- const d = c.chains.find((u) => u.id === e);
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 ${e} is not configured`);
166
+ throw new Error(`Chain ${n} is not configured`);
167
167
  return d;
168
168
  },
169
169
  // ── 이벤트 핸들러 ───────────────────────────────────────────────────────
170
- onAccountsChanged(e) {
171
- e.length === 0 ? c.emitter.emit("disconnect") : c.emitter.emit("change", {
172
- accounts: e
170
+ onAccountsChanged(n) {
171
+ n.length === 0 ? c.emitter.emit("disconnect") : c.emitter.emit("change", {
172
+ accounts: n
173
173
  });
174
174
  },
175
- onChainChanged(e) {
175
+ onChainChanged(n) {
176
176
  c.emitter.emit("change", {
177
- chainId: Number(e)
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
- S as CROSSxEIP1193Provider,
187
- _ as createCROSSxConnector,
186
+ _ as CROSSxEIP1193Provider,
187
+ v as createCROSSxConnector,
188
188
  O as crossxConnector
189
189
  };
@@ -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;IA0F5E,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"}
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.2",
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.2"
20
+ "@nexus-cross/crossx-sdk-core": "1.0.4"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "viem": ">=2.0.0",