-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #814 from ethereum-push-notification-service/subgr…
…aph-example chore(/packages/examples/subgraph-notification): subgraph deployment …
- Loading branch information
Showing
16 changed files
with
1,803 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# push-notitifcations-on-subgraph-mainnet | ||
Integrating Push Protocol notifications on to The Graph Network |
126 changes: 126 additions & 0 deletions
126
packages/examples/subgraph-notification/abis/EPNSCore.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
[ | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "_logic", "type": "address" }, | ||
{ "internalType": "address", "name": "_governance", "type": "address" }, | ||
{ | ||
"internalType": "address", | ||
"name": "_pushChannelAdmin", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "_pushTokenAddress", | ||
"type": "address" | ||
}, | ||
{ "internalType": "address", "name": "_wethAddress", "type": "address" }, | ||
{ | ||
"internalType": "address", | ||
"name": "_uniswapRouterAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "_lendingPoolProviderAddress", | ||
"type": "address" | ||
}, | ||
{ "internalType": "address", "name": "_daiAddress", "type": "address" }, | ||
{ "internalType": "address", "name": "_aDaiAddress", "type": "address" }, | ||
{ "internalType": "uint256", "name": "_referralCode", "type": "uint256" } | ||
], | ||
"stateMutability": "payable", | ||
"type": "constructor" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": false, | ||
"internalType": "address", | ||
"name": "previousAdmin", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "address", | ||
"name": "newAdmin", | ||
"type": "address" | ||
} | ||
], | ||
"name": "AdminChanged", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "implementation", | ||
"type": "address" | ||
} | ||
], | ||
"name": "Upgraded", | ||
"type": "event" | ||
}, | ||
{ "stateMutability": "payable", "type": "fallback" }, | ||
{ | ||
"inputs": [], | ||
"name": "admin", | ||
"outputs": [ | ||
{ "internalType": "address", "name": "admin_", "type": "address" } | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "newAdmin", "type": "address" } | ||
], | ||
"name": "changeAdmin", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "implementation", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "implementation_", | ||
"type": "address" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "newImplementation", | ||
"type": "address" | ||
} | ||
], | ||
"name": "upgradeTo", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "newImplementation", | ||
"type": "address" | ||
}, | ||
{ "internalType": "bytes", "name": "data", "type": "bytes" } | ||
], | ||
"name": "upgradeToAndCall", | ||
"outputs": [], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
{ "stateMutability": "payable", "type": "receive" } | ||
] |
193 changes: 193 additions & 0 deletions
193
packages/examples/subgraph-notification/abis/PushToken.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,193 @@ | ||
[ | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "name", | ||
"outputs": [{ "name": "", "type": "string" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ "name": "spender", "type": "address" }, | ||
{ "name": "tokens", "type": "uint256" } | ||
], | ||
"name": "approve", | ||
"outputs": [{ "name": "success", "type": "bool" }], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "totalSupply", | ||
"outputs": [{ "name": "", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ "name": "from", "type": "address" }, | ||
{ "name": "to", "type": "address" }, | ||
{ "name": "tokens", "type": "uint256" } | ||
], | ||
"name": "transferFrom", | ||
"outputs": [{ "name": "success", "type": "bool" }], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "decimals", | ||
"outputs": [{ "name": "", "type": "uint8" }], | ||
"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": "tokenOwner", "type": "address" }], | ||
"name": "balanceOf", | ||
"outputs": [{ "name": "balance", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "symbol", | ||
"outputs": [{ "name": "", "type": "string" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
{ "name": "a", "type": "uint256" }, | ||
{ "name": "b", "type": "uint256" } | ||
], | ||
"name": "safeSub", | ||
"outputs": [{ "name": "c", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "pure", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ "name": "to", "type": "address" }, | ||
{ "name": "tokens", "type": "uint256" } | ||
], | ||
"name": "transfer", | ||
"outputs": [{ "name": "success", "type": "bool" }], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
{ "name": "a", "type": "uint256" }, | ||
{ "name": "b", "type": "uint256" } | ||
], | ||
"name": "safeDiv", | ||
"outputs": [{ "name": "c", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "pure", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ "name": "spender", "type": "address" }, | ||
{ "name": "tokens", "type": "uint256" }, | ||
{ "name": "data", "type": "bytes" } | ||
], | ||
"name": "approveAndCall", | ||
"outputs": [{ "name": "success", "type": "bool" }], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
{ "name": "a", "type": "uint256" }, | ||
{ "name": "b", "type": "uint256" } | ||
], | ||
"name": "safeMul", | ||
"outputs": [{ "name": "c", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "pure", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
{ "name": "tokenOwner", "type": "address" }, | ||
{ "name": "spender", "type": "address" } | ||
], | ||
"name": "allowance", | ||
"outputs": [{ "name": "remaining", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
{ "name": "a", "type": "uint256" }, | ||
{ "name": "b", "type": "uint256" } | ||
], | ||
"name": "safeAdd", | ||
"outputs": [{ "name": "c", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "pure", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "constructor" | ||
}, | ||
{ "payable": true, "stateMutability": "payable", "type": "fallback" }, | ||
{ | ||
"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" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "name": "tokenOwner", "type": "address" }, | ||
{ "indexed": true, "name": "spender", "type": "address" }, | ||
{ "indexed": false, "name": "tokens", "type": "uint256" } | ||
], | ||
"name": "Approval", | ||
"type": "event" | ||
} | ||
] |
Oops, something went wrong.