@coinbase/cdp-core 0.0.80 → 0.0.81

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.
Files changed (267) hide show
  1. package/dist/esm/index.native.js +15 -13
  2. package/dist/esm/index.native10.js +1 -1
  3. package/dist/esm/index.native11.js +1 -1
  4. package/dist/esm/index.native12.js +1 -1
  5. package/dist/esm/index.native122.js +1 -1
  6. package/dist/esm/index.native123.js +1 -1
  7. package/dist/esm/index.native125.js +6 -6
  8. package/dist/esm/index.native13.js +1 -1
  9. package/dist/esm/index.native14.js +1 -1
  10. package/dist/esm/index.native155.js +1 -1
  11. package/dist/esm/index.native16.js +1 -1
  12. package/dist/esm/index.native162.js +20 -4
  13. package/dist/esm/index.native163.js +10 -21
  14. package/dist/esm/index.native164.js +19 -9
  15. package/dist/esm/index.native165.js +89 -15
  16. package/dist/esm/index.native166.js +19 -92
  17. package/dist/esm/index.native167.js +115 -18
  18. package/dist/esm/index.native168.js +5 -118
  19. package/dist/esm/index.native17.js +1 -1
  20. package/dist/esm/index.native172.js +38 -7
  21. package/dist/esm/index.native174.js +67 -375
  22. package/dist/esm/index.native175.js +34 -835
  23. package/dist/esm/index.native176.js +20 -38
  24. package/dist/esm/index.native177.js +8 -2
  25. package/dist/esm/index.native178.js +2 -70
  26. package/dist/esm/index.native179.js +373 -30
  27. package/dist/esm/index.native18.js +1 -1
  28. package/dist/esm/index.native180.js +835 -20
  29. package/dist/esm/index.native182.js +18 -2
  30. package/dist/esm/index.native183.js +28 -109
  31. package/dist/esm/index.native184.js +8 -2
  32. package/dist/esm/index.native185.js +11 -18
  33. package/dist/esm/index.native186.js +13 -28
  34. package/dist/esm/index.native187.js +10 -8
  35. package/dist/esm/index.native188.js +17 -11
  36. package/dist/esm/index.native189.js +80 -12
  37. package/dist/esm/index.native19.js +1 -1
  38. package/dist/esm/index.native190.js +2 -10
  39. package/dist/esm/index.native191.js +108 -16
  40. package/dist/esm/index.native192.js +2 -81
  41. package/dist/esm/index.native194.js +2 -2
  42. package/dist/esm/index.native195.js +2 -2
  43. package/dist/esm/index.native196.js +2 -2
  44. package/dist/esm/index.native20.js +1 -1
  45. package/dist/esm/index.native21.js +1 -1
  46. package/dist/esm/index.native22.js +1 -1
  47. package/dist/esm/index.native23.js +1 -1
  48. package/dist/esm/index.native24.js +1 -1
  49. package/dist/esm/index.native25.js +1 -1
  50. package/dist/esm/index.native26.js +1 -1
  51. package/dist/esm/index.native28.js +1 -1
  52. package/dist/esm/index.native29.js +1 -1
  53. package/dist/esm/index.native3.js +1 -1
  54. package/dist/esm/index.native30.js +1 -1
  55. package/dist/esm/index.native31.js +1 -1
  56. package/dist/esm/index.native32.js +1 -1
  57. package/dist/esm/index.native33.js +1 -1
  58. package/dist/esm/index.native37.js +1 -1
  59. package/dist/esm/index.native39.js +1 -1
  60. package/dist/esm/index.native4.js +1 -1
  61. package/dist/esm/index.native46.js +27 -31
  62. package/dist/esm/index.native47.js +31 -27
  63. package/dist/esm/index.native49.js +1 -1
  64. package/dist/esm/index.native5.js +1 -1
  65. package/dist/esm/index.native50.js +1 -1
  66. package/dist/esm/index.native60.js +1 -1
  67. package/dist/esm/index.native69.js +3 -3
  68. package/dist/esm/index.native72.js +1 -1
  69. package/dist/esm/index.native73.js +1 -1
  70. package/dist/esm/index.native74.js +1 -1
  71. package/dist/esm/index.native78.js +377 -2
  72. package/dist/esm/index.native79.js +29 -2
  73. package/dist/esm/index.native80.js +26 -374
  74. package/dist/esm/index.native81.js +2 -29
  75. package/dist/esm/index.native82.js +2 -29
  76. package/dist/esm/index.native9.js +1 -1
  77. package/dist/esm/index.web.js +9 -7
  78. package/dist/esm/index.web10.js +2 -2
  79. package/dist/esm/index.web11.js +2 -2
  80. package/dist/esm/index.web12.js +2 -2
  81. package/dist/esm/index.web13.js +1 -1
  82. package/dist/esm/index.web15.js +1 -1
  83. package/dist/esm/index.web154.js +1 -1
  84. package/dist/esm/index.web16.js +1 -1
  85. package/dist/esm/index.web17.js +1 -1
  86. package/dist/esm/index.web171.js +38 -7
  87. package/dist/esm/index.web173.js +67 -375
  88. package/dist/esm/index.web174.js +34 -835
  89. package/dist/esm/index.web175.js +20 -38
  90. package/dist/esm/index.web176.js +8 -2
  91. package/dist/esm/index.web177.js +2 -70
  92. package/dist/esm/index.web178.js +373 -30
  93. package/dist/esm/index.web179.js +835 -20
  94. package/dist/esm/index.web18.js +1 -1
  95. package/dist/esm/index.web19.js +1 -1
  96. package/dist/esm/index.web193.js +2 -2
  97. package/dist/esm/index.web194.js +2 -2
  98. package/dist/esm/index.web195.js +2 -2
  99. package/dist/esm/index.web20.js +2 -2
  100. package/dist/esm/index.web21.js +2 -2
  101. package/dist/esm/index.web22.js +2 -2
  102. package/dist/esm/index.web23.js +2 -2
  103. package/dist/esm/index.web24.js +2 -2
  104. package/dist/esm/index.web25.js +2 -2
  105. package/dist/esm/index.web27.js +1 -1
  106. package/dist/esm/index.web28.js +2 -2
  107. package/dist/esm/index.web29.js +2 -2
  108. package/dist/esm/index.web3.js +1 -1
  109. package/dist/esm/index.web30.js +3 -3
  110. package/dist/esm/index.web31.js +2 -2
  111. package/dist/esm/index.web32.js +2 -2
  112. package/dist/esm/index.web36.js +1 -1
  113. package/dist/esm/index.web38.js +2 -2
  114. package/dist/esm/index.web47.js +1 -1
  115. package/dist/esm/index.web48.js +27 -31
  116. package/dist/esm/index.web49.js +32 -3
  117. package/dist/esm/index.web5.js +1 -1
  118. package/dist/esm/index.web50.js +3 -9
  119. package/dist/esm/index.web51.js +8 -64
  120. package/dist/esm/index.web52.js +47 -70
  121. package/dist/esm/index.web53.js +87 -23
  122. package/dist/esm/index.web54.js +23 -17
  123. package/dist/esm/index.web55.js +16 -26
  124. package/dist/esm/index.web62.js +1 -1
  125. package/dist/esm/index.web70.js +1 -1
  126. package/dist/esm/index.web8.js +1 -1
  127. package/dist/esm/index.web9.js +7 -7
  128. package/dist/native/index.native.js +15 -13
  129. package/dist/native/index.native10.js +1 -1
  130. package/dist/native/index.native11.js +1 -1
  131. package/dist/native/index.native12.js +1 -1
  132. package/dist/native/index.native122.js +1 -1
  133. package/dist/native/index.native123.js +1 -1
  134. package/dist/native/index.native125.js +6 -6
  135. package/dist/native/index.native13.js +1 -1
  136. package/dist/native/index.native14.js +1 -1
  137. package/dist/native/index.native155.js +1 -1
  138. package/dist/native/index.native16.js +1 -1
  139. package/dist/native/index.native162.js +20 -4
  140. package/dist/native/index.native163.js +10 -21
  141. package/dist/native/index.native164.js +19 -9
  142. package/dist/native/index.native165.js +89 -15
  143. package/dist/native/index.native166.js +19 -92
  144. package/dist/native/index.native167.js +115 -18
  145. package/dist/native/index.native168.js +5 -118
  146. package/dist/native/index.native17.js +1 -1
  147. package/dist/native/index.native172.js +38 -7
  148. package/dist/native/index.native174.js +67 -375
  149. package/dist/native/index.native175.js +34 -835
  150. package/dist/native/index.native176.js +20 -38
  151. package/dist/native/index.native177.js +8 -2
  152. package/dist/native/index.native178.js +2 -70
  153. package/dist/native/index.native179.js +373 -30
  154. package/dist/native/index.native18.js +1 -1
  155. package/dist/native/index.native180.js +835 -20
  156. package/dist/native/index.native182.js +18 -2
  157. package/dist/native/index.native183.js +28 -109
  158. package/dist/native/index.native184.js +8 -2
  159. package/dist/native/index.native185.js +11 -18
  160. package/dist/native/index.native186.js +13 -28
  161. package/dist/native/index.native187.js +10 -8
  162. package/dist/native/index.native188.js +17 -11
  163. package/dist/native/index.native189.js +80 -12
  164. package/dist/native/index.native19.js +1 -1
  165. package/dist/native/index.native190.js +2 -10
  166. package/dist/native/index.native191.js +108 -16
  167. package/dist/native/index.native192.js +2 -81
  168. package/dist/native/index.native194.js +2 -2
  169. package/dist/native/index.native195.js +2 -2
  170. package/dist/native/index.native196.js +2 -2
  171. package/dist/native/index.native20.js +1 -1
  172. package/dist/native/index.native21.js +1 -1
  173. package/dist/native/index.native22.js +1 -1
  174. package/dist/native/index.native23.js +1 -1
  175. package/dist/native/index.native24.js +1 -1
  176. package/dist/native/index.native25.js +1 -1
  177. package/dist/native/index.native26.js +1 -1
  178. package/dist/native/index.native28.js +1 -1
  179. package/dist/native/index.native29.js +1 -1
  180. package/dist/native/index.native3.js +1 -1
  181. package/dist/native/index.native30.js +1 -1
  182. package/dist/native/index.native31.js +1 -1
  183. package/dist/native/index.native32.js +1 -1
  184. package/dist/native/index.native33.js +1 -1
  185. package/dist/native/index.native37.js +1 -1
  186. package/dist/native/index.native39.js +1 -1
  187. package/dist/native/index.native4.js +1 -1
  188. package/dist/native/index.native46.js +27 -31
  189. package/dist/native/index.native47.js +31 -27
  190. package/dist/native/index.native49.js +1 -1
  191. package/dist/native/index.native5.js +1 -1
  192. package/dist/native/index.native50.js +1 -1
  193. package/dist/native/index.native60.js +1 -1
  194. package/dist/native/index.native69.js +3 -3
  195. package/dist/native/index.native72.js +1 -1
  196. package/dist/native/index.native73.js +1 -1
  197. package/dist/native/index.native74.js +1 -1
  198. package/dist/native/index.native78.js +377 -2
  199. package/dist/native/index.native79.js +29 -2
  200. package/dist/native/index.native80.js +26 -374
  201. package/dist/native/index.native81.js +2 -29
  202. package/dist/native/index.native82.js +2 -29
  203. package/dist/native/index.native9.js +1 -1
  204. package/dist/native-types/index.d.ts +1 -0
  205. package/dist/native-types/index.native.d.ts +1 -0
  206. package/dist/native-types/index.web.d.ts +1 -0
  207. package/dist/native-types/version.d.ts +1 -1
  208. package/dist/types/index.d.ts +1 -0
  209. package/dist/types/index.native.d.ts +1 -0
  210. package/dist/types/index.web.d.ts +1 -0
  211. package/dist/types/version.d.ts +1 -1
  212. package/dist/web/index.web.js +9 -7
  213. package/dist/web/index.web10.js +2 -2
  214. package/dist/web/index.web11.js +2 -2
  215. package/dist/web/index.web12.js +2 -2
  216. package/dist/web/index.web13.js +1 -1
  217. package/dist/web/index.web15.js +1 -1
  218. package/dist/web/index.web154.js +1 -1
  219. package/dist/web/index.web16.js +1 -1
  220. package/dist/web/index.web17.js +1 -1
  221. package/dist/web/index.web171.js +38 -7
  222. package/dist/web/index.web173.js +67 -375
  223. package/dist/web/index.web174.js +34 -835
  224. package/dist/web/index.web175.js +20 -38
  225. package/dist/web/index.web176.js +8 -2
  226. package/dist/web/index.web177.js +2 -70
  227. package/dist/web/index.web178.js +373 -30
  228. package/dist/web/index.web179.js +835 -20
  229. package/dist/web/index.web18.js +1 -1
  230. package/dist/web/index.web19.js +1 -1
  231. package/dist/web/index.web193.js +2 -2
  232. package/dist/web/index.web194.js +2 -2
  233. package/dist/web/index.web195.js +2 -2
  234. package/dist/web/index.web20.js +2 -2
  235. package/dist/web/index.web21.js +2 -2
  236. package/dist/web/index.web22.js +2 -2
  237. package/dist/web/index.web23.js +2 -2
  238. package/dist/web/index.web24.js +2 -2
  239. package/dist/web/index.web25.js +2 -2
  240. package/dist/web/index.web27.js +1 -1
  241. package/dist/web/index.web28.js +2 -2
  242. package/dist/web/index.web29.js +2 -2
  243. package/dist/web/index.web3.js +1 -1
  244. package/dist/web/index.web30.js +3 -3
  245. package/dist/web/index.web31.js +2 -2
  246. package/dist/web/index.web32.js +2 -2
  247. package/dist/web/index.web36.js +1 -1
  248. package/dist/web/index.web38.js +2 -2
  249. package/dist/web/index.web47.js +1 -1
  250. package/dist/web/index.web48.js +27 -31
  251. package/dist/web/index.web49.js +32 -3
  252. package/dist/web/index.web5.js +1 -1
  253. package/dist/web/index.web50.js +3 -9
  254. package/dist/web/index.web51.js +8 -64
  255. package/dist/web/index.web52.js +47 -70
  256. package/dist/web/index.web53.js +87 -23
  257. package/dist/web/index.web54.js +23 -17
  258. package/dist/web/index.web55.js +16 -26
  259. package/dist/web/index.web62.js +1 -1
  260. package/dist/web/index.web70.js +1 -1
  261. package/dist/web/index.web8.js +1 -1
  262. package/dist/web/index.web9.js +7 -7
  263. package/dist/web-types/index.d.ts +1 -0
  264. package/dist/web-types/index.native.d.ts +1 -0
  265. package/dist/web-types/index.web.d.ts +1 -0
  266. package/dist/web-types/version.d.ts +1 -1
  267. package/package.json +2 -2
@@ -1,379 +1,31 @@
1
- import "./index.native122.js";
2
- import { BaseError as P } from "./index.native123.js";
3
- import { parse as y, parseError as j, InternalError as g } from "./index.native124.js";
4
- class u extends Error {
5
- constructor(e, t) {
6
- super(t), Object.defineProperty(this, "name", {
7
- enumerable: !0,
8
- configurable: !0,
9
- writable: !0,
10
- value: "ProviderRpcError"
11
- }), Object.defineProperty(this, "code", {
12
- enumerable: !0,
13
- configurable: !0,
14
- writable: !0,
15
- value: void 0
16
- }), Object.defineProperty(this, "details", {
17
- enumerable: !0,
18
- configurable: !0,
19
- writable: !0,
20
- value: void 0
21
- }), this.code = e, this.details = t;
22
- }
23
- }
24
- class n extends u {
25
- constructor({ message: e = "The user rejected the request." } = {}) {
26
- super(4001, e), Object.defineProperty(this, "code", {
27
- enumerable: !0,
28
- configurable: !0,
29
- writable: !0,
30
- value: 4001
31
- }), Object.defineProperty(this, "name", {
32
- enumerable: !0,
33
- configurable: !0,
34
- writable: !0,
35
- value: "Provider.UserRejectedRequestError"
36
- });
37
- }
38
- }
39
- Object.defineProperty(n, "code", {
40
- enumerable: !0,
41
- configurable: !0,
42
- writable: !0,
43
- value: 4001
44
- });
45
- class a extends u {
46
- constructor({ message: e = "The requested method and/or account has not been authorized by the user." } = {}) {
47
- super(4100, e), Object.defineProperty(this, "code", {
48
- enumerable: !0,
49
- configurable: !0,
50
- writable: !0,
51
- value: 4100
52
- }), Object.defineProperty(this, "name", {
53
- enumerable: !0,
54
- configurable: !0,
55
- writable: !0,
56
- value: "Provider.UnauthorizedError"
57
- });
58
- }
59
- }
60
- Object.defineProperty(a, "code", {
61
- enumerable: !0,
62
- configurable: !0,
63
- writable: !0,
64
- value: 4100
65
- });
66
- class i extends u {
67
- constructor({ message: e = "The provider does not support the requested method." } = {}) {
68
- super(4200, e), Object.defineProperty(this, "code", {
69
- enumerable: !0,
70
- configurable: !0,
71
- writable: !0,
72
- value: 4200
73
- }), Object.defineProperty(this, "name", {
74
- enumerable: !0,
75
- configurable: !0,
76
- writable: !0,
77
- value: "Provider.UnsupportedMethodError"
78
- });
79
- }
80
- }
81
- Object.defineProperty(i, "code", {
82
- enumerable: !0,
83
- configurable: !0,
84
- writable: !0,
85
- value: 4200
86
- });
87
- class c extends u {
88
- constructor({ message: e = "The provider is disconnected from all chains." } = {}) {
89
- super(4900, e), Object.defineProperty(this, "code", {
90
- enumerable: !0,
91
- configurable: !0,
92
- writable: !0,
93
- value: 4900
94
- }), Object.defineProperty(this, "name", {
95
- enumerable: !0,
96
- configurable: !0,
97
- writable: !0,
98
- value: "Provider.DisconnectedError"
99
- });
100
- }
101
- }
102
- Object.defineProperty(c, "code", {
103
- enumerable: !0,
104
- configurable: !0,
105
- writable: !0,
106
- value: 4900
107
- });
108
- class l extends u {
109
- constructor({ message: e = "The provider is not connected to the requested chain." } = {}) {
110
- super(4901, e), Object.defineProperty(this, "code", {
111
- enumerable: !0,
112
- configurable: !0,
113
- writable: !0,
114
- value: 4901
115
- }), Object.defineProperty(this, "name", {
116
- enumerable: !0,
117
- configurable: !0,
118
- writable: !0,
119
- value: "Provider.ChainDisconnectedError"
120
- });
121
- }
122
- }
123
- Object.defineProperty(l, "code", {
124
- enumerable: !0,
125
- configurable: !0,
126
- writable: !0,
127
- value: 4901
128
- });
129
- class d extends u {
130
- constructor({ message: e = "An error occurred when attempting to switch chain." } = {}) {
131
- super(4902, e), Object.defineProperty(this, "code", {
132
- enumerable: !0,
133
- configurable: !0,
134
- writable: !0,
135
- value: 4902
136
- }), Object.defineProperty(this, "name", {
137
- enumerable: !0,
138
- configurable: !0,
139
- writable: !0,
140
- value: "Provider.SwitchChainError"
141
- });
142
- }
143
- }
144
- Object.defineProperty(d, "code", {
145
- enumerable: !0,
146
- configurable: !0,
147
- writable: !0,
148
- value: 4902
149
- });
150
- class b extends u {
151
- constructor({ message: e = "This Wallet does not support a capability that was not marked as optional." } = {}) {
152
- super(5700, e), Object.defineProperty(this, "code", {
153
- enumerable: !0,
154
- configurable: !0,
155
- writable: !0,
156
- value: 5700
157
- }), Object.defineProperty(this, "name", {
158
- enumerable: !0,
159
- configurable: !0,
160
- writable: !0,
161
- value: "Provider.UnsupportedNonOptionalCapabilityError"
162
- });
163
- }
164
- }
165
- Object.defineProperty(b, "code", {
166
- enumerable: !0,
167
- configurable: !0,
168
- writable: !0,
169
- value: 5700
170
- });
171
- class s extends u {
172
- constructor({ message: e = "This Wallet does not support the requested chain ID." } = {}) {
173
- super(5710, e), Object.defineProperty(this, "code", {
174
- enumerable: !0,
175
- configurable: !0,
176
- writable: !0,
177
- value: 5710
178
- }), Object.defineProperty(this, "name", {
179
- enumerable: !0,
180
- configurable: !0,
181
- writable: !0,
182
- value: "Provider.UnsupportedChainIdError"
183
- });
184
- }
185
- }
186
- Object.defineProperty(s, "code", {
187
- enumerable: !0,
188
- configurable: !0,
189
- writable: !0,
190
- value: 5710
191
- });
192
- class f extends u {
193
- constructor({ message: e = "There is already a bundle submitted with this ID." } = {}) {
194
- super(5720, e), Object.defineProperty(this, "code", {
195
- enumerable: !0,
196
- configurable: !0,
197
- writable: !0,
198
- value: 5720
199
- }), Object.defineProperty(this, "name", {
200
- enumerable: !0,
201
- configurable: !0,
202
- writable: !0,
203
- value: "Provider.DuplicateIdError"
204
- });
205
- }
206
- }
207
- Object.defineProperty(f, "code", {
208
- enumerable: !0,
209
- configurable: !0,
210
- writable: !0,
211
- value: 5720
212
- });
213
- class p extends u {
214
- constructor({ message: e = "This bundle id is unknown / has not been submitted." } = {}) {
215
- super(5730, e), Object.defineProperty(this, "code", {
216
- enumerable: !0,
217
- configurable: !0,
218
- writable: !0,
219
- value: 5730
220
- }), Object.defineProperty(this, "name", {
221
- enumerable: !0,
222
- configurable: !0,
223
- writable: !0,
224
- value: "Provider.UnknownBundleIdError"
225
- });
226
- }
227
- }
228
- Object.defineProperty(p, "code", {
229
- enumerable: !0,
230
- configurable: !0,
231
- writable: !0,
232
- value: 5730
233
- });
234
- class h extends u {
235
- constructor({ message: e = "The call bundle is too large for the Wallet to process." } = {}) {
236
- super(5740, e), Object.defineProperty(this, "code", {
237
- enumerable: !0,
238
- configurable: !0,
239
- writable: !0,
240
- value: 5740
241
- }), Object.defineProperty(this, "name", {
242
- enumerable: !0,
243
- configurable: !0,
244
- writable: !0,
245
- value: "Provider.BundleTooLargeError"
246
- });
247
- }
248
- }
249
- Object.defineProperty(h, "code", {
250
- enumerable: !0,
251
- configurable: !0,
252
- writable: !0,
253
- value: 5740
254
- });
255
- class m extends u {
256
- constructor({ message: e = "The Wallet can support atomicity after an upgrade, but the user rejected the upgrade." } = {}) {
257
- super(5750, e), Object.defineProperty(this, "code", {
258
- enumerable: !0,
259
- configurable: !0,
260
- writable: !0,
261
- value: 5750
262
- }), Object.defineProperty(this, "name", {
263
- enumerable: !0,
264
- configurable: !0,
265
- writable: !0,
266
- value: "Provider.AtomicReadyWalletRejectedUpgradeError"
267
- });
268
- }
269
- }
270
- Object.defineProperty(m, "code", {
271
- enumerable: !0,
272
- configurable: !0,
273
- writable: !0,
274
- value: 5750
275
- });
276
- class w extends u {
277
- constructor({ message: e = "The wallet does not support atomic execution but the request requires it." } = {}) {
278
- super(5760, e), Object.defineProperty(this, "code", {
279
- enumerable: !0,
280
- configurable: !0,
281
- writable: !0,
282
- value: 5760
283
- }), Object.defineProperty(this, "name", {
284
- enumerable: !0,
285
- configurable: !0,
286
- writable: !0,
287
- value: "Provider.AtomicityNotSupportedError"
288
- });
289
- }
290
- }
291
- Object.defineProperty(w, "code", {
292
- enumerable: !0,
293
- configurable: !0,
294
- writable: !0,
295
- value: 5760
296
- });
297
- function q(r, e = {}) {
298
- const { includeEvents: t = !0 } = e;
299
- if (!r)
300
- throw new E();
1
+ import { handleChainId as t } from "./index.native142.js";
2
+ import { handleDisconnect as e } from "./index.native143.js";
3
+ import { handleSwitchEthereumChain as a } from "./index.native144.js";
4
+ import { handleAccounts as n } from "./index.native145.js";
5
+ import { handleEthSign as o } from "./index.native146.js";
6
+ import { handleGetCallsStatus as r } from "./index.native147.js";
7
+ import { handleGetCapabilities as i } from "./index.native148.js";
8
+ import { handlePersonalSign as l } from "./index.native149.js";
9
+ import { handleRequestAccounts as h } from "./index.native150.js";
10
+ import { handleSendCalls as m } from "./index.native151.js";
11
+ import { handleSendTransaction as s } from "./index.native152.js";
12
+ import { handleSignTypedData as d } from "./index.native153.js";
13
+ function E() {
301
14
  return {
302
- ...t ? {
303
- on: r.on?.bind(r),
304
- removeListener: r.removeListener?.bind(r)
305
- } : {},
306
- async request(v) {
307
- try {
308
- const o = await r.request(v);
309
- return o && typeof o == "object" && "jsonrpc" in o ? y(o) : o;
310
- } catch (o) {
311
- throw O(o);
312
- }
313
- }
15
+ eth_accounts: n,
16
+ eth_requestAccounts: h,
17
+ personal_sign: l,
18
+ eth_sendTransaction: s,
19
+ eth_signTypedData_v4: d,
20
+ wallet_disconnect: e,
21
+ wallet_switchEthereumChain: a,
22
+ eth_sign: o,
23
+ eth_chainId: t,
24
+ wallet_sendCalls: m,
25
+ wallet_getCallsStatus: r,
26
+ wallet_getCapabilities: i
314
27
  };
315
28
  }
316
- function O(r) {
317
- const e = j(r);
318
- if (e instanceof g) {
319
- if (!e.data)
320
- return e;
321
- const { code: t } = e.data;
322
- if (t === c.code)
323
- return new c(e);
324
- if (t === l.code)
325
- return new l(e);
326
- if (t === n.code)
327
- return new n(e);
328
- if (t === a.code)
329
- return new a(e);
330
- if (t === i.code)
331
- return new i(e);
332
- if (t === d.code)
333
- return new d(e);
334
- if (t === m.code)
335
- return new m(e);
336
- if (t === w.code)
337
- return new w(e);
338
- if (t === h.code)
339
- return new h(e);
340
- if (t === p.code)
341
- return new p(e);
342
- if (t === f.code)
343
- return new f(e);
344
- if (t === s.code)
345
- return new s(e);
346
- if (t === b.code)
347
- return new b(e);
348
- }
349
- return e;
350
- }
351
- class E extends P {
352
- constructor() {
353
- super("`provider` is undefined."), Object.defineProperty(this, "name", {
354
- enumerable: !0,
355
- configurable: !0,
356
- writable: !0,
357
- value: "Provider.IsUndefinedError"
358
- });
359
- }
360
- }
361
29
  export {
362
- m as AtomicReadyWalletRejectedUpgradeError,
363
- w as AtomicityNotSupportedError,
364
- h as BundleTooLargeError,
365
- l as ChainDisconnectedError,
366
- c as DisconnectedError,
367
- f as DuplicateIdError,
368
- E as IsUndefinedError,
369
- u as ProviderRpcError,
370
- d as SwitchChainError,
371
- a as UnauthorizedError,
372
- p as UnknownBundleIdError,
373
- s as UnsupportedChainIdError,
374
- i as UnsupportedMethodError,
375
- b as UnsupportedNonOptionalCapabilityError,
376
- n as UserRejectedRequestError,
377
- q as from,
378
- O as parseError
30
+ E as createSmartAccountHandlers
379
31
  };
@@ -1,31 +1,4 @@
1
- import { handleAccounts as t } from "./index.native133.js";
2
- import { handleEthSign as e } from "./index.native134.js";
3
- import { handleGetCallsStatus as a } from "./index.native135.js";
4
- import { handleGetCapabilities as n } from "./index.native136.js";
5
- import { handlePersonalSign as o } from "./index.native137.js";
6
- import { handleRequestAccounts as r } from "./index.native138.js";
7
- import { handleSendCalls as i } from "./index.native139.js";
8
- import { handleSendTransaction as l } from "./index.native140.js";
9
- import { handleSignTypedData as h } from "./index.native141.js";
10
- import { handleChainId as s } from "./index.native142.js";
11
- import { handleDisconnect as m } from "./index.native143.js";
12
- import { handleSwitchEthereumChain as d } from "./index.native144.js";
13
- function D() {
14
- return {
15
- eth_accounts: t,
16
- eth_requestAccounts: r,
17
- personal_sign: o,
18
- eth_sendTransaction: l,
19
- eth_signTypedData_v4: h,
20
- wallet_disconnect: m,
21
- wallet_switchEthereumChain: d,
22
- eth_sign: e,
23
- eth_chainId: s,
24
- wallet_sendCalls: i,
25
- wallet_getCallsStatus: a,
26
- wallet_getCapabilities: n
27
- };
28
- }
1
+ var s = {};
29
2
  export {
30
- D as createEOAHandlers
3
+ s as __exports
31
4
  };
@@ -1,31 +1,4 @@
1
- import { handleChainId as t } from "./index.native142.js";
2
- import { handleDisconnect as e } from "./index.native143.js";
3
- import { handleSwitchEthereumChain as a } from "./index.native144.js";
4
- import { handleAccounts as n } from "./index.native145.js";
5
- import { handleEthSign as o } from "./index.native146.js";
6
- import { handleGetCallsStatus as r } from "./index.native147.js";
7
- import { handleGetCapabilities as i } from "./index.native148.js";
8
- import { handlePersonalSign as l } from "./index.native149.js";
9
- import { handleRequestAccounts as h } from "./index.native150.js";
10
- import { handleSendCalls as m } from "./index.native151.js";
11
- import { handleSendTransaction as s } from "./index.native152.js";
12
- import { handleSignTypedData as d } from "./index.native153.js";
13
- function E() {
14
- return {
15
- eth_accounts: n,
16
- eth_requestAccounts: h,
17
- personal_sign: l,
18
- eth_sendTransaction: s,
19
- eth_signTypedData_v4: d,
20
- wallet_disconnect: e,
21
- wallet_switchEthereumChain: a,
22
- eth_sign: o,
23
- eth_chainId: t,
24
- wallet_sendCalls: m,
25
- wallet_getCallsStatus: r,
26
- wallet_getCapabilities: i
27
- };
28
- }
1
+ var e = {};
29
2
  export {
30
- E as createSmartAccountHandlers
3
+ e as __exports
31
4
  };
@@ -1,4 +1,4 @@
1
- const o = "0.0.80";
1
+ const o = "0.0.81";
2
2
  export {
3
3
  o as VERSION
4
4
  };
@@ -5,7 +5,7 @@ import { webCrypto as o } from "./index.web5.js";
5
5
  import { webOAuth as t } from "./index.web6.js";
6
6
  import { webStorage as n } from "./index.web7.js";
7
7
  import { VERSION as a } from "./index.web8.js";
8
- import { authenticateWithJWT as u, exportEvmAccount as A, exportSolanaAccount as g, getAccessToken as T, getAccessTokenExpiration as M, getCurrentUser as I, getUserOperation as h, initialize as _, isSignedIn as P, onAuthStateChange as v, onOAuthStateChange as R, sendEvmTransaction as O, sendSolanaTransaction as U, sendUserOperation as C, signEvmHash as y, signEvmMessage as k, signEvmTransaction as F, signEvmTypedData as N, signInWithEmail as V, signInWithOAuth as D, signInWithSms as W, signOut as b, signSolanaMessage as w, signSolanaTransaction as H, verifyEmailOTP as K, verifyOAuth as Y, verifySmsOTP as B } from "./index.web9.js";
8
+ import { authenticateWithJWT as u, exportEvmAccount as A, exportSolanaAccount as g, getAccessToken as T, getAccessTokenExpiration as M, getCurrentUser as I, getUserOperation as h, initialize as _, isSignedIn as P, onAuthStateChange as v, onOAuthStateChange as R, sendEvmTransaction as O, sendSolanaTransaction as C, sendUserOperation as U, signEvmHash as y, signEvmMessage as k, signEvmTransaction as F, signEvmTypedData as N, signInWithEmail as V, signInWithOAuth as D, signInWithSms as W, signOut as b, signSolanaMessage as w, signSolanaTransaction as H, verifyEmailOTP as K, verifyOAuth as Y, verifySmsOTP as B } from "./index.web9.js";
9
9
  import { createSpendPermission as X } from "./index.web10.js";
10
10
  import { listSpendPermissions as z } from "./index.web11.js";
11
11
  import { APIError as J, ErrorType as j, HttpErrorType as Q, OAuth2ProviderType as Z, SendEvmTransactionWithEndUserAccountBodyNetwork as $, SendSolanaTransactionWithEndUserAccountBodyNetwork as rr } from "@coinbase/cdp-api-client";
@@ -23,7 +23,7 @@ import { createSolanaAccount as Ir } from "./index.web22.js";
23
23
  import { sendEvmEoaUsdc as _r } from "./index.web23.js";
24
24
  import { sendEvmSmartAccountUsdc as vr } from "./index.web24.js";
25
25
  import { sendSolanaUsdc as Or } from "./index.web25.js";
26
- import { sendUsdc as Cr } from "./index.web26.js";
26
+ import { sendUsdc as Ur } from "./index.web26.js";
27
27
  import { getMfaConfig as kr } from "./index.web27.js";
28
28
  import { recordMfaEnrollmentPrompted as Nr } from "./index.web28.js";
29
29
  import { initiateMfaEnrollment as Dr } from "./index.web29.js";
@@ -45,8 +45,9 @@ import { EIP1193ProviderError as ge, STANDARD_ERROR_CODES as Te } from "./index.
45
45
  import "viem";
46
46
  import "zustand";
47
47
  import { buildKeyExportIframeUrl as Ie, calculateSecureIframeHeight as he, createIframe as _e, getSecureIframeOrigin as Pe, isSecureIframeKeyExportMessage as ve, sendSecureIframeMessage as Re, validateSecureIframeEnvironment as Oe } from "./index.web45.js";
48
- import { DEFAULT_SECURE_IFRAME_BASE_PATH as Ce, DEFAULT_SECURE_IFRAME_THEME as ye, SECURE_IFRAME_EVENT_TYPE as ke, SECURE_IFRAME_EVENT_TYPE_PREFIX as Fe, SECURE_IFRAME_KEY_EXPORT_EVENT_TYPE as Ne } from "./index.web46.js";
48
+ import { DEFAULT_SECURE_IFRAME_BASE_PATH as Ue, DEFAULT_SECURE_IFRAME_THEME as ye, SECURE_IFRAME_EVENT_TYPE as ke, SECURE_IFRAME_EVENT_TYPE_PREFIX as Fe, SECURE_IFRAME_KEY_EXPORT_EVENT_TYPE as Ne } from "./index.web46.js";
49
49
  import { createEvmKeyExportIframe as De, createSolanaKeyExportIframe as We } from "./index.web47.js";
50
+ import { getConfig as we } from "./index.web48.js";
50
51
  r.registerPackageVersion("core", a);
51
52
  e({
52
53
  crypto: o,
@@ -57,7 +58,7 @@ export {
57
58
  J as APIError,
58
59
  te as AuthManager,
59
60
  ae as CustomAuthError,
60
- Ce as DEFAULT_SECURE_IFRAME_BASE_PATH,
61
+ Ue as DEFAULT_SECURE_IFRAME_BASE_PATH,
61
62
  ye as DEFAULT_SECURE_IFRAME_THEME,
62
63
  ge as EIP1193ProviderError,
63
64
  j as ErrorType,
@@ -93,6 +94,7 @@ export {
93
94
  ir as fetchWithX402,
94
95
  T as getAccessToken,
95
96
  M as getAccessTokenExpiration,
97
+ we as getConfig,
96
98
  I as getCurrentUser,
97
99
  nr as getCurrentUserSync,
98
100
  Gr as getEnrolledMfaMethods,
@@ -122,10 +124,10 @@ export {
122
124
  vr as sendEvmSmartAccountUsdc,
123
125
  O as sendEvmTransaction,
124
126
  Re as sendSecureIframeMessage,
125
- U as sendSolanaTransaction,
127
+ C as sendSolanaTransaction,
126
128
  Or as sendSolanaUsdc,
127
- Cr as sendUsdc,
128
- C as sendUserOperation,
129
+ Ur as sendUsdc,
130
+ U as sendUserOperation,
129
131
  y as signEvmHash,
130
132
  k as signEvmMessage,
131
133
  F as signEvmTransaction,
@@ -1,9 +1,9 @@
1
1
  import { createSpendPermissionWithEndUserAccount as a } from "@coinbase/cdp-api-client";
2
2
  import { Analytics as o } from "./index.web2.js";
3
3
  import "./index.web3.js";
4
- import { withAuth as i } from "./index.web54.js";
4
+ import { withAuth as i } from "./index.web55.js";
5
5
  import { toSpendPermission as m } from "./index.web61.js";
6
- import { getConfig as t, getCoreAuthManager as c } from "./index.web55.js";
6
+ import { getConfig as t, getCoreAuthManager as c } from "./index.web48.js";
7
7
  const h = async (e) => (o.sendActionCallEvent({ name: "create_spend_permission" }), t().useMock ? {
8
8
  userOperationHash: "0x1234567890123456789012345678901234567890123456789012345678901234"
9
9
  } : i(e, c(), async ({ user: n, walletSecretId: s }) => {
@@ -1,8 +1,8 @@
1
1
  import { listSpendPermissionsWithEndUserAccount as a } from "@coinbase/cdp-api-client";
2
2
  import { Analytics as i } from "./index.web2.js";
3
3
  import "./index.web3.js";
4
- import { withAuth as o } from "./index.web54.js";
5
- import { getConfig as r, getCoreAuthManager as m } from "./index.web55.js";
4
+ import { withAuth as o } from "./index.web55.js";
5
+ import { getConfig as r, getCoreAuthManager as m } from "./index.web48.js";
6
6
  const k = async (e) => (i.sendActionCallEvent({ name: "list_spend_permissions" }), r().useMock ? {
7
7
  spendPermissions: [
8
8
  {
@@ -1,8 +1,8 @@
1
1
  import { revokeSpendPermissionWithEndUserAccount as a } from "@coinbase/cdp-api-client";
2
2
  import { Analytics as n } from "./index.web2.js";
3
3
  import "./index.web3.js";
4
- import { withAuth as o } from "./index.web54.js";
5
- import { getConfig as r, getCoreAuthManager as m } from "./index.web55.js";
4
+ import { withAuth as o } from "./index.web55.js";
5
+ import { getConfig as r, getCoreAuthManager as m } from "./index.web48.js";
6
6
  const f = async (e) => (n.sendActionCallEvent({ name: "revoke_spend_permission" }), r().useMock ? {
7
7
  userOperationHash: "0x1234567890123456789012345678901234567890123456789012345678901234"
8
8
  } : o(e, m(), async ({ user: s, walletSecretId: t }) => ({
@@ -1,6 +1,6 @@
1
1
  import { Analytics as r } from "./index.web2.js";
2
2
  import "./index.web3.js";
3
- import { getCoreAuthManager as t } from "./index.web55.js";
3
+ import { getCoreAuthManager as t } from "./index.web48.js";
4
4
  import "@coinbase/cdp-api-client";
5
5
  import "viem";
6
6
  const s = () => (r.sendActionCallEvent({ name: "get_current_user_sync" }), t().getUser());
@@ -2,7 +2,7 @@ import { initiateAuthentication as o } from "@coinbase/cdp-api-client";
2
2
  import { Analytics as e } from "./index.web2.js";
3
3
  import "./index.web3.js";
4
4
  import { getPlatformOAuth as i } from "./index.web4.js";
5
- import { getCoreAuthManager as n, getConfig as r } from "./index.web55.js";
5
+ import { getCoreAuthManager as n, getConfig as r } from "./index.web48.js";
6
6
  async function u() {
7
7
  if (e.sendActionCallEvent({ name: "link_google" }), !await n().isSignedIn())
8
8
  throw new Error("User must be signed in to link a Google account");
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs as r } from "./index.web169.js";
2
- import { __require as o } from "./index.web175.js";
2
+ import { __require as o } from "./index.web171.js";
3
3
  var t = o();
4
4
  const a = /* @__PURE__ */ r(t);
5
5
  export {
@@ -1,7 +1,7 @@
1
1
  import { initiateAuthentication as i } from "@coinbase/cdp-api-client";
2
2
  import { Analytics as t } from "./index.web2.js";
3
3
  import "./index.web3.js";
4
- import { getCoreAuthManager as s, getConfig as o } from "./index.web55.js";
4
+ import { getCoreAuthManager as s, getConfig as o } from "./index.web48.js";
5
5
  async function c(e) {
6
6
  if (t.sendActionCallEvent({ name: "link_sms" }), !await s().isSignedIn())
7
7
  throw new Error("User must be signed in to link a phone number");
@@ -1,7 +1,7 @@
1
1
  import { initiateAuthentication as n } from "@coinbase/cdp-api-client";
2
2
  import { Analytics as t } from "./index.web2.js";
3
3
  import "./index.web3.js";
4
- import { getCoreAuthManager as o, getConfig as a } from "./index.web55.js";
4
+ import { getCoreAuthManager as o, getConfig as a } from "./index.web48.js";
5
5
  async function c(e) {
6
6
  if (t.sendActionCallEvent({ name: "link_email" }), !await o().isSignedIn())
7
7
  throw new Error("User must be signed in to link an email");