Code Monkey home page Code Monkey logo

astatine's Introduction

astatine

A configurable Profit Sharing Token Distributor GitHub Action to automatically emit Arweave Profit Sharing Tokens.

Configuration

CONFIG.JS

You need to modify config.js according to your requirements. Below are explanations for each of the configuration variables.

  • token_contract_id: String - The contract ID of the token being emitted
  • emit_amount: Integer - Total number of tokens to emit
  • emission_period: Integer - Emission time period in seconds
  • emission_curve.name: "linear" || "exponential": The type of emission curve. linear or exponential

For linear curves, you must also choose one of the two following variables to fill in. If you fill in both, the emission curve will be inaccurate.

  • emission_curve.distribution_slope: Number: The slope of the emission curve
  • emission_curve.initial_emit_amount: Integer: The initial amount of tokens to emit

.GITHUB/WORKFLOWS/DECAY.YML

You need to modify the decay schedule in .github/workflows/decay.yml according to your requirements. You can refer to crontab.guru for more info on cron syntax.

on:
  workflow_dispatch:
  schedule:
    - cron: "0 * * * *" # update this according to your requirements

Arweave Keyfile

You also need to store your Arweave keyfile as a GitHub secret named KEYFILE and the contents of your arweave keyfile as the value. Visit the Secrets documentation for more info.

astatine's People

Contributors

maximousblk avatar t8 avatar ayush-programer avatar

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.