@white-matrix/cellevolution-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.2-a • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @white-matrix/cellevolution-sdk

Weekly Downloads

0

Version

0.0.2-a

License

MIT

Unpacked Size

285 kB

Total Files

61

Last publish

Collaborators

  • shuuuuting
  • hexi1997
  • kilru
  • lucklyric
  • xiadd