@gardenfi/utils 2.1.3-beta.14 → 2.1.3-beta.16
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/index.cjs +1 -1
- package/dist/index.js +30 -34
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +44 -2
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +9 -6
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +16 -50
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +64 -15
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +11 -10
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +13 -5
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +8 -14
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +10 -3
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +25 -25
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +14 -4
- package/dist/index109.cjs +3 -1
- package/dist/index109.js +110 -6
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +17 -115
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +50 -93
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +24 -125
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +117 -7
- package/dist/index113.cjs +20 -1
- package/dist/index113.js +323 -18
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +80 -17
- package/dist/index115.cjs +4 -1
- package/dist/index115.js +194 -40
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +24 -21
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +179 -9
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +12 -6
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +23 -105
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +134 -37
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +89 -4
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +33 -9
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +16 -2
- package/dist/index124.cjs +1 -2
- package/dist/index124.js +2 -3
- package/dist/index125.cjs +1 -20
- package/dist/index125.js +74 -325
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +138 -13
- package/dist/index127.cjs +3 -1
- package/dist/index127.js +451 -4
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +65 -2
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +6 -7
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +10 -21
- package/dist/index130.cjs +1 -3
- package/dist/index130.js +66 -212
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +6 -32
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +21 -21
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +3 -5
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +13 -72
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +88 -5
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +18 -5
- package/dist/index137.cjs +1 -9
- package/dist/index137.js +13 -35
- package/dist/index138.cjs +1 -3
- package/dist/index138.js +43 -108
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +39 -3
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +2 -142
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +7 -23
- package/dist/index141.cjs +1 -3
- package/dist/index141.js +37 -450
- package/dist/index142.cjs +1 -2
- package/dist/index142.js +8 -54
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +9 -26
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +14 -32
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +94 -34
- package/dist/index146.cjs +1 -4
- package/dist/index146.js +20 -194
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +4 -8
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +6 -12
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +26 -18
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +33 -13
- package/dist/index150.cjs +2 -1
- package/dist/index150.js +19 -22
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +9 -8
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +8 -55
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +9 -44
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +11 -8
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +13 -7
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +14 -16
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +7 -18
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +21 -21
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +6 -51
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +19 -2
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +21 -11
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +38 -159
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +17 -21
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +21 -127
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +77 -35
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +44 -6
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +11 -27
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +50 -189
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +4 -4
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +5 -62
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +186 -24
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +6 -3
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +11 -20
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +13 -16
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +13 -23
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +5 -11
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +13 -34
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +104 -3
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +6 -18
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +151 -27
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +34 -35
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +120 -18
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +31 -10
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +8 -24
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +67 -27
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +8 -64
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +71 -9
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +19 -33
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +109 -23
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +23 -24
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +50 -3
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +106 -14
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +2 -121
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +9 -104
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +2 -81
- package/dist/index192.cjs +2 -1
- package/dist/index192.js +3 -6
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +13 -6
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +4 -27
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +2 -35
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +32 -14
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +18 -39
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +5 -5
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +5 -11
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +13 -2
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +5 -19
- package/dist/index201.cjs +9 -1
- package/dist/index201.js +31 -74
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +3 -2
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +19 -30
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +28 -106
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +32 -46
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +8 -32
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +12 -8
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +18 -6
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +27 -6
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +464 -13
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +8 -11
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +54 -9
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +8 -13
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +7 -32
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +162 -5
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +127 -7
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +27 -8
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +189 -18
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +4 -32
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +3 -21
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +36 -464
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +20 -3
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +16 -17
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +11 -10
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +33 -20
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +3 -23
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +27 -5
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +25 -5
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +28 -8
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +6 -104
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +28 -3
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +31 -36
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +34 -18
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +37 -166
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +77 -16
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +2 -11
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +36 -15
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +47 -20
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +6 -30
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +7 -2
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +32 -13
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +5 -13
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +31 -26
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +8 -47
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +3 -11
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +17 -7
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +10 -9
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +5 -13
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +8 -14
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +104 -9
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +3 -25
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +18 -12
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +168 -21
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +12 -8
- package/dist/index250.cjs +1 -2
- package/dist/index250.js +16 -23
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +25 -13
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +12 -14
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +15 -52
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +5 -25
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +13 -13
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +9 -14
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +16 -5
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +3 -13
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +140 -10
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +57 -12
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +155 -16
- package/dist/index261.cjs +1 -2
- package/dist/index261.js +9 -41
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +114 -2
- package/dist/index263.cjs +2 -1
- package/dist/index263.js +134 -5
- package/dist/index264.cjs +2 -1
- package/dist/index264.js +40 -9
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +2 -20
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +5 -8
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +9 -65
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +17 -63
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +8 -186
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +12 -57
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +66 -22
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +61 -38
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +179 -69
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +21 -39
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +35 -9
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +70 -7
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +40 -12
- package/dist/index277.cjs +1 -2
- package/dist/index277.js +16 -18
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +12 -13
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +12 -11
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +3 -3
- package/dist/index280.cjs +2 -1
- package/dist/index280.js +18 -103
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +14 -16
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +11 -214
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +103 -6
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +17 -7
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +213 -25
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +6 -19
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +7 -109
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +26 -3
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +18 -139
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +17 -32
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +103 -150
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +11 -9
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +18 -112
- package/dist/index293.cjs +1 -2
- package/dist/index293.js +35 -127
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +74 -202
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +2 -43
- package/dist/index296.cjs +2 -1
- package/dist/index296.js +63 -75
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +5 -2
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +40 -68
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +7 -11
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +12 -16
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +46 -31
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +61 -18
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +68 -648
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +4 -178
- package/dist/index303.cjs +1 -2
- package/dist/index303.js +190 -62
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +68 -4
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +654 -37
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +206 -7
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +171 -56
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +47 -61
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +45 -4
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +9 -10
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +4 -194
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +5 -5
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +2 -64
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +20 -43
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +18 -7
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +124 -30
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +57 -26
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +23 -16
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +10 -33
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +18 -42
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +6 -151
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +10 -35
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +17 -17
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +30 -36
- package/dist/index41.cjs +1 -2
- package/dist/index41.js +15 -58
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +16 -32
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +7 -15
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +33 -8
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +25 -2
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +21 -44
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +57 -30
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +40 -3
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +37 -9
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +161 -63
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +109 -7
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +27 -25
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +3 -71
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +2 -20
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +4 -111
- package/dist/index56.cjs +2 -1
- package/dist/index56.js +58 -59
- package/dist/index57.cjs +2 -1
- package/dist/index57.js +52 -22
- package/dist/index58.cjs +3 -1
- package/dist/index58.js +212 -37
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +12 -36
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +6 -6
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +11 -57
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +23 -164
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +27 -39
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +47 -9
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +19 -36
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +11 -9
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +36 -46
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +9 -85
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +7 -41
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +30 -7
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +22 -105
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +36 -6
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +36 -17
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +9 -8
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +29 -13
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +22 -7
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +85 -9
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +46 -42
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +23 -13
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +41 -16
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +17 -13
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +2 -10
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +33 -35
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +8 -8
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +12 -7
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +109 -26
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +8 -10
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +5 -13
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +6 -116
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +21 -80
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +8 -181
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +119 -19
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +31 -6
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +13 -13
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +7 -13
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +9 -95
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +16 -75
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +72 -87
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +34 -137
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +45 -68
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +14 -23
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +13 -109
- package/dist/src/index.d.ts +0 -3
- package/dist/src/lib/approve.d.ts +1 -1
- package/dist/src/lib/auth/apikey/apikey.d.ts +1 -1
- package/dist/src/lib/auth/auth.types.d.ts +1 -1
- package/dist/src/lib/auth/passkey/passkey.d.ts +1 -1
- package/dist/src/lib/auth/passkey/passkeyLogin.d.ts +3 -3
- package/dist/src/lib/auth/siwe/siwe.d.ts +1 -1
- package/dist/src/lib/blockNumber/blockNumber.d.ts +9 -2
- package/dist/src/lib/blockNumber/index.d.ts +1 -1
- package/dist/src/lib/utils.d.ts +2 -2
- package/package.json +1 -1
- package/dist/index314.cjs +0 -1
- package/dist/index314.js +0 -7
- package/dist/index315.cjs +0 -1
- package/dist/index315.js +0 -4
- package/dist/index316.cjs +0 -1
- package/dist/index316.js +0 -24
- package/dist/src/lib/fetcher.d.ts +0 -45
- package/dist/src/lib/retry.d.ts +0 -16
- package/dist/src/lib/safeParseJson.d.ts +0 -7
- package/dist/src/lib/tryCatch.d.ts +0 -7
- package/dist/src/lib/types.d.ts +0 -3
package/dist/index39.js
CHANGED
|
@@ -1,38 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
throw new p({
|
|
11
|
-
docsPath: "/docs/contract/writeContract"
|
|
12
|
-
});
|
|
13
|
-
const t = o ? u(o) : null, f = w({
|
|
14
|
-
abi: n,
|
|
15
|
-
args: c,
|
|
16
|
-
functionName: s
|
|
17
|
-
});
|
|
18
|
-
try {
|
|
19
|
-
return await C(r, g, "sendTransaction")({
|
|
20
|
-
data: `${f}${e ? e.replace("0x", "") : ""}`,
|
|
21
|
-
to: a,
|
|
22
|
-
account: t,
|
|
23
|
-
...d
|
|
24
|
-
});
|
|
25
|
-
} catch (m) {
|
|
26
|
-
throw h(m, {
|
|
27
|
-
abi: n,
|
|
28
|
-
address: a,
|
|
29
|
-
args: c,
|
|
30
|
-
docsPath: "/docs/contract/writeContract",
|
|
31
|
-
functionName: s,
|
|
32
|
-
sender: t == null ? void 0 : t.address
|
|
33
|
-
});
|
|
34
|
-
}
|
|
1
|
+
import { panicReasons as l } from "./index196.js";
|
|
2
|
+
import { BaseError as c } from "./index56.js";
|
|
3
|
+
import { ContractFunctionRevertedError as i } from "./index58.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;
|
|
35
10
|
}
|
|
36
11
|
export {
|
|
37
|
-
N as
|
|
12
|
+
N as isNullUniversalResolverError
|
|
38
13
|
};
|
package/dist/index4.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=require("./index17.cjs"),i=require("./index3.cjs"),d=require("./index18.cjs"),w=require("./index19.cjs"),f=require("./index20.cjs"),g=require("./index21.cjs"),m=async(s,n,o,t)=>{if(!t.account)return e.Err("No account found");const a=d.getContract({address:i.with0x(n),abi:g.erc20Abi,client:t});try{const c=await a.read.allowance([i.with0x(t.account.address),i.with0x(o)]);if(BigInt(c)<BigInt(s)){const r=await a.write.approve([i.with0x(o),w.maxUint256],{account:t.account,chain:t.chain}),u=await p(t,r);return u.error?e.Err(u.error):u.val.status!=="success"?e.Err("Failed to approve"):e.Ok(r)}return e.Ok("Already approved")}catch(c){return e.Err("Failed to approve: "+c)}},p=async(s,n,o=2e3,t=12e4)=>{const a=Math.ceil(t/o);for(let c=0;c<a;c++){try{const r=await f.getTransactionReceipt(s,{hash:n});if(r)return e.Ok(r)}catch(r){if(!r.message.includes(`Transaction receipt with hash "${n}" could not be found.`))return e.Err(r.message)}c<a-1&&await new Promise(r=>setTimeout(r,o))}return e.Err(`Timed out waiting for receipt of ${n}`)};exports.checkAllowanceAndApprove=m;exports.waitForTransactionReceipt=p;
|
package/dist/index4.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { getContract as m } from "./
|
|
4
|
-
import { maxUint256 as f } from "./
|
|
5
|
-
import { getTransactionReceipt as d } from "./
|
|
6
|
-
import { erc20Abi as w } from "./
|
|
7
|
-
const
|
|
1
|
+
import { Err as e, Ok as u } from "./index17.js";
|
|
2
|
+
import { with0x as n } from "./index3.js";
|
|
3
|
+
import { getContract as m } from "./index18.js";
|
|
4
|
+
import { maxUint256 as f } from "./index19.js";
|
|
5
|
+
import { getTransactionReceipt as d } from "./index20.js";
|
|
6
|
+
import { erc20Abi as w } from "./index21.js";
|
|
7
|
+
const F = async (s, a, c, t) => {
|
|
8
8
|
if (!t.account) return e("No account found");
|
|
9
9
|
const i = m({
|
|
10
|
-
address:
|
|
10
|
+
address: n(a),
|
|
11
11
|
abi: w,
|
|
12
12
|
client: t
|
|
13
13
|
});
|
|
14
14
|
try {
|
|
15
15
|
const o = await i.read.allowance([
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
n(t.account.address),
|
|
17
|
+
n(c)
|
|
18
18
|
]);
|
|
19
|
-
if (BigInt(o) < BigInt(
|
|
19
|
+
if (BigInt(o) < BigInt(s)) {
|
|
20
20
|
const r = await i.write.approve(
|
|
21
|
-
[
|
|
21
|
+
[n(c), f],
|
|
22
22
|
{
|
|
23
23
|
account: t.account,
|
|
24
24
|
chain: t.chain
|
|
25
25
|
}
|
|
26
|
-
),
|
|
27
|
-
return
|
|
26
|
+
), p = await g(t, r);
|
|
27
|
+
return p.error ? e(p.error) : p.val.status !== "success" ? e("Failed to approve") : u(r);
|
|
28
28
|
}
|
|
29
29
|
return u("Already approved");
|
|
30
30
|
} catch (o) {
|
|
31
31
|
return e("Failed to approve: " + o);
|
|
32
32
|
}
|
|
33
|
-
}, g = async (
|
|
33
|
+
}, g = async (s, a, c = 2e3, t = 12e4) => {
|
|
34
34
|
const i = Math.ceil(t / c);
|
|
35
35
|
for (let o = 0; o < i; o++) {
|
|
36
36
|
try {
|
|
37
|
-
const r = await d(
|
|
37
|
+
const r = await d(s, { hash: a });
|
|
38
38
|
if (r)
|
|
39
39
|
return u(r);
|
|
40
40
|
} catch (r) {
|
|
@@ -48,6 +48,6 @@ const b = async (p, a, c, t) => {
|
|
|
48
48
|
return e(`Timed out waiting for receipt of ${a}`);
|
|
49
49
|
};
|
|
50
50
|
export {
|
|
51
|
-
|
|
51
|
+
F as checkAllowanceAndApprove,
|
|
52
52
|
g as waitForTransactionReceipt
|
|
53
53
|
};
|
package/dist/index40.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 r=require("./index21.cjs"),y=require("./index196.cjs"),d=require("./index221.cjs"),c=require("./index225.cjs"),b=require("./index227.cjs"),h="x-batch-gateway:true";async function q(e){const{data:o,ccipRequest:n}=e,{args:[u]}=d.decodeFunctionData({abi:r.batchGatewayAbi,data:o}),a=[],s=[];return await Promise.all(u.map(async(i,t)=>{try{s[t]=await n(i),a[t]=!1}catch(l){a[t]=!0,s[t]=g(l)}})),b.encodeFunctionResult({abi:r.batchGatewayAbi,functionName:"query",result:[a,s]})}function g(e){return e.name==="HttpRequestError"&&e.status?c.encodeErrorResult({abi:r.batchGatewayAbi,errorName:"HttpError",args:[e.status,e.shortMessage]}):c.encodeErrorResult({abi:[y.solidityError],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}exports.localBatchGatewayRequest=q;exports.localBatchGatewayUrl=h;
|
package/dist/index40.js
CHANGED
|
@@ -1,41 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
async function
|
|
8
|
-
const {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
m(() => e.resolve(t));
|
|
20
|
-
} catch (t) {
|
|
21
|
-
m(() => e.reject(t));
|
|
22
|
-
}
|
|
23
|
-
}, {
|
|
24
|
-
interval: c,
|
|
25
|
-
emitOnBegin: !0
|
|
26
|
-
});
|
|
27
|
-
return u;
|
|
1
|
+
import { batchGatewayAbi as s } from "./index21.js";
|
|
2
|
+
import { solidityError as l } from "./index196.js";
|
|
3
|
+
import { decodeFunctionData as f } from "./index221.js";
|
|
4
|
+
import { encodeErrorResult as o } from "./index225.js";
|
|
5
|
+
import { encodeFunctionResult as p } from "./index227.js";
|
|
6
|
+
const E = "x-batch-gateway:true";
|
|
7
|
+
async function q(t) {
|
|
8
|
+
const { data: c, ccipRequest: n } = t, { args: [i] } = f({ abi: s, data: c }), e = [], r = [];
|
|
9
|
+
return await Promise.all(i.map(async (u, a) => {
|
|
10
|
+
try {
|
|
11
|
+
r[a] = await n(u), e[a] = !1;
|
|
12
|
+
} catch (m) {
|
|
13
|
+
e[a] = !0, r[a] = y(m);
|
|
14
|
+
}
|
|
15
|
+
})), p({
|
|
16
|
+
abi: s,
|
|
17
|
+
functionName: "query",
|
|
18
|
+
result: [e, r]
|
|
28
19
|
});
|
|
29
|
-
return s = n ? setTimeout(() => {
|
|
30
|
-
l(), clearTimeout(s), a(new h({ id: i }));
|
|
31
|
-
}, n) : void 0, await p;
|
|
32
20
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
21
|
+
function y(t) {
|
|
22
|
+
return t.name === "HttpRequestError" && t.status ? o({
|
|
23
|
+
abi: s,
|
|
24
|
+
errorName: "HttpError",
|
|
25
|
+
args: [t.status, t.shortMessage]
|
|
26
|
+
}) : o({
|
|
27
|
+
abi: [l],
|
|
28
|
+
errorName: "Error",
|
|
29
|
+
args: ["shortMessage" in t ? t.shortMessage : t.message]
|
|
30
|
+
});
|
|
37
31
|
}
|
|
38
32
|
export {
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
q as localBatchGatewayRequest,
|
|
34
|
+
E as localBatchGatewayUrl
|
|
41
35
|
};
|
package/dist/index41.cjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
`);super(b,e.cause?{cause:e.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=n,this.metaMessages=e.metaMessages,this.name=e.name??this.name,this.shortMessage=t,this.version=l.version}walk(t){return d(this,t)}}function d(s,t){return t!=null&&t(s)?s:s&&typeof s=="object"&&"cause"in s&&s.cause!==void 0?d(s.cause,t):t?null:s}exports.BaseError=u;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index136.cjs"),n=require("./index211.cjs"),r=require("./index30.cjs"),a=require("./index212.cjs"),h=require("./index213.cjs");function b(s){let e=new Uint8Array(32).fill(0);if(!s)return r.bytesToHex(e);const o=s.split(".");for(let t=o.length-1;t>=0;t-=1){const c=h.encodedLabelToLabelhash(o[t]),l=c?n.toBytes(c):a.keccak256(n.stringToBytes(o[t]),"bytes");e=a.keccak256(i.concat([e,l]),"bytes")}return r.bytesToHex(e)}exports.namehash=b;
|
package/dist/index41.js
CHANGED
|
@@ -1,62 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"",
|
|
15
|
-
...e.metaMessages ? [...e.metaMessages, ""] : [],
|
|
16
|
-
...n ? [`Docs: ${n}`] : [],
|
|
17
|
-
...u ? [`Details: ${u}`] : [],
|
|
18
|
-
...i.version ? [`Version: ${i.version}`] : []
|
|
19
|
-
].join(`
|
|
20
|
-
`);
|
|
21
|
-
super(b, e.cause ? { cause: e.cause } : void 0), Object.defineProperty(this, "details", {
|
|
22
|
-
enumerable: !0,
|
|
23
|
-
configurable: !0,
|
|
24
|
-
writable: !0,
|
|
25
|
-
value: void 0
|
|
26
|
-
}), Object.defineProperty(this, "docsPath", {
|
|
27
|
-
enumerable: !0,
|
|
28
|
-
configurable: !0,
|
|
29
|
-
writable: !0,
|
|
30
|
-
value: void 0
|
|
31
|
-
}), Object.defineProperty(this, "metaMessages", {
|
|
32
|
-
enumerable: !0,
|
|
33
|
-
configurable: !0,
|
|
34
|
-
writable: !0,
|
|
35
|
-
value: void 0
|
|
36
|
-
}), Object.defineProperty(this, "shortMessage", {
|
|
37
|
-
enumerable: !0,
|
|
38
|
-
configurable: !0,
|
|
39
|
-
writable: !0,
|
|
40
|
-
value: void 0
|
|
41
|
-
}), Object.defineProperty(this, "version", {
|
|
42
|
-
enumerable: !0,
|
|
43
|
-
configurable: !0,
|
|
44
|
-
writable: !0,
|
|
45
|
-
value: void 0
|
|
46
|
-
}), Object.defineProperty(this, "name", {
|
|
47
|
-
enumerable: !0,
|
|
48
|
-
configurable: !0,
|
|
49
|
-
writable: !0,
|
|
50
|
-
value: "BaseError"
|
|
51
|
-
}), this.details = u, this.docsPath = a, this.metaMessages = e.metaMessages, this.name = e.name ?? this.name, this.shortMessage = t, this.version = l;
|
|
52
|
-
}
|
|
53
|
-
walk(t) {
|
|
54
|
-
return d(this, t);
|
|
1
|
+
import { concat as a } from "./index136.js";
|
|
2
|
+
import { toBytes as m, stringToBytes as c } from "./index211.js";
|
|
3
|
+
import { bytesToHex as n } from "./index30.js";
|
|
4
|
+
import { keccak256 as i } from "./index212.js";
|
|
5
|
+
import { encodedLabelToLabelhash as f } from "./index213.js";
|
|
6
|
+
function u(r) {
|
|
7
|
+
let t = new Uint8Array(32).fill(0);
|
|
8
|
+
if (!r)
|
|
9
|
+
return n(t);
|
|
10
|
+
const e = r.split(".");
|
|
11
|
+
for (let o = e.length - 1; o >= 0; o -= 1) {
|
|
12
|
+
const s = f(e[o]), l = s ? m(s) : i(c(e[o]), "bytes");
|
|
13
|
+
t = i(a([t, l]), "bytes");
|
|
55
14
|
}
|
|
56
|
-
|
|
57
|
-
function d(s, t) {
|
|
58
|
-
return t != null && t(s) ? s : s && typeof s == "object" && "cause" in s && s.cause !== void 0 ? d(s.cause, t) : t ? null : s;
|
|
15
|
+
return n(t);
|
|
59
16
|
}
|
|
60
17
|
export {
|
|
61
|
-
|
|
18
|
+
u as namehash
|
|
62
19
|
};
|
package/dist/index42.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("./index211.cjs"),a=require("./index258.cjs"),c=require("./index210.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/index42.js
CHANGED
|
@@ -1,35 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
n
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
{ id: i, fns: f }
|
|
17
|
-
]), o && o.length > 0)
|
|
18
|
-
return r;
|
|
19
|
-
const u = {};
|
|
20
|
-
for (const n in f)
|
|
21
|
-
u[n] = (...t) => {
|
|
22
|
-
var p, g;
|
|
23
|
-
const c = s();
|
|
24
|
-
if (c.length !== 0)
|
|
25
|
-
for (const k of c)
|
|
26
|
-
(g = (p = k.fns)[n]) == null || g.call(p, ...t);
|
|
27
|
-
};
|
|
28
|
-
const a = w(u);
|
|
29
|
-
return typeof a == "function" && h.set(e, a), r;
|
|
1
|
+
import { stringToBytes as i } from "./index211.js";
|
|
2
|
+
import { encodeLabelhash as h } from "./index258.js";
|
|
3
|
+
import { labelhash as f } from "./index210.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;
|
|
14
|
+
}
|
|
15
|
+
return e.byteLength !== t + 1 ? e.slice(0, t + 1) : e;
|
|
30
16
|
}
|
|
31
17
|
export {
|
|
32
|
-
|
|
33
|
-
l as listenersCache,
|
|
34
|
-
y as observe
|
|
18
|
+
y as packetToBytes
|
|
35
19
|
};
|
package/dist/index43.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 r(t,e,o){const i=t[e.name];if(typeof i=="function")return i;const n=t[o];return typeof n=="function"?n:c=>e(t,c)}exports.getAction=r;
|
package/dist/index43.js
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
r && (w = await o({ unpoll: a }));
|
|
8
|
-
const s = await (t == null ? void 0 : t(w)) ?? c;
|
|
9
|
-
await l(s);
|
|
10
|
-
const u = async () => {
|
|
11
|
-
n && (await o({ unpoll: a }), await l(c), u());
|
|
12
|
-
};
|
|
13
|
-
u();
|
|
14
|
-
})(), a;
|
|
1
|
+
function f(t, n, c) {
|
|
2
|
+
const i = t[n.name];
|
|
3
|
+
if (typeof i == "function")
|
|
4
|
+
return i;
|
|
5
|
+
const o = t[c];
|
|
6
|
+
return typeof o == "function" ? o : (e) => n(t, e);
|
|
15
7
|
}
|
|
16
8
|
export {
|
|
17
|
-
f as
|
|
9
|
+
f as getAction
|
|
18
10
|
};
|
package/dist/index44.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index35.cjs"),u=require("./index36.cjs"),l=require("./index74.cjs"),g=require("./index43.cjs"),q=require("./index50.cjs");async function C(a,n){const{abi:t,address:o,args:e,functionName:r,...d}=n,s=u.encodeFunctionData({abi:t,args:e,functionName:r});try{const{data:c}=await g.getAction(a,q.call,"call")({...d,data:s,to:o});return i.decodeFunctionResult({abi:t,args:e,functionName:r,data:c||"0x"})}catch(c){throw l.getContractError(c,{abi:t,address:o,args:e,docsPath:"/docs/contract/readContract",functionName:r})}}exports.readContract=C;
|
package/dist/index44.js
CHANGED
|
@@ -1,11 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { decodeFunctionResult as m } from "./index35.js";
|
|
2
|
+
import { encodeFunctionData as s } from "./index36.js";
|
|
3
|
+
import { getContractError as f } from "./index74.js";
|
|
4
|
+
import { getAction as l } from "./index43.js";
|
|
5
|
+
import { call as p } from "./index50.js";
|
|
6
|
+
async function x(n, e) {
|
|
7
|
+
const { abi: t, address: c, args: o, functionName: r, ...d } = e, i = s({
|
|
8
|
+
abi: t,
|
|
9
|
+
args: o,
|
|
10
|
+
functionName: r
|
|
11
|
+
});
|
|
12
|
+
try {
|
|
13
|
+
const { data: a } = await l(n, p, "call")({
|
|
14
|
+
...d,
|
|
15
|
+
data: i,
|
|
16
|
+
to: c
|
|
17
|
+
});
|
|
18
|
+
return m({
|
|
19
|
+
abi: t,
|
|
20
|
+
args: o,
|
|
21
|
+
functionName: r,
|
|
22
|
+
data: a || "0x"
|
|
23
|
+
});
|
|
24
|
+
} catch (a) {
|
|
25
|
+
throw f(a, {
|
|
26
|
+
abi: t,
|
|
27
|
+
address: c,
|
|
28
|
+
args: o,
|
|
29
|
+
docsPath: "/docs/contract/readContract",
|
|
30
|
+
functionName: r
|
|
31
|
+
});
|
|
32
|
+
}
|
|
8
33
|
}
|
|
9
34
|
export {
|
|
10
|
-
|
|
35
|
+
x as readContract
|
|
11
36
|
};
|
package/dist/index45.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 i=require("./index46.cjs"),g=require("./index43.cjs"),l=require("./index47.cjs");async function v(t,{blockNumber:r,blockTag:a,assetGatewayUrls:n,name:s,gatewayUrls:c,strict:o,universalResolverAddress:u}){const e=await g.getAction(t,l.getEnsText,"getEnsText")({blockNumber:r,blockTag:a,key:"avatar",name:s,universalResolverAddress:u,gatewayUrls:c,strict:o});if(!e)return null;try{return await i.parseAvatarRecord(t,{record:e,gatewayUrls:n})}catch{return null}}exports.getEnsAvatar=v;
|
package/dist/index45.js
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
import { parseAvatarRecord as m } from "./index46.js";
|
|
2
|
+
import { getAction as u } from "./index43.js";
|
|
3
|
+
import { getEnsText as f } from "./index47.js";
|
|
4
|
+
async function y(t, { blockNumber: a, blockTag: e, assetGatewayUrls: n, name: o, gatewayUrls: c, strict: i, universalResolverAddress: s }) {
|
|
5
|
+
const r = await u(t, f, "getEnsText")({
|
|
6
|
+
blockNumber: a,
|
|
7
|
+
blockTag: e,
|
|
8
|
+
key: "avatar",
|
|
9
|
+
name: o,
|
|
10
|
+
universalResolverAddress: s,
|
|
11
|
+
gatewayUrls: c,
|
|
12
|
+
strict: i
|
|
13
|
+
});
|
|
14
|
+
if (!r)
|
|
15
|
+
return null;
|
|
16
|
+
try {
|
|
17
|
+
return await m(t, {
|
|
18
|
+
record: r,
|
|
19
|
+
gatewayUrls: n
|
|
20
|
+
});
|
|
21
|
+
} catch {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
2
25
|
export {
|
|
3
|
-
|
|
26
|
+
y as getEnsAvatar
|
|
4
27
|
};
|
package/dist/index46.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=require("./index259.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/index46.js
CHANGED
|
@@ -1,48 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
receipts: s.filter(Boolean),
|
|
17
|
-
status: b,
|
|
18
|
-
version: "2.0.0"
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
return a.request({
|
|
22
|
-
method: "wallet_getCallsStatus",
|
|
23
|
-
params: [t]
|
|
24
|
-
});
|
|
1
|
+
import { parseAvatarUri as o, parseNftUri as f, getNftTokenUri as v, resolveAvatarUri as l, getJsonImage as A, getMetadataAvatarUri as N } from "./index259.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 });
|
|
25
16
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
...i,
|
|
32
|
-
atomic: l,
|
|
33
|
-
// @ts-expect-error: for backwards compatibility
|
|
34
|
-
chainId: r ? u(r) : void 0,
|
|
35
|
-
receipts: (n == null ? void 0 : n.map((t) => ({
|
|
36
|
-
...t,
|
|
37
|
-
blockNumber: c(t.blockNumber),
|
|
38
|
-
gasUsed: c(t.gasUsed),
|
|
39
|
-
status: N[t.status]
|
|
40
|
-
}))) ?? [],
|
|
41
|
-
statusCode: g,
|
|
42
|
-
status: p,
|
|
43
|
-
version: d
|
|
44
|
-
};
|
|
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
|
+
});
|
|
45
22
|
}
|
|
46
23
|
export {
|
|
47
|
-
|
|
24
|
+
b as parseAvatarRecord
|
|
48
25
|
};
|
package/dist/index47.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index21.cjs"),q=require("./index35.cjs"),A=require("./index36.cjs"),R=require("./index37.cjs"),b=require("./index30.cjs"),f=require("./index39.cjs"),y=require("./index40.cjs"),C=require("./index41.cjs"),x=require("./index42.cjs"),m=require("./index43.cjs"),w=require("./index44.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;
|