How to use the @polkadot/ui-keyring.accounts function in @polkadot/ui-keyring

To help you get started, we’ve selected a few @polkadot/ui-keyring 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 polkadot-js / apps / packages / app-contracts / src / index.tsx View on Github external
});
    }

  private hideDeploy = (): void => {
    this.setState({ isDeployOpen: false });
  }

  private triggerUpdate = (): void => {
    this.setState({ updated: Date.now() });
  }
}

export default withMulti(
  withRouter(ContractsApp),
  translate,
  withObservable(keyring.accounts.subject, { propName: 'accounts' }),
  withObservable(keyring.contracts.subject, { propName: 'contracts' })
);
github polkadot-js / apps / packages / react-signer / src / Modal.tsx View on Github external
if (isFunction(txFailedCb)) {
        txFailedCb(null);
      }
    }
  }
}

export {
  Signer
};

export default withMulti(
  Signer,
  translate,
  withApi,
  withObservable(keyring.accounts.subject, { propName: 'allAccounts' })
);
github polkadot-js / apps / packages / react-components / src / Voting.tsx View on Github external
icon='check'
          onClick={this.showModal}
        />
      
    );
  }

  private onChangeVote = (voteValue: boolean): void => {
    this.setState({ voteValue });
  }
}

export default withMulti(
  Voting,
  translate,
  withObservable(keyring.accounts.subject, { propName: 'allAccounts' })
);