@gardenfi/utils 2.4.5 → 2.4.6-beta.2
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/index100.cjs +1 -1
- package/dist/index100.js +23 -6
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +109 -50
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +6 -16
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +50 -10
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +16 -5
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +10 -14
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +5 -3
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +14 -26
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +3 -4
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +26 -6
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +4 -88
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +6 -125
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +87 -6
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +121 -17
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +7 -17
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +19 -38
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +15 -19
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +35 -6
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +20 -5
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +10 -105
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +7 -3
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +107 -4
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +3 -9
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +4 -2
- package/dist/index124.cjs +1 -2
- package/dist/index124.js +9 -3
- package/dist/index125.cjs +1 -20
- package/dist/index125.js +2 -327
- package/dist/index126.cjs +2 -1
- package/dist/index126.js +3 -14
- package/dist/index127.cjs +20 -1
- package/dist/index127.js +326 -4
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +14 -2
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +4 -7
- package/dist/index130.cjs +1 -3
- package/dist/index130.js +2 -216
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +8 -32
- package/dist/index132.cjs +3 -1
- package/dist/index132.js +214 -20
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +32 -6
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +21 -73
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +5 -5
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +73 -5
- package/dist/index137.cjs +1 -9
- package/dist/index137.js +5 -35
- package/dist/index138.cjs +1 -3
- package/dist/index138.js +5 -110
- package/dist/index139.cjs +9 -1
- package/dist/index139.js +36 -3
- package/dist/index140.cjs +3 -1
- package/dist/index140.js +102 -15
- package/dist/index141.cjs +1 -3
- package/dist/index141.js +3 -452
- package/dist/index142.cjs +1 -2
- package/dist/index142.js +14 -45
- package/dist/index143.cjs +3 -1
- package/dist/index143.js +440 -15
- package/dist/index144.cjs +2 -1
- package/dist/index144.js +43 -22
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +24 -33
- package/dist/index146.cjs +1 -4
- package/dist/index146.js +22 -183
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +33 -6
- package/dist/index148.cjs +4 -1
- package/dist/index148.js +190 -8
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +7 -17
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +10 -25
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +18 -8
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +24 -52
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +8 -45
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +55 -8
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +45 -7
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +8 -16
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +7 -18
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +16 -21
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +17 -50
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +19 -9
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +50 -160
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +11 -21
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +158 -124
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +20 -37
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +127 -6
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +35 -24
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +6 -191
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +28 -4
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +184 -57
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +4 -3
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +60 -16
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +3 -17
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +19 -22
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +16 -11
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +22 -33
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +12 -3
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +33 -17
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +3 -28
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +18 -36
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +27 -10
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +35 -24
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +10 -28
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +24 -64
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +28 -9
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +63 -31
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +9 -24
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +32 -23
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +24 -3
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +24 -14
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +3 -103
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +14 -80
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +103 -5
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +80 -6
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +5 -27
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +6 -39
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +27 -13
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +38 -41
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +13 -5
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +42 -11
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +5 -19
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +11 -78
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +20 -2
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +74 -33
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +2 -112
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +27 -39
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +109 -30
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +49 -8
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +32 -6
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +8 -6
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +2 -2
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +6 -11
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +6 -10
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +11 -13
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +9 -31
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +14 -5
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +32 -7
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +5 -9
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +7 -20
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +6 -29
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +19 -19
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +31 -3
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +3 -17
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +17 -10
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +10 -21
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +21 -22
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +22 -5
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +5 -5
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +5 -8
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +8 -104
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +105 -3
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +9 -9
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +3 -19
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +17 -170
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +170 -16
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +17 -10
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +10 -16
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +15 -21
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +22 -30
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +31 -2
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +2 -14
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +13 -12
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +2 -2
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +10 -45
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +46 -10
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +11 -7
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +7 -9
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +8 -12
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +13 -14
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +14 -9
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +9 -24
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +24 -12
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +11 -23
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +5 -5
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +24 -13
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +13 -15
- package/dist/index252.cjs +1 -2
- package/dist/index252.js +14 -23
- package/dist/index253.cjs +2 -1
- package/dist/index253.js +23 -51
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +51 -24
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +24 -12
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +13 -15
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +15 -5
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +5 -13
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +12 -9
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +1 -1
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +10 -16
- package/dist/index261.cjs +1 -2
- package/dist/index261.js +16 -41
- package/dist/index262.cjs +2 -1
- package/dist/index262.js +42 -2
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +2 -6
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +5 -10
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +9 -18
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +19 -8
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +8 -66
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +65 -64
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +60 -181
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +1 -1
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +184 -20
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +21 -41
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +20 -54
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +54 -18
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +34 -10
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +10 -7
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +13 -12
- package/dist/index277.cjs +1 -2
- package/dist/index277.js +10 -16
- package/dist/index278.cjs +2 -1
- package/dist/index278.js +18 -14
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +14 -11
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +11 -103
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +6 -6
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +7 -225
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +26 -6
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +20 -7
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +144 -24
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +102 -18
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +6 -146
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +224 -3
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +3 -140
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +2 -2
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +128 -143
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +155 -9
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +7 -111
- package/dist/index293.cjs +1 -2
- package/dist/index293.js +95 -116
- package/dist/index294.cjs +2 -1
- package/dist/index294.js +126 -131
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +1 -1
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +1 -1
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +4 -4
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +124 -186
- package/dist/index303.cjs +1 -2
- package/dist/index303.js +198 -63
- package/dist/index304.cjs +2 -1
- package/dist/index304.js +66 -4
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +4 -40
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +40 -7
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +7 -62
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +57 -72
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +78 -4
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +4 -195
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +194 -4
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +3 -3
- package/dist/index314.cjs +1 -1
- package/dist/index314.js +5 -5
- package/dist/index315.cjs +1 -1
- package/dist/index315.js +5 -2
- package/dist/index316.cjs +1 -1
- package/dist/index316.js +2 -22
- package/dist/index317.cjs +1 -0
- package/dist/index317.js +24 -0
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +3 -3
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +4 -4
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +2 -2
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +4 -4
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +5 -5
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +11 -11
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +5 -5
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +41 -22
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +1 -1
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +13 -37
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +36 -14
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +15 -8
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +9 -2
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +19 -44
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +2 -32
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +45 -3
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +31 -8
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +3 -68
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +8 -8
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +67 -27
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +9 -71
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +26 -17
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +69 -108
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +19 -60
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +110 -24
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +51 -31
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +23 -36
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +28 -46
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +34 -163
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +55 -37
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +165 -8
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +40 -36
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +7 -7
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +34 -48
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +9 -85
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +47 -38
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +89 -8
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +41 -6
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +8 -17
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +6 -8
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +17 -13
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +8 -7
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +13 -9
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +7 -46
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +9 -13
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +46 -16
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +13 -13
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +15 -5
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +13 -35
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +5 -8
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +34 -7
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +9 -26
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +8 -10
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +26 -14
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +10 -117
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +14 -81
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +109 -169
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +81 -6
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +177 -13
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +5 -12
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +13 -95
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +13 -75
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +99 -85
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +68 -131
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +75 -55
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +138 -23
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +66 -106
- package/package.json +3 -2
package/dist/index232.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("./index140.cjs"),G=require("./index233.cjs"),R=require("./index209.cjs"),S=require("./index213.cjs"),B=require("./index212.cjs"),V=require("./index214.cjs"),L=require("./index159.cjs"),h=require("./index167.cjs"),r=require("./index155.cjs"),d=require("./index199.cjs"),y=require("./index203.cjs"),C=require("./index191.cjs"),v=require("./index231.cjs");function k(e,o){const n=C.getTransactionType(e);return n==="eip1559"?_(e,o):n==="eip2930"?j(e,o):n==="eip4844"?Y(e,o):n==="eip7702"?w(e,o):M(e,o)}function w(e,o){const{authorizationList:n,chainId:s,gas:i,nonce:c,to:a,value:x,maxFeePerGas:u,maxPriorityFeePerGas:t,accessList:l,data:T}=e;y.assertTransactionEIP7702(e);const b=v.serializeAccessList(l),m=G.serializeAuthorizationList(n);return L.concatHex(["0x04",d.toRlp([r.numberToHex(s),c?r.numberToHex(c):"0x",t?r.numberToHex(t):"0x",u?r.numberToHex(u):"0x",i?r.numberToHex(i):"0x",a??"0x",x?r.numberToHex(x):"0x",T??"0x",b,m,...z(e,o)])])}function Y(e,o){const{chainId:n,gas:s,nonce:i,to:c,value:a,maxFeePerBlobGas:x,maxFeePerGas:u,maxPriorityFeePerGas:t,accessList:l,data:T}=e;y.assertTransactionEIP4844(e);let b=e.blobVersionedHashes,m=e.sidecars;if(e.blobs&&(typeof b>"u"||typeof m>"u")){const f=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(p=>r.bytesToHex(p)),P=e.kzg,H=R.blobsToCommitments({blobs:f,kzg:P});if(typeof b>"u"&&(b=B.commitmentsToVersionedHashes({commitments:H})),typeof m>"u"){const p=S.blobsToProofs({blobs:f,commitments:H,kzg:P});m=V.toBlobSidecars({blobs:f,commitments:H,proofs:p})}}const I=v.serializeAccessList(l),A=[r.numberToHex(n),i?r.numberToHex(i):"0x",t?r.numberToHex(t):"0x",u?r.numberToHex(u):"0x",s?r.numberToHex(s):"0x",c??"0x",a?r.numberToHex(a):"0x",T??"0x",I,x?r.numberToHex(x):"0x",b??[],...z(e,o)],q=[],g=[],E=[];if(m)for(let f=0;f<m.length;f++){const{blob:P,commitment:H,proof:p}=m[f];q.push(P),g.push(H),E.push(p)}return L.concatHex(["0x03",m?d.toRlp([A,q,g,E]):d.toRlp(A)])}function _(e,o){const{chainId:n,gas:s,nonce:i,to:c,value:a,maxFeePerGas:x,maxPriorityFeePerGas:u,accessList:t,data:l}=e;y.assertTransactionEIP1559(e);const T=v.serializeAccessList(t),b=[r.numberToHex(n),i?r.numberToHex(i):"0x",u?r.numberToHex(u):"0x",x?r.numberToHex(x):"0x",s?r.numberToHex(s):"0x",c??"0x",a?r.numberToHex(a):"0x",l??"0x",T,...z(e,o)];return L.concatHex(["0x02",d.toRlp(b)])}function j(e,o){const{chainId:n,gas:s,data:i,nonce:c,to:a,value:x,accessList:u,gasPrice:t}=e;y.assertTransactionEIP2930(e);const l=v.serializeAccessList(u),T=[r.numberToHex(n),c?r.numberToHex(c):"0x",t?r.numberToHex(t):"0x",s?r.numberToHex(s):"0x",a??"0x",x?r.numberToHex(x):"0x",i??"0x",l,...z(e,o)];return L.concatHex(["0x01",d.toRlp(T)])}function M(e,o){const{chainId:n=0,gas:s,data:i,nonce:c,to:a,value:x,gasPrice:u}=e;y.assertTransactionLegacy(e);let t=[c?r.numberToHex(c):"0x",u?r.numberToHex(u):"0x",s?r.numberToHex(s):"0x",a??"0x",x?r.numberToHex(x):"0x",i??"0x"];if(o){const l=(()=>{if(o.v>=35n)return(o.v-35n)/2n>0?o.v:27n+(o.v===35n?0n:1n);if(n>0)return BigInt(n*2)+BigInt(35n+o.v-27n);const m=27n+(o.v===27n?0n:1n);if(o.v!==m)throw new F.InvalidLegacyVError({v:o.v});return m})(),T=h.trim(o.r),b=h.trim(o.s);t=[...t,r.numberToHex(l),T==="0x00"?"0x":T,b==="0x00"?"0x":b]}else n>0&&(t=[...t,r.numberToHex(n),"0x","0x"]);return d.toRlp(t)}function z(e,o){const n=o??e,{v:s,yParity:i}=n;if(typeof n.r>"u")return[];if(typeof n.s>"u")return[];if(typeof s>"u"&&typeof i>"u")return[];const c=h.trim(n.r),a=h.trim(n.s);return[typeof i=="number"?i?r.numberToHex(1):"0x":s===0n?"0x":s===1n?r.numberToHex(1):s===27n?"0x":r.numberToHex(1),c==="0x00"?"0x":c,a==="0x00"?"0x":a]}exports.serializeTransaction=k;exports.toYParitySignatureArray=z;
|
package/dist/index232.js
CHANGED
|
@@ -1,20 +1,174 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { InvalidLegacyVError as H } from "./index140.js";
|
|
2
|
+
import { serializeAuthorizationList as g } from "./index233.js";
|
|
3
|
+
import { blobsToCommitments as B } from "./index209.js";
|
|
4
|
+
import { blobsToProofs as V } from "./index213.js";
|
|
5
|
+
import { commitmentsToVersionedHashes as C } from "./index212.js";
|
|
6
|
+
import { toBlobSidecars as k } from "./index214.js";
|
|
7
|
+
import { concatHex as h } from "./index159.js";
|
|
8
|
+
import { trim as T } from "./index167.js";
|
|
9
|
+
import { numberToHex as o, bytesToHex as w } from "./index155.js";
|
|
10
|
+
import { toRlp as b } from "./index199.js";
|
|
11
|
+
import { assertTransactionEIP1559 as S, assertTransactionEIP2930 as _, assertTransactionEIP4844 as R, assertTransactionEIP7702 as Y, assertTransactionLegacy as j } from "./index203.js";
|
|
12
|
+
import { getTransactionType as q } from "./index191.js";
|
|
13
|
+
import { serializeAccessList as v } from "./index231.js";
|
|
14
|
+
function te(e, r) {
|
|
15
|
+
const i = q(e);
|
|
16
|
+
return i === "eip1559" ? K(e, r) : i === "eip2930" ? M(e, r) : i === "eip4844" ? J(e, r) : i === "eip7702" ? D(e, r) : N(e, r);
|
|
17
|
+
}
|
|
18
|
+
function D(e, r) {
|
|
19
|
+
const { authorizationList: i, chainId: s, gas: n, nonce: c, to: f, value: a, maxFeePerGas: x, maxPriorityFeePerGas: t, accessList: p, data: l } = e;
|
|
20
|
+
Y(e);
|
|
21
|
+
const d = v(p), m = g(i);
|
|
22
|
+
return h([
|
|
23
|
+
"0x04",
|
|
24
|
+
b([
|
|
25
|
+
o(s),
|
|
26
|
+
c ? o(c) : "0x",
|
|
27
|
+
t ? o(t) : "0x",
|
|
28
|
+
x ? o(x) : "0x",
|
|
29
|
+
n ? o(n) : "0x",
|
|
30
|
+
f ?? "0x",
|
|
31
|
+
a ? o(a) : "0x",
|
|
32
|
+
l ?? "0x",
|
|
33
|
+
d,
|
|
34
|
+
m,
|
|
35
|
+
...I(e, r)
|
|
36
|
+
])
|
|
37
|
+
]);
|
|
38
|
+
}
|
|
39
|
+
function J(e, r) {
|
|
40
|
+
const { chainId: i, gas: s, nonce: n, to: c, value: f, maxFeePerBlobGas: a, maxFeePerGas: x, maxPriorityFeePerGas: t, accessList: p, data: l } = e;
|
|
41
|
+
R(e);
|
|
42
|
+
let d = e.blobVersionedHashes, m = e.sidecars;
|
|
43
|
+
if (e.blobs && (typeof d > "u" || typeof m > "u")) {
|
|
44
|
+
const u = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((P) => w(P)), z = e.kzg, y = B({
|
|
45
|
+
blobs: u,
|
|
46
|
+
kzg: z
|
|
47
|
+
});
|
|
48
|
+
if (typeof d > "u" && (d = C({
|
|
49
|
+
commitments: y
|
|
50
|
+
})), typeof m > "u") {
|
|
51
|
+
const P = V({ blobs: u, commitments: y, kzg: z });
|
|
52
|
+
m = k({ blobs: u, commitments: y, proofs: P });
|
|
53
|
+
}
|
|
15
54
|
}
|
|
16
|
-
|
|
55
|
+
const L = v(p), E = [
|
|
56
|
+
o(i),
|
|
57
|
+
n ? o(n) : "0x",
|
|
58
|
+
t ? o(t) : "0x",
|
|
59
|
+
x ? o(x) : "0x",
|
|
60
|
+
s ? o(s) : "0x",
|
|
61
|
+
c ?? "0x",
|
|
62
|
+
f ? o(f) : "0x",
|
|
63
|
+
l ?? "0x",
|
|
64
|
+
L,
|
|
65
|
+
a ? o(a) : "0x",
|
|
66
|
+
d ?? [],
|
|
67
|
+
...I(e, r)
|
|
68
|
+
], A = [], F = [], G = [];
|
|
69
|
+
if (m)
|
|
70
|
+
for (let u = 0; u < m.length; u++) {
|
|
71
|
+
const { blob: z, commitment: y, proof: P } = m[u];
|
|
72
|
+
A.push(z), F.push(y), G.push(P);
|
|
73
|
+
}
|
|
74
|
+
return h([
|
|
75
|
+
"0x03",
|
|
76
|
+
m ? (
|
|
77
|
+
// If sidecars are enabled, envelope turns into a "wrapper":
|
|
78
|
+
b([E, A, F, G])
|
|
79
|
+
) : (
|
|
80
|
+
// If sidecars are disabled, standard envelope is used:
|
|
81
|
+
b(E)
|
|
82
|
+
)
|
|
83
|
+
]);
|
|
84
|
+
}
|
|
85
|
+
function K(e, r) {
|
|
86
|
+
const { chainId: i, gas: s, nonce: n, to: c, value: f, maxFeePerGas: a, maxPriorityFeePerGas: x, accessList: t, data: p } = e;
|
|
87
|
+
S(e);
|
|
88
|
+
const l = v(t), d = [
|
|
89
|
+
o(i),
|
|
90
|
+
n ? o(n) : "0x",
|
|
91
|
+
x ? o(x) : "0x",
|
|
92
|
+
a ? o(a) : "0x",
|
|
93
|
+
s ? o(s) : "0x",
|
|
94
|
+
c ?? "0x",
|
|
95
|
+
f ? o(f) : "0x",
|
|
96
|
+
p ?? "0x",
|
|
97
|
+
l,
|
|
98
|
+
...I(e, r)
|
|
99
|
+
];
|
|
100
|
+
return h([
|
|
101
|
+
"0x02",
|
|
102
|
+
b(d)
|
|
103
|
+
]);
|
|
104
|
+
}
|
|
105
|
+
function M(e, r) {
|
|
106
|
+
const { chainId: i, gas: s, data: n, nonce: c, to: f, value: a, accessList: x, gasPrice: t } = e;
|
|
107
|
+
_(e);
|
|
108
|
+
const p = v(x), l = [
|
|
109
|
+
o(i),
|
|
110
|
+
c ? o(c) : "0x",
|
|
111
|
+
t ? o(t) : "0x",
|
|
112
|
+
s ? o(s) : "0x",
|
|
113
|
+
f ?? "0x",
|
|
114
|
+
a ? o(a) : "0x",
|
|
115
|
+
n ?? "0x",
|
|
116
|
+
p,
|
|
117
|
+
...I(e, r)
|
|
118
|
+
];
|
|
119
|
+
return h([
|
|
120
|
+
"0x01",
|
|
121
|
+
b(l)
|
|
122
|
+
]);
|
|
123
|
+
}
|
|
124
|
+
function N(e, r) {
|
|
125
|
+
const { chainId: i = 0, gas: s, data: n, nonce: c, to: f, value: a, gasPrice: x } = e;
|
|
126
|
+
j(e);
|
|
127
|
+
let t = [
|
|
128
|
+
c ? o(c) : "0x",
|
|
129
|
+
x ? o(x) : "0x",
|
|
130
|
+
s ? o(s) : "0x",
|
|
131
|
+
f ?? "0x",
|
|
132
|
+
a ? o(a) : "0x",
|
|
133
|
+
n ?? "0x"
|
|
134
|
+
];
|
|
135
|
+
if (r) {
|
|
136
|
+
const p = (() => {
|
|
137
|
+
if (r.v >= 35n)
|
|
138
|
+
return (r.v - 35n) / 2n > 0 ? r.v : 27n + (r.v === 35n ? 0n : 1n);
|
|
139
|
+
if (i > 0)
|
|
140
|
+
return BigInt(i * 2) + BigInt(35n + r.v - 27n);
|
|
141
|
+
const m = 27n + (r.v === 27n ? 0n : 1n);
|
|
142
|
+
if (r.v !== m)
|
|
143
|
+
throw new H({ v: r.v });
|
|
144
|
+
return m;
|
|
145
|
+
})(), l = T(r.r), d = T(r.s);
|
|
146
|
+
t = [
|
|
147
|
+
...t,
|
|
148
|
+
o(p),
|
|
149
|
+
l === "0x00" ? "0x" : l,
|
|
150
|
+
d === "0x00" ? "0x" : d
|
|
151
|
+
];
|
|
152
|
+
} else i > 0 && (t = [
|
|
153
|
+
...t,
|
|
154
|
+
o(i),
|
|
155
|
+
"0x",
|
|
156
|
+
"0x"
|
|
157
|
+
]);
|
|
158
|
+
return b(t);
|
|
159
|
+
}
|
|
160
|
+
function I(e, r) {
|
|
161
|
+
const i = r ?? e, { v: s, yParity: n } = i;
|
|
162
|
+
if (typeof i.r > "u")
|
|
163
|
+
return [];
|
|
164
|
+
if (typeof i.s > "u")
|
|
165
|
+
return [];
|
|
166
|
+
if (typeof s > "u" && typeof n > "u")
|
|
167
|
+
return [];
|
|
168
|
+
const c = T(i.r), f = T(i.s);
|
|
169
|
+
return [typeof n == "number" ? n ? o(1) : "0x" : s === 0n ? "0x" : s === 1n ? o(1) : s === 27n ? "0x" : o(1), c === "0x00" ? "0x" : c, f === "0x00" ? "0x" : f];
|
|
17
170
|
}
|
|
18
171
|
export {
|
|
19
|
-
|
|
172
|
+
te as serializeTransaction,
|
|
173
|
+
I as toYParitySignatureArray
|
|
20
174
|
};
|
package/dist/index233.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index155.cjs"),c=require("./index232.cjs");function u(t){if(!t||t.length===0)return[];const e=[];for(const r of t){const{chainId:i,nonce:o,...s}=r,a=r.address;e.push([i?n.toHex(i):"0x",a,o?n.toHex(o):"0x",...c.toYParitySignatureArray({},s)])}return e}exports.serializeAuthorizationList=u;
|
package/dist/index233.js
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { toHex as i } from "./index155.js";
|
|
2
|
+
import { toYParitySignatureArray as c } from "./index232.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
|
+
]);
|
|
15
|
+
}
|
|
16
|
+
return t;
|
|
10
17
|
}
|
|
11
18
|
export {
|
|
12
|
-
|
|
19
|
+
f as serializeAuthorizationList
|
|
13
20
|
};
|
package/dist/index234.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index133.cjs"),f=require("./index41.cjs"),i=require("./index132.cjs");function v(e,l){var t,o,n,a,s,u;if(!(e instanceof f.BaseError))return!1;const r=e.walk(c=>c instanceof i.ContractFunctionRevertedError);return r instanceof i.ContractFunctionRevertedError?!!(((t=r.data)==null?void 0:t.errorName)==="ResolverNotFound"||((o=r.data)==null?void 0:o.errorName)==="ResolverWildcardNotSupported"||((n=r.data)==null?void 0:n.errorName)==="ResolverNotContract"||((a=r.data)==null?void 0:a.errorName)==="ResolverError"||((s=r.data)==null?void 0:s.errorName)==="HttpError"||(u=r.reason)!=null&&u.includes("Wildcard on non-extended resolvers is not supported")||l==="reverse"&&r.reason===d.panicReasons[50]):!1}exports.isNullUniversalResolverError=v;
|
package/dist/index234.js
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
if (
|
|
7
|
-
return
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
const l = o.split(".");
|
|
11
|
-
for (let r = 0; r < l.length; r++) {
|
|
12
|
-
let n = i(l[r]);
|
|
13
|
-
n.byteLength > 255 && (n = i(h(f(l[r])))), e[t] = n.length, e.set(n, t + 1), t += n.length + 1;
|
|
14
|
-
}
|
|
15
|
-
return e.byteLength !== t + 1 ? e.slice(0, t + 1) : e;
|
|
1
|
+
import { panicReasons as l } from "./index133.js";
|
|
2
|
+
import { BaseError as c } from "./index41.js";
|
|
3
|
+
import { ContractFunctionRevertedError as i } from "./index132.js";
|
|
4
|
+
function N(e, f) {
|
|
5
|
+
var t, o, n, a, s, u;
|
|
6
|
+
if (!(e instanceof c))
|
|
7
|
+
return !1;
|
|
8
|
+
const r = e.walk((d) => d instanceof i);
|
|
9
|
+
return r instanceof i ? !!(((t = r.data) == null ? void 0 : t.errorName) === "ResolverNotFound" || ((o = r.data) == null ? void 0 : o.errorName) === "ResolverWildcardNotSupported" || ((n = r.data) == null ? void 0 : n.errorName) === "ResolverNotContract" || ((a = r.data) == null ? void 0 : a.errorName) === "ResolverError" || ((s = r.data) == null ? void 0 : s.errorName) === "HttpError" || (u = r.reason) != null && u.includes("Wildcard on non-extended resolvers is not supported") || f === "reverse" && r.reason === l[50]) : !1;
|
|
16
10
|
}
|
|
17
11
|
export {
|
|
18
|
-
|
|
12
|
+
N as isNullUniversalResolverError
|
|
19
13
|
};
|
package/dist/index235.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index154.cjs"),a=require("./index289.cjs"),c=require("./index153.cjs");function h(i){const r=i.replace(/^\.|\.$/gm,"");if(r.length===0)return new Uint8Array(1);const e=new Uint8Array(l.stringToBytes(r).byteLength+2);let t=0;const o=r.split(".");for(let s=0;s<o.length;s++){let n=l.stringToBytes(o[s]);n.byteLength>255&&(n=l.stringToBytes(a.encodeLabelhash(c.labelhash(o[s])))),e[t]=n.length,e.set(n,t+1),t+=n.length+1}return e.byteLength!==t+1?e.slice(0,t+1):e}exports.packetToBytes=h;
|
package/dist/index235.js
CHANGED
|
@@ -1,25 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
), u = JSON.parse(d);
|
|
15
|
-
return o({ uri: A(u), gatewayUrls: t });
|
|
1
|
+
import { stringToBytes as i } from "./index154.js";
|
|
2
|
+
import { encodeLabelhash as h } from "./index289.js";
|
|
3
|
+
import { labelhash as f } from "./index153.js";
|
|
4
|
+
function y(s) {
|
|
5
|
+
const o = s.replace(/^\.|\.$/gm, "");
|
|
6
|
+
if (o.length === 0)
|
|
7
|
+
return new Uint8Array(1);
|
|
8
|
+
const e = new Uint8Array(i(o).byteLength + 2);
|
|
9
|
+
let t = 0;
|
|
10
|
+
const l = o.split(".");
|
|
11
|
+
for (let r = 0; r < l.length; r++) {
|
|
12
|
+
let n = i(l[r]);
|
|
13
|
+
n.byteLength > 255 && (n = i(h(f(l[r])))), e[t] = n.length, e.set(n, t + 1), t += n.length + 1;
|
|
16
14
|
}
|
|
17
|
-
|
|
18
|
-
return i.namespace === "erc1155" && (n = n.replace("0x", "").padStart(64, "0")), N({
|
|
19
|
-
gatewayUrls: t,
|
|
20
|
-
uri: a.replace(/(?:0x)?{id}/, n)
|
|
21
|
-
});
|
|
15
|
+
return e.byteLength !== t + 1 ? e.slice(0, t + 1) : e;
|
|
22
16
|
}
|
|
23
17
|
export {
|
|
24
|
-
|
|
18
|
+
y as packetToBytes
|
|
25
19
|
};
|
package/dist/index236.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index290.cjs")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index290.cjs");async function f(i,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?l(i,{gatewayUrls:t,record:r}):e.parseAvatarUri({uri:r,gatewayUrls:t})}async function l(i,{gatewayUrls:t,record:r}){const n=e.parseNftUri(r),o=await e.getNftTokenUri(i,{nft:n}),{uri:a,isOnChain:c,isEncoded:p}=e.resolveAvatarUri({uri:o,gatewayUrls:t});if(c&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){const u=p?atob(a.replace("data:application/json;base64,","")):a,d=JSON.parse(u);return e.parseAvatarUri({uri:e.getJsonImage(d),gatewayUrls:t})}let s=n.tokenID;return n.namespace==="erc1155"&&(s=s.replace("0x","").padStart(64,"0")),e.getMetadataAvatarUri({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,s)})}exports.parseAvatarRecord=f;
|
package/dist/index236.js
CHANGED
|
@@ -1,33 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
...typeof t.time == "bigint" && {
|
|
24
|
-
time: a(t.time)
|
|
25
|
-
},
|
|
26
|
-
...t.withdrawals && {
|
|
27
|
-
withdrawals: t.withdrawals.map(e)
|
|
28
|
-
}
|
|
29
|
-
};
|
|
1
|
+
import { parseAvatarUri as o, parseNftUri as f, getNftTokenUri as v, resolveAvatarUri as l, getJsonImage as A, getMetadataAvatarUri as N } from "./index290.js";
|
|
2
|
+
async function b(r, { gatewayUrls: t, record: e }) {
|
|
3
|
+
return /eip155:/i.test(e) ? U(r, { gatewayUrls: t, record: e }) : o({ uri: e, gatewayUrls: t });
|
|
4
|
+
}
|
|
5
|
+
async function U(r, { gatewayUrls: t, record: e }) {
|
|
6
|
+
const i = f(e), s = await v(r, { nft: i }), { uri: a, isOnChain: c, isEncoded: p } = l({ uri: s, gatewayUrls: t });
|
|
7
|
+
if (c && (a.includes("data:application/json;base64,") || a.startsWith("{"))) {
|
|
8
|
+
const d = p ? (
|
|
9
|
+
// if it is encoded, decode it
|
|
10
|
+
atob(a.replace("data:application/json;base64,", ""))
|
|
11
|
+
) : (
|
|
12
|
+
// if it isn't encoded assume it is a JSON string, but it could be anything (it will error if it is)
|
|
13
|
+
a
|
|
14
|
+
), u = JSON.parse(d);
|
|
15
|
+
return o({ uri: A(u), gatewayUrls: t });
|
|
16
|
+
}
|
|
17
|
+
let n = i.tokenID;
|
|
18
|
+
return i.namespace === "erc1155" && (n = n.replace("0x", "").padStart(64, "0")), N({
|
|
19
|
+
gatewayUrls: t,
|
|
20
|
+
uri: a.replace(/(?:0x)?{id}/, n)
|
|
21
|
+
});
|
|
30
22
|
}
|
|
31
23
|
export {
|
|
32
|
-
|
|
24
|
+
b as parseAvatarRecord
|
|
33
25
|
};
|
package/dist/index237.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index291.cjs"),a=require("./index292.cjs");function i(t){return{...typeof t.baseFeePerGas=="bigint"&&{baseFeePerGas:e.fromNumber(t.baseFeePerGas)},...typeof t.blobBaseFee=="bigint"&&{blobBaseFee:e.fromNumber(t.blobBaseFee)},...typeof t.feeRecipient=="string"&&{feeRecipient:t.feeRecipient},...typeof t.gasLimit=="bigint"&&{gasLimit:e.fromNumber(t.gasLimit)},...typeof t.number=="bigint"&&{number:e.fromNumber(t.number)},...typeof t.prevRandao=="bigint"&&{prevRandao:e.fromNumber(t.prevRandao)},...typeof t.time=="bigint"&&{time:e.fromNumber(t.time)},...t.withdrawals&&{withdrawals:t.withdrawals.map(a.toRpc)}}}exports.toRpc=i;
|
package/dist/index237.js
CHANGED
|
@@ -1,4 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
import { fromNumber as a } from "./index291.js";
|
|
2
|
+
import { toRpc as e } from "./index292.js";
|
|
3
|
+
function n(t) {
|
|
4
|
+
return {
|
|
5
|
+
...typeof t.baseFeePerGas == "bigint" && {
|
|
6
|
+
baseFeePerGas: a(t.baseFeePerGas)
|
|
7
|
+
},
|
|
8
|
+
...typeof t.blobBaseFee == "bigint" && {
|
|
9
|
+
blobBaseFee: a(t.blobBaseFee)
|
|
10
|
+
},
|
|
11
|
+
...typeof t.feeRecipient == "string" && {
|
|
12
|
+
feeRecipient: t.feeRecipient
|
|
13
|
+
},
|
|
14
|
+
...typeof t.gasLimit == "bigint" && {
|
|
15
|
+
gasLimit: a(t.gasLimit)
|
|
16
|
+
},
|
|
17
|
+
...typeof t.number == "bigint" && {
|
|
18
|
+
number: a(t.number)
|
|
19
|
+
},
|
|
20
|
+
...typeof t.prevRandao == "bigint" && {
|
|
21
|
+
prevRandao: a(t.prevRandao)
|
|
22
|
+
},
|
|
23
|
+
...typeof t.time == "bigint" && {
|
|
24
|
+
time: a(t.time)
|
|
25
|
+
},
|
|
26
|
+
...t.withdrawals && {
|
|
27
|
+
withdrawals: t.withdrawals.map(e)
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
2
31
|
export {
|
|
3
|
-
|
|
32
|
+
n as toRpc
|
|
4
33
|
};
|
package/dist/index238.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0x82ad56cb";exports.aggregate3Signature=e;
|
package/dist/index238.js
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { UnknownNodeError as i } from "./index146.js";
|
|
3
|
-
import { getNodeError as u } from "./index247.js";
|
|
4
|
-
function a(r, { docsPath: t, ...o }) {
|
|
5
|
-
const e = (() => {
|
|
6
|
-
const n = u(r, o);
|
|
7
|
-
return n instanceof i ? r : n;
|
|
8
|
-
})();
|
|
9
|
-
return new c(e, {
|
|
10
|
-
docsPath: t,
|
|
11
|
-
...o
|
|
12
|
-
});
|
|
13
|
-
}
|
|
1
|
+
const a = "0x82ad56cb";
|
|
14
2
|
export {
|
|
15
|
-
a as
|
|
3
|
+
a as aggregate3Signature
|
|
16
4
|
};
|
package/dist/index239.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index132.cjs"),u=require("./index148.cjs"),i=require("./index248.cjs");function l(r,{docsPath:t,...e}){const n=(()=>{const o=i.getNodeError(r,e);return o instanceof u.UnknownNodeError?r:o})();return new c.CallExecutionError(n,{docsPath:t,...e})}exports.getCallError=l;
|
package/dist/index239.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { CallExecutionError as c } from "./index132.js";
|
|
2
|
+
import { UnknownNodeError as i } from "./index148.js";
|
|
3
|
+
import { getNodeError as u } from "./index248.js";
|
|
4
|
+
function a(r, { docsPath: t, ...o }) {
|
|
5
|
+
const e = (() => {
|
|
6
|
+
const n = u(r, o);
|
|
7
|
+
return n instanceof i ? r : n;
|
|
8
|
+
})();
|
|
9
|
+
return new c(e, {
|
|
10
|
+
docsPath: t,
|
|
11
|
+
...o
|
|
12
|
+
});
|
|
12
13
|
}
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
+
a as getCallError
|
|
15
16
|
};
|
package/dist/index24.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index49.cjs"),c=require("./index103.cjs");function r(e){const{key:t="wallet",name:l="Wallet Client",transport:n}=e;return i.createClient({...e,key:t,name:l,transport:n,type:"walletClient"}).extend(c.walletActions)}exports.createWalletClient=r;
|
package/dist/index24.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createClient as i } from "./
|
|
2
|
-
import { walletActions as o } from "./
|
|
1
|
+
import { createClient as i } from "./index49.js";
|
|
2
|
+
import { walletActions as o } from "./index103.js";
|
|
3
3
|
function m(t) {
|
|
4
4
|
const { key: e = "wallet", name: l = "Wallet Client", transport: n } = t;
|
|
5
5
|
return i({
|
package/dist/index240.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function y(c,{format:n}){if(!n)return{};const r={};function i(e){const s=Object.keys(e);for(const t of s)t in c&&(r[t]=c[t]),e[t]&&typeof e[t]=="object"&&!Array.isArray(e[t])&&i(e[t])}const o=n(c||{});return i(o),r}exports.extract=y;
|
package/dist/index240.js
CHANGED
|
@@ -1,50 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
import { InvalidBytesLengthError as d } from "./index149.js";
|
|
3
|
-
import { AccountStateConflictError as u, StateAssignmentConflictError as h } from "./index137.js";
|
|
4
|
-
import { isAddress as l } from "./index174.js";
|
|
5
|
-
import { numberToHex as c } from "./index153.js";
|
|
6
|
-
function s(r) {
|
|
7
|
-
if (!(!r || r.length === 0))
|
|
8
|
-
return r.reduce((t, { slot: e, value: n }) => {
|
|
9
|
-
if (e.length !== 66)
|
|
10
|
-
throw new d({
|
|
11
|
-
size: e.length,
|
|
12
|
-
targetSize: 66,
|
|
13
|
-
type: "hex"
|
|
14
|
-
});
|
|
15
|
-
if (n.length !== 66)
|
|
16
|
-
throw new d({
|
|
17
|
-
size: n.length,
|
|
18
|
-
targetSize: 66,
|
|
19
|
-
type: "hex"
|
|
20
|
-
});
|
|
21
|
-
return t[e] = n, t;
|
|
22
|
-
}, {});
|
|
23
|
-
}
|
|
24
|
-
function m(r) {
|
|
25
|
-
const { balance: t, nonce: e, state: n, stateDiff: o, code: f } = r, i = {};
|
|
26
|
-
if (f !== void 0 && (i.code = f), t !== void 0 && (i.balance = c(t)), e !== void 0 && (i.nonce = c(e)), n !== void 0 && (i.state = s(n)), o !== void 0) {
|
|
27
|
-
if (i.state)
|
|
28
|
-
throw new h();
|
|
29
|
-
i.stateDiff = s(o);
|
|
30
|
-
}
|
|
31
|
-
return i;
|
|
32
|
-
}
|
|
33
|
-
function A(r) {
|
|
1
|
+
function y(t, { format: r }) {
|
|
34
2
|
if (!r)
|
|
35
|
-
return;
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
throw new u({ address: e });
|
|
42
|
-
t[e] = m(n);
|
|
3
|
+
return {};
|
|
4
|
+
const e = {};
|
|
5
|
+
function i(c) {
|
|
6
|
+
const s = Object.keys(c);
|
|
7
|
+
for (const n of s)
|
|
8
|
+
n in t && (e[n] = t[n]), c[n] && typeof c[n] == "object" && !Array.isArray(c[n]) && i(c[n]);
|
|
43
9
|
}
|
|
44
|
-
|
|
10
|
+
const o = r(t || {});
|
|
11
|
+
return i(o), e;
|
|
45
12
|
}
|
|
46
13
|
export {
|
|
47
|
-
|
|
48
|
-
s as serializeStateMapping,
|
|
49
|
-
A as serializeStateOverride
|
|
14
|
+
y as extract
|
|
50
15
|
};
|
package/dist/index241.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index150.cjs"),a=require("./index151.cjs"),f=require("./index139.cjs"),S=require("./index176.cjs"),c=require("./index155.cjs");function d(r){if(!(!r||r.length===0))return r.reduce((t,{slot:e,value:n})=>{if(e.length!==66)throw new a.InvalidBytesLengthError({size:e.length,targetSize:66,type:"hex"});if(n.length!==66)throw new a.InvalidBytesLengthError({size:n.length,targetSize:66,type:"hex"});return t[e]=n,t},{})}function u(r){const{balance:t,nonce:e,state:n,stateDiff:s,code:o}=r,i={};if(o!==void 0&&(i.code=o),t!==void 0&&(i.balance=c.numberToHex(t)),e!==void 0&&(i.nonce=c.numberToHex(e)),n!==void 0&&(i.state=d(n)),s!==void 0){if(i.state)throw new f.StateAssignmentConflictError;i.stateDiff=d(s)}return i}function h(r){if(!r)return;const t={};for(const{address:e,...n}of r){if(!S.isAddress(e,{strict:!1}))throw new l.InvalidAddressError({address:e});if(t[e])throw new f.AccountStateConflictError({address:e});t[e]=u(n)}return t}exports.serializeAccountStateOverride=u;exports.serializeStateMapping=d;exports.serializeStateOverride=h;
|