@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/index161.js
CHANGED
|
@@ -1,164 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
if (p(e) && p(e) < 32)
|
|
16
|
-
throw new C({
|
|
17
|
-
data: typeof e == "string" ? e : g(e),
|
|
18
|
-
params: t,
|
|
19
|
-
size: p(e)
|
|
1
|
+
import { parseAccount as d } from "./index53.js";
|
|
2
|
+
import { AccountNotFoundError as p } from "./index150.js";
|
|
3
|
+
import { assertCurrentChain as g } from "./index157.js";
|
|
4
|
+
import { numberToHex as T } from "./index30.js";
|
|
5
|
+
import { formatTransactionRequest as C } from "./index61.js";
|
|
6
|
+
import { getAction as w } from "./index43.js";
|
|
7
|
+
import { assertRequest as I } from "./index64.js";
|
|
8
|
+
import { getChainId as q } from "./index92.js";
|
|
9
|
+
async function E(t, s) {
|
|
10
|
+
var e, m, u, f;
|
|
11
|
+
const { account: i = t.account, chain: r = t.chain, ...c } = s;
|
|
12
|
+
if (!i)
|
|
13
|
+
throw new p({
|
|
14
|
+
docsPath: "/docs/actions/wallet/signTransaction"
|
|
20
15
|
});
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
o.setPosition(i);
|
|
26
|
-
const [f, c] = u(o, r, {
|
|
27
|
-
staticPosition: 0
|
|
28
|
-
});
|
|
29
|
-
i += c, d.push(f);
|
|
30
|
-
}
|
|
31
|
-
return d;
|
|
32
|
-
}
|
|
33
|
-
function u(t, e, { staticPosition: n }) {
|
|
34
|
-
const o = A(e.type);
|
|
35
|
-
if (o) {
|
|
36
|
-
const [i, d] = o;
|
|
37
|
-
return k(t, { ...e, type: d }, { length: i, staticPosition: n });
|
|
38
|
-
}
|
|
39
|
-
if (e.type === "tuple")
|
|
40
|
-
return Z(t, e, { staticPosition: n });
|
|
41
|
-
if (e.type === "address")
|
|
42
|
-
return E(t);
|
|
43
|
-
if (e.type === "bool")
|
|
44
|
-
return H(t);
|
|
45
|
-
if (e.type.startsWith("bytes"))
|
|
46
|
-
return L(t, e, { staticPosition: n });
|
|
47
|
-
if (e.type.startsWith("uint") || e.type.startsWith("int"))
|
|
48
|
-
return U(t, e);
|
|
49
|
-
if (e.type === "string")
|
|
50
|
-
return j(t, { staticPosition: n });
|
|
51
|
-
throw new D(e.type, {
|
|
52
|
-
docsPath: "/docs/contract/decodeAbiParameters"
|
|
16
|
+
const o = d(i);
|
|
17
|
+
I({
|
|
18
|
+
account: o,
|
|
19
|
+
...s
|
|
53
20
|
});
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
return t.setPosition(o + 32), [v, 32];
|
|
75
|
-
}
|
|
76
|
-
if (h(e)) {
|
|
77
|
-
const s = y(t.readBytes(b)), r = o + s, f = [];
|
|
78
|
-
for (let c = 0; c < n; ++c) {
|
|
79
|
-
t.setPosition(r + c * 32);
|
|
80
|
-
const [l] = u(t, e, {
|
|
81
|
-
staticPosition: r
|
|
82
|
-
});
|
|
83
|
-
f.push(l);
|
|
84
|
-
}
|
|
85
|
-
return t.setPosition(o + 32), [f, 32];
|
|
86
|
-
}
|
|
87
|
-
let i = 0;
|
|
88
|
-
const d = [];
|
|
89
|
-
for (let s = 0; s < n; ++s) {
|
|
90
|
-
const [r, f] = u(t, e, {
|
|
91
|
-
staticPosition: o + i
|
|
92
|
-
});
|
|
93
|
-
i += f, d.push(r);
|
|
94
|
-
}
|
|
95
|
-
return [d, i];
|
|
96
|
-
}
|
|
97
|
-
function H(t) {
|
|
98
|
-
return [I(t.readBytes(32), { size: 32 }), 32];
|
|
99
|
-
}
|
|
100
|
-
function L(t, e, { staticPosition: n }) {
|
|
101
|
-
const [o, i] = e.type.split("bytes");
|
|
102
|
-
if (!i) {
|
|
103
|
-
const s = y(t.readBytes(32));
|
|
104
|
-
t.setPosition(n + s);
|
|
105
|
-
const r = y(t.readBytes(32));
|
|
106
|
-
if (r === 0)
|
|
107
|
-
return t.setPosition(n + 32), ["0x", 32];
|
|
108
|
-
const f = t.readBytes(r);
|
|
109
|
-
return t.setPosition(n + 32), [g(f), 32];
|
|
110
|
-
}
|
|
111
|
-
return [g(t.readBytes(Number.parseInt(i), 32)), 32];
|
|
112
|
-
}
|
|
113
|
-
function U(t, e) {
|
|
114
|
-
const n = e.type.startsWith("int"), o = Number.parseInt(e.type.split("int")[1] || "256"), i = t.readBytes(32);
|
|
115
|
-
return [
|
|
116
|
-
o > 48 ? N(i, { signed: n }) : y(i, { signed: n }),
|
|
117
|
-
32
|
|
118
|
-
];
|
|
119
|
-
}
|
|
120
|
-
function Z(t, e, { staticPosition: n }) {
|
|
121
|
-
const o = e.components.length === 0 || e.components.some(({ name: s }) => !s), i = o ? [] : {};
|
|
122
|
-
let d = 0;
|
|
123
|
-
if (h(e)) {
|
|
124
|
-
const s = y(t.readBytes(b)), r = n + s;
|
|
125
|
-
for (let f = 0; f < e.components.length; ++f) {
|
|
126
|
-
const c = e.components[f];
|
|
127
|
-
t.setPosition(r + d);
|
|
128
|
-
const [l, m] = u(t, c, {
|
|
129
|
-
staticPosition: r
|
|
130
|
-
});
|
|
131
|
-
d += m, i[o ? f : c == null ? void 0 : c.name] = l;
|
|
132
|
-
}
|
|
133
|
-
return t.setPosition(n + 32), [i, 32];
|
|
134
|
-
}
|
|
135
|
-
for (let s = 0; s < e.components.length; ++s) {
|
|
136
|
-
const r = e.components[s], [f, c] = u(t, r, {
|
|
137
|
-
staticPosition: n
|
|
138
|
-
});
|
|
139
|
-
i[o ? s : r == null ? void 0 : r.name] = f, d += c;
|
|
140
|
-
}
|
|
141
|
-
return [i, d];
|
|
142
|
-
}
|
|
143
|
-
function j(t, { staticPosition: e }) {
|
|
144
|
-
const n = y(t.readBytes(32)), o = e + n;
|
|
145
|
-
t.setPosition(o);
|
|
146
|
-
const i = y(t.readBytes(32));
|
|
147
|
-
if (i === 0)
|
|
148
|
-
return t.setPosition(e + 32), ["", 32];
|
|
149
|
-
const d = t.readBytes(i, 32), s = O(x(d));
|
|
150
|
-
return t.setPosition(e + 32), [s, 32];
|
|
151
|
-
}
|
|
152
|
-
function h(t) {
|
|
153
|
-
var o;
|
|
154
|
-
const { type: e } = t;
|
|
155
|
-
if (e === "string" || e === "bytes" || e.endsWith("[]"))
|
|
156
|
-
return !0;
|
|
157
|
-
if (e === "tuple")
|
|
158
|
-
return (o = t.components) == null ? void 0 : o.some(h);
|
|
159
|
-
const n = A(t.type);
|
|
160
|
-
return !!(n && h({ ...t, type: n[1] }));
|
|
21
|
+
const n = await w(t, q, "getChainId")({});
|
|
22
|
+
r !== null && g({
|
|
23
|
+
currentChainId: n,
|
|
24
|
+
chain: r
|
|
25
|
+
});
|
|
26
|
+
const a = (r == null ? void 0 : r.formatters) || ((e = t.chain) == null ? void 0 : e.formatters), h = ((m = a == null ? void 0 : a.transactionRequest) == null ? void 0 : m.format) || C;
|
|
27
|
+
return o.signTransaction ? o.signTransaction({
|
|
28
|
+
...c,
|
|
29
|
+
chainId: n
|
|
30
|
+
}, { serializer: (f = (u = t.chain) == null ? void 0 : u.serializers) == null ? void 0 : f.transaction }) : await t.request({
|
|
31
|
+
method: "eth_signTransaction",
|
|
32
|
+
params: [
|
|
33
|
+
{
|
|
34
|
+
...h(c),
|
|
35
|
+
chainId: T(n),
|
|
36
|
+
from: o.address
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}, { retryCount: 0 });
|
|
161
40
|
}
|
|
162
41
|
export {
|
|
163
|
-
|
|
42
|
+
E as signTransaction
|
|
164
43
|
};
|
package/dist/index162.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 c=require("./index53.cjs"),a=require("./index150.cjs"),o=require("./index30.cjs");async function i(n,{account:e=n.account,message:r}){if(!e)throw new a.AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});const t=c.parseAccount(e);if(t.signMessage)return t.signMessage({message:r});const s=typeof r=="string"?o.stringToHex(r):r.raw instanceof Uint8Array?o.toHex(r.raw):r.raw;return n.request({method:"personal_sign",params:[s,t.address]},{retryCount:0})}exports.signMessage=i;
|
package/dist/index162.js
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
if (!$(t, { strict: !1 }))
|
|
18
|
-
throw new c({ address: t });
|
|
19
|
-
return h(t, o);
|
|
1
|
+
import { parseAccount as e } from "./index53.js";
|
|
2
|
+
import { AccountNotFoundError as i } from "./index150.js";
|
|
3
|
+
import { stringToHex as a, toHex as c } from "./index30.js";
|
|
4
|
+
async function g(n, { account: o = n.account, message: r }) {
|
|
5
|
+
if (!o)
|
|
6
|
+
throw new i({
|
|
7
|
+
docsPath: "/docs/actions/wallet/signMessage"
|
|
8
|
+
});
|
|
9
|
+
const t = e(o);
|
|
10
|
+
if (t.signMessage)
|
|
11
|
+
return t.signMessage({ message: r });
|
|
12
|
+
const s = typeof r == "string" ? a(r) : r.raw instanceof Uint8Array ? c(r.raw) : r.raw;
|
|
13
|
+
return n.request({
|
|
14
|
+
method: "personal_sign",
|
|
15
|
+
params: [s, t.address]
|
|
16
|
+
}, { retryCount: 0 });
|
|
20
17
|
}
|
|
21
18
|
export {
|
|
22
|
-
|
|
23
|
-
w as getAddress
|
|
19
|
+
g as signMessage
|
|
24
20
|
};
|
package/dist/index163.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index53.cjs"),y=require("./index150.cjs"),s=require("./index164.cjs");async function p(c,r){const{account:i=c.account,domain:t,message:a,primaryType:e}=r;if(!i)throw new y.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});const n=u.parseAccount(i),o={EIP712Domain:s.getTypesForEIP712Domain({domain:t}),...r.types};if(s.validateTypedData({domain:t,message:a,primaryType:e,types:o}),n.signTypedData)return n.signTypedData({domain:t,message:a,primaryType:e,types:o});const d=s.serializeTypedData({domain:t,message:a,primaryType:e,types:o});return c.request({method:"eth_signTypedData_v4",params:[n.address,d]},{retryCount:0})}exports.signTypedData=p;
|
package/dist/index163.js
CHANGED
|
@@ -1,130 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
});
|
|
22
|
-
},
|
|
23
|
-
decrementPosition(t) {
|
|
24
|
-
if (t < 0)
|
|
25
|
-
throw new o({ offset: t });
|
|
26
|
-
const i = this.position - t;
|
|
27
|
-
this.assertPosition(i), this.position = i;
|
|
28
|
-
},
|
|
29
|
-
getReadCount(t) {
|
|
30
|
-
return this.positionReadCount.get(t || this.position) || 0;
|
|
31
|
-
},
|
|
32
|
-
incrementPosition(t) {
|
|
33
|
-
if (t < 0)
|
|
34
|
-
throw new o({ offset: t });
|
|
35
|
-
const i = this.position + t;
|
|
36
|
-
this.assertPosition(i), this.position = i;
|
|
37
|
-
},
|
|
38
|
-
inspectByte(t) {
|
|
39
|
-
const i = t ?? this.position;
|
|
40
|
-
return this.assertPosition(i), this.bytes[i];
|
|
41
|
-
},
|
|
42
|
-
inspectBytes(t, i) {
|
|
43
|
-
const s = i ?? this.position;
|
|
44
|
-
return this.assertPosition(s + t - 1), this.bytes.subarray(s, s + t);
|
|
45
|
-
},
|
|
46
|
-
inspectUint8(t) {
|
|
47
|
-
const i = t ?? this.position;
|
|
48
|
-
return this.assertPosition(i), this.bytes[i];
|
|
49
|
-
},
|
|
50
|
-
inspectUint16(t) {
|
|
51
|
-
const i = t ?? this.position;
|
|
52
|
-
return this.assertPosition(i + 1), this.dataView.getUint16(i);
|
|
53
|
-
},
|
|
54
|
-
inspectUint24(t) {
|
|
55
|
-
const i = t ?? this.position;
|
|
56
|
-
return this.assertPosition(i + 2), (this.dataView.getUint16(i) << 8) + this.dataView.getUint8(i + 2);
|
|
57
|
-
},
|
|
58
|
-
inspectUint32(t) {
|
|
59
|
-
const i = t ?? this.position;
|
|
60
|
-
return this.assertPosition(i + 3), this.dataView.getUint32(i);
|
|
61
|
-
},
|
|
62
|
-
pushByte(t) {
|
|
63
|
-
this.assertPosition(this.position), this.bytes[this.position] = t, this.position++;
|
|
64
|
-
},
|
|
65
|
-
pushBytes(t) {
|
|
66
|
-
this.assertPosition(this.position + t.length - 1), this.bytes.set(t, this.position), this.position += t.length;
|
|
67
|
-
},
|
|
68
|
-
pushUint8(t) {
|
|
69
|
-
this.assertPosition(this.position), this.bytes[this.position] = t, this.position++;
|
|
70
|
-
},
|
|
71
|
-
pushUint16(t) {
|
|
72
|
-
this.assertPosition(this.position + 1), this.dataView.setUint16(this.position, t), this.position += 2;
|
|
73
|
-
},
|
|
74
|
-
pushUint24(t) {
|
|
75
|
-
this.assertPosition(this.position + 2), this.dataView.setUint16(this.position, t >> 8), this.dataView.setUint8(this.position + 2, t & 255), this.position += 3;
|
|
76
|
-
},
|
|
77
|
-
pushUint32(t) {
|
|
78
|
-
this.assertPosition(this.position + 3), this.dataView.setUint32(this.position, t), this.position += 4;
|
|
79
|
-
},
|
|
80
|
-
readByte() {
|
|
81
|
-
this.assertReadLimit(), this._touch();
|
|
82
|
-
const t = this.inspectByte();
|
|
83
|
-
return this.position++, t;
|
|
84
|
-
},
|
|
85
|
-
readBytes(t, i) {
|
|
86
|
-
this.assertReadLimit(), this._touch();
|
|
87
|
-
const s = this.inspectBytes(t);
|
|
88
|
-
return this.position += i ?? t, s;
|
|
89
|
-
},
|
|
90
|
-
readUint8() {
|
|
91
|
-
this.assertReadLimit(), this._touch();
|
|
92
|
-
const t = this.inspectUint8();
|
|
93
|
-
return this.position += 1, t;
|
|
94
|
-
},
|
|
95
|
-
readUint16() {
|
|
96
|
-
this.assertReadLimit(), this._touch();
|
|
97
|
-
const t = this.inspectUint16();
|
|
98
|
-
return this.position += 2, t;
|
|
99
|
-
},
|
|
100
|
-
readUint24() {
|
|
101
|
-
this.assertReadLimit(), this._touch();
|
|
102
|
-
const t = this.inspectUint24();
|
|
103
|
-
return this.position += 3, t;
|
|
104
|
-
},
|
|
105
|
-
readUint32() {
|
|
106
|
-
this.assertReadLimit(), this._touch();
|
|
107
|
-
const t = this.inspectUint32();
|
|
108
|
-
return this.position += 4, t;
|
|
109
|
-
},
|
|
110
|
-
get remaining() {
|
|
111
|
-
return this.bytes.length - this.position;
|
|
112
|
-
},
|
|
113
|
-
setPosition(t) {
|
|
114
|
-
const i = this.position;
|
|
115
|
-
return this.assertPosition(t), this.position = t, () => this.position = i;
|
|
116
|
-
},
|
|
117
|
-
_touch() {
|
|
118
|
-
if (this.recursiveReadLimit === Number.POSITIVE_INFINITY)
|
|
119
|
-
return;
|
|
120
|
-
const t = this.getReadCount();
|
|
121
|
-
this.positionReadCount.set(this.position, t + 1), t > 0 && this.recursiveReadCount++;
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
function a(t, { recursiveReadLimit: i = 8192 } = {}) {
|
|
125
|
-
const s = Object.create(h);
|
|
126
|
-
return s.bytes = t, s.dataView = new DataView(t.buffer, t.byteOffset, t.byteLength), s.positionReadCount = /* @__PURE__ */ new Map(), s.recursiveReadLimit = i, s;
|
|
1
|
+
import { parseAccount as p } from "./index53.js";
|
|
2
|
+
import { AccountNotFoundError as d } from "./index150.js";
|
|
3
|
+
import { getTypesForEIP712Domain as y, validateTypedData as m, serializeTypedData as u } from "./index164.js";
|
|
4
|
+
async function f(r, s) {
|
|
5
|
+
const { account: c = r.account, domain: t, message: a, primaryType: o } = s;
|
|
6
|
+
if (!c)
|
|
7
|
+
throw new d({
|
|
8
|
+
docsPath: "/docs/actions/wallet/signTypedData"
|
|
9
|
+
});
|
|
10
|
+
const e = p(c), n = {
|
|
11
|
+
EIP712Domain: y({ domain: t }),
|
|
12
|
+
...s.types
|
|
13
|
+
};
|
|
14
|
+
if (m({ domain: t, message: a, primaryType: o, types: n }), e.signTypedData)
|
|
15
|
+
return e.signTypedData({ domain: t, message: a, primaryType: o, types: n });
|
|
16
|
+
const i = u({ domain: t, message: a, primaryType: o, types: n });
|
|
17
|
+
return r.request({
|
|
18
|
+
method: "eth_signTypedData_v4",
|
|
19
|
+
params: [e.address, i]
|
|
20
|
+
}, { retryCount: 0 });
|
|
127
21
|
}
|
|
128
22
|
export {
|
|
129
|
-
|
|
23
|
+
f as signTypedData
|
|
130
24
|
};
|
package/dist/index164.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 m=require("./index113.cjs"),E=require("./index207.cjs"),b=require("./index209.cjs"),z=require("./index222.cjs"),d=require("./index194.cjs"),T=require("./index30.cjs"),h=require("./index224.cjs"),w=require("./index124.cjs");function P(e){const{domain:i,message:y,primaryType:n,types:t}=e,a=(g,l)=>{const s={...l};for(const r of g){const{name:o,type:f}=r;f==="address"&&(s[o]=s[o].toLowerCase())}return s},u=t.EIP712Domain?i?a(t.EIP712Domain,i):{}:{},p=(()=>{if(n!=="EIP712Domain")return a(t[n],y)})();return w.stringify({domain:u,message:p,primaryType:n,types:t})}function q(e){const{domain:i,message:y,primaryType:n,types:t}=e,a=(u,p)=>{for(const g of u){const{name:l,type:s}=g,r=p[l],o=s.match(h.integerRegex);if(o&&(typeof r=="number"||typeof r=="bigint")){const[D,c,v]=o;T.numberToHex(r,{signed:c==="int",size:Number.parseInt(v)/8})}if(s==="address"&&typeof r=="string"&&!z.isAddress(r))throw new E.InvalidAddressError({address:r});const f=s.match(h.bytesRegex);if(f){const[D,c]=f;if(c&&d.size(r)!==Number.parseInt(c))throw new m.BytesSizeMismatchError({expectedSize:Number.parseInt(c),givenSize:d.size(r)})}const I=t[s];I&&(S(s),a(I,r))}};if(t.EIP712Domain&&i){if(typeof i!="object")throw new b.InvalidDomainError({domain:i});a(t.EIP712Domain,i)}if(n!=="EIP712Domain")if(t[n])a(t[n],y);else throw new b.InvalidPrimaryTypeError({primaryType:n,types:t})}function x({domain:e}){return[typeof(e==null?void 0:e.name)=="string"&&{name:"name",type:"string"},(e==null?void 0:e.version)&&{name:"version",type:"string"},(typeof(e==null?void 0:e.chainId)=="number"||typeof(e==null?void 0:e.chainId)=="bigint")&&{name:"chainId",type:"uint256"},(e==null?void 0:e.verifyingContract)&&{name:"verifyingContract",type:"address"},(e==null?void 0:e.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function S(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new b.InvalidStructTypeError({type:e})}exports.getTypesForEIP712Domain=x;exports.serializeTypedData=P;exports.validateTypedData=q;
|
package/dist/index164.js
CHANGED
|
@@ -1,41 +1,83 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { BytesSizeMismatchError as v } from "./index113.js";
|
|
2
|
+
import { InvalidAddressError as D } from "./index207.js";
|
|
3
|
+
import { InvalidDomainError as E, InvalidPrimaryTypeError as w, InvalidStructTypeError as z } from "./index209.js";
|
|
4
|
+
import { isAddress as P } from "./index222.js";
|
|
5
|
+
import { size as h } from "./index194.js";
|
|
6
|
+
import { numberToHex as T } from "./index30.js";
|
|
7
|
+
import { integerRegex as d, bytesRegex as _ } from "./index224.js";
|
|
8
|
+
import { stringify as x } from "./index124.js";
|
|
9
|
+
function F(e) {
|
|
10
|
+
const { domain: i, message: p, primaryType: n, types: t } = e, o = (u, g) => {
|
|
11
|
+
const s = { ...g };
|
|
12
|
+
for (const r of u) {
|
|
13
|
+
const { name: a, type: c } = r;
|
|
14
|
+
c === "address" && (s[a] = s[a].toLowerCase());
|
|
15
|
+
}
|
|
16
|
+
return s;
|
|
17
|
+
}, y = t.EIP712Domain ? i ? o(t.EIP712Domain, i) : {} : {}, m = (() => {
|
|
18
|
+
if (n !== "EIP712Domain")
|
|
19
|
+
return o(t[n], p);
|
|
20
|
+
})();
|
|
21
|
+
return x({ domain: y, message: m, primaryType: n, types: t });
|
|
10
22
|
}
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
23
|
+
function H(e) {
|
|
24
|
+
const { domain: i, message: p, primaryType: n, types: t } = e, o = (y, m) => {
|
|
25
|
+
for (const u of y) {
|
|
26
|
+
const { name: g, type: s } = u, r = m[g], a = s.match(d);
|
|
27
|
+
if (a && (typeof r == "number" || typeof r == "bigint")) {
|
|
28
|
+
const [l, f, b] = a;
|
|
29
|
+
T(r, {
|
|
30
|
+
signed: f === "int",
|
|
31
|
+
size: Number.parseInt(b) / 8
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
if (s === "address" && typeof r == "string" && !P(r))
|
|
35
|
+
throw new D({ address: r });
|
|
36
|
+
const c = s.match(_);
|
|
37
|
+
if (c) {
|
|
38
|
+
const [l, f] = c;
|
|
39
|
+
if (f && h(r) !== Number.parseInt(f))
|
|
40
|
+
throw new v({
|
|
41
|
+
expectedSize: Number.parseInt(f),
|
|
42
|
+
givenSize: h(r)
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
const I = t[s];
|
|
46
|
+
I && (S(s), o(I, r));
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
if (t.EIP712Domain && i) {
|
|
50
|
+
if (typeof i != "object")
|
|
51
|
+
throw new E({ domain: i });
|
|
52
|
+
o(t.EIP712Domain, i);
|
|
53
|
+
}
|
|
54
|
+
if (n !== "EIP712Domain")
|
|
55
|
+
if (t[n])
|
|
56
|
+
o(t[n], p);
|
|
57
|
+
else
|
|
58
|
+
throw new w({ primaryType: n, types: t });
|
|
18
59
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
60
|
+
function L({ domain: e }) {
|
|
61
|
+
return [
|
|
62
|
+
typeof (e == null ? void 0 : e.name) == "string" && { name: "name", type: "string" },
|
|
63
|
+
(e == null ? void 0 : e.version) && { name: "version", type: "string" },
|
|
64
|
+
(typeof (e == null ? void 0 : e.chainId) == "number" || typeof (e == null ? void 0 : e.chainId) == "bigint") && {
|
|
65
|
+
name: "chainId",
|
|
66
|
+
type: "uint256"
|
|
67
|
+
},
|
|
68
|
+
(e == null ? void 0 : e.verifyingContract) && {
|
|
69
|
+
name: "verifyingContract",
|
|
70
|
+
type: "address"
|
|
71
|
+
},
|
|
72
|
+
(e == null ? void 0 : e.salt) && { name: "salt", type: "bytes32" }
|
|
73
|
+
].filter(Boolean);
|
|
26
74
|
}
|
|
27
|
-
function
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return o && c(n, f, i), n;
|
|
31
|
-
}
|
|
32
|
-
function u(e, f, i, { strict: o } = {}) {
|
|
33
|
-
s(e, f);
|
|
34
|
-
const n = `0x${e.replace("0x", "").slice((f ?? 0) * 2, (i ?? e.length) * 2)}`;
|
|
35
|
-
return o && c(n, f, i), n;
|
|
75
|
+
function S(e) {
|
|
76
|
+
if (e === "address" || e === "bool" || e === "string" || e.startsWith("bytes") || e.startsWith("uint") || e.startsWith("int"))
|
|
77
|
+
throw new z({ type: e });
|
|
36
78
|
}
|
|
37
79
|
export {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
80
|
+
L as getTypesForEIP712Domain,
|
|
81
|
+
F as serializeTypedData,
|
|
82
|
+
H as validateTypedData
|
|
41
83
|
};
|
package/dist/index165.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 q=require("./index53.cjs"),g=require("./index35.cjs"),b=require("./index36.cjs"),A=require("./index74.cjs"),C=require("./index43.cjs"),h=require("./index50.cjs");async function y(u,i){const{abi:e,address:o,args:c,dataSuffix:r,functionName:a,...n}=i,t=n.account?q.parseAccount(n.account):u.account,l=b.encodeFunctionData({abi:e,args:c,functionName:a});try{const{data:s}=await C.getAction(u,h.call,"call")({batch:!1,data:`${l}${r?r.replace("0x",""):""}`,to:o,...n,account:t}),f=g.decodeFunctionResult({abi:e,args:c,functionName:a,data:s||"0x"}),m=e.filter(d=>"name"in d&&d.name===i.functionName);return{result:f,request:{abi:m,address:o,args:c,dataSuffix:r,functionName:a,...n,account:t}}}catch(s){throw A.getContractError(s,{abi:e,address:o,args:c,docsPath:"/docs/contract/simulateContract",functionName:a,sender:t==null?void 0:t.address})}}exports.simulateContract=y;
|
package/dist/index165.js
CHANGED
|
@@ -1,9 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { parseAccount as p } from "./index53.js";
|
|
2
|
+
import { decodeFunctionResult as h } from "./index35.js";
|
|
3
|
+
import { encodeFunctionData as x } from "./index36.js";
|
|
4
|
+
import { getContractError as b } from "./index74.js";
|
|
5
|
+
import { getAction as g } from "./index43.js";
|
|
6
|
+
import { call as A } from "./index50.js";
|
|
7
|
+
async function R(s, m) {
|
|
8
|
+
const { abi: o, address: n, args: a, dataSuffix: e, functionName: c, ...r } = m, t = r.account ? p(r.account) : s.account, u = x({ abi: o, args: a, functionName: c });
|
|
9
|
+
try {
|
|
10
|
+
const { data: i } = await g(s, A, "call")({
|
|
11
|
+
batch: !1,
|
|
12
|
+
data: `${u}${e ? e.replace("0x", "") : ""}`,
|
|
13
|
+
to: n,
|
|
14
|
+
...r,
|
|
15
|
+
account: t
|
|
16
|
+
}), l = h({
|
|
17
|
+
abi: o,
|
|
18
|
+
args: a,
|
|
19
|
+
functionName: c,
|
|
20
|
+
data: i || "0x"
|
|
21
|
+
}), f = o.filter((d) => "name" in d && d.name === m.functionName);
|
|
22
|
+
return {
|
|
23
|
+
result: l,
|
|
24
|
+
request: {
|
|
25
|
+
abi: f,
|
|
26
|
+
address: n,
|
|
27
|
+
args: a,
|
|
28
|
+
dataSuffix: e,
|
|
29
|
+
functionName: c,
|
|
30
|
+
...r,
|
|
31
|
+
account: t
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
} catch (i) {
|
|
35
|
+
throw b(i, {
|
|
36
|
+
abi: o,
|
|
37
|
+
address: n,
|
|
38
|
+
args: a,
|
|
39
|
+
docsPath: "/docs/contract/simulateContract",
|
|
40
|
+
functionName: c,
|
|
41
|
+
sender: t == null ? void 0 : t.address
|
|
42
|
+
});
|
|
43
|
+
}
|
|
6
44
|
}
|
|
7
45
|
export {
|
|
8
|
-
|
|
46
|
+
R as simulateContract
|
|
9
47
|
};
|
package/dist/index166.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("./index30.cjs");async function a(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:i.numberToHex(t)}]},{retryCount:0})}exports.switchChain=a;
|