Skip to content

Sidechain support

Compare
Choose a tag to compare
@pixelmatrix pixelmatrix released this 28 May 20:50

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 from ProviderOptions in favor of the new Network interface
  • Removed the ability to pass a url as a string to getProvider('http://localhost:9545'). Use Network instead.
  • Removed the name key from Network 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