@alien-worlds/aw-contract-index-worlds
Advanced tools
Comparing version 0.0.30 to 0.0.31
@@ -19,5 +19,5 @@ import { MongoDB } from '@alien-worlds/aw-storage-mongodb'; | ||
block_timestamp?: Date; | ||
block_number?: MongoDB.Long; | ||
block_num?: MongoDB.Long; | ||
global_sequence?: MongoDB.Long; | ||
receiver_sequence?: MongoDB.Long; | ||
recv_sequence?: MongoDB.Long; | ||
trx_id?: string; | ||
@@ -35,3 +35,3 @@ action_hash?: string; | ||
block_timestamp: Date; | ||
block_number: string; | ||
block_num: string; | ||
global_sequence: string; | ||
@@ -38,0 +38,0 @@ recv_sequence: string; |
@@ -62,5 +62,5 @@ "use strict"; | ||
block_timestamp: entity.blockTimestamp, | ||
block_number: new aw_storage_mongodb_1.MongoDB.Long(entity.blockNumber), | ||
block_num: new aw_storage_mongodb_1.MongoDB.Long(entity.blockNumber), | ||
global_sequence: new aw_storage_mongodb_1.MongoDB.Long(entity.globalSequence), | ||
receiver_sequence: new aw_storage_mongodb_1.MongoDB.Long(entity.receiverSequence), | ||
recv_sequence: new aw_storage_mongodb_1.MongoDB.Long(entity.receiverSequence), | ||
trx_id: entity.transactionId, | ||
@@ -118,4 +118,4 @@ action: { | ||
} | ||
const { _id, block_timestamp, block_number, global_sequence, receiver_sequence, trx_id, action, } = mongoModel; | ||
return new aw_core_1.ContractAction(_id.toString(), block_timestamp, (0, aw_core_1.parseToBigInt)(block_number), action.account, action.name, (0, aw_core_1.parseToBigInt)(global_sequence), (0, aw_core_1.parseToBigInt)(receiver_sequence), trx_id, data); | ||
const { _id, block_timestamp, block_num, global_sequence, recv_sequence, trx_id, action, } = mongoModel; | ||
return new aw_core_1.ContractAction(_id.toString(), block_timestamp, (0, aw_core_1.parseToBigInt)(block_num), action.account, action.name, (0, aw_core_1.parseToBigInt)(global_sequence), (0, aw_core_1.parseToBigInt)(recv_sequence), trx_id, data); | ||
} | ||
@@ -168,6 +168,6 @@ } | ||
} | ||
const { account, name, block_timestamp, block_number, global_sequence, recv_sequence, transaction_id, } = rawModel; | ||
return new aw_core_1.ContractAction('', block_timestamp, (0, aw_core_1.parseToBigInt)(block_number), account, name, (0, aw_core_1.parseToBigInt)(global_sequence), (0, aw_core_1.parseToBigInt)(recv_sequence), transaction_id, data); | ||
const { account, name, block_timestamp, block_num, global_sequence, recv_sequence, transaction_id, } = rawModel; | ||
return new aw_core_1.ContractAction('', block_timestamp, (0, aw_core_1.parseToBigInt)(block_num), account, name, (0, aw_core_1.parseToBigInt)(global_sequence), (0, aw_core_1.parseToBigInt)(recv_sequence), transaction_id, data); | ||
} | ||
} | ||
exports.IndexWorldsActionProcessorTaskMapper = IndexWorldsActionProcessorTaskMapper; |
@@ -9,3 +9,3 @@ import { MongoDB } from '@alien-worlds/aw-storage-mongodb'; | ||
_id?: MongoDB.ObjectId; | ||
block_number?: MongoDB.Long; | ||
block_num?: MongoDB.Long; | ||
code?: string; | ||
@@ -23,3 +23,3 @@ scope?: string; | ||
block_timestamp: Date; | ||
block_number: string; | ||
block_num: string; | ||
code: string; | ||
@@ -26,0 +26,0 @@ scope: string; |
@@ -26,3 +26,3 @@ "use strict"; | ||
block_timestamp: entity.blockTimestamp, | ||
block_number: new aw_storage_mongodb_1.MongoDB.Long(entity.blockNumber), | ||
block_num: new aw_storage_mongodb_1.MongoDB.Long(entity.blockNumber), | ||
code: entity.code, | ||
@@ -54,4 +54,4 @@ scope: entity.scope, | ||
} | ||
const { _id, block_number, code, scope, table, payer, primary_key, present, block_timestamp, } = mongoModel; | ||
return new aw_core_1.ContractDelta(_id.toString(), (0, aw_core_1.parseToBigInt)(block_number), code, scope, table, data, payer, (0, aw_core_1.parseToBigInt)(primary_key), present, block_timestamp); | ||
const { _id, block_num, code, scope, table, payer, primary_key, present, block_timestamp, } = mongoModel; | ||
return new aw_core_1.ContractDelta(_id.toString(), (0, aw_core_1.parseToBigInt)(block_num), code, scope, table, data, payer, (0, aw_core_1.parseToBigInt)(primary_key), present, block_timestamp); | ||
} | ||
@@ -77,6 +77,6 @@ } | ||
} | ||
const { block_number, code, scope, table, payer, primary_key, present, block_timestamp, } = rawModel; | ||
return new aw_core_1.ContractDelta('', (0, aw_core_1.parseToBigInt)(block_number), code, scope, table, data, payer, (0, aw_core_1.parseToBigInt)(primary_key), present, block_timestamp); | ||
const { block_num, code, scope, table, payer, primary_key, present, block_timestamp, } = rawModel; | ||
return new aw_core_1.ContractDelta('', (0, aw_core_1.parseToBigInt)(block_num), code, scope, table, data, payer, (0, aw_core_1.parseToBigInt)(primary_key), present, block_timestamp); | ||
} | ||
} | ||
exports.IndexWorldsDeltaProcessorTaskMapper = IndexWorldsDeltaProcessorTaskMapper; |
{ | ||
"name": "@alien-worlds/aw-contract-index-worlds", | ||
"version": "0.0.30", | ||
"version": "0.0.31", | ||
"main": "build/index.js", | ||
@@ -5,0 +5,0 @@ "types": "build/index.d.ts", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
116716