Skip to content

Commit

Permalink
feat(#major); powhd; add subgraph (#2632)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruv-chauhan authored Oct 8, 2024
1 parent f4fdd62 commit 211599e
Show file tree
Hide file tree
Showing 35 changed files with 4,523 additions and 0 deletions.
34 changes: 34 additions & 0 deletions deployment/deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -12654,5 +12654,39 @@
}
}
}
},
"powh3d": {
"schema": "generic",
"base": "powh3d",
"protocol": "powh3d",
"project": "powh3d",
"deployments": {
"powh3d-ethereum": {
"network": "ethereum",
"status": "prod",
"versions": {
"schema": "3.0.0",
"subgraph": "1.0.0",
"methodology": "1.0.0"
},
"files": {
"template": "powh3d.template.yaml"
},
"options": {
"prepare:yaml": true,
"prepare:constants": true
},
"services": {
"hosted-service": {
"slug": "powh3d-ethereum",
"query-id": "powh3d-ethereum"
},
"decentralized-network": {
"slug": "powh3d-ethereum",
"query-id": "todo"
}
}
}
}
}
}
4 changes: 4 additions & 0 deletions subgraphs/powh3d/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
configure.ts
docs/
package-lock.json
17 changes: 17 additions & 0 deletions subgraphs/powh3d/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Powh 3D Subgraph

## Methodology v1.0.0

## Metrics

### Usage and Transactions

### TVL

### Revenue

## Useful Links

- Landing Page:
- Docs:
- Contracts:
308 changes: 308 additions & 0 deletions subgraphs/powh3d/abis/Powh3d/Hourglass.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,308 @@
[
{
"constant": true,
"inputs": [{ "name": "_customerAddress", "type": "address" }],
"name": "dividendsOf",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [{ "name": "", "type": "string" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "_ethereumToSpend", "type": "uint256" }],
"name": "calculateTokensReceived",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "totalSupply",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "_tokensToSell", "type": "uint256" }],
"name": "calculateEthereumReceived",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "onlyAmbassadors",
"outputs": [{ "name": "", "type": "bool" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "decimals",
"outputs": [{ "name": "", "type": "uint8" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "", "type": "bytes32" }],
"name": "administrators",
"outputs": [{ "name": "", "type": "bool" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "withdraw",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "sellPrice",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "stakingRequirement",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "_includeReferralBonus", "type": "bool" }],
"name": "myDividends",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "totalEthereumBalance",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "_customerAddress", "type": "address" }],
"name": "balanceOf",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_amountOfTokens", "type": "uint256" }],
"name": "setStakingRequirement",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "buyPrice",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{ "name": "_identifier", "type": "bytes32" },
{ "name": "_status", "type": "bool" }
],
"name": "setAdministrator",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "myTokens",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "symbol",
"outputs": [{ "name": "", "type": "string" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "disableInitialStage",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{ "name": "_toAddress", "type": "address" },
{ "name": "_amountOfTokens", "type": "uint256" }
],
"name": "transfer",
"outputs": [{ "name": "", "type": "bool" }],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_symbol", "type": "string" }],
"name": "setSymbol",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_name", "type": "string" }],
"name": "setName",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_amountOfTokens", "type": "uint256" }],
"name": "sell",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "exit",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_referredBy", "type": "address" }],
"name": "buy",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": true,
"stateMutability": "payable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "reinvest",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{ "payable": true, "stateMutability": "payable", "type": "fallback" },
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "customerAddress", "type": "address" },
{ "indexed": false, "name": "incomingEthereum", "type": "uint256" },
{ "indexed": false, "name": "tokensMinted", "type": "uint256" },
{ "indexed": true, "name": "referredBy", "type": "address" }
],
"name": "onTokenPurchase",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "customerAddress", "type": "address" },
{ "indexed": false, "name": "tokensBurned", "type": "uint256" },
{ "indexed": false, "name": "ethereumEarned", "type": "uint256" }
],
"name": "onTokenSell",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "customerAddress", "type": "address" },
{ "indexed": false, "name": "ethereumReinvested", "type": "uint256" },
{ "indexed": false, "name": "tokensMinted", "type": "uint256" }
],
"name": "onReinvestment",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "customerAddress", "type": "address" },
{ "indexed": false, "name": "ethereumWithdrawn", "type": "uint256" }
],
"name": "onWithdraw",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "from", "type": "address" },
{ "indexed": true, "name": "to", "type": "address" },
{ "indexed": false, "name": "tokens", "type": "uint256" }
],
"name": "Transfer",
"type": "event"
}
]
Loading

0 comments on commit 211599e

Please sign in to comment.