This repository has been archived by the owner on Aug 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 110
swap: unify variable types, pt. 4 #2087
Open
mortelli
wants to merge
91
commits into
master
Choose a base branch
from
swap-unify-variable-types-iv
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
91 commits
Select commit
Hold shift + click to select a range
eca2e54
uint256: add first implementation for Int256
mortelli 08df85b
uint256: iterate implementation for Int256, refactor Uint256
mortelli c6e0960
uint256: rename package to boundedint
mortelli 58beba2
Merge remote-tracking branch 'origin/swap-unify-variable-types-ii' in…
mortelli ece8ceb
swap: fix formatting
mortelli 3ab3cda
swap: fix formatting
mortelli 6e8bbcb
swap: rename FromUint64 func to Uint64ToUint256
mortelli b3013ea
swap: rename FromUint64 to Uint64ToUint256
mortelli b26159a
Merge remote-tracking branch 'origin/master' into swap-unify-variable…
mortelli 1442c1b
boundedint: small change to comments
mortelli 560c13d
boundedint: add Int64ToInt256 func
mortelli d2ad8f2
boundedint, swarm, swap, main: add BoundedInt interface, change Cmp s…
mortelli ec696e8
swap: fix compile errors in api test
mortelli 440e4c6
swap: fix compile errors in protocol test
mortelli 2b81a9e
swap: fix compile errors in simulations test
mortelli 0678e50
swap: fix compile errors in swap test
mortelli 0cfebfe
swap: fix linter errors
mortelli 904cfab
boundedint: change initial value for boundedints to 0
mortelli 4cee832
Merge remote-tracking branch 'origin/master' into swap-unify-variable…
mortelli cc86c61
Merge remote-tracking branch 'origin/master' into swap-unify-variable…
mortelli 8a26add
main: update config tests for boundedint thresholds
mortelli e16b8f0
boundedint: change initial value for boundedints to 0
mortelli fe2924a
Merge remote-tracking branch 'origin/swap-unify-variable-types-iii' i…
mortelli 14bb3b3
boundedint: rename Uint256TestCase structure to BoundedIntTestCase
mortelli a628927
boundedint: add tests for Int256 type
mortelli e688755
Merge remote-tracking branch 'origin/master' into swap-unify-variable…
mortelli fbd16c6
boundedint: iterate Int256 tests
mortelli d71e7c0
boundedint: iterate boundedint tests
mortelli 264b9ad
swap: fix bug with wrong package name
mortelli 0bd16a1
boundedint: iterate boundedint tests
mortelli fff2c10
boundedint: iterate boundedint tests
mortelli 386fc63
boundedint: fix linter errors
mortelli 65f5104
Merge remote-tracking branch 'origin/master' into swap-unify-variable…
mortelli af7339a
Merge remote-tracking branch 'origin/master' into swap-unify-variable…
mortelli de7f1dd
Merge remote-tracking branch 'origin/swap-unify-variable-types-iii' i…
mortelli 91b56c7
Merge remote-tracking branch 'origin/master' into swap-unify-variable…
mortelli 6bff02e
swap: fix import order
mortelli 97fe637
swap: fix wrong backend import
mortelli d59666e
swap, boundedint: rename boundedint package to int256
mortelli ed4af97
int256: rename test case struct
mortelli b7f9ed7
int256: rename Uint64ToUint256 func to Uint256From, add Int256From fu…
mortelli c0ddb1b
int256: small change to test cases names
mortelli 2fe9327
int256: add comments to test cases array
mortelli f5261bd
Merge remote-tracking branch 'origin/swap-unify-variable-types-iii' i…
mortelli 51de061
int256: rename Int64ToInt256 function to Int256From
mortelli cc0ed2a
api, main, swap: remove de-reference for default swap thresholds
mortelli 9254abe
main: small refactor to TestConfigCmdLineOverrides function
mortelli 1fc4558
Merge remote-tracking branch 'origin/master' into swap-unify-variable…
mortelli ce58332
int256: rename Cmp to cmp to make it private since it was not used ou…
mortelli 308e98c
int256: hard-code int256 and uint256 test cases value fields in which…
mortelli 05ecc7c
int256: change signature of Int256 and Uint256 Copy methods to receiv…
mortelli 25704d3
int256: make Int256 Set function private, instead allow the construct…
mortelli 0dc050a
int256: make Uint256 Set function private, instead allow the construc…
mortelli f401aa5
swap: replace constructor calls for Uint256 struct with the new signa…
mortelli 7084544
int256: fix docstring for NewUint256 func
mortelli 68d0679
int256: reorder Int256 and Uint256 funcs for more clarity and consist…
mortelli 142a6b5
int256: fix casing in Uint256 set docstring
mortelli 7e66082
Merge remote-tracking branch 'origin/swap-unify-variable-types-iii' i…
mortelli 04bb9a5
swap: replace constructor calls for Uint256 struct with the new signa…
mortelli 95f0d54
cmd/swarm, swap: swap replace constructor calls in tests for Uint256 …
mortelli f4a2197
int256: change param type of Equals func for Uint256 type to BigIntWr…
mortelli 53d2d26
Merge remote-tracking branch 'origin/master' into swap-unify-variable…
mortelli 1bbdbf8
Merge remote-tracking branch 'origin/swap-unify-variable-types-iii' i…
mortelli 1ba6969
Merge remote-tracking branch 'origin/master' into swap-unify-variable…
mortelli 0cb9464
int256: change MarshalJSON to use value semantics
mortelli 3767d3e
int256: change MarshalJSON to use value semantics
mortelli 2aaac70
int256: change 2^8 int256 test case to hard-coded value
mortelli 6f7ba29
int256: remove unnecessary allocations in Int256From, Uint256From, Co…
mortelli 307d6b9
int256: add TestIn256ValueInjection and TestUin256ValueInjection funcs
mortelli 6e2f7e4
int256: change Int256 value field and funcs to user pointer semantics
mortelli 968a3b4
Merge remote-tracking branch 'origin/master' into swap-unify-variable…
mortelli 7ad6424
int256: change Uint256 value field and funcs to user pointer semantics
mortelli 208ef2f
int256: fix Uint256 tests to work with pointer semantics
mortelli 23dad45
swap, contracts/swap: fix swap code to work with new int256 pointer s…
mortelli 82549c0
swap: fix swap tests to work with new int256 pointer semantics
mortelli 8ef80df
int256: make sure all big.Int Set calls are done from pointer receive…
mortelli 8206716
int256: extract checkUint256Bounds and checkInt256Bounds funcs, fix e…
mortelli ddbe749
int256: fix wrong call of boundary-checking in `Int256`'s `set` func
mortelli 1b684e6
Merge remote-tracking branch 'origin/swap-unify-variable-types-iii' i…
mortelli 1418124
int256: update BigIntWrapper interface to use pointer semantics
mortelli e591aff
int256: add nil value checking to checkInt256Bounds and checkUint256B…
mortelli ac6bcb7
Merge remote-tracking branch 'origin/master' into swap-unify-variable…
mortelli 138fcbe
int256: quote and unquote Int256 and Uint256 values in marshaling/unm…
mortelli f7bb5c2
int256: disallow nil values when unmarshaling Int256 and Uint256 structs
mortelli 48b4707
int256: remove unneeded code in Uint256 UnmarshalJSON func
mortelli acc7d11
Merge remote-tracking branch 'origin/swap-unify-variable-types-iii' i…
mortelli 2d0837f
main: simplify TestConfigCmdLineOverrides thresholds printing
mortelli 159baee
Merge remote-tracking branch 'origin/master' into swap-unify-variable…
mortelli b57d27a
int256: extend Int256 and Uint256 Value funcs to return nil if possib…
mortelli 8be556e
remove unneeded change to go.mod
mortelli 0f6e721
swap: small refactor to tests
mortelli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my favorite :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i am somewhat partial to
909
as well 😛