@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.
- package/dist/esm/index.native.js +15 -13
- package/dist/esm/index.native10.js +1 -1
- package/dist/esm/index.native11.js +1 -1
- package/dist/esm/index.native12.js +1 -1
- package/dist/esm/index.native122.js +1 -1
- package/dist/esm/index.native123.js +1 -1
- package/dist/esm/index.native125.js +6 -6
- package/dist/esm/index.native13.js +1 -1
- package/dist/esm/index.native14.js +1 -1
- package/dist/esm/index.native155.js +1 -1
- package/dist/esm/index.native16.js +1 -1
- package/dist/esm/index.native162.js +20 -4
- package/dist/esm/index.native163.js +10 -21
- package/dist/esm/index.native164.js +19 -9
- package/dist/esm/index.native165.js +89 -15
- package/dist/esm/index.native166.js +19 -92
- package/dist/esm/index.native167.js +115 -18
- package/dist/esm/index.native168.js +5 -118
- package/dist/esm/index.native17.js +1 -1
- package/dist/esm/index.native172.js +38 -7
- package/dist/esm/index.native174.js +67 -375
- package/dist/esm/index.native175.js +34 -835
- package/dist/esm/index.native176.js +20 -38
- package/dist/esm/index.native177.js +8 -2
- package/dist/esm/index.native178.js +2 -70
- package/dist/esm/index.native179.js +373 -30
- package/dist/esm/index.native18.js +1 -1
- package/dist/esm/index.native180.js +835 -20
- package/dist/esm/index.native182.js +18 -2
- package/dist/esm/index.native183.js +28 -109
- package/dist/esm/index.native184.js +8 -2
- package/dist/esm/index.native185.js +11 -18
- package/dist/esm/index.native186.js +13 -28
- package/dist/esm/index.native187.js +10 -8
- package/dist/esm/index.native188.js +17 -11
- package/dist/esm/index.native189.js +80 -12
- package/dist/esm/index.native19.js +1 -1
- package/dist/esm/index.native190.js +2 -10
- package/dist/esm/index.native191.js +108 -16
- package/dist/esm/index.native192.js +2 -81
- package/dist/esm/index.native194.js +2 -2
- package/dist/esm/index.native195.js +2 -2
- package/dist/esm/index.native196.js +2 -2
- package/dist/esm/index.native20.js +1 -1
- package/dist/esm/index.native21.js +1 -1
- package/dist/esm/index.native22.js +1 -1
- package/dist/esm/index.native23.js +1 -1
- package/dist/esm/index.native24.js +1 -1
- package/dist/esm/index.native25.js +1 -1
- package/dist/esm/index.native26.js +1 -1
- package/dist/esm/index.native28.js +1 -1
- package/dist/esm/index.native29.js +1 -1
- package/dist/esm/index.native3.js +1 -1
- package/dist/esm/index.native30.js +1 -1
- package/dist/esm/index.native31.js +1 -1
- package/dist/esm/index.native32.js +1 -1
- package/dist/esm/index.native33.js +1 -1
- package/dist/esm/index.native37.js +1 -1
- package/dist/esm/index.native39.js +1 -1
- package/dist/esm/index.native4.js +1 -1
- package/dist/esm/index.native46.js +27 -31
- package/dist/esm/index.native47.js +31 -27
- package/dist/esm/index.native49.js +1 -1
- package/dist/esm/index.native5.js +1 -1
- package/dist/esm/index.native50.js +1 -1
- package/dist/esm/index.native60.js +1 -1
- package/dist/esm/index.native69.js +3 -3
- package/dist/esm/index.native72.js +1 -1
- package/dist/esm/index.native73.js +1 -1
- package/dist/esm/index.native74.js +1 -1
- package/dist/esm/index.native78.js +377 -2
- package/dist/esm/index.native79.js +29 -2
- package/dist/esm/index.native80.js +26 -374
- package/dist/esm/index.native81.js +2 -29
- package/dist/esm/index.native82.js +2 -29
- package/dist/esm/index.native9.js +1 -1
- package/dist/esm/index.web.js +9 -7
- package/dist/esm/index.web10.js +2 -2
- package/dist/esm/index.web11.js +2 -2
- package/dist/esm/index.web12.js +2 -2
- package/dist/esm/index.web13.js +1 -1
- package/dist/esm/index.web15.js +1 -1
- package/dist/esm/index.web154.js +1 -1
- package/dist/esm/index.web16.js +1 -1
- package/dist/esm/index.web17.js +1 -1
- package/dist/esm/index.web171.js +38 -7
- package/dist/esm/index.web173.js +67 -375
- package/dist/esm/index.web174.js +34 -835
- package/dist/esm/index.web175.js +20 -38
- package/dist/esm/index.web176.js +8 -2
- package/dist/esm/index.web177.js +2 -70
- package/dist/esm/index.web178.js +373 -30
- package/dist/esm/index.web179.js +835 -20
- package/dist/esm/index.web18.js +1 -1
- package/dist/esm/index.web19.js +1 -1
- package/dist/esm/index.web193.js +2 -2
- package/dist/esm/index.web194.js +2 -2
- package/dist/esm/index.web195.js +2 -2
- package/dist/esm/index.web20.js +2 -2
- package/dist/esm/index.web21.js +2 -2
- package/dist/esm/index.web22.js +2 -2
- package/dist/esm/index.web23.js +2 -2
- package/dist/esm/index.web24.js +2 -2
- package/dist/esm/index.web25.js +2 -2
- package/dist/esm/index.web27.js +1 -1
- package/dist/esm/index.web28.js +2 -2
- package/dist/esm/index.web29.js +2 -2
- package/dist/esm/index.web3.js +1 -1
- package/dist/esm/index.web30.js +3 -3
- package/dist/esm/index.web31.js +2 -2
- package/dist/esm/index.web32.js +2 -2
- package/dist/esm/index.web36.js +1 -1
- package/dist/esm/index.web38.js +2 -2
- package/dist/esm/index.web47.js +1 -1
- package/dist/esm/index.web48.js +27 -31
- package/dist/esm/index.web49.js +32 -3
- package/dist/esm/index.web5.js +1 -1
- package/dist/esm/index.web50.js +3 -9
- package/dist/esm/index.web51.js +8 -64
- package/dist/esm/index.web52.js +47 -70
- package/dist/esm/index.web53.js +87 -23
- package/dist/esm/index.web54.js +23 -17
- package/dist/esm/index.web55.js +16 -26
- package/dist/esm/index.web62.js +1 -1
- package/dist/esm/index.web70.js +1 -1
- package/dist/esm/index.web8.js +1 -1
- package/dist/esm/index.web9.js +7 -7
- package/dist/native/index.native.js +15 -13
- package/dist/native/index.native10.js +1 -1
- package/dist/native/index.native11.js +1 -1
- package/dist/native/index.native12.js +1 -1
- package/dist/native/index.native122.js +1 -1
- package/dist/native/index.native123.js +1 -1
- package/dist/native/index.native125.js +6 -6
- package/dist/native/index.native13.js +1 -1
- package/dist/native/index.native14.js +1 -1
- package/dist/native/index.native155.js +1 -1
- package/dist/native/index.native16.js +1 -1
- package/dist/native/index.native162.js +20 -4
- package/dist/native/index.native163.js +10 -21
- package/dist/native/index.native164.js +19 -9
- package/dist/native/index.native165.js +89 -15
- package/dist/native/index.native166.js +19 -92
- package/dist/native/index.native167.js +115 -18
- package/dist/native/index.native168.js +5 -118
- package/dist/native/index.native17.js +1 -1
- package/dist/native/index.native172.js +38 -7
- package/dist/native/index.native174.js +67 -375
- package/dist/native/index.native175.js +34 -835
- package/dist/native/index.native176.js +20 -38
- package/dist/native/index.native177.js +8 -2
- package/dist/native/index.native178.js +2 -70
- package/dist/native/index.native179.js +373 -30
- package/dist/native/index.native18.js +1 -1
- package/dist/native/index.native180.js +835 -20
- package/dist/native/index.native182.js +18 -2
- package/dist/native/index.native183.js +28 -109
- package/dist/native/index.native184.js +8 -2
- package/dist/native/index.native185.js +11 -18
- package/dist/native/index.native186.js +13 -28
- package/dist/native/index.native187.js +10 -8
- package/dist/native/index.native188.js +17 -11
- package/dist/native/index.native189.js +80 -12
- package/dist/native/index.native19.js +1 -1
- package/dist/native/index.native190.js +2 -10
- package/dist/native/index.native191.js +108 -16
- package/dist/native/index.native192.js +2 -81
- package/dist/native/index.native194.js +2 -2
- package/dist/native/index.native195.js +2 -2
- package/dist/native/index.native196.js +2 -2
- package/dist/native/index.native20.js +1 -1
- package/dist/native/index.native21.js +1 -1
- package/dist/native/index.native22.js +1 -1
- package/dist/native/index.native23.js +1 -1
- package/dist/native/index.native24.js +1 -1
- package/dist/native/index.native25.js +1 -1
- package/dist/native/index.native26.js +1 -1
- package/dist/native/index.native28.js +1 -1
- package/dist/native/index.native29.js +1 -1
- package/dist/native/index.native3.js +1 -1
- package/dist/native/index.native30.js +1 -1
- package/dist/native/index.native31.js +1 -1
- package/dist/native/index.native32.js +1 -1
- package/dist/native/index.native33.js +1 -1
- package/dist/native/index.native37.js +1 -1
- package/dist/native/index.native39.js +1 -1
- package/dist/native/index.native4.js +1 -1
- package/dist/native/index.native46.js +27 -31
- package/dist/native/index.native47.js +31 -27
- package/dist/native/index.native49.js +1 -1
- package/dist/native/index.native5.js +1 -1
- package/dist/native/index.native50.js +1 -1
- package/dist/native/index.native60.js +1 -1
- package/dist/native/index.native69.js +3 -3
- package/dist/native/index.native72.js +1 -1
- package/dist/native/index.native73.js +1 -1
- package/dist/native/index.native74.js +1 -1
- package/dist/native/index.native78.js +377 -2
- package/dist/native/index.native79.js +29 -2
- package/dist/native/index.native80.js +26 -374
- package/dist/native/index.native81.js +2 -29
- package/dist/native/index.native82.js +2 -29
- package/dist/native/index.native9.js +1 -1
- package/dist/native-types/index.d.ts +1 -0
- package/dist/native-types/index.native.d.ts +1 -0
- package/dist/native-types/index.web.d.ts +1 -0
- package/dist/native-types/version.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.native.d.ts +1 -0
- package/dist/types/index.web.d.ts +1 -0
- package/dist/types/version.d.ts +1 -1
- package/dist/web/index.web.js +9 -7
- package/dist/web/index.web10.js +2 -2
- package/dist/web/index.web11.js +2 -2
- package/dist/web/index.web12.js +2 -2
- package/dist/web/index.web13.js +1 -1
- package/dist/web/index.web15.js +1 -1
- package/dist/web/index.web154.js +1 -1
- package/dist/web/index.web16.js +1 -1
- package/dist/web/index.web17.js +1 -1
- package/dist/web/index.web171.js +38 -7
- package/dist/web/index.web173.js +67 -375
- package/dist/web/index.web174.js +34 -835
- package/dist/web/index.web175.js +20 -38
- package/dist/web/index.web176.js +8 -2
- package/dist/web/index.web177.js +2 -70
- package/dist/web/index.web178.js +373 -30
- package/dist/web/index.web179.js +835 -20
- package/dist/web/index.web18.js +1 -1
- package/dist/web/index.web19.js +1 -1
- package/dist/web/index.web193.js +2 -2
- package/dist/web/index.web194.js +2 -2
- package/dist/web/index.web195.js +2 -2
- package/dist/web/index.web20.js +2 -2
- package/dist/web/index.web21.js +2 -2
- package/dist/web/index.web22.js +2 -2
- package/dist/web/index.web23.js +2 -2
- package/dist/web/index.web24.js +2 -2
- package/dist/web/index.web25.js +2 -2
- package/dist/web/index.web27.js +1 -1
- package/dist/web/index.web28.js +2 -2
- package/dist/web/index.web29.js +2 -2
- package/dist/web/index.web3.js +1 -1
- package/dist/web/index.web30.js +3 -3
- package/dist/web/index.web31.js +2 -2
- package/dist/web/index.web32.js +2 -2
- package/dist/web/index.web36.js +1 -1
- package/dist/web/index.web38.js +2 -2
- package/dist/web/index.web47.js +1 -1
- package/dist/web/index.web48.js +27 -31
- package/dist/web/index.web49.js +32 -3
- package/dist/web/index.web5.js +1 -1
- package/dist/web/index.web50.js +3 -9
- package/dist/web/index.web51.js +8 -64
- package/dist/web/index.web52.js +47 -70
- package/dist/web/index.web53.js +87 -23
- package/dist/web/index.web54.js +23 -17
- package/dist/web/index.web55.js +16 -26
- package/dist/web/index.web62.js +1 -1
- package/dist/web/index.web70.js +1 -1
- package/dist/web/index.web8.js +1 -1
- package/dist/web/index.web9.js +7 -7
- package/dist/web-types/index.d.ts +1 -0
- package/dist/web-types/index.native.d.ts +1 -0
- package/dist/web-types/index.web.d.ts +1 -0
- package/dist/web-types/version.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,379 +1,31 @@
|
|
|
1
|
-
import "./index.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
3
|
+
s as __exports
|
|
31
4
|
};
|
|
@@ -1,31 +1,4 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
3
|
+
e as __exports
|
|
31
4
|
};
|
package/dist/esm/index.web.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
127
|
+
C as sendSolanaTransaction,
|
|
126
128
|
Or as sendSolanaUsdc,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
+
Ur as sendUsdc,
|
|
130
|
+
U as sendUserOperation,
|
|
129
131
|
y as signEvmHash,
|
|
130
132
|
k as signEvmMessage,
|
|
131
133
|
F as signEvmTransaction,
|
package/dist/esm/index.web10.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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 }) => {
|
package/dist/esm/index.web11.js
CHANGED
|
@@ -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.
|
|
5
|
-
import { getConfig as r, getCoreAuthManager as m } from "./index.
|
|
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
|
{
|
package/dist/esm/index.web12.js
CHANGED
|
@@ -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.
|
|
5
|
-
import { getConfig as r, getCoreAuthManager as m } from "./index.
|
|
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 }) => ({
|
package/dist/esm/index.web13.js
CHANGED
|
@@ -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.
|
|
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());
|
package/dist/esm/index.web15.js
CHANGED
|
@@ -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.
|
|
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");
|
package/dist/esm/index.web154.js
CHANGED
package/dist/esm/index.web16.js
CHANGED
|
@@ -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.
|
|
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");
|
package/dist/esm/index.web17.js
CHANGED
|
@@ -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.
|
|
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");
|