Sidechain support
New Features
- Added ability to use Bitski wallet with custom RPC endpoints (alternative networks, sidechains, custom testnets, local dev networks). For custom chains, we will sign the transaction using Bitski, but submit the result via the custom RPC endpoint.
const bitski = new Bitski('CLIENTID', 'REDIRECTURL');
// Create a local truffle network configuration
const network = {
rpcUrl: 'http://localhost:9545',
chainId: 5777
}
// This provider will just use Bitski for accounts and signing requests
const customProvider = bitski.getProvider({ network });
Bug Fixes & Improvements
- Moved custom, refactored provider-engine dependency to NPM instead of pointing to git, solving some sub-dependency resolution issues.
- Significantly reduced bundle size and dependencies due to refactored provider-engine
Deprecations and Removals
- Removed
rpcUrl
fromProviderOptions
in favor of the newNetwork
interface - Removed the ability to pass a url as a string to
getProvider('http://localhost:9545')
. UseNetwork
instead. - Removed the
name
key fromNetwork
interface, as it isn't strictly necessary
Bug Fixes
- Fix issue with
signOut()
causing network error in console - Fix issue where
signOut()
would not work properly when the user's access token is expired