@gardenfi/utils 2.1.3-beta.17 → 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 +110 -39
- package/dist/index292.cjs +2 -1
- package/dist/index292.js +126 -70
- package/dist/index293.cjs +1 -1
- package/dist/index293.js +29 -2
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +37 -10
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +11 -19
- 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/index188.js
CHANGED
|
@@ -1,53 +1,106 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import { requestAddresses as f } from "./index147.js";
|
|
11
|
-
import { requestPermissions as g } from "./index148.js";
|
|
12
|
-
import { sendCalls as C } from "./index135.js";
|
|
13
|
-
import { sendRawTransaction as u } from "./index159.js";
|
|
14
|
-
import { sendTransaction as h } from "./index33.js";
|
|
15
|
-
import { showCallsStatus as w } from "./index140.js";
|
|
16
|
-
import { signAuthorization as A } from "./index160.js";
|
|
17
|
-
import { signMessage as T } from "./index162.js";
|
|
18
|
-
import { signTransaction as q } from "./index161.js";
|
|
19
|
-
import { signTypedData as S } from "./index163.js";
|
|
20
|
-
import { switchChain as y } from "./index166.js";
|
|
21
|
-
import { waitForCallsStatus as z } from "./index141.js";
|
|
22
|
-
import { watchAsset as P } from "./index177.js";
|
|
23
|
-
import { writeContract as R } from "./index179.js";
|
|
24
|
-
function X(s) {
|
|
25
|
-
return {
|
|
26
|
-
addChain: (r) => t(s, r),
|
|
27
|
-
deployContract: (r) => a(s, r),
|
|
28
|
-
getAddresses: () => i(s),
|
|
29
|
-
getCallsStatus: (r) => m(s, r),
|
|
30
|
-
getCapabilities: (r) => e(s, r),
|
|
31
|
-
getChainId: () => o(s),
|
|
32
|
-
getPermissions: () => p(s),
|
|
33
|
-
prepareAuthorization: (r) => n(s, r),
|
|
34
|
-
prepareTransactionRequest: (r) => d(s, r),
|
|
35
|
-
requestAddresses: () => f(s),
|
|
36
|
-
requestPermissions: (r) => g(s, r),
|
|
37
|
-
sendCalls: (r) => C(s, r),
|
|
38
|
-
sendRawTransaction: (r) => u(s, r),
|
|
39
|
-
sendTransaction: (r) => h(s, r),
|
|
40
|
-
showCallsStatus: (r) => w(s, r),
|
|
41
|
-
signAuthorization: (r) => A(s, r),
|
|
42
|
-
signMessage: (r) => T(s, r),
|
|
43
|
-
signTransaction: (r) => q(s, r),
|
|
44
|
-
signTypedData: (r) => S(s, r),
|
|
45
|
-
switchChain: (r) => y(s, r),
|
|
46
|
-
waitForCallsStatus: (r) => z(s, r),
|
|
47
|
-
watchAsset: (r) => P(s, r),
|
|
48
|
-
writeContract: (r) => R(s, r)
|
|
1
|
+
import { encodeAbiParameters as p } from "./index165.js";
|
|
2
|
+
import { concat as h } from "./index155.js";
|
|
3
|
+
import { toHex as d } from "./index151.js";
|
|
4
|
+
import { keccak256 as c } from "./index152.js";
|
|
5
|
+
import { getTypesForEIP712Domain as T, validateTypedData as D } from "./index189.js";
|
|
6
|
+
function k(o) {
|
|
7
|
+
const { domain: t = {}, message: e, primaryType: n } = o, r = {
|
|
8
|
+
EIP712Domain: T({ domain: t }),
|
|
9
|
+
...o.types
|
|
49
10
|
};
|
|
11
|
+
D({
|
|
12
|
+
domain: t,
|
|
13
|
+
message: e,
|
|
14
|
+
primaryType: n,
|
|
15
|
+
types: r
|
|
16
|
+
});
|
|
17
|
+
const a = ["0x1901"];
|
|
18
|
+
return t && a.push(b({
|
|
19
|
+
domain: t,
|
|
20
|
+
types: r
|
|
21
|
+
})), n !== "EIP712Domain" && a.push(f({
|
|
22
|
+
data: e,
|
|
23
|
+
primaryType: n,
|
|
24
|
+
types: r
|
|
25
|
+
})), c(h(a));
|
|
26
|
+
}
|
|
27
|
+
function b({ domain: o, types: t }) {
|
|
28
|
+
return f({
|
|
29
|
+
data: o,
|
|
30
|
+
primaryType: "EIP712Domain",
|
|
31
|
+
types: t
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function f({ data: o, primaryType: t, types: e }) {
|
|
35
|
+
const n = m({
|
|
36
|
+
data: o,
|
|
37
|
+
primaryType: t,
|
|
38
|
+
types: e
|
|
39
|
+
});
|
|
40
|
+
return c(n);
|
|
41
|
+
}
|
|
42
|
+
function m({ data: o, primaryType: t, types: e }) {
|
|
43
|
+
const n = [{ type: "bytes32" }], r = [l({ primaryType: t, types: e })];
|
|
44
|
+
for (const a of e[t]) {
|
|
45
|
+
const [i, s] = y({
|
|
46
|
+
types: e,
|
|
47
|
+
name: a.name,
|
|
48
|
+
type: a.type,
|
|
49
|
+
value: o[a.name]
|
|
50
|
+
});
|
|
51
|
+
n.push(i), r.push(s);
|
|
52
|
+
}
|
|
53
|
+
return p(n, r);
|
|
54
|
+
}
|
|
55
|
+
function l({ primaryType: o, types: t }) {
|
|
56
|
+
const e = d(x({ primaryType: o, types: t }));
|
|
57
|
+
return c(e);
|
|
58
|
+
}
|
|
59
|
+
function x({ primaryType: o, types: t }) {
|
|
60
|
+
let e = "";
|
|
61
|
+
const n = u({ primaryType: o, types: t });
|
|
62
|
+
n.delete(o);
|
|
63
|
+
const r = [o, ...Array.from(n).sort()];
|
|
64
|
+
for (const a of r)
|
|
65
|
+
e += `${a}(${t[a].map(({ name: i, type: s }) => `${s} ${i}`).join(",")})`;
|
|
66
|
+
return e;
|
|
67
|
+
}
|
|
68
|
+
function u({ primaryType: o, types: t }, e = /* @__PURE__ */ new Set()) {
|
|
69
|
+
const n = o.match(/^\w*/u), r = n == null ? void 0 : n[0];
|
|
70
|
+
if (e.has(r) || t[r] === void 0)
|
|
71
|
+
return e;
|
|
72
|
+
e.add(r);
|
|
73
|
+
for (const a of t[r])
|
|
74
|
+
u({ primaryType: a.type, types: t }, e);
|
|
75
|
+
return e;
|
|
76
|
+
}
|
|
77
|
+
function y({ types: o, name: t, type: e, value: n }) {
|
|
78
|
+
if (o[e] !== void 0)
|
|
79
|
+
return [
|
|
80
|
+
{ type: "bytes32" },
|
|
81
|
+
c(m({ data: n, primaryType: e, types: o }))
|
|
82
|
+
];
|
|
83
|
+
if (e === "bytes")
|
|
84
|
+
return n = `0x${(n.length % 2 ? "0" : "") + n.slice(2)}`, [{ type: "bytes32" }, c(n)];
|
|
85
|
+
if (e === "string")
|
|
86
|
+
return [{ type: "bytes32" }, c(d(n))];
|
|
87
|
+
if (e.lastIndexOf("]") === e.length - 1) {
|
|
88
|
+
const r = e.slice(0, e.lastIndexOf("[")), a = n.map((i) => y({
|
|
89
|
+
name: t,
|
|
90
|
+
type: r,
|
|
91
|
+
types: o,
|
|
92
|
+
value: i
|
|
93
|
+
}));
|
|
94
|
+
return [
|
|
95
|
+
{ type: "bytes32" },
|
|
96
|
+
c(p(a.map(([i]) => i), a.map(([, i]) => i)))
|
|
97
|
+
];
|
|
98
|
+
}
|
|
99
|
+
return [{ type: e }, n];
|
|
50
100
|
}
|
|
51
101
|
export {
|
|
52
|
-
|
|
102
|
+
x as encodeType,
|
|
103
|
+
b as hashDomain,
|
|
104
|
+
f as hashStruct,
|
|
105
|
+
k as hashTypedData
|
|
53
106
|
};
|
package/dist/index189.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("./index123.cjs"),E=require("./index146.cjs"),b=require("./index148.cjs"),z=require("./index172.cjs"),d=require("./index125.cjs"),T=require("./index151.cjs"),h=require("./index174.cjs"),w=require("./index43.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/index189.js
CHANGED
|
@@ -1,109 +1,83 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
case P.code:
|
|
45
|
-
throw new P(e);
|
|
46
|
-
case D.code:
|
|
47
|
-
throw new D(e);
|
|
48
|
-
case s.code:
|
|
49
|
-
throw new s(e, {
|
|
50
|
-
method: n.method
|
|
51
|
-
});
|
|
52
|
-
case a.code:
|
|
53
|
-
throw new a(e);
|
|
54
|
-
case C.code:
|
|
55
|
-
throw new C(e);
|
|
56
|
-
case u.code:
|
|
57
|
-
throw new u(e);
|
|
58
|
-
case q.code:
|
|
59
|
-
throw new q(e);
|
|
60
|
-
case N.code:
|
|
61
|
-
throw new N(e);
|
|
62
|
-
case b.code:
|
|
63
|
-
throw new b(e);
|
|
64
|
-
case v.code:
|
|
65
|
-
throw new v(e);
|
|
66
|
-
case U.code:
|
|
67
|
-
throw new U(e);
|
|
68
|
-
case I.code:
|
|
69
|
-
throw new I(e);
|
|
70
|
-
case y.code:
|
|
71
|
-
throw new y(e);
|
|
72
|
-
case m.code:
|
|
73
|
-
throw new m(e);
|
|
74
|
-
case R.code:
|
|
75
|
-
throw new R(e);
|
|
76
|
-
case l.code:
|
|
77
|
-
throw new l(e);
|
|
78
|
-
case E.code:
|
|
79
|
-
throw new E(e);
|
|
80
|
-
case f.code:
|
|
81
|
-
throw new f(e);
|
|
82
|
-
case 5e3:
|
|
83
|
-
throw new u(e);
|
|
84
|
-
default:
|
|
85
|
-
throw o instanceof z ? o : new J(e);
|
|
86
|
-
}
|
|
1
|
+
import { BytesSizeMismatchError as v } from "./index123.js";
|
|
2
|
+
import { InvalidAddressError as D } from "./index146.js";
|
|
3
|
+
import { InvalidDomainError as E, InvalidPrimaryTypeError as w, InvalidStructTypeError as z } from "./index148.js";
|
|
4
|
+
import { isAddress as P } from "./index172.js";
|
|
5
|
+
import { size as h } from "./index125.js";
|
|
6
|
+
import { numberToHex as T } from "./index151.js";
|
|
7
|
+
import { integerRegex as d, bytesRegex as _ } from "./index174.js";
|
|
8
|
+
import { stringify as x } from "./index43.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 });
|
|
22
|
+
}
|
|
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
|
+
});
|
|
87
44
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
if (e && e instanceof k) {
|
|
92
|
-
const d = (p = e == null ? void 0 : e.headers) == null ? void 0 : p.get("Retry-After");
|
|
93
|
-
if (d != null && d.match(/\d/))
|
|
94
|
-
return Number.parseInt(d) * 1e3;
|
|
95
|
-
}
|
|
96
|
-
return ~~(1 << o) * H;
|
|
97
|
-
},
|
|
98
|
-
retryCount: L,
|
|
99
|
-
shouldRetry: ({ error: o }) => G(o)
|
|
100
|
-
}), { enabled: w, id: g });
|
|
45
|
+
const I = t[s];
|
|
46
|
+
I && (S(s), o(I, r));
|
|
47
|
+
}
|
|
101
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 });
|
|
59
|
+
}
|
|
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);
|
|
102
74
|
}
|
|
103
|
-
function
|
|
104
|
-
|
|
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 });
|
|
105
78
|
}
|
|
106
79
|
export {
|
|
107
|
-
|
|
108
|
-
|
|
80
|
+
L as getTypesForEIP712Domain,
|
|
81
|
+
F as serializeTypedData,
|
|
82
|
+
H as validateTypedData
|
|
109
83
|
};
|
package/dist/index19.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index30.cjs"),P=require("./index31.cjs"),v=require("./index32.cjs"),q=require("./index33.cjs"),F=require("./index34.cjs"),_=require("./index35.cjs"),x=require("./index36.cjs"),b=require("./index37.cjs");function G({abi:t,address:o,client:l}){const n=l,[s,f]=n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0],h=s!=null,A=f!=null,u={};let m=!1,w=!1,d=!1;for(const a of t)if(a.type==="function"?a.stateMutability==="view"||a.stateMutability==="pure"?m=!0:w=!0:a.type==="event"&&(d=!0),m&&w&&d)break;return h&&(m&&(u.read=new Proxy({},{get(a,e){return(...i)=>{const{args:c,options:r}=y(i);return p.getAction(s,F.readContract,"readContract")({abi:t,address:o,functionName:e,args:c,...r})}}})),w&&(u.simulate=new Proxy({},{get(a,e){return(...i)=>{const{args:c,options:r}=y(i);return p.getAction(s,_.simulateContract,"simulateContract")({abi:t,address:o,functionName:e,args:c,...r})}}})),d&&(u.createEventFilter=new Proxy({},{get(a,e){return(...i)=>{const c=t.find(g=>g.type==="event"&&g.name===e),{args:r,options:C}=E(i,c);return p.getAction(s,P.createContractEventFilter,"createContractEventFilter")({abi:t,address:o,eventName:e,args:r,...C})}}}),u.getEvents=new Proxy({},{get(a,e){return(...i)=>{const c=t.find(g=>g.type==="event"&&g.name===e),{args:r,options:C}=E(i,c);return p.getAction(s,q.getContractEvents,"getContractEvents")({abi:t,address:o,eventName:e,args:r,...C})}}}),u.watchEvent=new Proxy({},{get(a,e){return(...i)=>{const c=t.find(g=>g.type==="event"&&g.name===e),{args:r,options:C}=E(i,c);return p.getAction(s,x.watchContractEvent,"watchContractEvent")({abi:t,address:o,eventName:e,args:r,...C})}}}))),A&&w&&(u.write=new Proxy({},{get(a,e){return(...i)=>{const{args:c,options:r}=y(i);return p.getAction(f,b.writeContract,"writeContract")({abi:t,address:o,functionName:e,args:c,...r})}}})),(h||A)&&w&&(u.estimateGas=new Proxy({},{get(a,e){return(...i)=>{const{args:c,options:r}=y(i),C=s??f;return p.getAction(C,v.estimateContractGas,"estimateContractGas")({abi:t,address:o,functionName:e,args:c,...r,account:r.account??f.account})}}})),u.address=o,u.abi=t,u}function y(t){const o=t.length&&Array.isArray(t[0]),l=o?t[0]:[],n=(o?t[1]:t[0])??{};return{args:l,options:n}}function E(t,o){let l=!1;Array.isArray(t[0])?l=!0:t.length===1?l=o.inputs.some(f=>f.indexed):t.length===2&&(l=!0);const n=l?t[0]:void 0,s=(l?t[1]:t[0])??{};return{args:n,options:s}}exports.getContract=G;exports.getEventParameters=E;exports.getFunctionParameters=y;
|
package/dist/index19.js
CHANGED
|
@@ -1,4 +1,123 @@
|
|
|
1
|
-
|
|
1
|
+
import { getAction as g } from "./index30.js";
|
|
2
|
+
import { createContractEventFilter as v } from "./index31.js";
|
|
3
|
+
import { estimateContractGas as A } from "./index32.js";
|
|
4
|
+
import { getContractEvents as _ } from "./index33.js";
|
|
5
|
+
import { readContract as x } from "./index34.js";
|
|
6
|
+
import { simulateContract as F } from "./index35.js";
|
|
7
|
+
import { watchContractEvent as G } from "./index36.js";
|
|
8
|
+
import { writeContract as b } from "./index37.js";
|
|
9
|
+
function D({ abi: t, address: o, client: f }) {
|
|
10
|
+
const e = f, [a, p] = e ? "public" in e && "wallet" in e ? [e.public, e.wallet] : "public" in e ? [e.public, void 0] : "wallet" in e ? [void 0, e.wallet] : [e, e] : [void 0, void 0], d = a != null, P = p != null, u = {};
|
|
11
|
+
let y = !1, w = !1, E = !1;
|
|
12
|
+
for (const s of t)
|
|
13
|
+
if (s.type === "function" ? s.stateMutability === "view" || s.stateMutability === "pure" ? y = !0 : w = !0 : s.type === "event" && (E = !0), y && w && E)
|
|
14
|
+
break;
|
|
15
|
+
return d && (y && (u.read = new Proxy({}, {
|
|
16
|
+
get(s, n) {
|
|
17
|
+
return (...i) => {
|
|
18
|
+
const { args: c, options: r } = C(i);
|
|
19
|
+
return g(a, x, "readContract")({
|
|
20
|
+
abi: t,
|
|
21
|
+
address: o,
|
|
22
|
+
functionName: n,
|
|
23
|
+
args: c,
|
|
24
|
+
...r
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
})), w && (u.simulate = new Proxy({}, {
|
|
29
|
+
get(s, n) {
|
|
30
|
+
return (...i) => {
|
|
31
|
+
const { args: c, options: r } = C(i);
|
|
32
|
+
return g(a, F, "simulateContract")({
|
|
33
|
+
abi: t,
|
|
34
|
+
address: o,
|
|
35
|
+
functionName: n,
|
|
36
|
+
args: c,
|
|
37
|
+
...r
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
})), E && (u.createEventFilter = new Proxy({}, {
|
|
42
|
+
get(s, n) {
|
|
43
|
+
return (...i) => {
|
|
44
|
+
const c = t.find((l) => l.type === "event" && l.name === n), { args: r, options: m } = h(i, c);
|
|
45
|
+
return g(a, v, "createContractEventFilter")({
|
|
46
|
+
abi: t,
|
|
47
|
+
address: o,
|
|
48
|
+
eventName: n,
|
|
49
|
+
args: r,
|
|
50
|
+
...m
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
}), u.getEvents = new Proxy({}, {
|
|
55
|
+
get(s, n) {
|
|
56
|
+
return (...i) => {
|
|
57
|
+
const c = t.find((l) => l.type === "event" && l.name === n), { args: r, options: m } = h(i, c);
|
|
58
|
+
return g(a, _, "getContractEvents")({
|
|
59
|
+
abi: t,
|
|
60
|
+
address: o,
|
|
61
|
+
eventName: n,
|
|
62
|
+
args: r,
|
|
63
|
+
...m
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
}), u.watchEvent = new Proxy({}, {
|
|
68
|
+
get(s, n) {
|
|
69
|
+
return (...i) => {
|
|
70
|
+
const c = t.find((l) => l.type === "event" && l.name === n), { args: r, options: m } = h(i, c);
|
|
71
|
+
return g(a, G, "watchContractEvent")({
|
|
72
|
+
abi: t,
|
|
73
|
+
address: o,
|
|
74
|
+
eventName: n,
|
|
75
|
+
args: r,
|
|
76
|
+
...m
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
}))), P && w && (u.write = new Proxy({}, {
|
|
81
|
+
get(s, n) {
|
|
82
|
+
return (...i) => {
|
|
83
|
+
const { args: c, options: r } = C(i);
|
|
84
|
+
return g(p, b, "writeContract")({
|
|
85
|
+
abi: t,
|
|
86
|
+
address: o,
|
|
87
|
+
functionName: n,
|
|
88
|
+
args: c,
|
|
89
|
+
...r
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
})), (d || P) && w && (u.estimateGas = new Proxy({}, {
|
|
94
|
+
get(s, n) {
|
|
95
|
+
return (...i) => {
|
|
96
|
+
const { args: c, options: r } = C(i);
|
|
97
|
+
return g(a ?? p, A, "estimateContractGas")({
|
|
98
|
+
abi: t,
|
|
99
|
+
address: o,
|
|
100
|
+
functionName: n,
|
|
101
|
+
args: c,
|
|
102
|
+
...r,
|
|
103
|
+
account: r.account ?? p.account
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
})), u.address = o, u.abi = t, u;
|
|
108
|
+
}
|
|
109
|
+
function C(t) {
|
|
110
|
+
const o = t.length && Array.isArray(t[0]), f = o ? t[0] : [], e = (o ? t[1] : t[0]) ?? {};
|
|
111
|
+
return { args: f, options: e };
|
|
112
|
+
}
|
|
113
|
+
function h(t, o) {
|
|
114
|
+
let f = !1;
|
|
115
|
+
Array.isArray(t[0]) ? f = !0 : t.length === 1 ? f = o.inputs.some((p) => p.indexed) : t.length === 2 && (f = !0);
|
|
116
|
+
const e = f ? t[0] : void 0, a = (f ? t[1] : t[0]) ?? {};
|
|
117
|
+
return { args: e, options: a };
|
|
118
|
+
}
|
|
2
119
|
export {
|
|
3
|
-
|
|
120
|
+
D as getContract,
|
|
121
|
+
h as getEventParameters,
|
|
122
|
+
C as getFunctionParameters
|
|
4
123
|
};
|
package/dist/index190.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("./index191.cjs"),s=require("./index192.cjs");async function o({hash:e,signature:r}){return c.publicKeyToAddress(await s.recoverPublicKey({hash:e,signature:r}))}exports.recoverAddress=o;
|
package/dist/index190.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
wei: 9
|
|
7
|
-
};
|
|
1
|
+
import { publicKeyToAddress as o } from "./index191.js";
|
|
2
|
+
import { recoverPublicKey as c } from "./index192.js";
|
|
3
|
+
async function t({ hash: r, signature: e }) {
|
|
4
|
+
return o(await c({ hash: r, signature: e }));
|
|
5
|
+
}
|
|
8
6
|
export {
|
|
9
|
-
|
|
10
|
-
t as gweiUnits
|
|
7
|
+
t as recoverAddress
|
|
11
8
|
};
|
package/dist/index191.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index160.cjs"),c=require("./index152.cjs");function t(e){const s=c.keccak256(`0x${e.substring(4)}`).substring(26);return r.checksumAddress(`0x${s}`)}exports.publicKeyToAddress=t;
|
package/dist/index191.js
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { checksumAddress as e } from "./index160.js";
|
|
2
|
+
import { keccak256 as o } from "./index152.js";
|
|
3
|
+
function d(r) {
|
|
4
|
+
const s = o(`0x${r.substring(4)}`).substring(26);
|
|
5
|
+
return e(`0x${s}`);
|
|
6
|
+
}
|
|
2
7
|
export {
|
|
3
|
-
|
|
8
|
+
d as publicKeyToAddress
|
|
4
9
|
};
|
package/dist/index192.cjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e
|
|
2
|
-
`;exports.presignMessagePrefix=e;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index186.cjs"),t=require("./index183.cjs"),n=require("./index151.cjs");async function d({hash:e,signature:r}){const u=i.isHex(e)?e:n.toHex(e),{secp256k1:o}=await Promise.resolve().then(()=>require("./index193.cjs"));return`0x${(()=>{if(typeof r=="object"&&"r"in r&&"s"in r){const{r:l,s:v,v:b,yParity:f}=r,H=Number(f??b),a=s(H);return new o.Signature(t.hexToBigInt(l),t.hexToBigInt(v)).addRecoveryBit(a)}const c=i.isHex(r)?r:n.toHex(r),x=t.hexToNumber(`0x${c.slice(130)}`),y=s(x);return o.Signature.fromCompact(c.substring(2,130)).addRecoveryBit(y)})().recoverPublicKey(u.substring(2)).toHex(!1)}`}function s(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error("Invalid yParityOrV value")}exports.recoverPublicKey=d;
|
package/dist/index192.js
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { isHex as c } from "./index186.js";
|
|
2
|
+
import { hexToBigInt as n, hexToNumber as a } from "./index183.js";
|
|
3
|
+
import { toHex as i } from "./index151.js";
|
|
4
|
+
async function R({ hash: e, signature: r }) {
|
|
5
|
+
const u = c(e) ? e : i(e), { secp256k1: o } = await import("./index193.js");
|
|
6
|
+
return `0x${(() => {
|
|
7
|
+
if (typeof r == "object" && "r" in r && "s" in r) {
|
|
8
|
+
const { r: y, s: p, v, yParity: x } = r, b = Number(x ?? v), l = s(b);
|
|
9
|
+
return new o.Signature(n(y), n(p)).addRecoveryBit(l);
|
|
10
|
+
}
|
|
11
|
+
const t = c(r) ? r : i(r), f = a(`0x${t.slice(130)}`), m = s(f);
|
|
12
|
+
return o.Signature.fromCompact(t.substring(2, 130)).addRecoveryBit(m);
|
|
13
|
+
})().recoverPublicKey(u.substring(2)).toHex(!1)}`;
|
|
14
|
+
}
|
|
15
|
+
function s(e) {
|
|
16
|
+
if (e === 0 || e === 1)
|
|
17
|
+
return e;
|
|
18
|
+
if (e === 27)
|
|
19
|
+
return 0;
|
|
20
|
+
if (e === 28)
|
|
21
|
+
return 1;
|
|
22
|
+
throw new Error("Invalid yParityOrV value");
|
|
23
|
+
}
|
|
3
24
|
export {
|
|
4
|
-
|
|
25
|
+
R as recoverPublicKey
|
|
5
26
|
};
|
package/dist/index193.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("./index278.cjs"),n=require("./index279.cjs"),C=require("./index227.cjs");/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const k=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),x=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),G=BigInt(1),w=BigInt(2),h=(t,f)=>(t+f/w)/f;function M(t){const f=k,e=BigInt(3),r=BigInt(6),p=BigInt(11),a=BigInt(22),s=BigInt(23),i=BigInt(44),d=BigInt(88),o=t*t*t%f,c=o*o*t%f,g=n.pow2(c,e,f)*c%f,b=n.pow2(g,e,f)*c%f,l=n.pow2(b,w,f)*o%f,B=n.pow2(l,p,f)*l%f,I=n.pow2(B,a,f)*B%f,_=n.pow2(I,i,f)*I%f,P=n.pow2(_,d,f)*_%f,S=n.pow2(P,i,f)*I%f,v=n.pow2(S,e,f)*c%f,E=n.pow2(v,s,f)*B%f,F=n.pow2(E,r,f)*o%f,q=n.pow2(F,w,f);if(!u.eql(u.sqr(q),t))throw new Error("Cannot find square root");return q}const u=n.Field(k,void 0,void 0,{sqrt:M}),m=j.createCurve({a:BigInt(0),b:BigInt(7),Fp:u,n:x,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const f=x,e=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-G*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),p=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=e,s=BigInt("0x100000000000000000000000000000000"),i=h(a*t,f),d=h(-r*t,f);let o=n.mod(t-i*e-d*p,f),c=n.mod(-i*r-d*a,f);const g=o>s,b=c>s;if(g&&(o=f-o),b&&(c=f-c),o>s||c>s)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:g,k1:o,k2neg:b,k2:c}}}},C.sha256);BigInt(0);m.ProjectivePoint;exports.secp256k1=m;
|
package/dist/index193.js
CHANGED
|
@@ -1,16 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return t.type.startsWith("tuple") ? `(${e(t.components, { includeName: n })})${t.type.slice(5)}` : t.type + (n && t.name ? ` ${t.name}` : "");
|
|
1
|
+
import { createCurve as C } from "./index278.js";
|
|
2
|
+
import { Field as G, mod as k, pow2 as t } from "./index279.js";
|
|
3
|
+
import { sha256 as N } from "./index227.js";
|
|
4
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
5
|
+
const q = BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), w = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), j = BigInt(1), _ = BigInt(2), h = (n, f) => (n + f / _) / f;
|
|
6
|
+
function M(n) {
|
|
7
|
+
const f = q, e = BigInt(3), r = BigInt(6), I = BigInt(11), a = BigInt(22), s = BigInt(23), i = BigInt(44), g = BigInt(88), o = n * n * n % f, c = o * o * n % f, d = t(c, e, f) * c % f, B = t(d, e, f) * c % f, m = t(B, _, f) * o % f, b = t(m, I, f) * m % f, p = t(b, a, f) * b % f, x = t(p, i, f) * p % f, P = t(x, g, f) * x % f, v = t(P, i, f) * p % f, E = t(v, e, f) * c % f, F = t(E, s, f) * b % f, S = t(F, r, f) * o % f, u = t(S, _, f);
|
|
8
|
+
if (!l.eql(l.sqr(u), n))
|
|
9
|
+
throw new Error("Cannot find square root");
|
|
10
|
+
return u;
|
|
12
11
|
}
|
|
12
|
+
const l = G(q, void 0, void 0, { sqrt: M }), O = C({
|
|
13
|
+
a: BigInt(0),
|
|
14
|
+
b: BigInt(7),
|
|
15
|
+
Fp: l,
|
|
16
|
+
n: w,
|
|
17
|
+
Gx: BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),
|
|
18
|
+
Gy: BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),
|
|
19
|
+
h: BigInt(1),
|
|
20
|
+
// Cofactor
|
|
21
|
+
lowS: !0,
|
|
22
|
+
// Allow only low-S signatures by default in sign() and verify()
|
|
23
|
+
endo: {
|
|
24
|
+
// Endomorphism, see above
|
|
25
|
+
beta: BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),
|
|
26
|
+
splitScalar: (n) => {
|
|
27
|
+
const f = w, e = BigInt("0x3086d221a7d46bcde86c90e49284eb15"), r = -j * BigInt("0xe4437ed6010e88286f547fa90abfe4c3"), I = BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"), a = e, s = BigInt("0x100000000000000000000000000000000"), i = h(a * n, f), g = h(-r * n, f);
|
|
28
|
+
let o = k(n - i * e - g * I, f), c = k(-i * r - g * a, f);
|
|
29
|
+
const d = o > s, B = c > s;
|
|
30
|
+
if (d && (o = f - o), B && (c = f - c), o > s || c > s)
|
|
31
|
+
throw new Error("splitScalar: Endomorphism failed, k=" + n);
|
|
32
|
+
return { k1neg: d, k1: o, k2neg: B, k2: c };
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}, N);
|
|
36
|
+
BigInt(0);
|
|
37
|
+
O.ProjectivePoint;
|
|
13
38
|
export {
|
|
14
|
-
|
|
15
|
-
e as formatAbiParams
|
|
39
|
+
O as secp256k1
|
|
16
40
|
};
|