connext
Advanced tools
Comparing version 3.1.0 to 3.1.1
{ | ||
"optOut": false, | ||
"lastUpdateCheck": 1554318601726 | ||
"lastUpdateCheck": 1552315941472 | ||
} |
@@ -1,1 +0,1 @@ | ||
{"metricId":"d4badb35-855b-4b46-9576-1a8b475ed3fa","metrics":{"from":"2019-02-12T19:24:01.733Z","to":"2019-04-03T19:10:21.697Z","successfulInstalls":6,"failedInstalls":0}} | ||
{"metricId":"1e60b808-ffa0-434e-b74a-16e2039d41b3","metrics":{"from":"2019-03-11T14:52:27.954Z","to":"2019-03-11T14:52:27.954Z","successfulInstalls":1,"failedInstalls":0}} |
@@ -6,2 +6,3 @@ import { ConnextClient as Client, getConnextClient as createClient } from './Connext'; | ||
import { Validator } from './validator'; | ||
export { Client, createClient, StateGenerator, types, Utils, Validator, }; | ||
declare const utils: Utils; | ||
export { Client, createClient, StateGenerator, types, utils, Validator, }; |
@@ -18,5 +18,6 @@ "use strict"; | ||
const Utils_1 = require("./Utils"); | ||
exports.Utils = Utils_1.Utils; | ||
const validator_1 = require("./validator"); | ||
exports.Validator = validator_1.Validator; | ||
const utils = new Utils_1.Utils(); | ||
exports.utils = utils; | ||
//# sourceMappingURL=index.js.map |
@@ -21,3 +21,9 @@ import { SyncControllerState, RuntimeState, PendingRequestedDeposit } from './store'; | ||
}; | ||
export declare const setChannelAndUpdate: any; | ||
export declare const setChannelAndUpdate: { | ||
(payload: SetChannelActionArgs, meta?: { | ||
[key: string]: any; | ||
} | null | undefined): import("typescript-fsa").Action<SetChannelActionArgs>; | ||
type: string; | ||
match: (action: import("typescript-fsa").AnyAction) => action is import("typescript-fsa").Action<SetChannelActionArgs>; | ||
}; | ||
export declare const setChannel: ActionCreatorWithHandler<ChannelState<string>>; | ||
@@ -24,0 +30,0 @@ export declare const setLatestValidState: ActionCreatorWithHandler<ChannelState<string>>; |
@@ -84,3 +84,3 @@ import BN = require('bn.js'); | ||
_initialState: ConnextState; | ||
createStore: any; | ||
createStore: () => import("redux").Store<ConnextState, import("typescript-fsa").AnyAction>; | ||
setInitialConnextState: (state: ConnextState) => void; | ||
@@ -87,0 +87,0 @@ setExchangeRate: (rates: ExchangeRates) => void; |
@@ -43,3 +43,3 @@ "use strict"; | ||
if (opts.privateKey) { | ||
this.signer = ethers_1.ethers.Wallet.fromMnemonic(opts.mnemonic || ''); | ||
this.signer = new ethers_1.ethers.Wallet(opts.privateKey || ''); | ||
this.signer.connect(this.provider); | ||
@@ -46,0 +46,0 @@ this.address = this.signer.address.toLowerCase(); |
{ | ||
"name": "connext", | ||
"description": "Shared code between wallet and hub", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "types": "dist/index.d.ts", |
@@ -7,2 +7,4 @@ import { ConnextClient as Client, getConnextClient as createClient } from './Connext' | ||
const utils = new Utils() | ||
// Recommended import patterns: | ||
@@ -17,4 +19,4 @@ // - const Connext = require('connext'); | ||
types, | ||
Utils, | ||
utils, | ||
Validator, | ||
} |
import { SyncControllerState, RuntimeState, PendingRequestedDeposit } from './store' | ||
import actionCreatorFactory, { ActionCreator } from 'typescript-fsa' | ||
//import Wallet from 'ethereumjs-wallet' | ||
import { ConnextState } from '../state/store' | ||
@@ -74,3 +75,3 @@ import { | ||
} | ||
export const setChannelAndUpdate: any = actionCreator<SetChannelActionArgs>('setChannelAndUpdate') | ||
export const setChannelAndUpdate = actionCreator<SetChannelActionArgs>('setChannelAndUpdate') | ||
export const setChannel = setterAction<ChannelState>('persistent.channel') | ||
@@ -77,0 +78,0 @@ export const setLatestValidState = setterAction<ChannelState>('persistent.latestValidState') |
@@ -46,3 +46,3 @@ import { isFunction } from '../lib/utils' | ||
reducers = reducers.case(actions.setChannelAndUpdate, (state, action: any) => handleChannelChange(state, action.state, action.update)) | ||
reducers = reducers.case(actions.setChannelAndUpdate, (state, action) => handleChannelChange(state, action.state, action.update)) | ||
// @ts-ignore | ||
@@ -49,0 +49,0 @@ reducers = reducers.case(actions.setChannel, (state, action) => handleChannelChange(state, action)) |
@@ -534,3 +534,3 @@ import BN = require('bn.js') | ||
public createStore: any = () => { | ||
public createStore = () => { | ||
return createStore(reducers, this._initialState) | ||
@@ -537,0 +537,0 @@ } |
@@ -47,3 +47,3 @@ import { ethers as eth } from 'ethers'; | ||
if (opts.privateKey) { | ||
this.signer = eth.Wallet.fromMnemonic(opts.mnemonic || '') | ||
this.signer = new eth.Wallet(opts.privateKey || '') | ||
this.signer.connect(this.provider) | ||
@@ -50,0 +50,0 @@ this.address = this.signer.address.toLowerCase() |
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
Sorry, the diff of this file is not supported yet
28094
1496910
284