Commit Graph

721 Commits

Author SHA1 Message Date
Ben e9425e06d9
Updates cirdl to not change circuitdir folder 2024-09-19 13:26:17 +02:00
Ben 2c74fddf55
Replaces zip library with status-im/zippy library (which supports zip and tar) 2024-09-19 11:01:21 +02:00
Ben 0d26b19ab2
wip 2024-09-19 09:30:40 +02:00
Ben Bierens 30da9664d1
Merge branch 'master' into feature/rework-circuit-downloader 2024-09-17 10:51:46 +02:00
Eric e8e9820d5b
feat: add `--payout-address` (#870)
* feat: add `--payout-address`

Allows SPs to be paid out to a separate address, keeping their profits secure.
Supports https://github.com/codex-storage/codex-contracts-eth/pull/144 in the nim-codex client.

* Remove optional payoutAddress

Change --payout-address so that it is no longer optional. There is no longer an overload in `Marketplace.sol` for `fillSlot` accepting no `payoutAddress`.

* Update integration tests to include --payout-address

* move payoutAddress from fillSlot to freeSlot

* Update integration tests to use required payoutAddress

- to make payoutAddress required, the integration tests needed to avoid building the cli params until just before starting the node, otherwise if cli params were added ad-hoc, there would be an error after a non-required parameter was added before a required parameter.

* support client payout address

- withdrawFunds requires a withdrawAddress parameter, directs payouts for withdrawing of client funds (for a cancelled request) to go to that address.

* fix integration test

adds --payout-address to validators

* refactor: support withdrawFunds and freeSlot optional parameters

- withdrawFunds has an optional parameter for withdrawRecipient
- freeSlot has optional parameters for rewardRecipient and collateralRecipient
- change --payout-address to --reward-recipient to match contract signature naming

* Revert "Update integration tests to include --payout-address"

This reverts commit 8f9535cf35.
There are some valid improvements to the integration tests, but they can be handled in a separate PR.

* small fix

* bump contracts to fix marketplace spec

* bump codex-contracts-eth, now rebased on master

* bump codex-contracts-eth

now that feat/reward-address has been merged to master

* clean up, comments
2024-09-17 04:18:15 +00:00
Ben 64f4fbcb8f
Removes backendFactory placeholder type 2024-09-16 10:09:04 +02:00
Slava 656ce37158
Disable verify_circuit flag for releases
Signed-off-by: Slava <20563034+veaceslavdoina@users.noreply.github.com>
2024-09-11 11:51:26 +03:00
Slava 80e3e40f8b
Add cirdl support to the release workflow
Signed-off-by: Slava <20563034+veaceslavdoina@users.noreply.github.com>
2024-09-10 23:05:09 +03:00
Slava 5e3244c0d9
Add cirdl support to the docker entrypoint
Signed-off-by: Slava <20563034+veaceslavdoina@users.noreply.github.com>
2024-09-10 22:49:52 +03:00
Slava 68daaea106
Add cirdl support to the codex Dockerfile
Signed-off-by: Slava <20563034+veaceslavdoina@users.noreply.github.com>
2024-09-10 22:48:43 +03:00
benbierens 7da8c043e2
Fixes chronicles log output 2024-09-10 11:03:39 +02:00
benbierens 9433d9f7e0
Moves cirdl build output to 'build' folder. 2024-09-10 10:38:51 +02:00
benbierens c9a090a80c
replaces curl with chronos http session 2024-08-30 09:44:55 +02:00
benbierens 0badfe563e
Quotes path in download instruction. 2024-08-29 09:02:48 +02:00
Ben Bierens 7e4b657118
Merge branch 'master' into feature/rework-circuit-downloader 2024-08-28 09:22:00 +02:00
Ben Bierens 1e2ad95659
Update advertising (#862)
* Setting up advertiser

* Wires up advertiser

* cleanup

* test compiles

* tests pass

* setting up test for advertiser

* Finishes advertiser tests

* fixes commonstore tests

* Review comments by Giuliano

* Race condition found by Giuliano

* Review comment by Dmitriy

Co-authored-by: Dmitriy Ryajov <dryajov@gmail.com>
Signed-off-by: Ben Bierens <39762930+benbierens@users.noreply.github.com>

* fixes tests

---------

Signed-off-by: Ben Bierens <39762930+benbierens@users.noreply.github.com>
Co-authored-by: Dmitriy Ryajov <dryajov@gmail.com>
2024-08-26 13:18:59 +00:00
Ben bdb5eefa7e
Review comments by Dmitriy, part 1 2024-08-26 15:05:21 +02:00
benbierens f08a28c101
Restores tests for cli instructions 2024-08-23 11:55:43 +02:00
benbierens e1137a574c
Restores tests 2024-08-23 11:08:49 +02:00
benbierens 4a94df3663
Initializes backend in prover constructor 2024-08-23 10:31:05 +02:00
benbierens c1ae6e24d8
Fills in arguments in example command 2024-08-23 09:55:15 +02:00
benbierens 90a03935fe
moves start of prover into node.nim 2024-08-23 09:36:25 +02:00
Ben 497b86ed8c
cleans up testbackendfactory 2024-08-22 16:00:18 +02:00
Ben 571d01c82d
cleans up previous downloader implementation 2024-08-22 15:54:11 +02:00
Ben 4847155646
Cleanup building.md 2024-08-22 15:33:13 +02:00
Ben 2f3cabd4ae
includes testTools in testAll 2024-08-22 15:21:55 +02:00
Ben dc68550d27
Implements test for cirdl 2024-08-22 15:20:32 +02:00
Ben 030319a439
sets up test skeleton 2024-08-22 13:54:33 +02:00
Ben 10b8579697
Implements downloader tool 2024-08-22 13:40:03 +02:00
Ben fe9c042227
implements getting of circuit hash 2024-08-22 12:02:12 +02:00
Ben dd3bc400bf
sets up tool skeleton 2024-08-22 11:05:24 +02:00
Ben 771c6e4f40
Sets up downloader exe 2024-08-22 10:47:50 +02:00
Ben 41bf3a0f8f
Merge branch 'master' into feature/ceremony-files 2024-08-22 09:03:13 +02:00
Giuliano Mega e017b05cf1
Remove extra license file (#876)
* remove extra license

* center "apache license"
2024-08-19 09:48:03 +00:00
Eric 63ee4ca0f9
refactor(marketplace): generic querying of historical marketplace events (#872)
* refactor(marketplace): move marketplace events to the Market abstraction

Move marketplace contract events to the Market abstraction so the types can be shared across all modules that call the Market abstraction.

* Remove unneeded conversion

* Switch to generic implementation of event querying

* change parent type to MarketplaceEvent
2024-08-16 02:55:25 +00:00
Arnaud 15303125f6
Support CORS preflight requests when the storage request api returns an error (#878)
* Add CORS headers when the REST API is returning an error

* Use the allowedOrigin instead of the wilcard when setting the origin

Signed-off-by: Arnaud <arnaud@status.im>

---------

Signed-off-by: Arnaud <arnaud@status.im>
2024-08-15 23:57:50 +00:00
Eric eeb048e386
chore: add `downtimeProduct` config parameter (#867)
* chore: add `downtimeProduct` config parameter

* bump codex-contracts-eth to master
2024-08-15 02:31:02 +00:00
Arnaud bb9a5fbe92
Add OPTIONS endpoint to allow the content-type header for the upload endpoint (#869)
* Add OPTIONS endpoint to allow the content-type header
exec git commit --amend --no-edit -S

* Remove useless header "Access-Control-Headers" and add cache

Signed-off-by: Arnaud <arnaud@status.im>

---------

Signed-off-by: Arnaud <arnaud@status.im>
Co-authored-by: Giuliano Mega <giuliano.mega@gmail.com>
2024-08-14 21:08:04 +00:00
Giuliano Mega 2771ca6319
Add MIT/Apache licenses (#861)
* Add MIT/Apache licenses

* Center "Apache License"

Signed-off-by: Giuliano Mega <giuliano.mega@gmail.com>

* remove wrong legal entity; rename apache license file

---------

Signed-off-by: Giuliano Mega <giuliano.mega@gmail.com>
2024-08-13 15:38:17 +00:00
Slava b7934fc686
Downgrade to gcc 13 on Windows (#874)
* Downgrade to gcc 13 on Windows

Signed-off-by: Slava <20563034+veaceslavdoina@users.noreply.github.com>

* Increase build job timeout to 90 minutes

Signed-off-by: Slava <20563034+veaceslavdoina@users.noreply.github.com>

---------

Signed-off-by: Slava <20563034+veaceslavdoina@users.noreply.github.com>
2024-08-10 09:50:05 +00:00
Ben 64b82ded9b
Merge branch 'master' into feature/ceremony-files
# Conflicts:
#	tests/codex/slots/testprover.nim
2024-07-22 11:09:47 +02:00
Giuliano Mega 4f56f2af26
Chronos v4 Update (v3 Compat Mode) (#814)
* add changes to use chronos v4 in compat mode

* switch chronos to compat fix branch

* use nimbus-build-system with configurable Nim repo

* add missing imports

* add missing await

* bump compat

* pin nim version in Makefile

* add await instead of asyncSpawn to advertisement queue loop

* bump DHT to v0.5.0

* allow error state of `onBatch` to propagate upwards in test code

* pin Nim compiler commit to avoid fetching stale branch

* make CI build against branch head instead of merge

* fix handling of return values in testslotqueue
2024-07-18 21:04:33 +00:00
Giuliano Mega fbce240e3d
Fixes prover behavior with singleton proof trees (#859)
* add logs and test

* add Merkle proof checks

* factor out Circom input normalization, fix proof input serialization

* add test and update existing ones

* update circuit assets

* add back trace message

* switch contracts to fix branch

* update codex-contracts-eth to latest

* do not expose prove with prenormalized inputs
2024-07-18 13:25:06 +00:00
Slava 9a2a6fc639
Merge branch 'master' into feature/ceremony-files 2024-07-11 16:14:57 +03:00
Slava 8f740b42e6
Update Release workflow (#858)
Signed-off-by: Slava <20563034+veaceslavdoina@users.noreply.github.com>
2024-07-10 18:14:28 +00:00
benbierens d19edb9253
Merge branch 'master' into feature/ceremony-files 2024-07-03 19:38:49 +02:00
Tomasz Bekas 3ae73197c2
Bandaid for failing erasure coding (#855) 2024-07-03 14:44:00 +00:00
Giuliano Mega fbf1b51f57
Prover workshop band-aid (#853)
* add prover bandaid

* Improve error message text

Co-authored-by: Eric <5089238+emizzle@users.noreply.github.com>
Signed-off-by: Giuliano Mega <giuliano.mega@gmail.com>

---------

Signed-off-by: Giuliano Mega <giuliano.mega@gmail.com>
Co-authored-by: Eric <5089238+emizzle@users.noreply.github.com>
2024-07-03 11:27:56 +00:00
Eric 67facb4b2a
feat(rest): adds erasure coding constraints when requesting storage (#848)
* Rest API: add erasure coding constraints when requesting storage

* clean up

* Make error message for "dataset too small" more informative.

* fix API integration test

---------

Co-authored-by: gmega <giuliano.mega@gmail.com>
2024-06-27 21:26:19 +00:00
Giuliano Mega b004ca75f6
Bump Nim to 1.6.21 (#851)
* bump Nim to 1.6.21 (range type reset fixes)

* remove incompatible versions from compiler matrix
2024-06-27 19:58:27 +00:00