-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added rebranding * Added Webhook support * Fixed travis * Fixed travis * Fixed README
- Loading branch information
1 parent
2546951
commit 40a1de9
Showing
17 changed files
with
346 additions
and
1,293 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
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
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 |
---|---|---|
@@ -1,15 +1,17 @@ | ||
import {Account, Deadline, EmptyMessage, NetworkCurrencyMosaic, NetworkType, TransferTransaction} from 'nem2-sdk'; | ||
import {TransactionURI} from 'nem2-uri-scheme'; | ||
import {Account, Deadline, EmptyMessage, NetworkCurrencyPublic, NetworkType, TransferTransaction} from 'symbol-sdk'; | ||
import {TransactionURI} from "../src/uris/TransactionURI"; | ||
|
||
const serializedTransaction = TransferTransaction.create( | ||
Deadline.create(), | ||
Account.generateNewAccount(NetworkType.TEST_NET).address, | ||
[NetworkCurrencyMosaic.createRelative(10)], | ||
[NetworkCurrencyPublic.createRelative(10)], | ||
EmptyMessage, | ||
NetworkType.TEST_NET | ||
).serialize(); | ||
const generationHash = ''; // replace with network generation hash | ||
|
||
const generationHash = 'ABC'; // replace with network generation hash | ||
const nodeUrl = 'http://localhost:3000'; | ||
const webhookUrl = 'http://myapp.local/id'; | ||
|
||
const transactionURI = new TransactionURI(serializedTransaction, generationHash, nodeUrl, webhookUrl); | ||
console.log(transactionURI.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
Oops, something went wrong.