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 8f9535cf35b0f2b183ac4013a7ed11b246486964.
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
..
2024-08-26 13:18:59 +00:00
2024-08-26 13:18:59 +00:00
2024-06-10 22:47:29 +00:00
2024-05-23 15:29:30 +00:00
2024-09-17 04:18:15 +00:00
2024-02-09 21:40:30 +00:00
2024-09-17 04:18:15 +00:00
2024-01-11 08:45:23 -08:00
2023-12-22 13:04:01 +01:00
2024-01-11 08:45:23 -08:00
2024-08-26 13:18:59 +00:00
2023-04-19 15:06:00 +02:00
2024-02-09 21:40:30 +00:00
2023-12-21 06:41:43 +00:00
2022-06-14 09:19:35 -06:00