@gardenfi/utils 2.5.2 → 2.5.3
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/README.md +9 -0
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +3 -3
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +41 -23
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +17 -109
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +6 -6
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +9 -50
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +13 -16
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +109 -10
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +8 -5
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +6 -14
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +7 -3
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +20 -25
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +8 -4
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +31 -6
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +13 -88
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +7 -125
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +9 -7
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +16 -21
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +73 -17
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +31 -36
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +45 -20
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +14 -11
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +13 -6
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +8 -105
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +17 -3
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +66 -4
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +12 -9
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +14 -2
- package/dist/index126.cjs +1 -2
- package/dist/index126.js +9 -3
- package/dist/index127.cjs +1 -20
- package/dist/index127.js +10 -326
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +26 -13
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +14 -4
- package/dist/index130.cjs +3 -1
- package/dist/index130.js +111 -2
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +51 -7
- package/dist/index132.cjs +1 -3
- package/dist/index132.js +24 -215
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +116 -30
- package/dist/index134.cjs +20 -1
- package/dist/index134.js +326 -21
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +81 -5
- package/dist/index136.cjs +4 -1
- package/dist/index136.js +189 -68
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +18 -5
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +24 -5
- package/dist/index139.cjs +1 -9
- package/dist/index139.js +174 -32
- package/dist/index140.cjs +1 -3
- package/dist/index140.js +11 -109
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +25 -3
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +3 -24
- package/dist/index143.cjs +1 -3
- package/dist/index143.js +89 -451
- package/dist/index144.cjs +1 -2
- package/dist/index144.js +37 -54
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +15 -26
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +2 -34
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +74 -34
- package/dist/index148.cjs +1 -4
- package/dist/index148.js +137 -193
- package/dist/index149.cjs +3 -1
- package/dist/index149.js +449 -6
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +62 -10
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +6 -18
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +68 -26
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +5 -8
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +3 -55
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +13 -44
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +88 -8
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +13 -7
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +44 -15
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +36 -16
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +3 -3
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +7 -21
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +56 -50
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +13 -11
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +8 -161
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +20 -21
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +9 -127
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +14 -37
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +103 -6
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +4 -27
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +6 -191
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +27 -4
- package/dist/index171.cjs +2 -1
- package/dist/index171.js +21 -61
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +10 -3
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +8 -20
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +10 -16
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +11 -23
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +13 -11
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +14 -34
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +8 -3
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +21 -18
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +2 -2
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +6 -27
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +21 -36
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +40 -10
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +16 -24
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +21 -28
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +76 -61
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +44 -9
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +11 -33
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +52 -24
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +3 -24
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +8 -8
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +5 -3
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +5 -14
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +11 -103
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +13 -80
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +13 -5
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +6 -6
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +151 -27
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +35 -39
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +32 -13
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +9 -42
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +68 -5
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +9 -11
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +71 -19
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +19 -78
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +111 -2
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +23 -37
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +50 -111
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +105 -48
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +9 -33
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +2 -9
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +2 -2
- package/dist/index210.cjs +2 -1
- package/dist/index210.js +3 -7
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +13 -6
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +4 -11
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +2 -11
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +32 -14
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +19 -30
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +6 -5
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +5 -7
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +5 -8
- package/dist/index219.cjs +9 -1
- package/dist/index219.js +33 -18
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +3 -32
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +26 -3
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +33 -17
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +35 -10
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +7 -20
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +18 -22
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +27 -5
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +8 -5
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +7 -8
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +150 -93
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +9 -9
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +128 -3
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +27 -18
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +182 -162
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +4 -18
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +3 -11
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +19 -15
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +16 -22
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +34 -30
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +3 -2
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +27 -13
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +26 -12
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +24 -11
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +27 -46
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +27 -11
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +42 -7
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +78 -9
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +2 -14
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +33 -10
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +49 -9
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +6 -24
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +6 -12
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +8 -58
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +32 -24
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +5 -14
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +6 -13
- package/dist/index253.cjs +1 -2
- package/dist/index253.js +3 -24
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +17 -52
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +10 -25
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +5 -13
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +8 -15
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +104 -5
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +3 -14
- package/dist/index26.cjs +1 -16
- package/dist/index26.js +30 -113
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +18 -10
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +17 -16
- package/dist/index262.cjs +1 -2
- package/dist/index262.js +41 -40
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +147 -2
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +103 -5
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +77 -9
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +2 -20
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +6 -8
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +212 -54
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +3 -65
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +1 -1
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +131 -177
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +155 -22
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +9 -42
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +95 -58
- package/dist/index274.cjs +2 -1
- package/dist/index274.js +117 -23
- package/dist/index275.cjs +2 -1
- package/dist/index275.js +36 -11
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +2 -14
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +5 -12
- package/dist/index278.cjs +1 -2
- package/dist/index278.js +10 -18
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +18 -13
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +12 -31
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +8 -11
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +66 -103
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +65 -6
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +178 -216
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +22 -6
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +43 -7
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +75 -25
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +38 -17
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +15 -145
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +13 -3
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +57 -11
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +18 -139
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +13 -156
- package/dist/index292.cjs +2 -1
- package/dist/index292.js +16 -7
- package/dist/index293.cjs +1 -1
- package/dist/index293.js +13 -112
- package/dist/index294.cjs +1 -2
- package/dist/index294.js +11 -134
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +6 -42
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +7 -79
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +27 -2
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +1 -1
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +12 -26
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +698 -68
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +126 -685
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +186 -124
- package/dist/index303.cjs +2 -1
- package/dist/index303.js +63 -198
- package/dist/index304.cjs +1 -2
- package/dist/index304.js +4 -66
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +40 -4
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +7 -40
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +62 -7
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +72 -57
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +4 -78
- package/dist/index31.cjs +16 -1
- package/dist/index31.js +113 -7
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +195 -4
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +67 -193
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +3 -3
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +39 -7
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +45 -31
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +24 -28
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +6 -16
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +13 -33
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +15 -44
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +5 -151
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +12 -34
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +9 -56
- package/dist/index41.cjs +1 -2
- package/dist/index41.js +11 -58
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +11 -13
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +13 -37
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +33 -15
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +55 -8
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +16 -20
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +6 -2
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +8 -45
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +170 -31
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +103 -3
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +3 -9
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +20 -67
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +16 -9
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +10 -28
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +18 -71
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +125 -19
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +60 -110
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +22 -59
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +10 -24
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +19 -39
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +6 -37
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +10 -58
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +28 -162
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +15 -39
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +16 -9
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +7 -36
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +32 -8
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +22 -48
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +21 -88
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +55 -38
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +40 -8
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +36 -5
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +166 -17
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +111 -8
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +30 -13
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +2 -8
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +4 -10
- package/dist/index78.cjs +2 -1
- package/dist/index78.js +58 -45
- package/dist/index79.cjs +2 -1
- package/dist/index79.js +54 -13
- package/dist/index80.cjs +3 -1
- package/dist/index80.js +215 -16
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +13 -13
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +12 -6
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +24 -35
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +28 -9
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +47 -8
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +19 -26
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +11 -10
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +40 -14
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +9 -117
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +7 -81
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +27 -173
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +36 -6
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +35 -12
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +8 -12
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +28 -102
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +22 -75
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +87 -87
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +49 -137
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +22 -68
- package/package.json +1 -1
package/dist/index161.js
CHANGED
|
@@ -1,54 +1,60 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
function
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
1
|
+
import { BaseError as F } from "./index78.js";
|
|
2
|
+
import { BundleFailedError as T } from "./index162.js";
|
|
3
|
+
import { observe as b } from "./index144.js";
|
|
4
|
+
import { poll as C } from "./index145.js";
|
|
5
|
+
import { withResolvers as S } from "./index163.js";
|
|
6
|
+
import { withRetry as E } from "./index164.js";
|
|
7
|
+
import { stringify as B } from "./index146.js";
|
|
8
|
+
import { getCallsStatus as I } from "./index158.js";
|
|
9
|
+
async function q(e, o) {
|
|
10
|
+
const {
|
|
11
|
+
id: i,
|
|
12
|
+
pollingInterval: f = e.pollingInterval,
|
|
13
|
+
status: d = ({ statusCode: r }) => r === 200 || r >= 300,
|
|
14
|
+
retryCount: p = 4,
|
|
15
|
+
retryDelay: w = ({ count: r }) => ~~(1 << r) * 200,
|
|
16
|
+
// exponential backoff
|
|
17
|
+
timeout: n = 6e4,
|
|
18
|
+
throwOnFailure: y = !1
|
|
19
|
+
} = o, v = B(["waitForCallsStatus", e.uid, i]), { promise: h, resolve: g, reject: l } = S();
|
|
20
|
+
let s;
|
|
21
|
+
const u = b(v, { resolve: g, reject: l }, (r) => {
|
|
22
|
+
const m = C(async () => {
|
|
23
|
+
const c = (t) => {
|
|
24
|
+
clearTimeout(s), m(), t(), u();
|
|
25
|
+
};
|
|
26
|
+
try {
|
|
27
|
+
const t = await E(async () => {
|
|
28
|
+
const a = await I(e, { id: i });
|
|
29
|
+
if (y && a.status === "failure")
|
|
30
|
+
throw new T(a);
|
|
31
|
+
return a;
|
|
32
|
+
}, {
|
|
33
|
+
retryCount: p,
|
|
34
|
+
delay: w
|
|
35
|
+
});
|
|
36
|
+
if (!d(t))
|
|
37
|
+
return;
|
|
38
|
+
c(() => r.resolve(t));
|
|
39
|
+
} catch (t) {
|
|
40
|
+
c(() => r.reject(t));
|
|
41
|
+
}
|
|
42
|
+
}, {
|
|
43
|
+
interval: f,
|
|
44
|
+
emitOnBegin: !0
|
|
45
|
+
});
|
|
46
|
+
return m;
|
|
47
|
+
});
|
|
48
|
+
return s = n ? setTimeout(() => {
|
|
49
|
+
u(), clearTimeout(s), l(new j({ id: i }));
|
|
50
|
+
}, n) : void 0, await h;
|
|
40
51
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
nonce: Number(d.nonce),
|
|
46
|
-
r: d.r,
|
|
47
|
-
s: d.s,
|
|
48
|
-
yParity: Number(d.yParity)
|
|
49
|
-
}));
|
|
52
|
+
class j extends F {
|
|
53
|
+
constructor({ id: o }) {
|
|
54
|
+
super(`Timed out while waiting for call bundle with id "${o}" to be confirmed.`, { name: "WaitForCallsStatusTimeoutError" });
|
|
55
|
+
}
|
|
50
56
|
}
|
|
51
57
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
58
|
+
j as WaitForCallsStatusTimeoutError,
|
|
59
|
+
q as waitForCallsStatus
|
|
54
60
|
};
|
package/dist/index162.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index78.cjs");class t extends r.BaseError{constructor(e){super(`Call bundle failed with status: ${e.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=e}}exports.BundleFailedError=t;
|
package/dist/index162.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { BaseError as r } from "./index78.js";
|
|
2
|
+
class u extends r {
|
|
3
|
+
constructor(e) {
|
|
4
|
+
super(`Call bundle failed with status: ${e.statusCode}`, {
|
|
5
|
+
name: "BundleFailedError"
|
|
6
|
+
}), Object.defineProperty(this, "result", {
|
|
7
|
+
enumerable: !0,
|
|
8
|
+
configurable: !0,
|
|
9
|
+
writable: !0,
|
|
10
|
+
value: void 0
|
|
11
|
+
}), this.result = e;
|
|
12
|
+
}
|
|
11
13
|
}
|
|
12
14
|
export {
|
|
13
|
-
|
|
15
|
+
u as BundleFailedError
|
|
14
16
|
};
|
package/dist/index163.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 i(){let e=()=>{},t=()=>{};return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}exports.withResolvers=i;
|
package/dist/index163.js
CHANGED
|
@@ -1,164 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { hexToBytes as S } from "./index154.js";
|
|
9
|
-
import { bytesToHex as g } from "./index155.js";
|
|
10
|
-
import { getArrayComponents as A } from "./index169.js";
|
|
11
|
-
function Y(t, e) {
|
|
12
|
-
const n = typeof e == "string" ? S(e) : e, o = _(n);
|
|
13
|
-
if (p(n) === 0 && t.length > 0)
|
|
14
|
-
throw new a();
|
|
15
|
-
if (p(e) && p(e) < 32)
|
|
16
|
-
throw new C({
|
|
17
|
-
data: typeof e == "string" ? e : g(e),
|
|
18
|
-
params: t,
|
|
19
|
-
size: p(e)
|
|
20
|
-
});
|
|
21
|
-
let i = 0;
|
|
22
|
-
const d = [];
|
|
23
|
-
for (let s = 0; s < t.length; ++s) {
|
|
24
|
-
const r = t[s];
|
|
25
|
-
o.setPosition(i);
|
|
26
|
-
const [f, c] = u(o, r, {
|
|
27
|
-
staticPosition: 0
|
|
28
|
-
});
|
|
29
|
-
i += c, d.push(f);
|
|
30
|
-
}
|
|
31
|
-
return d;
|
|
32
|
-
}
|
|
33
|
-
function u(t, e, { staticPosition: n }) {
|
|
34
|
-
const o = A(e.type);
|
|
35
|
-
if (o) {
|
|
36
|
-
const [i, d] = o;
|
|
37
|
-
return k(t, { ...e, type: d }, { length: i, staticPosition: n });
|
|
38
|
-
}
|
|
39
|
-
if (e.type === "tuple")
|
|
40
|
-
return Z(t, e, { staticPosition: n });
|
|
41
|
-
if (e.type === "address")
|
|
42
|
-
return E(t);
|
|
43
|
-
if (e.type === "bool")
|
|
44
|
-
return H(t);
|
|
45
|
-
if (e.type.startsWith("bytes"))
|
|
46
|
-
return L(t, e, { staticPosition: n });
|
|
47
|
-
if (e.type.startsWith("uint") || e.type.startsWith("int"))
|
|
48
|
-
return U(t, e);
|
|
49
|
-
if (e.type === "string")
|
|
50
|
-
return j(t, { staticPosition: n });
|
|
51
|
-
throw new D(e.type, {
|
|
52
|
-
docsPath: "/docs/contract/decodeAbiParameters"
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
const P = 32, b = 32;
|
|
56
|
-
function E(t) {
|
|
57
|
-
const e = t.readBytes(32);
|
|
58
|
-
return [w(g(W(e, -20))), 32];
|
|
59
|
-
}
|
|
60
|
-
function k(t, e, { length: n, staticPosition: o }) {
|
|
61
|
-
if (!n) {
|
|
62
|
-
const s = y(t.readBytes(b)), r = o + s, f = r + P;
|
|
63
|
-
t.setPosition(r);
|
|
64
|
-
const c = y(t.readBytes(P)), l = h(e);
|
|
65
|
-
let m = 0;
|
|
66
|
-
const v = [];
|
|
67
|
-
for (let B = 0; B < c; ++B) {
|
|
68
|
-
t.setPosition(f + (l ? B * 32 : m));
|
|
69
|
-
const [T, z] = u(t, e, {
|
|
70
|
-
staticPosition: f
|
|
71
|
-
});
|
|
72
|
-
m += z, v.push(T);
|
|
73
|
-
}
|
|
74
|
-
return t.setPosition(o + 32), [v, 32];
|
|
75
|
-
}
|
|
76
|
-
if (h(e)) {
|
|
77
|
-
const s = y(t.readBytes(b)), r = o + s, f = [];
|
|
78
|
-
for (let c = 0; c < n; ++c) {
|
|
79
|
-
t.setPosition(r + c * 32);
|
|
80
|
-
const [l] = u(t, e, {
|
|
81
|
-
staticPosition: r
|
|
82
|
-
});
|
|
83
|
-
f.push(l);
|
|
84
|
-
}
|
|
85
|
-
return t.setPosition(o + 32), [f, 32];
|
|
86
|
-
}
|
|
87
|
-
let i = 0;
|
|
88
|
-
const d = [];
|
|
89
|
-
for (let s = 0; s < n; ++s) {
|
|
90
|
-
const [r, f] = u(t, e, {
|
|
91
|
-
staticPosition: o + i
|
|
92
|
-
});
|
|
93
|
-
i += f, d.push(r);
|
|
94
|
-
}
|
|
95
|
-
return [d, i];
|
|
96
|
-
}
|
|
97
|
-
function H(t) {
|
|
98
|
-
return [I(t.readBytes(32), { size: 32 }), 32];
|
|
99
|
-
}
|
|
100
|
-
function L(t, e, { staticPosition: n }) {
|
|
101
|
-
const [o, i] = e.type.split("bytes");
|
|
102
|
-
if (!i) {
|
|
103
|
-
const s = y(t.readBytes(32));
|
|
104
|
-
t.setPosition(n + s);
|
|
105
|
-
const r = y(t.readBytes(32));
|
|
106
|
-
if (r === 0)
|
|
107
|
-
return t.setPosition(n + 32), ["0x", 32];
|
|
108
|
-
const f = t.readBytes(r);
|
|
109
|
-
return t.setPosition(n + 32), [g(f), 32];
|
|
110
|
-
}
|
|
111
|
-
return [g(t.readBytes(Number.parseInt(i), 32)), 32];
|
|
112
|
-
}
|
|
113
|
-
function U(t, e) {
|
|
114
|
-
const n = e.type.startsWith("int"), o = Number.parseInt(e.type.split("int")[1] || "256"), i = t.readBytes(32);
|
|
115
|
-
return [
|
|
116
|
-
o > 48 ? N(i, { signed: n }) : y(i, { signed: n }),
|
|
117
|
-
32
|
|
118
|
-
];
|
|
119
|
-
}
|
|
120
|
-
function Z(t, e, { staticPosition: n }) {
|
|
121
|
-
const o = e.components.length === 0 || e.components.some(({ name: s }) => !s), i = o ? [] : {};
|
|
122
|
-
let d = 0;
|
|
123
|
-
if (h(e)) {
|
|
124
|
-
const s = y(t.readBytes(b)), r = n + s;
|
|
125
|
-
for (let f = 0; f < e.components.length; ++f) {
|
|
126
|
-
const c = e.components[f];
|
|
127
|
-
t.setPosition(r + d);
|
|
128
|
-
const [l, m] = u(t, c, {
|
|
129
|
-
staticPosition: r
|
|
130
|
-
});
|
|
131
|
-
d += m, i[o ? f : c == null ? void 0 : c.name] = l;
|
|
132
|
-
}
|
|
133
|
-
return t.setPosition(n + 32), [i, 32];
|
|
134
|
-
}
|
|
135
|
-
for (let s = 0; s < e.components.length; ++s) {
|
|
136
|
-
const r = e.components[s], [f, c] = u(t, r, {
|
|
137
|
-
staticPosition: n
|
|
138
|
-
});
|
|
139
|
-
i[o ? s : r == null ? void 0 : r.name] = f, d += c;
|
|
140
|
-
}
|
|
141
|
-
return [i, d];
|
|
142
|
-
}
|
|
143
|
-
function j(t, { staticPosition: e }) {
|
|
144
|
-
const n = y(t.readBytes(32)), o = e + n;
|
|
145
|
-
t.setPosition(o);
|
|
146
|
-
const i = y(t.readBytes(32));
|
|
147
|
-
if (i === 0)
|
|
148
|
-
return t.setPosition(e + 32), ["", 32];
|
|
149
|
-
const d = t.readBytes(i, 32), s = O(x(d));
|
|
150
|
-
return t.setPosition(e + 32), [s, 32];
|
|
151
|
-
}
|
|
152
|
-
function h(t) {
|
|
153
|
-
var o;
|
|
154
|
-
const { type: e } = t;
|
|
155
|
-
if (e === "string" || e === "bytes" || e.endsWith("[]"))
|
|
156
|
-
return !0;
|
|
157
|
-
if (e === "tuple")
|
|
158
|
-
return (o = t.components) == null ? void 0 : o.some(h);
|
|
159
|
-
const n = A(t.type);
|
|
160
|
-
return !!(n && h({ ...t, type: n[1] }));
|
|
1
|
+
function i() {
|
|
2
|
+
let e = () => {
|
|
3
|
+
}, n = () => {
|
|
4
|
+
};
|
|
5
|
+
return { promise: new Promise((r, o) => {
|
|
6
|
+
e = r, n = o;
|
|
7
|
+
}), resolve: e, reject: n };
|
|
161
8
|
}
|
|
162
9
|
export {
|
|
163
|
-
|
|
10
|
+
i as withResolvers
|
|
164
11
|
};
|
package/dist/index164.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index253.cjs");function f(n,{delay:e=100,retryCount:o=2,shouldRetry:c=()=>!0}={}){return new Promise((s,y)=>{const a=async({count:r=0}={})=>{const w=async({error:t})=>{const i=typeof e=="function"?e({count:r,error:t}):e;i&&await u.wait(i),a({count:r+1})};try{const t=await n();s(t)}catch(t){if(r<o&&await c({count:r,error:t}))return w({error:t});y(t)}};a()})}exports.withRetry=f;
|
package/dist/index164.js
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { wait as w } from "./index253.js";
|
|
2
|
+
function p(n, { delay: e = 100, retryCount: o = 2, shouldRetry: c = () => !0 } = {}) {
|
|
3
|
+
return new Promise((s, y) => {
|
|
4
|
+
const a = async ({ count: r = 0 } = {}) => {
|
|
5
|
+
const f = async ({ error: t }) => {
|
|
6
|
+
const i = typeof e == "function" ? e({ count: r, error: t }) : e;
|
|
7
|
+
i && await w(i), a({ count: r + 1 });
|
|
8
|
+
};
|
|
9
|
+
try {
|
|
10
|
+
const t = await n();
|
|
11
|
+
s(t);
|
|
12
|
+
} catch (t) {
|
|
13
|
+
if (r < o && await c({ count: r, error: t }))
|
|
14
|
+
return f({ error: t });
|
|
15
|
+
y(t);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
a();
|
|
19
|
+
});
|
|
20
20
|
}
|
|
21
21
|
export {
|
|
22
|
-
|
|
23
|
-
w as getAddress
|
|
22
|
+
p as withRetry
|
|
24
23
|
};
|
package/dist/index165.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 s=require("./index33.cjs"),u=require("./index166.cjs");async function i(o,{address:t,blockNumber:e,blockTag:r,storageKeys:n}){const a=r??"latest",c=e!==void 0?s.numberToHex(e):void 0,f=await o.request({method:"eth_getProof",params:[t,n,c||a]});return u.formatProof(f)}exports.getProof=i;
|
package/dist/index165.js
CHANGED
|
@@ -1,130 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
assertReadLimit() {
|
|
10
|
-
if (this.recursiveReadCount >= this.recursiveReadLimit)
|
|
11
|
-
throw new n({
|
|
12
|
-
count: this.recursiveReadCount + 1,
|
|
13
|
-
limit: this.recursiveReadLimit
|
|
14
|
-
});
|
|
15
|
-
},
|
|
16
|
-
assertPosition(t) {
|
|
17
|
-
if (t < 0 || t > this.bytes.length - 1)
|
|
18
|
-
throw new e({
|
|
19
|
-
length: this.bytes.length,
|
|
20
|
-
position: t
|
|
21
|
-
});
|
|
22
|
-
},
|
|
23
|
-
decrementPosition(t) {
|
|
24
|
-
if (t < 0)
|
|
25
|
-
throw new o({ offset: t });
|
|
26
|
-
const i = this.position - t;
|
|
27
|
-
this.assertPosition(i), this.position = i;
|
|
28
|
-
},
|
|
29
|
-
getReadCount(t) {
|
|
30
|
-
return this.positionReadCount.get(t || this.position) || 0;
|
|
31
|
-
},
|
|
32
|
-
incrementPosition(t) {
|
|
33
|
-
if (t < 0)
|
|
34
|
-
throw new o({ offset: t });
|
|
35
|
-
const i = this.position + t;
|
|
36
|
-
this.assertPosition(i), this.position = i;
|
|
37
|
-
},
|
|
38
|
-
inspectByte(t) {
|
|
39
|
-
const i = t ?? this.position;
|
|
40
|
-
return this.assertPosition(i), this.bytes[i];
|
|
41
|
-
},
|
|
42
|
-
inspectBytes(t, i) {
|
|
43
|
-
const s = i ?? this.position;
|
|
44
|
-
return this.assertPosition(s + t - 1), this.bytes.subarray(s, s + t);
|
|
45
|
-
},
|
|
46
|
-
inspectUint8(t) {
|
|
47
|
-
const i = t ?? this.position;
|
|
48
|
-
return this.assertPosition(i), this.bytes[i];
|
|
49
|
-
},
|
|
50
|
-
inspectUint16(t) {
|
|
51
|
-
const i = t ?? this.position;
|
|
52
|
-
return this.assertPosition(i + 1), this.dataView.getUint16(i);
|
|
53
|
-
},
|
|
54
|
-
inspectUint24(t) {
|
|
55
|
-
const i = t ?? this.position;
|
|
56
|
-
return this.assertPosition(i + 2), (this.dataView.getUint16(i) << 8) + this.dataView.getUint8(i + 2);
|
|
57
|
-
},
|
|
58
|
-
inspectUint32(t) {
|
|
59
|
-
const i = t ?? this.position;
|
|
60
|
-
return this.assertPosition(i + 3), this.dataView.getUint32(i);
|
|
61
|
-
},
|
|
62
|
-
pushByte(t) {
|
|
63
|
-
this.assertPosition(this.position), this.bytes[this.position] = t, this.position++;
|
|
64
|
-
},
|
|
65
|
-
pushBytes(t) {
|
|
66
|
-
this.assertPosition(this.position + t.length - 1), this.bytes.set(t, this.position), this.position += t.length;
|
|
67
|
-
},
|
|
68
|
-
pushUint8(t) {
|
|
69
|
-
this.assertPosition(this.position), this.bytes[this.position] = t, this.position++;
|
|
70
|
-
},
|
|
71
|
-
pushUint16(t) {
|
|
72
|
-
this.assertPosition(this.position + 1), this.dataView.setUint16(this.position, t), this.position += 2;
|
|
73
|
-
},
|
|
74
|
-
pushUint24(t) {
|
|
75
|
-
this.assertPosition(this.position + 2), this.dataView.setUint16(this.position, t >> 8), this.dataView.setUint8(this.position + 2, t & 255), this.position += 3;
|
|
76
|
-
},
|
|
77
|
-
pushUint32(t) {
|
|
78
|
-
this.assertPosition(this.position + 3), this.dataView.setUint32(this.position, t), this.position += 4;
|
|
79
|
-
},
|
|
80
|
-
readByte() {
|
|
81
|
-
this.assertReadLimit(), this._touch();
|
|
82
|
-
const t = this.inspectByte();
|
|
83
|
-
return this.position++, t;
|
|
84
|
-
},
|
|
85
|
-
readBytes(t, i) {
|
|
86
|
-
this.assertReadLimit(), this._touch();
|
|
87
|
-
const s = this.inspectBytes(t);
|
|
88
|
-
return this.position += i ?? t, s;
|
|
89
|
-
},
|
|
90
|
-
readUint8() {
|
|
91
|
-
this.assertReadLimit(), this._touch();
|
|
92
|
-
const t = this.inspectUint8();
|
|
93
|
-
return this.position += 1, t;
|
|
94
|
-
},
|
|
95
|
-
readUint16() {
|
|
96
|
-
this.assertReadLimit(), this._touch();
|
|
97
|
-
const t = this.inspectUint16();
|
|
98
|
-
return this.position += 2, t;
|
|
99
|
-
},
|
|
100
|
-
readUint24() {
|
|
101
|
-
this.assertReadLimit(), this._touch();
|
|
102
|
-
const t = this.inspectUint24();
|
|
103
|
-
return this.position += 3, t;
|
|
104
|
-
},
|
|
105
|
-
readUint32() {
|
|
106
|
-
this.assertReadLimit(), this._touch();
|
|
107
|
-
const t = this.inspectUint32();
|
|
108
|
-
return this.position += 4, t;
|
|
109
|
-
},
|
|
110
|
-
get remaining() {
|
|
111
|
-
return this.bytes.length - this.position;
|
|
112
|
-
},
|
|
113
|
-
setPosition(t) {
|
|
114
|
-
const i = this.position;
|
|
115
|
-
return this.assertPosition(t), this.position = t, () => this.position = i;
|
|
116
|
-
},
|
|
117
|
-
_touch() {
|
|
118
|
-
if (this.recursiveReadLimit === Number.POSITIVE_INFINITY)
|
|
119
|
-
return;
|
|
120
|
-
const t = this.getReadCount();
|
|
121
|
-
this.positionReadCount.set(this.position, t + 1), t > 0 && this.recursiveReadCount++;
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
function a(t, { recursiveReadLimit: i = 8192 } = {}) {
|
|
125
|
-
const s = Object.create(h);
|
|
126
|
-
return s.bytes = t, s.dataView = new DataView(t.buffer, t.byteOffset, t.byteLength), s.positionReadCount = /* @__PURE__ */ new Map(), s.recursiveReadLimit = i, s;
|
|
1
|
+
import { numberToHex as c } from "./index33.js";
|
|
2
|
+
import { formatProof as s } from "./index166.js";
|
|
3
|
+
async function d(t, { address: e, blockNumber: o, blockTag: r, storageKeys: n }) {
|
|
4
|
+
const f = r ?? "latest", a = o !== void 0 ? c(o) : void 0, m = await t.request({
|
|
5
|
+
method: "eth_getProof",
|
|
6
|
+
params: [e, n, a || f]
|
|
7
|
+
});
|
|
8
|
+
return s(m);
|
|
127
9
|
}
|
|
128
10
|
export {
|
|
129
|
-
|
|
11
|
+
d as getProof
|
|
130
12
|
};
|
package/dist/index166.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index44.cjs");function a(e){return e.map(n=>({...n,value:BigInt(n.value)}))}function r(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?t.hexToNumber(e.nonce):void 0,storageProof:e.storageProof?a(e.storageProof):void 0}}exports.formatProof=r;
|
package/dist/index166.js
CHANGED
|
@@ -1,41 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}) : m(e, f, i, {
|
|
8
|
-
strict: o
|
|
9
|
-
});
|
|
1
|
+
import { hexToNumber as a } from "./index44.js";
|
|
2
|
+
function t(e) {
|
|
3
|
+
return e.map((n) => ({
|
|
4
|
+
...n,
|
|
5
|
+
value: BigInt(n.value)
|
|
6
|
+
}));
|
|
10
7
|
}
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
function c(e, f, i) {
|
|
20
|
-
if (typeof f == "number" && typeof i == "number" && r(e) !== i - f)
|
|
21
|
-
throw new t({
|
|
22
|
-
offset: i,
|
|
23
|
-
position: "end",
|
|
24
|
-
size: r(e)
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function m(e, f, i, { strict: o } = {}) {
|
|
28
|
-
s(e, f);
|
|
29
|
-
const n = e.slice(f, i);
|
|
30
|
-
return o && c(n, f, i), n;
|
|
31
|
-
}
|
|
32
|
-
function u(e, f, i, { strict: o } = {}) {
|
|
33
|
-
s(e, f);
|
|
34
|
-
const n = `0x${e.replace("0x", "").slice((f ?? 0) * 2, (i ?? e.length) * 2)}`;
|
|
35
|
-
return o && c(n, f, i), n;
|
|
8
|
+
function o(e) {
|
|
9
|
+
return {
|
|
10
|
+
...e,
|
|
11
|
+
balance: e.balance ? BigInt(e.balance) : void 0,
|
|
12
|
+
nonce: e.nonce ? a(e.nonce) : void 0,
|
|
13
|
+
storageProof: e.storageProof ? t(e.storageProof) : void 0
|
|
14
|
+
};
|
|
36
15
|
}
|
|
37
16
|
export {
|
|
38
|
-
|
|
39
|
-
m as sliceBytes,
|
|
40
|
-
u as sliceHex
|
|
17
|
+
o as formatProof
|
|
41
18
|
};
|
package/dist/index167.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("./index108.cjs"),R=require("./index130.cjs"),l=require("./index66.cjs"),S=require("./index144.cjs"),$=require("./index163.cjs"),B=require("./index164.cjs"),C=require("./index146.cjs"),D=require("./index101.cjs"),P=require("./index128.cjs"),k=require("./index21.cjs"),W=require("./index147.cjs");async function z(r,T){const{checkReplacement:A=!0,confirmations:o=1,hash:u,onReplaced:F,retryCount:y=6,retryDelay:v=({count:t})=>~~(1<<t)*200,timeout:w=18e4}=T,_=C.stringify(["waitForTransactionReceipt",r.uid,u]),I=(()=>{var t;return T.pollingInterval?T.pollingInterval:(t=r.chain)!=null&&t.experimental_preconfirmationTime?r.chain.experimental_preconfirmationTime:r.pollingInterval})();let i,c,e,a=!1,g,d;const{promise:j,resolve:E,reject:N}=$.withResolvers(),q=w?setTimeout(()=>{d(),g(),N(new R.WaitForTransactionReceiptTimeoutError({hash:u}))},w):void 0;return g=S.observe(_,{onReplaced:F,resolve:E,reject:N},async t=>{if(e=await l.getAction(r,k.getTransactionReceipt,"getTransactionReceipt")({hash:u}).catch(()=>{}),e&&o<=1){clearTimeout(q),t.resolve(e),g();return}d=l.getAction(r,W.watchBlockNumber,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:I,async onBlockNumber(x){const f=b=>{clearTimeout(q),d(),b(),g()};let p=x;if(!a)try{if(e){if(o>1&&(!e.blockNumber||p-e.blockNumber+1n<o))return;f(()=>t.resolve(e));return}if(A&&!i&&(a=!0,await B.withRetry(async()=>{i=await l.getAction(r,P.getTransaction,"getTransaction")({hash:u}),i.blockNumber&&(p=i.blockNumber)},{delay:v,retryCount:y}),a=!1),e=await l.getAction(r,k.getTransactionReceipt,"getTransactionReceipt")({hash:u}),o>1&&(!e.blockNumber||p-e.blockNumber+1n<o))return;f(()=>t.resolve(e))}catch(b){if(b instanceof R.TransactionNotFoundError||b instanceof R.TransactionReceiptNotFoundError){if(!i){a=!1;return}try{c=i,a=!0;const h=await B.withRetry(()=>l.getAction(r,D.getBlock,"getBlock")({blockNumber:p,includeTransactions:!0}),{delay:v,retryCount:y,shouldRetry:({error:s})=>s instanceof O.BlockNotFoundError});a=!1;const n=h.transactions.find(({from:s,nonce:M})=>s===c.from&&M===c.nonce);if(!n||(e=await l.getAction(r,k.getTransactionReceipt,"getTransactionReceipt")({hash:n.hash}),o>1&&(!e.blockNumber||p-e.blockNumber+1n<o)))return;let m="replaced";n.to===c.to&&n.value===c.value&&n.input===c.input?m="repriced":n.from===n.to&&n.value===0n&&(m="cancelled"),f(()=>{var s;(s=t.onReplaced)==null||s.call(t,{reason:m,replacedTransaction:c,transaction:n,transactionReceipt:e}),t.resolve(e)})}catch(h){f(()=>t.reject(h))}}else f(()=>t.reject(b))}}})}),j}exports.waitForTransactionReceipt=z;
|