@coinbase/cdp-core 0.0.42 → 0.0.43
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 +39 -0
- package/dist/esm/index.native.js +29 -26
- package/dist/esm/index.native10.js +156 -113
- package/dist/esm/index.native100.js +9 -117
- package/dist/esm/index.native101.js +19 -9
- package/dist/esm/index.native102.js +90 -75
- package/dist/esm/index.native103.js +21 -5
- package/dist/esm/index.native104.js +118 -18
- package/dist/esm/index.native105.js +5 -28
- package/dist/esm/index.native106.js +11 -6
- package/dist/esm/index.native107.js +35 -10
- package/dist/esm/index.native108.js +40 -11
- package/dist/esm/index.native109.js +16 -8
- package/dist/esm/index.native11.js +115 -21
- package/dist/esm/index.native110.js +28 -17
- package/dist/esm/index.native111.js +6 -79
- package/dist/esm/index.native112.js +9 -11
- package/dist/esm/index.native113.js +13 -36
- package/dist/esm/index.native114.js +8 -40
- package/dist/esm/index.native115.js +13 -75
- package/dist/esm/index.native116.js +83 -0
- package/dist/esm/index.native117.js +81 -0
- package/dist/esm/index.native12.js +29 -28
- package/dist/esm/index.native13.js +32 -3
- package/dist/esm/index.native14.js +3 -16
- package/dist/esm/index.native15.js +15 -17
- package/dist/esm/index.native16.js +15 -116
- package/dist/esm/index.native17.js +116 -12
- package/dist/esm/index.native18.js +15 -42
- package/dist/esm/index.native19.js +42 -20
- package/dist/esm/index.native2.js +25 -10
- package/dist/esm/index.native20.js +20 -172
- package/dist/esm/index.native21.js +170 -39
- package/dist/esm/index.native22.js +42 -47
- package/dist/esm/index.native23.js +40 -71
- package/dist/esm/index.native24.js +48 -25
- package/dist/esm/index.native25.js +65 -153
- package/dist/esm/index.native26.js +24 -46
- package/dist/esm/index.native27.js +943 -243
- package/dist/esm/index.native28.js +2 -56
- package/dist/esm/index.native29.js +49 -950
- package/dist/esm/index.native30.js +28 -2
- package/dist/esm/index.native31.js +158 -48
- package/dist/esm/index.native32.js +47 -27
- package/dist/esm/index.native33.js +247 -13
- package/dist/esm/index.native34.js +56 -23
- package/dist/esm/index.native35.js +13 -47
- package/dist/esm/index.native36.js +23 -2
- package/dist/esm/index.native37.js +51 -2
- package/dist/esm/index.native38.js +2 -9
- package/dist/esm/index.native39.js +2 -18
- package/dist/esm/index.native40.js +8 -45
- package/dist/esm/index.native41.js +17 -13
- package/dist/esm/index.native42.js +40 -50
- package/dist/esm/index.native43.js +13 -6
- package/dist/esm/index.native44.js +54 -20
- package/dist/esm/index.native45.js +6 -11
- package/dist/esm/index.native46.js +21 -3
- package/dist/esm/index.native47.js +11 -3
- package/dist/esm/index.native48.js +3 -34
- package/dist/esm/index.native49.js +3 -12
- package/dist/esm/index.native50.js +34 -4
- package/dist/esm/index.native51.js +11 -27
- package/dist/esm/index.native52.js +4 -6
- package/dist/esm/index.native53.js +28 -24
- package/dist/esm/index.native54.js +6 -16
- package/dist/esm/index.native55.js +22 -52
- package/dist/esm/index.native56.js +16 -23
- package/dist/esm/index.native57.js +53 -10
- package/dist/esm/index.native58.js +23 -27
- package/dist/esm/index.native59.js +9 -40
- package/dist/esm/index.native6.js +136 -136
- package/dist/esm/index.native60.js +26 -54
- package/dist/esm/index.native61.js +42 -127
- package/dist/esm/index.native62.js +53 -10
- package/dist/esm/index.native63.js +125 -102
- package/dist/esm/index.native64.js +12 -6
- package/dist/esm/index.native65.js +105 -3
- package/dist/esm/index.native66.js +6 -14
- package/dist/esm/index.native67.js +3 -43
- package/dist/esm/index.native68.js +14 -78
- package/dist/esm/index.native69.js +43 -2
- package/dist/esm/index.native7.js +35 -217
- package/dist/esm/index.native70.js +79 -2
- package/dist/esm/index.native71.js +2 -13
- package/dist/esm/index.native72.js +2 -38
- package/dist/esm/index.native73.js +11 -5
- package/dist/esm/index.native74.js +32 -29
- package/dist/esm/index.native75.js +6 -8
- package/dist/esm/index.native76.js +33 -9
- package/dist/esm/index.native77.js +8 -11
- package/dist/esm/index.native78.js +10 -13
- package/dist/esm/index.native79.js +11 -18
- package/dist/esm/index.native8.js +213 -115
- package/dist/esm/index.native80.js +13 -5
- package/dist/esm/index.native81.js +19 -5
- package/dist/esm/index.native82.js +5 -10
- package/dist/esm/index.native83.js +5 -55
- package/dist/esm/index.native84.js +10 -10
- package/dist/esm/index.native85.js +55 -2
- package/dist/esm/index.native86.js +11 -45
- package/dist/esm/index.native87.js +2 -14
- package/dist/esm/index.native88.js +45 -2
- package/dist/esm/index.native89.js +13 -20
- package/dist/esm/index.native9.js +115 -155
- package/dist/esm/index.native90.js +2 -20
- package/dist/esm/index.native91.js +20 -79
- package/dist/esm/index.native92.js +18 -102
- package/dist/esm/index.native93.js +79 -32
- package/dist/esm/index.native94.js +103 -6
- package/dist/esm/index.native95.js +30 -18
- package/dist/esm/index.native96.js +7 -10
- package/dist/esm/index.native97.js +77 -18
- package/dist/esm/index.native98.js +9 -93
- package/dist/esm/index.native99.js +20 -20
- package/dist/esm/index.web.js +26 -23
- package/dist/esm/index.web10.js +115 -21
- package/dist/esm/index.web100.js +20 -9
- package/dist/esm/index.web101.js +112 -73
- package/dist/esm/index.web102.js +10 -5
- package/dist/esm/index.web103.js +77 -16
- package/dist/esm/index.web104.js +5 -28
- package/dist/esm/index.web105.js +18 -8
- package/dist/esm/index.web106.js +26 -9
- package/dist/esm/index.web107.js +8 -13
- package/dist/esm/index.web108.js +11 -10
- package/dist/esm/index.web109.js +11 -15
- package/dist/esm/index.web11.js +29 -28
- package/dist/esm/index.web110.js +9 -80
- package/dist/esm/index.web111.js +17 -13
- package/dist/esm/index.web112.js +77 -32
- package/dist/esm/index.web113.js +12 -41
- package/dist/esm/index.web114.js +33 -76
- package/dist/esm/index.web115.js +44 -0
- package/dist/esm/index.web116.js +81 -0
- package/dist/esm/index.web12.js +32 -3
- package/dist/esm/index.web13.js +3 -16
- package/dist/esm/index.web14.js +15 -17
- package/dist/esm/index.web15.js +15 -116
- package/dist/esm/index.web16.js +116 -12
- package/dist/esm/index.web17.js +15 -42
- package/dist/esm/index.web18.js +42 -20
- package/dist/esm/index.web19.js +20 -172
- package/dist/esm/index.web20.js +170 -39
- package/dist/esm/index.web21.js +42 -47
- package/dist/esm/index.web22.js +40 -71
- package/dist/esm/index.web23.js +48 -25
- package/dist/esm/index.web24.js +65 -153
- package/dist/esm/index.web25.js +24 -46
- package/dist/esm/index.web26.js +943 -243
- package/dist/esm/index.web27.js +2 -56
- package/dist/esm/index.web28.js +49 -950
- package/dist/esm/index.web29.js +28 -2
- package/dist/esm/index.web3.js +18 -5
- package/dist/esm/index.web30.js +158 -48
- package/dist/esm/index.web31.js +47 -27
- package/dist/esm/index.web32.js +247 -13
- package/dist/esm/index.web33.js +56 -23
- package/dist/esm/index.web34.js +13 -47
- package/dist/esm/index.web35.js +23 -2
- package/dist/esm/index.web36.js +51 -2
- package/dist/esm/index.web37.js +2 -9
- package/dist/esm/index.web38.js +2 -18
- package/dist/esm/index.web39.js +8 -45
- package/dist/esm/index.web40.js +17 -13
- package/dist/esm/index.web41.js +40 -50
- package/dist/esm/index.web42.js +13 -6
- package/dist/esm/index.web43.js +54 -20
- package/dist/esm/index.web44.js +6 -11
- package/dist/esm/index.web45.js +21 -3
- package/dist/esm/index.web46.js +11 -3
- package/dist/esm/index.web47.js +3 -34
- package/dist/esm/index.web48.js +3 -12
- package/dist/esm/index.web49.js +34 -4
- package/dist/esm/index.web5.js +136 -136
- package/dist/esm/index.web50.js +11 -27
- package/dist/esm/index.web51.js +4 -6
- package/dist/esm/index.web52.js +28 -24
- package/dist/esm/index.web53.js +6 -16
- package/dist/esm/index.web54.js +22 -52
- package/dist/esm/index.web55.js +16 -23
- package/dist/esm/index.web56.js +53 -10
- package/dist/esm/index.web57.js +23 -27
- package/dist/esm/index.web58.js +9 -40
- package/dist/esm/index.web59.js +26 -54
- package/dist/esm/index.web6.js +35 -217
- package/dist/esm/index.web60.js +42 -127
- package/dist/esm/index.web61.js +53 -10
- package/dist/esm/index.web62.js +125 -102
- package/dist/esm/index.web63.js +12 -6
- package/dist/esm/index.web64.js +105 -3
- package/dist/esm/index.web65.js +6 -14
- package/dist/esm/index.web66.js +3 -43
- package/dist/esm/index.web67.js +14 -78
- package/dist/esm/index.web68.js +43 -2
- package/dist/esm/index.web69.js +79 -2
- package/dist/esm/index.web7.js +213 -115
- package/dist/esm/index.web70.js +2 -13
- package/dist/esm/index.web71.js +2 -38
- package/dist/esm/index.web72.js +11 -5
- package/dist/esm/index.web73.js +32 -29
- package/dist/esm/index.web74.js +6 -8
- package/dist/esm/index.web75.js +33 -9
- package/dist/esm/index.web76.js +8 -11
- package/dist/esm/index.web77.js +10 -13
- package/dist/esm/index.web78.js +11 -18
- package/dist/esm/index.web79.js +13 -5
- package/dist/esm/index.web8.js +115 -155
- package/dist/esm/index.web80.js +19 -5
- package/dist/esm/index.web81.js +5 -10
- package/dist/esm/index.web82.js +5 -55
- package/dist/esm/index.web83.js +10 -10
- package/dist/esm/index.web84.js +55 -2
- package/dist/esm/index.web85.js +11 -45
- package/dist/esm/index.web86.js +2 -14
- package/dist/esm/index.web87.js +45 -2
- package/dist/esm/index.web88.js +13 -20
- package/dist/esm/index.web89.js +2 -20
- package/dist/esm/index.web9.js +156 -113
- package/dist/esm/index.web90.js +20 -79
- package/dist/esm/index.web91.js +18 -102
- package/dist/esm/index.web92.js +79 -32
- package/dist/esm/index.web93.js +103 -6
- package/dist/esm/index.web94.js +30 -18
- package/dist/esm/index.web95.js +7 -10
- package/dist/esm/index.web96.js +20 -19
- package/dist/esm/index.web97.js +9 -93
- package/dist/esm/index.web98.js +18 -19
- package/dist/esm/index.web99.js +81 -105
- package/dist/native/index.native.js +29 -26
- package/dist/native/index.native10.js +156 -113
- package/dist/native/index.native100.js +9 -117
- package/dist/native/index.native101.js +19 -9
- package/dist/native/index.native102.js +90 -75
- package/dist/native/index.native103.js +21 -5
- package/dist/native/index.native104.js +118 -18
- package/dist/native/index.native105.js +5 -28
- package/dist/native/index.native106.js +11 -6
- package/dist/native/index.native107.js +35 -10
- package/dist/native/index.native108.js +40 -11
- package/dist/native/index.native109.js +16 -8
- package/dist/native/index.native11.js +115 -21
- package/dist/native/index.native110.js +28 -17
- package/dist/native/index.native111.js +6 -79
- package/dist/native/index.native112.js +9 -11
- package/dist/native/index.native113.js +13 -36
- package/dist/native/index.native114.js +8 -40
- package/dist/native/index.native115.js +13 -75
- package/dist/native/index.native116.js +83 -0
- package/dist/native/index.native117.js +81 -0
- package/dist/native/index.native12.js +29 -28
- package/dist/native/index.native13.js +32 -3
- package/dist/native/index.native14.js +3 -16
- package/dist/native/index.native15.js +15 -17
- package/dist/native/index.native16.js +15 -116
- package/dist/native/index.native17.js +116 -12
- package/dist/native/index.native18.js +15 -42
- package/dist/native/index.native19.js +42 -20
- package/dist/native/index.native2.js +25 -10
- package/dist/native/index.native20.js +20 -172
- package/dist/native/index.native21.js +170 -39
- package/dist/native/index.native22.js +42 -47
- package/dist/native/index.native23.js +40 -71
- package/dist/native/index.native24.js +48 -25
- package/dist/native/index.native25.js +65 -153
- package/dist/native/index.native26.js +24 -46
- package/dist/native/index.native27.js +943 -243
- package/dist/native/index.native28.js +2 -56
- package/dist/native/index.native29.js +49 -950
- package/dist/native/index.native30.js +28 -2
- package/dist/native/index.native31.js +158 -48
- package/dist/native/index.native32.js +47 -27
- package/dist/native/index.native33.js +247 -13
- package/dist/native/index.native34.js +56 -23
- package/dist/native/index.native35.js +13 -47
- package/dist/native/index.native36.js +23 -2
- package/dist/native/index.native37.js +51 -2
- package/dist/native/index.native38.js +2 -9
- package/dist/native/index.native39.js +2 -18
- package/dist/native/index.native40.js +8 -45
- package/dist/native/index.native41.js +17 -13
- package/dist/native/index.native42.js +40 -50
- package/dist/native/index.native43.js +13 -6
- package/dist/native/index.native44.js +54 -20
- package/dist/native/index.native45.js +6 -11
- package/dist/native/index.native46.js +21 -3
- package/dist/native/index.native47.js +11 -3
- package/dist/native/index.native48.js +3 -34
- package/dist/native/index.native49.js +3 -12
- package/dist/native/index.native50.js +34 -4
- package/dist/native/index.native51.js +11 -27
- package/dist/native/index.native52.js +4 -6
- package/dist/native/index.native53.js +28 -24
- package/dist/native/index.native54.js +6 -16
- package/dist/native/index.native55.js +22 -52
- package/dist/native/index.native56.js +16 -23
- package/dist/native/index.native57.js +53 -10
- package/dist/native/index.native58.js +23 -27
- package/dist/native/index.native59.js +9 -40
- package/dist/native/index.native6.js +136 -136
- package/dist/native/index.native60.js +26 -54
- package/dist/native/index.native61.js +42 -127
- package/dist/native/index.native62.js +53 -10
- package/dist/native/index.native63.js +125 -102
- package/dist/native/index.native64.js +12 -6
- package/dist/native/index.native65.js +105 -3
- package/dist/native/index.native66.js +6 -14
- package/dist/native/index.native67.js +3 -43
- package/dist/native/index.native68.js +14 -78
- package/dist/native/index.native69.js +43 -2
- package/dist/native/index.native7.js +35 -217
- package/dist/native/index.native70.js +79 -2
- package/dist/native/index.native71.js +2 -13
- package/dist/native/index.native72.js +2 -38
- package/dist/native/index.native73.js +11 -5
- package/dist/native/index.native74.js +32 -29
- package/dist/native/index.native75.js +6 -8
- package/dist/native/index.native76.js +33 -9
- package/dist/native/index.native77.js +8 -11
- package/dist/native/index.native78.js +10 -13
- package/dist/native/index.native79.js +11 -18
- package/dist/native/index.native8.js +213 -115
- package/dist/native/index.native80.js +13 -5
- package/dist/native/index.native81.js +19 -5
- package/dist/native/index.native82.js +5 -10
- package/dist/native/index.native83.js +5 -55
- package/dist/native/index.native84.js +10 -10
- package/dist/native/index.native85.js +55 -2
- package/dist/native/index.native86.js +11 -45
- package/dist/native/index.native87.js +2 -14
- package/dist/native/index.native88.js +45 -2
- package/dist/native/index.native89.js +13 -20
- package/dist/native/index.native9.js +115 -155
- package/dist/native/index.native90.js +2 -20
- package/dist/native/index.native91.js +20 -79
- package/dist/native/index.native92.js +18 -102
- package/dist/native/index.native93.js +79 -32
- package/dist/native/index.native94.js +103 -6
- package/dist/native/index.native95.js +30 -18
- package/dist/native/index.native96.js +7 -10
- package/dist/native/index.native97.js +77 -18
- package/dist/native/index.native98.js +9 -93
- package/dist/native/index.native99.js +20 -20
- package/dist/native-types/actions/createSpendPermission.d.ts +13 -0
- package/dist/native-types/errors.d.ts +3 -0
- package/dist/native-types/index.d.ts +2 -0
- package/dist/native-types/index.native.d.ts +2 -0
- package/dist/native-types/index.web.d.ts +2 -0
- package/dist/native-types/platform/types.d.ts +1 -0
- package/dist/native-types/spend-permissions/toSpendPermission.d.ts +3 -0
- package/dist/native-types/spend-permissions/types.d.ts +21 -0
- package/dist/native-types/types.d.ts +7 -3
- package/dist/types/actions/createSpendPermission.d.ts +13 -0
- package/dist/types/errors.d.ts +3 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.native.d.ts +2 -0
- package/dist/types/index.web.d.ts +2 -0
- package/dist/types/platform/types.d.ts +1 -0
- package/dist/types/spend-permissions/toSpendPermission.d.ts +3 -0
- package/dist/types/spend-permissions/types.d.ts +21 -0
- package/dist/types/types.d.ts +7 -3
- package/dist/web/index.web.js +26 -23
- package/dist/web/index.web10.js +115 -21
- package/dist/web/index.web100.js +20 -9
- package/dist/web/index.web101.js +112 -73
- package/dist/web/index.web102.js +10 -5
- package/dist/web/index.web103.js +77 -16
- package/dist/web/index.web104.js +5 -28
- package/dist/web/index.web105.js +18 -8
- package/dist/web/index.web106.js +26 -9
- package/dist/web/index.web107.js +8 -13
- package/dist/web/index.web108.js +11 -10
- package/dist/web/index.web109.js +11 -15
- package/dist/web/index.web11.js +29 -28
- package/dist/web/index.web110.js +9 -80
- package/dist/web/index.web111.js +17 -13
- package/dist/web/index.web112.js +77 -32
- package/dist/web/index.web113.js +12 -41
- package/dist/web/index.web114.js +33 -76
- package/dist/web/index.web115.js +44 -0
- package/dist/web/index.web116.js +81 -0
- package/dist/web/index.web12.js +32 -3
- package/dist/web/index.web13.js +3 -16
- package/dist/web/index.web14.js +15 -17
- package/dist/web/index.web15.js +15 -116
- package/dist/web/index.web16.js +116 -12
- package/dist/web/index.web17.js +15 -42
- package/dist/web/index.web18.js +42 -20
- package/dist/web/index.web19.js +20 -172
- package/dist/web/index.web20.js +170 -39
- package/dist/web/index.web21.js +42 -47
- package/dist/web/index.web22.js +40 -71
- package/dist/web/index.web23.js +48 -25
- package/dist/web/index.web24.js +65 -153
- package/dist/web/index.web25.js +24 -46
- package/dist/web/index.web26.js +943 -243
- package/dist/web/index.web27.js +2 -56
- package/dist/web/index.web28.js +49 -950
- package/dist/web/index.web29.js +28 -2
- package/dist/web/index.web3.js +18 -5
- package/dist/web/index.web30.js +158 -48
- package/dist/web/index.web31.js +47 -27
- package/dist/web/index.web32.js +247 -13
- package/dist/web/index.web33.js +56 -23
- package/dist/web/index.web34.js +13 -47
- package/dist/web/index.web35.js +23 -2
- package/dist/web/index.web36.js +51 -2
- package/dist/web/index.web37.js +2 -9
- package/dist/web/index.web38.js +2 -18
- package/dist/web/index.web39.js +8 -45
- package/dist/web/index.web40.js +17 -13
- package/dist/web/index.web41.js +40 -50
- package/dist/web/index.web42.js +13 -6
- package/dist/web/index.web43.js +54 -20
- package/dist/web/index.web44.js +6 -11
- package/dist/web/index.web45.js +21 -3
- package/dist/web/index.web46.js +11 -3
- package/dist/web/index.web47.js +3 -34
- package/dist/web/index.web48.js +3 -12
- package/dist/web/index.web49.js +34 -4
- package/dist/web/index.web5.js +136 -136
- package/dist/web/index.web50.js +11 -27
- package/dist/web/index.web51.js +4 -6
- package/dist/web/index.web52.js +28 -24
- package/dist/web/index.web53.js +6 -16
- package/dist/web/index.web54.js +22 -52
- package/dist/web/index.web55.js +16 -23
- package/dist/web/index.web56.js +53 -10
- package/dist/web/index.web57.js +23 -27
- package/dist/web/index.web58.js +9 -40
- package/dist/web/index.web59.js +26 -54
- package/dist/web/index.web6.js +35 -217
- package/dist/web/index.web60.js +42 -127
- package/dist/web/index.web61.js +53 -10
- package/dist/web/index.web62.js +125 -102
- package/dist/web/index.web63.js +12 -6
- package/dist/web/index.web64.js +105 -3
- package/dist/web/index.web65.js +6 -14
- package/dist/web/index.web66.js +3 -43
- package/dist/web/index.web67.js +14 -78
- package/dist/web/index.web68.js +43 -2
- package/dist/web/index.web69.js +79 -2
- package/dist/web/index.web7.js +213 -115
- package/dist/web/index.web70.js +2 -13
- package/dist/web/index.web71.js +2 -38
- package/dist/web/index.web72.js +11 -5
- package/dist/web/index.web73.js +32 -29
- package/dist/web/index.web74.js +6 -8
- package/dist/web/index.web75.js +33 -9
- package/dist/web/index.web76.js +8 -11
- package/dist/web/index.web77.js +10 -13
- package/dist/web/index.web78.js +11 -18
- package/dist/web/index.web79.js +13 -5
- package/dist/web/index.web8.js +115 -155
- package/dist/web/index.web80.js +19 -5
- package/dist/web/index.web81.js +5 -10
- package/dist/web/index.web82.js +5 -55
- package/dist/web/index.web83.js +10 -10
- package/dist/web/index.web84.js +55 -2
- package/dist/web/index.web85.js +11 -45
- package/dist/web/index.web86.js +2 -14
- package/dist/web/index.web87.js +45 -2
- package/dist/web/index.web88.js +13 -20
- package/dist/web/index.web89.js +2 -20
- package/dist/web/index.web9.js +156 -113
- package/dist/web/index.web90.js +20 -79
- package/dist/web/index.web91.js +18 -102
- package/dist/web/index.web92.js +79 -32
- package/dist/web/index.web93.js +103 -6
- package/dist/web/index.web94.js +30 -18
- package/dist/web/index.web95.js +7 -10
- package/dist/web/index.web96.js +20 -19
- package/dist/web/index.web97.js +9 -93
- package/dist/web/index.web98.js +18 -19
- package/dist/web/index.web99.js +81 -105
- package/dist/web-types/actions/createSpendPermission.d.ts +13 -0
- package/dist/web-types/errors.d.ts +3 -0
- package/dist/web-types/index.d.ts +2 -0
- package/dist/web-types/index.native.d.ts +2 -0
- package/dist/web-types/index.web.d.ts +2 -0
- package/dist/web-types/platform/types.d.ts +1 -0
- package/dist/web-types/spend-permissions/toSpendPermission.d.ts +3 -0
- package/dist/web-types/spend-permissions/types.d.ts +21 -0
- package/dist/web-types/types.d.ts +7 -3
- package/package.json +4 -3
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { configureCdpApiClient as U, setAuthManager as T, initiateAuthentication as M, createEndUserEvmAccount as P, createEndUserEvmSmartAccount as y, createEndUserSolanaAccount as j, verifyEmailAuthentication as K, verifySmsAuthentication as
|
|
3
|
-
import { Keypair as
|
|
4
|
-
import
|
|
5
|
-
import { AuthManager as $ } from "./index.
|
|
6
|
-
import { toAuthState as g } from "./index.
|
|
7
|
-
import { withAuth as u } from "./index.
|
|
8
|
-
import { MockAuthManager as V } from "./index.
|
|
9
|
-
import { mockUser as
|
|
10
|
-
import { getPlatformServices as
|
|
11
|
-
import { isChainSupportedForCDPSends as q } from "./index.
|
|
12
|
-
import { getConfig as
|
|
1
|
+
import { b as m } from "./index.native14.js";
|
|
2
|
+
import { configureCdpApiClient as U, setAuthManager as T, initiateAuthentication as M, createEndUserEvmAccount as P, createEndUserEvmSmartAccount as y, createEndUserSolanaAccount as j, verifyEmailAuthentication as K, verifySmsAuthentication as O, signEvmHashWithEndUserAccount as x, signEvmTransactionWithEndUserAccount as b, signSolanaTransactionWithEndUserAccount as C, sendEvmTransactionWithEndUserAccount as W, sendSolanaTransactionWithEndUserAccount as H, signEvmMessageWithEndUserAccount as B, signSolanaMessageWithEndUserAccount as D, signEvmTypedDataWithEndUserAccount as _, sendUserOperationWithEndUserAccount as N, getUserOperationWithEndUserAccount as L, exportEndUserEvmAccount as z, exportEndUserSolanaAccount as F } from "@coinbase/cdp-api-client";
|
|
3
|
+
import { Keypair as l } from "@solana/web3.js";
|
|
4
|
+
import f from "bs58";
|
|
5
|
+
import { AuthManager as $ } from "./index.native8.js";
|
|
6
|
+
import { toAuthState as g } from "./index.native15.js";
|
|
7
|
+
import { withAuth as u } from "./index.native16.js";
|
|
8
|
+
import { MockAuthManager as V } from "./index.native17.js";
|
|
9
|
+
import { mockUser as h } from "./index.native18.js";
|
|
10
|
+
import { getPlatformServices as S, getPlatformCrypto as A } from "./index.native5.js";
|
|
11
|
+
import { isChainSupportedForCDPSends as q } from "./index.native19.js";
|
|
12
|
+
import { getConfig as n, setCoreAuthManager as w, getCoreAuthManager as c, setConfig as G } from "./index.native20.js";
|
|
13
13
|
import "viem";
|
|
14
|
-
import { serializeTransaction as
|
|
15
|
-
const
|
|
14
|
+
import { serializeTransaction as v } from "./index.native21.js";
|
|
15
|
+
const de = async (e) => {
|
|
16
16
|
if (!e.projectId)
|
|
17
17
|
throw new Error("Project ID is required");
|
|
18
18
|
let t;
|
|
19
19
|
try {
|
|
20
|
-
t =
|
|
20
|
+
t = n().projectId !== e.projectId;
|
|
21
21
|
} catch {
|
|
22
22
|
t = !0;
|
|
23
23
|
}
|
|
24
|
-
if (G(e),
|
|
25
|
-
|
|
24
|
+
if (G(e), n().useMock) {
|
|
25
|
+
w(new V(n().projectId));
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
28
|
let r;
|
|
29
29
|
try {
|
|
30
|
-
const
|
|
31
|
-
r =
|
|
32
|
-
getRefreshToken: () =>
|
|
33
|
-
setRefreshToken: (a) =>
|
|
34
|
-
removeRefreshToken: () =>
|
|
30
|
+
const s = S();
|
|
31
|
+
r = s.secureStorage ? {
|
|
32
|
+
getRefreshToken: () => s.secureStorage.getItem("cdp_refresh_token"),
|
|
33
|
+
setRefreshToken: (a) => s.secureStorage.setItem("cdp_refresh_token", a),
|
|
34
|
+
removeRefreshToken: () => s.secureStorage.removeItem("cdp_refresh_token")
|
|
35
35
|
} : void 0;
|
|
36
36
|
} catch {
|
|
37
37
|
r = void 0;
|
|
38
38
|
}
|
|
39
39
|
if (U({
|
|
40
|
-
debugging:
|
|
41
|
-
basePath:
|
|
40
|
+
debugging: n().debugging,
|
|
41
|
+
basePath: n().basePath,
|
|
42
42
|
refreshTokenStorage: r
|
|
43
43
|
}), t) {
|
|
44
|
-
const
|
|
45
|
-
|
|
44
|
+
const s = new $(n().projectId);
|
|
45
|
+
w(s), T(s);
|
|
46
46
|
}
|
|
47
47
|
await c().ensureInitialized();
|
|
48
|
-
},
|
|
48
|
+
}, me = async (e) => k({
|
|
49
49
|
email: e.email,
|
|
50
50
|
type: "email"
|
|
51
|
-
}),
|
|
51
|
+
}), ge = async (e) => k({
|
|
52
52
|
phoneNumber: e.phoneNumber,
|
|
53
53
|
type: "sms"
|
|
54
|
-
}),
|
|
54
|
+
}), pe = async (e) => E(
|
|
55
55
|
e,
|
|
56
56
|
"Mock email OTP verified",
|
|
57
57
|
(t, r) => K(t, r)
|
|
58
|
-
), ye = async (e) =>
|
|
58
|
+
), ye = async (e) => E(
|
|
59
59
|
e,
|
|
60
60
|
"Mock SMS OTP verified",
|
|
61
|
-
(t, r) =>
|
|
62
|
-
),
|
|
63
|
-
if (
|
|
61
|
+
(t, r) => O(t, r)
|
|
62
|
+
), le = async () => c().getUser(), fe = async () => c().isSignedIn(), he = async () => {
|
|
63
|
+
if (n().useMock) {
|
|
64
64
|
await c().signOut();
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
@@ -68,7 +68,7 @@ const ue = async (e) => {
|
|
|
68
68
|
throw new Error("User not signed in");
|
|
69
69
|
await c().signOut();
|
|
70
70
|
try {
|
|
71
|
-
const t =
|
|
71
|
+
const t = S();
|
|
72
72
|
if (t.secureStorage)
|
|
73
73
|
try {
|
|
74
74
|
await t.secureStorage.removeItem("cdp_refresh_token");
|
|
@@ -77,30 +77,30 @@ const ue = async (e) => {
|
|
|
77
77
|
}
|
|
78
78
|
} catch {
|
|
79
79
|
}
|
|
80
|
-
},
|
|
80
|
+
}, we = async () => c().getToken(), Ie = (e) => {
|
|
81
81
|
c().addAuthStateChangeCallback(e);
|
|
82
|
-
},
|
|
83
|
-
signature: (await
|
|
82
|
+
}, Se = async (e) => n().useMock ? { signature: "0x0" } : u(e, c(), async ({ user: t, walletSecretId: r }) => ({
|
|
83
|
+
signature: (await x(n().projectId, t.userId, {
|
|
84
84
|
hash: e.hash,
|
|
85
85
|
address: e.evmAccount,
|
|
86
86
|
walletSecretId: r
|
|
87
87
|
})).signature
|
|
88
|
-
})),
|
|
89
|
-
const
|
|
88
|
+
})), Ae = async (e) => n().useMock ? { signedTransaction: "0x0" } : u(e, c(), async ({ user: t, walletSecretId: r }) => {
|
|
89
|
+
const s = v(e.transaction);
|
|
90
90
|
return {
|
|
91
91
|
signedTransaction: (await b(
|
|
92
|
-
|
|
92
|
+
n().projectId,
|
|
93
93
|
t.userId,
|
|
94
94
|
{
|
|
95
|
-
transaction:
|
|
95
|
+
transaction: s,
|
|
96
96
|
address: e.evmAccount,
|
|
97
97
|
walletSecretId: r
|
|
98
98
|
}
|
|
99
99
|
)).signedTransaction
|
|
100
100
|
};
|
|
101
|
-
}),
|
|
101
|
+
}), ve = async (e) => n().useMock ? { signedTransaction: "mock-signed-transaction" } : u(e, c(), async ({ user: t, walletSecretId: r }) => ({
|
|
102
102
|
signedTransaction: (await C(
|
|
103
|
-
|
|
103
|
+
n().projectId,
|
|
104
104
|
t.userId,
|
|
105
105
|
{
|
|
106
106
|
transaction: e.transaction,
|
|
@@ -108,27 +108,27 @@ const ue = async (e) => {
|
|
|
108
108
|
walletSecretId: r
|
|
109
109
|
}
|
|
110
110
|
)).signedTransaction
|
|
111
|
-
})),
|
|
111
|
+
})), ke = async (e) => {
|
|
112
112
|
if (!q(e.network))
|
|
113
113
|
throw new Error(`Chain ${e.network} is not supported by the CDP Apis`);
|
|
114
|
-
if (
|
|
114
|
+
if (n().useMock)
|
|
115
115
|
return { transactionHash: "0x0" };
|
|
116
|
-
const t =
|
|
117
|
-
return u(e, c(), async ({ user: r, walletSecretId:
|
|
116
|
+
const t = v(e.transaction);
|
|
117
|
+
return u(e, c(), async ({ user: r, walletSecretId: s }) => ({
|
|
118
118
|
transactionHash: (await W(
|
|
119
|
-
|
|
119
|
+
n().projectId,
|
|
120
120
|
r.userId,
|
|
121
121
|
{
|
|
122
122
|
transaction: t,
|
|
123
123
|
address: e.evmAccount,
|
|
124
|
-
walletSecretId:
|
|
124
|
+
walletSecretId: s,
|
|
125
125
|
network: e.network
|
|
126
126
|
}
|
|
127
127
|
)).transactionHash
|
|
128
128
|
}));
|
|
129
|
-
},
|
|
129
|
+
}, Ee = async (e) => n().useMock ? { transactionSignature: "mock-signature" } : u(e, c(), async ({ user: t, walletSecretId: r }) => ({
|
|
130
130
|
transactionSignature: (await H(
|
|
131
|
-
|
|
131
|
+
n().projectId,
|
|
132
132
|
t.userId,
|
|
133
133
|
{
|
|
134
134
|
transaction: e.transaction,
|
|
@@ -137,15 +137,15 @@ const ue = async (e) => {
|
|
|
137
137
|
network: e.network
|
|
138
138
|
}
|
|
139
139
|
)).transactionSignature
|
|
140
|
-
})),
|
|
141
|
-
signature: (await B(
|
|
140
|
+
})), Ue = async (e) => n().useMock ? { signature: "0x0" } : u(e, c(), async ({ user: t, walletSecretId: r }) => ({
|
|
141
|
+
signature: (await B(n().projectId, t.userId, {
|
|
142
142
|
message: e.message,
|
|
143
143
|
address: e.evmAccount,
|
|
144
144
|
walletSecretId: r
|
|
145
145
|
})).signature
|
|
146
|
-
})),
|
|
146
|
+
})), Te = async (e) => n().useMock ? { signature: "mockSignature" } : u(e, c(), async ({ user: t, walletSecretId: r }) => ({
|
|
147
147
|
signature: (await D(
|
|
148
|
-
|
|
148
|
+
n().projectId,
|
|
149
149
|
t.userId,
|
|
150
150
|
{
|
|
151
151
|
message: e.message,
|
|
@@ -153,17 +153,17 @@ const ue = async (e) => {
|
|
|
153
153
|
walletSecretId: r
|
|
154
154
|
}
|
|
155
155
|
)).signature
|
|
156
|
-
})),
|
|
157
|
-
signature: (await _(
|
|
156
|
+
})), Me = async (e) => n().useMock ? { signature: "0x0" } : u(e, c(), async ({ user: t, walletSecretId: r }) => ({
|
|
157
|
+
signature: (await _(n().projectId, t.userId, {
|
|
158
158
|
typedData: e.typedData,
|
|
159
159
|
address: e.evmAccount,
|
|
160
160
|
walletSecretId: r
|
|
161
161
|
})).signature
|
|
162
|
-
})),
|
|
162
|
+
})), Pe = async (e) => n().useMock ? {
|
|
163
163
|
userOperationHash: "0x1234567890123456789012345678901234567890123456789012345678901234"
|
|
164
164
|
} : u(e, c(), async ({ user: t, walletSecretId: r }) => ({
|
|
165
165
|
userOperationHash: (await N(
|
|
166
|
-
|
|
166
|
+
n().projectId,
|
|
167
167
|
t.userId,
|
|
168
168
|
e.evmSmartAccount,
|
|
169
169
|
{
|
|
@@ -178,7 +178,7 @@ const ue = async (e) => {
|
|
|
178
178
|
paymasterUrl: e.paymasterUrl
|
|
179
179
|
}
|
|
180
180
|
)).userOpHash
|
|
181
|
-
})),
|
|
181
|
+
})), je = async (e) => n().useMock ? {
|
|
182
182
|
userOpHash: e.userOperationHash,
|
|
183
183
|
network: e.network,
|
|
184
184
|
calls: [
|
|
@@ -191,19 +191,19 @@ const ue = async (e) => {
|
|
|
191
191
|
status: "complete",
|
|
192
192
|
transactionHash: "0x9876543210987654321098765432109876543210987654321098765432109876",
|
|
193
193
|
receipts: []
|
|
194
|
-
} : u(e, c(), async ({ user: t }) => await
|
|
195
|
-
|
|
194
|
+
} : u(e, c(), async ({ user: t }) => await L(
|
|
195
|
+
n().projectId,
|
|
196
196
|
t.userId,
|
|
197
197
|
e.evmSmartAccount,
|
|
198
198
|
e.userOperationHash
|
|
199
|
-
)),
|
|
200
|
-
if (
|
|
199
|
+
)), Ke = async (e) => {
|
|
200
|
+
if (n().useMock)
|
|
201
201
|
return {
|
|
202
|
-
privateKey:
|
|
202
|
+
privateKey: m.Buffer.from("mock-private-key").toString("hex")
|
|
203
203
|
};
|
|
204
|
-
const t =
|
|
205
|
-
return u(e, c(), async ({ user:
|
|
206
|
-
const o = await
|
|
204
|
+
const t = A(), r = await t.createExportKeyPair();
|
|
205
|
+
return u(e, c(), async ({ user: s, walletSecretId: a }) => {
|
|
206
|
+
const o = await z(n().projectId, s.userId, {
|
|
207
207
|
address: e.evmAccount,
|
|
208
208
|
walletSecretId: a,
|
|
209
209
|
exportEncryptionKey: r.publicKeyBase64
|
|
@@ -212,59 +212,59 @@ const ue = async (e) => {
|
|
|
212
212
|
o.encryptedPrivateKey
|
|
213
213
|
);
|
|
214
214
|
return {
|
|
215
|
-
privateKey:
|
|
215
|
+
privateKey: m.Buffer.from(i).toString("hex")
|
|
216
216
|
};
|
|
217
217
|
});
|
|
218
|
-
},
|
|
219
|
-
if (
|
|
220
|
-
const
|
|
221
|
-
|
|
222
|
-
const o =
|
|
218
|
+
}, Oe = async (e) => {
|
|
219
|
+
if (n().useMock) {
|
|
220
|
+
const s = m.Buffer.from("mock-private-key").subarray(0, 32), a = m.Buffer.alloc(32);
|
|
221
|
+
s.copy(a);
|
|
222
|
+
const o = l.fromSeed(a), i = m.Buffer.concat([o.secretKey.subarray(0, 32), o.publicKey.toBytes()]);
|
|
223
223
|
return {
|
|
224
|
-
privateKey:
|
|
224
|
+
privateKey: f.encode(i)
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
|
-
const t =
|
|
228
|
-
return u(e, c(), async ({ user:
|
|
229
|
-
const o = await
|
|
227
|
+
const t = A(), r = await t.createExportKeyPair();
|
|
228
|
+
return u(e, c(), async ({ user: s, walletSecretId: a }) => {
|
|
229
|
+
const o = await F(n().projectId, s.userId, {
|
|
230
230
|
address: e.solanaAccount,
|
|
231
231
|
walletSecretId: a,
|
|
232
232
|
exportEncryptionKey: r.publicKeyBase64
|
|
233
233
|
}), i = await t.decryptWithPrivateKey(
|
|
234
234
|
r.privateKey,
|
|
235
235
|
o.encryptedPrivateKey
|
|
236
|
-
),
|
|
236
|
+
), d = l.fromSeed(new Uint8Array(i)), p = m.Buffer.concat([d.secretKey.subarray(0, 32), d.publicKey.toBytes()]);
|
|
237
237
|
return {
|
|
238
|
-
privateKey:
|
|
238
|
+
privateKey: f.encode(p)
|
|
239
239
|
};
|
|
240
240
|
});
|
|
241
|
-
},
|
|
242
|
-
if (
|
|
241
|
+
}, k = async (e) => {
|
|
242
|
+
if (n().useMock)
|
|
243
243
|
return {
|
|
244
244
|
message: "Mock sign in initiated",
|
|
245
245
|
flowId: "mock-flow-id"
|
|
246
246
|
};
|
|
247
247
|
if (await c().isSignedIn())
|
|
248
248
|
throw new Error("User is already authenticated. Please sign out first.");
|
|
249
|
-
const r = await M(
|
|
249
|
+
const r = await M(n().projectId, e);
|
|
250
250
|
return {
|
|
251
251
|
flowId: r.flowId,
|
|
252
252
|
message: r.message
|
|
253
253
|
};
|
|
254
|
-
},
|
|
255
|
-
if (
|
|
254
|
+
}, E = async (e, t, r) => {
|
|
255
|
+
if (n().useMock)
|
|
256
256
|
return await c().setAuthState({
|
|
257
257
|
accessToken: "mock-access-token",
|
|
258
258
|
expiresAt: Date.now() + 1e3 * 60 * 60 * 24,
|
|
259
|
-
user:
|
|
259
|
+
user: h
|
|
260
260
|
}), {
|
|
261
261
|
message: t,
|
|
262
|
-
user:
|
|
262
|
+
user: h,
|
|
263
263
|
isNewUser: !1
|
|
264
264
|
};
|
|
265
265
|
if (await c().isSignedIn())
|
|
266
266
|
throw new Error("User is already authenticated. Please sign out first.");
|
|
267
|
-
const a = await r(
|
|
267
|
+
const a = await r(n().projectId, {
|
|
268
268
|
flowId: e.flowId,
|
|
269
269
|
otp: e.otp
|
|
270
270
|
});
|
|
@@ -274,96 +274,96 @@ const ue = async (e) => {
|
|
|
274
274
|
a.endUser
|
|
275
275
|
);
|
|
276
276
|
await c().setAuthState(o);
|
|
277
|
-
const i =
|
|
278
|
-
i.ethereum?.createOnLogin && (o = await
|
|
277
|
+
const i = n();
|
|
278
|
+
i.ethereum?.createOnLogin && (o = await I(
|
|
279
279
|
a,
|
|
280
280
|
o,
|
|
281
281
|
i.ethereum.createOnLogin
|
|
282
|
-
)), i.solana?.createOnLogin && (o = await J(a, o)), !i.ethereum?.createOnLogin && !i.solana?.createOnLogin && (o = await
|
|
283
|
-
const
|
|
282
|
+
)), i.solana?.createOnLogin && (o = await J(a, o)), !i.ethereum?.createOnLogin && !i.solana?.createOnLogin && (o = await I(a, o, "eoa"));
|
|
283
|
+
const d = await c().getUser();
|
|
284
284
|
return {
|
|
285
285
|
message: a.message,
|
|
286
|
-
user:
|
|
286
|
+
user: d,
|
|
287
287
|
isNewUser: a.isNewEndUser
|
|
288
288
|
};
|
|
289
|
-
},
|
|
290
|
-
let
|
|
289
|
+
}, I = async (e, t, r) => {
|
|
290
|
+
let s = t;
|
|
291
291
|
if (!t.user.evmAccounts || t.user.evmAccounts.length === 0)
|
|
292
292
|
try {
|
|
293
293
|
const a = await c().getWalletSecretId();
|
|
294
|
-
let o = await P(
|
|
294
|
+
let o = await P(n().projectId, t.user.userId, {
|
|
295
295
|
walletSecretId: a
|
|
296
|
-
});
|
|
297
|
-
|
|
298
|
-
|
|
296
|
+
}), i = !1;
|
|
297
|
+
const d = n().ethereum;
|
|
298
|
+
if (d?.createOnLogin === "smart" && (i = d.enableSpendPermissions ?? !1), r === "smart") {
|
|
299
|
+
const [p] = o.evmAccounts;
|
|
299
300
|
o = await y(
|
|
300
|
-
|
|
301
|
+
n().projectId,
|
|
301
302
|
t.user.userId,
|
|
302
303
|
{
|
|
303
|
-
owner:
|
|
304
|
-
enableSpendPermissions:
|
|
305
|
-
// Defaulting to false until the feature is ready.
|
|
304
|
+
owner: p,
|
|
305
|
+
enableSpendPermissions: i
|
|
306
306
|
}
|
|
307
307
|
);
|
|
308
308
|
}
|
|
309
|
-
|
|
309
|
+
s = g(e.accessToken, e.validUntil, o), await c().setAuthState(s);
|
|
310
310
|
} catch (a) {
|
|
311
311
|
throw new Error(`Failed to create EVM account: ${a}`);
|
|
312
312
|
}
|
|
313
|
-
if (r === "smart" && (!
|
|
313
|
+
if (r === "smart" && (!s.user.evmSmartAccounts || s.user.evmSmartAccounts.length === 0))
|
|
314
314
|
try {
|
|
315
|
-
const [a] =
|
|
316
|
-
|
|
317
|
-
|
|
315
|
+
const [a] = s.user.evmAccounts, o = await y(
|
|
316
|
+
n().projectId,
|
|
317
|
+
s.user.userId,
|
|
318
318
|
{
|
|
319
319
|
owner: a,
|
|
320
320
|
enableSpendPermissions: !1
|
|
321
321
|
// Defaulting to false until the feature is ready.
|
|
322
322
|
}
|
|
323
323
|
);
|
|
324
|
-
|
|
324
|
+
s = g(e.accessToken, e.validUntil, o), await c().setAuthState(s);
|
|
325
325
|
} catch (a) {
|
|
326
326
|
throw new Error(`Failed to create EVM Smart Account: ${a}`);
|
|
327
327
|
}
|
|
328
|
-
return
|
|
328
|
+
return s;
|
|
329
329
|
}, J = async (e, t) => {
|
|
330
330
|
let r = t;
|
|
331
331
|
if (!t.user.solanaAccounts || t.user.solanaAccounts.length === 0)
|
|
332
332
|
try {
|
|
333
|
-
const
|
|
334
|
-
|
|
333
|
+
const s = await c().getWalletSecretId(), a = await j(
|
|
334
|
+
n().projectId,
|
|
335
335
|
t.user.userId,
|
|
336
336
|
{
|
|
337
|
-
walletSecretId:
|
|
337
|
+
walletSecretId: s
|
|
338
338
|
}
|
|
339
339
|
);
|
|
340
340
|
r = g(e.accessToken, e.validUntil, a), await c().setAuthState(r);
|
|
341
|
-
} catch (
|
|
342
|
-
throw new Error(`Failed to create Solana account: ${
|
|
341
|
+
} catch (s) {
|
|
342
|
+
throw new Error(`Failed to create Solana account: ${s}`);
|
|
343
343
|
}
|
|
344
344
|
return r;
|
|
345
345
|
};
|
|
346
346
|
export {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
347
|
+
Ke as exportEvmAccount,
|
|
348
|
+
Oe as exportSolanaAccount,
|
|
349
|
+
we as getAccessToken,
|
|
350
|
+
le as getCurrentUser,
|
|
351
|
+
je as getUserOperation,
|
|
352
|
+
de as initialize,
|
|
353
|
+
fe as isSignedIn,
|
|
354
|
+
Ie as onAuthStateChange,
|
|
355
|
+
ke as sendEvmTransaction,
|
|
356
|
+
Ee as sendSolanaTransaction,
|
|
357
|
+
Pe as sendUserOperation,
|
|
358
|
+
Se as signEvmHash,
|
|
359
|
+
Ue as signEvmMessage,
|
|
360
|
+
Ae as signEvmTransaction,
|
|
361
|
+
Me as signEvmTypedData,
|
|
362
|
+
me as signInWithEmail,
|
|
363
|
+
ge as signInWithSms,
|
|
364
|
+
he as signOut,
|
|
365
|
+
Te as signSolanaMessage,
|
|
366
|
+
ve as signSolanaTransaction,
|
|
367
|
+
pe as verifyEmailOTP,
|
|
368
368
|
ye as verifySmsOTP
|
|
369
369
|
};
|
|
@@ -1,58 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { hexToNumber as d } from "./index.native58.js";
|
|
2
|
+
import { defineFormatter as b } from "./index.native56.js";
|
|
3
|
+
import { formatLog as m } from "./index.native59.js";
|
|
4
|
+
import { transactionType as o } from "./index.native57.js";
|
|
5
|
+
const f = {
|
|
6
|
+
"0x0": "reverted",
|
|
7
|
+
"0x1": "success"
|
|
5
8
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
value: void 0
|
|
22
|
-
}), Object.defineProperty(this, "docsPath", {
|
|
23
|
-
enumerable: !0,
|
|
24
|
-
configurable: !0,
|
|
25
|
-
writable: !0,
|
|
26
|
-
value: void 0
|
|
27
|
-
}), Object.defineProperty(this, "metaMessages", {
|
|
28
|
-
enumerable: !0,
|
|
29
|
-
configurable: !0,
|
|
30
|
-
writable: !0,
|
|
31
|
-
value: void 0
|
|
32
|
-
}), Object.defineProperty(this, "shortMessage", {
|
|
33
|
-
enumerable: !0,
|
|
34
|
-
configurable: !0,
|
|
35
|
-
writable: !0,
|
|
36
|
-
value: void 0
|
|
37
|
-
}), Object.defineProperty(this, "version", {
|
|
38
|
-
enumerable: !0,
|
|
39
|
-
configurable: !0,
|
|
40
|
-
writable: !0,
|
|
41
|
-
value: void 0
|
|
42
|
-
}), Object.defineProperty(this, "name", {
|
|
43
|
-
enumerable: !0,
|
|
44
|
-
configurable: !0,
|
|
45
|
-
writable: !0,
|
|
46
|
-
value: "BaseError"
|
|
47
|
-
}), this.details = i, this.docsPath = n, this.metaMessages = e.metaMessages, this.name = e.name ?? this.name, this.shortMessage = t, this.version = o;
|
|
48
|
-
}
|
|
49
|
-
walk(t) {
|
|
50
|
-
return c(this, t);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
function c(s, t) {
|
|
54
|
-
return t?.(s) ? s : s && typeof s == "object" && "cause" in s && s.cause !== void 0 ? c(s.cause, t) : t ? null : s;
|
|
9
|
+
function r(l) {
|
|
10
|
+
const s = {
|
|
11
|
+
...l,
|
|
12
|
+
blockNumber: l.blockNumber ? BigInt(l.blockNumber) : null,
|
|
13
|
+
contractAddress: l.contractAddress ? l.contractAddress : null,
|
|
14
|
+
cumulativeGasUsed: l.cumulativeGasUsed ? BigInt(l.cumulativeGasUsed) : null,
|
|
15
|
+
effectiveGasPrice: l.effectiveGasPrice ? BigInt(l.effectiveGasPrice) : null,
|
|
16
|
+
gasUsed: l.gasUsed ? BigInt(l.gasUsed) : null,
|
|
17
|
+
logs: l.logs ? l.logs.map((u) => m(u)) : null,
|
|
18
|
+
to: l.to ? l.to : null,
|
|
19
|
+
transactionIndex: l.transactionIndex ? d(l.transactionIndex) : null,
|
|
20
|
+
status: l.status ? f[l.status] : null,
|
|
21
|
+
type: l.type ? o[l.type] || l.type : null
|
|
22
|
+
};
|
|
23
|
+
return l.blobGasPrice && (s.blobGasPrice = BigInt(l.blobGasPrice)), l.blobGasUsed && (s.blobGasUsed = BigInt(l.blobGasUsed)), s;
|
|
55
24
|
}
|
|
25
|
+
const U = /* @__PURE__ */ b("transactionReceipt", r);
|
|
56
26
|
export {
|
|
57
|
-
|
|
27
|
+
U as defineTransactionReceipt,
|
|
28
|
+
r as formatTransactionReceipt,
|
|
29
|
+
f as receiptStatuses
|
|
58
30
|
};
|