Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.0] UnsignedBigInt implementation #997

Merged
merged 64 commits into from
Dec 4, 2024
Merged

[6.0] UnsignedBigInt implementation #997

merged 64 commits into from
Dec 4, 2024

Conversation

kushti
Copy link
Member

@kushti kushti commented May 24, 2024

This PR contains implementation of new numeric type, UnsignedBigInt, 256 bits unsigned big integers.

@kushti kushti added this to the v6.0 milestone May 27, 2024
@kushti kushti changed the base branch from develop to v6.0.0 June 6, 2024 15:54
@kushti kushti mentioned this pull request Jun 10, 2024
26 tasks
@kushti kushti changed the base branch from v6.0.0 to i1006 September 13, 2024 21:33
@kushti kushti requested a review from aslesarenko November 15, 2024 23:16
@aslesarenko
Copy link
Member

@kushti the target branch seems to be not correct. I wonder if the changeset is so big because of that?

@kushti kushti changed the base branch from i1006 to v6.0.0 November 27, 2024 13:13
@kushti
Copy link
Member Author

kushti commented Nov 27, 2024

@kushti the target branch seems to be not correct. I wonder if the changeset is so big because of that?

weird it no retargeted automatically after merged, fixed manually

core/js/src/main/scala/sigma/js/Type.scala Outdated Show resolved Hide resolved
core/shared/src/main/scala/sigma/SigmaDsl.scala Outdated Show resolved Hide resolved
@@ -55,6 +55,7 @@ trait ContractSyntax { contract: SigmaContract =>
case _: String => StringType
case _: Unit => UnitType
case _: sigma.BigInt => BigIntRType
case _: sigma.BigInt => UnsignedBigIntRType
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this case is unreachable

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

(newName, Select(obj, newName, resType))
} else {
(nOriginal, selOriginal)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, why not just use different method names? This will be the only place with such exception, so will lead to more questions than answers.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is to provide unified interface to users (ErgoScript) developers, so kinda polymorphic exp method (which is then translated by typer into exp or expUnsigned, depends on argument)

kushti and others added 5 commits November 29, 2024 19:19
Co-authored-by: Alexander Slesarenko <aslesarenko@users.noreply.github.com>
Co-authored-by: Alexander Slesarenko <aslesarenko@users.noreply.github.com>
Co-authored-by: Alexander Slesarenko <aslesarenko@users.noreply.github.com>
@kushti
Copy link
Member Author

kushti commented Nov 29, 2024

@aslesarenko comments addressed, please make another pass!

@kushti kushti merged commit 1969223 into v6.0.0 Dec 4, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants