-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add evmBlockHandler * fix: update eth startblock * fix: set tinlake pools to inactive so they're not pulled into the regular pool updates * feat: update evmHandlers and start blocks * feat: update snapshotter to use generic object instead of substrateBlocks * feat: add shelf abi * feat: add currency to tinlake pools * feat: make nft data nullable in schema * feat: add pile abi * feat: add more loan tracking * feat: track tinlake loan repayments * fix: update with all migrated contracts * fix: remove frozen lockfile in order to add abab package * fix: trim abis * fix: address PR optimizations and clean up * fix: update loan fetching and clean up * chore: more clean up * feat: multi-chain timekeeping Co-authored-by: Adam Stox <[email protected]> * fix: contract abi references Co-authored-by: Adam Stox <[email protected]> * chore: clean up snapshotting logic * fix: update tests * fix: make snapshotters async * fix: move handleEvmBlock to its own file and rename to handleEthBlock * fix: build --------- Co-authored-by: Filippo Fontana <[email protected]>
- Loading branch information
Showing
19 changed files
with
639 additions
and
216 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
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
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,29 @@ | ||
[ | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "currentNAV", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [{ "internalType": "uint256", "name": "loan", "type": "uint256" }], | ||
"name": "nftID", | ||
"outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], | ||
"name": "maturityDate", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
} | ||
] |
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,35 @@ | ||
[ | ||
{ | ||
"constant": true, | ||
"inputs": [{ "internalType": "uint256", "name": "loan", "type": "uint256" }], | ||
"name": "debt", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"name": "loanRates", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"name": "rates", | ||
"outputs": [ | ||
{ "internalType": "uint256", "name": "pie", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "chi", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "ratePerSecond", "type": "uint256" }, | ||
{ "internalType": "uint48", "name": "lastUpdated", "type": "uint48" }, | ||
{ "internalType": "uint256", "name": "fixedRate", "type": "uint256" } | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
} | ||
] |
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,11 @@ | ||
[ | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "totalBalance", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
} | ||
] |
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,23 @@ | ||
[ | ||
{ | ||
"constant": true, | ||
"inputs": [{ "internalType": "uint256", "name": "loan", "type": "uint256" }], | ||
"name": "token", | ||
"outputs": [ | ||
{ "internalType": "address", "name": "registry", "type": "address" }, | ||
{ "internalType": "uint256", "name": "nft", "type": "uint256" } | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [{ "internalType": "uint256", "name": "loan", "type": "uint256" }], | ||
"name": "nftLocked", | ||
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
} | ||
] |
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
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 |
---|---|---|
@@ -1,13 +1,33 @@ | ||
network: | ||
chainId: '1' # Ethereum Mainnet | ||
endpoint: "https://mainnet.infura.io/v3/a4ba76cd4be643618572e7467a444e3a" | ||
dictionary: "https://gx.api.subquery.network/sq/subquery/eth-dictionary" | ||
endpoint: 'https://mainnet.infura.io/v3/a4ba76cd4be643618572e7467a444e3a' | ||
dictionary: 'https://gx.api.subquery.network/sq/subquery/eth-dictionary' | ||
bypassBlocks: | ||
- "18721040-18735450" | ||
- "18735460-18747630" | ||
- "18747640-18763940" | ||
- '18721040-18735450' | ||
- '18735460-18747630' | ||
- '18747640-18763940' | ||
dataSources: | ||
- kind: ethereum/Runtime | ||
startBlock: 18721030 | ||
options: | ||
address: '0x78E9e622A57f70F1E0Ec652A4931E4e278e58142' | ||
- kind: ethereum/Runtime | ||
startBlock: 11063000 | ||
options: | ||
abi: navFeed | ||
assets: | ||
navFeed: | ||
file: './abi/navfeed.abi.json' | ||
reserve: | ||
file: './abi/reserve.abi.json' | ||
shelf: | ||
file: './abi/shelf.abi.json' | ||
pile: | ||
file: './abi/pile.abi.json' | ||
mapping: | ||
file: './dist/index.js' | ||
handlers: | ||
- handler: handleEthBlock | ||
kind: ethereum/BlockHandler | ||
filter: | ||
modulo: 3600 |
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
Oops, something went wrong.