npm install @guildsworn/stores-contracts
or via yarn
yarn add @guildsworn/stores-contracts
Try running some of the following tasks:
yarn install
yarn clean
yarn compile
yarn test
yarn coverage
yarn docs
npx hardhat generate-interface [Contract name]
cp contracts/[Contract name] contracts/interfaces/
- Create
.env
file in root folder or copy and check.env.example
Available extra env variables:
STABLE_TOKEN_ADDRESS
for general, or useSTABLE_TOKEN_ADDRESS_[ChainId]
for network specific settingsELDFALL_TOKEN_ADDRESS
for general, or useELDFALL_TOKEN_ADDRESS_[ChainId]
for network specific settingsCHARACTER_NFT_ADDRESS
for general, or useCHARACTER_NFT_ADDRESS_[ChainId]
for network specific settingsPRICE_RESOLVER_ORACLE_ADDRESS
for general, or usePRICE_RESOLVER_ORACLE_ADDRESS_[ChainId]
for network specific settingsCHARACTER_STORE_ADDRESS
for general, or useCHARACTER_STORE_ADDRESS_[ChainId]
for network specific settings
npx hardhat deploy --write true --reset
npx hardhat deploy --write true --network oasis_sapphire_testnet
npx hardhat deploy --write true --network oasis_sapphire_mainnet
yarn hardhat --network oasis_sapphire_testnet sourcify
yarn hardhat --network oasis_sapphire_mainnet sourcify
yarn publish