-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into add-ledger-command-3
- Loading branch information
Showing
75 changed files
with
1,467 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
language: node_js | ||
node_js: | ||
- 6 | ||
- 8 | ||
- 9 | ||
script: | ||
- yarn compile | ||
- yarn test | ||
- yarn build |
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,30 @@ | ||
## prepareCheckCancel | ||
|
||
`prepareCheckCancel(address: string, checkCancel: Object, instructions: Object): Promise<Object>` | ||
|
||
Prepare a Check cancellation transaction. This cancels an unredeemed Check, removing it from the ledger without sending any money. The prepared transaction must subsequently be [signed](#sign) and [submitted](#submit). | ||
|
||
### Parameters | ||
|
||
<%- renderSchema('input/prepare-check-cancel.json') %> | ||
|
||
### Return Value | ||
|
||
This method returns a promise that resolves with an object with the following structure: | ||
|
||
<aside class="notice"> | ||
All "prepare*" methods have the same return type. | ||
</aside> | ||
|
||
<%- renderSchema('output/prepare.json') %> | ||
|
||
### Example | ||
|
||
```javascript | ||
const address = 'r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59'; | ||
const checkCancel = <%- importFile('test/fixtures/requests/prepare-check-cancel.json') %>; | ||
return api.prepareCheckCancel(address, checkCancel).then(prepared => | ||
{/* ... */}); | ||
``` | ||
|
||
<%- renderFixture('responses/prepare-check-cancel.json') %> |
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,30 @@ | ||
## prepareCheckCash | ||
|
||
`prepareCheckCash(address: string, checkCash: Object, instructions: Object): Promise<Object>` | ||
|
||
Prepare a Check cashing transaction. This redeems a Check to receive up to the amount authorized by the corresponding CheckCreate transaction. The prepared transaction must subsequently be [signed](#sign) and [submitted](#submit). | ||
|
||
### Parameters | ||
|
||
<%- renderSchema('input/prepare-check-cash.json') %> | ||
|
||
### Return Value | ||
|
||
This method returns a promise that resolves with an object with the following structure: | ||
|
||
<aside class="notice"> | ||
All "prepare*" methods have the same return type. | ||
</aside> | ||
|
||
<%- renderSchema('output/prepare.json') %> | ||
|
||
### Example | ||
|
||
```javascript | ||
const address = 'r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59'; | ||
const checkCash = <%- importFile('test/fixtures/requests/prepare-check-cash-amount.json') %>; | ||
return api.prepareCheckCash(address, checkCash).then(prepared => | ||
{/* ... */}); | ||
``` | ||
|
||
<%- renderFixture('responses/prepare-check-cash-amount.json') %> |
Oops, something went wrong.