@coinbase/cdp-core 0.0.74 → 0.0.75
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.native100.js +14 -2
- package/dist/esm/index.native101.js +19 -2
- package/dist/esm/index.native102.js +5 -12
- package/dist/esm/index.native103.js +5 -38
- package/dist/esm/index.native104.js +10 -6
- package/dist/esm/index.native105.js +363 -21
- package/dist/esm/index.native106.js +2 -11
- package/dist/esm/index.native107.js +64 -9
- package/dist/esm/index.native108.js +364 -11
- package/dist/esm/index.native109.js +16 -13
- package/dist/esm/index.native110.js +21 -17
- package/dist/esm/index.native111.js +50 -5
- package/dist/esm/index.native112.js +29 -5
- package/dist/esm/index.native113.js +28 -10
- package/dist/esm/index.native114.js +2 -55
- package/dist/esm/index.native115.js +20 -10
- package/dist/esm/index.native116.js +5 -2
- package/dist/esm/index.native117.js +47 -44
- package/dist/esm/index.native118.js +19 -13
- package/dist/esm/index.native119.js +79 -4
- package/dist/esm/index.native120.js +104 -2
- package/dist/esm/index.native121.js +32 -4
- package/dist/esm/index.native122.js +3 -18
- package/dist/esm/index.native123.js +6 -7
- package/dist/esm/index.native124.js +4 -3
- package/dist/esm/index.native125.js +53 -18
- package/dist/esm/index.native126.js +10 -8
- package/dist/esm/index.native127.js +2 -8
- package/dist/esm/index.native128.js +45 -72
- package/dist/esm/index.native129.js +13 -18
- package/dist/esm/index.native130.js +4 -3
- package/dist/esm/index.native131.js +18 -4
- package/dist/esm/index.native132.js +7 -4
- package/dist/esm/index.native133.js +3 -4
- package/dist/esm/index.native134.js +15 -15
- package/dist/esm/index.native135.js +8 -52
- package/dist/esm/index.native136.js +7 -17
- package/dist/esm/index.native137.js +69 -21
- package/dist/esm/index.native138.js +18 -8
- package/dist/esm/index.native139.js +3 -33
- package/dist/esm/index.native140.js +4 -7
- package/dist/esm/index.native141.js +4 -20
- package/dist/esm/index.native142.js +5 -5
- package/dist/esm/index.native143.js +16 -44
- package/dist/esm/index.native144.js +47 -15
- package/dist/esm/index.native145.js +17 -19
- package/dist/esm/index.native146.js +23 -79
- package/dist/esm/index.native147.js +8 -103
- package/dist/esm/index.native148.js +33 -6
- package/dist/esm/index.native149.js +7 -32
- package/dist/esm/index.native150.js +18 -18
- package/dist/esm/index.native151.js +8 -10
- package/dist/esm/index.native152.js +2 -20
- package/dist/esm/index.native153.js +369 -85
- package/dist/esm/index.native154.js +836 -21
- package/dist/esm/index.native155.js +38 -117
- package/dist/esm/index.native156.js +2 -2
- package/dist/esm/index.native157.js +68 -107
- package/dist/esm/index.native158.js +35 -2
- package/dist/esm/index.native159.js +18 -76
- package/dist/esm/index.native160.js +78 -3
- package/dist/esm/index.native161.js +5 -39
- package/dist/esm/index.native162.js +2 -2
- package/dist/esm/index.native163.js +107 -68
- package/dist/esm/index.native164.js +2 -35
- package/dist/esm/index.native165.js +19 -19
- package/dist/esm/index.native166.js +10 -8
- package/dist/esm/index.native167.js +20 -2
- package/dist/esm/index.native168.js +85 -369
- package/dist/esm/index.native169.js +21 -836
- package/dist/esm/index.native170.js +115 -44
- package/dist/esm/index.native171.js +2 -5
- package/dist/esm/index.native172.js +2 -18
- package/dist/esm/index.native173.js +2 -28
- package/dist/esm/index.native174.js +46 -7
- package/dist/esm/index.native175.js +15 -11
- package/dist/esm/index.native176.js +16 -11
- package/dist/esm/index.native177.js +28 -10
- package/dist/esm/index.native178.js +8 -17
- package/dist/esm/index.native179.js +9 -79
- package/dist/esm/index.native180.js +12 -14
- package/dist/esm/index.native181.js +10 -2
- package/dist/esm/index.native182.js +17 -2
- package/dist/esm/index.native183.js +81 -2
- package/dist/esm/index.native2.js +2 -2
- package/dist/esm/index.native3.js +1 -1
- package/dist/esm/index.native30.js +81 -43
- package/dist/esm/index.native48.js +12 -12
- package/dist/esm/index.native52.js +3 -3
- package/dist/esm/index.native55.js +2 -2
- package/dist/esm/index.native59.js +3 -3
- package/dist/esm/index.native62.js +1 -1
- package/dist/esm/index.native63.js +1 -1
- package/dist/esm/index.native64.js +2 -17
- package/dist/esm/index.native65.js +2 -23
- package/dist/esm/index.native66.js +16 -49
- package/dist/esm/index.native67.js +45 -376
- package/dist/esm/index.native68.js +16 -2
- package/dist/esm/index.native69.js +53 -63
- package/dist/esm/index.native70.js +6 -364
- package/dist/esm/index.native71.js +21 -28
- package/dist/esm/index.native72.js +11 -28
- package/dist/esm/index.native73.js +4 -2
- package/dist/esm/index.native74.js +4 -2
- package/dist/esm/index.native75.js +33 -16
- package/dist/esm/index.native76.js +10 -43
- package/dist/esm/index.native77.js +4 -13
- package/dist/esm/index.native78.js +25 -52
- package/dist/esm/index.native79.js +6 -6
- package/dist/esm/index.native80.js +41 -20
- package/dist/esm/index.native81.js +55 -11
- package/dist/esm/index.native82.js +127 -3
- package/dist/esm/index.native83.js +23 -3
- package/dist/esm/index.native84.js +10 -32
- package/dist/esm/index.native85.js +101 -9
- package/dist/esm/index.native86.js +6 -4
- package/dist/esm/index.native87.js +3 -29
- package/dist/esm/index.native88.js +14 -6
- package/dist/esm/index.native89.js +32 -40
- package/dist/esm/index.native9.js +1 -1
- package/dist/esm/index.native90.js +76 -53
- package/dist/esm/index.native91.js +2 -128
- package/dist/esm/index.native92.js +2 -24
- package/dist/esm/index.native93.js +11 -11
- package/dist/esm/index.native94.js +32 -99
- package/dist/esm/index.native95.js +6 -6
- package/dist/esm/index.native96.js +35 -3
- package/dist/esm/index.native97.js +8 -14
- package/dist/esm/index.native98.js +9 -33
- package/dist/esm/index.native99.js +11 -78
- package/dist/esm/index.web100.js +37 -14
- package/dist/esm/index.web101.js +5 -33
- package/dist/esm/index.web102.js +32 -76
- package/dist/esm/index.web103.js +9 -2
- package/dist/esm/index.web104.js +11 -2
- package/dist/esm/index.web105.js +11 -12
- package/dist/esm/index.web106.js +12 -36
- package/dist/esm/index.web107.js +17 -5
- package/dist/esm/index.web108.js +5 -34
- package/dist/esm/index.web109.js +5 -9
- package/dist/esm/index.web110.js +10 -10
- package/dist/esm/index.web111.js +376 -11
- package/dist/esm/index.web112.js +2 -16
- package/dist/esm/index.web113.js +64 -17
- package/dist/esm/index.web114.js +364 -5
- package/dist/esm/index.web115.js +29 -5
- package/dist/esm/index.web116.js +28 -10
- package/dist/esm/index.web117.js +7 -7
- package/dist/esm/index.web122.js +2 -5
- package/dist/esm/index.web123.js +20 -4
- package/dist/esm/index.web124.js +5 -19
- package/dist/esm/index.web125.js +47 -7
- package/dist/esm/index.web126.js +19 -3
- package/dist/esm/index.web127.js +79 -19
- package/dist/esm/index.web128.js +103 -8
- package/dist/esm/index.web129.js +32 -7
- package/dist/esm/index.web130.js +6 -71
- package/dist/esm/index.web131.js +3 -18
- package/dist/esm/index.web132.js +4 -3
- package/dist/esm/index.web133.js +20 -4
- package/dist/esm/index.web134.js +10 -5
- package/dist/esm/index.web135.js +20 -5
- package/dist/esm/index.web136.js +93 -19
- package/dist/esm/index.web137.js +20 -52
- package/dist/esm/index.web138.js +118 -18
- package/dist/esm/index.web139.js +4 -23
- package/dist/esm/index.web140.js +18 -8
- package/dist/esm/index.web141.js +7 -33
- package/dist/esm/index.web142.js +3 -7
- package/dist/esm/index.web143.js +16 -17
- package/dist/esm/index.web144.js +9 -2
- package/dist/esm/index.web145.js +8 -5
- package/dist/esm/index.web146.js +69 -45
- package/dist/esm/index.web147.js +16 -18
- package/dist/esm/index.web148.js +3 -19
- package/dist/esm/index.web149.js +4 -79
- package/dist/esm/index.web150.js +4 -103
- package/dist/esm/index.web151.js +4 -32
- package/dist/esm/index.web152.js +19 -6
- package/dist/esm/index.web153.js +49 -17
- package/dist/esm/index.web154.js +18 -10
- package/dist/esm/index.web155.js +23 -19
- package/dist/esm/index.web156.js +9 -94
- package/dist/esm/index.web157.js +33 -20
- package/dist/esm/index.web158.js +8 -118
- package/dist/esm/index.web159.js +21 -2
- package/dist/esm/index.web160.js +7 -108
- package/dist/esm/index.web162.js +370 -71
- package/dist/esm/index.web163.js +835 -3
- package/dist/esm/index.web164.js +38 -46
- package/dist/esm/index.web165.js +2 -8
- package/dist/esm/index.web166.js +70 -2
- package/dist/esm/index.web167.js +30 -373
- package/dist/esm/index.web168.js +20 -835
- package/dist/esm/index.web169.js +77 -37
- package/dist/esm/index.web170.js +5 -2
- package/dist/esm/index.web171.js +2 -70
- package/dist/esm/index.web172.js +106 -32
- package/dist/esm/index.web173.js +2 -21
- package/dist/esm/index.web174.js +18 -5
- package/dist/esm/index.web175.js +28 -18
- package/dist/esm/index.web176.js +6 -26
- package/dist/esm/index.web177.js +9 -6
- package/dist/esm/index.web178.js +13 -11
- package/dist/esm/index.web179.js +8 -11
- package/dist/esm/index.web180.js +14 -7
- package/dist/esm/index.web181.js +80 -16
- package/dist/esm/index.web182.js +45 -79
- package/dist/esm/index.web183.js +1 -1
- package/dist/esm/index.web2.js +2 -2
- package/dist/esm/index.web29.js +81 -43
- package/dist/esm/index.web3.js +1 -1
- package/dist/esm/index.web50.js +12 -12
- package/dist/esm/index.web54.js +3 -3
- package/dist/esm/index.web57.js +2 -2
- package/dist/esm/index.web61.js +3 -3
- package/dist/esm/index.web65.js +1 -1
- package/dist/esm/index.web66.js +1 -1
- package/dist/esm/index.web67.js +2 -17
- package/dist/esm/index.web68.js +2 -23
- package/dist/esm/index.web69.js +13 -47
- package/dist/esm/index.web70.js +18 -372
- package/dist/esm/index.web71.js +50 -28
- package/dist/esm/index.web72.js +17 -28
- package/dist/esm/index.web73.js +46 -2
- package/dist/esm/index.web74.js +14 -2
- package/dist/esm/index.web75.js +58 -2
- package/dist/esm/index.web76.js +6 -65
- package/dist/esm/index.web77.js +13 -356
- package/dist/esm/index.web78.js +11 -17
- package/dist/esm/index.web79.js +3 -45
- package/dist/esm/index.web8.js +1 -1
- package/dist/esm/index.web80.js +3 -13
- package/dist/esm/index.web81.js +31 -52
- package/dist/esm/index.web82.js +12 -6
- package/dist/esm/index.web83.js +4 -21
- package/dist/esm/index.web84.js +28 -11
- package/dist/esm/index.web85.js +6 -3
- package/dist/esm/index.web86.js +42 -3
- package/dist/esm/index.web87.js +54 -33
- package/dist/esm/index.web88.js +126 -11
- package/dist/esm/index.web89.js +23 -4
- package/dist/esm/index.web90.js +11 -27
- package/dist/esm/index.web91.js +104 -6
- package/dist/esm/index.web92.js +6 -42
- package/dist/esm/index.web93.js +3 -56
- package/dist/esm/index.web94.js +14 -127
- package/dist/esm/index.web95.js +32 -21
- package/dist/esm/index.web96.js +76 -10
- package/dist/esm/index.web97.js +2 -105
- package/dist/esm/index.web98.js +2 -7
- package/dist/esm/index.web99.js +13 -3
- package/dist/native/index.native100.js +14 -2
- package/dist/native/index.native101.js +19 -2
- package/dist/native/index.native102.js +5 -12
- package/dist/native/index.native103.js +5 -38
- package/dist/native/index.native104.js +10 -6
- package/dist/native/index.native105.js +363 -21
- package/dist/native/index.native106.js +2 -11
- package/dist/native/index.native107.js +64 -9
- package/dist/native/index.native108.js +364 -11
- package/dist/native/index.native109.js +16 -13
- package/dist/native/index.native110.js +21 -17
- package/dist/native/index.native111.js +50 -5
- package/dist/native/index.native112.js +29 -5
- package/dist/native/index.native113.js +28 -10
- package/dist/native/index.native114.js +2 -55
- package/dist/native/index.native115.js +20 -10
- package/dist/native/index.native116.js +5 -2
- package/dist/native/index.native117.js +47 -44
- package/dist/native/index.native118.js +19 -13
- package/dist/native/index.native119.js +79 -4
- package/dist/native/index.native120.js +104 -2
- package/dist/native/index.native121.js +32 -4
- package/dist/native/index.native122.js +3 -18
- package/dist/native/index.native123.js +6 -7
- package/dist/native/index.native124.js +4 -3
- package/dist/native/index.native125.js +53 -18
- package/dist/native/index.native126.js +10 -8
- package/dist/native/index.native127.js +2 -8
- package/dist/native/index.native128.js +45 -72
- package/dist/native/index.native129.js +13 -18
- package/dist/native/index.native130.js +4 -3
- package/dist/native/index.native131.js +18 -4
- package/dist/native/index.native132.js +7 -4
- package/dist/native/index.native133.js +3 -4
- package/dist/native/index.native134.js +15 -15
- package/dist/native/index.native135.js +8 -52
- package/dist/native/index.native136.js +7 -17
- package/dist/native/index.native137.js +69 -21
- package/dist/native/index.native138.js +18 -8
- package/dist/native/index.native139.js +3 -33
- package/dist/native/index.native140.js +4 -7
- package/dist/native/index.native141.js +4 -20
- package/dist/native/index.native142.js +5 -5
- package/dist/native/index.native143.js +16 -44
- package/dist/native/index.native144.js +47 -15
- package/dist/native/index.native145.js +17 -19
- package/dist/native/index.native146.js +23 -79
- package/dist/native/index.native147.js +8 -103
- package/dist/native/index.native148.js +33 -6
- package/dist/native/index.native149.js +7 -32
- package/dist/native/index.native150.js +18 -18
- package/dist/native/index.native151.js +8 -10
- package/dist/native/index.native152.js +2 -20
- package/dist/native/index.native153.js +369 -85
- package/dist/native/index.native154.js +836 -21
- package/dist/native/index.native155.js +38 -117
- package/dist/native/index.native156.js +2 -2
- package/dist/native/index.native157.js +68 -107
- package/dist/native/index.native158.js +35 -2
- package/dist/native/index.native159.js +18 -76
- package/dist/native/index.native160.js +78 -3
- package/dist/native/index.native161.js +5 -39
- package/dist/native/index.native162.js +2 -2
- package/dist/native/index.native163.js +107 -68
- package/dist/native/index.native164.js +2 -35
- package/dist/native/index.native165.js +19 -19
- package/dist/native/index.native166.js +10 -8
- package/dist/native/index.native167.js +20 -2
- package/dist/native/index.native168.js +85 -369
- package/dist/native/index.native169.js +21 -836
- package/dist/native/index.native170.js +115 -44
- package/dist/native/index.native171.js +2 -5
- package/dist/native/index.native172.js +2 -18
- package/dist/native/index.native173.js +2 -28
- package/dist/native/index.native174.js +46 -7
- package/dist/native/index.native175.js +15 -11
- package/dist/native/index.native176.js +16 -11
- package/dist/native/index.native177.js +28 -10
- package/dist/native/index.native178.js +8 -17
- package/dist/native/index.native179.js +9 -79
- package/dist/native/index.native180.js +12 -14
- package/dist/native/index.native181.js +10 -2
- package/dist/native/index.native182.js +17 -2
- package/dist/native/index.native183.js +81 -2
- package/dist/native/index.native2.js +2 -2
- package/dist/native/index.native3.js +1 -1
- package/dist/native/index.native30.js +81 -43
- package/dist/native/index.native48.js +12 -12
- package/dist/native/index.native52.js +3 -3
- package/dist/native/index.native55.js +2 -2
- package/dist/native/index.native59.js +3 -3
- package/dist/native/index.native62.js +1 -1
- package/dist/native/index.native63.js +1 -1
- package/dist/native/index.native64.js +2 -17
- package/dist/native/index.native65.js +2 -23
- package/dist/native/index.native66.js +16 -49
- package/dist/native/index.native67.js +45 -376
- package/dist/native/index.native68.js +16 -2
- package/dist/native/index.native69.js +53 -63
- package/dist/native/index.native70.js +6 -364
- package/dist/native/index.native71.js +21 -28
- package/dist/native/index.native72.js +11 -28
- package/dist/native/index.native73.js +4 -2
- package/dist/native/index.native74.js +4 -2
- package/dist/native/index.native75.js +33 -16
- package/dist/native/index.native76.js +10 -43
- package/dist/native/index.native77.js +4 -13
- package/dist/native/index.native78.js +25 -52
- package/dist/native/index.native79.js +6 -6
- package/dist/native/index.native80.js +41 -20
- package/dist/native/index.native81.js +55 -11
- package/dist/native/index.native82.js +127 -3
- package/dist/native/index.native83.js +23 -3
- package/dist/native/index.native84.js +10 -32
- package/dist/native/index.native85.js +101 -9
- package/dist/native/index.native86.js +6 -4
- package/dist/native/index.native87.js +3 -29
- package/dist/native/index.native88.js +14 -6
- package/dist/native/index.native89.js +32 -40
- package/dist/native/index.native9.js +1 -1
- package/dist/native/index.native90.js +76 -53
- package/dist/native/index.native91.js +2 -128
- package/dist/native/index.native92.js +2 -24
- package/dist/native/index.native93.js +11 -11
- package/dist/native/index.native94.js +32 -99
- package/dist/native/index.native95.js +6 -6
- package/dist/native/index.native96.js +35 -3
- package/dist/native/index.native97.js +8 -14
- package/dist/native/index.native98.js +9 -33
- package/dist/native/index.native99.js +11 -78
- package/dist/native-types/version.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/web/index.web100.js +37 -14
- package/dist/web/index.web101.js +5 -33
- package/dist/web/index.web102.js +32 -76
- package/dist/web/index.web103.js +9 -2
- package/dist/web/index.web104.js +11 -2
- package/dist/web/index.web105.js +11 -12
- package/dist/web/index.web106.js +12 -36
- package/dist/web/index.web107.js +17 -5
- package/dist/web/index.web108.js +5 -34
- package/dist/web/index.web109.js +5 -9
- package/dist/web/index.web110.js +10 -10
- package/dist/web/index.web111.js +376 -11
- package/dist/web/index.web112.js +2 -16
- package/dist/web/index.web113.js +64 -17
- package/dist/web/index.web114.js +364 -5
- package/dist/web/index.web115.js +29 -5
- package/dist/web/index.web116.js +28 -10
- package/dist/web/index.web117.js +7 -7
- package/dist/web/index.web122.js +2 -5
- package/dist/web/index.web123.js +20 -4
- package/dist/web/index.web124.js +5 -19
- package/dist/web/index.web125.js +47 -7
- package/dist/web/index.web126.js +19 -3
- package/dist/web/index.web127.js +79 -19
- package/dist/web/index.web128.js +103 -8
- package/dist/web/index.web129.js +32 -7
- package/dist/web/index.web130.js +6 -71
- package/dist/web/index.web131.js +3 -18
- package/dist/web/index.web132.js +4 -3
- package/dist/web/index.web133.js +20 -4
- package/dist/web/index.web134.js +10 -5
- package/dist/web/index.web135.js +20 -5
- package/dist/web/index.web136.js +93 -19
- package/dist/web/index.web137.js +20 -52
- package/dist/web/index.web138.js +118 -18
- package/dist/web/index.web139.js +4 -23
- package/dist/web/index.web140.js +18 -8
- package/dist/web/index.web141.js +7 -33
- package/dist/web/index.web142.js +3 -7
- package/dist/web/index.web143.js +16 -17
- package/dist/web/index.web144.js +9 -2
- package/dist/web/index.web145.js +8 -5
- package/dist/web/index.web146.js +69 -45
- package/dist/web/index.web147.js +16 -18
- package/dist/web/index.web148.js +3 -19
- package/dist/web/index.web149.js +4 -79
- package/dist/web/index.web150.js +4 -103
- package/dist/web/index.web151.js +4 -32
- package/dist/web/index.web152.js +19 -6
- package/dist/web/index.web153.js +49 -17
- package/dist/web/index.web154.js +18 -10
- package/dist/web/index.web155.js +23 -19
- package/dist/web/index.web156.js +9 -94
- package/dist/web/index.web157.js +33 -20
- package/dist/web/index.web158.js +8 -118
- package/dist/web/index.web159.js +21 -2
- package/dist/web/index.web160.js +7 -108
- package/dist/web/index.web162.js +370 -71
- package/dist/web/index.web163.js +835 -3
- package/dist/web/index.web164.js +38 -46
- package/dist/web/index.web165.js +2 -8
- package/dist/web/index.web166.js +70 -2
- package/dist/web/index.web167.js +30 -373
- package/dist/web/index.web168.js +20 -835
- package/dist/web/index.web169.js +77 -37
- package/dist/web/index.web170.js +5 -2
- package/dist/web/index.web171.js +2 -70
- package/dist/web/index.web172.js +106 -32
- package/dist/web/index.web173.js +2 -21
- package/dist/web/index.web174.js +18 -5
- package/dist/web/index.web175.js +28 -18
- package/dist/web/index.web176.js +6 -26
- package/dist/web/index.web177.js +9 -6
- package/dist/web/index.web178.js +13 -11
- package/dist/web/index.web179.js +8 -11
- package/dist/web/index.web180.js +14 -7
- package/dist/web/index.web181.js +80 -16
- package/dist/web/index.web182.js +45 -79
- package/dist/web/index.web183.js +1 -1
- package/dist/web/index.web2.js +2 -2
- package/dist/web/index.web29.js +81 -43
- package/dist/web/index.web3.js +1 -1
- package/dist/web/index.web50.js +12 -12
- package/dist/web/index.web54.js +3 -3
- package/dist/web/index.web57.js +2 -2
- package/dist/web/index.web61.js +3 -3
- package/dist/web/index.web65.js +1 -1
- package/dist/web/index.web66.js +1 -1
- package/dist/web/index.web67.js +2 -17
- package/dist/web/index.web68.js +2 -23
- package/dist/web/index.web69.js +13 -47
- package/dist/web/index.web70.js +18 -372
- package/dist/web/index.web71.js +50 -28
- package/dist/web/index.web72.js +17 -28
- package/dist/web/index.web73.js +46 -2
- package/dist/web/index.web74.js +14 -2
- package/dist/web/index.web75.js +58 -2
- package/dist/web/index.web76.js +6 -65
- package/dist/web/index.web77.js +13 -356
- package/dist/web/index.web78.js +11 -17
- package/dist/web/index.web79.js +3 -45
- package/dist/web/index.web8.js +1 -1
- package/dist/web/index.web80.js +3 -13
- package/dist/web/index.web81.js +31 -52
- package/dist/web/index.web82.js +12 -6
- package/dist/web/index.web83.js +4 -21
- package/dist/web/index.web84.js +28 -11
- package/dist/web/index.web85.js +6 -3
- package/dist/web/index.web86.js +42 -3
- package/dist/web/index.web87.js +54 -33
- package/dist/web/index.web88.js +126 -11
- package/dist/web/index.web89.js +23 -4
- package/dist/web/index.web90.js +11 -27
- package/dist/web/index.web91.js +104 -6
- package/dist/web/index.web92.js +6 -42
- package/dist/web/index.web93.js +3 -56
- package/dist/web/index.web94.js +14 -127
- package/dist/web/index.web95.js +32 -21
- package/dist/web/index.web96.js +76 -10
- package/dist/web/index.web97.js +2 -105
- package/dist/web/index.web98.js +2 -7
- package/dist/web/index.web99.js +13 -3
- package/dist/web-types/version.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,83 @@
|
|
|
1
|
-
|
|
1
|
+
import { JOSENotSupported as s } from "./index.native110.js";
|
|
2
|
+
function n(e) {
|
|
3
|
+
let a, r;
|
|
4
|
+
switch (e.kty) {
|
|
5
|
+
case "RSA": {
|
|
6
|
+
switch (e.alg) {
|
|
7
|
+
case "PS256":
|
|
8
|
+
case "PS384":
|
|
9
|
+
case "PS512":
|
|
10
|
+
a = { name: "RSA-PSS", hash: `SHA-${e.alg.slice(-3)}` }, r = e.d ? ["sign"] : ["verify"];
|
|
11
|
+
break;
|
|
12
|
+
case "RS256":
|
|
13
|
+
case "RS384":
|
|
14
|
+
case "RS512":
|
|
15
|
+
a = { name: "RSASSA-PKCS1-v1_5", hash: `SHA-${e.alg.slice(-3)}` }, r = e.d ? ["sign"] : ["verify"];
|
|
16
|
+
break;
|
|
17
|
+
case "RSA-OAEP":
|
|
18
|
+
case "RSA-OAEP-256":
|
|
19
|
+
case "RSA-OAEP-384":
|
|
20
|
+
case "RSA-OAEP-512":
|
|
21
|
+
a = {
|
|
22
|
+
name: "RSA-OAEP",
|
|
23
|
+
hash: `SHA-${parseInt(e.alg.slice(-3), 10) || 1}`
|
|
24
|
+
}, r = e.d ? ["decrypt", "unwrapKey"] : ["encrypt", "wrapKey"];
|
|
25
|
+
break;
|
|
26
|
+
default:
|
|
27
|
+
throw new s('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
|
|
28
|
+
}
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
case "EC": {
|
|
32
|
+
switch (e.alg) {
|
|
33
|
+
case "ES256":
|
|
34
|
+
a = { name: "ECDSA", namedCurve: "P-256" }, r = e.d ? ["sign"] : ["verify"];
|
|
35
|
+
break;
|
|
36
|
+
case "ES384":
|
|
37
|
+
a = { name: "ECDSA", namedCurve: "P-384" }, r = e.d ? ["sign"] : ["verify"];
|
|
38
|
+
break;
|
|
39
|
+
case "ES512":
|
|
40
|
+
a = { name: "ECDSA", namedCurve: "P-521" }, r = e.d ? ["sign"] : ["verify"];
|
|
41
|
+
break;
|
|
42
|
+
case "ECDH-ES":
|
|
43
|
+
case "ECDH-ES+A128KW":
|
|
44
|
+
case "ECDH-ES+A192KW":
|
|
45
|
+
case "ECDH-ES+A256KW":
|
|
46
|
+
a = { name: "ECDH", namedCurve: e.crv }, r = e.d ? ["deriveBits"] : [];
|
|
47
|
+
break;
|
|
48
|
+
default:
|
|
49
|
+
throw new s('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
|
|
50
|
+
}
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
case "OKP": {
|
|
54
|
+
switch (e.alg) {
|
|
55
|
+
case "Ed25519":
|
|
56
|
+
case "EdDSA":
|
|
57
|
+
a = { name: "Ed25519" }, r = e.d ? ["sign"] : ["verify"];
|
|
58
|
+
break;
|
|
59
|
+
case "ECDH-ES":
|
|
60
|
+
case "ECDH-ES+A128KW":
|
|
61
|
+
case "ECDH-ES+A192KW":
|
|
62
|
+
case "ECDH-ES+A256KW":
|
|
63
|
+
a = { name: e.crv }, r = e.d ? ["deriveBits"] : [];
|
|
64
|
+
break;
|
|
65
|
+
default:
|
|
66
|
+
throw new s('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
|
|
67
|
+
}
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
default:
|
|
71
|
+
throw new s('Invalid or unsupported JWK "kty" (Key Type) Parameter value');
|
|
72
|
+
}
|
|
73
|
+
return { algorithm: a, keyUsages: r };
|
|
74
|
+
}
|
|
75
|
+
const i = async (e) => {
|
|
76
|
+
if (!e.alg)
|
|
77
|
+
throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
|
|
78
|
+
const { algorithm: a, keyUsages: r } = n(e), t = { ...e };
|
|
79
|
+
return delete t.alg, delete t.use, crypto.subtle.importKey("jwk", t, a, e.ext ?? !e.d, e.key_ops ?? r);
|
|
80
|
+
};
|
|
2
81
|
export {
|
|
3
|
-
|
|
82
|
+
i as default
|
|
4
83
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import p from "./index.
|
|
2
|
-
import { getFramework as m } from "./index.
|
|
1
|
+
import p from "./index.native116.js";
|
|
2
|
+
import { getFramework as m } from "./index.native117.js";
|
|
3
3
|
const y = "1f8d3e558f493e38a037dbfadb8ba344", v = "d473b1dcc969105adab157226cd9cf63", i = Symbol.for("@coinbase/cdp-analytics");
|
|
4
4
|
function g() {
|
|
5
5
|
const t = globalThis;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { __require as r } from "./index.
|
|
1
|
+
import { __require as r } from "./index.native151.js";
|
|
2
2
|
r();
|
|
@@ -1,13 +1,41 @@
|
|
|
1
|
-
import { logOutEndUser as
|
|
1
|
+
import { logOutEndUser as u, refreshAccessToken as c, registerTemporaryWalletSecret as f } from "@coinbase/cdp-api-client";
|
|
2
2
|
import "jose";
|
|
3
|
-
import { SignJWT as
|
|
4
|
-
import { toAuthState as
|
|
3
|
+
import { SignJWT as S } from "./index.native52.js";
|
|
4
|
+
import { toAuthState as d } from "./index.native42.js";
|
|
5
5
|
import "viem";
|
|
6
|
-
import { getPlatformCrypto as
|
|
7
|
-
import { sortKeys as
|
|
8
|
-
import { getCoreOAuthManager as
|
|
9
|
-
const
|
|
10
|
-
|
|
6
|
+
import { getPlatformCrypto as l } from "./index.native8.js";
|
|
7
|
+
import { sortKeys as w } from "./index.native47.js";
|
|
8
|
+
import { getCoreOAuthManager as m } from "./index.native37.js";
|
|
9
|
+
const h = 60 * 1e3, y = {
|
|
10
|
+
maxRetries: 3,
|
|
11
|
+
baseDelayMs: 1e3,
|
|
12
|
+
maxDelayMs: 1e4
|
|
13
|
+
};
|
|
14
|
+
function g(t, e, s) {
|
|
15
|
+
const r = e * Math.pow(2, t), a = Math.random() * 0.3 * r;
|
|
16
|
+
return Math.min(r + a, s);
|
|
17
|
+
}
|
|
18
|
+
function T(t) {
|
|
19
|
+
return new Promise((e) => setTimeout(e, t));
|
|
20
|
+
}
|
|
21
|
+
function p(t) {
|
|
22
|
+
if (t instanceof TypeError && t.message.includes("fetch"))
|
|
23
|
+
return !0;
|
|
24
|
+
if (t && typeof t == "object" && "status" in t) {
|
|
25
|
+
const e = t.status;
|
|
26
|
+
if (e >= 500 && e < 600 || e === 408 || e === 429)
|
|
27
|
+
return !0;
|
|
28
|
+
if (e === 401)
|
|
29
|
+
return !1;
|
|
30
|
+
}
|
|
31
|
+
if (t instanceof Error) {
|
|
32
|
+
const e = t.message.toLowerCase();
|
|
33
|
+
if (e.includes("network") || e.includes("timeout") || e.includes("econnrefused") || e.includes("enotfound") || e.includes("socket"))
|
|
34
|
+
return !0;
|
|
35
|
+
}
|
|
36
|
+
return !1;
|
|
37
|
+
}
|
|
38
|
+
class M {
|
|
11
39
|
projectId;
|
|
12
40
|
authState = null;
|
|
13
41
|
walletSecret = null;
|
|
@@ -39,7 +67,7 @@ class R {
|
|
|
39
67
|
async isSignedIn() {
|
|
40
68
|
if (!this.authState)
|
|
41
69
|
return !1;
|
|
42
|
-
if (this.authState.expiresAt > Date.now() +
|
|
70
|
+
if (this.authState.expiresAt > Date.now() + h)
|
|
43
71
|
return !0;
|
|
44
72
|
try {
|
|
45
73
|
return await this.getToken() !== null;
|
|
@@ -52,7 +80,7 @@ class R {
|
|
|
52
80
|
*/
|
|
53
81
|
async signOut() {
|
|
54
82
|
try {
|
|
55
|
-
await
|
|
83
|
+
await u(this.projectId);
|
|
56
84
|
} catch {
|
|
57
85
|
} finally {
|
|
58
86
|
await this.clearAuthState();
|
|
@@ -109,14 +137,14 @@ class R {
|
|
|
109
137
|
if (!await this.isSignedIn())
|
|
110
138
|
throw new Error("Cannot get X-Wallet-Auth header if the user is not signed in");
|
|
111
139
|
this.shouldRefreshWalletSecret() && await this.refreshWalletSecret();
|
|
112
|
-
const
|
|
113
|
-
uris: [
|
|
140
|
+
const s = `${e.requestMethod} ${e.requestHost}${e.requestPath}`, r = Math.floor(Date.now() / 1e3), a = l(), i = {
|
|
141
|
+
uris: [s]
|
|
114
142
|
};
|
|
115
143
|
if (e.requestData && Object.keys(e.requestData).length > 0) {
|
|
116
|
-
const
|
|
117
|
-
|
|
144
|
+
const n = w(e.requestData);
|
|
145
|
+
i.reqHash = await a.hash(new TextEncoder().encode(JSON.stringify(n)));
|
|
118
146
|
}
|
|
119
|
-
return await new
|
|
147
|
+
return await new S(i).setProtectedHeader({ alg: "ES256", typ: "JWT" }).setIssuedAt(r).setNotBefore(r).setJti(a.generateRandomId()).sign(this.walletSecret.keyPair.privateKey);
|
|
120
148
|
}
|
|
121
149
|
/**
|
|
122
150
|
* Gets the authentication state.
|
|
@@ -132,7 +160,7 @@ class R {
|
|
|
132
160
|
* @param authState - The authentication state.
|
|
133
161
|
*/
|
|
134
162
|
async setAuthState(e) {
|
|
135
|
-
this.authState = e, this.authStateChangeCallbacks.forEach((
|
|
163
|
+
this.authState = e, this.authStateChangeCallbacks.forEach((s) => s(this.authState?.user ?? null)), this.scheduleTokenRefresh();
|
|
136
164
|
}
|
|
137
165
|
/**
|
|
138
166
|
* Clears the authentication state.
|
|
@@ -156,7 +184,7 @@ class R {
|
|
|
156
184
|
*/
|
|
157
185
|
async _doInitialize() {
|
|
158
186
|
try {
|
|
159
|
-
await this.refreshAccessToken(), await
|
|
187
|
+
await this.refreshAccessToken(), await m().handleOAuthCode();
|
|
160
188
|
} catch (e) {
|
|
161
189
|
console.warn("Failed to refresh access token during initialization:", e);
|
|
162
190
|
}
|
|
@@ -167,29 +195,39 @@ class R {
|
|
|
167
195
|
* @returns True if the token should be refreshed, false otherwise.
|
|
168
196
|
*/
|
|
169
197
|
shouldRefreshToken() {
|
|
170
|
-
return !(this.authState && this.authState.expiresAt > Date.now() +
|
|
198
|
+
return !(this.authState && this.authState.expiresAt > Date.now() + h);
|
|
171
199
|
}
|
|
172
200
|
/**
|
|
173
201
|
* Refreshes the access token and transitions the auth state accordingly.
|
|
174
202
|
* If a refresh is already in progress, it will wait for that refresh to complete.
|
|
203
|
+
* Retries with exponential backoff on transient failures only. Unauthorized error
|
|
204
|
+
* short-circuit immediately since retrying won't help.
|
|
175
205
|
*
|
|
176
206
|
* @returns The new access token.
|
|
177
207
|
*/
|
|
178
208
|
async refreshAccessToken() {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
209
|
+
const { maxRetries: e, baseDelayMs: s, maxDelayMs: r } = y;
|
|
210
|
+
for (let a = 0; a <= e; a++)
|
|
211
|
+
try {
|
|
212
|
+
const i = await c(this.projectId, {
|
|
213
|
+
grantType: "refresh_token"
|
|
214
|
+
}), n = d(
|
|
215
|
+
i.accessToken,
|
|
216
|
+
i.validUntil,
|
|
217
|
+
i.endUser
|
|
218
|
+
);
|
|
219
|
+
await this.setAuthState(n);
|
|
190
220
|
return;
|
|
191
|
-
|
|
192
|
-
|
|
221
|
+
} catch (i) {
|
|
222
|
+
if (!p(i)) {
|
|
223
|
+
await this.signOut();
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
if (a === e)
|
|
227
|
+
return;
|
|
228
|
+
const o = g(a, s, r);
|
|
229
|
+
await T(o);
|
|
230
|
+
}
|
|
193
231
|
}
|
|
194
232
|
/**
|
|
195
233
|
* Schedules a token refresh to occur exactly when shouldRefreshToken() would return true.
|
|
@@ -198,10 +236,10 @@ class R {
|
|
|
198
236
|
scheduleTokenRefresh() {
|
|
199
237
|
if (this.cancelTokenRefresh(), !this.authState)
|
|
200
238
|
return;
|
|
201
|
-
const
|
|
202
|
-
|
|
239
|
+
const s = this.authState.expiresAt - h - Date.now();
|
|
240
|
+
s <= 0 || (this.refreshTimeout = setTimeout(async () => {
|
|
203
241
|
await this.refreshAccessToken(), this.scheduleTokenRefresh();
|
|
204
|
-
},
|
|
242
|
+
}, s));
|
|
205
243
|
}
|
|
206
244
|
/**
|
|
207
245
|
* Cancels any scheduled token refresh.
|
|
@@ -215,7 +253,7 @@ class R {
|
|
|
215
253
|
* @returns True if the wallet secret should be refreshed, false otherwise.
|
|
216
254
|
*/
|
|
217
255
|
shouldRefreshWalletSecret() {
|
|
218
|
-
return !(this.walletSecret && this.walletSecret.expiresAt > Date.now() +
|
|
256
|
+
return !(this.walletSecret && this.walletSecret.expiresAt > Date.now() + h);
|
|
219
257
|
}
|
|
220
258
|
/**
|
|
221
259
|
* Refreshes the wallet secret. Assumes the user is signed in.
|
|
@@ -223,19 +261,19 @@ class R {
|
|
|
223
261
|
* @returns The wallet secret.
|
|
224
262
|
*/
|
|
225
263
|
async refreshWalletSecret() {
|
|
226
|
-
const e =
|
|
227
|
-
this.walletSecret = { walletSecretId:
|
|
264
|
+
const e = l(), s = this.walletSecret?.walletSecretId ?? e.generateRandomId(), r = this.walletSecret?.keyPair ?? await e.createKeyPair(), a = this.authState.expiresAt, i = new Date(a).toISOString();
|
|
265
|
+
this.walletSecret = { walletSecretId: s, keyPair: r, expiresAt: a };
|
|
228
266
|
try {
|
|
229
|
-
await
|
|
230
|
-
walletSecretId:
|
|
267
|
+
await f(this.projectId, this.authState.user.userId, {
|
|
268
|
+
walletSecretId: s,
|
|
231
269
|
publicKey: r.publicKeyBase64,
|
|
232
|
-
validUntil:
|
|
270
|
+
validUntil: i
|
|
233
271
|
});
|
|
234
|
-
} catch (
|
|
235
|
-
throw this.walletSecret = null,
|
|
272
|
+
} catch (n) {
|
|
273
|
+
throw this.walletSecret = null, n;
|
|
236
274
|
}
|
|
237
275
|
}
|
|
238
276
|
}
|
|
239
277
|
export {
|
|
240
|
-
|
|
278
|
+
M as AuthManager
|
|
241
279
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { serializeAuthorizationList as v } from "./index.
|
|
2
|
-
import { blobsToCommitments as H } from "./index.
|
|
3
|
-
import { blobsToProofs as V } from "./index.
|
|
4
|
-
import { commitmentsToVersionedHashes as k } from "./index.
|
|
5
|
-
import { toBlobSidecars as B } from "./index.
|
|
6
|
-
import { concatHex as T } from "./index.
|
|
7
|
-
import { trim as F } from "./index.
|
|
8
|
-
import { numberToHex as s, bytesToHex as S } from "./index.
|
|
9
|
-
import { toRlp as b } from "./index.
|
|
10
|
-
import { assertTransactionEIP1559 as _, assertTransactionEIP2930 as C, assertTransactionEIP4844 as R, assertTransactionEIP7702 as Y, assertTransactionLegacy as j } from "./index.
|
|
11
|
-
import { getTransactionType as q } from "./index.
|
|
12
|
-
import { serializeAccessList as h } from "./index.
|
|
1
|
+
import { serializeAuthorizationList as v } from "./index.native66.js";
|
|
2
|
+
import { blobsToCommitments as H } from "./index.native97.js";
|
|
3
|
+
import { blobsToProofs as V } from "./index.native98.js";
|
|
4
|
+
import { commitmentsToVersionedHashes as k } from "./index.native99.js";
|
|
5
|
+
import { toBlobSidecars as B } from "./index.native100.js";
|
|
6
|
+
import { concatHex as T } from "./index.native73.js";
|
|
7
|
+
import { trim as F } from "./index.native79.js";
|
|
8
|
+
import { numberToHex as s, bytesToHex as S } from "./index.native67.js";
|
|
9
|
+
import { toRlp as b } from "./index.native80.js";
|
|
10
|
+
import { assertTransactionEIP1559 as _, assertTransactionEIP2930 as C, assertTransactionEIP4844 as R, assertTransactionEIP7702 as Y, assertTransactionLegacy as j } from "./index.native90.js";
|
|
11
|
+
import { getTransactionType as q } from "./index.native88.js";
|
|
12
|
+
import { serializeAccessList as h } from "./index.native101.js";
|
|
13
13
|
function re(e, t) {
|
|
14
14
|
const i = q(e);
|
|
15
15
|
return i === "eip1559" ? J(e, t) : i === "eip2930" ? K(e, t) : i === "eip4844" ? D(e, t) : i === "eip7702" ? w(e, t) : M(e);
|
|
@@ -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.native109.js";
|
|
2
|
+
import { JWTInvalid as r } from "./index.native110.js";
|
|
3
|
+
import { JWTClaimsBuilder as n } from "./index.native111.js";
|
|
4
4
|
class d {
|
|
5
5
|
#s;
|
|
6
6
|
#t;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InvalidAddressError as s } from "./index.
|
|
2
|
-
import { isAddress as a } from "./index.
|
|
1
|
+
import { InvalidAddressError as s } from "./index.native93.js";
|
|
2
|
+
import { isAddress as a } from "./index.native72.js";
|
|
3
3
|
function r(n) {
|
|
4
4
|
if (typeof n == "string") {
|
|
5
5
|
if (!a(n, { strict: !1 }))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DisconnectedError as l, from as d } from "./index.
|
|
1
|
+
import { DisconnectedError as l, from as d } from "./index.native105.js";
|
|
2
2
|
import { validateRequest as h, EIP1193ProviderError as m, STANDARD_ERROR_CODES as _ } from "./index.native35.js";
|
|
3
|
-
import { createEOAHandlers as p } from "./index.
|
|
4
|
-
import { createSmartAccountHandlers as g } from "./index.
|
|
3
|
+
import { createEOAHandlers as p } from "./index.native112.js";
|
|
4
|
+
import { createSmartAccountHandlers as g } from "./index.native113.js";
|
|
5
5
|
import "viem";
|
|
6
6
|
import "zustand";
|
|
7
7
|
import "@coinbase/cdp-api-client";
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
class o {
|
|
3
|
-
#e;
|
|
4
|
-
constructor(e) {
|
|
5
|
-
this.#e = new n(e);
|
|
6
|
-
}
|
|
7
|
-
setProtectedHeader(e) {
|
|
8
|
-
return this.#e.setProtectedHeader(e), this;
|
|
9
|
-
}
|
|
10
|
-
async sign(e, r) {
|
|
11
|
-
const t = await this.#e.sign(e, r);
|
|
12
|
-
if (t.payload === void 0)
|
|
13
|
-
throw new TypeError("use the flattened module for creating JWS with b64: false");
|
|
14
|
-
return `${t.protected}.${t.payload}.${t.signature}`;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
var s = {};
|
|
17
2
|
export {
|
|
18
|
-
|
|
3
|
+
s as __exports
|
|
19
4
|
};
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
static code = "ERR_JOSE_GENERIC";
|
|
3
|
-
code = "ERR_JOSE_GENERIC";
|
|
4
|
-
constructor(s, e) {
|
|
5
|
-
super(s, e), this.name = this.constructor.name, Error.captureStackTrace?.(this, this.constructor);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
class E extends c {
|
|
9
|
-
static code = "ERR_JOSE_NOT_SUPPORTED";
|
|
10
|
-
code = "ERR_JOSE_NOT_SUPPORTED";
|
|
11
|
-
}
|
|
12
|
-
class o extends c {
|
|
13
|
-
static code = "ERR_JWS_INVALID";
|
|
14
|
-
code = "ERR_JWS_INVALID";
|
|
15
|
-
}
|
|
16
|
-
class r extends c {
|
|
17
|
-
static code = "ERR_JWT_INVALID";
|
|
18
|
-
code = "ERR_JWT_INVALID";
|
|
19
|
-
}
|
|
1
|
+
var e = {};
|
|
20
2
|
export {
|
|
21
|
-
|
|
22
|
-
E as JOSENotSupported,
|
|
23
|
-
o as JWSInvalid,
|
|
24
|
-
r as JWTInvalid
|
|
3
|
+
e as __exports
|
|
25
4
|
};
|
|
@@ -1,53 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
this.#t = structuredClone(t);
|
|
16
|
-
}
|
|
17
|
-
data() {
|
|
18
|
-
return n.encode(JSON.stringify(this.#t));
|
|
19
|
-
}
|
|
20
|
-
get iss() {
|
|
21
|
-
return this.#t.iss;
|
|
22
|
-
}
|
|
23
|
-
set iss(t) {
|
|
24
|
-
this.#t.iss = t;
|
|
25
|
-
}
|
|
26
|
-
get sub() {
|
|
27
|
-
return this.#t.sub;
|
|
28
|
-
}
|
|
29
|
-
set sub(t) {
|
|
30
|
-
this.#t.sub = t;
|
|
31
|
-
}
|
|
32
|
-
get aud() {
|
|
33
|
-
return this.#t.aud;
|
|
34
|
-
}
|
|
35
|
-
set aud(t) {
|
|
36
|
-
this.#t.aud = t;
|
|
37
|
-
}
|
|
38
|
-
set jti(t) {
|
|
39
|
-
this.#t.jti = t;
|
|
40
|
-
}
|
|
41
|
-
set nbf(t) {
|
|
42
|
-
typeof t == "number" ? this.#t.nbf = s("setNotBefore", t) : t instanceof Date ? this.#t.nbf = s("setNotBefore", e(t)) : this.#t.nbf = e(/* @__PURE__ */ new Date()) + i(t);
|
|
43
|
-
}
|
|
44
|
-
set exp(t) {
|
|
45
|
-
typeof t == "number" ? this.#t.exp = s("setExpirationTime", t) : t instanceof Date ? this.#t.exp = s("setExpirationTime", e(t)) : this.#t.exp = e(/* @__PURE__ */ new Date()) + i(t);
|
|
46
|
-
}
|
|
47
|
-
set iat(t) {
|
|
48
|
-
typeof t > "u" ? this.#t.iat = e(/* @__PURE__ */ new Date()) : t instanceof Date ? this.#t.iat = s("setIssuedAt", e(t)) : typeof t == "string" ? this.#t.iat = s("setIssuedAt", e(/* @__PURE__ */ new Date()) + i(t)) : this.#t.iat = s("setIssuedAt", t);
|
|
1
|
+
import { toHex as i } from "./index.native67.js";
|
|
2
|
+
import { toYParitySignatureArray as c } from "./index.native48.js";
|
|
3
|
+
function f(r) {
|
|
4
|
+
if (!r || r.length === 0)
|
|
5
|
+
return [];
|
|
6
|
+
const t = [];
|
|
7
|
+
for (const o of r) {
|
|
8
|
+
const { chainId: n, nonce: e, ...s } = o, a = o.address;
|
|
9
|
+
t.push([
|
|
10
|
+
n ? i(n) : "0x",
|
|
11
|
+
a,
|
|
12
|
+
e ? i(e) : "0x",
|
|
13
|
+
...c({}, s)
|
|
14
|
+
]);
|
|
49
15
|
}
|
|
16
|
+
return t;
|
|
50
17
|
}
|
|
51
18
|
export {
|
|
52
|
-
|
|
19
|
+
f as serializeAuthorizationList
|
|
53
20
|
};
|