-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
158 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Interface: RedeemerProxy | ||
|
||
Interface defining functions required to route tBTC redemption requests through | ||
the tBTC bridge by custom integrators. | ||
|
||
## Table of contents | ||
|
||
### Methods | ||
|
||
- [redeemerAddress](RedeemerProxy.md#redeemeraddress) | ||
- [requestRedemption](RedeemerProxy.md#requestredemption) | ||
|
||
## Methods | ||
|
||
### redeemerAddress | ||
|
||
▸ **redeemerAddress**(): [`ChainIdentifier`](ChainIdentifier.md) | ||
|
||
Chain identifier of the redeemer. This is the address that will be able to | ||
claim the tBTC tokens if anything goes wrong during the redemption process. | ||
|
||
#### Returns | ||
|
||
[`ChainIdentifier`](ChainIdentifier.md) | ||
|
||
#### Defined in | ||
|
||
[src/services/redemptions/redeemer-proxy.ts:13](https://github.com/keep-network/tbtc-v2/blob/main/typescript/src/services/redemptions/redeemer-proxy.ts#L13) | ||
|
||
___ | ||
|
||
### requestRedemption | ||
|
||
▸ **requestRedemption**(`redemptionData`): `Promise`\<[`Hex`](../classes/Hex.md)\> | ||
|
||
Requests redemption of tBTC token with determined redemption data. | ||
|
||
#### Parameters | ||
|
||
| Name | Type | Description | | ||
| :------ | :------ | :------ | | ||
| `redemptionData` | [`Hex`](../classes/Hex.md) | Data required to redeem the tBTC tokens. | | ||
|
||
#### Returns | ||
|
||
`Promise`\<[`Hex`](../classes/Hex.md)\> | ||
|
||
Target chain hash of the request redemption transaction | ||
(for example, Ethereum transaction hash) | ||
|
||
#### Defined in | ||
|
||
[src/services/redemptions/redeemer-proxy.ts:21](https://github.com/keep-network/tbtc-v2/blob/main/typescript/src/services/redemptions/redeemer-proxy.ts#L21) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters