@guildsworn/stores-contracts

1.0.20 • Public • Published

guildsworn-stores-contracts

Installing the package

npm install @guildsworn/stores-contracts

or via yarn

yarn add @guildsworn/stores-contracts

Compiling, building

Try running some of the following tasks:

yarn install
yarn clean
yarn compile
yarn test
yarn coverage
yarn docs

Updating interfaces

npx hardhat generate-interface [Contract name]
cp contracts/[Contract name] contracts/interfaces/

Smart Contract deploy

Before deploy

  1. Create .env file in root folder or copy and check .env.example

Available extra env variables:

  • STABLE_TOKEN_ADDRESS for general, or use STABLE_TOKEN_ADDRESS_[ChainId] for network specific settings
  • ELDFALL_TOKEN_ADDRESS for general, or use ELDFALL_TOKEN_ADDRESS_[ChainId] for network specific settings
  • CHARACTER_NFT_ADDRESS for general, or use CHARACTER_NFT_ADDRESS_[ChainId] for network specific settings
  • PRICE_RESOLVER_ORACLE_ADDRESS for general, or use PRICE_RESOLVER_ORACLE_ADDRESS_[ChainId] for network specific settings
  • CHARACTER_STORE_ADDRESS for general, or use CHARACTER_STORE_ADDRESS_[ChainId] for network specific settings

Deploy parameters

Deploy on hardhat local network, reset deployment if exists and generate deployment files

npx hardhat deploy --write true --reset

Deploy on Oasis Sapphire Testnet, generate deployment files

npx hardhat deploy --write true --network oasis_sapphire_testnet

Deploy on Oasis Sapphire Mestnet, generate deployment files

npx hardhat deploy --write true --network oasis_sapphire_mainnet

Verify contract for testnet

yarn hardhat --network oasis_sapphire_testnet sourcify

Verify contract for mainnet

yarn hardhat --network oasis_sapphire_mainnet sourcify

Publish the NPM package

yarn publish

Package Sidebar

Install

npm i @guildsworn/stores-contracts

Weekly Downloads

1

Version

1.0.20

License

MIT

Unpacked Size

582 kB

Total Files

33

Last publish

Collaborators

  • guildsworn