nim-codex/tests
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
..
circuits/fixtures Fixes prover behavior with singleton proof trees (#859) 2024-07-18 13:25:06 +00:00
codex Update advertising (#862) 2024-08-26 13:18:59 +00:00
contracts feat: add `--payout-address` (#870) 2024-09-17 04:18:15 +00:00
fixtures Node setup (#32) 2022-01-10 09:32:56 -06:00
helpers Chronos v4 Update (v3 Compat Mode) (#814) 2024-07-18 21:04:33 +00:00
integration Chronos v4 Update (v3 Compat Mode) (#814) 2024-07-18 21:04:33 +00:00
asynctest.nim update asynctest to 0.5.1 (#671) 2024-01-29 17:03:51 -03:00
checktest.nim update asynctest to 0.5.1 (#671) 2024-01-29 17:03:51 -03:00
config.nims [build] fix: ignore logging when running singular tests (#369) 2023-03-16 15:32:09 +01:00
coverage.nim Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
coverage.nims Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
ethertest.nim Chronos v4 Update (v3 Compat Mode) (#814) 2024-07-18 21:04:33 +00:00
examples.nim feat: expiry specified with number of seconds (#793) 2024-05-06 17:35:46 +02:00
helpers.nim Metadata in LevelDB (#806) 2024-05-30 06:57:10 +00:00
logging.nim feat: create logging proxy (#663) 2024-01-22 23:35:03 -08:00
nimlldb.py Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
testCodex.nim feat: create logging proxy (#663) 2024-01-22 23:35:03 -08:00
testContracts.nim Validator (#387) 2023-04-19 15:06:00 +02:00
testIntegration.nim Fix verifiable manifest constructor (#844) 2024-06-26 20:02:39 +00:00
testTaiko.nim refactor: use serde for json de/serialization instead of utils/json (#704) 2024-03-19 03:25:13 +00:00