moonstream/robots
kompotkot 820adb4ce3 Robots deployment from api repo 2023-06-06 12:29:29 +00:00
..
cmd/robots Updated robots placement 2023-06-06 12:25:07 +00:00
deploy Robots deployment from api repo 2023-06-06 12:29:29 +00:00
pkg/terminus Updated robots placement 2023-06-06 12:25:07 +00:00
.gitignore Updated robots placement 2023-06-06 12:25:07 +00:00
README.md Updated robots placement 2023-06-06 12:25:07 +00:00
dev.sh Updated robots placement 2023-06-06 12:25:07 +00:00
go.mod Updated robots placement 2023-06-06 12:25:07 +00:00
go.sum Updated robots placement 2023-06-06 12:25:07 +00:00
sample.env Updated robots placement 2023-06-06 12:25:07 +00:00

README.md

robots

Generate terminus interface:

mkdir -p pkg/terminus
abigen --abi abi/TerminusFacet.json --pkg terminus --out pkg/terminus/terminus.go

Airdrop preparations

Prepare Entity collection:

curl "https://api.moonstream.to/entity/collections" \
    --header "Authorization: Bearer ${MOONSTREAM_ACCESS_TOKEN}" \
    --header "Content-Type: application/json" \
    --data '{
        "name": "Test whitelist 1"
    }'

Spire

Currently, the creation of public entity collections is available only to administrators through spire CLI.

export COLLECTION_ID="<uuid_of_previously_created_entity_collection>"

List available public autogenerated users:

public-journals users list

Create public user, if required:

public-journals users create --name "test-public-user"

Make collection public with --entry-update or --entry-create flags if required:

public-journals journals make --token "${MOONSTREAM_ACCESS_TOKEN}" \
    --journal-id "${COLLECTION_ID}" \
    --public-user-id "${PUBLIC_USER_ID}"