@gardenfi/utils 2.1.2-beta.11 → 2.1.2-beta.13
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 +12 -7
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +109 -26
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +8 -10
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +6 -9
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +6 -114
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +21 -80
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +8 -181
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +31 -6
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +13 -13
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +7 -13
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +9 -93
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +16 -75
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +72 -87
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +34 -137
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +45 -68
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +14 -23
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +13 -109
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +9 -6
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +16 -50
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +64 -15
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +11 -10
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +13 -5
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +8 -10
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +10 -3
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +25 -25
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +9 -4
- package/dist/index126.cjs +3 -1
- package/dist/index126.js +110 -6
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +51 -47
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +24 -123
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +115 -7
- package/dist/index130.cjs +20 -1
- package/dist/index130.js +323 -18
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +80 -17
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +30 -40
- package/dist/index133.cjs +4 -1
- package/dist/index133.js +194 -21
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +24 -11
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +181 -6
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +11 -105
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +25 -3
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +3 -4
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +89 -9
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +33 -2
- package/dist/index141.cjs +1 -2
- package/dist/index141.js +16 -3
- package/dist/index142.cjs +1 -20
- package/dist/index142.js +2 -327
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +75 -13
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +138 -4
- package/dist/index145.cjs +3 -1
- package/dist/index145.js +452 -2
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +61 -6
- package/dist/index147.cjs +1 -3
- package/dist/index147.js +6 -215
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +70 -32
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +5 -21
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +3 -5
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +10 -73
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +47 -5
- package/dist/index153.cjs +2 -1
- package/dist/index153.js +24 -5
- package/dist/index154.cjs +1 -9
- package/dist/index154.js +13 -35
- package/dist/index155.cjs +1 -3
- package/dist/index155.js +26 -110
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +8 -3
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +35 -20
- package/dist/index158.cjs +1 -3
- package/dist/index158.js +8 -451
- package/dist/index159.cjs +1 -2
- package/dist/index159.js +9 -54
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +14 -25
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +92 -32
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +20 -35
- package/dist/index163.cjs +1 -4
- package/dist/index163.js +4 -194
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +6 -8
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +26 -18
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +9 -27
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +8 -8
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +10 -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 +14 -21
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +7 -51
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +21 -11
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +6 -161
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +21 -127
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +39 -37
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +17 -6
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +21 -27
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +74 -185
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +8 -8
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +45 -4
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +10 -61
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +53 -3
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +3 -20
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +5 -16
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +5 -23
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +11 -34
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +14 -3
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +13 -18
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +6 -27
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +151 -36
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +35 -10
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +30 -24
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +8 -27
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +66 -63
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +9 -9
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +70 -23
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +19 -24
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +110 -3
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +23 -14
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -2
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +49 -79
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +106 -5
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +9 -24
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +2 -43
- package/dist/index204.cjs +2 -1
- package/dist/index204.js +3 -6
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +13 -11
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +4 -19
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +2 -79
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +32 -2
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +20 -36
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +5 -111
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +5 -49
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +5 -32
- package/dist/index213.cjs +9 -1
- package/dist/index213.js +35 -8
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +3 -7
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +26 -6
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +33 -11
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +34 -9
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +7 -12
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +17 -31
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +28 -5
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +8 -7
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +7 -8
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +18 -20
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +160 -30
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +127 -20
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +38 -3
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +27 -17
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +191 -10
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +4 -22
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +2 -2
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +3 -23
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +20 -5
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +16 -8
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +32 -102
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +3 -113
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +26 -17
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +24 -16
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +28 -10
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +23 -16
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +41 -21
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +5 -5
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +79 -2
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +2 -14
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +37 -12
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +45 -43
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +6 -11
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +6 -7
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +32 -9
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +5 -14
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +8 -14
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +3 -9
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +2 -2
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +17 -30
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +10 -24
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +5 -12
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +8 -24
- package/dist/index254.cjs +1 -2
- package/dist/index254.js +101 -21
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +112 -13
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +18 -15
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +16 -51
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +27 -15
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +36 -221
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +1 -1
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +15 -27
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +221 -36
- package/dist/index262.cjs +1 -2
- package/dist/index262.js +3 -41
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +141 -2
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +155 -5
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +9 -10
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +110 -16
- package/dist/index267.cjs +2 -1
- package/dist/index267.js +134 -8
- package/dist/index268.cjs +2 -1
- package/dist/index268.js +41 -66
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +2 -66
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +1 -1
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +5 -186
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +8 -20
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +17 -40
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +8 -76
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +66 -40
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +64 -15
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +185 -12
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +21 -11
- package/dist/index278.cjs +1 -2
- package/dist/index278.js +42 -18
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +75 -12
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +2 -2
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +40 -11
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +16 -6
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +14 -7
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +11 -25
- package/dist/index284.cjs +2 -1
- package/dist/index284.js +18 -67
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +12 -69
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +11 -34
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +6 -18
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +7 -4
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +23 -137
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +3 -3
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +34 -155
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +18 -9
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +62 -105
- package/dist/index293.cjs +1 -2
- package/dist/index293.js +60 -127
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +17 -10
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +2 -20
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +41 -2
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +641 -39
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +197 -633
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +167 -201
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +2 -2
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +10 -171
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +18 -17
- package/dist/index302.cjs +2 -1
- package/dist/index302.js +66 -68
- package/dist/index303.cjs +1 -2
- package/dist/index303.js +4 -66
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +40 -4
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +7 -40
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +62 -7
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +72 -57
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +4 -78
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +195 -4
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +67 -193
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +3 -3
- package/dist/index314.cjs +1 -1
- package/dist/index314.js +3 -3
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +1 -1
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +1 -1
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +3 -3
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +3 -3
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +2 -2
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +1 -1
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +2 -2
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +12 -12
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +3 -3
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +1 -1
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +19 -47
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +16 -7
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +9 -30
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +18 -29
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +123 -16
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +57 -30
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +22 -43
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +10 -151
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +18 -33
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +6 -38
- package/dist/index59.cjs +1 -2
- package/dist/index59.js +10 -59
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +32 -32
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +16 -15
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +16 -8
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +8 -2
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +33 -26
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +23 -30
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +21 -8
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +56 -66
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +38 -7
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +36 -27
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +158 -67
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +110 -18
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +2 -111
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +4 -61
- package/dist/index74.cjs +2 -1
- package/dist/index74.js +58 -23
- package/dist/index75.cjs +2 -1
- package/dist/index75.js +51 -37
- package/dist/index76.cjs +3 -1
- package/dist/index76.js +213 -35
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +13 -58
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +11 -161
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +24 -40
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +28 -9
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +47 -36
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +19 -9
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +10 -49
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +34 -79
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +9 -41
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +7 -8
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +30 -5
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +36 -17
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +36 -8
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +9 -13
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +29 -7
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +22 -9
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +81 -42
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +50 -13
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +23 -16
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +41 -13
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +17 -6
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +5 -34
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +8 -8
- 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 u=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index217.cjs"),i=require("./index133.cjs"),u=require("./index134.cjs");function a(e,{docsPath:o,...r}){const n=(()=>{const t=u.getNodeError(e,r);return t instanceof i.UnknownNodeError?e:t})();return new s.EstimateGasExecutionError(n,{docsPath:o,...r})}exports.getEstimateGasError=a;
|
package/dist/index100.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { EstimateGasExecutionError as i } from "./index217.js";
|
|
2
|
+
import { UnknownNodeError as m } from "./index133.js";
|
|
3
|
+
import { getNodeError as s } from "./index134.js";
|
|
4
|
+
function a(r, { docsPath: e, ...o }) {
|
|
5
|
+
const n = (() => {
|
|
6
|
+
const t = s(r, o);
|
|
7
|
+
return t instanceof m ? r : t;
|
|
8
|
+
})();
|
|
9
|
+
return new i(n, {
|
|
10
|
+
docsPath: e,
|
|
11
|
+
...o
|
|
7
12
|
});
|
|
8
13
|
}
|
|
9
14
|
export {
|
|
10
|
-
|
|
15
|
+
a as getEstimateGasError
|
|
11
16
|
};
|
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 k=require("./index48.cjs"),h=require("./index94.cjs"),x=require("./index93.cjs"),I=require("./index97.cjs"),C=require("./index125.cjs"),q=require("./index95.cjs"),A=require("./index167.cjs"),H=require("./index168.cjs"),B=require("./index169.cjs"),V=require("./index170.cjs"),p=require("./index63.cjs"),_=require("./index82.cjs"),S=require("./index171.cjs"),E=require("./index109.cjs"),w=["blobVersionedHashes","chainId","fees","gas","nonce","type"],b=new Map;async function M(n,a){const{account:l=n.account,blobs:c,chain:d,gas:G,kzg:m,nonce:T,nonceManager:P,parameters:o=w,type:F}=a,i=l&&k.parseAccount(l),e={...a,...i?{from:i==null?void 0:i.address}:{}};let u;async function y(){return u||(u=await p.getAction(n,I.getBlock,"getBlock")({blockTag:"latest"}),u)}let f;async function g(){return f||(d?d.id:typeof a.chainId<"u"?a.chainId:(f=await p.getAction(n,E.getChainId,"getChainId")({}),f))}if(o.includes("nonce")&&typeof T>"u"&&i)if(P){const t=await g();e.nonce=await P.consume({address:i.address,chainId:t,client:n})}else e.nonce=await p.getAction(n,C.getTransactionCount,"getTransactionCount")({address:i.address,blockTag:"pending"});if((o.includes("blobVersionedHashes")||o.includes("sidecars"))&&c&&m){const t=A.blobsToCommitments({blobs:c,kzg:m});if(o.includes("blobVersionedHashes")){const s=B.commitmentsToVersionedHashes({commitments:t,to:"hex"});e.blobVersionedHashes=s}if(o.includes("sidecars")){const s=H.blobsToProofs({blobs:c,commitments:t,kzg:m}),r=V.toBlobSidecars({blobs:c,commitments:t,proofs:s,to:"hex"});e.sidecars=r}}if(o.includes("chainId")&&(e.chainId=await g()),(o.includes("fees")||o.includes("type"))&&typeof F>"u")try{e.type=S.getTransactionType(e)}catch{let t=b.get(n.uid);if(typeof t>"u"){const s=await y();t=typeof(s==null?void 0:s.baseFeePerGas)=="bigint",b.set(n.uid,t)}e.type=t?"eip1559":"legacy"}if(o.includes("fees"))if(e.type!=="legacy"&&e.type!=="eip2930"){if(typeof e.maxFeePerGas>"u"||typeof e.maxPriorityFeePerGas>"u"){const t=await y(),{maxFeePerGas:s,maxPriorityFeePerGas:r}=await h.internal_estimateFeesPerGas(n,{block:t,chain:d,request:e});if(typeof a.maxPriorityFeePerGas>"u"&&a.maxFeePerGas&&a.maxFeePerGas<r)throw new q.MaxFeePerGasTooLowError({maxPriorityFeePerGas:r});e.maxPriorityFeePerGas=r,e.maxFeePerGas=s}}else{if(typeof a.maxFeePerGas<"u"||typeof a.maxPriorityFeePerGas<"u")throw new q.Eip1559FeesNotSupportedError;if(typeof a.gasPrice>"u"){const t=await y(),{gasPrice:s}=await h.internal_estimateFeesPerGas(n,{block:t,chain:d,request:e,type:"legacy"});e.gasPrice=s}}return o.includes("gas")&&typeof G>"u"&&(e.gas=await p.getAction(n,x.estimateGas,"estimateGas")({...e,account:i&&{address:i.address,type:"json-rpc"}})),_.assertRequest(e),delete e.parameters,e}exports.defaultParameters=w;exports.eip1559NetworkCache=b;exports.prepareTransactionRequest=M;
|
package/dist/index101.js
CHANGED
|
@@ -1,29 +1,112 @@
|
|
|
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 { parseAccount as F } from "./index48.js";
|
|
2
|
+
import { internal_estimateFeesPerGas as b } from "./index94.js";
|
|
3
|
+
import { estimateGas as k } from "./index93.js";
|
|
4
|
+
import { getBlock as I } from "./index97.js";
|
|
5
|
+
import { getTransactionCount as T } from "./index125.js";
|
|
6
|
+
import { MaxFeePerGasTooLowError as C, Eip1559FeesNotSupportedError as H } from "./index95.js";
|
|
7
|
+
import { blobsToCommitments as q } from "./index167.js";
|
|
8
|
+
import { blobsToProofs as V } from "./index168.js";
|
|
9
|
+
import { commitmentsToVersionedHashes as _ } from "./index169.js";
|
|
10
|
+
import { toBlobSidecars as B } from "./index170.js";
|
|
11
|
+
import { getAction as p } from "./index63.js";
|
|
12
|
+
import { assertRequest as E } from "./index82.js";
|
|
13
|
+
import { getTransactionType as M } from "./index171.js";
|
|
14
|
+
import { getChainId as N } from "./index109.js";
|
|
15
|
+
const A = [
|
|
16
|
+
"blobVersionedHashes",
|
|
17
|
+
"chainId",
|
|
18
|
+
"fees",
|
|
19
|
+
"gas",
|
|
20
|
+
"nonce",
|
|
21
|
+
"type"
|
|
22
|
+
], w = /* @__PURE__ */ new Map();
|
|
23
|
+
async function X(s, a) {
|
|
24
|
+
const { account: u = s.account, blobs: c, chain: d, gas: g, kzg: y, nonce: G, nonceManager: h, parameters: i = A, type: x } = a, n = u && F(u), e = { ...a, ...n ? { from: n == null ? void 0 : n.address } : {} };
|
|
25
|
+
let f;
|
|
26
|
+
async function l() {
|
|
27
|
+
return f || (f = await p(s, I, "getBlock")({ blockTag: "latest" }), f);
|
|
28
|
+
}
|
|
29
|
+
let m;
|
|
30
|
+
async function P() {
|
|
31
|
+
return m || (d ? d.id : typeof a.chainId < "u" ? a.chainId : (m = await p(s, N, "getChainId")({}), m));
|
|
32
|
+
}
|
|
33
|
+
if (i.includes("nonce") && typeof G > "u" && n)
|
|
34
|
+
if (h) {
|
|
35
|
+
const t = await P();
|
|
36
|
+
e.nonce = await h.consume({
|
|
37
|
+
address: n.address,
|
|
38
|
+
chainId: t,
|
|
39
|
+
client: s
|
|
40
|
+
});
|
|
41
|
+
} else
|
|
42
|
+
e.nonce = await p(s, T, "getTransactionCount")({
|
|
43
|
+
address: n.address,
|
|
44
|
+
blockTag: "pending"
|
|
45
|
+
});
|
|
46
|
+
if ((i.includes("blobVersionedHashes") || i.includes("sidecars")) && c && y) {
|
|
47
|
+
const t = q({ blobs: c, kzg: y });
|
|
48
|
+
if (i.includes("blobVersionedHashes")) {
|
|
49
|
+
const o = _({
|
|
50
|
+
commitments: t,
|
|
51
|
+
to: "hex"
|
|
52
|
+
});
|
|
53
|
+
e.blobVersionedHashes = o;
|
|
54
|
+
}
|
|
55
|
+
if (i.includes("sidecars")) {
|
|
56
|
+
const o = V({ blobs: c, commitments: t, kzg: y }), r = B({
|
|
57
|
+
blobs: c,
|
|
58
|
+
commitments: t,
|
|
59
|
+
proofs: o,
|
|
60
|
+
to: "hex"
|
|
61
|
+
});
|
|
62
|
+
e.sidecars = r;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (i.includes("chainId") && (e.chainId = await P()), (i.includes("fees") || i.includes("type")) && typeof x > "u")
|
|
66
|
+
try {
|
|
67
|
+
e.type = M(e);
|
|
68
|
+
} catch {
|
|
69
|
+
let t = w.get(s.uid);
|
|
70
|
+
if (typeof t > "u") {
|
|
71
|
+
const o = await l();
|
|
72
|
+
t = typeof (o == null ? void 0 : o.baseFeePerGas) == "bigint", w.set(s.uid, t);
|
|
73
|
+
}
|
|
74
|
+
e.type = t ? "eip1559" : "legacy";
|
|
75
|
+
}
|
|
76
|
+
if (i.includes("fees"))
|
|
77
|
+
if (e.type !== "legacy" && e.type !== "eip2930") {
|
|
78
|
+
if (typeof e.maxFeePerGas > "u" || typeof e.maxPriorityFeePerGas > "u") {
|
|
79
|
+
const t = await l(), { maxFeePerGas: o, maxPriorityFeePerGas: r } = await b(s, {
|
|
80
|
+
block: t,
|
|
81
|
+
chain: d,
|
|
82
|
+
request: e
|
|
83
|
+
});
|
|
84
|
+
if (typeof a.maxPriorityFeePerGas > "u" && a.maxFeePerGas && a.maxFeePerGas < r)
|
|
85
|
+
throw new C({
|
|
86
|
+
maxPriorityFeePerGas: r
|
|
87
|
+
});
|
|
88
|
+
e.maxPriorityFeePerGas = r, e.maxFeePerGas = o;
|
|
89
|
+
}
|
|
90
|
+
} else {
|
|
91
|
+
if (typeof a.maxFeePerGas < "u" || typeof a.maxPriorityFeePerGas < "u")
|
|
92
|
+
throw new H();
|
|
93
|
+
if (typeof a.gasPrice > "u") {
|
|
94
|
+
const t = await l(), { gasPrice: o } = await b(s, {
|
|
95
|
+
block: t,
|
|
96
|
+
chain: d,
|
|
97
|
+
request: e,
|
|
98
|
+
type: "legacy"
|
|
99
|
+
});
|
|
100
|
+
e.gasPrice = o;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return i.includes("gas") && typeof g > "u" && (e.gas = await p(s, k, "estimateGas")({
|
|
104
|
+
...e,
|
|
105
|
+
account: n && { address: n.address, type: "json-rpc" }
|
|
106
|
+
})), E(e), delete e.parameters, e;
|
|
26
107
|
}
|
|
27
108
|
export {
|
|
28
|
-
|
|
109
|
+
A as defaultParameters,
|
|
110
|
+
w as eip1559NetworkCache,
|
|
111
|
+
X as prepareTransactionRequest
|
|
29
112
|
};
|
package/dist/index102.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("./index30.cjs");async function s(t,{address:n,blockNumber:e,blockTag:a="latest"}){const c=e?r.numberToHex(e):void 0,o=await t.request({method:"eth_getBalance",params:[n,c||a]});return BigInt(o)}exports.getBalance=s;
|
package/dist/index102.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
]), u = (o == null ? void 0 : o.blockNumber) || (r == null ? void 0 : r.blockNumber);
|
|
9
|
-
return u ? e - u + 1n : 0n;
|
|
1
|
+
import { numberToHex as c } from "./index30.js";
|
|
2
|
+
async function i(t, { address: n, blockNumber: e, blockTag: a = "latest" }) {
|
|
3
|
+
const o = e ? c(e) : void 0, r = await t.request({
|
|
4
|
+
method: "eth_getBalance",
|
|
5
|
+
params: [n, o || a]
|
|
6
|
+
});
|
|
7
|
+
return BigInt(r);
|
|
10
8
|
}
|
|
11
9
|
export {
|
|
12
|
-
|
|
10
|
+
i as getBalance
|
|
13
11
|
};
|
package/dist/index103.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function o(e){const t=await e.request({method:"eth_blobBaseFee"});return BigInt(t)}exports.getBlobBaseFee=o;
|
package/dist/index103.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
params: [e, t ? s(t) : n]
|
|
7
|
-
}, { dedupe: !!t });
|
|
8
|
-
return r(a);
|
|
1
|
+
async function a(e) {
|
|
2
|
+
const t = await e.request({
|
|
3
|
+
method: "eth_blobBaseFee"
|
|
4
|
+
});
|
|
5
|
+
return BigInt(t);
|
|
9
6
|
}
|
|
10
7
|
export {
|
|
11
|
-
|
|
8
|
+
a as getBlobBaseFee
|
|
12
9
|
};
|
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 t=require("./index74.cjs");class n extends t.BaseError{constructor({blockHash:r,blockNumber:e}){let o="Block";r&&(o=`Block at hash "${r}"`),e&&(o=`Block at number "${e}"`),super(`${o} could not be found.`,{name:"BlockNotFoundError"})}}exports.BlockNotFoundError=n;
|
package/dist/index104.js
CHANGED
|
@@ -1,118 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { encodeFunctionData as B } from "./index191.js";
|
|
7
|
-
import { getChainContractAddress as O } from "./index223.js";
|
|
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
|
-
});
|
|
1
|
+
import { BaseError as e } from "./index74.js";
|
|
2
|
+
class d extends e {
|
|
3
|
+
constructor({ blockHash: r, blockNumber: t }) {
|
|
4
|
+
let o = "Block";
|
|
5
|
+
r && (o = `Block at hash "${r}"`), t && (o = `Block at number "${t}"`), super(`${o} could not be found.`, { name: "BlockNotFoundError" });
|
|
23
6
|
}
|
|
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;
|
|
115
7
|
}
|
|
116
8
|
export {
|
|
117
|
-
|
|
9
|
+
d as BlockNotFoundError
|
|
118
10
|
};
|
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 t=require("./index127.cjs");function i(e){const s=(e.transactions??[]).map(n=>typeof n=="string"?n:t.formatTransaction(n));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:s,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}exports.formatBlock=i;
|
package/dist/index105.js
CHANGED
|
@@ -1,83 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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 { formatTransaction as i } from "./index127.js";
|
|
2
|
+
function a(e) {
|
|
3
|
+
const s = (e.transactions ?? []).map((n) => typeof n == "string" ? n : i(n));
|
|
4
|
+
return {
|
|
5
|
+
...e,
|
|
6
|
+
baseFeePerGas: e.baseFeePerGas ? BigInt(e.baseFeePerGas) : null,
|
|
7
|
+
blobGasUsed: e.blobGasUsed ? BigInt(e.blobGasUsed) : void 0,
|
|
8
|
+
difficulty: e.difficulty ? BigInt(e.difficulty) : void 0,
|
|
9
|
+
excessBlobGas: e.excessBlobGas ? BigInt(e.excessBlobGas) : void 0,
|
|
10
|
+
gasLimit: e.gasLimit ? BigInt(e.gasLimit) : void 0,
|
|
11
|
+
gasUsed: e.gasUsed ? BigInt(e.gasUsed) : void 0,
|
|
12
|
+
hash: e.hash ? e.hash : null,
|
|
13
|
+
logsBloom: e.logsBloom ? e.logsBloom : null,
|
|
14
|
+
nonce: e.nonce ? e.nonce : null,
|
|
15
|
+
number: e.number ? BigInt(e.number) : null,
|
|
16
|
+
size: e.size ? BigInt(e.size) : void 0,
|
|
17
|
+
timestamp: e.timestamp ? BigInt(e.timestamp) : void 0,
|
|
18
|
+
transactions: s,
|
|
19
|
+
totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
|
|
20
|
+
};
|
|
80
21
|
}
|
|
81
22
|
export {
|
|
82
|
-
|
|
23
|
+
a as formatBlock
|
|
83
24
|
};
|
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 o=require("./index107.cjs"),r=e=>`blockNumber.${e}`;async function u(e,{cacheTime:c=e.cacheTime}={}){const t=await o.withCache(()=>e.request({method:"eth_blockNumber"}),{cacheKey:r(e.uid),cacheTime:c});return BigInt(t)}exports.getBlockNumber=u;
|