docker pull postgres:latest
docker pull node:latest
docker pull ubuntu:18.04
git submodule update --init --recursive --remote
- Copy .env.sample file to .env and specify POSTGRES_USER and POSTGRES_PASSWORD
- Specify admin seed in .env file in ADMIN_SEED field. This is the seed phrase for the account that admins Matcher contract and controls Escrow. The same account should own the matcher contract so that it can add to contract white list for sponsoring.
ADMIN_SEED=//Alice
- Set the escrow address that matches to the privake key above:
MarketplaceUniqueAddress=5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
- Set the address of Matcher contract and Unique wss endpoint
MatcherContractAddress=5H7XmZ2e3urCwYNLScQryN51xDvqjvUeLG6ffDDEz6NmyTbZ UniqueEndpoint=ws://localhost:9944/
- Set escrow address as an admin in the Matcher contract
- Deploy the matcher contract using the Admin address created with ADMIN_SEED previously
- Set the Admin address to be the admin using setAdmin method in the contract
- Enable contract sponsoring
-
Create collection (collection).
- Set collection admin (admin's seed phrase will be saved in .env file)
- Set schema version, on-chain and off-chain schema (see create collection script in mint backend)
-
Set MINT_ADMIN_SEED in .env file to contain the collection admin seed
-
Set the MINT_COLLECTION_ID in .env file: Id of this collection
- Set FAUCETBOTTOKEN bot's token in .env file
- Set faucet admin seed in FAUCET_BOT_ADMIN in .env file
- Charge faucet address with adequate amount of tokens
Copyright 2021, Unique Network, Usetech Professional
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.