@atomicfinance/client
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -39,8 +39,8 @@ import Client from './Client' | ||
async initializeContractAndOffer (input: InputDetails, outcomes: Array<OutcomeDetails>, oracleInfo: OracleInfo): Promise<OfferMessage> { | ||
return this.client.getMethod('initializeContractAndOffer')(input, outcomes, oracleInfo) | ||
async initializeContractAndOffer (input: InputDetails, outcomes: Array<OutcomeDetails>, oracleInfo: OracleInfo, startingIndex: number = 0): Promise<OfferMessage> { | ||
return this.client.getMethod('initializeContractAndOffer')(input, outcomes, oracleInfo, startingIndex) | ||
} | ||
async confirmContractOffer (offerMessage: OfferMessage): Promise<AcceptMessage> { | ||
return this.client.getMethod('confirmContractOffer')(offerMessage) | ||
async confirmContractOffer (offerMessage: OfferMessage, startingIndex: number = 0): Promise<AcceptMessage> { | ||
return this.client.getMethod('confirmContractOffer')(offerMessage, startingIndex) | ||
} | ||
@@ -60,2 +60,6 @@ | ||
async buildUnilateralClose (oracleSignature: string, outcomeIndex: number, contractId: string): Promise<string[]> { | ||
return this.client.getMethod('buildUnilateralClose')(oracleSignature, outcomeIndex, contractId) | ||
} | ||
hasDlc (contractId: string): boolean { | ||
@@ -65,4 +69,4 @@ return this.client.getMethod('hasDlc')(contractId) | ||
async importContract (contract: Contract, startingIndex: number = 0) { | ||
return this.client.getMethod('importContract')(contract, startingIndex) | ||
async importContract (contract: Contract) { | ||
return this.client.getMethod('importContract')(contract) | ||
} | ||
@@ -69,0 +73,0 @@ |
{ | ||
"name": "@atomicfinance/client", | ||
"umdName": "Client", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "> TODO: description", | ||
@@ -31,3 +31,3 @@ "author": "Matthew Black <mblackmblackmblack@gmail.com>", | ||
}, | ||
"gitHead": "018d6a4245cdcfec946fa0bd1f65c44a6aa1ede7" | ||
"gitHead": "c613365fc09d4485fea4c5df5bbdbecc4017181b" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3133682
4794