@@ -161,7 +161,7 @@ export class DataUnion {
161
161
* Get the tx promise for withdrawing all your earnings
162
162
* @returns await on call .wait to actually send the tx
163
163
*/
164
- private async getWithdrawAllTx ( sendToMainnet : boolean = true ) : Promise < ContractTransaction > {
164
+ private async getWithdrawAllTx ( sendToMainnet = true ) : Promise < ContractTransaction > {
165
165
const signer = await this . client . ethereum . getSidechainSigner ( )
166
166
const address = await signer . getAddress ( )
167
167
const duSidechain = await this . getContracts ( ) . getSidechainContract ( this . contractAddress )
@@ -202,7 +202,7 @@ export class DataUnion {
202
202
* @param recipientAddress - the address to receive the tokens
203
203
* @returns await on call .wait to actually send the tx
204
204
*/
205
- private async getWithdrawAllToTx ( recipientAddress : EthereumAddress , sendToMainnet : boolean = true ) : Promise < ContractTransaction > {
205
+ private async getWithdrawAllToTx ( recipientAddress : EthereumAddress , sendToMainnet = true ) : Promise < ContractTransaction > {
206
206
const signer = await this . client . ethereum . getSidechainSigner ( )
207
207
const address = await signer . getAddress ( )
208
208
const duSidechain = await this . getContracts ( ) . getSidechainContract ( this . contractAddress )
@@ -363,7 +363,7 @@ export class DataUnion {
363
363
/**
364
364
* Add a new data union secret
365
365
*/
366
- async createSecret ( name : string = 'Untitled Data Union Secret' ) : Promise < string > {
366
+ async createSecret ( name = 'Untitled Data Union Secret' ) : Promise < string > {
367
367
const url = getEndpointUrl ( this . client . options . restUrl , 'dataunions' , this . contractAddress , 'secrets' )
368
368
const res = await authFetch < { secret : string } > (
369
369
url ,
@@ -433,7 +433,7 @@ export class DataUnion {
433
433
* @param memberAddress - the other member who gets their tokens out of the Data Union
434
434
* @returns await on call .wait to actually send the tx
435
435
*/
436
- private async getWithdrawAllToMemberTx ( memberAddress : EthereumAddress , sendToMainnet : boolean = true ) : Promise < ContractTransaction > {
436
+ private async getWithdrawAllToMemberTx ( memberAddress : EthereumAddress , sendToMainnet = true ) : Promise < ContractTransaction > {
437
437
const a = getAddress ( memberAddress ) // throws if bad address
438
438
const duSidechain = await this . getContracts ( ) . getSidechainContract ( this . contractAddress )
439
439
return duSidechain . withdrawAll ( a , sendToMainnet )
@@ -475,7 +475,7 @@ export class DataUnion {
475
475
memberAddress : EthereumAddress ,
476
476
recipientAddress : EthereumAddress ,
477
477
signature : string ,
478
- sendToMainnet : boolean = true ,
478
+ sendToMainnet = true ,
479
479
) {
480
480
const duSidechain = await this . getContracts ( ) . getSidechainContract ( this . contractAddress )
481
481
return duSidechain . withdrawAllToSigned ( memberAddress , recipientAddress , sendToMainnet , signature )
@@ -669,7 +669,7 @@ export class DataUnion {
669
669
/**
670
670
* @returns null if message was already transported, ELSE the mainnet AMB signature execution transaction receipt
671
671
*/
672
- async transportMessage ( messageHash : AmbMessageHash , pollingIntervalMs : number = 1000 , retryTimeoutMs : number = 300000 ) {
672
+ async transportMessage ( messageHash : AmbMessageHash , pollingIntervalMs = 1000 , retryTimeoutMs = 300000 ) {
673
673
const helper = this . getContracts ( )
674
674
const [ sidechainAmb , mainnetAmb ] = await Promise . all ( [
675
675
helper . getSidechainAmb ( ) ,
0 commit comments