Skip to content

Commit

Permalink
Update ERC-6123: Minor fix to headlines (added subsection).
Browse files Browse the repository at this point in the history
Merged by EIP-Bot.
  • Loading branch information
cfries committed Aug 8, 2024
1 parent f899c81 commit 85eb202
Showing 1 changed file with 29 additions and 27 deletions.
56 changes: 29 additions & 27 deletions ERCS/erc-6123.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ The transactionData is emitted as part of the corresponding event: `TradeSettled
function afterTransfer(bool success, string memory transactionData) external;
```


#### Trade Termination: `requestTermination`

Allows an eligible party to request a mutual termination of the trade with the correspondig `tradeId` with a termination amount she is willing to pay and provide further termination terms (e.g. an XML)
Expand All @@ -142,6 +141,7 @@ The party that initiated `requestTradeTermination` has the option to withdraw th
function cancelTradeTermination(string memory tradeId, int256 terminationPayment, string memory terminationTerms) external;
```


### Trade Events

The following events are emitted during an SDC Trade life-cycle.
Expand Down Expand Up @@ -178,71 +178,73 @@ Emitted when a Trade is activated
event TradeActivated(string tradeId);
```

#### TradeTerminationRequest

### SettlementRequested

Emitted when a settlement is requested. May trigger the settlement phase.
Emitted when termination request is initiated by a counterparty

```solidity
event SettlementRequested(address initiator, string tradeData, string lastSettlementData);
event TradeTerminationRequest(address initiator, string tradeId, int256 terminationPayment, string terminationTerms);
```

### SettlementEvaluated
#### TradeTerminationConfirmed

Emitted when the settlement phase is started.
Emitted when termination request is confirmed by a counterparty

```solidity
event SettlementEvaluated(address initiator, int256 settlementAmount, string settlementData);
event TradeTerminationConfirmed(address confirmer, string tradeId, int256 terminationPayment, string terminationTerms);
```

### SettlementTransferred
#### TradeTerminationCanceled

Emitted when the settlement succeeded.
Emitted when termination request is canceled by the requesting counterparty

```solidity
event SettlementTransferred(string transactionData);
event TradeTerminationCanceled(address initiator, string tradeId, string terminationTerms);
```

#### TradeTerminated

### SettlementFailed

Emitted when the settlement failed.
Emitted when trade is terminated

```solidity
event SettlementFailed(string transactionData);
event TradeTerminated(string cause);
```


#### TradeTerminationRequest
### Settlement Events

Emitted when termination request is initiated by a counterparty
The following events are emitted during the settlement phases.

#### SettlementRequested

Emitted when a settlement is requested. May trigger the settlement phase.

```solidity
event TradeTerminationRequest(address initiator, string tradeId, int256 terminationPayment, string terminationTerms);
event SettlementRequested(address initiator, string tradeData, string lastSettlementData);
```

#### TradeTerminationConfirmed
#### SettlementEvaluated

Emitted when termination request is confirmed by a counterparty
Emitted when the settlement phase is started.

```solidity
event TradeTerminationConfirmed(address confirmer, string tradeId, int256 terminationPayment, string terminationTerms);
event SettlementEvaluated(address initiator, int256 settlementAmount, string settlementData);
```

#### TradeTerminationCanceled
#### SettlementTransferred

Emitted when termination request is canceled by the requesting counterparty
Emitted when the settlement succeeded.

```solidity
event TradeTerminationCanceled(address initiator, string tradeId, string terminationTerms);
event SettlementTransferred(string transactionData);
```

#### TradeTerminated
#### SettlementFailed

Emitted when trade is terminated
Emitted when the settlement failed.

```solidity
event TradeTerminated(string cause);
event SettlementFailed(string transactionData);
```


Expand Down

0 comments on commit 85eb202

Please sign in to comment.