How to use @0xcert/wanchain-utils - 1 common examples

To help you get started, we’ve selected a few @0xcert/wanchain-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github 0xcert / framework / packages / 0xcert-wanchain-generic-provider / src / core / provider.ts View on Github external
public constructor(options: GenericProviderOptions) {
    super({
      encoder: typeof options.encoder !== 'undefined' ? options.encoder : new Encoder(),
      assetLedgerSource: options.assetLedgerSource || 'https://conventions.0xcert.org/wanchain/xcert-mock.json',
      valueLedgerSource: options.valueLedgerSource || 'https://conventions.0xcert.org/wanchain/token-mock.json',
      ...options,
    });
  }
}

@0xcert/wanchain-utils

General Wanchain utility module with helper functions for the Wanchain blockchain.

MIT
Latest version published 3 years ago

Package Health Score

48 / 100
Full package analysis

Popular @0xcert/wanchain-utils functions