@harmony-js/core
Advanced tools
Comparing version
import * as utils from '@harmony-js/utils'; | ||
import { HttpProvider, Messenger, WSProvider, ShardingItem } from '@harmony-js/network'; | ||
import { TransactionFactory, Transaction } from '@harmony-js/transaction'; | ||
import { StakingTransaction } from '@harmony-js/staking'; | ||
import { StakingTransaction, StakingFactory } from '@harmony-js/staking'; | ||
import { ContractFactory, Contract } from '@harmony-js/contract'; | ||
@@ -16,2 +16,3 @@ import { Wallet, Account } from '@harmony-js/account'; | ||
TransactionFactory: typeof TransactionFactory; | ||
StakingFactory: typeof StakingFactory; | ||
Wallet: typeof Wallet; | ||
@@ -25,2 +26,3 @@ Transaction: typeof Transaction; | ||
transactions: TransactionFactory; | ||
stakings: StakingFactory; | ||
wallet: Wallet; | ||
@@ -27,0 +29,0 @@ blockchain: Blockchain; |
@@ -26,2 +26,3 @@ "use strict"; | ||
TransactionFactory: transaction_1.TransactionFactory, | ||
StakingFactory: staking_1.StakingFactory, | ||
Wallet: account_1.Wallet, | ||
@@ -38,2 +39,3 @@ Transaction: transaction_1.Transaction, | ||
_this.transactions = new transaction_1.TransactionFactory(_this.messenger); | ||
_this.stakings = new staking_1.StakingFactory(_this.messenger); | ||
_this.wallet = new account_1.Wallet(_this.messenger); | ||
@@ -96,2 +98,3 @@ _this.contracts = new contract_1.ContractFactory(_this.wallet); | ||
this.transactions.setMessenger(messenger); | ||
this.stakings.setMessenger(messenger); | ||
}; | ||
@@ -98,0 +101,0 @@ return Harmony; |
@@ -741,2 +741,3 @@ /** | ||
TransactionFactory: transaction.TransactionFactory, | ||
StakingFactory: staking.StakingFactory, | ||
Wallet: account.Wallet, | ||
@@ -753,2 +754,3 @@ Transaction: transaction.Transaction, | ||
_this.transactions = new transaction.TransactionFactory(_this.messenger); | ||
_this.stakings = new staking.StakingFactory(_this.messenger); | ||
_this.wallet = new account.Wallet(_this.messenger); | ||
@@ -811,2 +813,3 @@ _this.contracts = new contract.ContractFactory(_this.wallet); | ||
this.transactions.setMessenger(messenger); | ||
this.stakings.setMessenger(messenger); | ||
}; | ||
@@ -813,0 +816,0 @@ return Harmony; |
@@ -7,7 +7,7 @@ /** | ||
import * as utils from '@harmony-js/utils'; | ||
import { assertObject, defaultConfig, HarmonyCore, Unit, hexToNumber } from '@harmony-js/utils'; | ||
import { assertObject, Unit, defaultConfig, HarmonyCore, hexToNumber } from '@harmony-js/utils'; | ||
import * as crypto from '@harmony-js/crypto'; | ||
import { getAddress } from '@harmony-js/crypto'; | ||
import { TransactionFactory, Transaction } from '@harmony-js/transaction'; | ||
import { StakingTransaction } from '@harmony-js/staking'; | ||
import { StakingTransaction, StakingFactory } from '@harmony-js/staking'; | ||
import { ContractFactory, Contract } from '@harmony-js/contract'; | ||
@@ -740,2 +740,3 @@ import { Wallet, Account, HDNode } from '@harmony-js/account'; | ||
TransactionFactory: TransactionFactory, | ||
StakingFactory: StakingFactory, | ||
Wallet: Wallet, | ||
@@ -752,2 +753,3 @@ Transaction: Transaction, | ||
_this.transactions = new TransactionFactory(_this.messenger); | ||
_this.stakings = new StakingFactory(_this.messenger); | ||
_this.wallet = new Wallet(_this.messenger); | ||
@@ -810,2 +812,3 @@ _this.contracts = new ContractFactory(_this.wallet); | ||
this.transactions.setMessenger(messenger); | ||
this.stakings.setMessenger(messenger); | ||
}; | ||
@@ -812,0 +815,0 @@ return Harmony; |
@@ -735,2 +735,3 @@ /** | ||
TransactionFactory: transaction.TransactionFactory, | ||
StakingFactory: staking.StakingFactory, | ||
Wallet: account.Wallet, | ||
@@ -747,2 +748,3 @@ Transaction: transaction.Transaction, | ||
_this.transactions = new transaction.TransactionFactory(_this.messenger); | ||
_this.stakings = new staking.StakingFactory(_this.messenger); | ||
_this.wallet = new account.Wallet(_this.messenger); | ||
@@ -805,2 +807,3 @@ _this.contracts = new contract.ContractFactory(_this.wallet); | ||
this.transactions.setMessenger(messenger); | ||
this.stakings.setMessenger(messenger); | ||
}; | ||
@@ -807,0 +810,0 @@ return Harmony; |
{ | ||
"name": "@harmony-js/core", | ||
"version": "0.1.35", | ||
"version": "0.1.36", | ||
"description": "harmony core package", | ||
@@ -21,11 +21,11 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@harmony-js/account": "0.1.35", | ||
"@harmony-js/contract": "0.1.35", | ||
"@harmony-js/account": "0.1.36", | ||
"@harmony-js/contract": "0.1.36", | ||
"@harmony-js/crypto": "0.1.35", | ||
"@harmony-js/network": "0.1.35", | ||
"@harmony-js/staking": "0.1.35", | ||
"@harmony-js/staking": "0.1.36", | ||
"@harmony-js/transaction": "0.1.35", | ||
"@harmony-js/utils": "0.1.35" | ||
}, | ||
"gitHead": "cc00c23e9a5da76ad044490827995f1e5c66781e" | ||
"gitHead": "9e05298fe7fd60996d81392f921f24a211c1ae0d" | ||
} |
@@ -6,3 +6,3 @@ import * as crypto from '@harmony-js/crypto'; | ||
import { TransactionFactory, Transaction } from '@harmony-js/transaction'; | ||
import { StakingTransaction } from '@harmony-js/staking'; | ||
import { StakingTransaction, StakingFactory } from '@harmony-js/staking'; | ||
import { ContractFactory, Contract } from '@harmony-js/contract'; | ||
@@ -20,2 +20,3 @@ import { Wallet, Account } from '@harmony-js/account'; | ||
TransactionFactory, | ||
StakingFactory, | ||
Wallet, | ||
@@ -29,2 +30,3 @@ Transaction, | ||
transactions: TransactionFactory; | ||
stakings: StakingFactory; | ||
wallet: Wallet; | ||
@@ -53,2 +55,3 @@ blockchain: Blockchain; | ||
this.transactions = new TransactionFactory(this.messenger); | ||
this.stakings = new StakingFactory(this.messenger); | ||
this.wallet = new Wallet(this.messenger); | ||
@@ -102,3 +105,4 @@ this.contracts = new ContractFactory(this.wallet); | ||
this.transactions.setMessenger(messenger); | ||
this.stakings.setMessenger(messenger); | ||
} | ||
} |
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
522566
0.4%6110
0.3%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated
Updated
Updated