From 587265047b841d4b0b36b3c5cf40c6049cb5b2e8 Mon Sep 17 00:00:00 2001 From: siem Date: Wed, 7 Nov 2018 16:08:49 +0300 Subject: [PATCH 1/2] typo in docs. removed second package json. added package json edit on build --- build/build.ts | 6 ++-- build/package.json | 28 ---------------- build/utils.ts | 10 +++++- docs/globals.html | 80 +++++++++++++++++++++++----------------------- package.json | 14 +++++++- usage/index.ts | 2 +- 6 files changed, 66 insertions(+), 74 deletions(-) delete mode 100644 build/package.json diff --git a/build/build.ts b/build/build.ts index c4a9690..a459c90 100644 --- a/build/build.ts +++ b/build/build.ts @@ -1,4 +1,4 @@ -import { remove, p, run, files, copy, create } from "./utils"; +import { remove, p, run, files, copy, create, copyJson } from "./utils"; async function build() { try { @@ -19,12 +19,12 @@ async function build() { await copy(p('../tsconfig.json'), p('tmp/tsconfig.json')) await run('tsc', p('tmp')) await copy(p('tmp/dist'), p('tmp/node_modules/waves-transactions')) - await copy(p('package.json'), p('tmp/node_modules/waves-transactions/package.json')) + await copyJson(p('../package.json'), p('tmp/node_modules/waves-transactions/package.json'), {main:'index.js', types:'index.d.ts'}) await remove(p('tmp/dist')) await run('ts-node usage/index.ts', p('tmp')) await run('typedoc', p('tmp')) await run('tsc', p('tmp')) - await copy(p('package.json'), p('tmp/dist/package.json')) + await copyJson(p('../package.json'), p('tmp/dist/package.json'), { main: 'index.js', types: 'index.d.ts' }) await copy(p('../README.md'), p('tmp/dist/README.md')) await copy(p('tmp/dist'), p('../dist')) await copy(p('tmp/docs'), p('../docs')) diff --git a/build/package.json b/build/package.json deleted file mode 100644 index 27ad26b..0000000 --- a/build/package.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "waves-transactions", - "version": "1.0.35", - "description": "Build and sign(multi-sign) transactions for Waves blockchain.", - "keywords": [ - "waves", - "crypto", - "transactions", - "protocol", - "binary", - "cryptography", - "signature" - ], - "main": "index.js", - "types": "index.d.ts", - "license": "MIT", - "author": { - "name": "Yuriy Naydenov", - "email": "ebceu44@gmail.com" - }, - "repository": { - "type": "git", - "url": "https://github.com/ebceu4/waves-transactions.git" - }, - "dependencies": { - "waves-crypto": "^1.0.30" - } -} \ No newline at end of file diff --git a/build/utils.ts b/build/utils.ts index 07d9da1..11927f4 100644 --- a/build/utils.ts +++ b/build/utils.ts @@ -1,6 +1,7 @@ -import { mkdir, readdir } from "fs" +import { mkdir, readdir, readFile, writeFile } from "fs" import { exec } from "child_process" import { resolve } from "path" + const ncp = require('ncp').ncp const rimraf = require('rimraf') @@ -20,3 +21,10 @@ export const run = (cmd: string, cwd?: string): Promise => export const files = (path: string, filter: (file: string) => boolean = (_) => true): Promise => new Promise((resolve, reject) => readdir(path, (err, files) => err ? reject(err) : resolve(files.filter(filter)))) + +export const copyJson = (src: string, dst: string, rewriteFields?: { [key: string]: any }): Promise => + new Promise(((resolve, reject) => readFile(src, ((err, data) => { + if (err) reject(err) + const modified = { ...JSON.parse(data.toString()), ...rewriteFields }; + writeFile(dst, JSON.stringify(modified, null, 2), err => err ? reject(err) : resolve()) + })))); \ No newline at end of file diff --git a/docs/globals.html b/docs/globals.html index 2c1f8a0..c205176 100644 --- a/docs/globals.html +++ b/docs/globals.html @@ -211,7 +211,7 @@

alias

Creates and signs AliasTransaction.

You can use this function with multiple seeds. In this case it will sign transaction accordingly and will add one proof per seed. - Also you can use already signed AliasTransaction as a second agrument.

+ Also you can use already signed AliasTransaction as a second argument.

Usage

const { alias } = require('waves-transactions')
 
@@ -227,15 +227,15 @@ 

Usage

const signedAliasTx = alias(seed, params)

Output

{
-  "id": "4Z8HJc9sR1amSrayNKfVmt2jteNLbGDEVxB3MP3iUoP1",
+  "id": "3JGwALJVz1ciwt3pLagQguiiLEHckVgm9BKwE8yxbwnT",
   "type": 10,
   "version": 2,
   "alias": "MyNewAlias",
   "fee": 100000,
   "senderPublicKey": "G62H1XE5rnaCgCCURV5pWwQHzWezZB7VkkVgqthdKgkj",
-  "timestamp": 1541098541653,
+  "timestamp": 1541596058065,
   "proofs": [
-    "3ycqaMuVbvuYn1wXnR5wuvTPuJKcNmLHTMmwAe8QBXzi3Mm6VJ5gcGLkpduRpdyyamDeqUQfiBLjfB9V18TRf1mT"
+    "3C2Jp57xVUhha5UMAoyJVNnwgZN79sbQEtWfjmQmq92U7o5dvZ2ECSsttDi8HG2Rt7f57FVvyNTmb6ziNUZ48kuj"
   ]
 }
@@ -270,7 +270,7 @@

burn

Creates and signs BurnTransaction.

You can use this function with multiple seeds. In this case it will sign transaction accordingly and will add one proof per seed. - Also you can use already signed BurnTransaction as a second agrument.

+ Also you can use already signed BurnTransaction as a second argument.

Usage

const { burn } = require('waves-transactions')
 
@@ -287,7 +287,7 @@ 

Usage

const signedBurnTx = burn(seed, params)

Output

{
-  "id": "9v2gkFhmiWGbbaPtdnQUtvf2aTwDwkLAjzTRNi9jrB3j",
+  "id": "BpGc9TNWEstN4TDxmzdg6ZW6MF9xhVVTRiDtaU2NNBNe",
   "type": 6,
   "version": 2,
   "assetId": "4uK8i4ThRGbehENwa6MxyLtxAjAo1Rj9fduborGExarC",
@@ -295,9 +295,9 @@ 

Output

"chainId": "W", "fee": 100000, "senderPublicKey": "G62H1XE5rnaCgCCURV5pWwQHzWezZB7VkkVgqthdKgkj", - "timestamp": 1541098541494, + "timestamp": 1541596057905, "proofs": [ - "26uCXE6zB8TJmNgqQCM3cX5dQ4mQoiDFfSkDXMJ9cLkWnAgwDEdHykHYziWbFDUNvcjErRvnhKg27SYne5vCL5Co" + "34FduiVqER3sra1BWR9KLxMnpRJgEpXg7nVDAXRZpCPKTBsQux7AoAAPSNe42raJiMgYfAwvfRaVdM4sAhbMaJqb" ] }
@@ -332,7 +332,7 @@

cancelLease

Creates and signs CancelLeaseTransaction.

You can use this function with multiple seeds. In this case it will sign transaction accordingly and will add one proof per seed. - Also you can use already signed CancelLeaseTransaction as a second agrument.

+ Also you can use already signed CancelLeaseTransaction as a second argument.

Usage

const { cancelLease } = require('waves-transactions')
 
@@ -348,16 +348,16 @@ 

Usage

const signedCancelLeaseTx = cancelLease(seed, params)

Output

{
-  "id": "2mmWPdoKco7Za7KQUik8sFA9a4ZNFTy8L94FoTJvS8ns",
+  "id": "2atb7997NFoqyuw2q3WwDGMHqSVaZg2rf4CHoLMmcnnN",
   "type": 9,
   "version": 2,
   "leaseId": "2fYhSNrXpyKgbtHzh5tnpvnQYuL7JpBFMBthPSGFrqqg",
   "fee": 100000,
   "senderPublicKey": "G62H1XE5rnaCgCCURV5pWwQHzWezZB7VkkVgqthdKgkj",
-  "timestamp": 1541098541519,
+  "timestamp": 1541596057932,
   "chainId": 87,
   "proofs": [
-    "2efhYgmZ3wmGUxCsrs8auVXx2fcsMveZ1c1nUXiido4yz4fniq3aYW71scTfXsVkjiNxTVHbVqyT6qTkz4K8h9Aq"
+    "3qXawtk7YPJ959YYnQnNNtQ3HRRCx7SWXYk9YxoRn6Wv2nRv7iAHnjqsAdYUcod2qEZHbTVb3HjF3qV9VX9ouNvD"
   ]
 }
@@ -392,7 +392,7 @@

data

Creates and signs DataTransaction.

You can use this function with multiple seeds. In this case it will sign transaction accordingly and will add one proof per seed. - Also you can use already signed DataTransaction as a second agrument.

+ Also you can use already signed DataTransaction as a second argument.

Usage

const { data } = require('waves-transactions')
 
@@ -412,12 +412,12 @@ 

Usage

const signedDataTx = data(seed, params)

Output

{
-  "id": "Ewk3pqnh1X5pza7DaRwpSaVzLP5ukHSwdRrbNYqUtGBk",
+  "id": "Chj6PGhRUe7jPkKfurVQT5AKhabomAxYV7fWfGNNLQUN",
   "type": 12,
   "version": 1,
   "senderPublicKey": "G62H1XE5rnaCgCCURV5pWwQHzWezZB7VkkVgqthdKgkj",
   "fee": 100000,
-  "timestamp": 1541098541534,
+  "timestamp": 1541596057951,
   "data": [
     {
       "type": "integer",
@@ -441,7 +441,7 @@ 

Output

} ], "proofs": [ - "2t3ZTxnM9zsE1wHSrNFAFr13MfLQdYZu97rzenrUzEQLv49byzVVoKAJQYB2VreEMmwpysmUCDLWX24zzqSAdcrm" + "5ds6mmWq7E8FeXKVqyuRTafLaHHWcdhK5poWSZD7CcWZty5QaBCGpHRbEmo5e8zBueNhk2Kgn8Hun2XHaMfpGsTT" ] }
@@ -522,7 +522,7 @@

issue

Creates and signs IssueTransaction.

You can use this function with multiple seeds. In this case it will sign transaction accordingly and will add one proof per seed. - Also you can use already signed IssueTransaction as a second agrument.

+ Also you can use already signed IssueTransaction as a second argument.

Usage

const { issue } = require('waves-transactions')
 
@@ -542,7 +542,7 @@ 

Usage

const signedIssueTx = issue(seed, params)

Output

{
-  "id": "BF7HhCq37gpmz4nqEVmdmiDc34htTuVNWtS35WjooJRL",
+  "id": "13nU1UV2QH5CeHn6gAMWibXdH6QUTXXgp8rCjY1PYY8B",
   "type": 3,
   "version": 2,
   "name": "SCAM TOKEN",
@@ -552,10 +552,10 @@ 

Output

"reissuable": false, "fee": 100000000, "senderPublicKey": "G62H1XE5rnaCgCCURV5pWwQHzWezZB7VkkVgqthdKgkj", - "timestamp": 1541098541552, + "timestamp": 1541596057969, "chainId": "W", "proofs": [ - "2QXJcy25kp6jdtWARigfAD6ST3CgSzp2Z6ic7rNDRFHY1cvysGFrkUiQhRPtzgA1j4SvwQGAcHpN2Xmnz2moeJdG" + "2fCT72shnPrJrrJ7zpTCa82vEK8e2qKrgBLLdBCdJhRy3sxmwLsYSkqYT1Uocm19PG1fYhESasBphpLaHJu3SPau" ] }
@@ -590,7 +590,7 @@

lease

Creates and signs LeaseTransaction.

You can use this function with multiple seeds. In this case it will sign transaction accordingly and will add one proof per seed. - Also you can use already signed LeaseTransaction as a second agrument.

+ Also you can use already signed LeaseTransaction as a second argument.

Usage

const { lease } = require('waves-transactions')
 
@@ -606,16 +606,16 @@ 

Usage

const signedLeaseTx = lease(seed, params)

Output

{
-  "id": "HGAqGCqvP5cDsQUrwdPygXi6HUxKC2tw9sJph4R35UQE",
+  "id": "H4ffEvUYxwEuf74Z3M2mwzcS47R3BB2ARr5ZGs8EUyxT",
   "type": 8,
   "version": 2,
   "recipient": "3P23fi1qfVw6RVDn4CH2a5nNouEtWNQ4THs",
   "amount": 100,
   "fee": 100000,
   "senderPublicKey": "G62H1XE5rnaCgCCURV5pWwQHzWezZB7VkkVgqthdKgkj",
-  "timestamp": 1541098541569,
+  "timestamp": 1541596057990,
   "proofs": [
-    "4SgwYtQ1u4JXzqqtzy7dVshLGRzZHxsFoTB1r4nPpnNFRZGq1WaDwuaKHLSdNTUvaBGAz6LjV8a8wmAto9fjsUjG"
+    "ZxzG9DRJFsL2ugp9gjv99K4qG4qoHETUKHFwFAhR34raauF3DdVmL94K8FUBFFbwvYj6pPdK1uFrNZK14TUL4VV"
   ]
 }
@@ -703,7 +703,7 @@

massTransfer

Creates and signs MassTransferTransaction.

You can use this function with multiple seeds. In this case it will sign transaction accordingly and will add one proof per seed. - Also you can use already signed MassTransferTransaction as a second agrument.

+ Also you can use already signed MassTransferTransaction as a second argument.

Usage

const { massTransfer } = require('waves-transactions')
 
@@ -727,7 +727,7 @@ 

Usage

const signedMassTransferTx = massTransfer(seed, params)

Output

{
-  "id": "C7PeERosNfa5J5BEaCi7areXGsqdY5jodjVY2fWxoPHQ",
+  "id": "9pDp9G9ypG2EB6mk8ji5FViQpyEmApmJsvRHmW3QTP2k",
   "type": 11,
   "version": 1,
   "transfers": [
@@ -742,9 +742,9 @@ 

Output

], "fee": 200000, "senderPublicKey": "G62H1XE5rnaCgCCURV5pWwQHzWezZB7VkkVgqthdKgkj", - "timestamp": 1541098541585, + "timestamp": 1541596058002, "proofs": [ - "3tGerFmJStD6pn5QVLehnM6GkTEZFp1KD21bezHdoPomaZXYnML2hJqtp1XsibMgqgC4M8wjLPEopzUTonjRBXpY" + "5f9kUv44drDMu6WKfzKSoeryfakvdASChxLnccV99nwrGuimyjTav1czmo8MuYZepocJjKpAo4D84LM4j5hk1aUT" ] }
@@ -870,7 +870,7 @@

reissue

Creates and signs ReissueTransaction.

You can use this function with multiple seeds. In this case it will sign transaction accordingly and will add one proof per seed. - Also you can use already signed ReissueTransaction as a second agrument.

+ Also you can use already signed ReissueTransaction as a second argument.

Usage

const { reissue } = require('waves-transactions')
 
@@ -888,7 +888,7 @@ 

Usage

const signedReissueTx = reissue(seed, params)

Output

{
-  "id": "4N41VYCmrvoMoYcni9FbYPSqJpeuL8xVaBHb14fhvZhe",
+  "id": "J1AcdAoGj3ENu1AZRUjxmoT2ErEfQD5GJjvFJxLSC2gW",
   "type": 5,
   "version": 2,
   "assetId": "3toqCSpAHShatE75UFKxqymuWFr8nxuxD7UcLjdxVFLx",
@@ -897,9 +897,9 @@ 

Output

"reissuable": false, "fee": 100000000, "senderPublicKey": "G62H1XE5rnaCgCCURV5pWwQHzWezZB7VkkVgqthdKgkj", - "timestamp": 1541098541597, + "timestamp": 1541596058040, "proofs": [ - "43ogw4NNrYKz6YZawL6Usm16eCWvkzAWNFMghGAAbRmRURT3GSXGKVSBYXAv4HHnvmrBPN41di3wnT7Y7XVkeAkE" + "4jvRY2hN4M7hAEETKzgziHJng8To9RZwqvUhibFNoJsARYBitkmCwqmHJBffHY3dXeMkDyBjnUGhuMTjHzFA7wG5" ] }
@@ -934,7 +934,7 @@

setScript

Creates and signs SetScriptTransaction.

You can use this function with multiple seeds. In this case it will sign transaction accordingly and will add one proof per seed. - Also you can use already signed SetScriptTransaction as a second agrument.

+ Also you can use already signed SetScriptTransaction as a second argument.

Usage

const { setScript } = require('waves-transactions')
 
@@ -950,16 +950,16 @@ 

Usage

const signedSetScriptTx = setScript(seed, params)

Output

{
-  "id": "wRnf8DE3M1gRydSiXpM77pfh635G64dUieHmofeHrV1",
+  "id": "9mwzSPjCgFpCMR38AT2hSXJEypjqZkGbr38knDBxjfvL",
   "type": 13,
   "version": 1,
   "script": "base64:AQa3b8tH",
   "fee": 1000000,
   "senderPublicKey": "G62H1XE5rnaCgCCURV5pWwQHzWezZB7VkkVgqthdKgkj",
-  "timestamp": 1541098541665,
+  "timestamp": 1541596058076,
   "chainId": "W",
   "proofs": [
-    "37r6jjaggyRXQ1LmBRELA1CEtMMA4vZtuDu5HwBrn9CjX6g2ni3GKZ63i49ppZ4mm2YVmuXoGzSFWgzfJB1QBWGH"
+    "42tGSfv6k51YG6nfNPdhQnY1s2bpax1bjkvbiweFYdNcXjN1VKi1UpLihWN69EKe8hhbPJ62o3WYWCmpgzL8Qqmb"
   ]
 }
@@ -1020,7 +1020,7 @@

transfer

Creates and signs TransferTransaction.

You can use this function with multiple seeds. In this case it will sign transaction accordingly and will add one proof per seed. - Also you can use already signed TransferTransaction as a second agrument.

+ Also you can use already signed TransferTransaction as a second argument.

Usage

const { transfer } = require('waves-transactions')
 
@@ -1040,16 +1040,16 @@ 

Usage

const signedTransferTx = transfer(seed, params)

Output

{
-  "id": "9CWaSFE8F4uQe6EEhm9bAV3rcrUMpTpqhFEiT6afq5oE",
+  "id": "4wmHejcw1wh2wPmwkQtPKSeggmfApxfCSrbzYYvAHdP5",
   "type": 4,
   "version": 2,
   "recipient": "3P23fi1qfVw6RVDn4CH2a5nNouEtWNQ4THs",
   "amount": 100000000,
   "fee": 100000,
   "senderPublicKey": "G62H1XE5rnaCgCCURV5pWwQHzWezZB7VkkVgqthdKgkj",
-  "timestamp": 1541098541641,
+  "timestamp": 1541596058054,
   "proofs": [
-    "3VUtTNgViWNnwyjEUCmLkttztqBWNkLeHKm8aEWPB2X8SAPymogW3AnDSSDrwxjA7HX9m5DNWUuNT4qZi23xYQcS"
+    "5wMjQfEns6CJgafFwpnKZCaZtbHgNdv6MHG4UXJdjk6XrnAuxG4W6KCRLULcFW9wbviqJmNZ9hvXy245hfSLq8SN"
   ]
 }
diff --git a/package.json b/package.json index 8848da8..5557c3f 100644 --- a/package.json +++ b/package.json @@ -2,13 +2,25 @@ "name": "waves-transactions", "version": "1.0.1", "description": "Build and sign(multi-sign) transactions for Waves blockchain.", + "keywords": [ + "waves", + "crypto", + "transactions", + "protocol", + "binary", + "cryptography", + "signature" + ], "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { "build": "ts-node build/build.ts", "deploy": "cd dist; npm version patch; npm publish;" }, - "author": "Yuriy Naydenov", + "author": { + "name": "Yuriy Naydenov", + "email": "ebceu44@gmail.com" + }, "license": "MIT", "devDependencies": { "@types/chai": "^4.1.6", diff --git a/usage/index.ts b/usage/index.ts index 98d2bf1..df9a66a 100644 --- a/usage/index.ts +++ b/usage/index.ts @@ -20,7 +20,7 @@ const _DOCS = `/** * Creates and signs [[]]. * * You can use this function with multiple seeds. In this case it will sign transaction accordingly and will add one proof per seed. - * Also you can use already signed [[]] as a second agrument. + * Also you can use already signed [[]] as a second argument. * * ### Usage * \`\`\`js From 51e16b4b4c5260b16e4caf4d8fc3e00ca519220d Mon Sep 17 00:00:00 2001 From: siem Date: Wed, 7 Nov 2018 18:10:17 +0300 Subject: [PATCH 2/2] fixed docs not to include generic.ts functions --- docs/enums/transactiontype.html | 2 - docs/globals.html | 371 +++---------------- docs/index.html | 32 -- docs/interfaces/aliasparams.html | 8 +- docs/interfaces/aliastransaction.html | 2 - docs/interfaces/burnparams.html | 8 +- docs/interfaces/burntransaction.html | 2 - docs/interfaces/cancelleaseparams.html | 8 +- docs/interfaces/cancelleasetransaction.html | 2 - docs/interfaces/dataentry.html | 2 - docs/interfaces/dataparams.html | 8 +- docs/interfaces/datatransaction.html | 2 - docs/interfaces/issueparams.html | 8 +- docs/interfaces/issuetransaction.html | 2 - docs/interfaces/leaseparams.html | 8 +- docs/interfaces/leasetransaction.html | 2 - docs/interfaces/masstransferparams.html | 8 +- docs/interfaces/masstransfertransaction.html | 2 - docs/interfaces/order.html | 2 - docs/interfaces/orderparams.html | 8 +- docs/interfaces/params.html | 244 ------------ docs/interfaces/reissueparams.html | 8 +- docs/interfaces/reissuetransaction.html | 2 - docs/interfaces/seedsandindexes.html | 168 --------- docs/interfaces/setscriptparams.html | 8 +- docs/interfaces/setscripttransaction.html | 2 - docs/interfaces/transaction.html | 2 - docs/interfaces/transfer.html | 2 - docs/interfaces/transferparams.html | 8 +- docs/interfaces/transfertransaction.html | 2 - docs/interfaces/withproofs.html | 2 - docs/interfaces/withsender.html | 2 - tsconfig.json | 3 +- 33 files changed, 89 insertions(+), 851 deletions(-) delete mode 100644 docs/interfaces/params.html delete mode 100644 docs/interfaces/seedsandindexes.html diff --git a/docs/enums/transactiontype.html b/docs/enums/transactiontype.html index 2543437..f04dc28 100644 --- a/docs/enums/transactiontype.html +++ b/docs/enums/transactiontype.html @@ -38,8 +38,6 @@ - - Menu diff --git a/docs/globals.html b/docs/globals.html index c205176..8ab7de5 100644 --- a/docs/globals.html +++ b/docs/globals.html @@ -38,8 +38,6 @@ - - Menu @@ -91,10 +89,8 @@

Interfaces

  • MassTransferTransaction
  • Order
  • OrderParams
  • -
  • Params
  • ReissueParams
  • ReissueTransaction
  • -
  • SeedsAndIndexes
  • SetScriptParams
  • SetScriptTransaction
  • Transaction
  • @@ -108,32 +104,24 @@

    Interfaces

    Type aliases

    Functions

    @@ -141,16 +129,6 @@

    Functions

    Type aliases

    -
    - -

    SeedTypes

    -
    SeedTypes: string | string[] | SeedsAndIndexes | undefined
    - -

    Tx

    @@ -164,40 +142,11 @@

    Tx

    Functions

    -
    - -

    addProof

    - -
      -
    • - -

      Parameters

      -
        -
      • -
        tx: WithProofs
        -
      • -
      • -
        proof: string
        -
      • -
      • -
        Optional index: number
        -
      • -
      -

      Returns WithProofs

      -
    • -
    -

    alias

    • @@ -227,22 +176,22 @@

      Usage

      const signedAliasTx = alias(seed, params)

      Output

      {
      -  "id": "3JGwALJVz1ciwt3pLagQguiiLEHckVgm9BKwE8yxbwnT",
      +  "id": "FJZAesBvmz4jPfyFh7kgMTF9MAvtLXY3kDRCwhRT2YQD",
         "type": 10,
         "version": 2,
         "alias": "MyNewAlias",
         "fee": 100000,
         "senderPublicKey": "G62H1XE5rnaCgCCURV5pWwQHzWezZB7VkkVgqthdKgkj",
      -  "timestamp": 1541596058065,
      +  "timestamp": 1541603324643,
         "proofs": [
      -    "3C2Jp57xVUhha5UMAoyJVNnwgZN79sbQEtWfjmQmq92U7o5dvZ2ECSsttDi8HG2Rt7f57FVvyNTmb6ziNUZ48kuj"
      +    "domSdscdpUs36bqJBroUM8Z6o1DQ6tEQoNYHgAN6xEV3y7RUpVQ1uf2uZ3iw6QiLK1hMrdid2rpyapU5iy2oaiS"
         ]
       }

      Parameters

      • -
        seed: SeedTypes
        +
        seed: SeedTypes
      • paramsOrTx: AliasParams | AliasTransaction
        @@ -256,7 +205,7 @@

        Returns

        burn

        • @@ -287,7 +236,7 @@

          Usage

          const signedBurnTx = burn(seed, params)

          Output

          {
          -  "id": "BpGc9TNWEstN4TDxmzdg6ZW6MF9xhVVTRiDtaU2NNBNe",
          +  "id": "Bphw3G6p2P2cmkcSoXrnJS9BwjTWiuWmPLxZVPiKvkQ",
             "type": 6,
             "version": 2,
             "assetId": "4uK8i4ThRGbehENwa6MxyLtxAjAo1Rj9fduborGExarC",
          @@ -295,16 +244,16 @@ 

          Output

          "chainId": "W", "fee": 100000, "senderPublicKey": "G62H1XE5rnaCgCCURV5pWwQHzWezZB7VkkVgqthdKgkj", - "timestamp": 1541596057905, + "timestamp": 1541603324478, "proofs": [ - "34FduiVqER3sra1BWR9KLxMnpRJgEpXg7nVDAXRZpCPKTBsQux7AoAAPSNe42raJiMgYfAwvfRaVdM4sAhbMaJqb" + "3csy2fAJDP6qCT2KyXMLiQ8r2anwQE2EueLJgAmbq59mkuyJVzswqiJtRNbVpzVFxqhBkjEub29rwhuG91BBRYLw" ] }

          Parameters

          • -
            seed: SeedTypes
            +
            seed: SeedTypes
          • paramsOrTx: BurnParams | BurnTransaction
            @@ -318,7 +267,7 @@

            Returns

            cancelLease

            • @@ -348,23 +297,23 @@

              Usage

              const signedCancelLeaseTx = cancelLease(seed, params)

              Output

              {
              -  "id": "2atb7997NFoqyuw2q3WwDGMHqSVaZg2rf4CHoLMmcnnN",
              +  "id": "91BVvA15FDtmLJjQPMPnRWzxyttMgxJY8or465KsYqpY",
                 "type": 9,
                 "version": 2,
                 "leaseId": "2fYhSNrXpyKgbtHzh5tnpvnQYuL7JpBFMBthPSGFrqqg",
                 "fee": 100000,
                 "senderPublicKey": "G62H1XE5rnaCgCCURV5pWwQHzWezZB7VkkVgqthdKgkj",
              -  "timestamp": 1541596057932,
              +  "timestamp": 1541603324509,
                 "chainId": 87,
                 "proofs": [
              -    "3qXawtk7YPJ959YYnQnNNtQ3HRRCx7SWXYk9YxoRn6Wv2nRv7iAHnjqsAdYUcod2qEZHbTVb3HjF3qV9VX9ouNvD"
              +    "hPBYPafZD8NB9L3VA7dPsAUMb1oNd9w5bgMtxvduZX4evj2fUNqAPet3ZPGx1L1aHYEb1mzfhn79cNYyKn6uew1"
                 ]
               }

              Parameters

              • -
                seed: SeedTypes
                +
                seed: SeedTypes
              • paramsOrTx: CancelLeaseParams | CancelLeaseTransaction
                @@ -378,7 +327,7 @@

                Returns

                data

                • @@ -412,12 +361,12 @@

                  Usage

                  const signedDataTx = data(seed, params)

                  Output

                  {
                  -  "id": "Chj6PGhRUe7jPkKfurVQT5AKhabomAxYV7fWfGNNLQUN",
                  +  "id": "FFzYY9ad6aQyaKLEgWpmLo1ZCwLJjn3t2D44Cih6r5qN",
                     "type": 12,
                     "version": 1,
                     "senderPublicKey": "G62H1XE5rnaCgCCURV5pWwQHzWezZB7VkkVgqthdKgkj",
                     "fee": 100000,
                  -  "timestamp": 1541596057951,
                  +  "timestamp": 1541603324530,
                     "data": [
                       {
                         "type": "integer",
                  @@ -441,14 +390,14 @@ 

                  Output

                  } ], "proofs": [ - "5ds6mmWq7E8FeXKVqyuRTafLaHHWcdhK5poWSZD7CcWZty5QaBCGpHRbEmo5e8zBueNhk2Kgn8Hun2XHaMfpGsTT" + "2VEY9ajKmcPYHykDf9dwkSiicdqZ3nGn3xohFBBFwhtNVSF2A27FAWtUaax1s2JSfEqTUWuHvKaPz9NcKm6mtAZi" ] }

                  Parameters

    -
    - -

    Const isArrayOfSeeds

    -
      -
    • isArrayOfSeeds(seed: SeedTypes): boolean
    • -
    -
      -
    • - -

      Parameters

      - -

      Returns boolean

      -
    • -
    -
    -
    - -

    Const isSeedsAndIndexes

    -
      -
    • isSeedsAndIndexes(seed: SeedTypes): boolean
    • -
    -
      -
    • - -

      Parameters

      - -

      Returns boolean

      -
    • -
    -

    issue

    • @@ -542,7 +445,7 @@

      Usage

      const signedIssueTx = issue(seed, params)

      Output

      {
      -  "id": "13nU1UV2QH5CeHn6gAMWibXdH6QUTXXgp8rCjY1PYY8B",
      +  "id": "5ETrCYWrigB5v8hBoQY3xC7VS1wabBhfPfjQr5PGckXo",
         "type": 3,
         "version": 2,
         "name": "SCAM TOKEN",
      @@ -552,17 +455,17 @@ 

      Output

      "reissuable": false, "fee": 100000000, "senderPublicKey": "G62H1XE5rnaCgCCURV5pWwQHzWezZB7VkkVgqthdKgkj", - "timestamp": 1541596057969, + "timestamp": 1541603324550, "chainId": "W", "proofs": [ - "2fCT72shnPrJrrJ7zpTCa82vEK8e2qKrgBLLdBCdJhRy3sxmwLsYSkqYT1Uocm19PG1fYhESasBphpLaHJu3SPau" + "5o4oFNN428KwnZ7mdvjMvrS1yWPM91KGYcuG4oM2dwzG43mvD4FKB9LW7ei34hLm2qmLn5CS2jLHpgDQibyMz3zs" ] }

      Parameters

      • -
        seed: SeedTypes
        +
        seed: SeedTypes
      • paramsOrTx: IssueParams | IssueTransaction
        @@ -576,7 +479,7 @@

        Returns

        lease

        • @@ -606,23 +509,23 @@

          Usage

          const signedLeaseTx = lease(seed, params)

          Output

          {
          -  "id": "H4ffEvUYxwEuf74Z3M2mwzcS47R3BB2ARr5ZGs8EUyxT",
          +  "id": "A2CTmhRU9bxfDjsfaL6jYsPz7iEeDeK71qvTSpYkJsrA",
             "type": 8,
             "version": 2,
             "recipient": "3P23fi1qfVw6RVDn4CH2a5nNouEtWNQ4THs",
             "amount": 100,
             "fee": 100000,
             "senderPublicKey": "G62H1XE5rnaCgCCURV5pWwQHzWezZB7VkkVgqthdKgkj",
          -  "timestamp": 1541596057990,
          +  "timestamp": 1541603324574,
             "proofs": [
          -    "ZxzG9DRJFsL2ugp9gjv99K4qG4qoHETUKHFwFAhR34raauF3DdVmL94K8FUBFFbwvYj6pPdK1uFrNZK14TUL4VV"
          +    "5xr2uzG3C1mXorfa6dwqGKJ13gjoykQvYjCeSGvKs8SjsqJfunhtoQvgex5ngaxdSBMjosbWZEgHq2eiTfWTHSQH"
             ]
           }

          Parameters

    -
    - -

    Const mapSeed

    -
      -
    • mapSeed<T>(seed: SeedTypes, map: function): T
    • -
    -
      -
    • - -

      Type parameters

      -
        -
      • -

        T

        -
      • -
      -

      Parameters

      -
        -
      • -
        seed: SeedTypes
        -
      • -
      • -
        map: function
        -
          -
        • -
            -
          • (seed: string, index?: number): T
          • -
          -
            -
          • -

            Parameters

            -
              -
            • -
              seed: string
              -
            • -
            • -
              Optional index: number
              -
            • -
            -

            Returns T

            -
          • -
          -
        • -
        -
      • -
      -

      Returns T

      -
    • -
    -

    massTransfer

    • @@ -727,7 +577,7 @@

      Usage

      const signedMassTransferTx = massTransfer(seed, params)

      Output

      {
      -  "id": "9pDp9G9ypG2EB6mk8ji5FViQpyEmApmJsvRHmW3QTP2k",
      +  "id": "7ryurW2YXvKo6fqPdhVFissaK5BH7s3Y226LWxRvMQcj",
         "type": 11,
         "version": 1,
         "transfers": [
      @@ -742,16 +592,16 @@ 

      Output

      ], "fee": 200000, "senderPublicKey": "G62H1XE5rnaCgCCURV5pWwQHzWezZB7VkkVgqthdKgkj", - "timestamp": 1541596058002, + "timestamp": 1541603324587, "proofs": [ - "5f9kUv44drDMu6WKfzKSoeryfakvdASChxLnccV99nwrGuimyjTav1czmo8MuYZepocJjKpAo4D84LM4j5hk1aUT" + "5psggjNgb3FAV2DgvdqfW9fz139e8zNG5p55AYKHLgtVzSsrqkmjGfNouFCxgNhpKq5VUXdFgVYu6WiZk8QSQsMq" ] }

      Parameters

    reissue

    • @@ -888,7 +713,7 @@

      Usage

      const signedReissueTx = reissue(seed, params)

      Output

      {
      -  "id": "J1AcdAoGj3ENu1AZRUjxmoT2ErEfQD5GJjvFJxLSC2gW",
      +  "id": "EbrpcQLrG3KMquo1sHyFPro2x3gMWW5Ummdyc1jdRTjk",
         "type": 5,
         "version": 2,
         "assetId": "3toqCSpAHShatE75UFKxqymuWFr8nxuxD7UcLjdxVFLx",
      @@ -897,16 +722,16 @@ 

      Output

      "reissuable": false, "fee": 100000000, "senderPublicKey": "G62H1XE5rnaCgCCURV5pWwQHzWezZB7VkkVgqthdKgkj", - "timestamp": 1541596058040, + "timestamp": 1541603324616, "proofs": [ - "4jvRY2hN4M7hAEETKzgziHJng8To9RZwqvUhibFNoJsARYBitkmCwqmHJBffHY3dXeMkDyBjnUGhuMTjHzFA7wG5" + "5pH4vQP4A3cgK4jseurqSbE7GKj15sN8s6R79gqBVTc4g1mPJjVGBdzmvTEqFYePQiWd1S2aVqgffmENJxGnQUtg" ] }

      Parameters

      • -
        seed: SeedTypes
        +
        seed: SeedTypes
      • paramsOrTx: ReissueParams | ReissueTransaction
        @@ -920,7 +745,7 @@

        Returns

        setScript

        • @@ -950,23 +775,23 @@

          Usage

          const signedSetScriptTx = setScript(seed, params)

          Output

          {
          -  "id": "9mwzSPjCgFpCMR38AT2hSXJEypjqZkGbr38knDBxjfvL",
          +  "id": "AycPwVoPVgSk6xPc8UWPiKnoZPhGWjCMo1BJTCPLnC4E",
             "type": 13,
             "version": 1,
             "script": "base64:AQa3b8tH",
             "fee": 1000000,
             "senderPublicKey": "G62H1XE5rnaCgCCURV5pWwQHzWezZB7VkkVgqthdKgkj",
          -  "timestamp": 1541596058076,
          +  "timestamp": 1541603324656,
             "chainId": "W",
             "proofs": [
          -    "42tGSfv6k51YG6nfNPdhQnY1s2bpax1bjkvbiweFYdNcXjN1VKi1UpLihWN69EKe8hhbPJ62o3WYWCmpgzL8Qqmb"
          +    "4NvigtziTGDsAoDBLArYyGUhehSTkrqqKCdHLF78Vydm6Py8kTVtoUzkEuCbctkGvg7ARGozvUqfoqXDXM6XFFV5"
             ]
           }

          Parameters

          • -
            seed: SeedTypes
            +
            seed: SeedTypes
          • paramsOrTx: SetScriptParams | SetScriptTransaction
            @@ -980,7 +805,7 @@

            Returns

            signTx

            • @@ -992,7 +817,7 @@

              signTx

              Parameters

              • -
                seed: SeedTypes
                +
                seed: SeedTypes
              • tx: Tx
                @@ -1006,7 +831,7 @@

                Returns

                transfer

                • @@ -1040,23 +865,23 @@

                  Usage

                  const signedTransferTx = transfer(seed, params)

                  Output

                  {
                  -  "id": "4wmHejcw1wh2wPmwkQtPKSeggmfApxfCSrbzYYvAHdP5",
                  +  "id": "2qFSazEHEGsgwouk9KtAQkFBqT6bftQ6G7RRtD3NCFem",
                     "type": 4,
                     "version": 2,
                     "recipient": "3P23fi1qfVw6RVDn4CH2a5nNouEtWNQ4THs",
                     "amount": 100000000,
                     "fee": 100000,
                     "senderPublicKey": "G62H1XE5rnaCgCCURV5pWwQHzWezZB7VkkVgqthdKgkj",
                  -  "timestamp": 1541596058054,
                  +  "timestamp": 1541603324631,
                     "proofs": [
                  -    "5wMjQfEns6CJgafFwpnKZCaZtbHgNdv6MHG4UXJdjk6XrnAuxG4W6KCRLULcFW9wbviqJmNZ9hvXy245hfSLq8SN"
                  +    "4RxXRzVfp4jzn16AiSRRvTs8LNx6M7zfojAQmienoXo5iic9W8o3uRySnt45fvDhEKnYMrggUQW8ki7k3JYpRecV"
                     ]
                   }

                  Parameters

                  • -
                    seed: SeedTypes
                    +
                    seed: SeedTypes
                  • paramsOrTx: TransferParams | TransferTransaction
                    @@ -1066,64 +891,6 @@

                    Returns - -

                    Const valOrDef

                    -
                      -
                    • valOrDef<T>(val: T, def: T): T
                    • -
                    -
                      -
                    • - -

                      Type parameters

                      -
                        -
                      • -

                        T

                        -
                      • -
                      -

                      Parameters

                      -
                        -
                      • -
                        val: T
                        -
                      • -
                      • -
                        def: T
                        -
                      • -
                      -

                      Returns T

                      -
                    • -
                    -
    -
    - -

    validateParams

    - -
      -
    • - -

      Parameters

      - -

      Returns void

      -
    • -
    -
    diff --git a/docs/index.html b/docs/index.html index 6905fd3..8dba0ff 100644 --- a/docs/index.html +++ b/docs/index.html @@ -38,8 +38,6 @@ - - Menu @@ -200,18 +198,12 @@

    Transactions

  • OrderParams
  • -
  • - Params -
  • ReissueParams
  • ReissueTransaction
  • -
  • - SeedsAndIndexes -
  • SetScriptParams
  • @@ -236,15 +228,9 @@

    Transactions

  • WithSender
  • -
  • - SeedTypes -
  • Tx
  • -
  • - addProof -
  • alias
  • @@ -257,30 +243,18 @@

    Transactions

  • data
  • -
  • - isArrayOfSeeds -
  • -
  • - isSeedsAndIndexes -
  • issue
  • lease
  • -
  • - mapSeed -
  • massTransfer
  • order
  • -
  • - pullSeedAndIndex -
  • reissue
  • @@ -293,12 +267,6 @@

    Transactions

  • transfer
  • -
  • - valOrDef -
  • -
  • - validateParams -
  • diff --git a/docs/interfaces/aliasparams.html b/docs/interfaces/aliasparams.html index 45918bc..6d5cbb8 100644 --- a/docs/interfaces/aliasparams.html +++ b/docs/interfaces/aliasparams.html @@ -38,8 +38,6 @@ - - Menu @@ -68,7 +66,7 @@

    Interface AliasParams

    Hierarchy

    • - Params + Params
      • AliasParams @@ -131,7 +129,7 @@

        Optional fee

        Optional senderPublicKey

        senderPublicKey: string