@gardenfi/utils 2.4.4 → 2.4.5-beta.1
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 +46 -6
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +14 -35
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +13 -9
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +9 -8
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +16 -26
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +65 -10
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +11 -14
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +13 -117
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +8 -81
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +10 -177
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +26 -6
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +13 -12
- package/dist/index112.cjs +3 -1
- package/dist/index112.js +110 -13
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +51 -95
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +24 -75
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +113 -85
- package/dist/index116.cjs +20 -1
- package/dist/index116.js +325 -137
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +79 -67
- package/dist/index118.cjs +4 -1
- package/dist/index118.js +194 -23
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +18 -109
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +24 -6
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +175 -48
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +12 -16
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +24 -10
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +3 -6
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +89 -14
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +37 -3
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +15 -26
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +2 -5
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +75 -6
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +135 -85
- package/dist/index131.cjs +3 -1
- package/dist/index131.js +449 -123
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +64 -7
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +6 -21
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +68 -16
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +5 -40
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +21 -21
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +3 -11
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +14 -6
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +86 -104
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +14 -3
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +46 -4
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +39 -9
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +8 -2
- package/dist/index144.cjs +1 -2
- package/dist/index144.js +58 -3
- package/dist/index145.cjs +1 -20
- package/dist/index145.js +8 -321
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +8 -13
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +20 -4
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +10 -2
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +15 -7
- package/dist/index150.cjs +1 -3
- package/dist/index150.js +101 -213
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +5 -32
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +6 -21
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +26 -5
- package/dist/index154.cjs +2 -1
- package/dist/index154.js +21 -70
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +9 -5
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +8 -5
- package/dist/index157.cjs +1 -9
- package/dist/index157.js +9 -34
- package/dist/index158.cjs +1 -3
- package/dist/index158.js +11 -110
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +14 -3
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +14 -23
- package/dist/index161.cjs +1 -3
- package/dist/index161.js +7 -451
- package/dist/index162.cjs +1 -2
- package/dist/index162.js +18 -51
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +6 -26
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +18 -30
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +39 -34
- package/dist/index166.cjs +1 -4
- package/dist/index166.js +17 -194
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +20 -7
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +77 -15
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +42 -25
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +11 -8
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +52 -7
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +3 -16
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +5 -18
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +5 -21
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +11 -51
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +13 -11
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +12 -160
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +5 -127
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +12 -37
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +103 -6
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +6 -27
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +149 -189
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +36 -4
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +31 -63
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +10 -3
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +63 -15
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +8 -15
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +71 -23
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +19 -34
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +8 -8
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +111 -3
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +23 -18
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +50 -27
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +105 -35
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +9 -11
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +2 -26
- package/dist/index196.cjs +2 -1
- package/dist/index196.js +3 -29
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +12 -64
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +4 -9
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +2 -25
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +31 -24
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +21 -3
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +5 -14
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +5 -80
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +5 -5
- package/dist/index205.cjs +9 -1
- package/dist/index205.js +34 -26
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +3 -43
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +26 -5
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +33 -11
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +35 -19
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +2 -2
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +7 -77
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +13 -2
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +13 -32
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +22 -106
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +8 -49
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +54 -31
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +8 -8
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +7 -6
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +161 -6
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +127 -11
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +27 -10
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +190 -12
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +4 -33
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +3 -5
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +20 -7
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +14 -6
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +11 -20
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +32 -29
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +3 -21
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +27 -3
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +8 -8
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +25 -17
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +28 -10
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +6 -21
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +27 -22
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +39 -5
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +42 -8
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +74 -100
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +2 -3
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +36 -17
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +48 -16
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +2 -2
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +6 -10
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +6 -16
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +31 -21
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +5 -31
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +9 -2
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +3 -13
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +17 -12
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +10 -47
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +5 -11
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +8 -7
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +5 -5
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +104 -9
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +3 -14
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +17 -13
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +171 -9
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +17 -24
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +25 -12
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +13 -24
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +14 -12
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +5 -15
- package/dist/index259.cjs +1 -2
- package/dist/index259.js +13 -24
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +3 -3
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +10 -52
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +16 -224
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +153 -137
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +9 -146
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +108 -98
- package/dist/index265.cjs +2 -1
- package/dist/index265.js +134 -6
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +3 -42
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +136 -74
- package/dist/index268.cjs +2 -1
- package/dist/index268.js +42 -2
- package/dist/index269.cjs +1 -2
- package/dist/index269.js +2 -42
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +1 -1
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +6 -2
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +10 -5
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +18 -9
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +8 -19
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +66 -8
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +64 -65
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +181 -60
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +20 -184
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +41 -21
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +54 -20
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +18 -54
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +10 -34
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +7 -10
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +12 -13
- package/dist/index284.cjs +2 -1
- package/dist/index284.js +16 -10
- package/dist/index285.cjs +1 -2
- package/dist/index285.js +14 -18
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +11 -14
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +103 -11
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +6 -6
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +225 -7
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +2 -2
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +6 -26
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +7 -20
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +26 -3
- package/dist/index293.cjs +1 -1
- package/dist/index293.js +18 -139
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +136 -145
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +11 -9
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +18 -112
- package/dist/index297.cjs +1 -2
- package/dist/index297.js +35 -127
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +77 -10
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +2 -20
- package/dist/index300.cjs +2 -1
- package/dist/index300.js +63 -695
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +4 -201
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +40 -68
- package/dist/index303.cjs +1 -2
- package/dist/index303.js +7 -66
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +62 -4
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +70 -33
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +4 -8
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +187 -55
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +68 -77
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +699 -4
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +126 -181
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +201 -4
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +4 -4
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +45 -5
- package/dist/index314.cjs +1 -1
- package/dist/index314.js +4 -44
- 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/index32.cjs +1 -1
- package/dist/index32.js +16 -39
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +3 -3
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +10 -25
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +18 -6
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +125 -13
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +60 -15
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +23 -5
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +10 -13
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +20 -10
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +6 -12
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +10 -11
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +32 -13
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +16 -33
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +15 -54
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +7 -16
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +33 -5
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +24 -8
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +20 -169
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +56 -101
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +40 -3
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +37 -21
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +166 -7
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +110 -30
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +30 -29
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +3 -16
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +2 -34
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +4 -45
- package/dist/index59.cjs +2 -1
- package/dist/index59.js +59 -151
- package/dist/index60.cjs +2 -1
- package/dist/index60.js +50 -31
- package/dist/index61.cjs +3 -1
- package/dist/index61.js +210 -33
- package/dist/index62.cjs +1 -2
- package/dist/index62.js +13 -59
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +12 -37
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +24 -15
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +27 -7
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +48 -2
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +19 -45
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +10 -30
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +39 -8
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +9 -68
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +7 -9
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +28 -25
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +36 -71
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +34 -17
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +9 -110
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +26 -57
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +21 -23
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +87 -38
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +49 -36
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +20 -55
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +38 -163
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +17 -40
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +5 -8
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +33 -36
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +8 -8
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +12 -49
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +106 -82
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +8 -41
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +5 -7
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +7 -6
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +21 -17
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +1 -1
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +31 -13
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +13 -7
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +7 -9
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +9 -46
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +16 -13
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +73 -16
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +35 -13
- package/package.json +3 -2
package/dist/index49.js
CHANGED
|
@@ -1,174 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { blobsToProofs as V } from "./index220.js";
|
|
5
|
-
import { commitmentsToVersionedHashes as C } from "./index219.js";
|
|
6
|
-
import { toBlobSidecars as k } from "./index221.js";
|
|
7
|
-
import { concatHex as h } from "./index173.js";
|
|
8
|
-
import { trim as T } from "./index180.js";
|
|
9
|
-
import { numberToHex as o, bytesToHex as w } from "./index33.js";
|
|
10
|
-
import { toRlp as b } from "./index206.js";
|
|
11
|
-
import { assertTransactionEIP1559 as S, assertTransactionEIP2930 as _, assertTransactionEIP4844 as R, assertTransactionEIP7702 as Y, assertTransactionLegacy as j } from "./index210.js";
|
|
12
|
-
import { getTransactionType as q } from "./index202.js";
|
|
13
|
-
import { serializeAccessList as v } from "./index238.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);
|
|
1
|
+
import { parseAvatarUri as o, parseNftUri as f, getNftTokenUri as v, resolveAvatarUri as l, getJsonImage as A, getMetadataAvatarUri as N } from "./index267.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 });
|
|
17
4
|
}
|
|
18
|
-
function
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
}
|
|
54
|
-
}
|
|
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])
|
|
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,", ""))
|
|
79
11
|
) : (
|
|
80
|
-
//
|
|
81
|
-
|
|
82
|
-
)
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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];
|
|
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
|
+
});
|
|
170
22
|
}
|
|
171
23
|
export {
|
|
172
|
-
|
|
173
|
-
I as toYParitySignatureArray
|
|
24
|
+
b as parseAvatarRecord
|
|
174
25
|
};
|
package/dist/index50.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 o=require("./index22.cjs"),q=require("./index38.cjs"),A=require("./index39.cjs"),R=require("./index40.cjs"),b=require("./index33.cjs"),f=require("./index42.cjs"),y=require("./index43.cjs"),C=require("./index44.cjs"),x=require("./index45.cjs"),m=require("./index46.cjs"),w=require("./index47.cjs");async function T(s,r){const{blockNumber:a,blockTag:u,key:d,name:n,gatewayUrls:v,strict:g}=r,{chain:t}=s,h=(()=>{if(r.universalResolverAddress)return r.universalResolverAddress;if(!t)throw new Error("client chain not configured. universalResolverAddress is required.");return R.getChainContractAddress({blockNumber:a,chain:t,contract:"ensUniversalResolver"})})(),c=t==null?void 0:t.ensTlds;if(c&&!c.some(e=>n.endsWith(e)))return null;try{const e={address:h,abi:o.universalResolverResolveAbi,functionName:"resolve",args:[b.toHex(x.packetToBytes(n)),A.encodeFunctionData({abi:o.textResolverAbi,functionName:"text",args:[C.namehash(n),d]}),v??[y.localBatchGatewayUrl]],blockNumber:a,blockTag:u},i=await m.getAction(s,w.readContract,"readContract")(e);if(i[0]==="0x")return null;const l=q.decodeFunctionResult({abi:o.textResolverAbi,functionName:"text",data:i[0]});return l===""?null:l}catch(e){if(g)throw e;if(f.isNullUniversalResolverError(e,"resolve"))return null;throw e}}exports.getEnsText=T;
|
package/dist/index50.js
CHANGED
|
@@ -1,106 +1,61 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
data: e,
|
|
23
|
-
primaryType: n,
|
|
24
|
-
types: r
|
|
25
|
-
})), c(h(a));
|
|
26
|
-
}
|
|
27
|
-
function b({ domain: o, types: t }) {
|
|
28
|
-
return f({
|
|
29
|
-
data: o,
|
|
30
|
-
primaryType: "EIP712Domain",
|
|
31
|
-
types: t
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function f({ data: o, primaryType: t, types: e }) {
|
|
35
|
-
const n = m({
|
|
36
|
-
data: o,
|
|
37
|
-
primaryType: t,
|
|
38
|
-
types: e
|
|
39
|
-
});
|
|
40
|
-
return c(n);
|
|
41
|
-
}
|
|
42
|
-
function m({ data: o, primaryType: t, types: e }) {
|
|
43
|
-
const n = [{ type: "bytes32" }], r = [l({ primaryType: t, types: e })];
|
|
44
|
-
for (const a of e[t]) {
|
|
45
|
-
const [i, s] = y({
|
|
46
|
-
types: e,
|
|
47
|
-
name: a.name,
|
|
48
|
-
type: a.type,
|
|
49
|
-
value: o[a.name]
|
|
1
|
+
import { textResolverAbi as l, universalResolverResolveAbi as p } from "./index22.js";
|
|
2
|
+
import { decodeFunctionResult as A } from "./index38.js";
|
|
3
|
+
import { encodeFunctionData as R } from "./index39.js";
|
|
4
|
+
import { getChainContractAddress as h } from "./index40.js";
|
|
5
|
+
import { toHex as b } from "./index33.js";
|
|
6
|
+
import { isNullUniversalResolverError as g } from "./index42.js";
|
|
7
|
+
import { localBatchGatewayUrl as w } from "./index43.js";
|
|
8
|
+
import { namehash as x } from "./index44.js";
|
|
9
|
+
import { packetToBytes as C } from "./index45.js";
|
|
10
|
+
import { getAction as y } from "./index46.js";
|
|
11
|
+
import { readContract as N } from "./index47.js";
|
|
12
|
+
async function j(n, t) {
|
|
13
|
+
const { blockNumber: s, blockTag: m, key: d, name: o, gatewayUrls: u, strict: f } = t, { chain: e } = n, v = (() => {
|
|
14
|
+
if (t.universalResolverAddress)
|
|
15
|
+
return t.universalResolverAddress;
|
|
16
|
+
if (!e)
|
|
17
|
+
throw new Error("client chain not configured. universalResolverAddress is required.");
|
|
18
|
+
return h({
|
|
19
|
+
blockNumber: s,
|
|
20
|
+
chain: e,
|
|
21
|
+
contract: "ensUniversalResolver"
|
|
50
22
|
});
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
if (e === "string")
|
|
86
|
-
return [{ type: "bytes32" }, c(d(n))];
|
|
87
|
-
if (e.lastIndexOf("]") === e.length - 1) {
|
|
88
|
-
const r = e.slice(0, e.lastIndexOf("[")), a = n.map((i) => y({
|
|
89
|
-
name: t,
|
|
90
|
-
type: r,
|
|
91
|
-
types: o,
|
|
92
|
-
value: i
|
|
93
|
-
}));
|
|
94
|
-
return [
|
|
95
|
-
{ type: "bytes32" },
|
|
96
|
-
c(p(a.map(([i]) => i), a.map(([, i]) => i)))
|
|
97
|
-
];
|
|
23
|
+
})(), a = e == null ? void 0 : e.ensTlds;
|
|
24
|
+
if (a && !a.some((r) => o.endsWith(r)))
|
|
25
|
+
return null;
|
|
26
|
+
try {
|
|
27
|
+
const r = {
|
|
28
|
+
address: v,
|
|
29
|
+
abi: p,
|
|
30
|
+
functionName: "resolve",
|
|
31
|
+
args: [
|
|
32
|
+
b(C(o)),
|
|
33
|
+
R({
|
|
34
|
+
abi: l,
|
|
35
|
+
functionName: "text",
|
|
36
|
+
args: [x(o), d]
|
|
37
|
+
}),
|
|
38
|
+
u ?? [w]
|
|
39
|
+
],
|
|
40
|
+
blockNumber: s,
|
|
41
|
+
blockTag: m
|
|
42
|
+
}, i = await y(n, N, "readContract")(r);
|
|
43
|
+
if (i[0] === "0x")
|
|
44
|
+
return null;
|
|
45
|
+
const c = A({
|
|
46
|
+
abi: l,
|
|
47
|
+
functionName: "text",
|
|
48
|
+
data: i[0]
|
|
49
|
+
});
|
|
50
|
+
return c === "" ? null : c;
|
|
51
|
+
} catch (r) {
|
|
52
|
+
if (f)
|
|
53
|
+
throw r;
|
|
54
|
+
if (g(r, "resolve"))
|
|
55
|
+
return null;
|
|
56
|
+
throw r;
|
|
98
57
|
}
|
|
99
|
-
return [{ type: e }, n];
|
|
100
58
|
}
|
|
101
59
|
export {
|
|
102
|
-
|
|
103
|
-
b as hashDomain,
|
|
104
|
-
f as hashStruct,
|
|
105
|
-
k as hashTypedData
|
|
60
|
+
j as getEnsText
|
|
106
61
|
};
|
package/dist/index51.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index22.cjs"),C=require("./index40.cjs"),h=require("./index33.cjs"),A=require("./index42.cjs"),f=require("./index45.cjs"),q=require("./index46.cjs"),w=require("./index47.cjs");async function R(r,{address:s,blockNumber:n,blockTag:i,gatewayUrls:o,strict:c,universalResolverAddress:d}){let t=d;if(!t){if(!r.chain)throw new Error("client chain not configured. universalResolverAddress is required.");t=C.getChainContractAddress({blockNumber:n,chain:r.chain,contract:"ensUniversalResolver"})}const u=`${s.toLowerCase().substring(2)}.addr.reverse`;try{const e={address:t,abi:g.universalResolverReverseAbi,functionName:"reverse",args:[h.toHex(f.packetToBytes(u))],blockNumber:n,blockTag:i},a=q.getAction(r,w.readContract,"readContract"),[l,v]=o?await a({...e,args:[...e.args,o]}):await a(e);return s.toLowerCase()!==v.toLowerCase()?null:l}catch(e){if(c)throw e;if(A.isNullUniversalResolverError(e,"reverse"))return null;throw e}}exports.getEnsName=R;
|
package/dist/index51.js
CHANGED
|
@@ -1,6 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { universalResolverReverseAbi as f } from "./index22.js";
|
|
2
|
+
import { getChainContractAddress as u } from "./index40.js";
|
|
3
|
+
import { toHex as h } from "./index33.js";
|
|
4
|
+
import { isNullUniversalResolverError as p } from "./index42.js";
|
|
5
|
+
import { packetToBytes as C } from "./index45.js";
|
|
6
|
+
import { getAction as w } from "./index46.js";
|
|
7
|
+
import { readContract as A } from "./index47.js";
|
|
8
|
+
async function b(e, { address: t, blockNumber: s, blockTag: i, gatewayUrls: a, strict: c, universalResolverAddress: d }) {
|
|
9
|
+
let o = d;
|
|
10
|
+
if (!o) {
|
|
11
|
+
if (!e.chain)
|
|
12
|
+
throw new Error("client chain not configured. universalResolverAddress is required.");
|
|
13
|
+
o = u({
|
|
14
|
+
blockNumber: s,
|
|
15
|
+
chain: e.chain,
|
|
16
|
+
contract: "ensUniversalResolver"
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
const v = `${t.toLowerCase().substring(2)}.addr.reverse`;
|
|
20
|
+
try {
|
|
21
|
+
const r = {
|
|
22
|
+
address: o,
|
|
23
|
+
abi: f,
|
|
24
|
+
functionName: "reverse",
|
|
25
|
+
args: [h(C(v))],
|
|
26
|
+
blockNumber: s,
|
|
27
|
+
blockTag: i
|
|
28
|
+
}, n = w(e, A, "readContract"), [l, m] = a ? await n({
|
|
29
|
+
...r,
|
|
30
|
+
args: [...r.args, a]
|
|
31
|
+
}) : await n(r);
|
|
32
|
+
return t.toLowerCase() !== m.toLowerCase() ? null : l;
|
|
33
|
+
} catch (r) {
|
|
34
|
+
if (c)
|
|
35
|
+
throw r;
|
|
36
|
+
if (p(r, "reverse"))
|
|
37
|
+
return null;
|
|
38
|
+
throw r;
|
|
39
|
+
}
|
|
3
40
|
}
|
|
4
41
|
export {
|
|
5
|
-
|
|
42
|
+
b as getEnsName
|
|
6
43
|
};
|
package/dist/index52.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 u=require("./index40.cjs"),l=require("./index33.cjs"),v=require("./index45.cjs"),y=require("./index46.cjs"),f=require("./index47.cjs");async function g(n,t){const{blockNumber:o,blockTag:i,name:s}=t,{chain:e}=n,a=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!e)throw new Error("client chain not configured. universalResolverAddress is required.");return u.getChainContractAddress({blockNumber:o,chain:e,contract:"ensUniversalResolver"})})(),r=e==null?void 0:e.ensTlds;if(r&&!r.some(d=>s.endsWith(d)))throw new Error(`${s} is not a valid ENS TLD (${r==null?void 0:r.join(", ")}) for chain "${e.name}" (id: ${e.id}).`);const[c]=await y.getAction(n,f.readContract,"readContract")({address:a,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[l.toHex(v.packetToBytes(s))],blockNumber:o,blockTag:i});return c}exports.getEnsResolver=g;
|
package/dist/index52.js
CHANGED
|
@@ -1,24 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { getChainContractAddress as l } from "./index40.js";
|
|
2
|
+
import { toHex as u } from "./index33.js";
|
|
3
|
+
import { packetToBytes as v } from "./index45.js";
|
|
4
|
+
import { getAction as f } from "./index46.js";
|
|
5
|
+
import { readContract as m } from "./index47.js";
|
|
6
|
+
async function g(t, o) {
|
|
7
|
+
const { blockNumber: n, blockTag: i, name: s } = o, { chain: e } = t, a = (() => {
|
|
8
|
+
if (o.universalResolverAddress)
|
|
9
|
+
return o.universalResolverAddress;
|
|
10
|
+
if (!e)
|
|
11
|
+
throw new Error("client chain not configured. universalResolverAddress is required.");
|
|
12
|
+
return l({
|
|
13
|
+
blockNumber: n,
|
|
14
|
+
chain: e,
|
|
15
|
+
contract: "ensUniversalResolver"
|
|
16
|
+
});
|
|
17
|
+
})(), r = e == null ? void 0 : e.ensTlds;
|
|
18
|
+
if (r && !r.some((c) => s.endsWith(c)))
|
|
19
|
+
throw new Error(`${s} is not a valid ENS TLD (${r == null ? void 0 : r.join(", ")}) for chain "${e.name}" (id: ${e.id}).`);
|
|
20
|
+
const [d] = await f(t, m, "readContract")({
|
|
21
|
+
address: a,
|
|
22
|
+
abi: [
|
|
23
|
+
{
|
|
24
|
+
inputs: [{ type: "bytes" }],
|
|
25
|
+
name: "findResolver",
|
|
26
|
+
outputs: [{ type: "address" }, { type: "bytes32" }],
|
|
27
|
+
stateMutability: "view",
|
|
28
|
+
type: "function"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
functionName: "findResolver",
|
|
32
|
+
args: [u(v(s))],
|
|
33
|
+
blockNumber: n,
|
|
34
|
+
blockTag: i
|
|
35
|
+
});
|
|
36
|
+
return d;
|
|
20
37
|
}
|
|
21
38
|
export {
|
|
22
|
-
|
|
23
|
-
w as getAddress
|
|
39
|
+
g as getEnsResolver
|
|
24
40
|
};
|
package/dist/index53.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(t,e,o){const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("./index55.cjs"),Y=require("./index56.cjs"),z=require("./index22.cjs"),Z=require("./index57.cjs"),j=require("./index58.cjs"),A=require("./index59.cjs"),R=require("./index60.cjs"),L=require("./index61.cjs"),ee=require("./index38.cjs"),$=require("./index35.cjs"),te=require("./index39.cjs"),ae=require("./index40.cjs"),G=require("./index33.cjs"),re=require("./index62.cjs"),oe=require("./index63.cjs"),ce=require("./index64.cjs"),ne=require("./index65.cjs"),se=require("./index66.cjs"),ie=require("./index67.cjs"),M=require("./index68.cjs");async function ue(e,t){var O,P,T,_;const{account:a=e.account,authorizationList:i,batch:r=!!((O=e.batch)!=null&&O.multicall),blockNumber:h,blockTag:C=e.experimental_blockTag??"latest",accessList:k,blobs:x,blockOverrides:f,code:y,data:n,factory:b,factoryData:u,gas:v,gasPrice:w,maxFeePerBlobGas:m,maxFeePerGas:p,maxPriorityFeePerGas:g,nonce:q,to:o,value:I,stateOverride:J,...K}=t,D=a?Y.parseAccount(a):void 0;if(y&&(b||u))throw new A.BaseError("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(y&&o)throw new A.BaseError("Cannot provide both `code` & `to` as parameters.");const E=y&&n,N=b&&u&&o&&n,S=E||N,Q=E?fe({code:y,data:n}):N?be({data:n,factory:b,factoryData:u,to:o}):n;try{ie.assertRequest(t);const c=(typeof h=="bigint"?G.numberToHex(h):void 0)||C,l=f?X.toRpc(f):void 0,d=se.serializeStateOverride(J),H=(_=(T=(P=e.chain)==null?void 0:P.formatters)==null?void 0:T.transactionRequest)==null?void 0:_.format,F=(H||ce.formatTransactionRequest)({...oe.extract(K,{format:H}),from:D==null?void 0:D.address,accessList:k,authorizationList:i,blobs:x,data:Q,gas:v,gasPrice:w,maxFeePerBlobGas:m,maxFeePerGas:p,maxPriorityFeePerGas:g,nonce:q,to:S?void 0:o,value:I});if(r&&le({request:F})&&!d&&!l)try{return await de(e,{...F,blockNumber:h,blockTag:C})}catch(s){if(!(s instanceof R.ClientChainNotConfiguredError)&&!(s instanceof R.ChainDoesNotSupportContract))throw s}const U=(()=>{const s=[F,c];return d&&l?[...s,d,l]:d?[...s,d]:l?[...s,{},l]:s})(),V=await e.request({method:"eth_call",params:U});return V==="0x"?{data:void 0}:{data:V}}catch(B){const c=W(B),{offchainLookup:l,offchainLookupSignature:d}=await Promise.resolve().then(()=>require("./index54.cjs"));if(e.ccipRead!==!1&&(c==null?void 0:c.slice(0,10))===d&&o)return{data:await l(e,{data:c,to:o})};throw S&&(c==null?void 0:c.slice(0,10))==="0x101bb98d"?new L.CounterfactualDeploymentFailedError({factory:b}):re.getCallError(B,{...t,account:D,chain:e.chain})}}function le({request:e}){const{data:t,to:a,...i}=e;return!(!t||t.startsWith(Z.aggregate3Signature)||!a||Object.values(i).filter(r=>typeof r<"u").length>0)}async function de(e,t){var w;const{batchSize:a=1024,wait:i=0}=typeof((w=e.batch)==null?void 0:w.multicall)=="object"?e.batch.multicall:{},{blockNumber:r,blockTag:h=e.experimental_blockTag??"latest",data:C,multicallAddress:k,to:x}=t;let f=k;if(!f){if(!e.chain)throw new R.ClientChainNotConfiguredError;f=ae.getChainContractAddress({blockNumber:r,chain:e.chain,contract:"multicall3"})}const n=(typeof r=="bigint"?G.numberToHex(r):void 0)||h,{schedule:b}=ne.createBatchScheduler({id:`${e.uid}.${n}`,wait:i,shouldSplitBatch(m){return m.reduce((g,{data:q})=>g+(q.length-2),0)>a*2},fn:async m=>{const p=m.map(o=>({allowFailure:!0,callData:o.data,target:o.to})),g=te.encodeFunctionData({abi:z.multicall3Abi,args:[p],functionName:"aggregate3"}),q=await e.request({method:"eth_call",params:[{data:g,to:f},n]});return ee.decodeFunctionResult({abi:z.multicall3Abi,args:[p],functionName:"aggregate3",data:q||"0x"})}}),[{returnData:u,success:v}]=await b({data:C,to:x});if(!v)throw new L.RawContractError({data:u});return u==="0x"?{data:void 0}:{data:u}}function fe(e){const{code:t,data:a}=e;return $.encodeDeployData({abi:M.parseAbi(["constructor(bytes, bytes)"]),bytecode:j.deploylessCallViaBytecodeBytecode,args:[t,a]})}function be(e){const{data:t,factory:a,factoryData:i,to:r}=e;return $.encodeDeployData({abi:M.parseAbi(["constructor(address, bytes, address, bytes)"]),bytecode:j.deploylessCallViaFactoryBytecode,args:[r,t,a,i]})}function W(e){var a;if(!(e instanceof A.BaseError))return;const t=e.walk();return typeof(t==null?void 0:t.data)=="object"?(a=t.data)==null?void 0:a.data:t.data}exports.call=ue;exports.getRevertErrorData=W;
|