SettlementFactory A class for creating settlement objects.
Constructor
Param | Type | Description |
---|---|---|
provider | NahmiiProvider |
A NahmiiProvider instance |
Calculates and returns the required settlements based on the intended stage amount
Kind: instance method of SettlementFactory
Returns: Promise
- A promise that resolves into an array containing the required settlement instances to start with.
Param | Type | Description |
---|---|---|
address | EthereumAddress | string |
The ethereum address |
stageMonetaryAmount | MonetaryAmount |
The intended stage amount in a currency |
Returns the existing settlements under a wallet/currency pair
Kind: instance method of SettlementFactory
Returns: Promise
- A promise that resolves into an array containing the settlement instances.
Param | Type | Description |
---|---|---|
address | EthereumAddress | string |
The ethereum address |
ct | EthereumAddress | string |
The currency address |