@gardenfi/swap 0.0.1-beta.6 → 0.0.1-beta.8
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/index100.cjs +1 -1
- package/dist/index100.js +13 -10
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +78 -11
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +14 -13
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +15 -75
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +3 -14
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +24 -18
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +2 -2
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +1 -1
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +2 -2
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +11 -11
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +1 -1
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +1 -1
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +30 -731
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +9 -519
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +111 -233
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +61 -5
- package/dist/index122.cjs +1 -2
- package/dist/index122.js +22 -131
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +35 -66
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +41 -86
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +57 -27
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +172 -9
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +36 -70
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +9 -3
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +32 -2
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +34 -80
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +9 -53
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +29 -5
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +50 -4
- package/dist/index134.cjs +1 -2
- package/dist/index134.js +64 -176
- package/dist/index135.cjs +1 -3
- package/dist/index135.js +40 -51
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +9 -69
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +6 -32
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +17 -9
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +8 -112
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +13 -61
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +7 -24
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +9 -36
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +15 -40
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +43 -55
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +13 -171
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +16 -40
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +13 -9
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +5 -30
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +29 -30
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +8 -8
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +7 -28
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +25 -49
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +10 -66
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +14 -41
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +12 -8
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +121 -6
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +33 -17
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +81 -8
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +177 -13
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +44 -7
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +6 -9
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +152 -15
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +13 -46
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +13 -13
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +103 -16
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +75 -13
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +89 -6
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +150 -34
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +138 -9
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +2 -2
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +69 -8
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +23 -26
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +109 -10
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +6 -14
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +19 -12
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +102 -117
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +66 -31
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +8 -80
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +24 -173
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +70 -43
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +3 -3
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +3 -7
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +5 -154
- package/dist/index182.cjs +2 -1
- package/dist/index182.js +3 -14
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +9 -14
- package/dist/index184.cjs +20 -1
- package/dist/index184.js +325 -102
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +13 -75
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +7 -89
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +32 -152
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +20 -137
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +5 -69
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +14 -14
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +73 -23
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +5 -109
- package/dist/index192.cjs +9 -1
- package/dist/index192.js +35 -6
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +3 -20
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +17 -105
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +27 -62
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +33 -7
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +22 -27
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +8 -71
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +2 -3
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -2
- package/dist/index200.cjs +3 -1
- package/dist/index200.js +452 -5
- package/dist/index201.cjs +1 -2
- package/dist/index201.js +28 -3
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +162 -9
- package/dist/index203.cjs +1 -20
- package/dist/index203.js +38 -326
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +25 -11
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +190 -6
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +4 -32
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +61 -18
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +20 -5
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +3 -74
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +4 -4
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +16 -5
- package/dist/index211.cjs +1 -9
- package/dist/index211.js +22 -34
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +3 -3
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +18 -18
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +25 -31
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +35 -34
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +8 -23
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +10 -8
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +26 -2
- package/dist/index219.cjs +1 -3
- package/dist/index219.js +28 -451
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +63 -25
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +9 -161
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +6 -38
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +6 -27
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +29 -188
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +5 -4
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +33 -60
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +107 -16
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +50 -3
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +32 -16
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +8 -23
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +8 -3
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +16 -18
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +22 -27
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +103 -35
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +3 -9
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +5 -10
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +29 -23
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +20 -28
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +3 -65
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +2 -2
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +17 -9
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +5 -6
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +8 -6
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +101 -30
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +65 -5
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +5 -37
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +6 -111
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +26 -48
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +34 -32
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +13 -8
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +2 -8
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +10 -16
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +233 -21
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +5 -104
- package/dist/index254.cjs +2 -1
- package/dist/index254.js +134 -3
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +67 -5
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +85 -30
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +28 -20
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +8 -3
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +74 -17
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +3 -5
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +2 -9
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +77 -98
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +53 -64
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +5 -5
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +4 -6
- package/dist/index266.cjs +2 -1
- package/dist/index266.js +177 -26
- package/dist/index267.cjs +3 -1
- package/dist/index267.js +51 -33
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +69 -14
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +734 -2
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +519 -10
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +37 -76
- package/dist/index272.cjs +2 -1
- package/dist/index272.js +42 -3
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +2 -33
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +5 -115
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +11 -4
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +18 -14
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +8 -11
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +10 -23
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +62 -426
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +63 -56
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +187 -19
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +29 -14
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +69 -271
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +38 -18
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +14 -53
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +13 -28
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +7 -6
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +7 -51
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +38 -6
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +1 -1
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +15 -11
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +9 -7
- package/dist/index292.cjs +1 -2
- package/dist/index292.js +10 -28
- package/dist/index293.cjs +1 -1
- package/dist/index293.js +17 -2
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +22 -69
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +29 -165
- package/dist/index296.cjs +1 -2
- package/dist/index296.js +2 -42
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +48 -2
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +9 -5
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +13 -10
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +2 -2
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +12 -17
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +9 -8
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +15 -11
- package/dist/index303.cjs +1 -1
- package/dist/index303.js +25 -66
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +29 -63
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +9 -188
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +44 -21
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +28 -67
- package/dist/index308.cjs +2 -1
- package/dist/index308.js +18 -40
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +13 -15
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +1 -1
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +11 -13
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +12 -7
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +33 -7
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +115 -37
- package/dist/index314.cjs +1 -1
- package/dist/index314.js +6 -15
- package/dist/index315.cjs +1 -1
- package/dist/index315.js +7 -12
- package/dist/index316.cjs +1 -1
- package/dist/index316.js +103 -9
- package/dist/index317.cjs +1 -1
- package/dist/index317.js +25 -15
- package/dist/index318.cjs +1 -1
- package/dist/index318.js +15 -21
- package/dist/index319.cjs +1 -1
- package/dist/index319.js +212 -28
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +1 -1
- package/dist/index320.cjs +1 -1
- package/dist/index320.js +21 -2
- package/dist/index321.cjs +1 -1
- package/dist/index321.js +53 -45
- package/dist/index322.cjs +1 -1
- package/dist/index322.js +27 -8
- package/dist/index323.cjs +1 -1
- package/dist/index323.js +6 -13
- package/dist/index324.cjs +1 -1
- package/dist/index324.js +50 -13
- package/dist/index325.cjs +1 -1
- package/dist/index325.js +6 -10
- package/dist/index326.cjs +1 -1
- package/dist/index326.js +11 -15
- package/dist/index327.cjs +1 -1
- package/dist/index327.js +7 -26
- package/dist/index328.cjs +2 -1
- package/dist/index328.js +28 -32
- package/dist/index329.cjs +1 -1
- package/dist/index329.js +2 -10
- package/dist/index330.cjs +1 -1
- package/dist/index330.js +70 -52
- package/dist/index331.cjs +1 -1
- package/dist/index331.js +162 -33
- package/dist/index332.cjs +1 -1
- package/dist/index332.js +79 -8
- package/dist/index333.cjs +1 -2
- package/dist/index333.js +3 -19
- package/dist/index334.cjs +1 -1
- package/dist/index334.js +31 -13
- package/dist/index335.cjs +1 -1
- package/dist/index335.js +115 -12
- package/dist/index336.cjs +1 -1
- package/dist/index336.js +4 -34
- package/dist/index337.cjs +1 -1
- package/dist/index337.js +14 -114
- package/dist/index338.cjs +1 -1
- package/dist/index338.js +11 -103
- package/dist/index339.cjs +1 -1
- package/dist/index339.js +24 -6
- package/dist/index340.cjs +1 -1
- package/dist/index340.js +431 -7
- package/dist/index341.cjs +1 -1
- package/dist/index341.js +57 -25
- package/dist/index342.cjs +1 -1
- package/dist/index342.js +19 -15
- package/dist/index343.cjs +1 -1
- package/dist/index343.js +14 -215
- package/dist/index344.cjs +1 -1
- package/dist/index344.js +277 -39
- package/dist/index345.cjs +1 -1
- package/dist/index345.js +68 -42
- package/dist/index346.cjs +1 -1
- package/dist/index346.js +16 -3
- package/dist/index347.cjs +1 -1
- package/dist/index347.js +4 -48
- package/dist/index348.cjs +1 -1
- package/dist/index348.js +167 -73
- package/dist/index349.cjs +1 -1
- package/dist/index349.js +9 -29
- package/dist/index350.cjs +1 -1
- package/dist/index350.js +134 -70
- package/dist/index351.cjs +1 -1
- package/dist/index351.js +119 -198
- package/dist/index352.cjs +2 -1
- package/dist/index352.js +179 -194
- package/dist/index353.cjs +1 -1
- package/dist/index353.js +2 -321
- package/dist/index354.cjs +1 -1
- package/dist/index354.js +75 -553
- package/dist/index355.cjs +1 -1
- package/dist/index355.js +15 -110
- package/dist/index356.cjs +2 -1
- package/dist/index356.js +66 -165
- package/dist/index357.cjs +1 -1
- package/dist/index357.js +157 -405
- package/dist/index358.cjs +1 -1
- package/dist/index358.js +42 -93
- package/dist/index359.cjs +1 -1
- package/dist/index359.js +649 -48
- package/dist/index360.cjs +1 -1
- package/dist/index360.js +204 -51
- package/dist/index361.cjs +1 -1
- package/dist/index361.js +173 -40
- package/dist/index362.cjs +1 -1
- package/dist/index362.js +13 -16
- package/dist/index363.cjs +1 -1
- package/dist/index363.js +7 -10
- package/dist/index364.cjs +1 -1
- package/dist/index364.js +29 -18
- package/dist/index365.cjs +1 -1
- package/dist/index365.js +10 -29
- package/dist/index366.cjs +1 -7
- package/dist/index366.js +3 -237
- package/dist/index367.cjs +1 -1
- package/dist/index367.js +3 -30
- package/dist/index368.cjs +1 -1
- package/dist/index368.js +11 -10
- package/dist/index369.cjs +1 -1
- package/dist/index369.js +4 -3
- package/dist/index370.cjs +1 -1
- package/dist/index370.js +33 -4
- package/dist/index371.cjs +1 -1
- package/dist/index371.js +30 -12
- package/dist/index372.cjs +1 -1
- package/dist/index372.js +28 -7
- package/dist/index373.cjs +1 -1
- package/dist/index373.js +61 -12
- package/dist/index374.cjs +1 -1
- package/dist/index374.js +43 -5
- package/dist/index375.cjs +1 -1
- package/dist/index375.js +4 -33
- package/dist/index376.cjs +1 -1
- package/dist/index376.js +47 -30
- package/dist/index377.cjs +1 -1
- package/dist/index377.js +78 -25
- package/dist/index378.cjs +1 -1
- package/dist/index378.js +27 -58
- package/dist/index379.cjs +1 -1
- package/dist/index379.js +75 -67
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +2 -2
- package/dist/index380.cjs +1 -1
- package/dist/index380.js +212 -3
- package/dist/index381.cjs +1 -1
- package/dist/index381.js +200 -132
- package/dist/index382.cjs +1 -1
- package/dist/index382.js +301 -155
- package/dist/index383.cjs +1 -1
- package/dist/index383.js +554 -7
- package/dist/index384.cjs +1 -1
- package/dist/index384.js +110 -17
- package/dist/index385.cjs +1 -1
- package/dist/index385.js +163 -131
- package/dist/index386.cjs +1 -2
- package/dist/index386.js +405 -187
- package/dist/index387.cjs +1 -1
- package/dist/index387.js +93 -78
- package/dist/index388.cjs +1 -1
- package/dist/index388.js +57 -2
- package/dist/index389.cjs +1 -1
- package/dist/index389.js +52 -13
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +83 -24
- package/dist/index390.cjs +1 -2
- package/dist/index390.js +43 -65
- package/dist/index391.cjs +1 -1
- package/dist/index391.js +14 -162
- package/dist/index392.cjs +1 -1
- package/dist/index392.js +9 -42
- package/dist/index393.cjs +1 -1
- package/dist/index393.js +17 -655
- package/dist/index394.cjs +1 -1
- package/dist/index394.js +25 -202
- package/dist/index395.cjs +7 -1
- package/dist/index395.js +227 -167
- package/dist/index396.cjs +1 -1
- package/dist/index396.js +37 -355
- package/dist/index397.cjs +1 -1
- package/dist/index397.js +4 -275
- package/dist/index398.cjs +1 -1
- package/dist/index398.js +8 -171
- package/dist/index399.cjs +1 -1
- package/dist/index399.js +58 -69
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +11 -15
- package/dist/index400.cjs +1 -1
- package/dist/index400.js +22 -9
- package/dist/index401.cjs +1 -1
- package/dist/index401.js +6 -9
- package/dist/index402.cjs +1 -1
- package/dist/index402.js +72 -102
- package/dist/index403.cjs +1 -1
- package/dist/index403.js +119 -5
- package/dist/index404.cjs +1 -1
- package/dist/index404.js +342 -93
- package/dist/index405.cjs +1 -1
- package/dist/index405.js +158 -21
- package/dist/index406.cjs +1 -1
- package/dist/index406.js +5 -134
- package/dist/index407.cjs +1 -1
- package/dist/index407.js +24 -30
- package/dist/index408.cjs +1 -1
- package/dist/index408.js +11 -3
- package/dist/index409.cjs +1 -1
- package/dist/index409.js +5 -2
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +24 -103
- package/dist/index410.cjs +1 -1
- package/dist/index410.js +3 -2
- package/dist/index411.cjs +1 -1
- package/dist/index411.js +2 -17
- package/dist/index412.cjs +1 -1
- package/dist/index412.js +2 -13
- package/dist/index413.cjs +1 -1
- package/dist/index413.js +17 -6
- package/dist/index414.cjs +1 -1
- package/dist/index414.js +13 -30
- package/dist/index415.cjs +1 -1
- package/dist/index415.js +6 -41
- package/dist/index416.cjs +1 -1
- package/dist/index416.js +30 -5
- package/dist/index417.cjs +1 -1
- package/dist/index417.js +94 -7
- package/dist/index418.cjs +1 -1
- package/dist/index418.js +21 -60
- package/dist/index419.cjs +1 -1
- package/dist/index419.js +131 -20
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +16 -86
- package/dist/index420.cjs +1 -1
- package/dist/index420.js +358 -5
- package/dist/index421.cjs +1 -1
- package/dist/index421.js +272 -74
- package/dist/index422.cjs +1 -1
- package/dist/index422.js +171 -120
- package/dist/index423.cjs +1 -1
- package/dist/index423.js +69 -339
- package/dist/index424.cjs +1 -1
- package/dist/index424.js +9 -160
- package/dist/index425.cjs +1 -1
- package/dist/index425.js +9 -5
- package/dist/index426.cjs +1 -1
- package/dist/index426.js +105 -23
- package/dist/index427.cjs +1 -1
- package/dist/index427.js +5 -10
- package/dist/index428.cjs +1 -1
- package/dist/index428.js +31 -4
- package/dist/index429.cjs +2 -1
- package/dist/index429.js +42 -3
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +105 -11
- package/dist/index430.cjs +1 -1
- package/dist/index430.js +2 -110
- package/dist/index431.cjs +1 -2
- package/dist/index431.js +18 -40
- package/dist/index432.cjs +1 -1
- package/dist/index432.js +9 -2
- package/dist/index433.cjs +1 -1
- package/dist/index433.js +40 -17
- package/dist/index434.cjs +1 -1
- package/dist/index434.js +72 -8
- package/dist/index435.cjs +1 -1
- package/dist/index435.js +61 -38
- package/dist/index436.cjs +1 -1
- package/dist/index436.js +178 -62
- package/dist/index437.cjs +1 -1
- package/dist/index437.js +86 -61
- package/dist/index438.cjs +1 -1
- package/dist/index438.js +35 -183
- package/dist/index439.cjs +1 -1
- package/dist/index439.js +9 -83
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +26 -36
- package/dist/index440.cjs +1 -1
- package/dist/index440.js +7 -34
- package/dist/index441.cjs +1 -1
- package/dist/index441.js +50 -14
- package/dist/index442.cjs +1 -1
- package/dist/index442.js +5 -14
- package/dist/index443.cjs +1 -1
- package/dist/index443.js +2 -53
- package/dist/index444.cjs +1 -1
- package/dist/index444.js +110 -5
- package/dist/index445.cjs +1 -1
- package/dist/index445.js +3 -2
- package/dist/index446.cjs +1 -1
- package/dist/index446.js +66 -129
- package/dist/index447.cjs +1 -1
- package/dist/index447.js +20 -67
- package/dist/index448.cjs +1 -1
- package/dist/index448.js +128 -18
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +8 -43
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +31 -12
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +28 -59
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +54 -522
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +10 -30
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +43 -13
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +30 -18
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +28 -41
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +1 -1
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +14 -14
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +15 -18
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +15 -15
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +17 -43
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +17 -22
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +18 -29
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +22 -29
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +36 -30
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +44 -28
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +12 -28
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +58 -14
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +522 -14
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +14 -8
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +13 -9
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +30 -10
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +14 -36
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +12 -41
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +37 -34
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +41 -24
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +32 -53
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +23 -26
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +54 -32
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +27 -14
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +1 -1
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +1 -1
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +3 -3
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +9 -9
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +1 -1
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +1 -1
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +1 -1
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +1 -1
- package/dist/index92.cjs +2 -1
- package/dist/index92.js +56 -52
- package/dist/index93.cjs +1 -2
- package/dist/index93.js +126 -58
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +55 -3
- package/dist/index95.cjs +3 -1
- package/dist/index95.js +75 -24
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +16 -126
- package/dist/index97.cjs +1 -3
- package/dist/index97.js +8 -75
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +9 -16
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +11 -8
- package/package.json +9 -6
package/dist/index100.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index97.cjs"),m=require("./index98.cjs"),u=require("./index224.cjs");function f(t){const{data:i,kzg:n,to:b}=t,s=t.blobs??u.toBlobs({data:i,to:b}),e=t.commitments??r.blobsToCommitments({blobs:s,kzg:n,to:b}),l=t.proofs??m.blobsToProofs({blobs:s,commitments:e,kzg:n,to:b}),c=[];for(let o=0;o<s.length;o++)c.push({blob:s[o],commitment:e[o],proof:l[o]});return c}exports.toBlobSidecars=f;
|
package/dist/index100.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { blobsToCommitments as f } from "./index97.js";
|
|
2
|
+
import { blobsToProofs as l } from "./index98.js";
|
|
3
|
+
import { toBlobs as p } from "./index224.js";
|
|
4
|
+
function k(t) {
|
|
5
|
+
const { data: i, kzg: n, to: m } = t, s = t.blobs ?? p({ data: i, to: m }), b = t.commitments ?? f({ blobs: s, kzg: n, to: m }), r = t.proofs ?? l({ blobs: s, commitments: b, kzg: n, to: m }), c = [];
|
|
6
|
+
for (let o = 0; o < s.length; o++)
|
|
7
|
+
c.push({
|
|
8
|
+
blob: s[o],
|
|
9
|
+
commitment: b[o],
|
|
10
|
+
proof: r[o]
|
|
11
|
+
});
|
|
12
|
+
return c;
|
|
10
13
|
}
|
|
11
14
|
export {
|
|
12
|
-
|
|
15
|
+
k as toBlobSidecars
|
|
13
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 E=require("./index250.cjs"),w=require("./index108.cjs"),t=require("./index78.cjs"),P=require("./index92.cjs"),h=require("./index226.cjs"),d=require("./index85.cjs"),n=require("./index110.cjs"),c=require("./index79.cjs"),I=require("./index87.cjs"),u=require("./index203.cjs"),l=require("./index73.cjs");function m(o){const{authorizationList:e}=o;if(e)for(const s of e){const{chainId:r}=s,i=s.address;if(!c.isAddress(i))throw new t.InvalidAddressError({address:i});if(r<0)throw new d.InvalidChainIdError({chainId:r})}f(o)}function T(o){const{blobVersionedHashes:e}=o;if(e){if(e.length===0)throw new h.EmptyBlobError;for(const s of e){const r=I.size(s),i=l.hexToNumber(u.slice(s,0,1));if(r!==32)throw new h.InvalidVersionedHashSizeError({hash:s,size:r});if(i!==E.versionedHashVersionKzg)throw new h.InvalidVersionedHashVersionError({hash:s,version:i})}}f(o)}function f(o){const{chainId:e,maxPriorityFeePerGas:s,maxFeePerGas:r,to:i}=o;if(e<=0)throw new d.InvalidChainIdError({chainId:e});if(i&&!c.isAddress(i))throw new t.InvalidAddressError({address:i});if(r&&r>w.maxUint256)throw new n.FeeCapTooHighError({maxFeePerGas:r});if(s&&r&&s>r)throw new n.TipAboveFeeCapError({maxFeePerGas:r,maxPriorityFeePerGas:s})}function x(o){const{chainId:e,maxPriorityFeePerGas:s,gasPrice:r,maxFeePerGas:i,to:a}=o;if(e<=0)throw new d.InvalidChainIdError({chainId:e});if(a&&!c.isAddress(a))throw new t.InvalidAddressError({address:a});if(s||i)throw new P.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>w.maxUint256)throw new n.FeeCapTooHighError({maxFeePerGas:r})}function v(o){const{chainId:e,maxPriorityFeePerGas:s,gasPrice:r,maxFeePerGas:i,to:a}=o;if(a&&!c.isAddress(a))throw new t.InvalidAddressError({address:a});if(typeof e<"u"&&e<=0)throw new d.InvalidChainIdError({chainId:e});if(s||i)throw new P.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>w.maxUint256)throw new n.FeeCapTooHighError({maxFeePerGas:r})}exports.assertTransactionEIP1559=f;exports.assertTransactionEIP2930=x;exports.assertTransactionEIP4844=T;exports.assertTransactionEIP7702=m;exports.assertTransactionLegacy=v;
|
package/dist/index101.js
CHANGED
|
@@ -1,14 +1,81 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { versionedHashVersionKzg as c } from "./index250.js";
|
|
2
|
+
import { maxUint256 as m } from "./index108.js";
|
|
3
|
+
import { InvalidAddressError as s } from "./index78.js";
|
|
4
|
+
import { BaseError as h } from "./index92.js";
|
|
5
|
+
import { EmptyBlobError as P, InvalidVersionedHashSizeError as p, InvalidVersionedHashVersionError as x } from "./index226.js";
|
|
6
|
+
import { InvalidChainIdError as n } from "./index85.js";
|
|
7
|
+
import { FeeCapTooHighError as w, TipAboveFeeCapError as E } from "./index110.js";
|
|
8
|
+
import { isAddress as f } from "./index79.js";
|
|
9
|
+
import { size as F } from "./index87.js";
|
|
10
|
+
import { slice as I } from "./index203.js";
|
|
11
|
+
import { hexToNumber as G } from "./index73.js";
|
|
12
|
+
function C(t) {
|
|
13
|
+
const { authorizationList: e } = t;
|
|
14
|
+
if (e)
|
|
15
|
+
for (const o of e) {
|
|
16
|
+
const { chainId: r } = o, i = o.address;
|
|
17
|
+
if (!f(i))
|
|
18
|
+
throw new s({ address: i });
|
|
19
|
+
if (r < 0)
|
|
20
|
+
throw new n({ chainId: r });
|
|
21
|
+
}
|
|
22
|
+
d(t);
|
|
23
|
+
}
|
|
24
|
+
function L(t) {
|
|
25
|
+
const { blobVersionedHashes: e } = t;
|
|
26
|
+
if (e) {
|
|
27
|
+
if (e.length === 0)
|
|
28
|
+
throw new P();
|
|
29
|
+
for (const o of e) {
|
|
30
|
+
const r = F(o), i = G(I(o, 0, 1));
|
|
31
|
+
if (r !== 32)
|
|
32
|
+
throw new p({ hash: o, size: r });
|
|
33
|
+
if (i !== c)
|
|
34
|
+
throw new x({
|
|
35
|
+
hash: o,
|
|
36
|
+
version: i
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
d(t);
|
|
41
|
+
}
|
|
42
|
+
function d(t) {
|
|
43
|
+
const { chainId: e, maxPriorityFeePerGas: o, maxFeePerGas: r, to: i } = t;
|
|
44
|
+
if (e <= 0)
|
|
45
|
+
throw new n({ chainId: e });
|
|
46
|
+
if (i && !f(i))
|
|
47
|
+
throw new s({ address: i });
|
|
48
|
+
if (r && r > m)
|
|
49
|
+
throw new w({ maxFeePerGas: r });
|
|
50
|
+
if (o && r && o > r)
|
|
51
|
+
throw new E({ maxFeePerGas: r, maxPriorityFeePerGas: o });
|
|
52
|
+
}
|
|
53
|
+
function B(t) {
|
|
54
|
+
const { chainId: e, maxPriorityFeePerGas: o, gasPrice: r, maxFeePerGas: i, to: a } = t;
|
|
55
|
+
if (e <= 0)
|
|
56
|
+
throw new n({ chainId: e });
|
|
57
|
+
if (a && !f(a))
|
|
58
|
+
throw new s({ address: a });
|
|
59
|
+
if (o || i)
|
|
60
|
+
throw new h("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
|
|
61
|
+
if (r && r > m)
|
|
62
|
+
throw new w({ maxFeePerGas: r });
|
|
63
|
+
}
|
|
64
|
+
function K(t) {
|
|
65
|
+
const { chainId: e, maxPriorityFeePerGas: o, gasPrice: r, maxFeePerGas: i, to: a } = t;
|
|
66
|
+
if (a && !f(a))
|
|
67
|
+
throw new s({ address: a });
|
|
68
|
+
if (typeof e < "u" && e <= 0)
|
|
69
|
+
throw new n({ chainId: e });
|
|
70
|
+
if (o || i)
|
|
71
|
+
throw new h("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
|
|
72
|
+
if (r && r > m)
|
|
73
|
+
throw new w({ maxFeePerGas: r });
|
|
11
74
|
}
|
|
12
75
|
export {
|
|
13
|
-
|
|
76
|
+
d as assertTransactionEIP1559,
|
|
77
|
+
B as assertTransactionEIP2930,
|
|
78
|
+
L as assertTransactionEIP4844,
|
|
79
|
+
C as assertTransactionEIP7702,
|
|
80
|
+
K as assertTransactionLegacy
|
|
14
81
|
};
|
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 i=require("./index95.cjs");function f(e){if(e.type)return e.type;if(typeof e.authorizationList<"u")return"eip7702";if(typeof e.blobs<"u"||typeof e.blobVersionedHashes<"u"||typeof e.maxFeePerBlobGas<"u"||typeof e.sidecars<"u")return"eip4844";if(typeof e.maxFeePerGas<"u"||typeof e.maxPriorityFeePerGas<"u")return"eip1559";if(typeof e.gasPrice<"u")return typeof e.accessList<"u"?"eip2930":"legacy";throw new i.InvalidSerializableTransactionError({transaction:e})}exports.getTransactionType=f;
|
package/dist/index102.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { InvalidSerializableTransactionError as f } from "./index95.js";
|
|
2
|
+
function d(e) {
|
|
3
|
+
if (e.type)
|
|
4
|
+
return e.type;
|
|
5
|
+
if (typeof e.authorizationList < "u")
|
|
6
|
+
return "eip7702";
|
|
7
|
+
if (typeof e.blobs < "u" || typeof e.blobVersionedHashes < "u" || typeof e.maxFeePerBlobGas < "u" || typeof e.sidecars < "u")
|
|
8
|
+
return "eip4844";
|
|
9
|
+
if (typeof e.maxFeePerGas < "u" || typeof e.maxPriorityFeePerGas < "u")
|
|
10
|
+
return "eip1559";
|
|
11
|
+
if (typeof e.gasPrice < "u")
|
|
12
|
+
return typeof e.accessList < "u" ? "eip2930" : "legacy";
|
|
13
|
+
throw new f({ transaction: e });
|
|
13
14
|
}
|
|
14
15
|
export {
|
|
15
|
-
|
|
16
|
+
d as getTransactionType
|
|
16
17
|
};
|
package/dist/index103.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index78.cjs"),d=require("./index95.cjs"),l=require("./index79.cjs");function a(e){if(!e||e.length===0)return[];const n=[];for(let t=0;t<e.length;t++){const{address:i,storageKeys:r}=e[t];for(let s=0;s<r.length;s++)if(r[s].length-2!==64)throw new d.InvalidStorageKeySizeError({storageKey:r[s]});if(!l.isAddress(i,{strict:!1}))throw new o.InvalidAddressError({address:i});n.push([i,r])}return n}exports.serializeAccessList=a;
|
package/dist/index103.js
CHANGED
|
@@ -1,81 +1,21 @@
|
|
|
1
|
-
import { versionedHashVersionKzg as c } from "./index269.js";
|
|
2
|
-
import { maxUint256 as m } from "./index108.js";
|
|
3
1
|
import { InvalidAddressError as s } from "./index78.js";
|
|
4
|
-
import {
|
|
5
|
-
import { EmptyBlobError as P, InvalidVersionedHashSizeError as p, InvalidVersionedHashVersionError as x } from "./index245.js";
|
|
6
|
-
import { InvalidChainIdError as n } from "./index85.js";
|
|
7
|
-
import { FeeCapTooHighError as w, TipAboveFeeCapError as E } from "./index110.js";
|
|
2
|
+
import { InvalidStorageKeySizeError as l } from "./index95.js";
|
|
8
3
|
import { isAddress as f } from "./index79.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
for (
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
d(t);
|
|
23
|
-
}
|
|
24
|
-
function L(t) {
|
|
25
|
-
const { blobVersionedHashes: e } = t;
|
|
26
|
-
if (e) {
|
|
27
|
-
if (e.length === 0)
|
|
28
|
-
throw new P();
|
|
29
|
-
for (const o of e) {
|
|
30
|
-
const r = F(o), i = G(I(o, 0, 1));
|
|
31
|
-
if (r !== 32)
|
|
32
|
-
throw new p({ hash: o, size: r });
|
|
33
|
-
if (i !== c)
|
|
34
|
-
throw new x({
|
|
35
|
-
hash: o,
|
|
36
|
-
version: i
|
|
37
|
-
});
|
|
38
|
-
}
|
|
4
|
+
function a(r) {
|
|
5
|
+
if (!r || r.length === 0)
|
|
6
|
+
return [];
|
|
7
|
+
const n = [];
|
|
8
|
+
for (let o = 0; o < r.length; o++) {
|
|
9
|
+
const { address: i, storageKeys: e } = r[o];
|
|
10
|
+
for (let t = 0; t < e.length; t++)
|
|
11
|
+
if (e[t].length - 2 !== 64)
|
|
12
|
+
throw new l({ storageKey: e[t] });
|
|
13
|
+
if (!f(i, { strict: !1 }))
|
|
14
|
+
throw new s({ address: i });
|
|
15
|
+
n.push([i, e]);
|
|
39
16
|
}
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
function d(t) {
|
|
43
|
-
const { chainId: e, maxPriorityFeePerGas: o, maxFeePerGas: r, to: i } = t;
|
|
44
|
-
if (e <= 0)
|
|
45
|
-
throw new n({ chainId: e });
|
|
46
|
-
if (i && !f(i))
|
|
47
|
-
throw new s({ address: i });
|
|
48
|
-
if (r && r > m)
|
|
49
|
-
throw new w({ maxFeePerGas: r });
|
|
50
|
-
if (o && r && o > r)
|
|
51
|
-
throw new E({ maxFeePerGas: r, maxPriorityFeePerGas: o });
|
|
52
|
-
}
|
|
53
|
-
function B(t) {
|
|
54
|
-
const { chainId: e, maxPriorityFeePerGas: o, gasPrice: r, maxFeePerGas: i, to: a } = t;
|
|
55
|
-
if (e <= 0)
|
|
56
|
-
throw new n({ chainId: e });
|
|
57
|
-
if (a && !f(a))
|
|
58
|
-
throw new s({ address: a });
|
|
59
|
-
if (o || i)
|
|
60
|
-
throw new h("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
|
|
61
|
-
if (r && r > m)
|
|
62
|
-
throw new w({ maxFeePerGas: r });
|
|
63
|
-
}
|
|
64
|
-
function K(t) {
|
|
65
|
-
const { chainId: e, maxPriorityFeePerGas: o, gasPrice: r, maxFeePerGas: i, to: a } = t;
|
|
66
|
-
if (a && !f(a))
|
|
67
|
-
throw new s({ address: a });
|
|
68
|
-
if (typeof e < "u" && e <= 0)
|
|
69
|
-
throw new n({ chainId: e });
|
|
70
|
-
if (o || i)
|
|
71
|
-
throw new h("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
|
|
72
|
-
if (r && r > m)
|
|
73
|
-
throw new w({ maxFeePerGas: r });
|
|
17
|
+
return n;
|
|
74
18
|
}
|
|
75
19
|
export {
|
|
76
|
-
|
|
77
|
-
B as assertTransactionEIP2930,
|
|
78
|
-
L as assertTransactionEIP4844,
|
|
79
|
-
C as assertTransactionEIP7702,
|
|
80
|
-
K as assertTransactionLegacy
|
|
20
|
+
a as serializeAccessList
|
|
81
21
|
};
|
package/dist/index104.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(t,{strict:e=!0}={}){return!t||typeof t!="string"?!1:e?/^0x[0-9a-fA-F]*$/.test(t):t.startsWith("0x")}exports.isHex=r;
|
package/dist/index104.js
CHANGED
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (e.type)
|
|
4
|
-
return e.type;
|
|
5
|
-
if (typeof e.authorizationList < "u")
|
|
6
|
-
return "eip7702";
|
|
7
|
-
if (typeof e.blobs < "u" || typeof e.blobVersionedHashes < "u" || typeof e.maxFeePerBlobGas < "u" || typeof e.sidecars < "u")
|
|
8
|
-
return "eip4844";
|
|
9
|
-
if (typeof e.maxFeePerGas < "u" || typeof e.maxPriorityFeePerGas < "u")
|
|
10
|
-
return "eip1559";
|
|
11
|
-
if (typeof e.gasPrice < "u")
|
|
12
|
-
return typeof e.accessList < "u" ? "eip2930" : "legacy";
|
|
13
|
-
throw new f({ transaction: e });
|
|
1
|
+
function e(t, { strict: r = !0 } = {}) {
|
|
2
|
+
return !t || typeof t != "string" ? !1 : r ? /^0x[0-9a-fA-F]*$/.test(t) : t.startsWith("0x");
|
|
14
3
|
}
|
|
15
4
|
export {
|
|
16
|
-
|
|
5
|
+
e as isHex
|
|
17
6
|
};
|
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 f=require("./index81.cjs"),o={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function d(e){const n={};return typeof e.authorizationList<"u"&&(n.authorizationList=a(e.authorizationList)),typeof e.accessList<"u"&&(n.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(n.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?n.blobs=e.blobs.map(i=>f.bytesToHex(i)):n.blobs=e.blobs),typeof e.data<"u"&&(n.data=e.data),typeof e.from<"u"&&(n.from=e.from),typeof e.gas<"u"&&(n.gas=f.numberToHex(e.gas)),typeof e.gasPrice<"u"&&(n.gasPrice=f.numberToHex(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(n.maxFeePerBlobGas=f.numberToHex(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(n.maxFeePerGas=f.numberToHex(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(n.maxPriorityFeePerGas=f.numberToHex(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(n.nonce=f.numberToHex(e.nonce)),typeof e.to<"u"&&(n.to=e.to),typeof e.type<"u"&&(n.type=o[e.type]),typeof e.value<"u"&&(n.value=f.numberToHex(e.value)),n}function a(e){return e.map(n=>({address:n.address,r:n.r?f.numberToHex(BigInt(n.r)):n.r,s:n.s?f.numberToHex(BigInt(n.s)):n.s,chainId:f.numberToHex(n.chainId),nonce:f.numberToHex(n.nonce),...typeof n.yParity<"u"?{yParity:f.numberToHex(n.yParity)}:{},...typeof n.v<"u"&&typeof n.yParity>"u"?{v:f.numberToHex(n.v)}:{}}))}exports.formatTransactionRequest=d;exports.rpcTransactionType=o;
|
package/dist/index105.js
CHANGED
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { bytesToHex as d, numberToHex as n } from "./index81.js";
|
|
2
|
+
const o = {
|
|
3
|
+
legacy: "0x0",
|
|
4
|
+
eip2930: "0x1",
|
|
5
|
+
eip1559: "0x2",
|
|
6
|
+
eip4844: "0x3",
|
|
7
|
+
eip7702: "0x4"
|
|
8
|
+
};
|
|
9
|
+
function p(e) {
|
|
10
|
+
const f = {};
|
|
11
|
+
return typeof e.authorizationList < "u" && (f.authorizationList = a(e.authorizationList)), typeof e.accessList < "u" && (f.accessList = e.accessList), typeof e.blobVersionedHashes < "u" && (f.blobVersionedHashes = e.blobVersionedHashes), typeof e.blobs < "u" && (typeof e.blobs[0] != "string" ? f.blobs = e.blobs.map((i) => d(i)) : f.blobs = e.blobs), typeof e.data < "u" && (f.data = e.data), typeof e.from < "u" && (f.from = e.from), typeof e.gas < "u" && (f.gas = n(e.gas)), typeof e.gasPrice < "u" && (f.gasPrice = n(e.gasPrice)), typeof e.maxFeePerBlobGas < "u" && (f.maxFeePerBlobGas = n(e.maxFeePerBlobGas)), typeof e.maxFeePerGas < "u" && (f.maxFeePerGas = n(e.maxFeePerGas)), typeof e.maxPriorityFeePerGas < "u" && (f.maxPriorityFeePerGas = n(e.maxPriorityFeePerGas)), typeof e.nonce < "u" && (f.nonce = n(e.nonce)), typeof e.to < "u" && (f.to = e.to), typeof e.type < "u" && (f.type = o[e.type]), typeof e.value < "u" && (f.value = n(e.value)), f;
|
|
12
|
+
}
|
|
13
|
+
function a(e) {
|
|
14
|
+
return e.map((f) => ({
|
|
15
|
+
address: f.address,
|
|
16
|
+
r: f.r ? n(BigInt(f.r)) : f.r,
|
|
17
|
+
s: f.s ? n(BigInt(f.s)) : f.s,
|
|
18
|
+
chainId: n(f.chainId),
|
|
19
|
+
nonce: n(f.nonce),
|
|
20
|
+
...typeof f.yParity < "u" ? { yParity: n(f.yParity) } : {},
|
|
21
|
+
...typeof f.v < "u" && typeof f.yParity > "u" ? { v: n(f.v) } : {}
|
|
22
|
+
}));
|
|
18
23
|
}
|
|
19
24
|
export {
|
|
20
|
-
|
|
25
|
+
p as formatTransactionRequest,
|
|
26
|
+
o as rpcTransactionType
|
|
21
27
|
};
|
package/dist/index107.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index78.cjs"),f=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index78.cjs"),f=require("./index94.cjs"),a=require("./index216.cjs"),l=require("./index106.cjs"),A=require("./index79.cjs"),o=new l.LruMap(8192);function u(s,t){if(o.has(`${s}.${t}`))return o.get(`${s}.${t}`);const c=s.substring(2).toLowerCase(),n=a.keccak256(f.stringToBytes(c),"bytes"),r=c.split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&r[e]&&(r[e]=r[e].toUpperCase()),(n[e>>1]&15)>=8&&r[e+1]&&(r[e+1]=r[e+1].toUpperCase());const i=`0x${r.join("")}`;return o.set(`${s}.${t}`,i),i}function g(s,t){if(!A.isAddress(s,{strict:!1}))throw new d.InvalidAddressError({address:s});return u(s,t)}exports.checksumAddress=u;exports.getAddress=g;
|
package/dist/index107.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InvalidAddressError as c } from "./index78.js";
|
|
2
|
-
import { stringToBytes as m } from "./
|
|
3
|
-
import { keccak256 as p } from "./
|
|
2
|
+
import { stringToBytes as m } from "./index94.js";
|
|
3
|
+
import { keccak256 as p } from "./index216.js";
|
|
4
4
|
import { LruMap as u } from "./index106.js";
|
|
5
5
|
import { isAddress as $ } from "./index79.js";
|
|
6
6
|
const s = /* @__PURE__ */ new u(8192);
|
package/dist/index110.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index111.cjs"),o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index111.cjs"),o=require("./index92.cjs");class s extends o.BaseError{constructor({cause:r,message:e}={}){var i;const n=(i=e==null?void 0:e.replace("execution reverted: ",""))==null?void 0:i.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:r,name:"ExecutionRevertedError"})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class c extends o.BaseError{constructor({cause:r,maxFeePerGas:e}={}){super(`The fee cap (\`maxFeePerGas\`${e?` = ${a.formatGwei(e)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:r,name:"FeeCapTooHighError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class u extends o.BaseError{constructor({cause:r,maxFeePerGas:e}={}){super(`The fee cap (\`maxFeePerGas\`${e?` = ${a.formatGwei(e)}`:""} gwei) cannot be lower than the block base fee.`,{cause:r,name:"FeeCapTooLowError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class l extends o.BaseError{constructor({cause:r,nonce:e}={}){super(`Nonce provided for the transaction ${e?`(${e}) `:""}is higher than the next one expected.`,{cause:r,name:"NonceTooHighError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class d extends o.BaseError{constructor({cause:r,nonce:e}={}){super([`Nonce provided for the transaction ${e?`(${e}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
|
|
2
2
|
`),{cause:r,name:"NonceTooLowError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class h extends o.BaseError{constructor({cause:r,nonce:e}={}){super(`Nonce provided for the transaction ${e?`(${e}) `:""}exceeds the maximum allowed nonce.`,{cause:r,name:"NonceMaxValueError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class f extends o.BaseError{constructor({cause:r}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
|
|
3
3
|
`),{cause:r,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class p extends o.BaseError{constructor({cause:r,gas:e}={}){super(`The amount of gas ${e?`(${e}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:r,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class b extends o.BaseError{constructor({cause:r,gas:e}={}){super(`The amount of gas ${e?`(${e}) `:""}provided for the transaction is too low.`,{cause:r,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(b,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class g extends o.BaseError{constructor({cause:r}){super("The transaction type is not supported for this chain.",{cause:r,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(g,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class E extends o.BaseError{constructor({cause:r,maxPriorityFeePerGas:e,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${e?` = ${a.formatGwei(e)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${a.formatGwei(n)} gwei`:""}).`].join(`
|
|
4
4
|
`),{cause:r,name:"TipAboveFeeCapError"})}}Object.defineProperty(E,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class w extends o.BaseError{constructor({cause:r}){super(`An error occurred while executing: ${r==null?void 0:r.shortMessage}`,{cause:r,name:"UnknownNodeError"})}}exports.ExecutionRevertedError=s;exports.FeeCapTooHighError=c;exports.FeeCapTooLowError=u;exports.InsufficientFundsError=f;exports.IntrinsicGasTooHighError=p;exports.IntrinsicGasTooLowError=b;exports.NonceMaxValueError=h;exports.NonceTooHighError=l;exports.NonceTooLowError=d;exports.TipAboveFeeCapError=E;exports.TransactionTypeNotSupportedError=g;exports.UnknownNodeError=w;
|
package/dist/index110.js
CHANGED
package/dist/index111.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index183.cjs"),r=require("./index251.cjs");function n(t,e="wei"){return r.formatUnits(t,i.gweiUnits[e])}exports.formatGwei=n;
|
package/dist/index111.js
CHANGED
package/dist/index114.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("./index112.cjs"),C=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("./index112.cjs"),C=require("./index187.cjs"),P=require("./index188.cjs"),v=require("./index185.cjs"),E=require("./index189.cjs"),$=require("./index190.cjs"),j=require("./index191.cjs"),h=require("./index111.cjs"),x=require("./index184.cjs"),m=require("./index92.cjs"),F=require("./index192.cjs"),w=require("./index95.cjs"),O=require("./index193.cjs");class q extends m.BaseError{constructor(e,{account:o,docsPath:c,chain:n,data:l,gas:a,gasPrice:u,maxFeePerGas:r,maxPriorityFeePerGas:t,nonce:i,to:s,value:d,stateOverride:f}){var p;const b=o?A.parseAccount(o):void 0;let y=w.prettyPrint({from:b==null?void 0:b.address,to:s,value:typeof d<"u"&&`${j.formatEther(d)} ${((p=n==null?void 0:n.nativeCurrency)==null?void 0:p.symbol)||"ETH"}`,data:l,gas:a,gasPrice:typeof u<"u"&&`${h.formatGwei(u)} gwei`,maxFeePerGas:typeof r<"u"&&`${h.formatGwei(r)} gwei`,maxPriorityFeePerGas:typeof t<"u"&&`${h.formatGwei(t)} gwei`,nonce:i});f&&(y+=`
|
|
2
2
|
${F.prettyStateOverride(f)}`),super(e.shortMessage,{cause:e,docsPath:c,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",y].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class M extends m.BaseError{constructor(e,{abi:o,args:c,contractAddress:n,docsPath:l,functionName:a,sender:u}){const r=$.getAbiItem({abi:o,args:c,name:a}),t=r?E.formatAbiItemWithArgs({abiItem:r,args:c,includeFunctionName:!1,includeName:!1}):void 0,i=r?v.formatAbiItem(r,{includeName:!0}):void 0,s=w.prettyPrint({address:n&&O.getContractAddress(n),function:i,args:t&&t!=="()"&&`${[...Array((a==null?void 0:a.length)??0).keys()].map(()=>" ").join("")}${t}`,sender:u});super(e.shortMessage||`An unknown error occurred while executing the contract function "${a}".`,{cause:e,docsPath:l,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],s&&"Contract Call:",s].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=o,this.args=c,this.cause=e,this.contractAddress=n,this.functionName=a,this.sender=u}}class I extends m.BaseError{constructor({abi:e,data:o,functionName:c,message:n}){let l,a,u,r;if(o&&o!=="0x")try{a=P.decodeErrorResult({abi:e,data:o});const{abiItem:i,errorName:s,args:d}=a;if(s==="Error")r=d[0];else if(s==="Panic"){const[f]=d;r=C.panicReasons[f]}else{const f=i?v.formatAbiItem(i,{includeName:!0}):void 0,b=i&&d?E.formatAbiItemWithArgs({abiItem:i,args:d,includeFunctionName:!1,includeName:!1}):void 0;u=[f?`Error: ${f}`:"",b&&b!=="()"?` ${[...Array((s==null?void 0:s.length)??0).keys()].map(()=>" ").join("")}${b}`:""]}}catch(i){l=i}else n&&(r=n);let t;l instanceof x.AbiErrorSignatureNotFoundError&&(t=l.signature,u=[`Unable to decode signature "${t}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${t}.`]),super(r&&r!=="execution reverted"||t?[`The contract function "${c}" reverted with the following ${t?"signature":"reason"}:`,r||t].join(`
|
|
3
3
|
`):`The contract function "${c}" reverted.`,{cause:l,metaMessages:u,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=a,this.raw=o,this.reason=r,this.signature=t}}class R extends m.BaseError{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class T extends m.BaseError{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class B extends m.BaseError{constructor({data:e,message:o}){super(o||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}exports.CallExecutionError=q;exports.ContractFunctionExecutionError=M;exports.ContractFunctionRevertedError=I;exports.ContractFunctionZeroDataError=R;exports.CounterfactualDeploymentFailedError=T;exports.RawContractError=B;
|
package/dist/index114.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { parseAccount as $ } from "./index112.js";
|
|
2
|
-
import { panicReasons as A } from "./
|
|
3
|
-
import { decodeErrorResult as C } from "./
|
|
4
|
-
import { formatAbiItem as v } from "./
|
|
5
|
-
import { formatAbiItemWithArgs as w } from "./
|
|
6
|
-
import { getAbiItem as P } from "./
|
|
7
|
-
import { formatEther as j } from "./
|
|
2
|
+
import { panicReasons as A } from "./index187.js";
|
|
3
|
+
import { decodeErrorResult as C } from "./index188.js";
|
|
4
|
+
import { formatAbiItem as v } from "./index185.js";
|
|
5
|
+
import { formatAbiItemWithArgs as w } from "./index189.js";
|
|
6
|
+
import { getAbiItem as P } from "./index190.js";
|
|
7
|
+
import { formatEther as j } from "./index191.js";
|
|
8
8
|
import { formatGwei as p } from "./index111.js";
|
|
9
|
-
import { AbiErrorSignatureNotFoundError as x } from "./
|
|
10
|
-
import { BaseError as b } from "./
|
|
11
|
-
import { prettyStateOverride as O } from "./
|
|
12
|
-
import { prettyPrint as E } from "./
|
|
13
|
-
import { getContractAddress as F } from "./
|
|
9
|
+
import { AbiErrorSignatureNotFoundError as x } from "./index184.js";
|
|
10
|
+
import { BaseError as b } from "./index92.js";
|
|
11
|
+
import { prettyStateOverride as O } from "./index192.js";
|
|
12
|
+
import { prettyPrint as E } from "./index95.js";
|
|
13
|
+
import { getContractAddress as F } from "./index193.js";
|
|
14
14
|
class H extends b {
|
|
15
15
|
constructor(e, { account: o, docsPath: c, chain: n, data: l, gas: a, gasPrice: u, maxFeePerGas: r, maxPriorityFeePerGas: t, nonce: i, to: s, value: d, stateOverride: f }) {
|
|
16
16
|
var y;
|
package/dist/index115.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index92.cjs"),o=require("./index110.cjs");function s(n,e){const t=(n.details||"").toLowerCase(),i=n instanceof c.BaseError?n.walk(r=>(r==null?void 0:r.code)===o.ExecutionRevertedError.code):n;return i instanceof c.BaseError?new o.ExecutionRevertedError({cause:n,message:i.details}):o.ExecutionRevertedError.nodeMessage.test(t)?new o.ExecutionRevertedError({cause:n,message:n.details}):o.FeeCapTooHighError.nodeMessage.test(t)?new o.FeeCapTooHighError({cause:n,maxFeePerGas:e==null?void 0:e.maxFeePerGas}):o.FeeCapTooLowError.nodeMessage.test(t)?new o.FeeCapTooLowError({cause:n,maxFeePerGas:e==null?void 0:e.maxFeePerGas}):o.NonceTooHighError.nodeMessage.test(t)?new o.NonceTooHighError({cause:n,nonce:e==null?void 0:e.nonce}):o.NonceTooLowError.nodeMessage.test(t)?new o.NonceTooLowError({cause:n,nonce:e==null?void 0:e.nonce}):o.NonceMaxValueError.nodeMessage.test(t)?new o.NonceMaxValueError({cause:n,nonce:e==null?void 0:e.nonce}):o.InsufficientFundsError.nodeMessage.test(t)?new o.InsufficientFundsError({cause:n}):o.IntrinsicGasTooHighError.nodeMessage.test(t)?new o.IntrinsicGasTooHighError({cause:n,gas:e==null?void 0:e.gas}):o.IntrinsicGasTooLowError.nodeMessage.test(t)?new o.IntrinsicGasTooLowError({cause:n,gas:e==null?void 0:e.gas}):o.TransactionTypeNotSupportedError.nodeMessage.test(t)?new o.TransactionTypeNotSupportedError({cause:n}):o.TipAboveFeeCapError.nodeMessage.test(t)?new o.TipAboveFeeCapError({cause:n,maxFeePerGas:e==null?void 0:e.maxFeePerGas,maxPriorityFeePerGas:e==null?void 0:e.maxPriorityFeePerGas}):new o.UnknownNodeError({cause:n})}exports.getNodeError=s;
|
package/dist/index115.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseError as c } from "./
|
|
1
|
+
import { BaseError as c } from "./index92.js";
|
|
2
2
|
import { ExecutionRevertedError as t, FeeCapTooHighError as u, FeeCapTooLowError as d, NonceTooHighError as a, NonceTooLowError as f, NonceMaxValueError as w, InsufficientFundsError as r, IntrinsicGasTooHighError as E, IntrinsicGasTooLowError as m, TransactionTypeNotSupportedError as x, TipAboveFeeCapError as F, UnknownNodeError as M } from "./index110.js";
|
|
3
3
|
function P(o, e) {
|
|
4
4
|
const n = (o.details || "").toLowerCase(), s = o instanceof c ? o.walk((i) => (i == null ? void 0 : i.code) === t.code) : o;
|
package/dist/index117.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index112.cjs"),f=require("./index108.cjs"),t=require("./index78.cjs"),d=require("./index110.cjs"),w=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index112.cjs"),f=require("./index108.cjs"),t=require("./index78.cjs"),d=require("./index110.cjs"),w=require("./index95.cjs"),i=require("./index79.cjs");function p(a){const{account:n,gasPrice:c,maxFeePerGas:e,maxPriorityFeePerGas:r,to:s}=a,o=n?u.parseAccount(n):void 0;if(o&&!i.isAddress(o.address))throw new t.InvalidAddressError({address:o.address});if(s&&!i.isAddress(s))throw new t.InvalidAddressError({address:s});if(typeof c<"u"&&(typeof e<"u"||typeof r<"u"))throw new w.FeeConflictError;if(e&&e>f.maxUint256)throw new d.FeeCapTooHighError({maxFeePerGas:e});if(r&&e&&r>e)throw new d.TipAboveFeeCapError({maxFeePerGas:e,maxPriorityFeePerGas:r})}exports.assertRequest=p;
|
package/dist/index117.js
CHANGED
|
@@ -2,7 +2,7 @@ import { parseAccount as a } from "./index112.js";
|
|
|
2
2
|
import { maxUint256 as m } from "./index108.js";
|
|
3
3
|
import { InvalidAddressError as n } from "./index78.js";
|
|
4
4
|
import { FeeCapTooHighError as p, TipAboveFeeCapError as c } from "./index110.js";
|
|
5
|
-
import { FeeConflictError as u } from "./
|
|
5
|
+
import { FeeConflictError as u } from "./index95.js";
|
|
6
6
|
import { isAddress as s } from "./index79.js";
|
|
7
7
|
function E(d) {
|
|
8
8
|
const { account: i, gasPrice: f, maxFeePerGas: r, maxPriorityFeePerGas: e, to: o } = d, t = i ? a(i) : void 0;
|
package/dist/index118.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index275.cjs"),d=require("./index276.cjs"),h=require("./index277.cjs"),u=require("./index278.cjs"),w=require("./index279.cjs"),v=require("./index119.cjs"),r=require("./index280.cjs"),y=require("./index281.cjs"),k=require("./index271.cjs"),n=require("./index282.cjs"),c=require("./index283.cjs"),S=Symbol.for("@mysten/SuiClient");class M extends u.Experimental_BaseClient{constructor(e){super({network:e.network??"unknown"}),this.jsonRpc=this,this.transport=e.transport??new k.SuiHTTPTransport({url:e.url}),this.core=new w.JSONRpcTransport({jsonRpcClient:this,mvr:e.mvr})}get[S](){return!0}async getRpcApiVersion({signal:e}={}){return(await this.transport.request({method:"rpc.discover",params:[],signal:e})).info.version}async getCoins({coinType:e,owner:a,cursor:s,limit:t,signal:i}){if(!a||!r.isValidSuiAddress(r.normalizeSuiAddress(a)))throw new Error("Invalid Sui address");return e&&c.hasMvrName(e)&&(e=(await this.core.mvr.resolveType({type:e})).type),await this.transport.request({method:"suix_getCoins",params:[a,e,s,t],signal:i})}async getAllCoins(e){if(!e.owner||!r.isValidSuiAddress(r.normalizeSuiAddress(e.owner)))throw new Error("Invalid Sui address");return await this.transport.request({method:"suix_getAllCoins",params:[e.owner,e.cursor,e.limit],signal:e.signal})}async getBalance({owner:e,coinType:a,signal:s}){if(!e||!r.isValidSuiAddress(r.normalizeSuiAddress(e)))throw new Error("Invalid Sui address");return a&&c.hasMvrName(a)&&(a=(await this.core.mvr.resolveType({type:a})).type),await this.transport.request({method:"suix_getBalance",params:[e,a],signal:s})}async getAllBalances(e){if(!e.owner||!r.isValidSuiAddress(r.normalizeSuiAddress(e.owner)))throw new Error("Invalid Sui address");return await this.transport.request({method:"suix_getAllBalances",params:[e.owner],signal:e.signal})}async getCoinMetadata({coinType:e,signal:a}){return e&&c.hasMvrName(e)&&(e=(await this.core.mvr.resolveType({type:e})).type),await this.transport.request({method:"suix_getCoinMetadata",params:[e],signal:a})}async getTotalSupply({coinType:e,signal:a}){return e&&c.hasMvrName(e)&&(e=(await this.core.mvr.resolveType({type:e})).type),await this.transport.request({method:"suix_getTotalSupply",params:[e],signal:a})}async call(e,a,{signal:s}={}){return await this.transport.request({method:e,params:a,signal:s})}async getMoveFunctionArgTypes({package:e,module:a,function:s,signal:t}){return e&&n.isValidNamedPackage(e)&&(e=(await this.core.mvr.resolvePackage({package:e})).package),await this.transport.request({method:"sui_getMoveFunctionArgTypes",params:[e,a,s],signal:t})}async getNormalizedMoveModulesByPackage({package:e,signal:a}){return e&&n.isValidNamedPackage(e)&&(e=(await this.core.mvr.resolvePackage({package:e})).package),await this.transport.request({method:"sui_getNormalizedMoveModulesByPackage",params:[e],signal:a})}async getNormalizedMoveModule({package:e,module:a,signal:s}){return e&&n.isValidNamedPackage(e)&&(e=(await this.core.mvr.resolvePackage({package:e})).package),await this.transport.request({method:"sui_getNormalizedMoveModule",params:[e,a],signal:s})}async getNormalizedMoveFunction({package:e,module:a,function:s,signal:t}){return e&&n.isValidNamedPackage(e)&&(e=(await this.core.mvr.resolvePackage({package:e})).package),await this.transport.request({method:"sui_getNormalizedMoveFunction",params:[e,a,s],signal:t})}async getNormalizedMoveStruct({package:e,module:a,struct:s,signal:t}){return e&&n.isValidNamedPackage(e)&&(e=(await this.core.mvr.resolvePackage({package:e})).package),await this.transport.request({method:"sui_getNormalizedMoveStruct",params:[e,a,s],signal:t})}async getOwnedObjects(e){if(!e.owner||!r.isValidSuiAddress(r.normalizeSuiAddress(e.owner)))throw new Error("Invalid Sui address");const a=e.filter?{...e.filter}:void 0;return a&&"MoveModule"in a&&n.isValidNamedPackage(a.MoveModule.package)?a.MoveModule={module:a.MoveModule.module,package:(await this.core.mvr.resolvePackage({package:a.MoveModule.package})).package}:a&&"StructType"in a&&c.hasMvrName(a.StructType)&&(a.StructType=(await this.core.mvr.resolveType({type:a.StructType})).type),await this.transport.request({method:"suix_getOwnedObjects",params:[e.owner,{filter:a,options:e.options},e.cursor,e.limit],signal:e.signal})}async getObject(e){if(!e.id||!r.isValidSuiObjectId(r.normalizeSuiObjectId(e.id)))throw new Error("Invalid Sui Object id");return await this.transport.request({method:"sui_getObject",params:[e.id,e.options],signal:e.signal})}async tryGetPastObject(e){return await this.transport.request({method:"sui_tryGetPastObject",params:[e.id,e.version,e.options],signal:e.signal})}async multiGetObjects(e){if(e.ids.forEach(s=>{if(!s||!r.isValidSuiObjectId(r.normalizeSuiObjectId(s)))throw new Error(`Invalid Sui Object id ${s}`)}),e.ids.length!==new Set(e.ids).size)throw new Error(`Duplicate object ids in batch call ${e.ids}`);return await this.transport.request({method:"sui_multiGetObjects",params:[e.ids,e.options],signal:e.signal})}async queryTransactionBlocks({filter:e,options:a,cursor:s,limit:t,order:i,signal:o}){return e&&"MoveFunction"in e&&n.isValidNamedPackage(e.MoveFunction.package)&&(e={...e,MoveFunction:{package:(await this.core.mvr.resolvePackage({package:e.MoveFunction.package})).package}}),await this.transport.request({method:"suix_queryTransactionBlocks",params:[{filter:e,options:a},s,t,(i||"descending")==="descending"],signal:o})}async getTransactionBlock(e){if(!r.isValidTransactionDigest(e.digest))throw new Error("Invalid Transaction digest");return await this.transport.request({method:"sui_getTransactionBlock",params:[e.digest,e.options],signal:e.signal})}async multiGetTransactionBlocks(e){if(e.digests.forEach(s=>{if(!r.isValidTransactionDigest(s))throw new Error(`Invalid Transaction digest ${s}`)}),e.digests.length!==new Set(e.digests).size)throw new Error(`Duplicate digests in batch call ${e.digests}`);return await this.transport.request({method:"sui_multiGetTransactionBlocks",params:[e.digests,e.options],signal:e.signal})}async executeTransactionBlock({transactionBlock:e,signature:a,options:s,requestType:t,signal:i}){const o=await this.transport.request({method:"sui_executeTransactionBlock",params:[typeof e=="string"?e:d.toBase64(e),Array.isArray(a)?a:[a],s],signal:i});if(t==="WaitForLocalExecution")try{await this.waitForTransaction({digest:o.digest})}catch{}return o}async signAndExecuteTransaction({transaction:e,signer:a,...s}){let t;e instanceof Uint8Array?t=e:(e.setSenderIfNotSet(a.toSuiAddress()),t=await e.build({client:this}));const{signature:i,bytes:o}=await a.signTransaction(t);return this.executeTransactionBlock({transactionBlock:o,signature:i,...s})}async getTotalTransactionBlocks({signal:e}={}){const a=await this.transport.request({method:"sui_getTotalTransactionBlocks",params:[],signal:e});return BigInt(a)}async getReferenceGasPrice({signal:e}={}){const a=await this.transport.request({method:"suix_getReferenceGasPrice",params:[],signal:e});return BigInt(a)}async getStakes(e){if(!e.owner||!r.isValidSuiAddress(r.normalizeSuiAddress(e.owner)))throw new Error("Invalid Sui address");return await this.transport.request({method:"suix_getStakes",params:[e.owner],signal:e.signal})}async getStakesByIds(e){return e.stakedSuiIds.forEach(a=>{if(!a||!r.isValidSuiObjectId(r.normalizeSuiObjectId(a)))throw new Error(`Invalid Sui Stake id ${a}`)}),await this.transport.request({method:"suix_getStakesByIds",params:[e.stakedSuiIds],signal:e.signal})}async getLatestSuiSystemState({signal:e}={}){return await this.transport.request({method:"suix_getLatestSuiSystemState",params:[],signal:e})}async queryEvents({query:e,cursor:a,limit:s,order:t,signal:i}){return e&&"MoveEventType"in e&&c.hasMvrName(e.MoveEventType)&&(e={...e,MoveEventType:(await this.core.mvr.resolveType({type:e.MoveEventType})).type}),e&&"MoveEventModule"in e&&n.isValidNamedPackage(e.MoveEventModule.package)&&(e={...e,MoveEventModule:{module:e.MoveEventModule.module,package:(await this.core.mvr.resolvePackage({package:e.MoveEventModule.package})).package}}),"MoveModule"in e&&n.isValidNamedPackage(e.MoveModule.package)&&(e={...e,MoveModule:{module:e.MoveModule.module,package:(await this.core.mvr.resolvePackage({package:e.MoveModule.package})).package}}),await this.transport.request({method:"suix_queryEvents",params:[e,a,s,(t||"descending")==="descending"],signal:i})}async subscribeEvent(e){return this.transport.subscribe({method:"suix_subscribeEvent",unsubscribe:"suix_unsubscribeEvent",params:[e.filter],onMessage:e.onMessage,signal:e.signal})}async subscribeTransaction(e){return this.transport.subscribe({method:"suix_subscribeTransaction",unsubscribe:"suix_unsubscribeTransaction",params:[e.filter],onMessage:e.onMessage,signal:e.signal})}async devInspectTransactionBlock(e){var s,t;let a;if(v.isTransaction(e.transactionBlock))e.transactionBlock.setSenderIfNotSet(e.sender),a=d.toBase64(await e.transactionBlock.build({client:this,onlyTransactionKind:!0}));else if(typeof e.transactionBlock=="string")a=e.transactionBlock;else if(e.transactionBlock instanceof Uint8Array)a=d.toBase64(e.transactionBlock);else throw new Error("Unknown transaction block format.");return(s=e.signal)==null||s.throwIfAborted(),await this.transport.request({method:"sui_devInspectTransactionBlock",params:[e.sender,a,(t=e.gasPrice)==null?void 0:t.toString(),e.epoch],signal:e.signal})}async dryRunTransactionBlock(e){return await this.transport.request({method:"sui_dryRunTransactionBlock",params:[typeof e.transactionBlock=="string"?e.transactionBlock:d.toBase64(e.transactionBlock)]})}async getDynamicFields(e){if(!e.parentId||!r.isValidSuiObjectId(r.normalizeSuiObjectId(e.parentId)))throw new Error("Invalid Sui Object id");return await this.transport.request({method:"suix_getDynamicFields",params:[e.parentId,e.cursor,e.limit],signal:e.signal})}async getDynamicFieldObject(e){return await this.transport.request({method:"suix_getDynamicFieldObject",params:[e.parentId,e.name],signal:e.signal})}async getLatestCheckpointSequenceNumber({signal:e}={}){const a=await this.transport.request({method:"sui_getLatestCheckpointSequenceNumber",params:[],signal:e});return String(a)}async getCheckpoint(e){return await this.transport.request({method:"sui_getCheckpoint",params:[e.id],signal:e.signal})}async getCheckpoints(e){return await this.transport.request({method:"sui_getCheckpoints",params:[e.cursor,e==null?void 0:e.limit,e.descendingOrder],signal:e.signal})}async getCommitteeInfo(e){return await this.transport.request({method:"suix_getCommitteeInfo",params:[e==null?void 0:e.epoch],signal:e==null?void 0:e.signal})}async getNetworkMetrics({signal:e}={}){return await this.transport.request({method:"suix_getNetworkMetrics",params:[],signal:e})}async getAddressMetrics({signal:e}={}){return await this.transport.request({method:"suix_getLatestAddressMetrics",params:[],signal:e})}async getEpochMetrics(e){return await this.transport.request({method:"suix_getEpochMetrics",params:[e==null?void 0:e.cursor,e==null?void 0:e.limit,e==null?void 0:e.descendingOrder],signal:e==null?void 0:e.signal})}async getAllEpochAddressMetrics(e){return await this.transport.request({method:"suix_getAllEpochAddressMetrics",params:[e==null?void 0:e.descendingOrder],signal:e==null?void 0:e.signal})}async getEpochs(e){return await this.transport.request({method:"suix_getEpochs",params:[e==null?void 0:e.cursor,e==null?void 0:e.limit,e==null?void 0:e.descendingOrder],signal:e==null?void 0:e.signal})}async getMoveCallMetrics({signal:e}={}){return await this.transport.request({method:"suix_getMoveCallMetrics",params:[],signal:e})}async getCurrentEpoch({signal:e}={}){return await this.transport.request({method:"suix_getCurrentEpoch",params:[],signal:e})}async getValidatorsApy({signal:e}={}){return await this.transport.request({method:"suix_getValidatorsApy",params:[],signal:e})}async getChainIdentifier({signal:e}={}){const a=await this.getCheckpoint({id:"0",signal:e}),s=m.fromBase58(a.digest);return h.toHex(s.slice(0,4))}async resolveNameServiceAddress(e){return await this.transport.request({method:"suix_resolveNameServiceAddress",params:[e.name],signal:e.signal})}async resolveNameServiceNames({format:e="dot",...a}){const{nextCursor:s,hasNextPage:t,data:i}=await this.transport.request({method:"suix_resolveNameServiceNames",params:[a.address,a.cursor,a.limit],signal:a.signal});return{hasNextPage:t,nextCursor:s,data:i.map(o=>y.normalizeSuiNSName(o,e))}}async getProtocolConfig(e){return await this.transport.request({method:"sui_getProtocolConfig",params:[e==null?void 0:e.version],signal:e==null?void 0:e.signal})}async verifyZkLoginSignature(e){return await this.transport.request({method:"sui_verifyZkLoginSignature",params:[e.bytes,e.signature,e.intentScope,e.author],signal:e.signal})}async waitForTransaction({signal:e,timeout:a=60*1e3,pollInterval:s=2*1e3,...t}){const i=AbortSignal.timeout(a),o=new Promise((g,l)=>{i.addEventListener("abort",()=>l(i.reason))});for(o.catch(()=>{});!i.aborted;){e==null||e.throwIfAborted();try{return await this.getTransactionBlock(t)}catch{await Promise.race([new Promise(l=>setTimeout(l,s)),o])}}throw i.throwIfAborted(),new Error("Unexpected error while waiting for transaction block.")}experimental_asClientExtension(){return{name:"jsonRPC",register:()=>this}}}exports.SuiClient=M;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index112.cjs"),j=require("./index119.cjs");function q(n){const{batch:s,chain:e,ccipRead:a,key:d="base",name:b="Base Client",type:f="base"}=n,o=n.experimental_blockTag??(typeof(e==null?void 0:e.experimental_preconfirmationTime)=="number"?"pending":void 0),g=(e==null?void 0:e.blockTime)??12e3,m=Math.min(Math.max(Math.floor(g/2),500),4e3),t=n.pollingInterval??m,p=n.cacheTime??t,x=n.account?h.parseAccount(n.account):void 0,{config:T,request:k,value:y}=n.transport({chain:e,pollingInterval:t}),v={...T,...y},c={account:x,batch:s,cacheTime:p,ccipRead:a,chain:e,key:d,name:b,pollingInterval:t,request:k,transport:v,type:f,uid:j.uid(),...o?{experimental_blockTag:o}:{}};function i(l){return _=>{const u=_(l);for(const M in c)delete u[M];const r={...l,...u};return Object.assign(r,{extend:i(r)})}}return Object.assign(c,{extend:i(c)})}exports.createClient=q;
|