Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide an API to supply the current % of supply remaining for each tokenomics item #9

Open
redDwarf03 opened this issue Dec 16, 2024 · 1 comment · May be fixed by #10
Open

Provide an API to supply the current % of supply remaining for each tokenomics item #9

redDwarf03 opened this issue Dec 16, 2024 · 1 comment · May be fixed by #10

Comments

@redDwarf03
Copy link
Member

redDwarf03 commented Dec 16, 2024

Describe the solution you'd like

So that the website can provide the information dynamically, provide an API to supply the current % of supply remaining for each tokenomics item.

For each address, provide, initial value and current balance in json with
address = Wallet's address (hard coded) - String
original_supply = Original Supply (hard coded) - double
current_balance = Current Balance - double (use graphQL balance request)

{
  "addresses": [
    {
      "address": "0000E0EF0C5A8242D7F743E452E3089B7ACAC43763A3F18C8F5DD38D22299B61CE0E",
      "original_supply": 381966011,
      "current_balance": 350000000,
    },
    {
      "address": "000047C827E93C4F1106906D3F43546EB09176F03DFF15275759D47BF33D9B0D168A",
      "original_supply": 236067977,
      "current_balance": 220000000.24564,
    },
    {
      "address": "000012023D76D65F4A20E563682522576963E36789897312CB6623FDF7914B60ECEF",
      "original_supply": 145898033,
      "current_balance": 140000000.34322,
    },
    {
      "address": "00004769C94199BCA872FFAFA7CE912F6DE4DD8B2B1F4A41985CD25F3C4A190C72BB",
      "original_supply": 90169943,
      "current_balance": 85000000.34543,
    },
    {
      "address": "0000DBE5D04070411325BA8254BC0CE005DF30EBFDFEEFADBC6659FA3D5FA3263DFD",
      "original_supply": 55728090,
      "current_balance": 50000000.342,
    },
    {
      "address": "0000BB90E7EC3051BF7BE8D2BF766DA8BED88AFA696D282ACF5FF8479CE787397E16",
      "original_supply": 34441857,
      "current_balance": 30000000.342,
    },
    {
      "address": "000050CEEE9CEEB411FA027F1FB9247FE04297FF00358D87DE4B7B8F2A7051DF47F7",
      "original_supply": 21286236,
      "current_balance": 20000000.00000,
    }
  ]
}
@redDwarf03
Copy link
Member Author

redDwarf03 commented Dec 16, 2024

Init state: https://mainnet.archethic.net/explorer/transaction/00006B4686539C65BF91CF6CAB24B9B6AA3CAF5AEE7DBFDBCFA5C5DDD701A1B4654D

Network Funding Pool
0000E0EF0C5A8242D7F743E452E3089B7ACAC43763A3F18C8F5DD38D22299B61CE0E
https://mainnet.archethic.net/explorer/chain?address=0000E0EF0C5A8242D7F743E452E3089B7ACAC43763A3F18C8F5DD38D22299B61CE0E
Original: 381,966,011 UCO

Adoption Rewards
000047C827E93C4F1106906D3F43546EB09176F03DFF15275759D47BF33D9B0D168A
https://mainnet.archethic.net/explorer/chain?address=000047C827E93C4F1106906D3F43546EB09176F03DFF15275759D47BF33D9B0D168A
Original: 236,067,977 UCO

Team and advisors
000012023D76D65F4A20E563682522576963E36789897312CB6623FDF7914B60ECEF
https://mainnet.archethic.net/explorer/chain?address=000012023D76D65F4A20E563682522576963E36789897312CB6623FDF7914B60ECEF
Original: 145,898,033 UCO

Staking rewards
00004769C94199BCA872FFAFA7CE912F6DE4DD8B2B1F4A41985CD25F3C4A190C72BB
https://mainnet.archethic.net/explorer/chain?address=00004769C94199BCA872FFAFA7CE912F6DE4DD8B2B1F4A41985CD25F3C4A190C72BB
Original: 90,169,943 UCO

Exchange Liquidity
0000DBE5D04070411325BA8254BC0CE005DF30EBFDFEEFADBC6659FA3D5FA3263DFD
https://mainnet.archethic.net/explorer/chain?address=0000DBE5D04070411325BA8254BC0CE005DF30EBFDFEEFADBC6659FA3D5FA3263DFD
Original: 55,728,090 UCO

Gamification and geo incentives
0000BB90E7EC3051BF7BE8D2BF766DA8BED88AFA696D282ACF5FF8479CE787397E16
https://mainnet.archethic.net/explorer/chain?address=0000BB90E7EC3051BF7BE8D2BF766DA8BED88AFA696D282ACF5FF8479CE787397E16
Original: 34,441,857 UCO

Foundation
000050CEEE9CEEB411FA027F1FB9247FE04297FF00358D87DE4B7B8F2A7051DF47F7
https://mainnet.archethic.net/explorer/chain?address=000050CEEE9CEEB411FA027F1FB9247FE04297FF00358D87DE4B7B8F2A7051DF47F7
Original: 21,286,236 UCO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant