@gardenfi/utils 2.1.2-beta.11 → 2.1.2-beta.12
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 +20 -21
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +15 -7
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +65 -26
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +11 -10
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +13 -9
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +8 -115
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +10 -80
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +25 -180
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +9 -6
- package/dist/index108.cjs +3 -1
- package/dist/index108.js +110 -13
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +51 -13
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +24 -93
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +113 -73
- package/dist/index112.cjs +20 -1
- package/dist/index112.js +326 -88
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +78 -136
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +30 -69
- package/dist/index115.cjs +4 -1
- package/dist/index115.js +194 -23
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +24 -109
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +181 -6
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +12 -50
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +24 -16
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +3 -11
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +88 -5
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +32 -10
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +15 -3
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +2 -27
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +75 -4
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +138 -6
- package/dist/index127.cjs +3 -1
- package/dist/index127.js +449 -45
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +58 -119
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +5 -6
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +68 -20
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +5 -17
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +21 -40
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +3 -21
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +10 -11
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +47 -6
- package/dist/index136.cjs +2 -1
- package/dist/index136.js +23 -105
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +14 -3
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +27 -4
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +8 -9
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +39 -2
- package/dist/index141.cjs +1 -2
- package/dist/index141.js +9 -3
- package/dist/index142.cjs +1 -20
- package/dist/index142.js +9 -326
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +14 -12
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +93 -4
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +21 -2
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +4 -7
- package/dist/index147.cjs +1 -3
- package/dist/index147.js +6 -215
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +27 -32
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +9 -21
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +8 -5
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +9 -72
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +11 -5
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +13 -5
- package/dist/index154.cjs +1 -9
- package/dist/index154.js +14 -35
- package/dist/index155.cjs +1 -3
- package/dist/index155.js +7 -110
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +22 -3
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +6 -23
- package/dist/index158.cjs +1 -3
- package/dist/index158.js +21 -451
- package/dist/index159.cjs +1 -2
- package/dist/index159.js +39 -53
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +16 -25
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +20 -32
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +79 -34
- package/dist/index163.cjs +1 -4
- package/dist/index163.js +42 -192
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +11 -8
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +51 -17
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +3 -27
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +4 -7
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +5 -7
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +11 -16
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +13 -18
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +13 -21
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +5 -51
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +13 -11
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +92 -150
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +6 -127
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +150 -37
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +35 -6
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +31 -27
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +8 -190
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +8 -8
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +69 -4
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +8 -61
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +72 -3
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +19 -20
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +108 -14
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +23 -23
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +50 -34
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +107 -3
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +9 -19
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +2 -28
- package/dist/index190.cjs +2 -1
- package/dist/index190.js +3 -37
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +13 -10
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +4 -25
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +2 -29
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +30 -64
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +21 -9
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +5 -24
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +5 -24
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +5 -3
- package/dist/index199.cjs +9 -1
- package/dist/index199.js +35 -14
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -2
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +3 -81
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +26 -5
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +32 -22
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +35 -42
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +8 -5
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +12 -11
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +18 -19
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +24 -75
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +9 -2
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +51 -33
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +8 -111
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +7 -49
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +17 -31
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +161 -8
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +127 -6
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +38 -6
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +27 -11
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +190 -9
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +4 -14
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +3 -33
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +8 -8
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +21 -5
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +16 -7
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +11 -8
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +30 -16
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +3 -32
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +27 -20
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +25 -3
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +28 -17
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +6 -10
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +22 -20
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +2 -2
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +37 -22
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +42 -5
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +78 -8
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +2 -105
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +33 -108
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +48 -17
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +6 -17
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +6 -10
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +31 -15
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +5 -23
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +5 -5
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +9 -2
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +3 -13
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +17 -12
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +10 -47
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +5 -11
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +8 -7
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +104 -9
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +112 -13
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +17 -13
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +171 -9
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +3 -3
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +17 -30
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +25 -24
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +13 -12
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +15 -24
- package/dist/index254.cjs +1 -2
- package/dist/index254.js +5 -24
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +12 -12
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +10 -15
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +16 -52
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +3 -16
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +129 -212
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +1 -1
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +109 -24
- package/dist/index261.cjs +2 -1
- package/dist/index261.js +127 -31
- package/dist/index262.cjs +1 -2
- package/dist/index262.js +139 -25
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +10 -2
- package/dist/index264.cjs +2 -1
- package/dist/index264.js +41 -5
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +2 -11
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +5 -19
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +10 -8
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +19 -66
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +8 -65
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +1 -1
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +56 -176
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +63 -20
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +181 -37
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +21 -75
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +22 -20
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +69 -9
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +34 -7
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +16 -12
- package/dist/index278.cjs +1 -2
- package/dist/index278.js +13 -18
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +12 -13
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +2 -2
- package/dist/index280.cjs +2 -1
- package/dist/index280.js +18 -11
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +13 -6
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +12 -7
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +16 -26
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +216 -60
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +5 -69
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +7 -35
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +25 -17
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +33 -2
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +17 -139
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +16 -37
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +57 -142
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +67 -9
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +9 -111
- package/dist/index293.cjs +1 -2
- package/dist/index293.js +18 -133
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +28 -11
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +37 -18
- package/dist/index296.cjs +2 -1
- package/dist/index296.js +67 -2
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +7 -40
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +55 -635
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +71 -200
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +3 -3
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +4 -173
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +192 -16
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +4 -68
- package/dist/index303.cjs +1 -2
- package/dist/index303.js +39 -65
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +68 -4
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +2 -41
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +40 -7
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +635 -55
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +200 -71
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +173 -4
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +10 -25
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +16 -192
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +4 -63
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +102 -42
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +63 -4
- package/dist/index314.cjs +1 -1
- package/dist/index314.js +5 -105
- package/dist/index315.cjs +1 -1
- package/dist/index315.js +45 -5
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +18 -6
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +123 -13
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +60 -15
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +23 -5
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +10 -13
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +20 -10
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +6 -12
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +10 -11
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +32 -13
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +16 -33
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +15 -54
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +7 -16
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +33 -5
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +24 -8
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +20 -169
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +56 -101
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +40 -3
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +37 -21
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +19 -47
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +162 -7
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +110 -30
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +3 -29
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +2 -17
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +4 -34
- package/dist/index55.cjs +2 -1
- package/dist/index55.js +58 -43
- package/dist/index56.cjs +2 -1
- package/dist/index56.js +53 -150
- package/dist/index57.cjs +3 -1
- package/dist/index57.js +211 -31
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +12 -37
- package/dist/index59.cjs +1 -2
- package/dist/index59.js +11 -58
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +24 -32
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +28 -15
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +47 -8
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +20 -2
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +11 -26
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +38 -29
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +9 -9
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +7 -68
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +31 -9
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +36 -28
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +34 -69
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +9 -19
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +29 -110
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +22 -60
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +82 -21
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +47 -37
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +22 -36
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +38 -55
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +17 -162
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +6 -40
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +33 -9
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +8 -35
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +12 -8
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +107 -48
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +8 -85
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +6 -41
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +7 -8
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +21 -6
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +8 -17
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +31 -8
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +1 -1
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +1 -1
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +16 -46
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +73 -13
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +34 -15
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +46 -13
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +14 -6
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +11 -33
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +9 -9
- package/dist/src/lib/digestKey/digestKey.d.ts +4 -2
- package/dist/src/lib/result.d.ts +13 -9
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index2.cjs"),e=require("./index3.cjs"),t=require("./index4.cjs"),r=require("./index5.cjs"),s=require("./index6.cjs"),n=require("./index7.cjs"),c=require("./index8.cjs"),a=require("./index9.cjs"),u=require("./index10.cjs"),p=require("./index11.cjs"),y=require("./index12.cjs"),k=require("./index13.cjs"),l=require("./index14.cjs"),o=require("./index15.cjs"),A=require("./index16.cjs");exports.ApiStatus=i.ApiStatus;exports.Authorization=e.Authorization;exports.Environment=e.Environment;exports.Network=e.Network;exports.add0x=e.add0x;exports.hexToU32Array=e.hexToU32Array;exports.parseJwt=e.parseJwt;exports.sleep=e.sleep;exports.with0x=e.with0x;exports.checkAllowanceAndApprove=t.checkAllowanceAndApprove;exports.waitForTransactionReceipt=t.waitForTransactionReceipt;exports.Err=r.Err;exports.Ok=r.Ok;exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index2.cjs"),e=require("./index3.cjs"),t=require("./index4.cjs"),r=require("./index5.cjs"),s=require("./index6.cjs"),n=require("./index7.cjs"),c=require("./index8.cjs"),a=require("./index9.cjs"),u=require("./index10.cjs"),p=require("./index11.cjs"),y=require("./index12.cjs"),k=require("./index13.cjs"),l=require("./index14.cjs"),o=require("./index15.cjs"),A=require("./index16.cjs");exports.ApiStatus=i.ApiStatus;exports.Authorization=e.Authorization;exports.Environment=e.Environment;exports.Network=e.Network;exports.add0x=e.add0x;exports.hexToU32Array=e.hexToU32Array;exports.parseJwt=e.parseJwt;exports.sleep=e.sleep;exports.with0x=e.with0x;exports.checkAllowanceAndApprove=t.checkAllowanceAndApprove;exports.waitForTransactionReceipt=t.waitForTransactionReceipt;exports.Err=r.Err;exports.Ok=r.Ok;exports.Void=r.Void;exports.DigestKey=s.DigestKey;exports.Url=n.Url;exports.AuthHeaderEnum=c.AuthHeaderEnum;exports.Siwe=a.Siwe;exports.ApiKey=u.ApiKey;exports.Passkey=p.Passkey;exports.PasskeyLogin=y.PasskeyLogin;exports.MemoryStorage=k.MemoryStorage;exports.StoreKeys=l.StoreKeys;exports.fetchBitcoinBlockNumber=o.fetchBitcoinBlockNumber;exports.fetchEVMBlockNumber=o.fetchEVMBlockNumber;exports.EventBroker=A.EventBroker;
|
package/dist/index.js
CHANGED
|
@@ -1,37 +1,36 @@
|
|
|
1
1
|
import { ApiStatus as e } from "./index2.js";
|
|
2
|
-
import { Authorization as p, Environment as m, Network as x, add0x as f, hexToU32Array as i, parseJwt as a, sleep as n, with0x as
|
|
2
|
+
import { Authorization as p, Environment as m, Network as x, add0x as f, hexToU32Array as i, parseJwt as a, sleep as n, with0x as c } from "./index3.js";
|
|
3
3
|
import { checkAllowanceAndApprove as k, waitForTransactionReceipt as A } from "./index4.js";
|
|
4
|
-
import { Err as
|
|
5
|
-
import { DigestKey as
|
|
6
|
-
import { Url as
|
|
7
|
-
import { AuthHeaderEnum as
|
|
8
|
-
import { Siwe as
|
|
9
|
-
import { ApiKey as
|
|
10
|
-
import { Passkey as
|
|
4
|
+
import { Err as y, Ok as l, Void as u } from "./index5.js";
|
|
5
|
+
import { DigestKey as d } from "./index6.js";
|
|
6
|
+
import { Url as B } from "./index7.js";
|
|
7
|
+
import { AuthHeaderEnum as g } from "./index8.js";
|
|
8
|
+
import { Siwe as K } from "./index9.js";
|
|
9
|
+
import { ApiKey as b } from "./index10.js";
|
|
10
|
+
import { Passkey as P } from "./index11.js";
|
|
11
11
|
import { PasskeyLogin as U } from "./index12.js";
|
|
12
12
|
import { MemoryStorage as z } from "./index13.js";
|
|
13
13
|
import { StoreKeys as F } from "./index14.js";
|
|
14
14
|
import { fetchBitcoinBlockNumber as J, fetchEVMBlockNumber as L } from "./index15.js";
|
|
15
|
-
import { EventBroker as
|
|
15
|
+
import { EventBroker as R } from "./index16.js";
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
b as ApiKey,
|
|
18
18
|
e as ApiStatus,
|
|
19
|
-
|
|
19
|
+
g as AuthHeaderEnum,
|
|
20
20
|
p as Authorization,
|
|
21
|
-
|
|
21
|
+
d as DigestKey,
|
|
22
22
|
m as Environment,
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
y as Err,
|
|
24
|
+
R as EventBroker,
|
|
25
25
|
z as MemoryStorage,
|
|
26
26
|
x as Network,
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
l as Ok,
|
|
28
|
+
P as Passkey,
|
|
29
29
|
U as PasskeyLogin,
|
|
30
|
-
|
|
31
|
-
N as Siwe,
|
|
30
|
+
K as Siwe,
|
|
32
31
|
F as StoreKeys,
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
B as Url,
|
|
33
|
+
u as Void,
|
|
35
34
|
f as add0x,
|
|
36
35
|
k as checkAllowanceAndApprove,
|
|
37
36
|
J as fetchBitcoinBlockNumber,
|
|
@@ -40,5 +39,5 @@ export {
|
|
|
40
39
|
a as parseJwt,
|
|
41
40
|
n as sleep,
|
|
42
41
|
A as waitForTransactionReceipt,
|
|
43
|
-
|
|
42
|
+
c as with0x
|
|
44
43
|
};
|
package/dist/index100.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("./index101.cjs"),a=require("./index102.cjs");async function i(g,{filter:t}){const n="strict"in t&&t.strict,e=await t.request({method:"eth_getFilterChanges",params:[t.id]});if(typeof e[0]=="string")return e;const s=e.map(o=>a.formatLog(o));return!("abi"in t)||!t.abi?s:r.parseEventLogs({abi:t.abi,logs:s,strict:n})}exports.getFilterChanges=i;
|
package/dist/index100.js
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
method: "
|
|
6
|
-
params: [
|
|
1
|
+
import { parseEventLogs as a } from "./index101.js";
|
|
2
|
+
import { formatLog as i } from "./index102.js";
|
|
3
|
+
async function m(e, { filter: t }) {
|
|
4
|
+
const n = "strict" in t && t.strict, o = await t.request({
|
|
5
|
+
method: "eth_getFilterChanges",
|
|
6
|
+
params: [t.id]
|
|
7
|
+
});
|
|
8
|
+
if (typeof o[0] == "string")
|
|
9
|
+
return o;
|
|
10
|
+
const s = o.map((r) => i(r));
|
|
11
|
+
return !("abi" in t) || !t.abi ? s : a({
|
|
12
|
+
abi: t.abi,
|
|
13
|
+
logs: s,
|
|
14
|
+
strict: n
|
|
7
15
|
});
|
|
8
16
|
}
|
|
9
17
|
export {
|
|
10
|
-
|
|
18
|
+
m as getFilterChanges
|
|
11
19
|
};
|
package/dist/index101.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 y=require("./index112.cjs"),l=require("./index149.cjs"),A=require("./index209.cjs"),m=require("./index210.cjs"),g=require("./index219.cjs"),b=require("./index128.cjs");function v(o){const{abi:s,args:f,logs:u,strict:a=!0}=o,r=(()=>{if(o.eventName)return Array.isArray(o.eventName)?o.eventName:[o.eventName]})();return u.map(e=>{var t;try{const i=s.find(c=>c.type==="event"&&e.topics[0]===g.toEventSelector(c));if(!i)return null;const n=b.decodeEventLog({...e,abi:[i],strict:a});return r&&!r.includes(n.eventName)||!p({args:n.args,inputs:i.inputs,matchArgs:f})?null:{...n,...e}}catch(i){let n,c;if(i instanceof y.AbiEventSignatureNotFoundError)return null;if(i instanceof y.DecodeLogDataMismatch||i instanceof y.DecodeLogTopicsMismatch){if(a)return null;n=i.abiItem.name,c=(t=i.abiItem.inputs)==null?void 0:t.some(d=>!("name"in d&&d.name))}return{...e,args:c?[]:{},eventName:n}}}).filter(Boolean)}function p(o){const{args:s,inputs:f,matchArgs:u}=o;if(!u)return!0;if(!s)return!1;function a(r,e,t){try{return r.type==="address"?l.isAddressEqual(e,t):r.type==="string"||r.type==="bytes"?m.keccak256(A.toBytes(e))===t:e===t}catch{return!1}}return Array.isArray(s)&&Array.isArray(u)?u.every((r,e)=>{if(r==null)return!0;const t=f[e];return t?(Array.isArray(r)?r:[r]).some(n=>a(t,n,s[e])):!1}):typeof s=="object"&&!Array.isArray(s)&&typeof u=="object"&&!Array.isArray(u)?Object.entries(u).every(([r,e])=>{if(e==null)return!0;const t=f.find(n=>n.name===r);return t?(Array.isArray(e)?e:[e]).some(n=>a(t,n,s[r])):!1}):!1}exports.parseEventLogs=v;
|
package/dist/index101.js
CHANGED
|
@@ -1,29 +1,68 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
import { AbiEventSignatureNotFoundError as y, DecodeLogDataMismatch as l, DecodeLogTopicsMismatch as d } from "./index112.js";
|
|
2
|
+
import { isAddressEqual as A } from "./index149.js";
|
|
3
|
+
import { toBytes as p } from "./index209.js";
|
|
4
|
+
import { keccak256 as g } from "./index210.js";
|
|
5
|
+
import { toEventSelector as b } from "./index219.js";
|
|
6
|
+
import { decodeEventLog as v } from "./index128.js";
|
|
7
|
+
function q(u) {
|
|
8
|
+
const { abi: s, args: c, logs: o, strict: a = !0 } = u, e = (() => {
|
|
9
|
+
if (u.eventName)
|
|
10
|
+
return Array.isArray(u.eventName) ? u.eventName : [u.eventName];
|
|
11
|
+
})();
|
|
12
|
+
return o.map((r) => {
|
|
13
|
+
var t;
|
|
14
|
+
try {
|
|
15
|
+
const i = s.find((f) => f.type === "event" && r.topics[0] === b(f));
|
|
16
|
+
if (!i)
|
|
17
|
+
return null;
|
|
18
|
+
const n = v({
|
|
19
|
+
...r,
|
|
20
|
+
abi: [i],
|
|
21
|
+
strict: a
|
|
22
|
+
});
|
|
23
|
+
return e && !e.includes(n.eventName) || !N({
|
|
24
|
+
args: n.args,
|
|
25
|
+
inputs: i.inputs,
|
|
26
|
+
matchArgs: c
|
|
27
|
+
}) ? null : { ...n, ...r };
|
|
28
|
+
} catch (i) {
|
|
29
|
+
let n, f;
|
|
30
|
+
if (i instanceof y)
|
|
31
|
+
return null;
|
|
32
|
+
if (i instanceof l || i instanceof d) {
|
|
33
|
+
if (a)
|
|
34
|
+
return null;
|
|
35
|
+
n = i.abiItem.name, f = (t = i.abiItem.inputs) == null ? void 0 : t.some((m) => !("name" in m && m.name));
|
|
36
|
+
}
|
|
37
|
+
return { ...r, args: f ? [] : {}, eventName: n };
|
|
38
|
+
}
|
|
39
|
+
}).filter(Boolean);
|
|
40
|
+
}
|
|
41
|
+
function N(u) {
|
|
42
|
+
const { args: s, inputs: c, matchArgs: o } = u;
|
|
43
|
+
if (!o)
|
|
44
|
+
return !0;
|
|
45
|
+
if (!s)
|
|
46
|
+
return !1;
|
|
47
|
+
function a(e, r, t) {
|
|
48
|
+
try {
|
|
49
|
+
return e.type === "address" ? A(r, t) : e.type === "string" || e.type === "bytes" ? g(p(r)) === t : r === t;
|
|
50
|
+
} catch {
|
|
51
|
+
return !1;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return Array.isArray(s) && Array.isArray(o) ? o.every((e, r) => {
|
|
55
|
+
if (e == null)
|
|
56
|
+
return !0;
|
|
57
|
+
const t = c[r];
|
|
58
|
+
return t ? (Array.isArray(e) ? e : [e]).some((n) => a(t, n, s[r])) : !1;
|
|
59
|
+
}) : typeof s == "object" && !Array.isArray(s) && typeof o == "object" && !Array.isArray(o) ? Object.entries(o).every(([e, r]) => {
|
|
60
|
+
if (r == null)
|
|
61
|
+
return !0;
|
|
62
|
+
const t = c.find((n) => n.name === e);
|
|
63
|
+
return t ? (Array.isArray(r) ? r : [r]).some((n) => a(t, n, s[e])) : !1;
|
|
64
|
+
}) : !1;
|
|
26
65
|
}
|
|
27
66
|
export {
|
|
28
|
-
|
|
67
|
+
q as parseEventLogs
|
|
29
68
|
};
|
package/dist/index102.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(n,{args:a,eventName:t}={}){return{...n,blockHash:n.blockHash?n.blockHash:null,blockNumber:n.blockNumber?BigInt(n.blockNumber):null,logIndex:n.logIndex?Number(n.logIndex):null,transactionHash:n.transactionHash?n.transactionHash:null,transactionIndex:n.transactionIndex?Number(n.transactionIndex):null,...t?{args:a,eventName:t}:{}}}exports.formatLog=r;
|
package/dist/index102.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
n ?
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
function r(n, { args: t, eventName: a } = {}) {
|
|
2
|
+
return {
|
|
3
|
+
...n,
|
|
4
|
+
blockHash: n.blockHash ? n.blockHash : null,
|
|
5
|
+
blockNumber: n.blockNumber ? BigInt(n.blockNumber) : null,
|
|
6
|
+
logIndex: n.logIndex ? Number(n.logIndex) : null,
|
|
7
|
+
transactionHash: n.transactionHash ? n.transactionHash : null,
|
|
8
|
+
transactionIndex: n.transactionIndex ? Number(n.transactionIndex) : null,
|
|
9
|
+
...a ? { args: t, eventName: a } : {}
|
|
10
|
+
};
|
|
10
11
|
}
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
+
r as formatLog
|
|
13
14
|
};
|
package/dist/index103.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("./index101.cjs"),a=require("./index102.cjs");async function g(n,{filter:t}){const o=t.strict??!1,e=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(s=>a.formatLog(s));return t.abi?r.parseEventLogs({abi:t.abi,logs:e,strict:o}):e}exports.getFilterLogs=g;
|
package/dist/index103.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
async function
|
|
4
|
-
const
|
|
5
|
-
method: "
|
|
6
|
-
params: [
|
|
7
|
-
}
|
|
8
|
-
return
|
|
1
|
+
import { parseEventLogs as a } from "./index101.js";
|
|
2
|
+
import { formatLog as e } from "./index102.js";
|
|
3
|
+
async function c(g, { filter: t }) {
|
|
4
|
+
const s = t.strict ?? !1, o = (await t.request({
|
|
5
|
+
method: "eth_getFilterLogs",
|
|
6
|
+
params: [t.id]
|
|
7
|
+
})).map((r) => e(r));
|
|
8
|
+
return t.abi ? a({
|
|
9
|
+
abi: t.abi,
|
|
10
|
+
logs: o,
|
|
11
|
+
strict: s
|
|
12
|
+
}) : o;
|
|
9
13
|
}
|
|
10
14
|
export {
|
|
11
|
-
|
|
15
|
+
c as getFilterLogs
|
|
12
16
|
};
|
package/dist/index104.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("./index30.cjs");async function d(t,{address:a,blockNumber:e,blockTag:n="latest",slot:o}){const r=e!==void 0?u.numberToHex(e):void 0;return await t.request({method:"eth_getStorageAt",params:[a,o,r||n]})}exports.getStorageAt=d;
|
package/dist/index104.js
CHANGED
|
@@ -1,118 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { getContractError as E } from "./index230.js";
|
|
9
|
-
import { getAction as T } from "./index50.js";
|
|
10
|
-
import { readContract as Z } from "./index54.js";
|
|
11
|
-
async function W(n, w) {
|
|
12
|
-
var A;
|
|
13
|
-
const { allowFailure: u = !0, batchSize: F, blockNumber: b, blockTag: j, multicallAddress: y, stateOverride: N } = w, h = w.contracts, p = F ?? (typeof ((A = n.batch) == null ? void 0 : A.multicall) == "object" && n.batch.multicall.batchSize || 1024);
|
|
14
|
-
let d = y;
|
|
15
|
-
if (!d) {
|
|
16
|
-
if (!n.chain)
|
|
17
|
-
throw new Error("client chain not configured. multicallAddress is required.");
|
|
18
|
-
d = O({
|
|
19
|
-
blockNumber: b,
|
|
20
|
-
chain: n.chain,
|
|
21
|
-
contract: "multicall3"
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
const e = [[]];
|
|
25
|
-
let a = 0, f = 0;
|
|
26
|
-
for (let t = 0; t < h.length; t++) {
|
|
27
|
-
const { abi: o, address: s, args: r, functionName: i } = h[t];
|
|
28
|
-
try {
|
|
29
|
-
const c = B({ abi: o, args: r, functionName: i });
|
|
30
|
-
f += (c.length - 2) / 2, // Check if batching is enabled.
|
|
31
|
-
p > 0 && // Check if the current size of the batch exceeds the size limit.
|
|
32
|
-
f > p && // Check if the current chunk is not already empty.
|
|
33
|
-
e[a].length > 0 && (a++, f = (c.length - 2) / 2, e[a] = []), e[a] = [
|
|
34
|
-
...e[a],
|
|
35
|
-
{
|
|
36
|
-
allowFailure: !0,
|
|
37
|
-
callData: c,
|
|
38
|
-
target: s
|
|
39
|
-
}
|
|
40
|
-
];
|
|
41
|
-
} catch (c) {
|
|
42
|
-
const g = E(c, {
|
|
43
|
-
abi: o,
|
|
44
|
-
address: s,
|
|
45
|
-
args: r,
|
|
46
|
-
docsPath: "/docs/contract/multicall",
|
|
47
|
-
functionName: i
|
|
48
|
-
});
|
|
49
|
-
if (!u)
|
|
50
|
-
throw g;
|
|
51
|
-
e[a] = [
|
|
52
|
-
...e[a],
|
|
53
|
-
{
|
|
54
|
-
allowFailure: !0,
|
|
55
|
-
callData: "0x",
|
|
56
|
-
target: s
|
|
57
|
-
}
|
|
58
|
-
];
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
const C = await Promise.allSettled(e.map((t) => T(n, Z, "readContract")({
|
|
62
|
-
abi: x,
|
|
63
|
-
address: d,
|
|
64
|
-
args: [t],
|
|
65
|
-
blockNumber: b,
|
|
66
|
-
blockTag: j,
|
|
67
|
-
functionName: "aggregate3",
|
|
68
|
-
stateOverride: N
|
|
69
|
-
}))), l = [];
|
|
70
|
-
for (let t = 0; t < C.length; t++) {
|
|
71
|
-
const o = C[t];
|
|
72
|
-
if (o.status === "rejected") {
|
|
73
|
-
if (!u)
|
|
74
|
-
throw o.reason;
|
|
75
|
-
for (let r = 0; r < e[t].length; r++)
|
|
76
|
-
l.push({
|
|
77
|
-
status: "failure",
|
|
78
|
-
error: o.reason,
|
|
79
|
-
result: void 0
|
|
80
|
-
});
|
|
81
|
-
continue;
|
|
82
|
-
}
|
|
83
|
-
const s = o.value;
|
|
84
|
-
for (let r = 0; r < s.length; r++) {
|
|
85
|
-
const { returnData: i, success: c } = s[r], { callData: g } = e[t][r], { abi: D, address: R, functionName: S, args: k } = h[l.length];
|
|
86
|
-
try {
|
|
87
|
-
if (g === "0x")
|
|
88
|
-
throw new P();
|
|
89
|
-
if (!c)
|
|
90
|
-
throw new v({ data: i });
|
|
91
|
-
const m = q({
|
|
92
|
-
abi: D,
|
|
93
|
-
args: k,
|
|
94
|
-
data: i,
|
|
95
|
-
functionName: S
|
|
96
|
-
});
|
|
97
|
-
l.push(u ? { result: m, status: "success" } : m);
|
|
98
|
-
} catch (m) {
|
|
99
|
-
const z = E(m, {
|
|
100
|
-
abi: D,
|
|
101
|
-
address: R,
|
|
102
|
-
args: k,
|
|
103
|
-
docsPath: "/docs/contract/multicall",
|
|
104
|
-
functionName: S
|
|
105
|
-
});
|
|
106
|
-
if (!u)
|
|
107
|
-
throw z;
|
|
108
|
-
l.push({ error: z, result: void 0, status: "failure" });
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
if (l.length !== h.length)
|
|
113
|
-
throw new _("multicall results mismatch");
|
|
114
|
-
return l;
|
|
1
|
+
import { numberToHex as d } from "./index30.js";
|
|
2
|
+
async function i(e, { address: a, blockNumber: t, blockTag: n = "latest", slot: o }) {
|
|
3
|
+
const r = t !== void 0 ? d(t) : void 0;
|
|
4
|
+
return await e.request({
|
|
5
|
+
method: "eth_getStorageAt",
|
|
6
|
+
params: [a, o, r || n]
|
|
7
|
+
});
|
|
115
8
|
}
|
|
116
9
|
export {
|
|
117
|
-
|
|
10
|
+
i as getStorageAt
|
|
118
11
|
};
|
package/dist/index105.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("./index43.cjs"),i=require("./index88.cjs"),g=require("./index106.cjs");async function b(r,{hash:n,transactionReceipt:e}){const[c,o]=await Promise.all([u.getAction(r,i.getBlockNumber,"getBlockNumber")({}),n?u.getAction(r,g.getTransaction,"getTransaction")({hash:n}):void 0]),t=(e==null?void 0:e.blockNumber)||(o==null?void 0:o.blockNumber);return t?c-t+1n:0n}exports.getTransactionConfirmations=b;
|
package/dist/index105.js
CHANGED
|
@@ -1,83 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import { getNodeError as I } from "./index251.js";
|
|
11
|
-
import { formatBlock as L } from "./index171.js";
|
|
12
|
-
import { formatLog as V } from "./index173.js";
|
|
13
|
-
import { formatTransactionRequest as Z } from "./index197.js";
|
|
14
|
-
import { serializeStateOverride as _ } from "./index243.js";
|
|
15
|
-
import { assertRequest as j } from "./index206.js";
|
|
16
|
-
async function ar(w, x) {
|
|
17
|
-
const { blockNumber: p, blockTag: N = "latest", blocks: b, returnFullTransactions: O, traceTransfers: h, validation: E } = x;
|
|
18
|
-
try {
|
|
19
|
-
const a = [];
|
|
20
|
-
for (const t of b) {
|
|
21
|
-
const d = t.blockOverrides ? B(t.blockOverrides) : void 0, r = t.calls.map((n) => {
|
|
22
|
-
const o = n, e = o.account ? C(o.account) : void 0, i = {
|
|
23
|
-
...o,
|
|
24
|
-
data: o.abi ? A(o) : o.data,
|
|
25
|
-
from: o.from ?? (e == null ? void 0 : e.address)
|
|
26
|
-
};
|
|
27
|
-
return j(i), Z(i);
|
|
28
|
-
}), f = t.stateOverrides ? _(t.stateOverrides) : void 0;
|
|
29
|
-
a.push({
|
|
30
|
-
blockOverrides: d,
|
|
31
|
-
calls: r,
|
|
32
|
-
stateOverrides: f
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
const c = (p ? S(p) : void 0) || N;
|
|
36
|
-
return (await w.request({
|
|
37
|
-
method: "eth_simulateV1",
|
|
38
|
-
params: [
|
|
39
|
-
{ blockStateCalls: a, returnFullTransactions: O, traceTransfers: h, validation: E },
|
|
40
|
-
c
|
|
41
|
-
]
|
|
42
|
-
})).map((t, d) => ({
|
|
43
|
-
...L(t),
|
|
44
|
-
calls: t.calls.map((r, f) => {
|
|
45
|
-
var k, g;
|
|
46
|
-
const { abi: n, args: o, functionName: e, to: i } = b[d].calls[f], l = ((k = r.error) == null ? void 0 : k.data) ?? r.returnData, R = BigInt(r.gasUsed), T = (g = r.logs) == null ? void 0 : g.map((s) => V(s)), m = r.status === "0x1" ? "success" : "failure", q = n && m === "success" && l !== "0x" ? y({
|
|
47
|
-
abi: n,
|
|
48
|
-
data: l,
|
|
49
|
-
functionName: e
|
|
50
|
-
}) : null, D = (() => {
|
|
51
|
-
var v;
|
|
52
|
-
if (m === "success")
|
|
53
|
-
return;
|
|
54
|
-
let s;
|
|
55
|
-
if (((v = r.error) == null ? void 0 : v.data) === "0x" ? s = new F() : r.error && (s = new H(r.error)), !!s)
|
|
56
|
-
return z(s, {
|
|
57
|
-
abi: n ?? [],
|
|
58
|
-
address: i,
|
|
59
|
-
args: o,
|
|
60
|
-
functionName: e ?? "<unknown>"
|
|
61
|
-
});
|
|
62
|
-
})();
|
|
63
|
-
return {
|
|
64
|
-
data: l,
|
|
65
|
-
gasUsed: R,
|
|
66
|
-
logs: T,
|
|
67
|
-
status: m,
|
|
68
|
-
...m === "success" ? {
|
|
69
|
-
result: q
|
|
70
|
-
} : {
|
|
71
|
-
error: D
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
})
|
|
75
|
-
}));
|
|
76
|
-
} catch (a) {
|
|
77
|
-
const u = a, c = I(u, {});
|
|
78
|
-
throw c instanceof U ? u : c;
|
|
79
|
-
}
|
|
1
|
+
import { getAction as b } from "./index43.js";
|
|
2
|
+
import { getBlockNumber as t } from "./index88.js";
|
|
3
|
+
import { getTransaction as f } from "./index106.js";
|
|
4
|
+
async function N(m, { hash: n, transactionReceipt: o }) {
|
|
5
|
+
const [e, r] = await Promise.all([
|
|
6
|
+
b(m, t, "getBlockNumber")({}),
|
|
7
|
+
n ? b(m, f, "getTransaction")({ hash: n }) : void 0
|
|
8
|
+
]), u = (o == null ? void 0 : o.blockNumber) || (r == null ? void 0 : r.blockNumber);
|
|
9
|
+
return u ? e - u + 1n : 0n;
|
|
80
10
|
}
|
|
81
11
|
export {
|
|
82
|
-
|
|
12
|
+
N as getTransactionConfirmations
|
|
83
13
|
};
|
package/dist/index106.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 f=require("./index108.cjs"),s=require("./index30.cjs"),g=require("./index109.cjs");async function l(t,{blockHash:a,blockNumber:n,blockTag:T,hash:r,index:o}){var c,d,m;const u=T||"latest",i=n!==void 0?s.numberToHex(n):void 0;let e=null;if(r?e=await t.request({method:"eth_getTransactionByHash",params:[r]},{dedupe:!0}):a?e=await t.request({method:"eth_getTransactionByBlockHashAndIndex",params:[a,s.numberToHex(o)]},{dedupe:!0}):e=await t.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[i||u,s.numberToHex(o)]},{dedupe:!!i}),!e)throw new f.TransactionNotFoundError({blockHash:a,blockNumber:n,blockTag:u,hash:r,index:o});return(((m=(d=(c=t.chain)==null?void 0:c.formatters)==null?void 0:d.transaction)==null?void 0:m.format)||g.formatTransaction)(e)}exports.getTransaction=l;
|