@reown/appkit-cdn 1.0.4 → 1.0.5
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/{W3MFrameProviderSingleton-ByMR2if0.js → W3MFrameProviderSingleton-CTR1y-dm.js} +8337 -8050
- package/dist/{W3MFrameProviderSingleton-QMvIDuQ9.cjs → W3MFrameProviderSingleton-EBSNGCyS.cjs} +587 -400
- package/dist/ethers.cjs +1 -1
- package/dist/ethers.js +693 -690
- package/dist/{hooks.module-Cc8hySTP.js → hooks.module-D-0zdEoH.js} +200 -201
- package/dist/hooks.module-DQotueVv.cjs +1 -0
- package/dist/{index-DS2tCoxB.cjs → index-B-asGkmO.cjs} +1 -1
- package/dist/{index-D5Be_LRa.cjs → index-BbRGsaWd.cjs} +1 -1
- package/dist/{index-Ds2LQQcC.js → index-Bc0ITjWJ.js} +14 -15
- package/dist/{index-DGKRDdTn.cjs → index-BpyGhSL5.cjs} +1 -1
- package/dist/{index-D2zHP4xy.js → index-C4sAe8r2.js} +2 -2
- package/dist/{index-DatS1o_D.cjs → index-CGiwEmEs.cjs} +2 -2
- package/dist/{index-BY9wdxgf.cjs → index-CHnv57sx.cjs} +1 -1
- package/dist/{index-CVwzlj-7.js → index-CUklmSgy.js} +2 -2
- package/dist/{index-BxUpvuxL.cjs → index-CarL80dX.cjs} +1 -1
- package/dist/{index-BORWocQH.js → index-Cb7ygkgK.js} +9 -9
- package/dist/{index-C8qz9kCY.cjs → index-ChpiA38q.cjs} +1 -1
- package/dist/{index-D2X0Qm-3.cjs → index-Cj_t8zKv.cjs} +1 -1
- package/dist/{index-Cvq37YY6.js → index-DHINf06o.js} +1 -1
- package/dist/{index-RP8m5fY-.js → index-DPxKz8jH.js} +78 -77
- package/dist/{index-6X8YJouh.js → index-T8ir_D3p.js} +2 -2
- package/dist/{index-BeyRJQ4w.js → index-W7CfpcrR.js} +2 -2
- package/dist/{index.es-gcREdjR5.js → index.es-iazRHZcQ.js} +249 -249
- package/dist/{index.es-DEYcd29M.cjs → index.es-uCwCuHj3.cjs} +2 -2
- package/dist/{metamask-sdk-B7mRWuUL.cjs → metamask-sdk-BR0UffTG.cjs} +1 -1
- package/dist/{metamask-sdk-DjTXJOf3.js → metamask-sdk-CWejtgv4.js} +1 -1
- package/dist/{native-GRAmon80.cjs → native-BQEvKOnP.cjs} +1 -1
- package/dist/{native-BIxNbjgj.js → native-Cu9ENMNS.js} +1 -1
- package/dist/{w3m-modal-B3w1zQhA.js → w3m-modal-C48bKG7t.js} +11 -10
- package/dist/{w3m-modal-DhxUNld7.cjs → w3m-modal-D71FClnT.cjs} +5 -4
- package/dist/{wagmi-B6jaEzaj.js → wagmi-BW31my6S.js} +2410 -2409
- package/dist/{wagmi-Dtm-jEDI.cjs → wagmi-BydfAFoJ.cjs} +4 -4
- package/dist/wagmi.cjs +1 -1
- package/dist/wagmi.js +2 -2
- package/package.json +5 -5
- package/dist/hooks.module-B7uJtWgK.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const p=require("./W3MFrameProviderSingleton-
|
|
1
|
+
"use strict";const p=require("./W3MFrameProviderSingleton-EBSNGCyS.cjs");function _(n,a){for(var i=0;i<a.length;i++){const e=a[i];if(typeof e!="string"&&!Array.isArray(e)){for(const s in e)if(s!=="default"&&!(s in n)){const o=Object.getOwnPropertyDescriptor(e,s);o&&Object.defineProperty(n,s,o.get?o:{enumerable:!0,get:()=>e[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var l={},g={},f={};Object.defineProperty(f,"__esModule",{value:!0});f.getLowerCase=void 0;function w(n){return n&&n.toLowerCase()}f.getLowerCase=w;Object.defineProperty(g,"__esModule",{value:!0});g.SafeAppProvider=void 0;const m=p.eventsExports,u=f;class k extends m.EventEmitter{constructor(a,i){super(),this.submittedTxs=new Map,this.safe=a,this.sdk=i}async connect(){this.emit("connect",{chainId:this.chainId})}async disconnect(){}get chainId(){return this.safe.chainId}async request(a){const{method:i,params:e=[]}=a;switch(i){case"eth_accounts":return[this.safe.safeAddress];case"net_version":case"eth_chainId":return`0x${this.chainId.toString(16)}`;case"personal_sign":{const[t,r]=e;if(this.safe.safeAddress.toLowerCase()!==r.toLowerCase())throw new Error("The address or message hash is invalid");const h=await this.sdk.txs.signMessage(t);return("signature"in h?h.signature:void 0)||"0x"}case"eth_sign":{const[t,r]=e;if(this.safe.safeAddress.toLowerCase()!==t.toLowerCase()||!r.startsWith("0x"))throw new Error("The address or message hash is invalid");const h=await this.sdk.txs.signMessage(r);return("signature"in h?h.signature:void 0)||"0x"}case"eth_signTypedData":case"eth_signTypedData_v4":{const[t,r]=e,h=typeof r=="string"?JSON.parse(r):r;if(this.safe.safeAddress.toLowerCase()!==t.toLowerCase())throw new Error("The address is invalid");const c=await this.sdk.txs.signTypedMessage(h);return("signature"in c?c.signature:void 0)||"0x"}case"eth_sendTransaction":const s={...e[0],value:e[0].value||"0",data:e[0].data||"0x"};typeof s.gas=="string"&&s.gas.startsWith("0x")&&(s.gas=parseInt(s.gas,16));const o=await this.sdk.txs.send({txs:[s],params:{safeTxGas:s.gas}});return this.submittedTxs.set(o.safeTxHash,{from:this.safe.safeAddress,hash:o.safeTxHash,gas:0,gasPrice:"0x00",nonce:0,input:s.data,value:s.value,to:s.to,blockHash:null,blockNumber:null,transactionIndex:null}),o.safeTxHash;case"eth_blockNumber":return(await this.sdk.eth.getBlockByNumber(["latest"])).number;case"eth_getBalance":return this.sdk.eth.getBalance([(0,u.getLowerCase)(e[0]),e[1]]);case"eth_getCode":return this.sdk.eth.getCode([(0,u.getLowerCase)(e[0]),e[1]]);case"eth_getTransactionCount":return this.sdk.eth.getTransactionCount([(0,u.getLowerCase)(e[0]),e[1]]);case"eth_getStorageAt":return this.sdk.eth.getStorageAt([(0,u.getLowerCase)(e[0]),e[1],e[2]]);case"eth_getBlockByNumber":return this.sdk.eth.getBlockByNumber([e[0],e[1]]);case"eth_getBlockByHash":return this.sdk.eth.getBlockByHash([e[0],e[1]]);case"eth_getTransactionByHash":let d=e[0];try{d=(await this.sdk.txs.getBySafeTxHash(d)).txHash||d}catch{}return this.submittedTxs.has(d)?this.submittedTxs.get(d):this.sdk.eth.getTransactionByHash([d]).then(t=>(t&&(t.hash=e[0]),t));case"eth_getTransactionReceipt":{let t=e[0];try{t=(await this.sdk.txs.getBySafeTxHash(t)).txHash||t}catch{}return this.sdk.eth.getTransactionReceipt([t]).then(r=>(r&&(r.transactionHash=e[0]),r))}case"eth_estimateGas":return this.sdk.eth.getEstimateGas(e[0]);case"eth_call":return this.sdk.eth.call([e[0],e[1]]);case"eth_getLogs":return this.sdk.eth.getPastLogs([e[0]]);case"eth_gasPrice":return this.sdk.eth.getGasPrice();case"wallet_getPermissions":return this.sdk.wallet.getPermissions();case"wallet_requestPermissions":return this.sdk.wallet.requestPermissions(e[0]);case"safe_setSettings":return this.sdk.eth.setSafeSettings([e[0]]);default:throw Error(`"${a.method}" not implemented`)}}send(a,i){a||i("Undefined request"),this.request(a).then(e=>i(null,{jsonrpc:"2.0",id:a.id,result:e})).catch(e=>i(e,null))}}g.SafeAppProvider=k;(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.SafeAppProvider=void 0;var a=g;Object.defineProperty(n,"SafeAppProvider",{enumerable:!0,get:function(){return a.SafeAppProvider}})})(l);const y=_({__proto__:null},[l]);exports.index=y;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CHnv57sx.cjs"),O=require("./W3MFrameProviderSingleton-EBSNGCyS.cjs");/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Q as a } from "./W3MFrameProviderSingleton-CTR1y-dm.js";
|
|
2
|
+
import { T as e, _ as n, Z as L, a8 as o, aE as W, a9 as l, aa as r, aT as M, aY as Z, aZ as V, ab as d, $ as p, ad as H, ac as c, ae as m, aW as _, aX as k, af as h, ag as g, ah as I, ai as b, aj as B, ak as T, al as v, b7 as w, b8 as S, a0 as f, am as x, b3 as A, an as N, a1 as U, b0 as D, ao as E, ap as P, aq as G, ar as O, aO as Q, b2 as y, b4 as z, aP as F, a$ as X, as as $, aQ as j, b5 as q, a_ as J, av as K, aR as R, a2 as Y, a3 as a1, a4 as i1, ax as s1, aw as C1, ay as u1, az as t1, aN as e1, aA as n1, b1 as L1, aU as o1, aV as W1, aS as l1, aB as r1, aC as M1, b6 as Z1, b9 as V1, a5 as d1, aD as p1, aF as H1, aH as c1, a6 as m1, aG as _1, aJ as k1, aI as h1, at as g1, au as I1, aK as b1, a7 as B1, aL as T1, aM as v1, y as w1, U as S1, V as f1, X as x1 } from "./W3MFrameProviderSingleton-CTR1y-dm.js";
|
|
3
3
|
const s = a`<svg class="input_mask" width="328" height="100" viewBox="0 0 328 100" fill="none">
|
|
4
4
|
<mask id="path-1-inside-1_18299_4189">
|
|
5
5
|
<path
|
|
@@ -46,83 +46,84 @@ export {
|
|
|
46
46
|
n as TransactionUtil,
|
|
47
47
|
L as UiHelperUtil,
|
|
48
48
|
o as WuiAccountButton,
|
|
49
|
-
W as
|
|
50
|
-
l as
|
|
51
|
-
r as
|
|
52
|
-
M as
|
|
53
|
-
Z as
|
|
54
|
-
V as
|
|
55
|
-
d as
|
|
56
|
-
p as
|
|
57
|
-
H as
|
|
58
|
-
c as
|
|
59
|
-
m as
|
|
60
|
-
_ as
|
|
61
|
-
k as
|
|
62
|
-
h as
|
|
63
|
-
g as
|
|
64
|
-
I as
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
v as
|
|
69
|
-
w as
|
|
70
|
-
S as
|
|
71
|
-
f as
|
|
72
|
-
x as
|
|
73
|
-
A as
|
|
74
|
-
N as
|
|
75
|
-
U as
|
|
76
|
-
D as
|
|
77
|
-
E as
|
|
78
|
-
P as
|
|
79
|
-
G as
|
|
80
|
-
O as
|
|
81
|
-
Q as
|
|
49
|
+
W as WuiAlertBar,
|
|
50
|
+
l as WuiAllWalletsImage,
|
|
51
|
+
r as WuiAvatar,
|
|
52
|
+
M as WuiBalance,
|
|
53
|
+
Z as WuiBanner,
|
|
54
|
+
V as WuiBannerImg,
|
|
55
|
+
d as WuiButton,
|
|
56
|
+
p as WuiCard,
|
|
57
|
+
H as WuiCardSelect,
|
|
58
|
+
c as WuiCardSelectLoader,
|
|
59
|
+
m as WuiChip,
|
|
60
|
+
_ as WuiChipButton,
|
|
61
|
+
k as WuiCompatibleNetwork,
|
|
62
|
+
h as WuiConnectButton,
|
|
63
|
+
g as WuiCtaButton,
|
|
64
|
+
I as WuiDetailsGroup,
|
|
65
|
+
b as WuiDetailsGroupItem,
|
|
66
|
+
B as WuiDropdownMenu,
|
|
67
|
+
T as WuiEmailInput,
|
|
68
|
+
v as WuiEnsInput,
|
|
69
|
+
w as WuiFlex,
|
|
70
|
+
S as WuiGrid,
|
|
71
|
+
f as WuiIcon,
|
|
72
|
+
x as WuiIconBox,
|
|
73
|
+
A as WuiIconButton,
|
|
74
|
+
N as WuiIconLink,
|
|
75
|
+
U as WuiImage,
|
|
76
|
+
D as WuiInputAmount,
|
|
77
|
+
E as WuiInputElement,
|
|
78
|
+
P as WuiInputNumeric,
|
|
79
|
+
G as WuiInputText,
|
|
80
|
+
O as WuiLink,
|
|
81
|
+
Q as WuiListAccordion,
|
|
82
|
+
y as WuiListAccount,
|
|
82
83
|
z as WuiListButton,
|
|
83
84
|
F as WuiListContent,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
85
|
+
X as WuiListDescription,
|
|
86
|
+
$ as WuiListItem,
|
|
87
|
+
j as WuiListNetwork,
|
|
88
|
+
q as WuiListSocial,
|
|
89
|
+
J as WuiListToken,
|
|
90
|
+
K as WuiListWallet,
|
|
91
|
+
R as WuiListWalletTransaction,
|
|
92
|
+
Y as WuiLoadingHexagon,
|
|
93
|
+
a1 as WuiLoadingSpinner,
|
|
94
|
+
i1 as WuiLoadingThumbnail,
|
|
95
|
+
s1 as WuiLogo,
|
|
96
|
+
C1 as WuiLogoSelect,
|
|
97
|
+
u1 as WuiNetworkButton,
|
|
98
|
+
t1 as WuiNetworkImage,
|
|
99
|
+
e1 as WuiNoticeCard,
|
|
100
|
+
n1 as WuiOtp,
|
|
101
|
+
L1 as WuiPreviewItem,
|
|
102
|
+
o1 as WuiProfileButton,
|
|
103
|
+
W1 as WuiProfileButtonV2,
|
|
104
|
+
l1 as WuiPromo,
|
|
105
|
+
r1 as WuiQrCode,
|
|
106
|
+
M1 as WuiSearchBar,
|
|
107
|
+
Z1 as WuiSelect,
|
|
108
|
+
V1 as WuiSeparator,
|
|
109
|
+
d1 as WuiShimmer,
|
|
110
|
+
p1 as WuiSnackbar,
|
|
111
|
+
H1 as WuiTabs,
|
|
112
|
+
c1 as WuiTag,
|
|
113
|
+
m1 as WuiText,
|
|
114
|
+
_1 as WuiTokenButton,
|
|
115
|
+
k1 as WuiTokenListItem,
|
|
116
|
+
h1 as WuiTooltip,
|
|
117
|
+
g1 as WuiTransactionListItem,
|
|
118
|
+
I1 as WuiTransactionListItemLoader,
|
|
119
|
+
b1 as WuiTransactionVisual,
|
|
120
|
+
B1 as WuiVisual,
|
|
121
|
+
T1 as WuiVisualThumbnail,
|
|
122
|
+
v1 as WuiWalletImage,
|
|
123
|
+
w1 as customElement,
|
|
124
|
+
S1 as initializeTheming,
|
|
125
|
+
f1 as setColorTheme,
|
|
126
|
+
x1 as setThemeVariables,
|
|
126
127
|
s as swapInputMaskBottomSvg,
|
|
127
128
|
C as swapInputMaskTopSvg
|
|
128
129
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t as b, u as x, v, w as E, j as c, O as C, x as T, y as m, z as y, r as u, D as A, F as _, G as d, m as g, I as S, J as I, M as O, R as N } from "./W3MFrameProviderSingleton-CTR1y-dm.js";
|
|
2
|
+
import { K as k, Y as z, L as D } from "./W3MFrameProviderSingleton-CTR1y-dm.js";
|
|
3
3
|
const i = b({
|
|
4
4
|
status: "uninitialized"
|
|
5
5
|
}), p = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as fe, s as Ke, T as E, o as Y, R as Ho, a as g, t as P, p as H, y as ae } from "./index-
|
|
2
|
-
import {
|
|
1
|
+
import { n as fe, s as Ke, T as E, o as Y, R as Ho, a as g, t as P, p as H, y as ae } from "./index-Cb7ygkgK.js";
|
|
2
|
+
import { bg as Bo, Q as R, c1 as Zo } from "./W3MFrameProviderSingleton-CTR1y-dm.js";
|
|
3
3
|
/**
|
|
4
4
|
* @license
|
|
5
5
|
* Copyright 2019 Google LLC
|