Skip to content

Commit 3772c4a

Browse files
committed
Removed catbuffer code
Added catbuffer dependency Improved serialization to use TransactionHelper and builders when they are already parsed. Added tslint task to npm (issue needs to be fixed)
1 parent 4bb78e6 commit 3772c4a

File tree

149 files changed

+894
-13093
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+894
-13093
lines changed

package-lock.json

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"build": "rm -rf dist/ && tsc && npm run e2econfigcopy",
1212
"test:cov": "nyc --reporter=lcov --reporter=text-summary npm t",
1313
"test:coveralls": "npm run test:cov | coveralls",
14+
"tslint": "tslint --project .",
1415
"coveralls-report": "cat ./coverage/lcov.info | coveralls"
1516
},
1617
"contributors": [
@@ -58,6 +59,7 @@
5859
},
5960
"dependencies": {
6061
"bluebird": "^3.5.5",
62+
"catbuffer": "0.0.4-SNAPSHOT",
6163
"crypto-js": "^3.1.9-1",
6264
"js-joda": "^1.6.2",
6365
"js-sha256": "^0.9.0",

src/core/utils/TransactionMapping.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
import { CreateTransactionFromDTO } from '../../infrastructure/transaction/CreateTransactionFromDTO';
1818
import { CreateTransactionFromPayload } from '../../infrastructure/transaction/CreateTransactionFromPayload';
19-
import { InnerTransaction } from '../../model/transaction/InnerTransaction';
2019
import { Transaction } from '../../model/transaction/Transaction';
2120

2221
export class TransactionMapping {
@@ -33,11 +32,9 @@ export class TransactionMapping {
3332
/**
3433
* Create transaction class from payload binary.
3534
* @param {string} payload The transaction binary payload
36-
* @param {Boolean} isEmbedded Is embedded transaction (Default: false)
37-
* @returns {Transaction | InnerTransaction} The transaction class.
35+
* @returns {Transaction} The transaction class.
3836
*/
39-
public static createFromPayload(payload: string,
40-
isEmbedded = false): Transaction | InnerTransaction {
41-
return CreateTransactionFromPayload(payload, isEmbedded);
37+
public static createFromPayload(payload: string): Transaction {
38+
return CreateTransactionFromPayload(payload);
4239
}
4340
}

src/infrastructure/catbuffer/AccountAddressRestrictionTransactionBodyBuilder.ts

Lines changed: 0 additions & 162 deletions
This file was deleted.

src/infrastructure/catbuffer/AccountAddressRestrictionTransactionBuilder.ts

Lines changed: 0 additions & 136 deletions
This file was deleted.

src/infrastructure/catbuffer/AccountLinkActionDto.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)