@coinbase/cdp-core 0.0.70 → 0.0.71
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/README.md +86 -29
- package/dist/esm/index.native10.js +69 -67
- package/dist/esm/index.native106.js +1 -1
- package/dist/esm/index.native107.js +1 -1
- package/dist/esm/index.native112.js +1 -1
- package/dist/esm/index.native113.js +7 -7
- package/dist/esm/index.native119.js +3 -3
- package/dist/esm/index.native124.js +8 -8
- package/dist/esm/index.native131.js +4 -4
- package/dist/esm/index.native133.js +4 -4
- package/dist/esm/index.native136.js +7 -7
- package/dist/esm/index.native140.js +2 -2
- package/dist/esm/index.native145.js +1 -1
- package/dist/esm/index.native146.js +6 -32
- package/dist/esm/index.native147.js +32 -6
- package/dist/esm/index.native148.js +2 -79
- package/dist/esm/index.native149.js +108 -3
- package/dist/esm/index.native15.js +18 -18
- package/dist/esm/index.native150.js +2 -2
- package/dist/esm/index.native151.js +20 -108
- package/dist/esm/index.native152.js +10 -2
- package/dist/esm/index.native153.js +19 -20
- package/dist/esm/index.native154.js +93 -9
- package/dist/esm/index.native155.js +19 -18
- package/dist/esm/index.native156.js +105 -81
- package/dist/esm/index.native157.js +78 -20
- package/dist/esm/index.native158.js +4 -118
- package/dist/esm/index.native159.js +7 -38
- package/dist/esm/index.native161.js +375 -67
- package/dist/esm/index.native162.js +835 -34
- package/dist/esm/index.native163.js +38 -20
- package/dist/esm/index.native164.js +2 -8
- package/dist/esm/index.native165.js +70 -2
- package/dist/esm/index.native166.js +30 -373
- package/dist/esm/index.native167.js +20 -832
- package/dist/esm/index.native168.js +1 -1
- package/dist/esm/index.native171.js +1 -1
- package/dist/esm/index.native177.js +1 -1
- package/dist/esm/index.native179.js +2 -2
- package/dist/esm/index.native180.js +2 -2
- package/dist/esm/index.native181.js +2 -2
- package/dist/esm/index.native21.js +17 -18
- package/dist/esm/index.native22.js +26 -23
- package/dist/esm/index.native23.js +18 -17
- package/dist/esm/index.native3.js +1 -1
- package/dist/esm/index.native30.js +24 -24
- package/dist/esm/index.native33.js +1 -1
- package/dist/esm/index.native40.js +19 -14
- package/dist/esm/index.native44.js +13 -0
- package/dist/esm/index.native48.js +7 -7
- package/dist/esm/index.native49.js +8 -30
- package/dist/esm/index.native50.js +3 -3
- package/dist/esm/index.native57.js +2 -2
- package/dist/esm/index.native64.js +3 -3
- package/dist/esm/index.native65.js +2 -31
- package/dist/esm/index.native66.js +65 -28
- package/dist/esm/index.native67.js +367 -2
- package/dist/esm/index.native68.js +14 -63
- package/dist/esm/index.native69.js +18 -360
- package/dist/esm/index.native70.js +47 -13
- package/dist/esm/index.native71.js +28 -22
- package/dist/esm/index.native72.js +28 -50
- package/dist/esm/index.native9.js +1 -1
- package/dist/esm/index.web100.js +38 -5
- package/dist/esm/index.web101.js +6 -10
- package/dist/esm/index.web102.js +32 -14
- package/dist/esm/index.web103.js +8 -22
- package/dist/esm/index.web104.js +10 -50
- package/dist/esm/index.web105.js +11 -376
- package/dist/esm/index.web106.js +13 -28
- package/dist/esm/index.web107.js +18 -28
- package/dist/esm/index.web108.js +8 -2
- package/dist/esm/index.web109.js +5 -66
- package/dist/esm/index.web110.js +10 -364
- package/dist/esm/index.web111.js +55 -2
- package/dist/esm/index.web112.js +10 -20
- package/dist/esm/index.web113.js +2 -5
- package/dist/esm/index.web114.js +44 -47
- package/dist/esm/index.web115.js +13 -19
- package/dist/esm/index.web116.js +4 -79
- package/dist/esm/index.web117.js +2 -104
- package/dist/esm/index.web118.js +4 -32
- package/dist/esm/index.web119.js +18 -6
- package/dist/esm/index.web120.js +7 -54
- package/dist/esm/index.web121.js +3 -10
- package/dist/esm/index.web122.js +24 -2
- package/dist/esm/index.web123.js +9 -45
- package/dist/esm/index.web124.js +7 -13
- package/dist/esm/index.web125.js +71 -4
- package/dist/esm/index.web126.js +18 -3
- package/dist/esm/index.web127.js +3 -4
- package/dist/esm/index.web128.js +4 -18
- package/dist/esm/index.web129.js +4 -7
- package/dist/esm/index.web130.js +4 -3
- package/dist/esm/index.web131.js +15 -19
- package/dist/esm/index.web132.js +52 -8
- package/dist/esm/index.web133.js +16 -6
- package/dist/esm/index.web134.js +21 -69
- package/dist/esm/index.web135.js +8 -18
- package/dist/esm/index.web136.js +30 -3
- package/dist/esm/index.web137.js +7 -4
- package/dist/esm/index.web138.js +20 -4
- package/dist/esm/index.web139.js +5 -5
- package/dist/esm/index.web14.js +18 -18
- package/dist/esm/index.web140.js +44 -16
- package/dist/esm/index.web141.js +15 -47
- package/dist/esm/index.web142.js +19 -17
- package/dist/esm/index.web143.js +79 -23
- package/dist/esm/index.web144.js +103 -8
- package/dist/esm/index.web145.js +31 -29
- package/dist/esm/index.web146.js +6 -7
- package/dist/esm/index.web147.js +18 -18
- package/dist/esm/index.web148.js +10 -39
- package/dist/esm/index.web149.js +20 -2
- package/dist/esm/index.web150.js +94 -70
- package/dist/esm/index.web151.js +21 -35
- package/dist/esm/index.web152.js +116 -19
- package/dist/esm/index.web153.js +2 -8
- package/dist/esm/index.web154.js +109 -2
- package/dist/esm/index.web155.js +2 -378
- package/dist/esm/index.web156.js +78 -832
- package/dist/esm/index.web157.js +3 -78
- package/dist/esm/index.web158.js +39 -5
- package/dist/esm/index.web159.js +2 -21
- package/dist/esm/index.web160.js +70 -10
- package/dist/esm/index.web161.js +34 -19
- package/dist/esm/index.web162.js +19 -92
- package/dist/esm/index.web163.js +8 -21
- package/dist/esm/index.web164.js +2 -118
- package/dist/esm/index.web165.js +378 -2
- package/dist/esm/index.web166.js +836 -2
- package/dist/esm/index.web167.js +47 -2
- package/dist/esm/index.web168.js +5 -2
- package/dist/esm/index.web169.js +17 -108
- package/dist/esm/index.web170.js +28 -2
- package/dist/esm/index.web171.js +7 -46
- package/dist/esm/index.web172.js +11 -15
- package/dist/esm/index.web173.js +11 -16
- package/dist/esm/index.web174.js +10 -28
- package/dist/esm/index.web175.js +17 -8
- package/dist/esm/index.web176.js +79 -9
- package/dist/esm/index.web177.js +14 -12
- package/dist/esm/index.web178.js +2 -10
- package/dist/esm/index.web179.js +2 -17
- package/dist/esm/index.web180.js +2 -81
- package/dist/esm/index.web2.js +2 -2
- package/dist/esm/index.web20.js +17 -18
- package/dist/esm/index.web21.js +26 -23
- package/dist/esm/index.web22.js +18 -17
- package/dist/esm/index.web29.js +24 -24
- package/dist/esm/index.web3.js +1 -1
- package/dist/esm/index.web32.js +1 -1
- package/dist/esm/index.web38.js +19 -14
- package/dist/esm/index.web42.js +13 -0
- package/dist/esm/index.web45.js +12 -12
- package/dist/esm/index.web47.js +7 -7
- package/dist/esm/index.web48.js +8 -30
- package/dist/esm/index.web49.js +3 -3
- package/dist/esm/index.web52.js +2 -2
- package/dist/esm/index.web56.js +3 -3
- package/dist/esm/index.web63.js +15 -16
- package/dist/esm/index.web64.js +19 -42
- package/dist/esm/index.web65.js +50 -13
- package/dist/esm/index.web66.js +376 -55
- package/dist/esm/index.web67.js +28 -6
- package/dist/esm/index.web68.js +28 -21
- package/dist/esm/index.web69.js +2 -14
- package/dist/esm/index.web70.js +65 -3
- package/dist/esm/index.web71.js +364 -3
- package/dist/esm/index.web72.js +16 -33
- package/dist/esm/index.web73.js +43 -10
- package/dist/esm/index.web74.js +13 -4
- package/dist/esm/index.web75.js +52 -25
- package/dist/esm/index.web76.js +6 -6
- package/dist/esm/index.web77.js +20 -41
- package/dist/esm/index.web78.js +11 -55
- package/dist/esm/index.web79.js +3 -127
- package/dist/esm/index.web8.js +1 -1
- package/dist/esm/index.web80.js +3 -23
- package/dist/esm/index.web81.js +32 -10
- package/dist/esm/index.web82.js +9 -101
- package/dist/esm/index.web83.js +4 -6
- package/dist/esm/index.web84.js +29 -3
- package/dist/esm/index.web85.js +6 -14
- package/dist/esm/index.web86.js +40 -32
- package/dist/esm/index.web87.js +53 -76
- package/dist/esm/index.web88.js +128 -2
- package/dist/esm/index.web89.js +24 -2
- package/dist/esm/index.web9.js +69 -67
- package/dist/esm/index.web90.js +11 -11
- package/dist/esm/index.web91.js +99 -32
- package/dist/esm/index.web92.js +6 -6
- package/dist/esm/index.web93.js +3 -35
- package/dist/esm/index.web94.js +14 -8
- package/dist/esm/index.web95.js +33 -9
- package/dist/esm/index.web96.js +78 -11
- package/dist/esm/index.web97.js +2 -14
- package/dist/esm/index.web98.js +2 -19
- package/dist/esm/index.web99.js +12 -5
- package/dist/native/index.native10.js +69 -67
- package/dist/native/index.native106.js +1 -1
- package/dist/native/index.native107.js +1 -1
- package/dist/native/index.native112.js +1 -1
- package/dist/native/index.native113.js +7 -7
- package/dist/native/index.native119.js +3 -3
- package/dist/native/index.native124.js +8 -8
- package/dist/native/index.native131.js +4 -4
- package/dist/native/index.native133.js +4 -4
- package/dist/native/index.native136.js +7 -7
- package/dist/native/index.native140.js +2 -2
- package/dist/native/index.native145.js +1 -1
- package/dist/native/index.native146.js +6 -32
- package/dist/native/index.native147.js +32 -6
- package/dist/native/index.native148.js +2 -79
- package/dist/native/index.native149.js +108 -3
- package/dist/native/index.native15.js +18 -18
- package/dist/native/index.native150.js +2 -2
- package/dist/native/index.native151.js +20 -108
- package/dist/native/index.native152.js +10 -2
- package/dist/native/index.native153.js +19 -20
- package/dist/native/index.native154.js +93 -9
- package/dist/native/index.native155.js +19 -18
- package/dist/native/index.native156.js +105 -81
- package/dist/native/index.native157.js +78 -20
- package/dist/native/index.native158.js +4 -118
- package/dist/native/index.native159.js +7 -38
- package/dist/native/index.native161.js +375 -67
- package/dist/native/index.native162.js +835 -34
- package/dist/native/index.native163.js +38 -20
- package/dist/native/index.native164.js +2 -8
- package/dist/native/index.native165.js +70 -2
- package/dist/native/index.native166.js +30 -373
- package/dist/native/index.native167.js +20 -832
- package/dist/native/index.native168.js +1 -1
- package/dist/native/index.native171.js +1 -1
- package/dist/native/index.native177.js +1 -1
- package/dist/native/index.native179.js +2 -2
- package/dist/native/index.native180.js +2 -2
- package/dist/native/index.native181.js +2 -2
- package/dist/native/index.native21.js +17 -18
- package/dist/native/index.native22.js +26 -23
- package/dist/native/index.native23.js +18 -17
- package/dist/native/index.native3.js +1 -1
- package/dist/native/index.native30.js +24 -24
- package/dist/native/index.native33.js +1 -1
- package/dist/native/index.native40.js +19 -14
- package/dist/native/index.native44.js +13 -0
- package/dist/native/index.native48.js +7 -7
- package/dist/native/index.native49.js +8 -30
- package/dist/native/index.native50.js +3 -3
- package/dist/native/index.native57.js +2 -2
- package/dist/native/index.native64.js +3 -3
- package/dist/native/index.native65.js +2 -31
- package/dist/native/index.native66.js +65 -28
- package/dist/native/index.native67.js +367 -2
- package/dist/native/index.native68.js +14 -63
- package/dist/native/index.native69.js +18 -360
- package/dist/native/index.native70.js +47 -13
- package/dist/native/index.native71.js +28 -22
- package/dist/native/index.native72.js +28 -50
- package/dist/native/index.native9.js +1 -1
- package/dist/native-types/auth/toAuthState.d.ts +4 -1
- package/dist/native-types/shared/validators.d.ts +0 -4
- package/dist/native-types/types.d.ts +5 -2
- package/dist/native-types/version.d.ts +1 -1
- package/dist/types/auth/toAuthState.d.ts +4 -1
- package/dist/types/shared/validators.d.ts +0 -4
- package/dist/types/types.d.ts +5 -2
- package/dist/types/version.d.ts +1 -1
- package/dist/web/index.web100.js +38 -5
- package/dist/web/index.web101.js +6 -10
- package/dist/web/index.web102.js +32 -14
- package/dist/web/index.web103.js +8 -22
- package/dist/web/index.web104.js +10 -50
- package/dist/web/index.web105.js +11 -376
- package/dist/web/index.web106.js +13 -28
- package/dist/web/index.web107.js +18 -28
- package/dist/web/index.web108.js +8 -2
- package/dist/web/index.web109.js +5 -66
- package/dist/web/index.web110.js +10 -364
- package/dist/web/index.web111.js +55 -2
- package/dist/web/index.web112.js +10 -20
- package/dist/web/index.web113.js +2 -5
- package/dist/web/index.web114.js +44 -47
- package/dist/web/index.web115.js +13 -19
- package/dist/web/index.web116.js +4 -79
- package/dist/web/index.web117.js +2 -104
- package/dist/web/index.web118.js +4 -32
- package/dist/web/index.web119.js +18 -6
- package/dist/web/index.web120.js +7 -54
- package/dist/web/index.web121.js +3 -10
- package/dist/web/index.web122.js +24 -2
- package/dist/web/index.web123.js +9 -45
- package/dist/web/index.web124.js +7 -13
- package/dist/web/index.web125.js +71 -4
- package/dist/web/index.web126.js +18 -3
- package/dist/web/index.web127.js +3 -4
- package/dist/web/index.web128.js +4 -18
- package/dist/web/index.web129.js +4 -7
- package/dist/web/index.web130.js +4 -3
- package/dist/web/index.web131.js +15 -19
- package/dist/web/index.web132.js +52 -8
- package/dist/web/index.web133.js +16 -6
- package/dist/web/index.web134.js +21 -69
- package/dist/web/index.web135.js +8 -18
- package/dist/web/index.web136.js +30 -3
- package/dist/web/index.web137.js +7 -4
- package/dist/web/index.web138.js +20 -4
- package/dist/web/index.web139.js +5 -5
- package/dist/web/index.web14.js +18 -18
- package/dist/web/index.web140.js +44 -16
- package/dist/web/index.web141.js +15 -47
- package/dist/web/index.web142.js +19 -17
- package/dist/web/index.web143.js +79 -23
- package/dist/web/index.web144.js +103 -8
- package/dist/web/index.web145.js +31 -29
- package/dist/web/index.web146.js +6 -7
- package/dist/web/index.web147.js +18 -18
- package/dist/web/index.web148.js +10 -39
- package/dist/web/index.web149.js +20 -2
- package/dist/web/index.web150.js +94 -70
- package/dist/web/index.web151.js +21 -35
- package/dist/web/index.web152.js +116 -19
- package/dist/web/index.web153.js +2 -8
- package/dist/web/index.web154.js +109 -2
- package/dist/web/index.web155.js +2 -378
- package/dist/web/index.web156.js +78 -832
- package/dist/web/index.web157.js +3 -78
- package/dist/web/index.web158.js +39 -5
- package/dist/web/index.web159.js +2 -21
- package/dist/web/index.web160.js +70 -10
- package/dist/web/index.web161.js +34 -19
- package/dist/web/index.web162.js +19 -92
- package/dist/web/index.web163.js +8 -21
- package/dist/web/index.web164.js +2 -118
- package/dist/web/index.web165.js +378 -2
- package/dist/web/index.web166.js +836 -2
- package/dist/web/index.web167.js +47 -2
- package/dist/web/index.web168.js +5 -2
- package/dist/web/index.web169.js +17 -108
- package/dist/web/index.web170.js +28 -2
- package/dist/web/index.web171.js +7 -46
- package/dist/web/index.web172.js +11 -15
- package/dist/web/index.web173.js +11 -16
- package/dist/web/index.web174.js +10 -28
- package/dist/web/index.web175.js +17 -8
- package/dist/web/index.web176.js +79 -9
- package/dist/web/index.web177.js +14 -12
- package/dist/web/index.web178.js +2 -10
- package/dist/web/index.web179.js +2 -17
- package/dist/web/index.web180.js +2 -81
- package/dist/web/index.web2.js +2 -2
- package/dist/web/index.web20.js +17 -18
- package/dist/web/index.web21.js +26 -23
- package/dist/web/index.web22.js +18 -17
- package/dist/web/index.web29.js +24 -24
- package/dist/web/index.web3.js +1 -1
- package/dist/web/index.web32.js +1 -1
- package/dist/web/index.web38.js +19 -14
- package/dist/web/index.web42.js +13 -0
- package/dist/web/index.web45.js +12 -12
- package/dist/web/index.web47.js +7 -7
- package/dist/web/index.web48.js +8 -30
- package/dist/web/index.web49.js +3 -3
- package/dist/web/index.web52.js +2 -2
- package/dist/web/index.web56.js +3 -3
- package/dist/web/index.web63.js +15 -16
- package/dist/web/index.web64.js +19 -42
- package/dist/web/index.web65.js +50 -13
- package/dist/web/index.web66.js +376 -55
- package/dist/web/index.web67.js +28 -6
- package/dist/web/index.web68.js +28 -21
- package/dist/web/index.web69.js +2 -14
- package/dist/web/index.web70.js +65 -3
- package/dist/web/index.web71.js +364 -3
- package/dist/web/index.web72.js +16 -33
- package/dist/web/index.web73.js +43 -10
- package/dist/web/index.web74.js +13 -4
- package/dist/web/index.web75.js +52 -25
- package/dist/web/index.web76.js +6 -6
- package/dist/web/index.web77.js +20 -41
- package/dist/web/index.web78.js +11 -55
- package/dist/web/index.web79.js +3 -127
- package/dist/web/index.web8.js +1 -1
- package/dist/web/index.web80.js +3 -23
- package/dist/web/index.web81.js +32 -10
- package/dist/web/index.web82.js +9 -101
- package/dist/web/index.web83.js +4 -6
- package/dist/web/index.web84.js +29 -3
- package/dist/web/index.web85.js +6 -14
- package/dist/web/index.web86.js +40 -32
- package/dist/web/index.web87.js +53 -76
- package/dist/web/index.web88.js +128 -2
- package/dist/web/index.web89.js +24 -2
- package/dist/web/index.web9.js +69 -67
- package/dist/web/index.web90.js +11 -11
- package/dist/web/index.web91.js +99 -32
- package/dist/web/index.web92.js +6 -6
- package/dist/web/index.web93.js +3 -35
- package/dist/web/index.web94.js +14 -8
- package/dist/web/index.web95.js +33 -9
- package/dist/web/index.web96.js +78 -11
- package/dist/web/index.web97.js +2 -14
- package/dist/web/index.web98.js +2 -19
- package/dist/web/index.web99.js +12 -5
- package/dist/web-types/auth/toAuthState.d.ts +4 -1
- package/dist/web-types/shared/validators.d.ts +0 -4
- package/dist/web-types/types.d.ts +5 -2
- package/dist/web-types/version.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import { createEndUserEvmAccount as
|
|
2
|
-
import { Analytics as
|
|
1
|
+
import { createEndUserEvmAccount as u } from "@coinbase/cdp-api-client";
|
|
2
|
+
import { Analytics as i } from "./index.native2.js";
|
|
3
3
|
import "./index.native3.js";
|
|
4
4
|
import { toAuthStateUser as m } from "./index.native40.js";
|
|
5
|
-
import { InternalError as
|
|
6
|
-
import {
|
|
7
|
-
import { getCoreAuthManager as
|
|
8
|
-
async function
|
|
9
|
-
|
|
10
|
-
const t =
|
|
5
|
+
import { InternalError as A } from "./index.native31.js";
|
|
6
|
+
import { validateUserAuthState as d } from "./index.native49.js";
|
|
7
|
+
import { getCoreAuthManager as h, getConfig as f } from "./index.native35.js";
|
|
8
|
+
async function U() {
|
|
9
|
+
i.sendActionCallEvent({ name: "create_evm_eoa_account" });
|
|
10
|
+
const t = h(), { user: e, authState: a } = d(
|
|
11
11
|
t.getUser(),
|
|
12
|
-
t.getAuthState()
|
|
13
|
-
|
|
14
|
-
), n = await c(l().projectId, o.userId, {
|
|
12
|
+
t.getAuthState()
|
|
13
|
+
), n = await u(f().projectId, e.userId, {
|
|
15
14
|
walletSecretId: await t.getWalletSecretId()
|
|
16
|
-
}),
|
|
15
|
+
}), r = m(n);
|
|
17
16
|
await t.setAuthState({
|
|
18
17
|
...a,
|
|
19
|
-
user:
|
|
18
|
+
user: r
|
|
20
19
|
});
|
|
21
|
-
const
|
|
22
|
-
if (!
|
|
23
|
-
throw new
|
|
20
|
+
const c = new Set(e.evmAccounts || []), o = r.evmAccounts?.find((s) => !c.has(s));
|
|
21
|
+
if (!o)
|
|
22
|
+
throw new A(
|
|
24
23
|
"EVM EOA account was not created. Check the network log for more details."
|
|
25
24
|
);
|
|
26
|
-
return
|
|
25
|
+
return o;
|
|
27
26
|
}
|
|
28
27
|
export {
|
|
29
|
-
|
|
28
|
+
U as createEvmEoaAccount
|
|
30
29
|
};
|
|
@@ -1,36 +1,39 @@
|
|
|
1
|
-
import { createEndUserEvmSmartAccount as
|
|
2
|
-
import { Analytics as
|
|
1
|
+
import { createEndUserEvmSmartAccount as u } from "@coinbase/cdp-api-client";
|
|
2
|
+
import { Analytics as d } from "./index.native2.js";
|
|
3
3
|
import "./index.native3.js";
|
|
4
|
-
import { toAuthStateUser as
|
|
5
|
-
import { getCoreAuthManager as
|
|
6
|
-
import { createEvmEoaAccount as
|
|
7
|
-
import { InternalError as
|
|
8
|
-
import {
|
|
9
|
-
async function
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
), c = await (async () => e.evmAccounts?.[0] ?? p())(), s = await m(
|
|
4
|
+
import { toAuthStateUser as A } from "./index.native40.js";
|
|
5
|
+
import { getCoreAuthManager as S, getConfig as f } from "./index.native35.js";
|
|
6
|
+
import { createEvmEoaAccount as h } from "./index.native21.js";
|
|
7
|
+
import { InternalError as p } from "./index.native31.js";
|
|
8
|
+
import { validateUserAuthState as g } from "./index.native49.js";
|
|
9
|
+
async function C(a) {
|
|
10
|
+
d.sendActionCallEvent({ name: "create_evm_smart_account" });
|
|
11
|
+
const e = S(), { user: r, authState: s } = g(
|
|
12
|
+
e.getUser(),
|
|
13
|
+
e.getAuthState()
|
|
14
|
+
), c = await (async () => r.evmAccountObjects?.[0]?.address ?? h())(), m = await u(
|
|
16
15
|
f().projectId,
|
|
17
|
-
|
|
16
|
+
r.userId,
|
|
18
17
|
{
|
|
19
18
|
owner: c,
|
|
20
|
-
enableSpendPermissions:
|
|
19
|
+
enableSpendPermissions: a?.enableSpendPermissions ?? !1
|
|
21
20
|
}
|
|
22
|
-
),
|
|
23
|
-
await
|
|
24
|
-
...
|
|
25
|
-
user:
|
|
21
|
+
), n = A(m);
|
|
22
|
+
await e.setAuthState({
|
|
23
|
+
...s,
|
|
24
|
+
user: n
|
|
26
25
|
});
|
|
27
|
-
const
|
|
26
|
+
const i = new Set(
|
|
27
|
+
r.evmSmartAccountObjects?.map((t) => t.address) || []
|
|
28
|
+
), o = n.evmSmartAccountObjects?.find(
|
|
29
|
+
(t) => !i.has(t.address)
|
|
30
|
+
)?.address;
|
|
28
31
|
if (!o)
|
|
29
|
-
throw new
|
|
32
|
+
throw new p(
|
|
30
33
|
"EVM Smart Account was not created. Check the network log for more details."
|
|
31
34
|
);
|
|
32
35
|
return o;
|
|
33
36
|
}
|
|
34
37
|
export {
|
|
35
|
-
|
|
38
|
+
C as createEvmSmartAccount
|
|
36
39
|
};
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { createEndUserSolanaAccount as
|
|
2
|
-
import { Analytics as
|
|
1
|
+
import { createEndUserSolanaAccount as u } from "@coinbase/cdp-api-client";
|
|
2
|
+
import { Analytics as i } from "./index.native2.js";
|
|
3
3
|
import "./index.native3.js";
|
|
4
|
-
import { toAuthStateUser as
|
|
5
|
-
import { InternalError as
|
|
6
|
-
import {
|
|
7
|
-
import { getCoreAuthManager as
|
|
4
|
+
import { toAuthStateUser as l } from "./index.native40.js";
|
|
5
|
+
import { InternalError as m } from "./index.native31.js";
|
|
6
|
+
import { validateUserAuthState as A } from "./index.native49.js";
|
|
7
|
+
import { getCoreAuthManager as d, getConfig as h } from "./index.native35.js";
|
|
8
8
|
async function C() {
|
|
9
|
-
|
|
10
|
-
const t =
|
|
9
|
+
i.sendActionCallEvent({ name: "create_solana_account" });
|
|
10
|
+
const t = d(), { user: e, authState: r } = A(
|
|
11
11
|
t.getUser(),
|
|
12
|
-
t.getAuthState()
|
|
13
|
-
|
|
14
|
-
), n = await c(A().projectId, o.userId, {
|
|
12
|
+
t.getAuthState()
|
|
13
|
+
), n = await u(h().projectId, e.userId, {
|
|
15
14
|
walletSecretId: await t.getWalletSecretId()
|
|
16
|
-
}),
|
|
15
|
+
}), a = l(n);
|
|
17
16
|
await t.setAuthState({
|
|
18
17
|
...r,
|
|
19
|
-
user:
|
|
18
|
+
user: a
|
|
20
19
|
});
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
const c = new Set(e.solanaAccounts || []), o = a.solanaAccounts?.find(
|
|
21
|
+
(s) => !c.has(s)
|
|
22
|
+
);
|
|
23
|
+
if (!o)
|
|
24
|
+
throw new m(
|
|
24
25
|
"Solana account was not created. Check the network log for more details."
|
|
25
26
|
);
|
|
26
|
-
return
|
|
27
|
+
return o;
|
|
27
28
|
}
|
|
28
29
|
export {
|
|
29
30
|
C as createSolanaAccount
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { __require as r } from "./index.
|
|
1
|
+
import { __require as r } from "./index.native159.js";
|
|
2
2
|
r();
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { hashTypedData as
|
|
2
|
-
import { getCurrentUserSync as
|
|
3
|
-
import { signEvmHash as
|
|
1
|
+
import { hashTypedData as c, serializeErc6492Signature as i, encodeFunctionData as u, pad as m, getTypesForEIP712Domain as d } from "viem";
|
|
2
|
+
import { getCurrentUserSync as g } from "./index.native14.js";
|
|
3
|
+
import { signEvmHash as A, signEvmTypedData as l, signEvmTransaction as f, signEvmMessage as h } from "./index.native10.js";
|
|
4
4
|
import "@coinbase/cdp-api-client";
|
|
5
5
|
import { COINBASE_SMART_WALLET_FACTORY_ADDRESS as y, COINBASE_SMART_WALLET_FACTORY_ABI as p } from "./index.native51.js";
|
|
6
6
|
import { signAndWrapTypedDataForSmartAccount as v } from "./index.native52.js";
|
|
7
7
|
import { toAccount as T } from "./index.native53.js";
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
if (!
|
|
8
|
+
function b(r) {
|
|
9
|
+
const n = g();
|
|
10
|
+
if (!n || !n.evmAccountObjects?.length && !n.evmSmartAccountObjects?.length)
|
|
11
11
|
throw new Error(
|
|
12
12
|
"No accounts found - user must be authenticated and have at least one EVM account or smart account"
|
|
13
13
|
);
|
|
14
|
-
const
|
|
15
|
-
if (!
|
|
16
|
-
throw new Error(`Cannot sign for address ${
|
|
14
|
+
const s = n.evmAccountObjects?.some((e) => e.address === r) ?? !1, o = n.evmSmartAccountObjects?.some((e) => e.address === r) ?? !1;
|
|
15
|
+
if (!s && !o)
|
|
16
|
+
throw new Error(`Cannot sign for address ${r} - not authorized for this account`);
|
|
17
17
|
return T({
|
|
18
|
-
address:
|
|
18
|
+
address: r,
|
|
19
19
|
/**
|
|
20
20
|
* Signs a message using CDP's message signing functionality.
|
|
21
21
|
* Supports string messages, hex strings, and byte arrays.
|
|
@@ -33,7 +33,7 @@ function x(n) {
|
|
|
33
33
|
else
|
|
34
34
|
throw new Error("Unsupported message format");
|
|
35
35
|
return (await h({
|
|
36
|
-
evmAccount:
|
|
36
|
+
evmAccount: r,
|
|
37
37
|
message: t
|
|
38
38
|
})).signature;
|
|
39
39
|
},
|
|
@@ -54,7 +54,7 @@ function x(n) {
|
|
|
54
54
|
chainId: e.chainId ?? 1
|
|
55
55
|
};
|
|
56
56
|
return e.gasPrice !== void 0 ? (t.maxFeePerGas = e.gasPrice, t.maxPriorityFeePerGas = e.gasPrice) : (t.maxFeePerGas = e.maxFeePerGas, t.maxPriorityFeePerGas = e.maxPriorityFeePerGas), (await f({
|
|
57
|
-
evmAccount:
|
|
57
|
+
evmAccount: r,
|
|
58
58
|
transaction: t
|
|
59
59
|
})).signedTransaction;
|
|
60
60
|
},
|
|
@@ -67,19 +67,19 @@ function x(n) {
|
|
|
67
67
|
* @returns The signature as a hex string
|
|
68
68
|
*/
|
|
69
69
|
async signTypedData(e) {
|
|
70
|
-
if (
|
|
70
|
+
if (o) {
|
|
71
71
|
const t = await v({
|
|
72
|
-
smartAccount:
|
|
73
|
-
ownerAddress:
|
|
74
|
-
hash:
|
|
72
|
+
smartAccount: r,
|
|
73
|
+
ownerAddress: n.evmAccountObjects?.[0]?.address,
|
|
74
|
+
hash: c(e),
|
|
75
75
|
chainId: Number(e.domain.chainId)
|
|
76
76
|
});
|
|
77
|
-
return
|
|
77
|
+
return i({
|
|
78
78
|
address: y,
|
|
79
79
|
data: u({
|
|
80
80
|
abi: p,
|
|
81
81
|
functionName: "createAccount",
|
|
82
|
-
args: [[m(
|
|
82
|
+
args: [[m(n.evmAccountObjects?.[0]?.address)], 0n]
|
|
83
83
|
}),
|
|
84
84
|
signature: t.signature
|
|
85
85
|
});
|
|
@@ -87,7 +87,7 @@ function x(n) {
|
|
|
87
87
|
const t = {
|
|
88
88
|
domain: e.domain,
|
|
89
89
|
types: {
|
|
90
|
-
EIP712Domain:
|
|
90
|
+
EIP712Domain: d({
|
|
91
91
|
domain: e.domain
|
|
92
92
|
}),
|
|
93
93
|
...e.types
|
|
@@ -95,8 +95,8 @@ function x(n) {
|
|
|
95
95
|
primaryType: e.primaryType,
|
|
96
96
|
message: e.message
|
|
97
97
|
};
|
|
98
|
-
return (await
|
|
99
|
-
evmAccount:
|
|
98
|
+
return (await l({
|
|
99
|
+
evmAccount: r,
|
|
100
100
|
typedData: t
|
|
101
101
|
})).signature;
|
|
102
102
|
}
|
|
@@ -108,13 +108,13 @@ function x(n) {
|
|
|
108
108
|
* @returns The signature as a hex string
|
|
109
109
|
*/
|
|
110
110
|
async sign(e) {
|
|
111
|
-
return (await
|
|
112
|
-
evmAccount:
|
|
111
|
+
return (await A({
|
|
112
|
+
evmAccount: r,
|
|
113
113
|
hash: e.hash
|
|
114
114
|
})).signature;
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
export {
|
|
119
|
-
|
|
119
|
+
b as toViemAccount
|
|
120
120
|
};
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
import "@coinbase/cdp-api-client";
|
|
2
|
-
const
|
|
3
|
-
userId:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
const a = (t) => ({
|
|
3
|
+
userId: t.userId,
|
|
4
|
+
// Deprecated fields - keep for backward compatibility
|
|
5
|
+
evmAccounts: t.evmAccounts?.map((c) => c) ?? [],
|
|
6
|
+
evmSmartAccounts: t.evmSmartAccounts?.map((c) => c) ?? [],
|
|
7
|
+
solanaAccounts: t.solanaAccounts?.map((c) => c) ?? [],
|
|
8
|
+
// New account object fields
|
|
9
|
+
evmAccountObjects: t.evmAccountObjects,
|
|
10
|
+
evmSmartAccountObjects: t.evmSmartAccountObjects,
|
|
11
|
+
solanaAccountObjects: t.solanaAccountObjects,
|
|
12
|
+
authenticationMethods: t.authenticationMethods.reduce((c, o) => (c[o.type] = o, c), {}),
|
|
13
|
+
mfaMethods: t.mfaMethods
|
|
14
|
+
}), s = (t, c, o) => {
|
|
15
|
+
const e = new Date(c).getTime();
|
|
11
16
|
return {
|
|
12
|
-
accessToken:
|
|
13
|
-
expiresAt:
|
|
14
|
-
user:
|
|
17
|
+
accessToken: t,
|
|
18
|
+
expiresAt: e,
|
|
19
|
+
user: a(o)
|
|
15
20
|
};
|
|
16
21
|
};
|
|
17
22
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
23
|
+
s as toAuthState,
|
|
24
|
+
a as toAuthStateUser
|
|
20
25
|
};
|
|
@@ -5,6 +5,19 @@ const t = "0x0000000000000000000000000000000000000000", s = {
|
|
|
5
5
|
evmAccounts: [t],
|
|
6
6
|
evmSmartAccounts: [],
|
|
7
7
|
solanaAccounts: ["5fNfvyp5f3BB9T24s6bC8QjDXuJqvU8WjziJpEQi9PWT"],
|
|
8
|
+
evmAccountObjects: [
|
|
9
|
+
{
|
|
10
|
+
address: t,
|
|
11
|
+
createdAt: "2024-01-01T00:00:00Z"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
evmSmartAccountObjects: [],
|
|
15
|
+
solanaAccountObjects: [
|
|
16
|
+
{
|
|
17
|
+
address: "5fNfvyp5f3BB9T24s6bC8QjDXuJqvU8WjziJpEQi9PWT",
|
|
18
|
+
createdAt: "2024-01-01T00:00:00Z"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
8
21
|
authenticationMethods: {
|
|
9
22
|
email: {
|
|
10
23
|
type: "email",
|
|
@@ -2,9 +2,9 @@ import { getTransactionEncoder as u, getTransactionDecoder as f, address as g }
|
|
|
2
2
|
import { getCurrentUserSync as l } from "./index.native14.js";
|
|
3
3
|
import { signSolanaTransaction as m } from "./index.native10.js";
|
|
4
4
|
import { encodeBase64 as T, decodeBase64 as h } from "./index.native34.js";
|
|
5
|
-
function
|
|
6
|
-
const
|
|
7
|
-
if (!
|
|
5
|
+
function A(n) {
|
|
6
|
+
const t = l();
|
|
7
|
+
if (!t || !t.solanaAccountObjects?.length)
|
|
8
8
|
throw new Error(
|
|
9
9
|
"No accounts found. User must be authenticated and have at least one Solana account"
|
|
10
10
|
);
|
|
@@ -12,7 +12,7 @@ function E(n) {
|
|
|
12
12
|
return {
|
|
13
13
|
address: g(n),
|
|
14
14
|
signTransactions: async (c) => {
|
|
15
|
-
const
|
|
15
|
+
const o = [];
|
|
16
16
|
for (const s of c) {
|
|
17
17
|
const i = new Uint8Array(r.encode(s)), { signedTransaction: d } = await m({
|
|
18
18
|
solanaAccount: n,
|
|
@@ -20,16 +20,16 @@ function E(n) {
|
|
|
20
20
|
}), e = a.decode(h(d)).signatures[n];
|
|
21
21
|
if (!e)
|
|
22
22
|
throw new Error("Wallet did not return a signature for the selected account.");
|
|
23
|
-
|
|
23
|
+
o.push(
|
|
24
24
|
Object.freeze({
|
|
25
25
|
[n]: e
|
|
26
26
|
})
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
|
-
return
|
|
29
|
+
return o;
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
A as toTransactionSigner
|
|
35
35
|
};
|
|
@@ -1,33 +1,11 @@
|
|
|
1
|
-
import { ValidationError as
|
|
2
|
-
function
|
|
3
|
-
if (!
|
|
4
|
-
throw new
|
|
5
|
-
if (!
|
|
6
|
-
throw new
|
|
7
|
-
|
|
8
|
-
case "eoa":
|
|
9
|
-
if (a.evmAccounts && a.evmAccounts.length > 0)
|
|
10
|
-
throw new t("User already has an EVM EOA account");
|
|
11
|
-
break;
|
|
12
|
-
case "smart":
|
|
13
|
-
if (a.evmSmartAccounts && a.evmSmartAccounts.length > 0)
|
|
14
|
-
throw new t("User already has an EVM Smart Account");
|
|
15
|
-
break;
|
|
16
|
-
case "solana":
|
|
17
|
-
if (a.solanaAccounts && a.solanaAccounts.length > 0)
|
|
18
|
-
throw new t("User already has a Solana account");
|
|
19
|
-
break;
|
|
20
|
-
}
|
|
21
|
-
return { user: a, authState: n };
|
|
22
|
-
}
|
|
23
|
-
function s(a, n) {
|
|
24
|
-
if (!a)
|
|
25
|
-
throw new t("User must be signed in");
|
|
26
|
-
if (!n)
|
|
27
|
-
throw new e("No auth state found");
|
|
28
|
-
return { user: a, authState: n };
|
|
1
|
+
import { ValidationError as n, InternalError as o } from "./index.native31.js";
|
|
2
|
+
function i(r, t) {
|
|
3
|
+
if (!r)
|
|
4
|
+
throw new n("User must be signed in");
|
|
5
|
+
if (!t)
|
|
6
|
+
throw new o("No auth state found");
|
|
7
|
+
return { user: r, authState: t };
|
|
29
8
|
}
|
|
30
9
|
export {
|
|
31
|
-
|
|
32
|
-
c as validateUserCanCreateAccount
|
|
10
|
+
i as validateUserAuthState
|
|
33
11
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CompactSign as i } from "./index.
|
|
2
|
-
import { JWTInvalid as r } from "./index.
|
|
3
|
-
import { JWTClaimsBuilder as n } from "./index.
|
|
1
|
+
import { CompactSign as i } from "./index.native68.js";
|
|
2
|
+
import { JWTInvalid as r } from "./index.native69.js";
|
|
3
|
+
import { JWTClaimsBuilder as n } from "./index.native70.js";
|
|
4
4
|
class d {
|
|
5
5
|
#s;
|
|
6
6
|
#t;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DisconnectedError as l, from as d } from "./index.native64.js";
|
|
2
2
|
import { validateRequest as h, EIP1193ProviderError as m, STANDARD_ERROR_CODES as _ } from "./index.native33.js";
|
|
3
|
-
import { createEOAHandlers as p } from "./index.
|
|
4
|
-
import { createSmartAccountHandlers as g } from "./index.
|
|
3
|
+
import { createEOAHandlers as p } from "./index.native71.js";
|
|
4
|
+
import { createSmartAccountHandlers as g } from "./index.native72.js";
|
|
5
5
|
import "viem";
|
|
6
6
|
import "zustand";
|
|
7
7
|
import "@coinbase/cdp-api-client";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./index.
|
|
2
|
-
import { BaseError as P } from "./index.
|
|
3
|
-
import { parse as y, parseError as j, InternalError as g } from "./index.
|
|
1
|
+
import "./index.native65.js";
|
|
2
|
+
import { BaseError as P } from "./index.native66.js";
|
|
3
|
+
import { parse as y, parseError as j, InternalError as g } from "./index.native67.js";
|
|
4
4
|
class u extends Error {
|
|
5
5
|
constructor(e, t) {
|
|
6
6
|
super(t), Object.defineProperty(this, "name", {
|
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { handleGetCallsStatus as a } from "./index.native121.js";
|
|
4
|
-
import { handleGetCapabilities as n } from "./index.native122.js";
|
|
5
|
-
import { handlePersonalSign as o } from "./index.native123.js";
|
|
6
|
-
import { handleRequestAccounts as r } from "./index.native124.js";
|
|
7
|
-
import { handleSendCalls as i } from "./index.native125.js";
|
|
8
|
-
import { handleSendTransaction as l } from "./index.native126.js";
|
|
9
|
-
import { handleSignTypedData as h } from "./index.native127.js";
|
|
10
|
-
import { handleChainId as s } from "./index.native128.js";
|
|
11
|
-
import { handleDisconnect as m } from "./index.native129.js";
|
|
12
|
-
import { handleSwitchEthereumChain as d } from "./index.native130.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
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
D as createEOAHandlers
|
|
31
|
-
};
|
|
1
|
+
import { __require as e } from "./index.native149.js";
|
|
2
|
+
e();
|
|
@@ -1,31 +1,68 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
import { getVersion as n } from "./index.native112.js";
|
|
2
|
+
class s extends Error {
|
|
3
|
+
constructor(r, e = {}) {
|
|
4
|
+
const a = (() => {
|
|
5
|
+
if (e.cause instanceof s) {
|
|
6
|
+
if (e.cause.details)
|
|
7
|
+
return e.cause.details;
|
|
8
|
+
if (e.cause.shortMessage)
|
|
9
|
+
return e.cause.shortMessage;
|
|
10
|
+
}
|
|
11
|
+
return e.cause && "details" in e.cause && typeof e.cause.details == "string" ? e.cause.details : e.cause?.message ? e.cause.message : e.details;
|
|
12
|
+
})(), u = e.cause instanceof s && e.cause.docsPath || e.docsPath, c = `https://oxlib.sh${u ?? ""}`, l = [
|
|
13
|
+
r || "An error occurred.",
|
|
14
|
+
...e.metaMessages ? ["", ...e.metaMessages] : [],
|
|
15
|
+
...a || u ? [
|
|
16
|
+
"",
|
|
17
|
+
a ? `Details: ${a}` : void 0,
|
|
18
|
+
u ? `See: ${c}` : void 0
|
|
19
|
+
] : []
|
|
20
|
+
].filter((d) => typeof d == "string").join(`
|
|
21
|
+
`);
|
|
22
|
+
super(l, e.cause ? { cause: e.cause } : void 0), Object.defineProperty(this, "details", {
|
|
23
|
+
enumerable: !0,
|
|
24
|
+
configurable: !0,
|
|
25
|
+
writable: !0,
|
|
26
|
+
value: void 0
|
|
27
|
+
}), Object.defineProperty(this, "docs", {
|
|
28
|
+
enumerable: !0,
|
|
29
|
+
configurable: !0,
|
|
30
|
+
writable: !0,
|
|
31
|
+
value: void 0
|
|
32
|
+
}), Object.defineProperty(this, "docsPath", {
|
|
33
|
+
enumerable: !0,
|
|
34
|
+
configurable: !0,
|
|
35
|
+
writable: !0,
|
|
36
|
+
value: void 0
|
|
37
|
+
}), Object.defineProperty(this, "shortMessage", {
|
|
38
|
+
enumerable: !0,
|
|
39
|
+
configurable: !0,
|
|
40
|
+
writable: !0,
|
|
41
|
+
value: void 0
|
|
42
|
+
}), Object.defineProperty(this, "cause", {
|
|
43
|
+
enumerable: !0,
|
|
44
|
+
configurable: !0,
|
|
45
|
+
writable: !0,
|
|
46
|
+
value: void 0
|
|
47
|
+
}), Object.defineProperty(this, "name", {
|
|
48
|
+
enumerable: !0,
|
|
49
|
+
configurable: !0,
|
|
50
|
+
writable: !0,
|
|
51
|
+
value: "BaseError"
|
|
52
|
+
}), Object.defineProperty(this, "version", {
|
|
53
|
+
enumerable: !0,
|
|
54
|
+
configurable: !0,
|
|
55
|
+
writable: !0,
|
|
56
|
+
value: `ox@${n()}`
|
|
57
|
+
}), this.cause = e.cause, this.details = a, this.docs = c, this.docsPath = u, this.shortMessage = r;
|
|
58
|
+
}
|
|
59
|
+
walk(r) {
|
|
60
|
+
return i(this, r);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function i(t, r) {
|
|
64
|
+
return r?.(t) ? t : t && typeof t == "object" && "cause" in t && t.cause ? i(t.cause, r) : r ? null : t;
|
|
28
65
|
}
|
|
29
66
|
export {
|
|
30
|
-
|
|
67
|
+
s as BaseError
|
|
31
68
|
};
|