@gardenfi/utils 2.5.3 → 3.0.0-beta.2
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 +40 -40
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +5 -5
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +120 -36
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +5 -17
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +21 -6
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +45 -9
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +37 -12
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +6 -109
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +89 -7
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +14 -6
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +3 -7
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +25 -20
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +16 -20
- package/dist/index110.cjs +2 -1
- package/dist/index110.js +24 -8
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +9 -31
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +8 -13
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +10 -7
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +11 -9
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +13 -16
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +18 -70
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +14 -35
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +4 -46
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +6 -14
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +18 -13
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +10 -9
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +57 -15
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +6 -65
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +13 -11
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +7 -13
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +137 -8
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +7 -10
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +20 -25
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +17 -14
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.cjs +1 -3
- package/dist/index130.js +42 -109
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +20 -50
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +79 -23
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +10 -116
- package/dist/index134.cjs +1 -20
- package/dist/index134.js +8 -321
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +6 -81
- package/dist/index136.cjs +1 -4
- package/dist/index136.js +42 -195
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +5 -18
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +13 -24
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +34 -177
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +54 -11
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +25 -24
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +7 -3
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +18 -89
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +15 -37
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +5 -15
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +14 -2
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +10 -75
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +11 -137
- package/dist/index149.cjs +1 -3
- package/dist/index149.js +11 -451
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +8 -64
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +3 -6
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +16 -69
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +5 -5
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +171 -3
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +102 -13
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +31 -86
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +9 -13
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +58 -43
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +19 -38
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +18 -26
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +106 -7
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +76 -55
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +8 -12
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +70 -7
- package/dist/index164.cjs +2 -1
- package/dist/index164.js +3 -21
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +9 -10
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +12 -14
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +4 -103
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +2 -5
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +32 -7
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +113 -14
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +19 -24
- package/dist/index171.cjs +1 -2
- package/dist/index171.js +5 -24
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +5 -9
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +5 -8
- package/dist/index174.cjs +9 -1
- package/dist/index174.js +34 -9
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +3 -12
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +18 -13
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +20 -14
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +35 -7
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +7 -20
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +118 -104
- package/dist/index180.cjs +4 -1
- package/dist/index180.js +194 -6
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +25 -19
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +159 -38
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +127 -17
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +27 -21
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +185 -74
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +4 -45
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +20 -11
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +3 -53
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +16 -3
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +2 -121
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +34 -5
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +3 -6
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +27 -11
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +25 -13
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +28 -13
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +6 -6
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +6 -151
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +30 -33
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +5 -33
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +36 -8
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +13 -2
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +41 -60
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +32 -9
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +16 -70
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +40 -17
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +104 -110
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +3 -24
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +5 -50
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +3 -106
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +18 -9
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +9 -2
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +296 -13
- package/dist/index210.cjs +1 -2
- package/dist/index210.js +6 -3
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +26 -12
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +78 -4
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +2 -2
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +19 -32
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +17 -21
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +10 -5
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +24 -5
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +46 -5
- package/dist/index219.cjs +1 -9
- package/dist/index219.js +9 -35
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +36 -464
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +104 -3
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +15 -25
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +210 -29
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +107 -34
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +205 -7
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +39 -15
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +75 -24
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +2 -9
- package/dist/index228.cjs +2 -1
- package/dist/index228.js +41 -7
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +2 -162
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +25 -34
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +5 -127
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +10 -27
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +16 -188
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +9 -4
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +67 -3
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +61 -16
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +185 -13
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +24 -30
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +77 -3
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +38 -25
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +7 -26
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +14 -23
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +12 -27
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +11 -27
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +9 -39
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +6 -78
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +7 -2
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +25 -36
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +17 -47
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +11 -6
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +19 -6
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +13 -8
- package/dist/index250.cjs +2 -1
- package/dist/index250.js +89 -30
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +15 -5
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +655 -6
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +177 -3
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +68 -17
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +4 -10
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +2 -6
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +59 -31
- package/dist/index27.cjs +16 -1
- package/dist/index27.js +112 -30
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +30 -12
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +169 -55
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +41 -22
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +111 -12
- package/dist/index31.cjs +1 -16
- package/dist/index31.js +29 -112
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +3 -39
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +2 -46
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +4 -26
- package/dist/index35.cjs +2 -1
- package/dist/index35.js +59 -6
- package/dist/index36.cjs +2 -1
- package/dist/index36.js +54 -13
- package/dist/index37.cjs +3 -1
- package/dist/index37.js +215 -15
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +23 -5
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +18 -13
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +4 -4
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +10 -10
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +19 -11
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +45 -11
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +13 -13
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +12 -33
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +22 -53
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +28 -16
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +47 -5
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +16 -8
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +10 -170
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +30 -102
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +36 -3
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +7 -21
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +29 -16
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +21 -9
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +7 -18
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +65 -120
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +44 -58
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +22 -22
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +37 -10
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +1 -1
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +17 -20
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +6 -6
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +9 -10
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +12 -31
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +163 -15
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +23 -16
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +77 -7
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +12 -32
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +51 -24
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +7 -22
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +6 -57
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +21 -40
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +8 -37
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +29 -164
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +16 -111
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +72 -29
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +36 -2
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +17 -4
- package/dist/index78.cjs +1 -2
- package/dist/index78.js +74 -58
- package/dist/index79.cjs +1 -2
- package/dist/index79.js +12 -54
- package/dist/index80.cjs +1 -3
- package/dist/index80.js +28 -214
- package/dist/index81.cjs +2 -1
- package/dist/index81.js +120 -13
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +14 -12
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +23 -23
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +32 -27
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +43 -46
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +6 -19
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +103 -11
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +36 -39
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +8 -9
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +2 -2
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +20 -7
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +2 -32
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +75 -36
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +15 -36
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +151 -9
- package/dist/index95.cjs +20 -1
- package/dist/index95.js +324 -27
- package/dist/index96.cjs +3 -1
- package/dist/index96.js +451 -22
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +61 -86
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +16 -50
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +10 -23
- package/dist/src/index.d.ts +0 -1
- package/dist/src/lib/auth/apikey/apikey.d.ts +1 -1
- package/dist/src/lib/auth/auth.types.d.ts +1 -1
- package/dist/src/lib/fetcher/fetcher.d.ts +2 -0
- package/dist/src/lib/utils.d.ts +16 -0
- package/package.json +3 -3
- package/dist/index257.cjs +0 -1
- package/dist/index257.js +0 -11
- package/dist/index258.cjs +0 -1
- package/dist/index258.js +0 -107
- package/dist/index259.cjs +0 -1
- package/dist/index259.js +0 -5
- package/dist/index260.cjs +0 -1
- package/dist/index260.js +0 -21
- package/dist/index261.cjs +0 -1
- package/dist/index261.js +0 -20
- package/dist/index262.cjs +0 -1
- package/dist/index262.js +0 -45
- package/dist/index263.cjs +0 -1
- package/dist/index263.js +0 -149
- package/dist/index264.cjs +0 -1
- package/dist/index264.js +0 -106
- package/dist/index265.cjs +0 -1
- package/dist/index265.js +0 -81
- package/dist/index266.cjs +0 -1
- package/dist/index266.js +0 -4
- package/dist/index267.cjs +0 -1
- package/dist/index267.js +0 -9
- package/dist/index268.cjs +0 -1
- package/dist/index268.js +0 -227
- package/dist/index269.cjs +0 -1
- package/dist/index269.js +0 -6
- package/dist/index270.cjs +0 -1
- package/dist/index270.js +0 -143
- package/dist/index271.cjs +0 -1
- package/dist/index271.js +0 -158
- package/dist/index272.cjs +0 -1
- package/dist/index272.js +0 -12
- package/dist/index273.cjs +0 -1
- package/dist/index273.js +0 -116
- package/dist/index274.cjs +0 -2
- package/dist/index274.js +0 -137
- package/dist/index275.cjs +0 -2
- package/dist/index275.js +0 -44
- package/dist/index276.cjs +0 -1
- package/dist/index276.js +0 -4
- package/dist/index277.cjs +0 -1
- package/dist/index277.js +0 -8
- package/dist/index278.cjs +0 -1
- package/dist/index278.js +0 -13
- package/dist/index279.cjs +0 -1
- package/dist/index279.js +0 -22
- package/dist/index280.cjs +0 -1
- package/dist/index280.js +0 -11
- package/dist/index281.cjs +0 -1
- package/dist/index281.js +0 -69
- package/dist/index282.cjs +0 -1
- package/dist/index282.js +0 -68
- package/dist/index283.cjs +0 -1
- package/dist/index283.js +0 -189
- package/dist/index284.cjs +0 -1
- package/dist/index284.js +0 -25
- package/dist/index285.cjs +0 -1
- package/dist/index285.js +0 -45
- package/dist/index286.cjs +0 -1
- package/dist/index286.js +0 -79
- package/dist/index287.cjs +0 -1
- package/dist/index287.js +0 -43
- package/dist/index288.cjs +0 -1
- package/dist/index288.js +0 -19
- package/dist/index289.cjs +0 -1
- package/dist/index289.js +0 -16
- package/dist/index290.cjs +0 -1
- package/dist/index290.js +0 -22
- package/dist/index291.cjs +0 -1
- package/dist/index291.js +0 -15
- package/dist/index292.cjs +0 -2
- package/dist/index292.js +0 -21
- package/dist/index293.cjs +0 -1
- package/dist/index293.js +0 -17
- package/dist/index294.cjs +0 -1
- package/dist/index294.js +0 -14
- package/dist/index295.cjs +0 -1
- package/dist/index295.js +0 -9
- package/dist/index296.cjs +0 -1
- package/dist/index296.js +0 -9
- package/dist/index297.cjs +0 -1
- package/dist/index297.js +0 -29
- package/dist/index298.cjs +0 -1
- package/dist/index298.js +0 -14
- package/dist/index299.cjs +0 -1
- package/dist/index299.js +0 -22
- package/dist/index300.cjs +0 -1
- package/dist/index300.js +0 -701
- package/dist/index301.cjs +0 -1
- package/dist/index301.js +0 -142
- package/dist/index302.cjs +0 -1
- package/dist/index302.js +0 -204
- package/dist/index303.cjs +0 -2
- package/dist/index303.js +0 -69
- package/dist/index304.cjs +0 -1
- package/dist/index304.js +0 -7
- package/dist/index305.cjs +0 -1
- package/dist/index305.js +0 -43
- package/dist/index306.cjs +0 -1
- package/dist/index306.js +0 -10
- package/dist/index307.cjs +0 -1
- package/dist/index307.js +0 -65
- package/dist/index308.cjs +0 -1
- package/dist/index308.js +0 -80
- package/dist/index309.cjs +0 -1
- package/dist/index309.js +0 -6
- package/dist/index310.cjs +0 -1
- package/dist/index310.js +0 -197
- package/dist/index311.cjs +0 -1
- package/dist/index311.js +0 -71
- package/dist/index312.cjs +0 -1
- package/dist/index312.js +0 -66
- package/dist/index313.cjs +0 -1
- package/dist/index313.js +0 -47
- package/dist/index314.cjs +0 -1
- package/dist/index314.js +0 -7
- package/dist/index315.cjs +0 -1
- package/dist/index315.js +0 -7
- package/dist/index316.cjs +0 -1
- package/dist/index316.js +0 -4
- package/dist/index317.cjs +0 -1
- package/dist/index317.js +0 -24
- package/dist/src/lib/blockNumber/blockNumber.d.ts +0 -10
- package/dist/src/lib/blockNumber/index.d.ts +0 -1
package/dist/index29.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=require("./index31.cjs"),Z=require("./index32.cjs"),j=require("./index21.cjs"),ee=require("./index33.cjs"),R=require("./index34.cjs"),F=require("./index35.cjs"),A=require("./index36.cjs"),L=require("./index37.cjs"),te=require("./index38.cjs"),$=require("./index39.cjs"),ae=require("./index40.cjs"),re=require("./index41.cjs"),G=require("./index42.cjs"),oe=require("./index43.cjs"),ce=require("./index44.cjs"),ne=require("./index45.cjs"),se=require("./index46.cjs"),ie=require("./index47.cjs"),le=require("./index48.cjs"),M=require("./index49.cjs");async function ue(e,t){var P,T,H,_;const{account:a=e.account,authorizationList:s,batch:i=!!((P=e.batch)!=null&&P.multicall),blockNumber:l,blockTag:C=e.experimental_blockTag??"latest",accessList:D,blobs:k,blockOverrides:y,code:m,data:c,factory:b,factoryData:u,gas:x,gasPrice:w,maxFeePerBlobGas:p,maxFeePerGas:g,maxPriorityFeePerGas:h,nonce:q,to:r,value:J,stateOverride:K,...Q}=t,E=a?Z.parseAccount(a):void 0;if(m&&(b||u))throw new F.BaseError("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(m&&r)throw new F.BaseError("Cannot provide both `code` & `to` as parameters.");const N=m&&c,S=b&&u&&r&&c,O=N||S,U=N?W({code:m,data:c}):S?be({data:c,factory:b,factoryData:u,to:r}):c;try{le.assertRequest(t);const o=(typeof l=="bigint"?G.numberToHex(l):void 0)||C,d=y?Y.toRpc(y):void 0,f=ie.serializeStateOverride(K),V=(_=(H=(T=e.chain)==null?void 0:T.formatters)==null?void 0:H.transactionRequest)==null?void 0:_.format,B=(V||ne.formatTransactionRequest)({...ce.extract(Q,{format:V}),accessList:D,account:E,authorizationList:s,blobs:k,data:U,gas:x,gasPrice:w,maxFeePerBlobGas:p,maxFeePerGas:g,maxPriorityFeePerGas:h,nonce:q,to:O?void 0:r,value:J},"call");if(i&&de({request:B})&&!f&&!d)try{return await fe(e,{...B,blockNumber:l,blockTag:C})}catch(n){if(!(n instanceof A.ClientChainNotConfiguredError)&&!(n instanceof A.ChainDoesNotSupportContract))throw n}const X=(()=>{const n=[B,o];return f&&d?[...n,f,d]:f?[...n,f]:d?[...n,{},d]:n})(),z=await e.request({method:"eth_call",params:X});return z==="0x"?{data:void 0}:{data:z}}catch(v){const o=I(v),{offchainLookup:d,offchainLookupSignature:f}=await Promise.resolve().then(()=>require("./index30.cjs"));if(e.ccipRead!==!1&&(o==null?void 0:o.slice(0,10))===f&&r)return{data:await d(e,{data:o,to:r})};throw O&&(o==null?void 0:o.slice(0,10))==="0x101bb98d"?new L.CounterfactualDeploymentFailedError({factory:b}):oe.getCallError(v,{...t,account:E,chain:e.chain})}}function de({request:e}){const{data:t,to:a,...s}=e;return!(!t||t.startsWith(ee.aggregate3Signature)||!a||Object.values(s).filter(i=>typeof i<"u").length>0)}async function fe(e,t){var w;const{batchSize:a=1024,deployless:s=!1,wait:i=0}=typeof((w=e.batch)==null?void 0:w.multicall)=="object"?e.batch.multicall:{},{blockNumber:l,blockTag:C=e.experimental_blockTag??"latest",data:D,to:k}=t,y=(()=>{if(s)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return re.getChainContractAddress({blockNumber:l,chain:e.chain,contract:"multicall3"});throw new A.ClientChainNotConfiguredError})(),c=(typeof l=="bigint"?G.numberToHex(l):void 0)||C,{schedule:b}=se.createBatchScheduler({id:`${e.uid}.${c}`,wait:i,shouldSplitBatch(p){return p.reduce((h,{data:q})=>h+(q.length-2),0)>a*2},fn:async p=>{const g=p.map(r=>({allowFailure:!0,callData:r.data,target:r.to})),h=ae.encodeFunctionData({abi:j.multicall3Abi,args:[g],functionName:"aggregate3"}),q=await e.request({method:"eth_call",params:[{...y===null?{data:W({code:R.multicall3Bytecode,data:h})}:{to:y,data:h}},c]});return te.decodeFunctionResult({abi:j.multicall3Abi,args:[g],functionName:"aggregate3",data:q||"0x"})}}),[{returnData:u,success:x}]=await b({data:D,to:k});if(!x)throw new L.RawContractError({data:u});return u==="0x"?{data:void 0}:{data:u}}function W(e){const{code:t,data:a}=e;return $.encodeDeployData({abi:M.parseAbi(["constructor(bytes, bytes)"]),bytecode:R.deploylessCallViaBytecodeBytecode,args:[t,a]})}function be(e){const{data:t,factory:a,factoryData:s,to:i}=e;return $.encodeDeployData({abi:M.parseAbi(["constructor(address, bytes, address, bytes)"]),bytecode:R.deploylessCallViaFactoryBytecode,args:[i,t,a,s]})}function I(e){var a;if(!(e instanceof F.BaseError))return;const t=e.walk();return typeof(t==null?void 0:t.data)=="object"?(a=t.data)==null?void 0:a.data:t.data}exports.call=ue;exports.getRevertErrorData=I;
|
package/dist/index29.js
CHANGED
|
@@ -1,60 +1,174 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { toRpc as Q } from "./index31.js";
|
|
2
|
+
import { parseAccount as U } from "./index32.js";
|
|
3
|
+
import { multicall3Abi as z } from "./index21.js";
|
|
4
|
+
import { aggregate3Signature as X } from "./index33.js";
|
|
5
|
+
import { deploylessCallViaBytecodeBytecode as Y, deploylessCallViaFactoryBytecode as Z, multicall3Bytecode as tt } from "./index34.js";
|
|
6
|
+
import { BaseError as N } from "./index35.js";
|
|
7
|
+
import { ClientChainNotConfiguredError as H, ChainDoesNotSupportContract as at } from "./index36.js";
|
|
8
|
+
import { CounterfactualDeploymentFailedError as et, RawContractError as ot } from "./index37.js";
|
|
9
|
+
import { decodeFunctionResult as rt } from "./index38.js";
|
|
10
|
+
import { encodeDeployData as L } from "./index39.js";
|
|
11
|
+
import { encodeFunctionData as ct } from "./index40.js";
|
|
12
|
+
import { getChainContractAddress as nt } from "./index41.js";
|
|
13
|
+
import { numberToHex as j } from "./index42.js";
|
|
14
|
+
import { getCallError as st } from "./index43.js";
|
|
15
|
+
import { extract as it } from "./index44.js";
|
|
16
|
+
import { formatTransactionRequest as lt } from "./index45.js";
|
|
17
|
+
import { createBatchScheduler as ut } from "./index46.js";
|
|
18
|
+
import { serializeStateOverride as dt } from "./index47.js";
|
|
19
|
+
import { assertRequest as ft } from "./index48.js";
|
|
20
|
+
import { parseAbi as G } from "./index49.js";
|
|
21
|
+
async function zt(t, a) {
|
|
22
|
+
var q, E, O, P;
|
|
23
|
+
const { account: e = t.account, authorizationList: s, batch: i = !!((q = t.batch) != null && q.multicall), blockNumber: l, blockTag: C = t.experimental_blockTag ?? "latest", accessList: x, blobs: D, blockOverrides: b, code: h, data: c, factory: m, factoryData: u, gas: B, gasPrice: k, maxFeePerBlobGas: y, maxFeePerGas: g, maxPriorityFeePerGas: p, nonce: w, to: o, value: $, stateOverride: W, ...I } = a, R = e ? U(e) : void 0;
|
|
24
|
+
if (h && (m || u))
|
|
25
|
+
throw new N("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
|
|
26
|
+
if (h && o)
|
|
27
|
+
throw new N("Cannot provide both `code` & `to` as parameters.");
|
|
28
|
+
const S = h && c, A = m && u && o && c, _ = S || A, J = S ? M({
|
|
29
|
+
code: h,
|
|
30
|
+
data: c
|
|
31
|
+
}) : A ? bt({
|
|
32
|
+
data: c,
|
|
33
|
+
factory: m,
|
|
34
|
+
factoryData: u,
|
|
35
|
+
to: o
|
|
36
|
+
}) : c;
|
|
37
|
+
try {
|
|
38
|
+
ft(a);
|
|
39
|
+
const r = (typeof l == "bigint" ? j(l) : void 0) || C, d = b ? Q(b) : void 0, f = dt(W), T = (P = (O = (E = t.chain) == null ? void 0 : E.formatters) == null ? void 0 : O.transactionRequest) == null ? void 0 : P.format, v = (T || lt)({
|
|
40
|
+
// Pick out extra data that might exist on the chain's transaction request type.
|
|
41
|
+
...it(I, { format: T }),
|
|
42
|
+
accessList: x,
|
|
43
|
+
account: R,
|
|
44
|
+
authorizationList: s,
|
|
45
|
+
blobs: D,
|
|
46
|
+
data: J,
|
|
47
|
+
gas: B,
|
|
48
|
+
gasPrice: k,
|
|
49
|
+
maxFeePerBlobGas: y,
|
|
50
|
+
maxFeePerGas: g,
|
|
51
|
+
maxPriorityFeePerGas: p,
|
|
52
|
+
nonce: w,
|
|
53
|
+
to: _ ? void 0 : o,
|
|
54
|
+
value: $
|
|
55
|
+
}, "call");
|
|
56
|
+
if (i && mt({ request: v }) && !f && !d)
|
|
57
|
+
try {
|
|
58
|
+
return await pt(t, {
|
|
59
|
+
...v,
|
|
60
|
+
blockNumber: l,
|
|
61
|
+
blockTag: C
|
|
62
|
+
});
|
|
63
|
+
} catch (n) {
|
|
64
|
+
if (!(n instanceof H) && !(n instanceof at))
|
|
65
|
+
throw n;
|
|
66
|
+
}
|
|
67
|
+
const K = (() => {
|
|
68
|
+
const n = [
|
|
69
|
+
v,
|
|
70
|
+
r
|
|
71
|
+
];
|
|
72
|
+
return f && d ? [...n, f, d] : f ? [...n, f] : d ? [...n, {}, d] : n;
|
|
73
|
+
})(), V = await t.request({
|
|
74
|
+
method: "eth_call",
|
|
75
|
+
params: K
|
|
17
76
|
});
|
|
18
|
-
return
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return t.length > C;
|
|
28
|
-
},
|
|
29
|
-
fn: (t) => p.request({
|
|
30
|
-
body: t
|
|
31
|
-
}),
|
|
32
|
-
sort: (t, H) => t.id - H.id
|
|
33
|
-
}), F = async (t) => o ? E(t) : [
|
|
34
|
-
await p.request({
|
|
35
|
-
body: t
|
|
36
|
-
})
|
|
37
|
-
], [{ error: s, result: l }] = await F(i);
|
|
38
|
-
if (R)
|
|
39
|
-
return { error: s, result: l };
|
|
40
|
-
if (s)
|
|
41
|
-
throw new O({
|
|
42
|
-
body: i,
|
|
43
|
-
error: s,
|
|
44
|
-
url: r
|
|
45
|
-
});
|
|
46
|
-
return l;
|
|
47
|
-
},
|
|
48
|
-
retryCount: b,
|
|
49
|
-
retryDelay: d,
|
|
50
|
-
timeout: c,
|
|
51
|
-
type: "http"
|
|
52
|
-
}, {
|
|
53
|
-
fetchOptions: u,
|
|
54
|
-
url: r
|
|
77
|
+
return V === "0x" ? { data: void 0 } : { data: V };
|
|
78
|
+
} catch (F) {
|
|
79
|
+
const r = ht(F), { offchainLookup: d, offchainLookupSignature: f } = await import("./index30.js");
|
|
80
|
+
if (t.ccipRead !== !1 && (r == null ? void 0 : r.slice(0, 10)) === f && o)
|
|
81
|
+
return { data: await d(t, { data: r, to: o }) };
|
|
82
|
+
throw _ && (r == null ? void 0 : r.slice(0, 10)) === "0x101bb98d" ? new et({ factory: m }) : st(F, {
|
|
83
|
+
...a,
|
|
84
|
+
account: R,
|
|
85
|
+
chain: t.chain
|
|
55
86
|
});
|
|
56
|
-
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function mt({ request: t }) {
|
|
90
|
+
const { data: a, to: e, ...s } = t;
|
|
91
|
+
return !(!a || a.startsWith(X) || !e || Object.values(s).filter((i) => typeof i < "u").length > 0);
|
|
92
|
+
}
|
|
93
|
+
async function pt(t, a) {
|
|
94
|
+
var k;
|
|
95
|
+
const { batchSize: e = 1024, deployless: s = !1, wait: i = 0 } = typeof ((k = t.batch) == null ? void 0 : k.multicall) == "object" ? t.batch.multicall : {}, { blockNumber: l, blockTag: C = t.experimental_blockTag ?? "latest", data: x, to: D } = a, b = (() => {
|
|
96
|
+
if (s)
|
|
97
|
+
return null;
|
|
98
|
+
if (a.multicallAddress)
|
|
99
|
+
return a.multicallAddress;
|
|
100
|
+
if (t.chain)
|
|
101
|
+
return nt({
|
|
102
|
+
blockNumber: l,
|
|
103
|
+
chain: t.chain,
|
|
104
|
+
contract: "multicall3"
|
|
105
|
+
});
|
|
106
|
+
throw new H();
|
|
107
|
+
})(), c = (typeof l == "bigint" ? j(l) : void 0) || C, { schedule: m } = ut({
|
|
108
|
+
id: `${t.uid}.${c}`,
|
|
109
|
+
wait: i,
|
|
110
|
+
shouldSplitBatch(y) {
|
|
111
|
+
return y.reduce((p, { data: w }) => p + (w.length - 2), 0) > e * 2;
|
|
112
|
+
},
|
|
113
|
+
fn: async (y) => {
|
|
114
|
+
const g = y.map((o) => ({
|
|
115
|
+
allowFailure: !0,
|
|
116
|
+
callData: o.data,
|
|
117
|
+
target: o.to
|
|
118
|
+
})), p = ct({
|
|
119
|
+
abi: z,
|
|
120
|
+
args: [g],
|
|
121
|
+
functionName: "aggregate3"
|
|
122
|
+
}), w = await t.request({
|
|
123
|
+
method: "eth_call",
|
|
124
|
+
params: [
|
|
125
|
+
{
|
|
126
|
+
...b === null ? {
|
|
127
|
+
data: M({
|
|
128
|
+
code: tt,
|
|
129
|
+
data: p
|
|
130
|
+
})
|
|
131
|
+
} : { to: b, data: p }
|
|
132
|
+
},
|
|
133
|
+
c
|
|
134
|
+
]
|
|
135
|
+
});
|
|
136
|
+
return rt({
|
|
137
|
+
abi: z,
|
|
138
|
+
args: [g],
|
|
139
|
+
functionName: "aggregate3",
|
|
140
|
+
data: w || "0x"
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}), [{ returnData: u, success: B }] = await m({ data: x, to: D });
|
|
144
|
+
if (!B)
|
|
145
|
+
throw new ot({ data: u });
|
|
146
|
+
return u === "0x" ? { data: void 0 } : { data: u };
|
|
147
|
+
}
|
|
148
|
+
function M(t) {
|
|
149
|
+
const { code: a, data: e } = t;
|
|
150
|
+
return L({
|
|
151
|
+
abi: G(["constructor(bytes, bytes)"]),
|
|
152
|
+
bytecode: Y,
|
|
153
|
+
args: [a, e]
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
function bt(t) {
|
|
157
|
+
const { data: a, factory: e, factoryData: s, to: i } = t;
|
|
158
|
+
return L({
|
|
159
|
+
abi: G(["constructor(address, bytes, address, bytes)"]),
|
|
160
|
+
bytecode: Z,
|
|
161
|
+
args: [i, a, e, s]
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
function ht(t) {
|
|
165
|
+
var e;
|
|
166
|
+
if (!(t instanceof N))
|
|
167
|
+
return;
|
|
168
|
+
const a = t.walk();
|
|
169
|
+
return typeof (a == null ? void 0 : a.data) == "object" ? (e = a.data) == null ? void 0 : e.data : a.data;
|
|
57
170
|
}
|
|
58
171
|
export {
|
|
59
|
-
|
|
172
|
+
zt as call,
|
|
173
|
+
ht as getRevertErrorData
|
|
60
174
|
};
|
package/dist/index3.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 l=require("jwt-decode"),h=t=>t.startsWith("0x")?t:`0x${t}`,f=t=>`Bearer ${t}`,T=t=>new Promise(n=>setTimeout(n,t)),y=t=>{try{return l.jwtDecode(t)}catch{return}};var a=(t=>(t.MAINNET="mainnet",t.TESTNET="testnet",t.LOCALNET="localnet",t))(a||{}),u=(t=>(t.MAINNET="mainnet",t.TESTNET="testnet",t.LOCALNET="localnet",t))(u||{});const x=t=>t.startsWith("0x")?t:`0x${t}`;function p(t,n="big"){if(t=t.replace("0x",""),t.length!==64)throw new Error("Invalid hash length");const e=[];for(let o=0;o<8;o++){const s=t.slice(o*8,(o+1)*8).match(/.{2}/g);n==="little"&&s.reverse();const c=s.join("");e.push(parseInt(c,16))}const r=(o,i,s,c)=>BigInt(o)<<96n|BigInt(i)<<64n|BigInt(s)<<32n|BigInt(c);return[r(e[0],e[1],e[2],e[3]),r(e[4],e[5],e[6],e[7])]}function A(t,n="big"){if(t=t.replace("0x",""),t.length!==64)throw new Error("Invalid hash length");const e=[];for(let r=0;r<8;r++){const i=t.slice(r*8,(r+1)*8).match(/.{2}/g);n==="little"&&i.reverse();const s=i.join("");e.push(parseInt(s,16))}return e}function d(t){return t.startsWith("0x")?t.slice(2):t}const w=(t,n)=>t&&typeof t=="object"&&n.every(e=>e in t);exports.Authorization=f;exports.Environment=u;exports.Network=a;exports.add0x=x;exports.hasKeys=w;exports.hexToU128Array=p;exports.hexToU32Array=A;exports.parseJwt=y;exports.sleep=T;exports.trim0x=d;exports.with0x=h;
|
package/dist/index3.js
CHANGED
|
@@ -1,36 +1,55 @@
|
|
|
1
|
-
import { jwtDecode as
|
|
2
|
-
const
|
|
1
|
+
import { jwtDecode as a } from "jwt-decode";
|
|
2
|
+
const f = (t) => t.startsWith("0x") ? t : `0x${t}`, T = (t) => `Bearer ${t}`, p = (t) => new Promise((n) => setTimeout(n, t)), I = (t) => {
|
|
3
3
|
try {
|
|
4
|
-
return
|
|
4
|
+
return a(t);
|
|
5
5
|
} catch {
|
|
6
6
|
return;
|
|
7
7
|
}
|
|
8
8
|
};
|
|
9
|
-
var
|
|
10
|
-
const
|
|
11
|
-
function
|
|
9
|
+
var u = /* @__PURE__ */ ((t) => (t.MAINNET = "mainnet", t.TESTNET = "testnet", t.LOCALNET = "localnet", t))(u || {}), l = /* @__PURE__ */ ((t) => (t.MAINNET = "mainnet", t.TESTNET = "testnet", t.LOCALNET = "localnet", t))(l || {});
|
|
10
|
+
const x = (t) => t.startsWith("0x") ? t : `0x${t}`;
|
|
11
|
+
function y(t, n = "big") {
|
|
12
12
|
if (t = t.replace("0x", ""), t.length !== 64)
|
|
13
13
|
throw new Error("Invalid hash length");
|
|
14
|
-
const
|
|
15
|
-
for (let
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
|
|
14
|
+
const e = [];
|
|
15
|
+
for (let s = 0; s < 8; s++) {
|
|
16
|
+
const c = t.slice(s * 8, (s + 1) * 8).match(/.{2}/g);
|
|
17
|
+
n === "little" && c.reverse();
|
|
18
|
+
const i = c.join("");
|
|
19
|
+
e.push(parseInt(i, 16));
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
const r = (s, o, c, i) => BigInt(s) << 96n | BigInt(o) << 64n | BigInt(c) << 32n | BigInt(i);
|
|
22
|
+
return [
|
|
23
|
+
r(e[0], e[1], e[2], e[3]),
|
|
24
|
+
r(e[4], e[5], e[6], e[7])
|
|
25
|
+
];
|
|
22
26
|
}
|
|
23
|
-
function
|
|
27
|
+
function A(t, n = "big") {
|
|
28
|
+
if (t = t.replace("0x", ""), t.length !== 64)
|
|
29
|
+
throw new Error("Invalid hash length");
|
|
30
|
+
const e = [];
|
|
31
|
+
for (let r = 0; r < 8; r++) {
|
|
32
|
+
const o = t.slice(r * 8, (r + 1) * 8).match(/.{2}/g);
|
|
33
|
+
n === "little" && o.reverse();
|
|
34
|
+
const c = o.join("");
|
|
35
|
+
e.push(parseInt(c, 16));
|
|
36
|
+
}
|
|
37
|
+
return e;
|
|
38
|
+
}
|
|
39
|
+
function E(t) {
|
|
24
40
|
return t.startsWith("0x") ? t.slice(2) : t;
|
|
25
41
|
}
|
|
42
|
+
const m = (t, n) => t && typeof t == "object" && n.every((e) => e in t);
|
|
26
43
|
export {
|
|
27
44
|
T as Authorization,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
45
|
+
l as Environment,
|
|
46
|
+
u as Network,
|
|
47
|
+
x as add0x,
|
|
48
|
+
m as hasKeys,
|
|
49
|
+
y as hexToU128Array,
|
|
50
|
+
A as hexToU32Array,
|
|
51
|
+
I as parseJwt,
|
|
52
|
+
p as sleep,
|
|
53
|
+
E as trim0x,
|
|
54
|
+
f as with0x
|
|
36
55
|
};
|
package/dist/index30.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("./index29.cjs"),p=require("./index200.cjs"),h=require("./index161.cjs"),g=require("./index170.cjs"),E=require("./index185.cjs"),L=require("./index111.cjs"),R=require("./index120.cjs"),S=require("./index151.cjs"),q=require("./index201.cjs"),O=require("./index91.cjs"),T="0x556f1830",w={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function x(c,{blockNumber:u,blockTag:l,data:a,to:n}){const{args:i}=g.decodeErrorResult({data:a,abi:[w]}),[r,o,s,d,t]=i,{ccipRead:e}=c,y=e&&typeof(e==null?void 0:e.request)=="function"?e.request:b;try{if(!L.isAddressEqual(n,r))throw new p.OffchainLookupSenderMismatchError({sender:r,to:n});const f=o.includes(q.localBatchGatewayUrl)?await q.localBatchGatewayRequest({data:s,ccipRequest:y}):await y({data:s,sender:r,urls:o}),{data:m}=await k.call(c,{blockNumber:u,blockTag:l,data:R.concat([d,E.encodeAbiParameters([{type:"bytes"},{type:"bytes"}],[f,t])]),to:n});return m}catch(f){throw new p.OffchainLookupError({callbackSelector:d,cause:f,data:a,extraData:t,sender:r,urls:o})}}async function b({data:c,sender:u,urls:l}){var n;let a=new Error("An unknown error occurred.");for(let i=0;i<l.length;i++){const r=l[i],o=r.includes("{data}")?"GET":"POST",s=o==="POST"?{data:c,sender:u}:void 0,d=o==="POST"?{"Content-Type":"application/json"}:{};try{const t=await fetch(r.replace("{sender}",u.toLowerCase()).replace("{data}",c),{body:JSON.stringify(s),headers:d,method:o});let e;if((n=t.headers.get("Content-Type"))!=null&&n.startsWith("application/json")?e=(await t.json()).data:e=await t.text(),!t.ok){a=new h.HttpRequestError({body:s,details:e!=null&&e.error?O.stringify(e.error):t.statusText,headers:t.headers,status:t.status,url:r});continue}if(!S.isHex(e)){a=new p.OffchainLookupResponseMalformedError({result:e,url:r});continue}return e}catch(t){a=new h.HttpRequestError({body:s,details:t.message,url:r})}}throw a}exports.ccipRequest=b;exports.offchainLookup=x;exports.offchainLookupAbiItem=w;exports.offchainLookupSignature=T;
|
package/dist/index30.js
CHANGED
|
@@ -1,15 +1,114 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { call as h } from "./index29.js";
|
|
2
|
+
import { OffchainLookupSenderMismatchError as w, OffchainLookupError as b, OffchainLookupResponseMalformedError as k } from "./index200.js";
|
|
3
|
+
import { HttpRequestError as d } from "./index161.js";
|
|
4
|
+
import { decodeErrorResult as g } from "./index170.js";
|
|
5
|
+
import { encodeAbiParameters as q } from "./index185.js";
|
|
6
|
+
import { isAddressEqual as E } from "./index111.js";
|
|
7
|
+
import { concat as L } from "./index120.js";
|
|
8
|
+
import { isHex as O } from "./index151.js";
|
|
9
|
+
import { localBatchGatewayUrl as x, localBatchGatewayRequest as S } from "./index201.js";
|
|
10
|
+
import { stringify as T } from "./index91.js";
|
|
11
|
+
const I = "0x556f1830", R = {
|
|
12
|
+
name: "OffchainLookup",
|
|
13
|
+
type: "error",
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
name: "sender",
|
|
17
|
+
type: "address"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "urls",
|
|
21
|
+
type: "string[]"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: "callData",
|
|
25
|
+
type: "bytes"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "callbackFunction",
|
|
29
|
+
type: "bytes4"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "extraData",
|
|
33
|
+
type: "bytes"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
};
|
|
37
|
+
async function J(c, { blockNumber: p, blockTag: f, data: o, to: n }) {
|
|
38
|
+
const { args: i } = g({
|
|
39
|
+
data: o,
|
|
40
|
+
abi: [R]
|
|
41
|
+
}), [r, a, s, u, e] = i, { ccipRead: t } = c, m = t && typeof (t == null ? void 0 : t.request) == "function" ? t.request : A;
|
|
42
|
+
try {
|
|
43
|
+
if (!E(n, r))
|
|
44
|
+
throw new w({ sender: r, to: n });
|
|
45
|
+
const l = a.includes(x) ? await S({
|
|
46
|
+
data: s,
|
|
47
|
+
ccipRequest: m
|
|
48
|
+
}) : await m({ data: s, sender: r, urls: a }), { data: y } = await h(c, {
|
|
49
|
+
blockNumber: p,
|
|
50
|
+
blockTag: f,
|
|
51
|
+
data: L([
|
|
52
|
+
u,
|
|
53
|
+
q([{ type: "bytes" }, { type: "bytes" }], [l, e])
|
|
54
|
+
]),
|
|
55
|
+
to: n
|
|
56
|
+
});
|
|
57
|
+
return y;
|
|
58
|
+
} catch (l) {
|
|
59
|
+
throw new b({
|
|
60
|
+
callbackSelector: u,
|
|
61
|
+
cause: l,
|
|
62
|
+
data: o,
|
|
63
|
+
extraData: e,
|
|
64
|
+
sender: r,
|
|
65
|
+
urls: a
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
async function A({ data: c, sender: p, urls: f }) {
|
|
70
|
+
var n;
|
|
71
|
+
let o = new Error("An unknown error occurred.");
|
|
72
|
+
for (let i = 0; i < f.length; i++) {
|
|
73
|
+
const r = f[i], a = r.includes("{data}") ? "GET" : "POST", s = a === "POST" ? { data: c, sender: p } : void 0, u = a === "POST" ? { "Content-Type": "application/json" } : {};
|
|
74
|
+
try {
|
|
75
|
+
const e = await fetch(r.replace("{sender}", p.toLowerCase()).replace("{data}", c), {
|
|
76
|
+
body: JSON.stringify(s),
|
|
77
|
+
headers: u,
|
|
78
|
+
method: a
|
|
79
|
+
});
|
|
80
|
+
let t;
|
|
81
|
+
if ((n = e.headers.get("Content-Type")) != null && n.startsWith("application/json") ? t = (await e.json()).data : t = await e.text(), !e.ok) {
|
|
82
|
+
o = new d({
|
|
83
|
+
body: s,
|
|
84
|
+
details: t != null && t.error ? T(t.error) : e.statusText,
|
|
85
|
+
headers: e.headers,
|
|
86
|
+
status: e.status,
|
|
87
|
+
url: r
|
|
88
|
+
});
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
if (!O(t)) {
|
|
92
|
+
o = new k({
|
|
93
|
+
result: t,
|
|
94
|
+
url: r
|
|
95
|
+
});
|
|
96
|
+
continue;
|
|
97
|
+
}
|
|
98
|
+
return t;
|
|
99
|
+
} catch (e) {
|
|
100
|
+
o = new d({
|
|
101
|
+
body: s,
|
|
102
|
+
details: e.message,
|
|
103
|
+
url: r
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
throw o;
|
|
12
108
|
}
|
|
13
109
|
export {
|
|
14
|
-
|
|
110
|
+
A as ccipRequest,
|
|
111
|
+
J as offchainLookup,
|
|
112
|
+
R as offchainLookupAbiItem,
|
|
113
|
+
I as offchainLookupSignature
|
|
15
114
|
};
|
package/dist/index31.cjs
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./
|
|
2
|
-
`))throw new e.SiweInvalidMessageFieldError({field:"statement",metaMessages:["- Statement must not include '\\n'.","",`Provided value: ${t}`]})}const $=M.getAddress(r.address),v=i?`${i}://${s}`:s,I=r.statement?`${r.statement}
|
|
3
|
-
`:"",S=`${v} wants you to sign in with your Ethereum account:
|
|
4
|
-
${$}
|
|
5
|
-
|
|
6
|
-
${I}`;let n=`URI: ${c}
|
|
7
|
-
Version: ${d}
|
|
8
|
-
Chain ID: ${o}
|
|
9
|
-
Nonce: ${a}
|
|
10
|
-
Issued At: ${m.toISOString()}`;if(l&&(n+=`
|
|
11
|
-
Expiration Time: ${l.toISOString()}`),f&&(n+=`
|
|
12
|
-
Not Before: ${f.toISOString()}`),w&&(n+=`
|
|
13
|
-
Request ID: ${w}`),g){let t=`
|
|
14
|
-
Resources:`;for(const u of g){if(!h.isUri(u))throw new e.SiweInvalidMessageFieldError({field:"resources",metaMessages:["- Every resource must be a RFC 3986 URI.","- See https://www.rfc-editor.org/rfc/rfc3986","",`Provided value: ${u}`]});t+=`
|
|
15
|
-
- ${u}`}n+=t}return`${S}
|
|
16
|
-
${n}`}const E=/^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}(:[0-9]{1,5})?$/,F=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(:[0-9]{1,5})?$/,b=/^localhost(:[0-9]{1,5})?$/,A=/^[a-zA-Z0-9]{8,}$/,P=/^([a-zA-Z][a-zA-Z0-9+-.]*)$/;exports.createSiweMessage=R;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index218.cjs"),a=require("./index219.cjs");function i(t){return{...typeof t.baseFeePerGas=="bigint"&&{baseFeePerGas:e.fromNumber(t.baseFeePerGas)},...typeof t.blobBaseFee=="bigint"&&{blobBaseFee:e.fromNumber(t.blobBaseFee)},...typeof t.feeRecipient=="string"&&{feeRecipient:t.feeRecipient},...typeof t.gasLimit=="bigint"&&{gasLimit:e.fromNumber(t.gasLimit)},...typeof t.number=="bigint"&&{number:e.fromNumber(t.number)},...typeof t.prevRandao=="bigint"&&{prevRandao:e.fromNumber(t.prevRandao)},...typeof t.time=="bigint"&&{time:e.fromNumber(t.time)},...t.withdrawals&&{withdrawals:t.withdrawals.map(a.toRpc)}}}exports.toRpc=i;
|
package/dist/index31.js
CHANGED
|
@@ -1,116 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
throw new e({
|
|
29
|
-
field: "nonce",
|
|
30
|
-
metaMessages: [
|
|
31
|
-
"- Nonce must be at least 8 characters.",
|
|
32
|
-
"- Nonce must be alphanumeric.",
|
|
33
|
-
"",
|
|
34
|
-
`Provided value: ${a}`
|
|
35
|
-
]
|
|
36
|
-
});
|
|
37
|
-
if (!$(c))
|
|
38
|
-
throw new e({
|
|
39
|
-
field: "uri",
|
|
40
|
-
metaMessages: [
|
|
41
|
-
"- URI must be a RFC 3986 URI referring to the resource that is the subject of the signing.",
|
|
42
|
-
"- See https://www.rfc-editor.org/rfc/rfc3986",
|
|
43
|
-
"",
|
|
44
|
-
`Provided value: ${c}`
|
|
45
|
-
]
|
|
46
|
-
});
|
|
47
|
-
if (f !== "1")
|
|
48
|
-
throw new e({
|
|
49
|
-
field: "version",
|
|
50
|
-
metaMessages: [
|
|
51
|
-
"- Version must be '1'.",
|
|
52
|
-
"",
|
|
53
|
-
`Provided value: ${f}`
|
|
54
|
-
]
|
|
55
|
-
});
|
|
56
|
-
if (o && !P.test(o))
|
|
57
|
-
throw new e({
|
|
58
|
-
field: "scheme",
|
|
59
|
-
metaMessages: [
|
|
60
|
-
"- Scheme must be an RFC 3986 URI scheme.",
|
|
61
|
-
"- See https://www.rfc-editor.org/rfc/rfc3986#section-3.1",
|
|
62
|
-
"",
|
|
63
|
-
`Provided value: ${o}`
|
|
64
|
-
]
|
|
65
|
-
});
|
|
66
|
-
const t = n.statement;
|
|
67
|
-
if (t != null && t.includes(`
|
|
68
|
-
`))
|
|
69
|
-
throw new e({
|
|
70
|
-
field: "statement",
|
|
71
|
-
metaMessages: [
|
|
72
|
-
"- Statement must not include '\\n'.",
|
|
73
|
-
"",
|
|
74
|
-
`Provided value: ${t}`
|
|
75
|
-
]
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
const l = S(n.address), v = o ? `${o}://${s}` : s, I = n.statement ? `${n.statement}
|
|
79
|
-
` : "", R = `${v} wants you to sign in with your Ethereum account:
|
|
80
|
-
${l}
|
|
81
|
-
|
|
82
|
-
${I}`;
|
|
83
|
-
let r = `URI: ${c}
|
|
84
|
-
Version: ${f}
|
|
85
|
-
Chain ID: ${i}
|
|
86
|
-
Nonce: ${a}
|
|
87
|
-
Issued At: ${g.toISOString()}`;
|
|
88
|
-
if (u && (r += `
|
|
89
|
-
Expiration Time: ${u.toISOString()}`), m && (r += `
|
|
90
|
-
Not Before: ${m.toISOString()}`), h && (r += `
|
|
91
|
-
Request ID: ${h}`), w) {
|
|
92
|
-
let t = `
|
|
93
|
-
Resources:`;
|
|
94
|
-
for (const d of w) {
|
|
95
|
-
if (!$(d))
|
|
96
|
-
throw new e({
|
|
97
|
-
field: "resources",
|
|
98
|
-
metaMessages: [
|
|
99
|
-
"- Every resource must be a RFC 3986 URI.",
|
|
100
|
-
"- See https://www.rfc-editor.org/rfc/rfc3986",
|
|
101
|
-
"",
|
|
102
|
-
`Provided value: ${d}`
|
|
103
|
-
]
|
|
104
|
-
});
|
|
105
|
-
t += `
|
|
106
|
-
- ${d}`;
|
|
1
|
+
import { fromNumber as a } from "./index218.js";
|
|
2
|
+
import { toRpc as e } from "./index219.js";
|
|
3
|
+
function n(t) {
|
|
4
|
+
return {
|
|
5
|
+
...typeof t.baseFeePerGas == "bigint" && {
|
|
6
|
+
baseFeePerGas: a(t.baseFeePerGas)
|
|
7
|
+
},
|
|
8
|
+
...typeof t.blobBaseFee == "bigint" && {
|
|
9
|
+
blobBaseFee: a(t.blobBaseFee)
|
|
10
|
+
},
|
|
11
|
+
...typeof t.feeRecipient == "string" && {
|
|
12
|
+
feeRecipient: t.feeRecipient
|
|
13
|
+
},
|
|
14
|
+
...typeof t.gasLimit == "bigint" && {
|
|
15
|
+
gasLimit: a(t.gasLimit)
|
|
16
|
+
},
|
|
17
|
+
...typeof t.number == "bigint" && {
|
|
18
|
+
number: a(t.number)
|
|
19
|
+
},
|
|
20
|
+
...typeof t.prevRandao == "bigint" && {
|
|
21
|
+
prevRandao: a(t.prevRandao)
|
|
22
|
+
},
|
|
23
|
+
...typeof t.time == "bigint" && {
|
|
24
|
+
time: a(t.time)
|
|
25
|
+
},
|
|
26
|
+
...t.withdrawals && {
|
|
27
|
+
withdrawals: t.withdrawals.map(e)
|
|
107
28
|
}
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
return `${R}
|
|
111
|
-
${r}`;
|
|
29
|
+
};
|
|
112
30
|
}
|
|
113
|
-
const p = /^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}(:[0-9]{1,5})?$/, M = /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(:[0-9]{1,5})?$/, x = /^localhost(:[0-9]{1,5})?$/, A = /^[a-zA-Z0-9]{8,}$/, P = /^([a-zA-Z][a-zA-Z0-9+-.]*)$/;
|
|
114
31
|
export {
|
|
115
|
-
|
|
32
|
+
n as toRpc
|
|
116
33
|
};
|