Giter Club home page Giter Club logo

support-tools's Introduction

Support Tools

general tooling to help support get things done

setup

install dependencies

npm install

link the bin file

npm link

Copy the .env.example file to .env. Insert your credentials (staging / dev only) that you get from the ledger team.

source the .env file

source .env

check that a param is set

echo $HOSTNAME
echo $DATABASE_URL
echo $AUTH

If the values match what you put into your .env file, then run some of the examples below.

It seems that sudo may be required to execute these commands.

if you previously downloaded using the mint-claims repo please run the following commands to sync with the new repo

git remote -v
git remote remove origin
git remote add origin [email protected]:brave-intl/support-tools.git
git branch --set-upstream-to=origin/master master

Mint Claims examples

Create a series of ugp grants for ios filled with 30 bat. To create more than 1 ugp grant to claim for a single wallet, the command must be run multiple times.

sudo mintclaims
  --type=ugp \
  --platform=ios \
  --value=30 \
  --count=100000

Possible platforms include ios, android, and desktop

Create a set of ads grants for 3 specific wallets (1 claim for each). Wallet IDs are space delineated

sudo mintclaims \
  --walletIds=b500b47c-c9bb-4c21-adde-970149c20906 \
    86ce92a0-822c-443d-a68e-faabc76258ec \
    d5402d2b-e6b4-4e75-b95a-28396a1f29a5 \
  --type=ads \
  --platform=desktop \
  --value=5 \
  --count=1

For each wallet ID, create 3 ads grants

sudo mintclaims \
  --walletIds=1de21066-f54c-4f36-91ec-5009fad8801e \
    e540f2c0-20de-4213-939e-91a2cfb7b61a \
  --type=ads \
  --platform=ios \
  --value=5 \
  --count=3

an example of successful run

$ sudo mintclaims \
  --walletIds=1de21066-f54c-4f36-91ec-5009fad8801e \
    e540f2c0-20de-4213-939e-91a2cfb7b61a \
  --type=ads \
  --platform=ios \
  --value=5 \
  --count=5

creating 10 total claims
across 2 wallets.
5 claims per wallet.
only availabe for ios
on the dev environment
connecting to db
creating promotions
creating claims
finished

Wallet linking info

check the wallet linking info on your environment's wallets with a couple of quick commands

if you have their brave wallet id, accessable at brave://rewards-internals

walletlinks --wallet 15823452-6a03-46f0-80e4-c7c3d21d87c7

if you have the member id (not stored on brave's servers) from a transaction for another reason

walletlinks --member-id ca762426-4c6f-46f7-a487-728a66803015

Settlement

create objects to upload as settlements to eyeshade. files will be generated to results/creator-settlement.json

settlements --channels brave.com

if you have publisher ids

settlements --publisher-ids 3cdd2edc-b613-48a9-b3bb-d6e087344687 \
  f1e15b41-ab2d-4ba3-b7a4-88aadc59a2af

or emails

settlements --emails [email protected]

only get the balances for each id and publisher

settlements --steps creators \
  --publisher-ids 3cdd2edc-b613-48a9-b3bb-d6e087344687 f1e15b41-ab2d-4ba3-b7a4-88aadc59a2af

support-tools's People

Contributors

maikelmclauflin avatar orspetol avatar

Forkers

miyayes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.