@harmony-js/core
Advanced tools
Comparing version 0.1.19 to 0.1.20
@@ -34,4 +34,6 @@ import { HttpProvider, WSProvider, Messenger, ShardingItem } from '@harmony-js/network'; | ||
utils: any; | ||
defaultShardID?: number; | ||
constructor(wallet: ExtensionInterface); | ||
setProvider(provider: string | HttpProvider | WSProvider): void; | ||
setShardID(shardID: number): void; | ||
isExtension(wallet: ExtensionInterface): void; | ||
@@ -38,0 +40,0 @@ login(): Promise<ExtensionAccount>; |
@@ -40,2 +40,7 @@ "use strict"; | ||
}; | ||
HarmonyExtension.prototype.setShardID = function (shardID) { | ||
this.defaultShardID = shardID; | ||
this.messenger.setDefaultShardID(this.defaultShardID); | ||
this.setMessenger(this.messenger); | ||
}; | ||
HarmonyExtension.prototype.isExtension = function (wallet) { | ||
@@ -42,0 +47,0 @@ var _this = this; |
@@ -925,2 +925,7 @@ /** | ||
}; | ||
HarmonyExtension.prototype.setShardID = function (shardID) { | ||
this.defaultShardID = shardID; | ||
this.messenger.setDefaultShardID(this.defaultShardID); | ||
this.setMessenger(this.messenger); | ||
}; | ||
HarmonyExtension.prototype.isExtension = function (wallet) { | ||
@@ -927,0 +932,0 @@ var _this = this; |
@@ -924,2 +924,7 @@ /** | ||
}; | ||
HarmonyExtension.prototype.setShardID = function (shardID) { | ||
this.defaultShardID = shardID; | ||
this.messenger.setDefaultShardID(this.defaultShardID); | ||
this.setMessenger(this.messenger); | ||
}; | ||
HarmonyExtension.prototype.isExtension = function (wallet) { | ||
@@ -926,0 +931,0 @@ var _this = this; |
@@ -920,2 +920,7 @@ /** | ||
}; | ||
HarmonyExtension.prototype.setShardID = function (shardID) { | ||
this.defaultShardID = shardID; | ||
this.messenger.setDefaultShardID(this.defaultShardID); | ||
this.setMessenger(this.messenger); | ||
}; | ||
HarmonyExtension.prototype.isExtension = function (wallet) { | ||
@@ -922,0 +927,0 @@ var _this = this; |
{ | ||
"name": "@harmony-js/core", | ||
"version": "0.1.19", | ||
"version": "0.1.20", | ||
"description": "harmony core package", | ||
@@ -21,10 +21,10 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@harmony-js/account": "0.1.19", | ||
"@harmony-js/contract": "0.1.19", | ||
"@harmony-js/account": "0.1.20", | ||
"@harmony-js/contract": "0.1.20", | ||
"@harmony-js/crypto": "0.1.14", | ||
"@harmony-js/network": "0.1.19", | ||
"@harmony-js/transaction": "0.1.19", | ||
"@harmony-js/transaction": "0.1.20", | ||
"@harmony-js/utils": "0.1.14" | ||
}, | ||
"gitHead": "1a76aeebacecd1e3a1c1eca91517f2889e23171a" | ||
"gitHead": "469f4a37b53e466271c0e8521832b99e9725091d" | ||
} |
@@ -55,2 +55,3 @@ import { | ||
utils: any; | ||
defaultShardID?: number; | ||
@@ -82,2 +83,8 @@ constructor(wallet: ExtensionInterface) { | ||
public setShardID(shardID: number) { | ||
this.defaultShardID = shardID; | ||
this.messenger.setDefaultShardID(this.defaultShardID); | ||
this.setMessenger(this.messenger); | ||
} | ||
public isExtension(wallet: ExtensionInterface) { | ||
@@ -84,0 +91,0 @@ let isExtension = false; |
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
476496
5510
+ Added@harmony-js/account@0.1.20(transitive)
+ Added@harmony-js/contract@0.1.20(transitive)
+ Added@harmony-js/transaction@0.1.20(transitive)
- Removed@harmony-js/account@0.1.19(transitive)
- Removed@harmony-js/contract@0.1.19(transitive)
- Removed@harmony-js/transaction@0.1.19(transitive)
Updated@harmony-js/account@0.1.20
Updated@harmony-js/contract@0.1.20