ACCS
swapchain documentation › ACCS
Handler to create HTLCs on the respective blockchains to run an ACCS.
Hierarchy
- ACCS
Index
Methods
Methods
Static parseUserInput
▸ parseUserInput(fields: ACCSFields): Promise‹ACCSConfig›
Defined in pkg/accs/accs.ts:200
Parse user input to create config
Parameters:
| Name | Type | Description |
|---|---|---|
fields | ACCSFields |
Returns: Promise‹ACCSConfig›
Static proposeBTCForBTS
▸ proposeBTCForBTS(config: ACCSConfig): Promise‹void›
Defined in pkg/accs/accs.ts:325
Handles ACCS for proposer who wants BTC for BTS.
memberof ACCS
Parameters:
| Name | Type |
|---|---|
config | ACCSConfig |
Returns: Promise‹void›
Static proposeBTSForBTC
▸ proposeBTSForBTC(config: ACCSConfig): Promise‹void›
Defined in pkg/accs/accs.ts:260
Handles ACCS for proposer who wants BTS for BTC.
memberof ACCS
Parameters:
| Name | Type |
|---|---|
config | ACCSConfig |
Returns: Promise‹void›
Static run
▸ run(fields: ACCSFields): Promise‹void›
Defined in pkg/accs/accs.ts:618
Entrypoint for web app and CLI. Calls respective parse and swap methods.
memberof ACCS
Parameters:
| Name | Type | Description |
|---|---|---|
fields | ACCSFields | The raw user input object. |
Returns: Promise‹void›
Static takeBTCForBTS
▸ takeBTCForBTS(config: ACCSConfig): Promise‹void›
Defined in pkg/accs/accs.ts:504
Handles ACCS for accepter who wants BTC for BTS.
memberof ACCS
Parameters:
| Name | Type |
|---|---|
config | ACCSConfig |
Returns: Promise‹void›
Static takeBTSForBTC
▸ takeBTSForBTC(config: ACCSConfig): Promise‹void›
Defined in pkg/accs/accs.ts:391
Handles ACCS for accepter who wants BTS for BTC.
memberof ACCS
Parameters:
| Name | Type |
|---|---|
config | ACCSConfig |
Returns: Promise‹void›