Skip to content

Commit

Permalink
Merge pull request #43 from qianbin/master
Browse files Browse the repository at this point in the history
add TxSigningService.dependsOn
  • Loading branch information
qianbin committed Apr 2, 2019
2 parents 4c24375 + 4571119 commit 963b2eb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,7 @@ Returns `Thor.Vendor.SigningService`: `Thor.Vendor.TXSigningService` or `Thor.Ve
+ `signer` - `(addr: string): this`: Enforces the specified address to sign the transaction
+ `gas` - `(gas: number): this`: Enforces the specified number as the maximum gas that can be consumed for the transaction
+ `dependsOn` - `(txid: string): this`: Set another txid as dependency ([Reference](https://github.com/vechain/thor/wiki/Transaction-Model#other-new-features))
+ `link` - `(url: string): this`: Set the link to reveal transaction-related information, the link will be used for connex to assemble a `callback url` by replacing the placeholder `{txid}` by `Transaction ID`
+ `comment` - `(text: string): this`: Set the comment for the transaction that will be revealed to the user
+ `request`: Send the request
Expand Down
6 changes: 6 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,12 @@ declare namespace Connex {
*/
gas(gas: number): this

/**
* set another txid as dependency
* @param txid
*/
dependsOn(txid: string): this

/**
* set the link to reveal tx related information.
* first appearance of slice '{txid}' in the given link url will be replaced with txid.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vechain/connex",
"version": "1.2.2",
"version": "1.2.3",
"description": "Standard interface to connect DApp with VeChain and user",
"main": "",
"scripts": {},
Expand Down

0 comments on commit 963b2eb

Please sign in to comment.