Install locally:
npm install @logion/import
Install globally:
sudo npm install @logion/import -g
Run previously installed :
logion-import
Run without installation
npx @logion/import
yarn build
# Test CSV validation
node dist/index validate-csv samples/*
# Test CSV creation
node dist/index create-csv --with-files image/png --with-tokens owner
Below steps must be executed only if you did not yet create the logion-test
network.
- Create
logion-test
network:docker network create logion-test
- Get network's gateway IP address:
docker network inspect logion-test | jq '.[0].IPAM.Config[0].Gateway'
- Set
RPC_WS
variable in.env
file (see.env.sample
for an example) with the above IP address
- Start the Logion chain locally (see here)
- In another terminal, run the tests:
yarn integration-test
- Stop Zombienet