@waves/node-api-js 1.2.8-beta.1 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/cjs/api-node/assets/index.js +6 -3
  2. package/cjs/api-node/assets/index.js.map +1 -1
  3. package/cjs/create.d.ts +21 -365
  4. package/cjs/tools/adresses/getAssetIdListByTx.d.ts +3 -2
  5. package/cjs/tools/adresses/getAssetIdListByTx.js +0 -1
  6. package/cjs/tools/adresses/getAssetIdListByTx.js.map +1 -1
  7. package/cjs/tools/adresses/getAssetsByTransaction.d.ts +3 -2
  8. package/cjs/tools/adresses/getAssetsByTransaction.js.map +1 -1
  9. package/cjs/tools/transactions/transactions.d.ts +60 -0
  10. package/cjs/tools/transactions/transactions.js +117 -0
  11. package/cjs/tools/transactions/transactions.js.map +1 -1
  12. package/dist/0.node-api.js +1 -13
  13. package/dist/node-api.js +7 -5
  14. package/dist/node-api.min.js +1 -1
  15. package/es/api-node/assets/index.js +33 -30
  16. package/es/api-node/assets/index.js.map +1 -1
  17. package/es/create.d.ts +21 -365
  18. package/es/tools/adresses/getAssetIdListByTx.d.ts +3 -2
  19. package/es/tools/adresses/getAssetIdListByTx.js +0 -1
  20. package/es/tools/adresses/getAssetIdListByTx.js.map +1 -1
  21. package/es/tools/adresses/getAssetsByTransaction.d.ts +3 -2
  22. package/es/tools/adresses/getAssetsByTransaction.js.map +1 -1
  23. package/es/tools/transactions/transactions.d.ts +60 -0
  24. package/es/tools/transactions/transactions.js +99 -1
  25. package/es/tools/transactions/transactions.js.map +1 -1
  26. package/package.json +2 -2
  27. package/dist/node-api.min.js.LICENSE.txt +0 -17
  28. package/dist/node_fs-node_path.node-api.js +0 -23
  29. package/dist/vendors-node_modules_node-fetch_src_utils_multipart-parser_js.node-api.js +0 -599
@@ -0,0 +1,60 @@
1
+ import { IWithStateChanges, TPayment, TStateChanges } from "../../api-node/debug";
2
+ import { AssetDecimals, DataTransactionEntry, InvokeExpressionTransaction, EthereumTransaction, WithApiMixin } from "@waves/ts-types/";
3
+ import { Long } from "@waves/ts-types/";
4
+ import { AliasTransaction, BurnTransaction, CancelLeaseTransaction, DataTransaction, ExchangeTransaction, GenesisTransaction, InvokeScriptTransaction, IssueTransaction, LeaseTransaction, MassTransferTransaction, PaymentTransaction, ReissueTransaction, SetAssetScriptTransaction, SetScriptTransaction, SponsorshipTransaction, TransferTransaction, UpdateAssetInfoTransaction } from "@waves/ts-types/";
5
+ import { IWithApplicationStatus, TLong } from "../../interface";
6
+ export declare type TStateUpdate = {
7
+ data: (DataTransactionEntry & {
8
+ address: string;
9
+ })[];
10
+ transfers: {
11
+ address: string;
12
+ sender: string;
13
+ amount: TLong;
14
+ asset: string | null;
15
+ }[];
16
+ issues: {
17
+ address: string;
18
+ assetId: string;
19
+ name: string;
20
+ description: string;
21
+ quantity: number;
22
+ decimals: AssetDecimals;
23
+ isReissuable: boolean;
24
+ compiledScript: null | string;
25
+ nonce: number;
26
+ }[];
27
+ reissues: {
28
+ address: string;
29
+ assetId: string;
30
+ isReissuable: boolean;
31
+ quantity: number;
32
+ }[];
33
+ burns: {
34
+ address: string;
35
+ assetId: string;
36
+ quantity: number;
37
+ }[];
38
+ sponsorFees: {
39
+ address: string;
40
+ assetId: string;
41
+ minSponsoredAssetFee: number;
42
+ }[];
43
+ leases: {
44
+ sender: string;
45
+ leaseId: string;
46
+ recipient: string;
47
+ amount: TLong;
48
+ }[];
49
+ leaseCancels: {
50
+ leaseId: string;
51
+ address: string;
52
+ }[];
53
+ };
54
+ export declare type TWithStateUpdate = {
55
+ stateUpdate: TStateUpdate;
56
+ };
57
+ export declare type TWithState = IWithStateChanges & TWithStateUpdate;
58
+ export declare type TTransaction<LONG = Long> = GenesisTransaction<LONG> | PaymentTransaction<LONG> | IssueTransaction<LONG> | TransferTransaction<LONG> | ReissueTransaction<LONG> | BurnTransaction<LONG> | LeaseTransaction<LONG> | CancelLeaseTransaction<LONG> | AliasTransaction<LONG> | MassTransferTransaction<LONG> | DataTransaction<LONG> | SetScriptTransaction<LONG> | SponsorshipTransaction<LONG> | ExchangeTransaction<LONG> | SetAssetScriptTransaction<LONG> | (InvokeScriptTransaction<LONG> & TWithState) | UpdateAssetInfoTransaction<LONG> | (InvokeExpressionTransaction<LONG> & TWithState) | EthereumTransaction<LONG>;
59
+ export declare function addStateUpdateField(transaction: TTransaction & WithApiMixin & IWithApplicationStatus): TTransaction & WithApiMixin & IWithApplicationStatus;
60
+ export declare function makeStateUpdate(stateChanges: TStateChanges, payment: TPayment[], dApp: string | undefined, sender: string): TStateUpdate;
@@ -1,2 +1,100 @@
1
- "use strict";
1
+ import { BigNumber } from "@waves/bignumber";
2
+ import { TRANSACTION_TYPE } from "@waves/ts-types/";
3
+ export function addStateUpdateField(transaction) {
4
+ if (transaction.type === TRANSACTION_TYPE.INVOKE_SCRIPT || transaction.type === TRANSACTION_TYPE.INVOKE_EXPRESSION && transaction.stateChanges.invokes && transaction.stateChanges.invokes.length) {
5
+ const payments = transaction.payment ? transaction.payment.map((p) => ({
6
+ assetId: p.assetId,
7
+ amount: p.amount
8
+ })) : [];
9
+ }
10
+ if (transaction.type === TRANSACTION_TYPE.ETHEREUM && transaction.payload.type === 'invocation' && transaction.payload.stateChanges.invokes && transaction.payload.stateChanges.invokes.length) {
11
+ const payments = transaction.payload.payment ? transaction.payload.payment.map((p) => ({
12
+ assetId: p.assetId,
13
+ amount: p.amount
14
+ })) : [];
15
+ const dApp = transaction.payload.dApp || '';
16
+ // @ts-ignore
17
+ return Object.defineProperty(transaction, 'stateUpdate', { get: () => makeStateUpdate(transaction.payload.stateChanges, payments, dApp, transaction.sender) });
18
+ }
19
+ else
20
+ return transaction;
21
+ }
22
+ export function makeStateUpdate(stateChanges, payment, dApp, sender) {
23
+ const payments = payment.map(payment => ({ payment, dApp, sender }));
24
+ const addField = (array, fieldName) => array.map(item => (Object.assign(Object.assign({}, item), { [fieldName]: dApp })));
25
+ const transfers = addField(stateChanges.transfers, 'sender');
26
+ const leases = addField(stateChanges.leases, 'sender');
27
+ const issues = addField(stateChanges.issues, 'address');
28
+ const data = addField(stateChanges.data, 'address');
29
+ const reissues = addField(stateChanges.reissues, 'address');
30
+ const burns = addField(stateChanges.burns, 'address');
31
+ const sponsorFees = addField(stateChanges.sponsorFees, 'address');
32
+ const leaseCancels = addField(stateChanges.leaseCancels, 'address');
33
+ const stateUpdate = {
34
+ payments,
35
+ data,
36
+ transfers,
37
+ reissues,
38
+ issues,
39
+ burns,
40
+ sponsorFees,
41
+ leases,
42
+ leaseCancels,
43
+ };
44
+ const recursiveFunction = (stateChanges, sender) => {
45
+ if (stateChanges.invokes.length) {
46
+ stateChanges.invokes.forEach((x) => {
47
+ //payments
48
+ if (x.payment)
49
+ x.payment.forEach(y => {
50
+ const index = payments.findIndex(z => (z.payment.assetId === y.assetId) && (z.dApp === x.dApp) && (sender === x.dApp));
51
+ index !== -1
52
+ ? payments[index].payment.amount = (new BigNumber(payments[index].payment.amount)).add(y.amount).toNumber()
53
+ : payments.push({
54
+ payment: y,
55
+ sender: sender,
56
+ dApp: x.dApp
57
+ });
58
+ });
59
+ //data
60
+ x.stateChanges.data.forEach(y => {
61
+ const index = stateUpdate.data.findIndex(z => z.key === y.key && z.address === x.dApp);
62
+ index !== -1 ? stateUpdate.data[index] = Object.assign(Object.assign({}, y), { address: x.dApp }) : stateUpdate.data.push(Object.assign(Object.assign({}, y), { address: x.dApp }));
63
+ });
64
+ //burns
65
+ x.stateChanges.burns.forEach(y => {
66
+ const index = stateUpdate.burns.findIndex(z => z.assetId === y.assetId);
67
+ index !== -1 ? stateUpdate.burns[index].quantity += y.quantity : stateUpdate.burns.push(Object.assign(Object.assign({}, y), { address: x.dApp }));
68
+ });
69
+ //issues
70
+ x.stateChanges.issues.forEach(y => stateUpdate.issues.push(Object.assign(Object.assign({}, y), { address: x.dApp })));
71
+ //reissues
72
+ x.stateChanges.reissues.forEach(y => {
73
+ const index = stateUpdate.reissues.findIndex(z => z.assetId === y.assetId);
74
+ index !== -1 ? stateUpdate.reissues[index].quantity += y.quantity : stateUpdate.reissues.push(Object.assign(Object.assign({}, y), { address: x.dApp }));
75
+ });
76
+ //transfers
77
+ x.stateChanges.transfers.forEach(y => {
78
+ const index = stateUpdate.transfers.findIndex(z => (z.asset === y.asset) && (z.address === y.address) && (x.dApp === z.sender));
79
+ index !== -1
80
+ ? stateUpdate.transfers[index].amount = (new BigNumber(stateUpdate.transfers[index].amount)).add(y.amount).toNumber()
81
+ : stateUpdate.transfers.push(Object.assign(Object.assign({}, y), { sender: x.dApp }));
82
+ });
83
+ //sponsorFees
84
+ x.stateChanges.sponsorFees.forEach(y => {
85
+ const index = stateUpdate.sponsorFees.findIndex(z => (z.assetId === y.assetId) && (z.address === x.dApp));
86
+ index !== -1
87
+ ? stateUpdate.sponsorFees[index] = Object.assign(Object.assign({}, y), { address: x.dApp })
88
+ : stateUpdate.sponsorFees.push(Object.assign(Object.assign({}, y), { address: x.dApp }));
89
+ });
90
+ //lease and leaseCancels
91
+ x.stateChanges.leases.forEach(y => stateUpdate.leases.push(Object.assign(Object.assign({}, y), { sender: x.dApp })));
92
+ x.stateChanges.leaseCancels.forEach(y => stateUpdate.leaseCancels.push(Object.assign(Object.assign({}, y), { address: x.dApp })));
93
+ recursiveFunction(x.stateChanges, x.dApp);
94
+ });
95
+ }
96
+ };
97
+ recursiveFunction(stateChanges, sender);
98
+ return stateUpdate;
99
+ }
2
100
  //# sourceMappingURL=transactions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"transactions.js","sourceRoot":"","sources":["../../../src/tools/transactions/transactions.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"transactions.js","sourceRoot":"","sources":["../../../src/tools/transactions/transactions.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAKH,gBAAgB,EAEnB,MAAM,kBAAkB,CAAC;AAmF1B,MAAM,UAAU,mBAAmB,C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AAC,OAAO,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAA;oBACzG,KAAK,KAAK,CAAC,CAAC;wBACR,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,KAAK,CAAC,mCAAO,CAAC,KAAE,OAAO,EAAE,CAAC,CAAC,IAAI,GAAC;wBAC1D,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,IAAI,iCAAK,CAAC,KAAE,OAAO,EAAE,CAAC,CAAC,IAAI,IAAE,CAAA;gBAC/D,CAAC,CACJ,CAAA;gBACD,wBAAwB;gBACxB,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,iCAAK,CAAC,KAAE,MAAM,EAAE,CAAC,CAAC,IAAI,IAAE,CAAC,CAAA;gBACnF,CAAC,CAAC,YAAY,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,iCAAK,CAAC,KAAE,OAAO,EAAE,CAAC,CAAC,IAAI,IAAE,CAAC,CAAA;gBAEhG,iBAAiB,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC,IAAI,CAAC,CAAA;YAC7C,CAAC,CACJ,CAAA;SACJ;IACL,CAAC,CAAA;IAED,iBAAiB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAA;IACvC,OAAO,WAAW,CAAA;AACtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waves/node-api-js",
3
- "version": "1.2.8-beta.1",
3
+ "version": "1.2.8",
4
4
  "main": "cjs/index.js",
5
5
  "types": "cjs/index.d.ts",
6
6
  "scripts": {
@@ -12,7 +12,7 @@
12
12
  "dependencies": {
13
13
  "@types/node-fetch": "^2.5.4",
14
14
  "@waves/bignumber": "^1.1.1",
15
- "@waves/ts-types": "^1.0.12",
15
+ "@waves/ts-types": "^1.0.11",
16
16
  "node-fetch": "^2.6.7",
17
17
  "typed-ts-events": "^1.1.1"
18
18
  },
@@ -1,17 +0,0 @@
1
- /**
2
- * [js-sha3]{@link https://github.com/emn178/js-sha3}
3
- *
4
- * @version 0.5.7
5
- * @author Chen, Yi-Cyuan [emn178@gmail.com]
6
- * @copyright Chen, Yi-Cyuan 2015-2016
7
- * @license MIT
8
- */
9
-
10
- /**
11
- * [js-sha3]{@link https://github.com/emn178/js-sha3}
12
- *
13
- * @version 0.8.0
14
- * @author Chen, Yi-Cyuan [emn178@gmail.com]
15
- * @copyright Chen, Yi-Cyuan 2015-2018
16
- * @license MIT
17
- */
@@ -1,23 +0,0 @@
1
- (this["webpackChunknodeApi"] = this["webpackChunknodeApi"] || []).push([["node_fs-node_path"],{
2
-
3
- /***/ "node:fs":
4
- /*!***************!*\
5
- !*** node:fs ***!
6
- \***************/
7
- /***/ (() => {
8
-
9
- throw new Error("Module build failed: UnhandledSchemeError: Reading from \"node:fs\" is not handled by plugins (Unhandled scheme).\nWebpack supports \"data:\" and \"file:\" URIs by default.\nYou may need an additional plugin to handle \"node:\" URIs.\n at /Users/dlobanov/projects/node-api-js/node_modules/webpack/lib/NormalModule.js:827:25\n at Hook.eval [as callAsync] (eval at create (/Users/dlobanov/projects/node-api-js/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)\n at Object.processResource (/Users/dlobanov/projects/node-api-js/node_modules/webpack/lib/NormalModule.js:824:8)\n at processResource (/Users/dlobanov/projects/node-api-js/node_modules/loader-runner/lib/LoaderRunner.js:220:11)\n at iteratePitchingLoaders (/Users/dlobanov/projects/node-api-js/node_modules/loader-runner/lib/LoaderRunner.js:171:10)\n at runLoaders (/Users/dlobanov/projects/node-api-js/node_modules/loader-runner/lib/LoaderRunner.js:397:2)\n at NormalModule._doBuild (/Users/dlobanov/projects/node-api-js/node_modules/webpack/lib/NormalModule.js:814:3)\n at NormalModule.build (/Users/dlobanov/projects/node-api-js/node_modules/webpack/lib/NormalModule.js:958:15)\n at /Users/dlobanov/projects/node-api-js/node_modules/webpack/lib/Compilation.js:1370:12\n at NormalModule.needBuild (/Users/dlobanov/projects/node-api-js/node_modules/webpack/lib/NormalModule.js:1247:32)");
10
-
11
- /***/ }),
12
-
13
- /***/ "node:path":
14
- /*!*****************!*\
15
- !*** node:path ***!
16
- \*****************/
17
- /***/ (() => {
18
-
19
- throw new Error("Module build failed: UnhandledSchemeError: Reading from \"node:path\" is not handled by plugins (Unhandled scheme).\nWebpack supports \"data:\" and \"file:\" URIs by default.\nYou may need an additional plugin to handle \"node:\" URIs.\n at /Users/dlobanov/projects/node-api-js/node_modules/webpack/lib/NormalModule.js:827:25\n at Hook.eval [as callAsync] (eval at create (/Users/dlobanov/projects/node-api-js/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)\n at Object.processResource (/Users/dlobanov/projects/node-api-js/node_modules/webpack/lib/NormalModule.js:824:8)\n at processResource (/Users/dlobanov/projects/node-api-js/node_modules/loader-runner/lib/LoaderRunner.js:220:11)\n at iteratePitchingLoaders (/Users/dlobanov/projects/node-api-js/node_modules/loader-runner/lib/LoaderRunner.js:171:10)\n at runLoaders (/Users/dlobanov/projects/node-api-js/node_modules/loader-runner/lib/LoaderRunner.js:397:2)\n at NormalModule._doBuild (/Users/dlobanov/projects/node-api-js/node_modules/webpack/lib/NormalModule.js:814:3)\n at NormalModule.build (/Users/dlobanov/projects/node-api-js/node_modules/webpack/lib/NormalModule.js:958:15)\n at /Users/dlobanov/projects/node-api-js/node_modules/webpack/lib/Compilation.js:1370:12\n at NormalModule.needBuild (/Users/dlobanov/projects/node-api-js/node_modules/webpack/lib/NormalModule.js:1247:32)");
20
-
21
- /***/ })
22
-
23
- }]);