@gardenfi/utils 2.1.3-beta.16 → 2.1.3-beta.18
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 +26 -24
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +114 -34
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +16 -9
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +9 -15
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +5 -65
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +10 -11
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +3 -13
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +26 -8
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +4 -10
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +6 -26
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +46 -13
- package/dist/index109.cjs +1 -3
- package/dist/index109.js +117 -104
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +37 -19
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +7 -51
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +21 -24
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +16 -116
- package/dist/index113.cjs +1 -20
- package/dist/index113.js +40 -326
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +21 -80
- package/dist/index115.cjs +1 -4
- package/dist/index115.js +11 -194
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +6 -24
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +103 -178
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +3 -13
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +4 -25
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +19 -134
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +9 -3
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +2 -89
- package/dist/index122.cjs +2 -1
- package/dist/index122.js +3 -33
- package/dist/index123.cjs +20 -1
- package/dist/index123.js +326 -15
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +14 -2
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +4 -75
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +2 -139
- package/dist/index127.cjs +1 -3
- package/dist/index127.js +6 -450
- package/dist/index128.cjs +3 -1
- package/dist/index128.js +209 -58
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +32 -7
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +136 -10
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +20 -68
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +5 -5
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +72 -20
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +5 -3
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +5 -14
- package/dist/index135.cjs +9 -1
- package/dist/index135.js +33 -86
- package/dist/index136.cjs +3 -1
- package/dist/index136.js +110 -18
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +3 -14
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +21 -43
- package/dist/index139.cjs +3 -1
- package/dist/index139.js +451 -38
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +15 -2
- package/dist/index140.cjs +2 -1
- package/dist/index140.js +54 -7
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +23 -35
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +33 -8
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +35 -9
- package/dist/index144.cjs +4 -1
- package/dist/index144.js +194 -15
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +7 -94
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +12 -20
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +18 -4
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +27 -6
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +8 -26
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +2 -35
- package/dist/index150.cjs +1 -2
- package/dist/index150.js +53 -22
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +45 -9
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +8 -8
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +7 -10
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +16 -11
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +18 -13
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +21 -14
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +51 -7
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +11 -21
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +161 -6
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +33 -17
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +21 -21
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +127 -40
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +37 -16
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +6 -21
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +24 -77
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +188 -41
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +4 -12
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +61 -51
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +3 -4
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +20 -5
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +14 -184
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +16 -5
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +23 -11
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +11 -13
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +34 -13
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +3 -6
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +18 -13
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +25 -101
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +36 -6
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +10 -151
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +22 -32
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +185 -117
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +27 -30
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +64 -8
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +9 -68
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +32 -8
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +23 -70
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +24 -19
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +3 -110
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +14 -23
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +102 -49
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +77 -103
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +121 -2
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +6 -9
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +7 -2
- package/dist/index192.cjs +1 -2
- package/dist/index192.js +24 -3
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +37 -13
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +13 -4
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +43 -2
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +6 -32
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +11 -21
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +19 -5
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +78 -5
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -13
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +2 -6
- package/dist/index201.cjs +1 -9
- package/dist/index201.js +30 -28
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +112 -3
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +43 -20
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +31 -32
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +8 -35
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +6 -8
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +6 -12
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +11 -18
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +9 -26
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +13 -464
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +13 -8
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +31 -54
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +5 -9
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +7 -7
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +8 -161
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +20 -127
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +30 -26
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +18 -189
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +4 -4
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +18 -3
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +464 -36
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +10 -20
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +21 -16
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +22 -11
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +5 -34
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +6 -3
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +8 -27
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +104 -25
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +111 -27
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +18 -6
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +169 -25
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +36 -31
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +17 -34
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +10 -42
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +15 -77
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +23 -2
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +2 -38
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +13 -49
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +12 -6
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +47 -6
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +10 -31
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +8 -5
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +13 -32
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +9 -8
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +13 -3
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +14 -17
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +9 -10
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +30 -5
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +24 -8
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +11 -103
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +25 -3
- package/dist/index248.cjs +2 -1
- package/dist/index248.js +23 -17
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +13 -171
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +57 -11
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +15 -17
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +51 -24
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +24 -12
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +13 -15
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +15 -5
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +5 -13
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +12 -9
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +10 -16
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +16 -3
- package/dist/index259.cjs +2 -1
- package/dist/index259.js +40 -139
- package/dist/index26.cjs +16 -1
- package/dist/index26.js +113 -57
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +2 -156
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +5 -9
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +9 -112
- package/dist/index263.cjs +1 -2
- package/dist/index263.js +16 -131
- package/dist/index264.cjs +1 -2
- package/dist/index264.js +8 -41
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +67 -2
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +65 -5
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +185 -9
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +20 -17
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +42 -8
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +32 -13
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +72 -62
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +36 -61
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +15 -185
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +12 -21
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +12 -42
- package/dist/index275.cjs +2 -1
- package/dist/index275.js +18 -76
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +12 -39
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +11 -16
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +16 -13
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +221 -10
- package/dist/index28.cjs +1 -16
- package/dist/index28.js +30 -113
- package/dist/index280.cjs +1 -2
- package/dist/index280.js +6 -18
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +7 -15
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +26 -11
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +34 -103
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +17 -15
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +64 -208
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +67 -6
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +4 -7
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +137 -23
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +153 -17
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +11 -16
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +9 -108
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +111 -9
- package/dist/index292.cjs +2 -1
- package/dist/index292.js +133 -18
- package/dist/index293.cjs +1 -1
- package/dist/index293.js +28 -42
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +32 -72
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +12 -2
- package/dist/index296.cjs +1 -2
- package/dist/index296.js +18 -65
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +68 -4
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +2 -41
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +40 -7
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +7 -45
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +635 -55
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +200 -71
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +173 -4
- package/dist/index303.cjs +2 -1
- package/dist/index303.js +62 -190
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +4 -68
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +37 -654
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +7 -206
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +56 -171
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +61 -47
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +4 -45
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +30 -9
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +194 -4
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +19 -5
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +64 -2
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +43 -20
- package/dist/index314.cjs +1 -0
- package/dist/index314.js +7 -0
- package/dist/index315.cjs +1 -0
- package/dist/index315.js +107 -0
- package/dist/index316.cjs +1 -0
- package/dist/index316.js +7 -0
- package/dist/index317.cjs +1 -0
- package/dist/index317.js +4 -0
- package/dist/index318.cjs +1 -0
- package/dist/index318.js +24 -0
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +29 -18
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +16 -125
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +30 -57
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +43 -22
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +151 -10
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +33 -18
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +38 -6
- package/dist/index39.cjs +2 -1
- package/dist/index39.js +59 -10
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +5 -5
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +32 -32
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +15 -16
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +8 -16
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +2 -8
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +26 -33
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +30 -23
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +3 -22
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +8 -57
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +66 -38
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +8 -36
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +25 -163
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +67 -107
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +16 -27
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +110 -3
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +61 -2
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +25 -4
- package/dist/index56.cjs +1 -2
- package/dist/index56.js +38 -57
- package/dist/index57.cjs +1 -2
- package/dist/index57.js +36 -53
- package/dist/index58.cjs +1 -3
- package/dist/index58.js +54 -211
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +161 -12
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +2 -2
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +39 -11
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +9 -24
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +33 -25
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +9 -47
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +50 -19
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +84 -10
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +38 -37
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +7 -8
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +6 -7
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +17 -31
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +17 -24
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +8 -36
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +13 -36
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +7 -9
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +9 -29
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +46 -22
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +13 -85
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +16 -50
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +13 -23
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +6 -41
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +35 -17
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +24 -2
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +8 -5
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +8 -33
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +26 -9
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +10 -13
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +9 -109
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +115 -8
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +80 -6
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +180 -6
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +6 -21
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +13 -8
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +2 -124
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +13 -31
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +93 -13
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +75 -7
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +88 -9
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +138 -16
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +68 -72
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +22 -34
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +108 -45
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +6 -14
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +50 -13
- package/dist/src/index.d.ts +1 -0
- package/dist/src/lib/localConfig.d.ts +17 -0
- package/package.json +1 -1
package/dist/index57.js
CHANGED
|
@@ -1,57 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { getChainContractAddress as l } from "./index215.js";
|
|
2
|
+
import { toHex as u } from "./index151.js";
|
|
3
|
+
import { packetToBytes as v } from "./index232.js";
|
|
4
|
+
import { getAction as f } from "./index30.js";
|
|
5
|
+
import { readContract as m } from "./index34.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"
|
|
14
16
|
});
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
name: "ChainNotFoundError"
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
class d extends o {
|
|
40
|
-
constructor() {
|
|
41
|
-
super("No chain was provided to the Client.", {
|
|
42
|
-
name: "ClientChainNotConfiguredError"
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
class c extends o {
|
|
47
|
-
constructor({ chainId: e }) {
|
|
48
|
-
super(typeof e == "number" ? `Chain ID "${e}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
|
|
49
|
-
}
|
|
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;
|
|
50
37
|
}
|
|
51
38
|
export {
|
|
52
|
-
|
|
53
|
-
s as ChainMismatchError,
|
|
54
|
-
h as ChainNotFoundError,
|
|
55
|
-
d as ClientChainNotConfiguredError,
|
|
56
|
-
c as InvalidChainIdError
|
|
39
|
+
g as getEnsResolver
|
|
57
40
|
};
|
package/dist/index58.cjs
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
${F.prettyStateOverride(f)}`),super(e.shortMessage,{cause:e,docsPath:c,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",y].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class M extends m.BaseError{constructor(e,{abi:o,args:c,contractAddress:n,docsPath:l,functionName:a,sender:u}){const r=$.getAbiItem({abi:o,args:c,name:a}),t=r?E.formatAbiItemWithArgs({abiItem:r,args:c,includeFunctionName:!1,includeName:!1}):void 0,i=r?v.formatAbiItem(r,{includeName:!0}):void 0,s=w.prettyPrint({address:n&&O.getContractAddress(n),function:i,args:t&&t!=="()"&&`${[...Array((a==null?void 0:a.length)??0).keys()].map(()=>" ").join("")}${t}`,sender:u});super(e.shortMessage||`An unknown error occurred while executing the contract function "${a}".`,{cause:e,docsPath:l,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],s&&"Contract Call:",s].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=o,this.args=c,this.cause=e,this.contractAddress=n,this.functionName=a,this.sender=u}}class I extends m.BaseError{constructor({abi:e,data:o,functionName:c,message:n}){let l,a,u,r;if(o&&o!=="0x")try{a=P.decodeErrorResult({abi:e,data:o});const{abiItem:i,errorName:s,args:d}=a;if(s==="Error")r=d[0];else if(s==="Panic"){const[f]=d;r=C.panicReasons[f]}else{const f=i?v.formatAbiItem(i,{includeName:!0}):void 0,b=i&&d?E.formatAbiItemWithArgs({abiItem:i,args:d,includeFunctionName:!1,includeName:!1}):void 0;u=[f?`Error: ${f}`:"",b&&b!=="()"?` ${[...Array((s==null?void 0:s.length)??0).keys()].map(()=>" ").join("")}${b}`:""]}}catch(i){l=i}else n&&(r=n);let t;l instanceof x.AbiErrorSignatureNotFoundError&&(t=l.signature,u=[`Unable to decode signature "${t}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${t}.`]),super(r&&r!=="execution reverted"||t?[`The contract function "${c}" reverted with the following ${t?"signature":"reason"}:`,r||t].join(`
|
|
3
|
-
`):`The contract function "${c}" reverted.`,{cause:l,metaMessages:u,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=a,this.raw=o,this.reason=r,this.signature=t}}class R extends m.BaseError{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class T extends m.BaseError{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class B extends m.BaseError{constructor({data:e,message:o}){super(o||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}exports.CallExecutionError=q;exports.ContractFunctionExecutionError=M;exports.ContractFunctionRevertedError=I;exports.ContractFunctionZeroDataError=R;exports.CounterfactualDeploymentFailedError=T;exports.RawContractError=B;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index22.cjs"),q=require("./index171.cjs"),A=require("./index178.cjs"),R=require("./index215.cjs"),b=require("./index151.cjs"),f=require("./index231.cjs"),y=require("./index204.cjs"),C=require("./index154.cjs"),x=require("./index232.cjs"),m=require("./index30.cjs"),w=require("./index34.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/index58.js
CHANGED
|
@@ -1,218 +1,61 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
data: l,
|
|
23
|
-
gas: a,
|
|
24
|
-
gasPrice: typeof u < "u" && `${p(u)} gwei`,
|
|
25
|
-
maxFeePerGas: typeof r < "u" && `${p(r)} gwei`,
|
|
26
|
-
maxPriorityFeePerGas: typeof t < "u" && `${p(t)} gwei`,
|
|
27
|
-
nonce: i
|
|
1
|
+
import { textResolverAbi as l, universalResolverResolveAbi as p } from "./index22.js";
|
|
2
|
+
import { decodeFunctionResult as A } from "./index171.js";
|
|
3
|
+
import { encodeFunctionData as R } from "./index178.js";
|
|
4
|
+
import { getChainContractAddress as h } from "./index215.js";
|
|
5
|
+
import { toHex as b } from "./index151.js";
|
|
6
|
+
import { isNullUniversalResolverError as g } from "./index231.js";
|
|
7
|
+
import { localBatchGatewayUrl as w } from "./index204.js";
|
|
8
|
+
import { namehash as x } from "./index154.js";
|
|
9
|
+
import { packetToBytes as C } from "./index232.js";
|
|
10
|
+
import { getAction as y } from "./index30.js";
|
|
11
|
+
import { readContract as N } from "./index34.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"
|
|
28
22
|
});
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
class U extends b {
|
|
48
|
-
constructor(e, { abi: o, args: c, contractAddress: n, docsPath: l, functionName: a, sender: u }) {
|
|
49
|
-
const r = P({ abi: o, args: c, name: a }), t = r ? w({
|
|
50
|
-
abiItem: r,
|
|
51
|
-
args: c,
|
|
52
|
-
includeFunctionName: !1,
|
|
53
|
-
includeName: !1
|
|
54
|
-
}) : void 0, i = r ? v(r, { includeName: !0 }) : void 0, s = E({
|
|
55
|
-
address: n && F(n),
|
|
56
|
-
function: i,
|
|
57
|
-
args: t && t !== "()" && `${[...Array((a == null ? void 0 : a.length) ?? 0).keys()].map(() => " ").join("")}${t}`,
|
|
58
|
-
sender: u
|
|
59
|
-
});
|
|
60
|
-
super(e.shortMessage || `An unknown error occurred while executing the contract function "${a}".`, {
|
|
61
|
-
cause: e,
|
|
62
|
-
docsPath: l,
|
|
63
|
-
metaMessages: [
|
|
64
|
-
...e.metaMessages ? [...e.metaMessages, " "] : [],
|
|
65
|
-
s && "Contract Call:",
|
|
66
|
-
s
|
|
67
|
-
].filter(Boolean),
|
|
68
|
-
name: "ContractFunctionExecutionError"
|
|
69
|
-
}), Object.defineProperty(this, "abi", {
|
|
70
|
-
enumerable: !0,
|
|
71
|
-
configurable: !0,
|
|
72
|
-
writable: !0,
|
|
73
|
-
value: void 0
|
|
74
|
-
}), Object.defineProperty(this, "args", {
|
|
75
|
-
enumerable: !0,
|
|
76
|
-
configurable: !0,
|
|
77
|
-
writable: !0,
|
|
78
|
-
value: void 0
|
|
79
|
-
}), Object.defineProperty(this, "cause", {
|
|
80
|
-
enumerable: !0,
|
|
81
|
-
configurable: !0,
|
|
82
|
-
writable: !0,
|
|
83
|
-
value: void 0
|
|
84
|
-
}), Object.defineProperty(this, "contractAddress", {
|
|
85
|
-
enumerable: !0,
|
|
86
|
-
configurable: !0,
|
|
87
|
-
writable: !0,
|
|
88
|
-
value: void 0
|
|
89
|
-
}), Object.defineProperty(this, "formattedArgs", {
|
|
90
|
-
enumerable: !0,
|
|
91
|
-
configurable: !0,
|
|
92
|
-
writable: !0,
|
|
93
|
-
value: void 0
|
|
94
|
-
}), Object.defineProperty(this, "functionName", {
|
|
95
|
-
enumerable: !0,
|
|
96
|
-
configurable: !0,
|
|
97
|
-
writable: !0,
|
|
98
|
-
value: void 0
|
|
99
|
-
}), Object.defineProperty(this, "sender", {
|
|
100
|
-
enumerable: !0,
|
|
101
|
-
configurable: !0,
|
|
102
|
-
writable: !0,
|
|
103
|
-
value: void 0
|
|
104
|
-
}), this.abi = o, this.args = c, this.cause = e, this.contractAddress = n, this.functionName = a, this.sender = u;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
class Y extends b {
|
|
108
|
-
constructor({ abi: e, data: o, functionName: c, message: n }) {
|
|
109
|
-
let l, a, u, r;
|
|
110
|
-
if (o && o !== "0x")
|
|
111
|
-
try {
|
|
112
|
-
a = C({ abi: e, data: o });
|
|
113
|
-
const { abiItem: i, errorName: s, args: d } = a;
|
|
114
|
-
if (s === "Error")
|
|
115
|
-
r = d[0];
|
|
116
|
-
else if (s === "Panic") {
|
|
117
|
-
const [f] = d;
|
|
118
|
-
r = A[f];
|
|
119
|
-
} else {
|
|
120
|
-
const f = i ? v(i, { includeName: !0 }) : void 0, m = i && d ? w({
|
|
121
|
-
abiItem: i,
|
|
122
|
-
args: d,
|
|
123
|
-
includeFunctionName: !1,
|
|
124
|
-
includeName: !1
|
|
125
|
-
}) : void 0;
|
|
126
|
-
u = [
|
|
127
|
-
f ? `Error: ${f}` : "",
|
|
128
|
-
m && m !== "()" ? ` ${[...Array((s == null ? void 0 : s.length) ?? 0).keys()].map(() => " ").join("")}${m}` : ""
|
|
129
|
-
];
|
|
130
|
-
}
|
|
131
|
-
} catch (i) {
|
|
132
|
-
l = i;
|
|
133
|
-
}
|
|
134
|
-
else n && (r = n);
|
|
135
|
-
let t;
|
|
136
|
-
l instanceof x && (t = l.signature, u = [
|
|
137
|
-
`Unable to decode signature "${t}" as it was not found on the provided ABI.`,
|
|
138
|
-
"Make sure you are using the correct ABI and that the error exists on it.",
|
|
139
|
-
`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${t}.`
|
|
140
|
-
]), super(r && r !== "execution reverted" || t ? [
|
|
141
|
-
`The contract function "${c}" reverted with the following ${t ? "signature" : "reason"}:`,
|
|
142
|
-
r || t
|
|
143
|
-
].join(`
|
|
144
|
-
`) : `The contract function "${c}" reverted.`, {
|
|
145
|
-
cause: l,
|
|
146
|
-
metaMessages: u,
|
|
147
|
-
name: "ContractFunctionRevertedError"
|
|
148
|
-
}), Object.defineProperty(this, "data", {
|
|
149
|
-
enumerable: !0,
|
|
150
|
-
configurable: !0,
|
|
151
|
-
writable: !0,
|
|
152
|
-
value: void 0
|
|
153
|
-
}), Object.defineProperty(this, "raw", {
|
|
154
|
-
enumerable: !0,
|
|
155
|
-
configurable: !0,
|
|
156
|
-
writable: !0,
|
|
157
|
-
value: void 0
|
|
158
|
-
}), Object.defineProperty(this, "reason", {
|
|
159
|
-
enumerable: !0,
|
|
160
|
-
configurable: !0,
|
|
161
|
-
writable: !0,
|
|
162
|
-
value: void 0
|
|
163
|
-
}), Object.defineProperty(this, "signature", {
|
|
164
|
-
enumerable: !0,
|
|
165
|
-
configurable: !0,
|
|
166
|
-
writable: !0,
|
|
167
|
-
value: void 0
|
|
168
|
-
}), this.data = a, this.raw = o, this.reason = r, this.signature = t;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
class J extends b {
|
|
172
|
-
constructor({ functionName: e }) {
|
|
173
|
-
super(`The contract function "${e}" returned no data ("0x").`, {
|
|
174
|
-
metaMessages: [
|
|
175
|
-
"This could be due to any of the following:",
|
|
176
|
-
` - The contract does not have the function "${e}",`,
|
|
177
|
-
" - The parameters passed to the contract function may be invalid, or",
|
|
178
|
-
" - The address is not a contract."
|
|
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]
|
|
179
39
|
],
|
|
180
|
-
|
|
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]
|
|
181
49
|
});
|
|
182
|
-
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
"- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).",
|
|
190
|
-
"- The `factoryData` is a valid encoded function call for contract deployment function on the factory."
|
|
191
|
-
],
|
|
192
|
-
name: "CounterfactualDeploymentFailedError"
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
class L extends b {
|
|
197
|
-
constructor({ data: e, message: o }) {
|
|
198
|
-
super(o || "", { name: "RawContractError" }), Object.defineProperty(this, "code", {
|
|
199
|
-
enumerable: !0,
|
|
200
|
-
configurable: !0,
|
|
201
|
-
writable: !0,
|
|
202
|
-
value: 3
|
|
203
|
-
}), Object.defineProperty(this, "data", {
|
|
204
|
-
enumerable: !0,
|
|
205
|
-
configurable: !0,
|
|
206
|
-
writable: !0,
|
|
207
|
-
value: void 0
|
|
208
|
-
}), this.data = e;
|
|
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;
|
|
209
57
|
}
|
|
210
58
|
}
|
|
211
59
|
export {
|
|
212
|
-
|
|
213
|
-
U as ContractFunctionExecutionError,
|
|
214
|
-
Y as ContractFunctionRevertedError,
|
|
215
|
-
J as ContractFunctionZeroDataError,
|
|
216
|
-
K as CounterfactualDeploymentFailedError,
|
|
217
|
-
L as RawContractError
|
|
60
|
+
j as getEnsText
|
|
218
61
|
};
|
package/dist/index59.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 J=require("./index46.cjs"),_=require("./index22.cjs"),K=require("./index234.cjs"),j=require("./index119.cjs"),A=require("./index39.cjs"),E=require("./index140.cjs"),z=require("./index128.cjs"),Q=require("./index171.cjs"),$=require("./index175.cjs"),U=require("./index178.cjs"),X=require("./index215.cjs"),G=require("./index151.cjs"),Y=require("./index235.cjs"),Z=require("./index236.cjs"),ee=require("./index185.cjs"),te=require("./index50.cjs"),ae=require("./index237.cjs"),re=require("./index198.cjs"),L=require("./index238.cjs");async function oe(e,t){var P,H,O,T;const{account:a=e.account,batch:s=!!((P=e.batch)!=null&&P.multicall),blockNumber:r,blockTag:m="latest",accessList:D,blobs:x,code:i,data:n,factory:l,factoryData:u,gas:k,gasPrice:d,maxFeePerBlobGas:v,maxFeePerGas:p,maxPriorityFeePerGas:f,nonce:b,to:o,value:h,stateOverride:g,...W}=t,q=a?J.parseAccount(a):void 0;if(i&&(l||u))throw new A.BaseError("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(i&&o)throw new A.BaseError("Cannot provide both `code` & `to` as parameters.");const N=i&&n,R=l&&u&&o&&n,S=N||R,I=N?se({code:i,data:n}):R?ie({data:n,factory:l,factoryData:u,to:o}):n;try{re.assertRequest(t);const c=(r?G.numberToHex(r):void 0)||m,y=ae.serializeStateOverride(g),C=(T=(O=(H=e.chain)==null?void 0:H.formatters)==null?void 0:O.transactionRequest)==null?void 0:T.format,w=(C||ee.formatTransactionRequest)({...Z.extract(W,{format:C}),from:q==null?void 0:q.address,accessList:D,blobs:x,data:I,gas:k,gasPrice:d,maxFeePerBlobGas:v,maxFeePerGas:p,maxPriorityFeePerGas:f,nonce:b,to:S?void 0:o,value:h});if(s&&ce({request:w})&&!y)try{return await ne(e,{...w,blockNumber:r,blockTag:m})}catch(F){if(!(F instanceof E.ClientChainNotConfiguredError)&&!(F instanceof E.ChainDoesNotSupportContract))throw F}const V=await e.request({method:"eth_call",params:y?[w,c,y]:[w,c]});return V==="0x"?{data:void 0}:{data:V}}catch(B){const c=M(B),{offchainLookup:y,offchainLookupSignature:C}=await Promise.resolve().then(()=>require("./index202.cjs"));if(e.ccipRead!==!1&&(c==null?void 0:c.slice(0,10))===C&&o)return{data:await y(e,{data:c,to:o})};throw S&&(c==null?void 0:c.slice(0,10))==="0x101bb98d"?new z.CounterfactualDeploymentFailedError({factory:l}):Y.getCallError(B,{...t,account:q,chain:e.chain})}}function ce({request:e}){const{data:t,to:a,...s}=e;return!(!t||t.startsWith(K.aggregate3Signature)||!a||Object.values(s).filter(r=>typeof r<"u").length>0)}async function ne(e,t){var p;const{batchSize:a=1024,wait:s=0}=typeof((p=e.batch)==null?void 0:p.multicall)=="object"?e.batch.multicall:{},{blockNumber:r,blockTag:m="latest",data:D,multicallAddress:x,to:i}=t;let n=x;if(!n){if(!e.chain)throw new E.ClientChainNotConfiguredError;n=X.getChainContractAddress({blockNumber:r,chain:e.chain,contract:"multicall3"})}const u=(r?G.numberToHex(r):void 0)||m,{schedule:k}=te.createBatchScheduler({id:`${e.uid}.${u}`,wait:s,shouldSplitBatch(f){return f.reduce((o,{data:h})=>o+(h.length-2),0)>a*2},fn:async f=>{const b=f.map(g=>({allowFailure:!0,callData:g.data,target:g.to})),o=U.encodeFunctionData({abi:_.multicall3Abi,args:[b],functionName:"aggregate3"}),h=await e.request({method:"eth_call",params:[{data:o,to:n},u]});return Q.decodeFunctionResult({abi:_.multicall3Abi,args:[b],functionName:"aggregate3",data:h||"0x"})}}),[{returnData:d,success:v}]=await k({data:D,to:i});if(!v)throw new z.RawContractError({data:d});return d==="0x"?{data:void 0}:{data:d}}function se(e){const{code:t,data:a}=e;return $.encodeDeployData({abi:L.parseAbi(["constructor(bytes, bytes)"]),bytecode:j.deploylessCallViaBytecodeBytecode,args:[t,a]})}function ie(e){const{data:t,factory:a,factoryData:s,to:r}=e;return $.encodeDeployData({abi:L.parseAbi(["constructor(address, bytes, address, bytes)"]),bytecode:j.deploylessCallViaFactoryBytecode,args:[r,t,a,s]})}function M(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=oe;exports.getRevertErrorData=M;
|
package/dist/index59.js
CHANGED
|
@@ -1,16 +1,165 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { parseAccount as $ } from "./index46.js";
|
|
2
|
+
import { multicall3Abi as z } from "./index22.js";
|
|
3
|
+
import { aggregate3Signature as W } from "./index234.js";
|
|
4
|
+
import { deploylessCallViaBytecodeBytecode as I, deploylessCallViaFactoryBytecode as J } from "./index119.js";
|
|
5
|
+
import { BaseError as S } from "./index39.js";
|
|
6
|
+
import { ClientChainNotConfiguredError as O, ChainDoesNotSupportContract as K } from "./index140.js";
|
|
7
|
+
import { CounterfactualDeploymentFailedError as Q, RawContractError as U } from "./index128.js";
|
|
8
|
+
import { decodeFunctionResult as X } from "./index171.js";
|
|
9
|
+
import { encodeDeployData as T } from "./index175.js";
|
|
10
|
+
import { encodeFunctionData as Y } from "./index178.js";
|
|
11
|
+
import { getChainContractAddress as Z } from "./index215.js";
|
|
12
|
+
import { numberToHex as j } from "./index151.js";
|
|
13
|
+
import { getCallError as tt } from "./index235.js";
|
|
14
|
+
import { extract as at } from "./index236.js";
|
|
15
|
+
import { formatTransactionRequest as et } from "./index185.js";
|
|
16
|
+
import { createBatchScheduler as ot } from "./index50.js";
|
|
17
|
+
import { serializeStateOverride as rt } from "./index237.js";
|
|
18
|
+
import { assertRequest as ct } from "./index198.js";
|
|
19
|
+
import { parseAbi as G } from "./index238.js";
|
|
20
|
+
async function qt(t, a) {
|
|
21
|
+
var E, P, V, _;
|
|
22
|
+
const { account: e = t.account, batch: s = !!((E = t.batch) != null && E.multicall), blockNumber: o, blockTag: h = "latest", accessList: x, blobs: k, code: i, data: n, factory: d, factoryData: l, gas: F, gasPrice: u, maxFeePerBlobGas: B, maxFeePerGas: y, maxPriorityFeePerGas: f, nonce: m, to: r, value: p, stateOverride: g, ...L } = a, w = e ? $(e) : void 0;
|
|
23
|
+
if (i && (d || l))
|
|
24
|
+
throw new S("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
|
|
25
|
+
if (i && r)
|
|
26
|
+
throw new S("Cannot provide both `code` & `to` as parameters.");
|
|
27
|
+
const A = i && n, R = d && l && r && n, q = A || R, M = A ? it({
|
|
28
|
+
code: i,
|
|
29
|
+
data: n
|
|
30
|
+
}) : R ? lt({
|
|
31
|
+
data: n,
|
|
32
|
+
factory: d,
|
|
33
|
+
factoryData: l,
|
|
34
|
+
to: r
|
|
35
|
+
}) : n;
|
|
36
|
+
try {
|
|
37
|
+
ct(a);
|
|
38
|
+
const c = (o ? j(o) : void 0) || h, b = rt(g), C = (_ = (V = (P = t.chain) == null ? void 0 : P.formatters) == null ? void 0 : V.transactionRequest) == null ? void 0 : _.format, D = (C || et)({
|
|
39
|
+
// Pick out extra data that might exist on the chain's transaction request type.
|
|
40
|
+
...at(L, { format: C }),
|
|
41
|
+
from: w == null ? void 0 : w.address,
|
|
42
|
+
accessList: x,
|
|
43
|
+
blobs: k,
|
|
44
|
+
data: M,
|
|
45
|
+
gas: F,
|
|
46
|
+
gasPrice: u,
|
|
47
|
+
maxFeePerBlobGas: B,
|
|
48
|
+
maxFeePerGas: y,
|
|
49
|
+
maxPriorityFeePerGas: f,
|
|
50
|
+
nonce: m,
|
|
51
|
+
to: q ? void 0 : r,
|
|
52
|
+
value: p
|
|
53
|
+
});
|
|
54
|
+
if (s && nt({ request: D }) && !b)
|
|
55
|
+
try {
|
|
56
|
+
return await st(t, {
|
|
57
|
+
...D,
|
|
58
|
+
blockNumber: o,
|
|
59
|
+
blockTag: h
|
|
60
|
+
});
|
|
61
|
+
} catch (v) {
|
|
62
|
+
if (!(v instanceof O) && !(v instanceof K))
|
|
63
|
+
throw v;
|
|
64
|
+
}
|
|
65
|
+
const H = await t.request({
|
|
66
|
+
method: "eth_call",
|
|
67
|
+
params: b ? [
|
|
68
|
+
D,
|
|
69
|
+
c,
|
|
70
|
+
b
|
|
71
|
+
] : [D, c]
|
|
72
|
+
});
|
|
73
|
+
return H === "0x" ? { data: void 0 } : { data: H };
|
|
74
|
+
} catch (N) {
|
|
75
|
+
const c = dt(N), { offchainLookup: b, offchainLookupSignature: C } = await import("./index202.js");
|
|
76
|
+
if (t.ccipRead !== !1 && (c == null ? void 0 : c.slice(0, 10)) === C && r)
|
|
77
|
+
return { data: await b(t, { data: c, to: r }) };
|
|
78
|
+
throw q && (c == null ? void 0 : c.slice(0, 10)) === "0x101bb98d" ? new Q({ factory: d }) : tt(N, {
|
|
79
|
+
...a,
|
|
80
|
+
account: w,
|
|
81
|
+
chain: t.chain
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function nt({ request: t }) {
|
|
86
|
+
const { data: a, to: e, ...s } = t;
|
|
87
|
+
return !(!a || a.startsWith(W) || !e || Object.values(s).filter((o) => typeof o < "u").length > 0);
|
|
88
|
+
}
|
|
89
|
+
async function st(t, a) {
|
|
90
|
+
var y;
|
|
91
|
+
const { batchSize: e = 1024, wait: s = 0 } = typeof ((y = t.batch) == null ? void 0 : y.multicall) == "object" ? t.batch.multicall : {}, { blockNumber: o, blockTag: h = "latest", data: x, multicallAddress: k, to: i } = a;
|
|
92
|
+
let n = k;
|
|
93
|
+
if (!n) {
|
|
94
|
+
if (!t.chain)
|
|
95
|
+
throw new O();
|
|
96
|
+
n = Z({
|
|
97
|
+
blockNumber: o,
|
|
98
|
+
chain: t.chain,
|
|
99
|
+
contract: "multicall3"
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
const l = (o ? j(o) : void 0) || h, { schedule: F } = ot({
|
|
103
|
+
id: `${t.uid}.${l}`,
|
|
104
|
+
wait: s,
|
|
105
|
+
shouldSplitBatch(f) {
|
|
106
|
+
return f.reduce((r, { data: p }) => r + (p.length - 2), 0) > e * 2;
|
|
107
|
+
},
|
|
108
|
+
fn: async (f) => {
|
|
109
|
+
const m = f.map((g) => ({
|
|
110
|
+
allowFailure: !0,
|
|
111
|
+
callData: g.data,
|
|
112
|
+
target: g.to
|
|
113
|
+
})), r = Y({
|
|
114
|
+
abi: z,
|
|
115
|
+
args: [m],
|
|
116
|
+
functionName: "aggregate3"
|
|
117
|
+
}), p = await t.request({
|
|
118
|
+
method: "eth_call",
|
|
119
|
+
params: [
|
|
120
|
+
{
|
|
121
|
+
data: r,
|
|
122
|
+
to: n
|
|
123
|
+
},
|
|
124
|
+
l
|
|
125
|
+
]
|
|
126
|
+
});
|
|
127
|
+
return X({
|
|
128
|
+
abi: z,
|
|
129
|
+
args: [m],
|
|
130
|
+
functionName: "aggregate3",
|
|
131
|
+
data: p || "0x"
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
}), [{ returnData: u, success: B }] = await F({ data: x, to: i });
|
|
135
|
+
if (!B)
|
|
136
|
+
throw new U({ data: u });
|
|
137
|
+
return u === "0x" ? { data: void 0 } : { data: u };
|
|
138
|
+
}
|
|
139
|
+
function it(t) {
|
|
140
|
+
const { code: a, data: e } = t;
|
|
141
|
+
return T({
|
|
142
|
+
abi: G(["constructor(bytes, bytes)"]),
|
|
143
|
+
bytecode: I,
|
|
144
|
+
args: [a, e]
|
|
12
145
|
});
|
|
13
146
|
}
|
|
147
|
+
function lt(t) {
|
|
148
|
+
const { data: a, factory: e, factoryData: s, to: o } = t;
|
|
149
|
+
return T({
|
|
150
|
+
abi: G(["constructor(address, bytes, address, bytes)"]),
|
|
151
|
+
bytecode: J,
|
|
152
|
+
args: [o, a, e, s]
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
function dt(t) {
|
|
156
|
+
var e;
|
|
157
|
+
if (!(t instanceof S))
|
|
158
|
+
return;
|
|
159
|
+
const a = t.walk();
|
|
160
|
+
return typeof (a == null ? void 0 : a.data) == "object" ? (e = a.data) == null ? void 0 : e.data : a.data;
|
|
161
|
+
}
|
|
14
162
|
export {
|
|
15
|
-
|
|
163
|
+
qt as call,
|
|
164
|
+
dt as getRevertErrorData
|
|
16
165
|
};
|
package/dist/index6.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index18.cjs"),a=require("./index5.cjs"),s=require("@peculiar/webcrypto"),o=require("./index23.cjs");class e{constructor(t){if(!e.isValidDigestKey(t))throw new Error("Invalid digest key format");this._digestKey=t;const r=o.privateKeyToAccount("0x"+t);this._userId=r.address}static from(t){return t=n.trim0x(t),this.isValidDigestKey(t)?a.Ok(new e(t)):a.Err("Invalid digest key format")}static generateRandom(){const t=e.generateRandomDigestKey();return e.from(t)}static isValidDigestKey(t){return/^[0-9a-fA-F]{64}$/.test(t)&&this.isValidPrivateKey(t)}static isValidPrivateKey(t){const r=BigInt("0x"+t),i=1n,f=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");return r>=i&&r<f}static generateRandomDigestKey(){const t=new s.Crypto,r=new Uint8Array(32);t.getRandomValues(r);const i=n.trim0x(Buffer.from(r).toString("hex"));return e.isValidPrivateKey(i)?i:e.generateRandomDigestKey()}get digestKey(){return this._digestKey}get userId(){return this._userId}}exports.DigestKey=e;
|
package/dist/index6.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { trim0x as a } from "./
|
|
1
|
+
import { trim0x as a } from "./index18.js";
|
|
2
2
|
import { Err as n, Ok as o } from "./index5.js";
|
|
3
3
|
import { Crypto as s } from "@peculiar/webcrypto";
|
|
4
|
-
import { privateKeyToAccount as c } from "./
|
|
4
|
+
import { privateKeyToAccount as c } from "./index23.js";
|
|
5
5
|
class e {
|
|
6
6
|
constructor(t) {
|
|
7
7
|
if (!e.isValidDigestKey(t))
|
package/dist/index60.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 L=require("./index46.cjs"),R=require("./index151.cjs"),F=require("./index235.cjs"),H=require("./index236.cjs"),T=require("./index185.cjs"),G=require("./index198.cjs");async function N(e,s){var c,o,n;const{account:r=e.account,blockNumber:a,blockTag:b="latest",blobs:l,data:q,gas:d,gasPrice:f,maxFeePerBlobGas:x,maxFeePerGas:g,maxPriorityFeePerGas:h,to:P,value:k,...p}=s,t=r?L.parseAccount(r):void 0;try{G.assertRequest(s);const y=(a?R.numberToHex(a):void 0)||b,i=(n=(o=(c=e.chain)==null?void 0:c.formatters)==null?void 0:o.transactionRequest)==null?void 0:n.format,A=(i||T.formatTransactionRequest)({...H.extract(p,{format:i}),from:t==null?void 0:t.address,blobs:l,data:q,gas:d,gasPrice:f,maxFeePerBlobGas:x,maxFeePerGas:g,maxPriorityFeePerGas:h,to:P,value:k}),m=await e.request({method:"eth_createAccessList",params:[A,y]});return{accessList:m.accessList,gasUsed:BigInt(m.gasUsed)}}catch(u){throw F.getCallError(u,{...s,account:t,chain:e.chain})}}exports.createAccessList=N;
|