This file contains hidden or 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
public fortuneTeller(expectedPrice: PriceQueryResult) { | |
// this is my sophisticated trading strategy. you could build | |
// something more elaborate with the PriceQueryResult object passed in. | |
return Math.random() > 0.5; | |
} | |
public async makeMeRich() { | |
// call the getFundHoldings method which returns an array of holdings. | |
const balances = await this.accountingContract.getFundHoldings(); |
This file contains hidden or 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
### PROTOCOL | |
- confirm node url: | |
ETHEREUM_NODE_MAINNET=https://eth-mainnet.alchemyapi.io/v2/ALxM6coYqWo1MUS12C4vQGTRVD0JfvYx | |
- `yarn`, `yarn compile`, `yarn build` | |
- `yarn hardhat node --export ../subgraphs/deployments/local/v4.json --hostname 0.0.0.0` | |
### SUBGRAPHS | |
- `yarn` in parent dir |
OlderNewer