0.0.3 • Published 1 year ago

exothium-dao v0.0.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

Exothium-DAO

npm version

Exothium-DAO is a JavaScript library that allows developers to interact with the Exothium DAO core contracts on Starknet. Every project that intends to interact with game contracts or DAO contracts can use this library to quickly and easily interact with the,.

Goals

  • ✅ Allow developers to easily interact with the Exothium DAO core contracts on Starknet.
  • ✅ Lightweight and easy to use.
  • ✅ Open source and free to use.

Future Goals

  • Add Dao contract mechanics
  • Add ExoWorld game contracts mechanics

Installation

npm install exothium-dao

Usage

To connect a wallet (e.g. Braavos or ArgentX), you need to use the starknetConnect function.

    import {starknetConnect, starknetDisconnect, ownerOfExothian} from 'exothium-dao';

    const connect = async () => {
        await starknetConnect();
    }

To disconnect a wallet, you need to use the starknetDisconnect function.

const disconnect = async () => {
    await starknetDisconnect();
}

To get the owner of an Exothian, you need to use the ownerOfExothian function.

const owner = await ownerOfExothian(1); //get owner of Exothian with id 1
0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago