@guildsworn/priceresolver-contracts
v1.0.18
Published
Price resolvers contracts for eldfal
Downloads
11
Maintainers
Readme
guildsworn-priceresolver-contracts
Installing the package
npm install @guildsworn/priceresolver-contracts
or via yarn
yarn add @guildsworn/priceresolver-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
- Create
.env
file in root folder or copy and check.env.example
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 settings
Deploy parameters
Deploy on hardhat local network, reset deployment if exists and generate deployment files
npx hardhat deploy --write true --reset
npx hardhat deploy --write true --reset --tags oracle
Deploy on Oasis Sapphire Testnet, generate deployment files
npx hardhat deploy --write true --network oasis_sapphire_testnet --tags oracle
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