@coinbase/cdp-core 0.0.125 → 0.0.126
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 +27 -37
- package/dist/esm/index.web.js +232 -233
- package/dist/esm/index.web10.js +4 -4
- package/dist/esm/index.web101.js +16 -20
- package/dist/esm/index.web102.js +10 -13
- package/dist/esm/index.web105.js +11 -13
- package/dist/esm/index.web106.js +5 -7
- package/dist/esm/index.web107.js +1 -1
- package/dist/esm/index.web11.js +1 -1
- package/dist/esm/index.web111.js +1 -1
- package/dist/esm/index.web12.js +1 -1
- package/dist/esm/index.web120.js +41 -49
- package/dist/esm/index.web121.js +47 -83
- package/dist/esm/index.web122.js +81 -46
- package/dist/esm/index.web123.js +26 -37
- package/dist/esm/index.web124.js +155 -68
- package/dist/esm/index.web125.js +47 -10
- package/dist/esm/index.web126.js +29 -8
- package/dist/esm/index.web127.js +69 -117
- package/dist/esm/index.web128.js +10 -136
- package/dist/esm/index.web129.js +6 -69
- package/dist/esm/index.web13.js +2 -2
- package/dist/esm/index.web130.js +119 -27
- package/dist/esm/index.web131.js +136 -32
- package/dist/esm/index.web132.js +70 -24
- package/dist/esm/index.web133.js +27 -65
- package/dist/esm/index.web134.js +32 -23
- package/dist/esm/index.web135.js +23 -50
- package/dist/esm/index.web136.js +62 -18
- package/dist/esm/index.web137.js +24 -29
- package/dist/esm/index.web138.js +51 -29
- package/dist/esm/index.web139.js +19 -943
- package/dist/esm/index.web140.js +153 -2
- package/dist/esm/index.web141.js +376 -49
- package/dist/esm/index.web142.js +28 -26
- package/dist/esm/index.web143.js +29 -5
- package/dist/esm/index.web144.js +2 -50
- package/dist/esm/index.web145.js +65 -17
- package/dist/esm/index.web146.js +363 -30
- package/dist/esm/index.web147.js +16 -7
- package/dist/esm/index.web148.js +22 -3
- package/dist/esm/index.web149.js +49 -30
- package/dist/esm/index.web15.js +1 -1
- package/dist/esm/index.web150.js +944 -8
- package/dist/esm/index.web151.js +2 -8
- package/dist/esm/index.web152.js +49 -82
- package/dist/esm/index.web153.js +26 -31
- package/dist/esm/index.web154.js +5 -4
- package/dist/esm/index.web155.js +47 -18
- package/dist/esm/index.web156.js +4 -4
- package/dist/esm/index.web157.js +12 -17
- package/dist/esm/index.web158.js +11 -19
- package/dist/esm/index.web159.js +52 -62
- package/dist/esm/index.web16.js +1 -1
- package/dist/esm/index.web160.js +10 -18
- package/dist/esm/index.web161.js +2 -24
- package/dist/esm/index.web162.js +45 -9
- package/dist/esm/index.web163.js +13 -45
- package/dist/esm/index.web164.js +2 -8
- package/dist/esm/index.web165.js +2 -21
- package/dist/esm/index.web166.js +16 -2
- package/dist/esm/index.web167.js +30 -2
- package/dist/esm/index.web168.js +7 -38
- package/dist/esm/index.web169.js +4 -2
- package/dist/esm/index.web17.js +1 -1
- package/dist/esm/index.web170.js +29 -69
- package/dist/esm/index.web171.js +8 -34
- package/dist/esm/index.web172.js +7 -14
- package/dist/esm/index.web173.js +81 -7
- package/dist/esm/index.web174.js +30 -2
- package/dist/esm/index.web175.js +3 -360
- package/dist/esm/index.web176.js +16 -852
- package/dist/esm/index.web177.js +4 -3
- package/dist/esm/index.web178.js +16 -2
- package/dist/esm/index.web179.js +20 -2
- package/dist/esm/index.web18.js +1 -1
- package/dist/esm/index.web180.js +63 -2
- package/dist/esm/index.web181.js +20 -0
- package/dist/esm/index.web182.js +26 -0
- package/dist/esm/index.web183.js +11 -0
- package/dist/esm/index.web184.js +46 -0
- package/dist/esm/index.web185.js +10 -0
- package/dist/esm/index.web186.js +23 -0
- package/dist/esm/index.web187.js +16 -0
- package/dist/esm/index.web188.js +58 -0
- package/dist/esm/index.web189.js +9 -0
- package/dist/esm/index.web19.js +1 -1
- package/dist/esm/index.web190.js +24 -0
- package/dist/esm/index.web191.js +20 -0
- package/dist/esm/index.web192.js +48 -0
- package/dist/esm/index.web193.js +6 -0
- package/dist/esm/index.web194.js +6 -0
- package/dist/esm/index.web195.js +37 -0
- package/dist/esm/index.web196.js +15 -0
- package/dist/esm/index.web197.js +7 -0
- package/dist/esm/index.web198.js +31 -0
- package/dist/esm/index.web199.js +9 -0
- package/dist/esm/index.web2.js +2 -2
- package/dist/esm/index.web20.js +4 -4
- package/dist/esm/index.web200.js +35 -0
- package/dist/esm/index.web201.js +15 -0
- package/dist/esm/index.web202.js +58 -0
- package/dist/esm/index.web203.js +45 -0
- package/dist/esm/index.web204.js +130 -0
- package/dist/esm/index.web205.js +107 -0
- package/dist/esm/index.web206.js +9 -0
- package/dist/esm/index.web207.js +5 -0
- package/dist/esm/index.web208.js +81 -0
- package/dist/esm/index.web209.js +4 -0
- package/dist/esm/index.web210.js +4 -0
- package/dist/esm/index.web211.js +40 -0
- package/dist/esm/index.web212.js +9 -0
- package/dist/esm/index.web213.js +37 -0
- package/dist/esm/index.web214.js +17 -0
- package/dist/esm/index.web215.js +37 -0
- package/dist/esm/index.web216.js +21 -0
- package/dist/esm/index.web217.js +11 -0
- package/dist/esm/index.web218.js +13 -0
- package/dist/esm/index.web219.js +14 -0
- package/dist/esm/index.web220.js +16 -0
- package/dist/esm/index.web221.js +8 -0
- package/dist/esm/index.web222.js +7 -0
- package/dist/esm/index.web223.js +13 -0
- package/dist/esm/index.web224.js +41 -0
- package/dist/esm/index.web225.js +4 -0
- package/dist/esm/index.web226.js +72 -0
- package/dist/esm/index.web227.js +37 -0
- package/dist/esm/index.web228.js +17 -0
- package/dist/esm/index.web229.js +10 -0
- package/dist/esm/index.web230.js +4 -0
- package/dist/esm/index.web231.js +363 -0
- package/dist/esm/index.web232.js +855 -0
- package/dist/esm/index.web233.js +4 -0
- package/dist/esm/index.web234.js +111 -0
- package/dist/esm/index.web235.js +4 -0
- package/dist/esm/index.web236.js +106 -0
- package/dist/esm/index.web237.js +81 -0
- package/dist/esm/index.web238.js +81 -0
- package/dist/esm/index.web239.js +23 -0
- package/dist/esm/index.web240.js +12 -0
- package/dist/esm/index.web241.js +22 -0
- package/dist/esm/index.web242.js +96 -0
- package/dist/esm/index.web243.js +23 -0
- package/dist/esm/index.web244.js +120 -0
- package/dist/esm/index.web245.js +23 -0
- package/dist/esm/index.web246.js +4 -0
- package/dist/esm/index.web247.js +22 -0
- package/dist/esm/index.web248.js +35 -0
- package/dist/esm/index.web249.js +9 -0
- package/dist/esm/index.web250.js +4 -0
- package/dist/esm/index.web251.js +4 -0
- package/dist/esm/index.web252.js +4 -0
- package/dist/esm/index.web253.js +6 -0
- package/dist/esm/index.web254.js +49 -0
- package/dist/esm/index.web255.js +20 -0
- package/dist/esm/index.web256.js +30 -0
- package/dist/esm/index.web257.js +10 -0
- package/dist/esm/index.web258.js +13 -0
- package/dist/esm/index.web259.js +15 -0
- package/dist/esm/index.web260.js +12 -0
- package/dist/esm/index.web261.js +19 -0
- package/dist/esm/index.web262.js +83 -0
- package/dist/esm/index.web263.js +7 -0
- package/dist/esm/index.web264.js +81 -0
- package/dist/esm/index.web265.js +17 -0
- package/dist/esm/index.web29.js +2 -4
- package/dist/esm/index.web3.js +1 -1
- package/dist/esm/index.web30.js +8 -9
- package/dist/esm/index.web31.js +12 -14
- package/dist/esm/index.web32.js +5 -7
- package/dist/esm/index.web33.js +11 -13
- package/dist/esm/index.web34.js +8 -10
- package/dist/esm/index.web35.js +14 -15
- package/dist/esm/index.web36.js +3 -5
- package/dist/esm/index.web37.js +10 -12
- package/dist/esm/index.web39.js +2 -4
- package/dist/esm/index.web40.js +8 -10
- package/dist/esm/index.web41.js +7 -9
- package/dist/esm/index.web43.js +9 -11
- package/dist/esm/index.web44.js +6 -8
- package/dist/esm/index.web46.js +41 -114
- package/dist/esm/index.web50.js +9 -11
- package/dist/esm/index.web66.js +6 -8
- package/dist/esm/index.web67.js +5 -7
- package/dist/esm/index.web68.js +4 -6
- package/dist/esm/index.web69.js +5 -7
- package/dist/esm/index.web72.js +35 -37
- package/dist/esm/index.web75.js +7 -9
- package/dist/esm/index.web76.js +2 -4
- package/dist/esm/index.web77.js +7 -9
- package/dist/esm/index.web83.js +11 -13
- package/dist/esm/index.web84.js +7 -9
- package/dist/esm/index.web88.js +7 -9
- package/dist/esm/index.web9.js +1 -1
- package/dist/esm/index.web94.js +4 -5
- package/dist/esm/index.web96.js +1 -1
- package/dist/esm/index.web98.js +20 -22
- package/dist/native/index.native.js +211 -212
- package/dist/native/index.native100.js +10 -13
- package/dist/native/index.native101.js +2 -4
- package/dist/native/index.native109.js +1 -1
- package/dist/native/index.native11.js +1 -1
- package/dist/native/index.native118.js +41 -49
- package/dist/native/index.native119.js +47 -82
- package/dist/native/index.native12.js +4 -4
- package/dist/native/index.native120.js +80 -46
- package/dist/native/index.native121.js +26 -31
- package/dist/native/index.native122.js +155 -68
- package/dist/native/index.native123.js +47 -8
- package/dist/native/index.native124.js +16 -112
- package/dist/native/index.native125.js +71 -135
- package/dist/native/index.native126.js +6 -68
- package/dist/native/index.native127.js +118 -27
- package/dist/native/index.native128.js +136 -32
- package/dist/native/index.native129.js +69 -24
- package/dist/native/index.native13.js +1 -1
- package/dist/native/index.native130.js +27 -65
- package/dist/native/index.native131.js +32 -23
- package/dist/native/index.native132.js +23 -50
- package/dist/native/index.native133.js +62 -18
- package/dist/native/index.native134.js +23 -108
- package/dist/native/index.native135.js +48 -73
- package/dist/native/index.native136.js +21 -29
- package/dist/native/index.native137.js +152 -28
- package/dist/native/index.native138.js +16 -944
- package/dist/native/index.native139.js +23 -2
- package/dist/native/index.native14.js +1 -1
- package/dist/native/index.native140.js +50 -49
- package/dist/native/index.native141.js +105 -25
- package/dist/native/index.native142.js +74 -5
- package/dist/native/index.native143.js +376 -47
- package/dist/native/index.native144.js +29 -2
- package/dist/native/index.native145.js +29 -2
- package/dist/native/index.native146.js +2 -38
- package/dist/native/index.native147.js +63 -65
- package/dist/native/index.native148.js +358 -57
- package/dist/native/index.native149.js +944 -16
- package/dist/native/index.native15.js +2 -2
- package/dist/native/index.native150.js +2 -31
- package/dist/native/index.native151.js +49 -7
- package/dist/native/index.native152.js +26 -3
- package/dist/native/index.native153.js +5 -31
- package/dist/native/index.native154.js +47 -8
- package/dist/native/index.native155.js +54 -7
- package/dist/native/index.native156.js +10 -81
- package/dist/native/index.native157.js +2 -31
- package/dist/native/index.native158.js +45 -4
- package/dist/native/index.native159.js +13 -17
- package/dist/native/index.native160.js +4 -4
- package/dist/native/index.native161.js +12 -16
- package/dist/native/index.native162.js +11 -19
- package/dist/native/index.native163.js +2 -64
- package/dist/native/index.native164.js +2 -19
- package/dist/native/index.native165.js +36 -24
- package/dist/native/index.native166.js +67 -8
- package/dist/native/index.native167.js +60 -41
- package/dist/native/index.native168.js +14 -7
- package/dist/native/index.native169.js +21 -13
- package/dist/native/index.native17.js +1 -1
- package/dist/native/index.native170.js +7 -7
- package/dist/native/index.native171.js +4 -2
- package/dist/native/index.native172.js +27 -359
- package/dist/native/index.native173.js +8 -852
- package/dist/native/index.native174.js +7 -38
- package/dist/native/index.native175.js +81 -2
- package/dist/native/index.native176.js +28 -69
- package/dist/native/index.native177.js +3 -34
- package/dist/native/index.native178.js +15 -14
- package/dist/native/index.native179.js +5 -2
- package/dist/native/index.native18.js +1 -1
- package/dist/native/index.native180.js +15 -2
- package/dist/native/index.native181.js +20 -2
- package/dist/native/index.native182.js +60 -9
- package/dist/native/index.native183.js +17 -3
- package/dist/native/index.native184.js +26 -0
- package/dist/native/index.native185.js +11 -0
- package/dist/native/index.native186.js +45 -0
- package/dist/native/index.native187.js +10 -0
- package/dist/native/index.native188.js +23 -0
- package/dist/native/index.native189.js +16 -0
- package/dist/native/index.native19.js +1 -1
- package/dist/native/index.native190.js +58 -0
- package/dist/native/index.native191.js +9 -0
- package/dist/native/index.native192.js +24 -0
- package/dist/native/index.native193.js +20 -0
- package/dist/native/index.native194.js +48 -0
- package/dist/native/index.native195.js +6 -0
- package/dist/native/index.native196.js +6 -0
- package/dist/native/index.native197.js +37 -0
- package/dist/native/index.native198.js +15 -0
- package/dist/native/index.native199.js +7 -0
- package/dist/native/index.native2.js +2 -2
- package/dist/native/index.native20.js +1 -1
- package/dist/native/index.native200.js +31 -0
- package/dist/native/index.native201.js +9 -0
- package/dist/native/index.native202.js +35 -0
- package/dist/native/index.native203.js +15 -0
- package/dist/native/index.native204.js +58 -0
- package/dist/native/index.native205.js +45 -0
- package/dist/native/index.native206.js +130 -0
- package/dist/native/index.native207.js +107 -0
- package/dist/native/index.native208.js +9 -0
- package/dist/native/index.native209.js +5 -0
- package/dist/native/index.native21.js +1 -1
- package/dist/native/index.native210.js +81 -0
- package/dist/native/index.native211.js +4 -0
- package/dist/native/index.native212.js +4 -0
- package/dist/native/index.native213.js +40 -0
- package/dist/native/index.native214.js +9 -0
- package/dist/native/index.native215.js +37 -0
- package/dist/native/index.native216.js +17 -0
- package/dist/native/index.native217.js +37 -0
- package/dist/native/index.native218.js +21 -0
- package/dist/native/index.native219.js +11 -0
- package/dist/native/index.native22.js +4 -4
- package/dist/native/index.native220.js +13 -0
- package/dist/native/index.native221.js +14 -0
- package/dist/native/index.native222.js +16 -0
- package/dist/native/index.native223.js +8 -0
- package/dist/native/index.native224.js +7 -0
- package/dist/native/index.native225.js +13 -0
- package/dist/native/index.native226.js +23 -0
- package/dist/native/index.native227.js +12 -0
- package/dist/native/index.native228.js +22 -0
- package/dist/native/index.native229.js +96 -0
- package/dist/native/index.native230.js +23 -0
- package/dist/native/index.native231.js +120 -0
- package/dist/native/index.native232.js +111 -0
- package/dist/native/index.native233.js +4 -0
- package/dist/native/index.native234.js +4 -0
- package/dist/native/index.native235.js +10 -0
- package/dist/native/index.native236.js +4 -0
- package/dist/native/index.native237.js +363 -0
- package/dist/native/index.native238.js +855 -0
- package/dist/native/index.native239.js +41 -0
- package/dist/native/index.native240.js +4 -0
- package/dist/native/index.native241.js +72 -0
- package/dist/native/index.native242.js +37 -0
- package/dist/native/index.native243.js +17 -0
- package/dist/native/index.native244.js +106 -0
- package/dist/native/index.native245.js +81 -0
- package/dist/native/index.native246.js +81 -0
- package/dist/native/index.native247.js +23 -0
- package/dist/native/index.native248.js +4 -0
- package/dist/native/index.native249.js +22 -0
- package/dist/native/index.native250.js +35 -0
- package/dist/native/index.native251.js +9 -0
- package/dist/native/index.native252.js +49 -0
- package/dist/native/index.native253.js +13 -0
- package/dist/native/index.native254.js +6 -0
- package/dist/native/index.native255.js +4 -0
- package/dist/native/index.native256.js +4 -0
- package/dist/native/index.native257.js +4 -0
- package/dist/native/index.native258.js +20 -0
- package/dist/native/index.native259.js +30 -0
- package/dist/native/index.native260.js +10 -0
- package/dist/native/index.native261.js +13 -0
- package/dist/native/index.native262.js +15 -0
- package/dist/native/index.native263.js +12 -0
- package/dist/native/index.native264.js +19 -0
- package/dist/native/index.native265.js +83 -0
- package/dist/native/index.native266.js +7 -0
- package/dist/native/index.native267.js +17 -0
- package/dist/native/index.native268.js +81 -0
- package/dist/native/index.native3.js +1 -1
- package/dist/native/index.native31.js +2 -4
- package/dist/native/index.native32.js +8 -9
- package/dist/native/index.native33.js +7 -9
- package/dist/native/index.native34.js +5 -7
- package/dist/native/index.native35.js +8 -10
- package/dist/native/index.native36.js +9 -11
- package/dist/native/index.native37.js +11 -12
- package/dist/native/index.native38.js +2 -4
- package/dist/native/index.native39.js +8 -10
- package/dist/native/index.native41.js +2 -4
- package/dist/native/index.native42.js +9 -11
- package/dist/native/index.native43.js +8 -10
- package/dist/native/index.native45.js +10 -12
- package/dist/native/index.native46.js +2 -4
- package/dist/native/index.native48.js +41 -114
- package/dist/native/index.native52.js +2 -4
- package/dist/native/index.native68.js +9 -11
- package/dist/native/index.native69.js +6 -8
- package/dist/native/index.native70.js +8 -10
- package/dist/native/index.native71.js +7 -9
- package/dist/native/index.native74.js +35 -37
- package/dist/native/index.native77.js +6 -8
- package/dist/native/index.native78.js +2 -4
- package/dist/native/index.native79.js +5 -7
- package/dist/native/index.native85.js +10 -12
- package/dist/native/index.native86.js +8 -10
- package/dist/native/index.native93.js +6 -7
- package/dist/native/index.native94.js +1 -1
- package/dist/native/index.native96.js +20 -22
- package/dist/native/index.native99.js +10 -14
- package/dist/native-types/actions/fetchWithX402.d.ts +13 -80
- package/dist/native-types/index.d.ts +1 -1
- package/dist/native-types/index.native.d.ts +1 -1
- package/dist/native-types/index.web.d.ts +1 -1
- package/dist/native-types/version.d.ts +1 -1
- package/dist/types/actions/fetchWithX402.d.ts +13 -80
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.native.d.ts +1 -1
- package/dist/types/index.web.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/web/index.web.js +232 -233
- package/dist/web/index.web10.js +4 -4
- package/dist/web/index.web101.js +16 -20
- package/dist/web/index.web102.js +10 -13
- package/dist/web/index.web105.js +11 -13
- package/dist/web/index.web106.js +5 -7
- package/dist/web/index.web107.js +1 -1
- package/dist/web/index.web11.js +1 -1
- package/dist/web/index.web111.js +1 -1
- package/dist/web/index.web12.js +1 -1
- package/dist/web/index.web120.js +41 -49
- package/dist/web/index.web121.js +47 -83
- package/dist/web/index.web122.js +81 -46
- package/dist/web/index.web123.js +26 -37
- package/dist/web/index.web124.js +155 -68
- package/dist/web/index.web125.js +47 -10
- package/dist/web/index.web126.js +29 -8
- package/dist/web/index.web127.js +69 -117
- package/dist/web/index.web128.js +10 -136
- package/dist/web/index.web129.js +6 -69
- package/dist/web/index.web13.js +2 -2
- package/dist/web/index.web130.js +119 -27
- package/dist/web/index.web131.js +136 -32
- package/dist/web/index.web132.js +70 -24
- package/dist/web/index.web133.js +27 -65
- package/dist/web/index.web134.js +32 -23
- package/dist/web/index.web135.js +23 -50
- package/dist/web/index.web136.js +62 -18
- package/dist/web/index.web137.js +24 -29
- package/dist/web/index.web138.js +51 -29
- package/dist/web/index.web139.js +19 -943
- package/dist/web/index.web140.js +153 -2
- package/dist/web/index.web141.js +376 -49
- package/dist/web/index.web142.js +28 -26
- package/dist/web/index.web143.js +29 -5
- package/dist/web/index.web144.js +2 -50
- package/dist/web/index.web145.js +65 -17
- package/dist/web/index.web146.js +363 -30
- package/dist/web/index.web147.js +16 -7
- package/dist/web/index.web148.js +22 -3
- package/dist/web/index.web149.js +49 -30
- package/dist/web/index.web15.js +1 -1
- package/dist/web/index.web150.js +944 -8
- package/dist/web/index.web151.js +2 -8
- package/dist/web/index.web152.js +49 -82
- package/dist/web/index.web153.js +26 -31
- package/dist/web/index.web154.js +5 -4
- package/dist/web/index.web155.js +47 -18
- package/dist/web/index.web156.js +4 -4
- package/dist/web/index.web157.js +12 -17
- package/dist/web/index.web158.js +11 -19
- package/dist/web/index.web159.js +52 -62
- package/dist/web/index.web16.js +1 -1
- package/dist/web/index.web160.js +10 -18
- package/dist/web/index.web161.js +2 -24
- package/dist/web/index.web162.js +45 -9
- package/dist/web/index.web163.js +13 -45
- package/dist/web/index.web164.js +2 -8
- package/dist/web/index.web165.js +2 -21
- package/dist/web/index.web166.js +16 -2
- package/dist/web/index.web167.js +30 -2
- package/dist/web/index.web168.js +7 -38
- package/dist/web/index.web169.js +4 -2
- package/dist/web/index.web17.js +1 -1
- package/dist/web/index.web170.js +29 -69
- package/dist/web/index.web171.js +8 -34
- package/dist/web/index.web172.js +7 -14
- package/dist/web/index.web173.js +81 -7
- package/dist/web/index.web174.js +30 -2
- package/dist/web/index.web175.js +3 -360
- package/dist/web/index.web176.js +16 -852
- package/dist/web/index.web177.js +4 -3
- package/dist/web/index.web178.js +16 -2
- package/dist/web/index.web179.js +20 -2
- package/dist/web/index.web18.js +1 -1
- package/dist/web/index.web180.js +63 -2
- package/dist/web/index.web181.js +20 -0
- package/dist/web/index.web182.js +26 -0
- package/dist/web/index.web183.js +11 -0
- package/dist/web/index.web184.js +46 -0
- package/dist/web/index.web185.js +10 -0
- package/dist/web/index.web186.js +23 -0
- package/dist/web/index.web187.js +16 -0
- package/dist/web/index.web188.js +58 -0
- package/dist/web/index.web189.js +9 -0
- package/dist/web/index.web19.js +1 -1
- package/dist/web/index.web190.js +24 -0
- package/dist/web/index.web191.js +20 -0
- package/dist/web/index.web192.js +48 -0
- package/dist/web/index.web193.js +6 -0
- package/dist/web/index.web194.js +6 -0
- package/dist/web/index.web195.js +37 -0
- package/dist/web/index.web196.js +15 -0
- package/dist/web/index.web197.js +7 -0
- package/dist/web/index.web198.js +31 -0
- package/dist/web/index.web199.js +9 -0
- package/dist/web/index.web2.js +2 -2
- package/dist/web/index.web20.js +4 -4
- package/dist/web/index.web200.js +35 -0
- package/dist/web/index.web201.js +15 -0
- package/dist/web/index.web202.js +58 -0
- package/dist/web/index.web203.js +45 -0
- package/dist/web/index.web204.js +130 -0
- package/dist/web/index.web205.js +107 -0
- package/dist/web/index.web206.js +9 -0
- package/dist/web/index.web207.js +5 -0
- package/dist/web/index.web208.js +81 -0
- package/dist/web/index.web209.js +4 -0
- package/dist/web/index.web210.js +4 -0
- package/dist/web/index.web211.js +40 -0
- package/dist/web/index.web212.js +9 -0
- package/dist/web/index.web213.js +37 -0
- package/dist/web/index.web214.js +17 -0
- package/dist/web/index.web215.js +37 -0
- package/dist/web/index.web216.js +21 -0
- package/dist/web/index.web217.js +11 -0
- package/dist/web/index.web218.js +13 -0
- package/dist/web/index.web219.js +14 -0
- package/dist/web/index.web220.js +16 -0
- package/dist/web/index.web221.js +8 -0
- package/dist/web/index.web222.js +7 -0
- package/dist/web/index.web223.js +13 -0
- package/dist/web/index.web224.js +41 -0
- package/dist/web/index.web225.js +4 -0
- package/dist/web/index.web226.js +72 -0
- package/dist/web/index.web227.js +37 -0
- package/dist/web/index.web228.js +17 -0
- package/dist/web/index.web229.js +10 -0
- package/dist/web/index.web230.js +4 -0
- package/dist/web/index.web231.js +363 -0
- package/dist/web/index.web232.js +855 -0
- package/dist/web/index.web233.js +4 -0
- package/dist/web/index.web234.js +111 -0
- package/dist/web/index.web235.js +4 -0
- package/dist/web/index.web236.js +106 -0
- package/dist/web/index.web237.js +81 -0
- package/dist/web/index.web238.js +81 -0
- package/dist/web/index.web239.js +23 -0
- package/dist/web/index.web240.js +12 -0
- package/dist/web/index.web241.js +22 -0
- package/dist/web/index.web242.js +96 -0
- package/dist/web/index.web243.js +23 -0
- package/dist/web/index.web244.js +120 -0
- package/dist/web/index.web245.js +23 -0
- package/dist/web/index.web246.js +4 -0
- package/dist/web/index.web247.js +22 -0
- package/dist/web/index.web248.js +35 -0
- package/dist/web/index.web249.js +9 -0
- package/dist/web/index.web250.js +4 -0
- package/dist/web/index.web251.js +4 -0
- package/dist/web/index.web252.js +4 -0
- package/dist/web/index.web253.js +6 -0
- package/dist/web/index.web254.js +49 -0
- package/dist/web/index.web255.js +20 -0
- package/dist/web/index.web256.js +30 -0
- package/dist/web/index.web257.js +10 -0
- package/dist/web/index.web258.js +13 -0
- package/dist/web/index.web259.js +15 -0
- package/dist/web/index.web260.js +12 -0
- package/dist/web/index.web261.js +19 -0
- package/dist/web/index.web262.js +83 -0
- package/dist/web/index.web263.js +7 -0
- package/dist/web/index.web264.js +81 -0
- package/dist/web/index.web265.js +17 -0
- package/dist/web/index.web29.js +2 -4
- package/dist/web/index.web3.js +1 -1
- package/dist/web/index.web30.js +8 -9
- package/dist/web/index.web31.js +12 -14
- package/dist/web/index.web32.js +5 -7
- package/dist/web/index.web33.js +11 -13
- package/dist/web/index.web34.js +8 -10
- package/dist/web/index.web35.js +14 -15
- package/dist/web/index.web36.js +3 -5
- package/dist/web/index.web37.js +10 -12
- package/dist/web/index.web39.js +2 -4
- package/dist/web/index.web40.js +8 -10
- package/dist/web/index.web41.js +7 -9
- package/dist/web/index.web43.js +9 -11
- package/dist/web/index.web44.js +6 -8
- package/dist/web/index.web46.js +41 -114
- package/dist/web/index.web50.js +9 -11
- package/dist/web/index.web66.js +6 -8
- package/dist/web/index.web67.js +5 -7
- package/dist/web/index.web68.js +4 -6
- package/dist/web/index.web69.js +5 -7
- package/dist/web/index.web72.js +35 -37
- package/dist/web/index.web75.js +7 -9
- package/dist/web/index.web76.js +2 -4
- package/dist/web/index.web77.js +7 -9
- package/dist/web/index.web83.js +11 -13
- package/dist/web/index.web84.js +7 -9
- package/dist/web/index.web88.js +7 -9
- package/dist/web/index.web9.js +1 -1
- package/dist/web/index.web94.js +4 -5
- package/dist/web/index.web96.js +1 -1
- package/dist/web/index.web98.js +20 -22
- package/dist/web-types/actions/fetchWithX402.d.ts +13 -80
- package/dist/web-types/index.d.ts +1 -1
- package/dist/web-types/index.native.d.ts +1 -1
- package/dist/web-types/index.web.d.ts +1 -1
- package/dist/web-types/version.d.ts +1 -1
- package/package.json +11 -23
package/dist/esm/index.web101.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import "viem/chains";
|
|
2
1
|
import { createStore as a } from "zustand";
|
|
3
|
-
import { subscribeWithSelector as c, persist as d, createJSONStorage as h } from "
|
|
4
|
-
import { EventEmitter as f } from "./index.
|
|
5
|
-
import "./index.
|
|
6
|
-
import { createProvider as u } from "./index.
|
|
7
|
-
import "ox/Provider";
|
|
2
|
+
import { subscribeWithSelector as c, persist as d, createJSONStorage as h } from "./index.web124.js";
|
|
3
|
+
import { EventEmitter as f } from "./index.web125.js";
|
|
4
|
+
import "./index.web126.js";
|
|
5
|
+
import { createProvider as u } from "./index.web127.js";
|
|
8
6
|
import "viem";
|
|
9
7
|
import "@coinbase/cdp-api-client";
|
|
10
8
|
import { getPlatformStorage as g } from "./index.web5.js";
|
|
@@ -12,23 +10,21 @@ import { onAuthStateChange as l } from "./index.web27.js";
|
|
|
12
10
|
import "./index.web2.js";
|
|
13
11
|
import "./index.web3.js";
|
|
14
12
|
import "jose";
|
|
15
|
-
import "jose/jwt/sign";
|
|
16
13
|
import "./index.web110.js";
|
|
17
14
|
import "./index.web104.js";
|
|
18
15
|
import "./index.web113.js";
|
|
19
|
-
import "viem/utils";
|
|
20
16
|
import "./index.web111.js";
|
|
21
17
|
import "@solana/web3.js";
|
|
22
18
|
import "bs58";
|
|
23
|
-
function
|
|
24
|
-
if (
|
|
19
|
+
function k(e) {
|
|
20
|
+
if (e.chains.length === 0)
|
|
25
21
|
throw new Error("At least one chain must be configured");
|
|
26
|
-
if (!
|
|
22
|
+
if (!e.transports)
|
|
27
23
|
throw new Error("Transports must be provided");
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
24
|
+
const o = e.chains, s = e.transports;
|
|
25
|
+
if (o.length === 0)
|
|
30
26
|
throw new Error("No chains found in configuration");
|
|
31
|
-
const
|
|
27
|
+
const m = new f(), i = g(), p = {
|
|
32
28
|
getItem: (t) => i.getItem(t),
|
|
33
29
|
setItem: (t, r) => i.setItem(t, r),
|
|
34
30
|
removeItem: (t) => i.removeItem(t)
|
|
@@ -36,9 +32,9 @@ function F(o) {
|
|
|
36
32
|
c(
|
|
37
33
|
d(
|
|
38
34
|
(t) => ({
|
|
39
|
-
chainId:
|
|
35
|
+
chainId: o[0].id,
|
|
40
36
|
setChainId: (r) => t({ chainId: r }),
|
|
41
|
-
chains:
|
|
37
|
+
chains: o,
|
|
42
38
|
user: null,
|
|
43
39
|
setUser: (r) => t({ user: r })
|
|
44
40
|
}),
|
|
@@ -52,12 +48,12 @@ function F(o) {
|
|
|
52
48
|
return n.persist.rehydrate(), l((t) => {
|
|
53
49
|
n.getState().setUser(t);
|
|
54
50
|
}), {
|
|
55
|
-
provider: u(
|
|
56
|
-
chains:
|
|
57
|
-
transports:
|
|
51
|
+
provider: u(m, n, {
|
|
52
|
+
chains: o,
|
|
53
|
+
transports: s
|
|
58
54
|
})
|
|
59
55
|
};
|
|
60
56
|
}
|
|
61
57
|
export {
|
|
62
|
-
|
|
58
|
+
k as createCDPEmbeddedWallet
|
|
63
59
|
};
|
package/dist/esm/index.web102.js
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import "ox/Provider";
|
|
2
1
|
import "viem";
|
|
3
2
|
import "zustand";
|
|
4
3
|
import "@coinbase/cdp-api-client";
|
|
5
4
|
import "./index.web2.js";
|
|
6
5
|
import "./index.web3.js";
|
|
7
6
|
import "jose";
|
|
8
|
-
import "jose/jwt/sign";
|
|
9
7
|
import "./index.web110.js";
|
|
10
8
|
import { getCurrentUser as u } from "./index.web21.js";
|
|
11
9
|
import "./index.web104.js";
|
|
12
10
|
import "./index.web113.js";
|
|
13
|
-
import "viem/utils";
|
|
14
11
|
import "./index.web111.js";
|
|
15
12
|
import "@solana/web3.js";
|
|
16
13
|
import "bs58";
|
|
@@ -81,7 +78,7 @@ const p = /* @__PURE__ */ new Set([
|
|
|
81
78
|
"wallet_getCallsStatus",
|
|
82
79
|
"wallet_getCapabilities"
|
|
83
80
|
]);
|
|
84
|
-
function
|
|
81
|
+
function S(e, { chains: t }) {
|
|
85
82
|
const { method: r, params: o } = e;
|
|
86
83
|
if (typeof r != "string" || r.length === 0)
|
|
87
84
|
throw new c(
|
|
@@ -114,7 +111,7 @@ async function d() {
|
|
|
114
111
|
);
|
|
115
112
|
return e;
|
|
116
113
|
}
|
|
117
|
-
async function
|
|
114
|
+
async function R(e) {
|
|
118
115
|
const t = await d(), r = e.toLowerCase(), o = t.evmAccountObjects?.some(
|
|
119
116
|
(i) => i.address.toLowerCase() === r
|
|
120
117
|
), a = t.evmSmartAccountObjects?.some(
|
|
@@ -127,7 +124,7 @@ async function U(e) {
|
|
|
127
124
|
);
|
|
128
125
|
return t;
|
|
129
126
|
}
|
|
130
|
-
async function
|
|
127
|
+
async function g(e) {
|
|
131
128
|
const t = await d(), r = e.toLowerCase();
|
|
132
129
|
if (!t.evmAccountObjects?.some((o) => o.address.toLowerCase() === r))
|
|
133
130
|
throw new s(
|
|
@@ -136,7 +133,7 @@ async function P(e) {
|
|
|
136
133
|
);
|
|
137
134
|
return t;
|
|
138
135
|
}
|
|
139
|
-
async function
|
|
136
|
+
async function z(e) {
|
|
140
137
|
const t = await d(), r = e.toLowerCase();
|
|
141
138
|
if (!t.evmSmartAccountObjects?.some(
|
|
142
139
|
(o) => o.address.toLowerCase() === r
|
|
@@ -147,7 +144,7 @@ async function j(e) {
|
|
|
147
144
|
);
|
|
148
145
|
return t;
|
|
149
146
|
}
|
|
150
|
-
async function
|
|
147
|
+
async function U() {
|
|
151
148
|
const e = await d();
|
|
152
149
|
if (!e.evmSmartAccountObjects?.[0])
|
|
153
150
|
throw new s(
|
|
@@ -160,10 +157,10 @@ export {
|
|
|
160
157
|
s as EIP1193ProviderError,
|
|
161
158
|
c as RPCRequestError,
|
|
162
159
|
n as STANDARD_ERROR_CODES,
|
|
163
|
-
|
|
160
|
+
S as validateRequest,
|
|
164
161
|
d as validateUserConnected,
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
162
|
+
U as validateUserHasEvmSmartAccount,
|
|
163
|
+
R as validateUserOwnsAddress,
|
|
164
|
+
g as validateUserOwnsEOA,
|
|
165
|
+
z as validateUserOwnsSmartAccount
|
|
169
166
|
};
|
package/dist/esm/index.web105.js
CHANGED
|
@@ -3,7 +3,6 @@ import "./index.web3.js";
|
|
|
3
3
|
import { getCurrentUserSync as b } from "./index.web45.js";
|
|
4
4
|
import "@coinbase/cdp-api-client";
|
|
5
5
|
import "jose";
|
|
6
|
-
import "jose/jwt/sign";
|
|
7
6
|
import "viem";
|
|
8
7
|
import "./index.web110.js";
|
|
9
8
|
import { getConfig as S } from "./index.web81.js";
|
|
@@ -13,7 +12,6 @@ import { ensureMfaVerified as y } from "./index.web93.js";
|
|
|
13
12
|
import { DEFAULT_SECURE_IFRAME_BASE_PATH as w, SECURE_IFRAME_KEY_EXPORT_EVENT_TYPE as n, DEFAULT_SECURE_IFRAME_THEME as k } from "./index.web104.js";
|
|
14
13
|
import { validateSecureIframeEnvironment as g, createIframe as x, calculateSecureIframeHeight as U, buildKeyExportIframeUrl as L, getSecureIframeOrigin as v, isSecureIframeKeyExportMessage as R, sendSecureIframeMessage as l } from "./index.web103.js";
|
|
15
14
|
import "./index.web113.js";
|
|
16
|
-
import "viem/utils";
|
|
17
15
|
import "./index.web111.js";
|
|
18
16
|
import "@solana/web3.js";
|
|
19
17
|
import "bs58";
|
|
@@ -25,10 +23,10 @@ async function h(e) {
|
|
|
25
23
|
const r = x(e.target), I = U(e.theme), m = S().secureIframeBasePath || w;
|
|
26
24
|
r.setAttribute("allow", "clipboard-read; clipboard-write"), r.style.border = "none", r.style.display = "none", r.style.height = `${I}px`, r.src = L({ projectId: e.projectId, basePath: m });
|
|
27
25
|
const d = v(m);
|
|
28
|
-
let
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
},
|
|
26
|
+
let f = !1;
|
|
27
|
+
const E = () => {
|
|
28
|
+
f || (f = !0, window.removeEventListener("message", p), r.parentNode && r.parentNode.removeChild(r));
|
|
29
|
+
}, p = async (a) => {
|
|
32
30
|
if (a.source !== r.contentWindow || !d || a.origin !== d) return;
|
|
33
31
|
const i = a.data;
|
|
34
32
|
if (R(i))
|
|
@@ -78,14 +76,14 @@ async function h(e) {
|
|
|
78
76
|
}
|
|
79
77
|
case n.STATUS: {
|
|
80
78
|
const { status: t, message: o, operation: s, errorType: T, correlationId: _ } = i.payload;
|
|
81
|
-
t === "ready" && (r.style.display = "block"), t === "expired" && (r.style.display = "none",
|
|
79
|
+
t === "ready" && (r.style.display = "block"), t === "expired" && (r.style.display = "none", E()), e.onStatusUpdate?.(t, o, { operation: s, errorType: T, correlationId: _ });
|
|
82
80
|
break;
|
|
83
81
|
}
|
|
84
82
|
}
|
|
85
83
|
};
|
|
86
|
-
return window.addEventListener("message",
|
|
84
|
+
return window.addEventListener("message", p), {
|
|
87
85
|
iframe: r,
|
|
88
|
-
cleanup:
|
|
86
|
+
cleanup: E,
|
|
89
87
|
updateTheme: (a) => {
|
|
90
88
|
l(r, {
|
|
91
89
|
type: n.THEME,
|
|
@@ -99,13 +97,13 @@ async function h(e) {
|
|
|
99
97
|
}
|
|
100
98
|
};
|
|
101
99
|
}
|
|
102
|
-
async function
|
|
100
|
+
async function Z(e) {
|
|
103
101
|
return u.sendActionCallEvent({ name: "create_evm_key_export_iframe" }), g(), await y(), h({ ...e, type: "evm" });
|
|
104
102
|
}
|
|
105
|
-
async function
|
|
103
|
+
async function ee(e) {
|
|
106
104
|
return u.sendActionCallEvent({ name: "create_solana_key_export_iframe" }), g(), await y(), h({ ...e, type: "solana" });
|
|
107
105
|
}
|
|
108
106
|
export {
|
|
109
|
-
|
|
110
|
-
|
|
107
|
+
Z as createEvmKeyExportIframe,
|
|
108
|
+
ee as createSolanaKeyExportIframe
|
|
111
109
|
};
|
package/dist/esm/index.web106.js
CHANGED
|
@@ -1,29 +1,27 @@
|
|
|
1
|
-
import { getTransactionEncoder as m, getTransactionDecoder as
|
|
1
|
+
import { getTransactionEncoder as m, getTransactionDecoder as u, address as p } from "@solana/kit";
|
|
2
2
|
import { getCurrentUserSync as f } from "./index.web45.js";
|
|
3
3
|
import "@coinbase/cdp-api-client";
|
|
4
4
|
import "./index.web2.js";
|
|
5
5
|
import "./index.web3.js";
|
|
6
6
|
import "jose";
|
|
7
|
-
import "jose/jwt/sign";
|
|
8
7
|
import "viem";
|
|
9
8
|
import "./index.web110.js";
|
|
10
9
|
import "./index.web104.js";
|
|
11
10
|
import { encodeBase64 as g, decodeBase64 as l } from "./index.web108.js";
|
|
12
11
|
import "./index.web113.js";
|
|
13
|
-
import "viem/utils";
|
|
14
12
|
import { signSolanaTransaction as T } from "./index.web33.js";
|
|
15
13
|
import "./index.web111.js";
|
|
16
14
|
import "@solana/web3.js";
|
|
17
15
|
import "bs58";
|
|
18
|
-
function
|
|
16
|
+
function W(o) {
|
|
19
17
|
const t = f();
|
|
20
18
|
if (!t || !t.solanaAccountObjects?.length)
|
|
21
19
|
throw new Error(
|
|
22
20
|
"No accounts found. User must be authenticated and have at least one Solana account"
|
|
23
21
|
);
|
|
24
|
-
const e = m(), a =
|
|
22
|
+
const e = m(), a = u();
|
|
25
23
|
return {
|
|
26
|
-
address:
|
|
24
|
+
address: p(o),
|
|
27
25
|
signTransactions: async (c, h) => {
|
|
28
26
|
const n = [];
|
|
29
27
|
for (const i of c) {
|
|
@@ -44,5 +42,5 @@ function k(o) {
|
|
|
44
42
|
};
|
|
45
43
|
}
|
|
46
44
|
export {
|
|
47
|
-
|
|
45
|
+
W as toTransactionSigner
|
|
48
46
|
};
|
package/dist/esm/index.web107.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MfaError as i, InternalError as o } from "./index.web99.js";
|
|
2
|
-
import { encodeBase64url as s, decodeBase64url as l } from "./index.
|
|
2
|
+
import { encodeBase64url as s, decodeBase64url as l } from "./index.web128.js";
|
|
3
3
|
const u = "The passkey prompt was dismissed or timed out.";
|
|
4
4
|
async function f() {
|
|
5
5
|
if (typeof window > "u" || typeof window.PublicKeyCredential > "u" || typeof window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable != "function")
|
package/dist/esm/index.web11.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Analytics as t } from "./index.web2.js";
|
|
2
2
|
import "./index.web3.js";
|
|
3
|
-
import { initiateSignIn as n } from "./index.
|
|
3
|
+
import { initiateSignIn as n } from "./index.web133.js";
|
|
4
4
|
import "@coinbase/cdp-api-client";
|
|
5
5
|
import "viem";
|
|
6
6
|
const l = async (i) => (t.sendActionCallEvent({ name: "sign_in_with_email" }), n(
|
package/dist/esm/index.web111.js
CHANGED
package/dist/esm/index.web12.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Analytics as i } from "./index.web2.js";
|
|
2
2
|
import "./index.web3.js";
|
|
3
|
-
import { initiateSignIn as t } from "./index.
|
|
3
|
+
import { initiateSignIn as t } from "./index.web133.js";
|
|
4
4
|
import "@coinbase/cdp-api-client";
|
|
5
5
|
import "viem";
|
|
6
6
|
const p = async (n) => (i.sendActionCallEvent({ name: "sign_in_with_sms" }), t(
|
package/dist/esm/index.web120.js
CHANGED
|
@@ -1,51 +1,43 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
inputs: [],
|
|
42
|
-
name: "initCodeHash",
|
|
43
|
-
outputs: [{ name: "", type: "bytes32" }],
|
|
44
|
-
stateMutability: "view",
|
|
45
|
-
type: "function"
|
|
46
|
-
}
|
|
47
|
-
];
|
|
1
|
+
import { CompactSign as i } from "./index.web147.js";
|
|
2
|
+
import { JWTInvalid as r } from "./index.web148.js";
|
|
3
|
+
import { JWTClaimsBuilder as n } from "./index.web149.js";
|
|
4
|
+
class d {
|
|
5
|
+
#s;
|
|
6
|
+
#t;
|
|
7
|
+
constructor(t = {}) {
|
|
8
|
+
this.#t = new n(t);
|
|
9
|
+
}
|
|
10
|
+
setIssuer(t) {
|
|
11
|
+
return this.#t.iss = t, this;
|
|
12
|
+
}
|
|
13
|
+
setSubject(t) {
|
|
14
|
+
return this.#t.sub = t, this;
|
|
15
|
+
}
|
|
16
|
+
setAudience(t) {
|
|
17
|
+
return this.#t.aud = t, this;
|
|
18
|
+
}
|
|
19
|
+
setJti(t) {
|
|
20
|
+
return this.#t.jti = t, this;
|
|
21
|
+
}
|
|
22
|
+
setNotBefore(t) {
|
|
23
|
+
return this.#t.nbf = t, this;
|
|
24
|
+
}
|
|
25
|
+
setExpirationTime(t) {
|
|
26
|
+
return this.#t.exp = t, this;
|
|
27
|
+
}
|
|
28
|
+
setIssuedAt(t) {
|
|
29
|
+
return this.#t.iat = t, this;
|
|
30
|
+
}
|
|
31
|
+
setProtectedHeader(t) {
|
|
32
|
+
return this.#s = t, this;
|
|
33
|
+
}
|
|
34
|
+
async sign(t, e) {
|
|
35
|
+
const s = new i(this.#t.data());
|
|
36
|
+
if (s.setProtectedHeader(this.#s), Array.isArray(this.#s?.crit) && this.#s.crit.includes("b64") && this.#s.b64 === !1)
|
|
37
|
+
throw new r("JWTs MUST NOT use unencoded payload");
|
|
38
|
+
return s.sign(t, e);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
48
41
|
export {
|
|
49
|
-
|
|
50
|
-
t as COINBASE_SMART_WALLET_FACTORY_ADDRESS
|
|
42
|
+
d as SignJWT
|
|
51
43
|
};
|
package/dist/esm/index.web121.js
CHANGED
|
@@ -1,87 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
async function P(e) {
|
|
16
|
-
const { smartAccount: t, hash: a, chainId: n, ownerAddress: r } = e, i = u({
|
|
17
|
-
hash: a,
|
|
18
|
-
chainId: n,
|
|
19
|
-
smartAccountAddress: t
|
|
20
|
-
}), { signature: s } = await c({
|
|
21
|
-
evmAccount: r,
|
|
22
|
-
typedData: i
|
|
23
|
-
});
|
|
24
|
-
return {
|
|
25
|
-
signature: y({
|
|
26
|
-
signatureHex: s
|
|
27
|
-
})
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
function u({
|
|
31
|
-
hash: e,
|
|
32
|
-
chainId: t,
|
|
33
|
-
smartAccountAddress: a
|
|
34
|
-
}) {
|
|
35
|
-
return {
|
|
36
|
-
domain: {
|
|
37
|
-
name: "Coinbase Smart Wallet",
|
|
38
|
-
version: "1",
|
|
39
|
-
chainId: t,
|
|
40
|
-
verifyingContract: a
|
|
41
|
-
},
|
|
42
|
-
types: {
|
|
43
|
-
EIP712Domain: [
|
|
44
|
-
{ name: "name", type: "string" },
|
|
45
|
-
{ name: "version", type: "string" },
|
|
46
|
-
{ name: "chainId", type: "uint256" },
|
|
47
|
-
{ name: "verifyingContract", type: "address" }
|
|
48
|
-
],
|
|
49
|
-
CoinbaseSmartWalletMessage: [{ name: "hash", type: "bytes32" }]
|
|
50
|
-
},
|
|
51
|
-
primaryType: "CoinbaseSmartWalletMessage",
|
|
52
|
-
message: {
|
|
53
|
-
hash: e
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
function y({ signatureHex: e }) {
|
|
58
|
-
const t = o(e, 0, 32), a = o(e, 32, 64), n = +`0x${e.slice(130, 132)}`, r = p(["bytes32", "bytes32", "uint8"], [t, a, n]);
|
|
59
|
-
return m(
|
|
60
|
-
[d],
|
|
61
|
-
[
|
|
1
|
+
const t = "0xba5ed110efdba3d005bfc882d75358acbbb85842", e = [
|
|
2
|
+
{
|
|
3
|
+
inputs: [{ name: "implementation_", type: "address" }],
|
|
4
|
+
stateMutability: "payable",
|
|
5
|
+
type: "constructor"
|
|
6
|
+
},
|
|
7
|
+
{ inputs: [], name: "OwnerRequired", type: "error" },
|
|
8
|
+
{
|
|
9
|
+
inputs: [
|
|
10
|
+
{ name: "owners", type: "bytes[]" },
|
|
11
|
+
{ name: "nonce", type: "uint256" }
|
|
12
|
+
],
|
|
13
|
+
name: "createAccount",
|
|
14
|
+
outputs: [
|
|
62
15
|
{
|
|
63
|
-
|
|
64
|
-
|
|
16
|
+
name: "account",
|
|
17
|
+
type: "address"
|
|
65
18
|
}
|
|
66
|
-
]
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
name: "
|
|
73
|
-
type: "
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
19
|
+
],
|
|
20
|
+
stateMutability: "payable",
|
|
21
|
+
type: "function"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
inputs: [
|
|
25
|
+
{ name: "owners", type: "bytes[]" },
|
|
26
|
+
{ name: "nonce", type: "uint256" }
|
|
27
|
+
],
|
|
28
|
+
name: "getAddress",
|
|
29
|
+
outputs: [{ name: "", type: "address" }],
|
|
30
|
+
stateMutability: "view",
|
|
31
|
+
type: "function"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
inputs: [],
|
|
35
|
+
name: "implementation",
|
|
36
|
+
outputs: [{ name: "", type: "address" }],
|
|
37
|
+
stateMutability: "view",
|
|
38
|
+
type: "function"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
inputs: [],
|
|
42
|
+
name: "initCodeHash",
|
|
43
|
+
outputs: [{ name: "", type: "bytes32" }],
|
|
44
|
+
stateMutability: "view",
|
|
45
|
+
type: "function"
|
|
46
|
+
}
|
|
47
|
+
];
|
|
83
48
|
export {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
P as signAndWrapTypedDataForSmartAccount
|
|
49
|
+
e as COINBASE_SMART_WALLET_FACTORY_ABI,
|
|
50
|
+
t as COINBASE_SMART_WALLET_FACTORY_ADDRESS
|
|
87
51
|
};
|
package/dist/esm/index.web122.js
CHANGED
|
@@ -1,50 +1,85 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
import { sliceHex as o, encodePacked as p, encodeAbiParameters as m } from "viem";
|
|
2
|
+
import "@coinbase/cdp-api-client";
|
|
3
|
+
import "./index.web2.js";
|
|
4
|
+
import "./index.web3.js";
|
|
5
|
+
import "jose";
|
|
6
|
+
import "./index.web110.js";
|
|
7
|
+
import "./index.web104.js";
|
|
8
|
+
import "./index.web113.js";
|
|
9
|
+
import { signEvmTypedData as c } from "./index.web32.js";
|
|
10
|
+
import "./index.web111.js";
|
|
11
|
+
import "@solana/web3.js";
|
|
12
|
+
import "bs58";
|
|
13
|
+
async function T(e) {
|
|
14
|
+
const { smartAccount: t, hash: a, chainId: n, ownerAddress: r } = e, i = u({
|
|
15
|
+
hash: a,
|
|
16
|
+
chainId: n,
|
|
17
|
+
smartAccountAddress: t
|
|
18
|
+
}), { signature: s } = await c({
|
|
19
|
+
evmAccount: r,
|
|
20
|
+
typedData: i
|
|
21
|
+
});
|
|
22
|
+
return {
|
|
23
|
+
signature: y({
|
|
24
|
+
signatureHex: s
|
|
25
|
+
})
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function u({
|
|
29
|
+
hash: e,
|
|
30
|
+
chainId: t,
|
|
31
|
+
smartAccountAddress: a
|
|
32
|
+
}) {
|
|
33
|
+
return {
|
|
34
|
+
domain: {
|
|
35
|
+
name: "Coinbase Smart Wallet",
|
|
36
|
+
version: "1",
|
|
37
|
+
chainId: t,
|
|
38
|
+
verifyingContract: a
|
|
39
|
+
},
|
|
40
|
+
types: {
|
|
41
|
+
EIP712Domain: [
|
|
42
|
+
{ name: "name", type: "string" },
|
|
43
|
+
{ name: "version", type: "string" },
|
|
44
|
+
{ name: "chainId", type: "uint256" },
|
|
45
|
+
{ name: "verifyingContract", type: "address" }
|
|
46
|
+
],
|
|
47
|
+
CoinbaseSmartWalletMessage: [{ name: "hash", type: "bytes32" }]
|
|
48
|
+
},
|
|
49
|
+
primaryType: "CoinbaseSmartWalletMessage",
|
|
50
|
+
message: {
|
|
51
|
+
hash: e
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function y({ signatureHex: e }) {
|
|
56
|
+
const t = o(e, 0, 32), a = o(e, 32, 64), n = +`0x${e.slice(130, 132)}`, r = p(["bytes32", "bytes32", "uint8"], [t, a, n]);
|
|
57
|
+
return m(
|
|
58
|
+
[d],
|
|
59
|
+
[
|
|
60
|
+
{
|
|
61
|
+
ownerIndex: 0,
|
|
62
|
+
signatureData: r
|
|
36
63
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Remove all listeners for an event.
|
|
41
|
-
*
|
|
42
|
-
* @param event - The name of the event to remove all listeners from. If not provided, removes all listeners for all events.
|
|
43
|
-
*/
|
|
44
|
-
removeAllListeners(e) {
|
|
45
|
-
e ? delete this.events[e] : this.events = {};
|
|
46
|
-
}
|
|
64
|
+
]
|
|
65
|
+
);
|
|
47
66
|
}
|
|
67
|
+
const d = {
|
|
68
|
+
components: [
|
|
69
|
+
{
|
|
70
|
+
name: "ownerIndex",
|
|
71
|
+
type: "uint8"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: "signatureData",
|
|
75
|
+
type: "bytes"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
name: "SignatureWrapper",
|
|
79
|
+
type: "tuple"
|
|
80
|
+
};
|
|
48
81
|
export {
|
|
49
|
-
|
|
82
|
+
u as createReplaySafeTypedData,
|
|
83
|
+
y as createSmartAccountSignatureWrapper,
|
|
84
|
+
T as signAndWrapTypedDataForSmartAccount
|
|
50
85
|
};
|