1.0.20 • Published 3 years ago
@guildsworn/stores-contracts v1.0.20
guildsworn-stores-contracts
Installing the package
npm install @guildsworn/stores-contractsor via yarn
yarn add @guildsworn/stores-contractsCompiling, building
Try running some of the following tasks:
yarn install
yarn clean
yarn compile
yarn test
yarn coverage
yarn docsUpdating interfaces
npx hardhat generate-interface [Contract name]
cp contracts/[Contract name] contracts/interfaces/Smart Contract deploy
Before deploy
- Create
.envfile in root folder or copy and check.env.example
Available extra env variables:
STABLE_TOKEN_ADDRESSfor general, or useSTABLE_TOKEN_ADDRESS_[ChainId]for network specific settingsELDFALL_TOKEN_ADDRESSfor general, or useELDFALL_TOKEN_ADDRESS_[ChainId]for network specific settingsCHARACTER_NFT_ADDRESSfor general, or useCHARACTER_NFT_ADDRESS_[ChainId]for network specific settingsPRICE_RESOLVER_ORACLE_ADDRESSfor general, or usePRICE_RESOLVER_ORACLE_ADDRESS_[ChainId]for network specific settingsCHARACTER_STORE_ADDRESSfor general, or useCHARACTER_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 --resetDeploy on Oasis Sapphire Testnet, generate deployment files
npx hardhat deploy --write true --network oasis_sapphire_testnetDeploy on Oasis Sapphire Mestnet, generate deployment files
npx hardhat deploy --write true --network oasis_sapphire_mainnetVerify contract for testnet
yarn hardhat --network oasis_sapphire_testnet sourcifyVerify contract for mainnet
yarn hardhat --network oasis_sapphire_mainnet sourcifyPublish the NPM package
yarn publish