@df0/contracts
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

@df0/contracts

This package contains deployed contract addresses, ABIs, and Typechain types for the Dark Forest game.

Installation

You can install this package using npm or yarn by running:

npm install --save @df0/contracts
yarn add @df0/contracts

When using this in a plugin, you might want to load it with skypack

import * as contracts from 'http://cdn.skypack.dev/@df0/contracts';

Typechain

The Typechain types can be found in the typechain directory.

ABIs

The contract ABIs can be found in the abis directory.

Table of contents

Variables

Variables

CONTRACT_ADDRESS

Const CONTRACT_ADDRESS: "0xB119a4A4C0dB2C92F331ce0B21b4B7509a25ce67"

The address for the DarkForest contract.


INIT_ADDRESS

Const INIT_ADDRESS: "0x77Ac4EC984CD74883c67D87c9778d4B71Bb6a38A"

The address for the initalizer contract. Useful for lobbies.


NETWORK

Const NETWORK: "xdai"

The name of the network where these contracts are deployed.


NETWORK_ID

Const NETWORK_ID: 100

The id of the network where these contracts are deployed.


START_BLOCK

Const START_BLOCK: 25272350

The block in which the DarkForest contract was initialized.

Readme

Keywords

none

Package Sidebar

Install

npm i @df0/contracts

Weekly Downloads

1

Version

0.0.6

License

MIT

Unpacked Size

5.01 MB

Total Files

245

Last publish

Collaborators

  • dudendy