Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@white-matrix/cellevolution-sdk

Package Overview
Dependencies
Maintainers
9
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@white-matrix/cellevolution-sdk

[![npm version](https://badge.fury.io/js/blindbox-sdk.svg)](https://badge.fury.io/js/blindbox-sdk)

  • 0.0.2-a
  • latest
  • npm
  • Socket score

Version published
Maintainers
9
Created
Source

SDK Package

npm version

Install

yarn add @white-matrix/cellevolution-sdk

API Reference:

Interface

RiverBox Interface

riverbox-client.ts

export interface CellEvolutionClient {
  connectProvider(address: string, provider: Provider): CellEvolutionClient;

  connectSigner(signer: Signer): CellEvolutionClient;

  setWaitConfirmations(num: number): void;

  /* Backup interface
   * @return CellEvolution typechain interface for  CellEvolution contract
   */
  cellEvolutionContract?(): Promise<CellEvolutionNewWorld>;

  inheritance(config?: PayableOverrides): Promise<Array<BigNumber>>;

  getCellHistory(
    cellHistoryId: BigNumber,
    config?: PayableOverrides
  ): Promise<CellHistory>;

  getCellDB(cellDBId: BigNumber, config?: PayableOverrides): Promise<_CellEvolution>;

  isOpen(config?: PayableOverrides): Promise<boolean>;

  admAdd(config?: PayableOverrides): Promise<string>;

  totalcell(config?: PayableOverrides): Promise<BigNumber>;

  historyno(config?: PayableOverrides): Promise<BigNumber>;

  version(config?: PayableOverrides): Promise<BigNumber>;

  inheritanceno(config?: PayableOverrides): Promise<BigNumber>;

  setIsOpen(isopen: boolean, config: PayableOverrides): Promise<any>;

  setCellno(cellno: BigNumber, config: PayableOverrides): Promise<any>;

  sethistoryno(historyno: BigNumber, config: PayableOverrides): Promise<any>;

  setVersion(versionno: BigNumber, config: PayableOverrides): Promise<any>;

  setHomeworld(
    worldId: BigNumber,
    newtitle: string,
    config: PayableOverrides
  ): Promise<any>;

  writeworld(
    cellHistory:CellHistory,
    config: PayableOverrides
  ): Promise<any>;

  writecell(
    cellEvolution:_CellEvolution,
    config: PayableOverrides
  ): Promise<any>;

  dnamerge(
    id: BigNumber,
    cellno: BigNumber,
    adaption: BigNumber,
    surviveability: BigNumber,
    division: BigNumber,
    environment: BigNumber,
    day: BigNumber,
    totoalscore: BigNumber,
    finaltitle: string,
    config: PayableOverrides
  ): Promise<any>;

  newinheritance(config: PayableOverrides): Promise<any>;

  worldtitlecheck(config: PayableOverrides): Promise<any>;

  checkdeath(
    cellno: BigNumber,
    adaption: BigNumber,
    surviveability: BigNumber,
    division: BigNumber,
    config: PayableOverrides
  ): Promise<any>;
}

SDK-Package:

Build:

yarn run build

Test:

Start local hardhat node first and deploy the contract

CONTRACT_ADDRESS={ADDRESS} yarn run test

Publish:

Recommend to use yarn's publish command to publish the pacakge

yarn publish

FAQs

Package last updated on 12 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc