@harmony-js/core
Advanced tools
Comparing version 0.0.7 to 0.0.11
@@ -24,6 +24,5 @@ // tslint:disable-next-line: no-implicit-dependencies | ||
it('should test get block methods', async () => { | ||
const chainType = 0; | ||
// test constructors | ||
const bc = new Blockchain(messenger); | ||
const bc2 = new Blockchain(messenger, chainType); | ||
const bc2 = new Blockchain(messenger); | ||
// test setMessenger | ||
@@ -30,0 +29,0 @@ bc2.setMessenger(messenger); |
@@ -1,2 +0,2 @@ | ||
import { Messenger, WSProvider } from '@harmony-js/network'; | ||
import { Messenger } from '@harmony-js/network'; | ||
import { HarmonyCore } from '@harmony-js/utils'; | ||
@@ -84,6 +84,6 @@ import { Transaction } from '@harmony-js/transaction'; | ||
gasPrice(): Promise<any>; | ||
newPendingTransactions(): Promise<WSProvider>; | ||
newBlockHeaders(): Promise<WSProvider>; | ||
newPendingTransactions(): Promise<any>; | ||
newBlockHeaders(): Promise<any>; | ||
} | ||
export { Blockchain }; | ||
//# sourceMappingURL=blockchain.d.ts.map |
@@ -305,3 +305,3 @@ "use strict"; | ||
if (this.messenger.provider instanceof network_1.WSProvider) { | ||
return this.messenger.subscribe("hmy_subscribe" /* Subscribe */, ['newPendingTransactions'], this.chainPrefix); | ||
return this.messenger.subscribe("hmy_subscribe" /* Subscribe */, ['newPendingTransactions'], "method" /* method */, this.chainPrefix); | ||
} | ||
@@ -314,3 +314,3 @@ else { | ||
if (this.messenger.provider instanceof network_1.WSProvider) { | ||
return this.messenger.subscribe("hmy_subscribe" /* Subscribe */, ['newHeads'], this.chainPrefix); | ||
return this.messenger.subscribe("hmy_subscribe" /* Subscribe */, ['newHeads'], "method" /* method */, this.chainPrefix); | ||
} | ||
@@ -317,0 +317,0 @@ else { |
@@ -409,3 +409,3 @@ /** | ||
if (this.messenger.provider instanceof network.WSProvider) { | ||
return this.messenger.subscribe("hmy_subscribe" /* Subscribe */, ['newPendingTransactions'], this.chainPrefix); | ||
return this.messenger.subscribe("hmy_subscribe" /* Subscribe */, ['newPendingTransactions'], "method" /* method */, this.chainPrefix); | ||
} | ||
@@ -418,3 +418,3 @@ else { | ||
if (this.messenger.provider instanceof network.WSProvider) { | ||
return this.messenger.subscribe("hmy_subscribe" /* Subscribe */, ['newHeads'], this.chainPrefix); | ||
return this.messenger.subscribe("hmy_subscribe" /* Subscribe */, ['newHeads'], "method" /* method */, this.chainPrefix); | ||
} | ||
@@ -421,0 +421,0 @@ else { |
@@ -406,3 +406,3 @@ /** | ||
if (this.messenger.provider instanceof WSProvider) { | ||
return this.messenger.subscribe("hmy_subscribe" /* Subscribe */, ['newPendingTransactions'], this.chainPrefix); | ||
return this.messenger.subscribe("hmy_subscribe" /* Subscribe */, ['newPendingTransactions'], "method" /* method */, this.chainPrefix); | ||
} | ||
@@ -415,3 +415,3 @@ else { | ||
if (this.messenger.provider instanceof WSProvider) { | ||
return this.messenger.subscribe("hmy_subscribe" /* Subscribe */, ['newHeads'], this.chainPrefix); | ||
return this.messenger.subscribe("hmy_subscribe" /* Subscribe */, ['newHeads'], "method" /* method */, this.chainPrefix); | ||
} | ||
@@ -418,0 +418,0 @@ else { |
@@ -404,3 +404,3 @@ /** | ||
if (this.messenger.provider instanceof network.WSProvider) { | ||
return this.messenger.subscribe("hmy_subscribe" /* Subscribe */, ['newPendingTransactions'], this.chainPrefix); | ||
return this.messenger.subscribe("hmy_subscribe" /* Subscribe */, ['newPendingTransactions'], "method" /* method */, this.chainPrefix); | ||
} | ||
@@ -413,3 +413,3 @@ else { | ||
if (this.messenger.provider instanceof network.WSProvider) { | ||
return this.messenger.subscribe("hmy_subscribe" /* Subscribe */, ['newHeads'], this.chainPrefix); | ||
return this.messenger.subscribe("hmy_subscribe" /* Subscribe */, ['newHeads'], "method" /* method */, this.chainPrefix); | ||
} | ||
@@ -416,0 +416,0 @@ else { |
{ | ||
"name": "@harmony-js/core", | ||
"version": "0.0.7", | ||
"version": "0.0.11", | ||
"description": "harmony core package", | ||
@@ -20,10 +20,10 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@harmony-js/account": "0.0.7", | ||
"@harmony-js/contract": "0.0.7", | ||
"@harmony-js/crypto": "0.0.7", | ||
"@harmony-js/network": "0.0.7", | ||
"@harmony-js/transaction": "0.0.7", | ||
"@harmony-js/utils": "0.0.7" | ||
"@harmony-js/account": "0.0.11", | ||
"@harmony-js/contract": "0.0.11", | ||
"@harmony-js/crypto": "0.0.11", | ||
"@harmony-js/network": "0.0.11", | ||
"@harmony-js/transaction": "0.0.11", | ||
"@harmony-js/utils": "0.0.11" | ||
}, | ||
"gitHead": "a3ea023b6cfb2a3d1a1493e0a1611694a944f66f" | ||
"gitHead": "ff247a2def95a046ef5ef557c43069c7c4a3926e" | ||
} |
@@ -6,2 +6,3 @@ import { | ||
WSProvider, | ||
SubscribeReturns, | ||
} from '@harmony-js/network'; | ||
@@ -327,2 +328,3 @@ | ||
['newPendingTransactions'], | ||
SubscribeReturns.method, | ||
this.chainPrefix, | ||
@@ -340,2 +342,3 @@ ); | ||
['newHeads'], | ||
SubscribeReturns.method, | ||
this.chainPrefix, | ||
@@ -342,0 +345,0 @@ ); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
255617
3094
+ Added@harmony-js/account@0.0.11(transitive)
+ Added@harmony-js/contract@0.0.11(transitive)
+ Added@harmony-js/crypto@0.0.11(transitive)
+ Added@harmony-js/network@0.0.11(transitive)
+ Added@harmony-js/transaction@0.0.11(transitive)
+ Added@harmony-js/utils@0.0.11(transitive)
+ Added@types/node@22.10.0(transitive)
+ Addedcipher-base@1.0.5(transitive)
- Removed@harmony-js/account@0.0.7(transitive)
- Removed@harmony-js/contract@0.0.7(transitive)
- Removed@harmony-js/crypto@0.0.7(transitive)
- Removed@harmony-js/network@0.0.7(transitive)
- Removed@harmony-js/transaction@0.0.7(transitive)
- Removed@harmony-js/utils@0.0.7(transitive)
- Removed@types/node@22.10.1(transitive)
- Removedcipher-base@1.0.6(transitive)
Updated@harmony-js/account@0.0.11
Updated@harmony-js/contract@0.0.11
Updated@harmony-js/crypto@0.0.11
Updated@harmony-js/network@0.0.11
Updated@harmony-js/utils@0.0.11