codex-contracts-eth/test
Eric 73a2ca0bd3
feat: adds an optional `payoutAddress` to allow payouts to be paid to separate address (#144)
* initial commit for splitting payouts

Collateral goes to slot's host address, while reward payouts go to the slot's host payoutAddress

* Add fillSlot overload to make payoutAddress "optional"

* add tests for payoutAddress

* add doc to patchFillSlotOverloads

* formatting

* remove optional payoutAddress parameter

* Move payoutAddress to freeSlot

- remove payoutAddress parameter from `fillSlot`
- remove `payoutAddress` from slot struct and storage
- add payoutAddress parameter to `freeSlot`, preventing the need for storage

* formatting

* update certora spec to match updated function signature

* Add withdrawAddress to withdrawFunds

- prevent erc20 msg.sender blacklisting

* Update tests for paying out to withdrawAddress

* formatting

* Add collateralRecipient

* refactor: change withdrawFunds and freeSlot overloads

- `withdrawFunds` now has an option withdrawRecipient parameter
- `freeSlot` now has two optional parameters: rewardRecipient, and collateralRecipient. Both or none must be specified.

* update certora spec for new sigs
2024-08-19 17:09:48 +10:00
..
Endian.test.js Formatting 2024-01-25 13:16:49 +01:00
Marketplace.test.js feat: adds an optional `payoutAddress` to allow payouts to be paid to separate address (#144) 2024-08-19 17:09:48 +10:00
Proofs.test.js chore: add `downtimeProduct` configuration parameter (#138) 2024-08-14 15:50:32 +10:00
evm.js feat: partial payouts for cancelled requests (#69) 2023-10-16 11:14:02 +02:00
examples.js chore: add `downtimeProduct` configuration parameter (#138) 2024-08-14 15:50:32 +10:00
ids.js Merkle root is 32 bytes 2023-11-22 14:43:11 +01:00
marketplace.js feat: adds an optional `payoutAddress` to allow payouts to be paid to separate address (#144) 2024-08-19 17:09:48 +10:00
price.js [marketplace] Reward is paid out per second per slot 2022-08-08 11:51:14 +02:00
requests.js feat: expiry specified as duration (#99) 2024-05-06 15:13:32 +02:00
time.js clean up tests 2022-10-25 12:38:19 +11:00