Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

82 add prices to all investortransaction types #88

Merged
merged 2 commits into from
Sep 1, 2022

Conversation

filo87
Copy link

@filo87 filo87 commented Sep 1, 2022

closes #82
closes #83

@filo87 filo87 linked an issue Sep 1, 2022 that may be closed by this pull request
@filo87 filo87 requested a review from tibohei September 1, 2022 12:16
@filo87 filo87 self-assigned this Sep 1, 2022
@filo87 filo87 merged commit 8a794fa into main Sep 1, 2022
@filo87 filo87 deleted the 82-add-prices-to-all-investortransaction-types branch September 1, 2022 13:36
filo87 added a commit that referenced this pull request Sep 14, 2022
* 74 index loanentity data types (#86)

* feat: create loanService

* refactor: improved service getters

* feat: increase outstandingDebt on borrowings

* feat: basics for handle loan prices

* feat: save priced loans

* feat: activate loan when priced

* feat: handle writeoffs

* feat: handle loan closed and write offs

* fix: loan.repay() should increase totalRepaid

* fix: invest execution decimals and avoid empty transactions (#87)

* 82 add prices to all investortransaction types (#88)

* chore: update chain data

* feat: extend InvestorTransaction decoration and refactor

* feat: use rpc prices from trancheTokenPrices() when investor transactions are processed (#89)

* feat: improved loans and borrower transactions (#90)

* 63 convert outflows to dai (#91)

* feat: add currency value for redeem fields

* fix: currency conversion should support null prices
filo87 added a commit that referenced this pull request Oct 26, 2022
* 74 index loanentity data types (#86)

* feat: create loanService

* refactor: improved service getters

* feat: increase outstandingDebt on borrowings

* feat: basics for handle loan prices

* feat: save priced loans

* feat: activate loan when priced

* feat: handle writeoffs

* feat: handle loan closed and write offs

* fix: loan.repay() should increase totalRepaid

* fix: invest execution decimals and avoid empty transactions (#87)

* 82 add prices to all investortransaction types (#88)

* chore: update chain data

* feat: extend InvestorTransaction decoration and refactor

* feat: use rpc prices from trancheTokenPrices() when investor transactions are processed (#89)

* feat: improved loans and borrower transactions (#90)

* 63 convert outflows to dai (#91)

* feat: add currency value for redeem fields

* fix: currency conversion should support null prices

* 98 failing poolservicegettranchetokenprices causes period to be skipped for remaining pools (#99)

* ci: fix deployment version

* fix: handle missing price updates from RPC

* fix: throw errors on missing prices

* feat: aggregate total investments and repayments for epoches (#100)

* feat: index accounts and tranche balances (#101)

* docs: add deployment status badge

* Update README.md

docs: fix badge link to deployment workflow

* feat: tracking loans history with state snapshot (#102)

* 56 handle updates to pool information poolsupdated event (#106)

* chore: upgraded packages

* feat: track pool updates

* 103 totalinvested  and totalredeemed  are missing in poolsnapshot (#107)

* fix: add missing properties to snapshot

* deploy: update node and query versions

* fix: pool investment and redemptions totals

* feat: indexing missing values (#108)

* ci: updated deployment

* ci: upgraded packages

* feat: paginated getters for snapshots and models (#109)

* chore: upgrade packages

* 104 track currency balances for accounts (#111)

* feat: add data model for currency balances

* feat: track endowments withdrawals and deposits of currency

* feat: get initial balance on currency balance init

* ci: revert subql/node version

Co-authored-by: Timon <timon@embrio.tech>
hieronx pushed a commit that referenced this pull request Dec 22, 2022
* 74 index loanentity data types (#86)

* feat: create loanService

* refactor: improved service getters

* feat: increase outstandingDebt on borrowings

* feat: basics for handle loan prices

* feat: save priced loans

* feat: activate loan when priced

* feat: handle writeoffs

* feat: handle loan closed and write offs

* fix: loan.repay() should increase totalRepaid

* fix: invest execution decimals and avoid empty transactions (#87)

* 82 add prices to all investortransaction types (#88)

* chore: update chain data

* feat: extend InvestorTransaction decoration and refactor

* feat: use rpc prices from trancheTokenPrices() when investor transactions are processed (#89)

* feat: improved loans and borrower transactions (#90)

* 63 convert outflows to dai (#91)

* feat: add currency value for redeem fields

* fix: currency conversion should support null prices

* 98 failing poolservicegettranchetokenprices causes period to be skipped for remaining pools (#99)

* ci: fix deployment version

* fix: handle missing price updates from RPC

* fix: throw errors on missing prices

* feat: aggregate total investments and repayments for epoches (#100)

* feat: index accounts and tranche balances (#101)

* docs: add deployment status badge

* Update README.md

docs: fix badge link to deployment workflow

* feat: tracking loans history with state snapshot (#102)

* 56 handle updates to pool information poolsupdated event (#106)

* chore: upgraded packages

* feat: track pool updates

* 103 totalinvested  and totalredeemed  are missing in poolsnapshot (#107)

* fix: add missing properties to snapshot

* deploy: update node and query versions

* fix: pool investment and redemptions totals

* feat: indexing missing values (#108)

* ci: updated deployment

* ci: upgraded packages

* feat: paginated getters for snapshots and models (#109)

* chore: upgrade packages

* 104 track currency balances for accounts (#111)

* feat: add data model for currency balances

* feat: track endowments withdrawals and deposits of currency

* feat: get initial balance on currency balance init

* ci: revert subql/node version

* 112 develop suitable unit testing approach (#117)

* test: fundamental approach

* test: poolHandlers testing

* test: run pools and tranche tests in CI

* test: include generation of entities

* ci: execute testing in correct order

* docs: updated data model diagram (#118)

* 115 extend kpis as from spreadsheet (#119)

* feat: aggregate loan writeoffs and total overdue

* feat: index additional data

* chore: remove unnecessary imports

* feat: parse and index loanSpecs

* fix: indexing of overdue amount

Co-authored-by: Timon <timon@embrio.tech>
hieronx pushed a commit that referenced this pull request Dec 22, 2022
* 74 index loanentity data types (#86)

* feat: create loanService

* refactor: improved service getters

* feat: increase outstandingDebt on borrowings

* feat: basics for handle loan prices

* feat: save priced loans

* feat: activate loan when priced

* feat: handle writeoffs

* feat: handle loan closed and write offs

* fix: loan.repay() should increase totalRepaid

* fix: invest execution decimals and avoid empty transactions (#87)

* 82 add prices to all investortransaction types (#88)

* chore: update chain data

* feat: extend InvestorTransaction decoration and refactor

* feat: use rpc prices from trancheTokenPrices() when investor transactions are processed (#89)

* feat: improved loans and borrower transactions (#90)

* 63 convert outflows to dai (#91)

* feat: add currency value for redeem fields

* fix: currency conversion should support null prices

* 98 failing poolservicegettranchetokenprices causes period to be skipped for remaining pools (#99)

* ci: fix deployment version

* fix: handle missing price updates from RPC

* fix: throw errors on missing prices

* feat: aggregate total investments and repayments for epoches (#100)

* feat: index accounts and tranche balances (#101)

* docs: add deployment status badge

* Update README.md

docs: fix badge link to deployment workflow

* feat: tracking loans history with state snapshot (#102)

* 56 handle updates to pool information poolsupdated event (#106)

* chore: upgraded packages

* feat: track pool updates

* 103 totalinvested  and totalredeemed  are missing in poolsnapshot (#107)

* fix: add missing properties to snapshot

* deploy: update node and query versions

* fix: pool investment and redemptions totals

* feat: indexing missing values (#108)

* ci: updated deployment

* ci: upgraded packages

* feat: paginated getters for snapshots and models (#109)

* chore: upgrade packages

* 104 track currency balances for accounts (#111)

* feat: add data model for currency balances

* feat: track endowments withdrawals and deposits of currency

* feat: get initial balance on currency balance init

* ci: revert subql/node version

* 112 develop suitable unit testing approach (#117)

* test: fundamental approach

* test: poolHandlers testing

* test: run pools and tranche tests in CI

* test: include generation of entities

* ci: execute testing in correct order

* docs: updated data model diagram (#118)

* 115 extend kpis as from spreadsheet (#119)

* feat: aggregate loan writeoffs and total overdue

* feat: index additional data

* chore: remove unnecessary imports

* feat: parse and index loanSpecs

* fix: indexing of overdue amount

* 114-Integration and fixes for new centrifuge-chain release (#133)

* 113 enhance standasdization and reusability of services (#126)

* refactor: leverage inheritance of entities

* fix: private methods

* test: extend testing for new inheritance

* test: state snapshotter (#127)

* unit testing for investortransactions and loans (#128)

* test: investor transaction tests

* test: investor transaction amounts tests

* test: loans test suite

* fix: chain release

* fix: tests

* ci: upgrade deployment versions

* ci: updated versions and parameters

* ci: use deployment defaults

* ci: disable historical data

* 132 implement naming changes [BREAKING] (#134)

* refactor: rework indexer naming

* feat!: new suffix for field resetting on new pwriod

* ci: disable flags for stati history tracking

* ci: include empty dict dor deployment command

* ci: disable historical data

* ci: update subql cli

* ci: configure project.yaml for different chains

* ci: omit historical data

* fix: reset property naming

* ci: omit historical data flag in deploy

* fix: update project.yaml

* fix: precision of currency to token amount conversion

* ci: escaping deploy.yaml

* ci: deploy.yaml escaping

* ci: more escaping

* ci: more escaping

* ci: escaping

* ci: escaping with single quotes

* ci: escaping hell

* ci: more escaping

* ci: no escaping

* ci: syntax change

* ci: new approach

* ci: test yq

* ci: test yq

* ci: updated approach

* ci: deploy version disabling history

* ci: use frozen lockfile

* chore: packages versions upgrade

* ci: use matrix deployments

* ci: fix yaml bug

* ci: refactor deployment yaml

* ci: reusable job

* ci: convert import to workflow

* ci: fix deployment type

* ci: rename to inputs

* ci: fix inputs

* ci: use npx for subQL publish version CID

* ci: use null dictionary

* ci: use empty dict

* ci: use npx overall

* ci: omit dictionary

* ci: null dict

* ci: use defaults

* ci: derive name and description from manifest

* ci: use CAPS env

* ci: indexer and query versions defined in imported workflow

* ci: add chain yamls

Co-authored-by: Timon <timon@embrio.tech>
filo87 added a commit that referenced this pull request Nov 3, 2023
* 74 index loanentity data types (#86)

* feat: create loanService

* refactor: improved service getters

* feat: increase outstandingDebt on borrowings

* feat: basics for handle loan prices

* feat: save priced loans

* feat: activate loan when priced

* feat: handle writeoffs

* feat: handle loan closed and write offs

* fix: loan.repay() should increase totalRepaid

* fix: invest execution decimals and avoid empty transactions (#87)

* 82 add prices to all investortransaction types (#88)

* chore: update chain data

* feat: extend InvestorTransaction decoration and refactor

* feat: use rpc prices from trancheTokenPrices() when investor transactions are processed (#89)

* feat: improved loans and borrower transactions (#90)

* 63 convert outflows to dai (#91)

* feat: add currency value for redeem fields

* fix: currency conversion should support null prices
filo87 added a commit that referenced this pull request Nov 3, 2023
* 74 index loanentity data types (#86)

* feat: create loanService

* refactor: improved service getters

* feat: increase outstandingDebt on borrowings

* feat: basics for handle loan prices

* feat: save priced loans

* feat: activate loan when priced

* feat: handle writeoffs

* feat: handle loan closed and write offs

* fix: loan.repay() should increase totalRepaid

* fix: invest execution decimals and avoid empty transactions (#87)

* 82 add prices to all investortransaction types (#88)

* chore: update chain data

* feat: extend InvestorTransaction decoration and refactor

* feat: use rpc prices from trancheTokenPrices() when investor transactions are processed (#89)

* feat: improved loans and borrower transactions (#90)

* 63 convert outflows to dai (#91)

* feat: add currency value for redeem fields

* fix: currency conversion should support null prices

* 98 failing poolservicegettranchetokenprices causes period to be skipped for remaining pools (#99)

* ci: fix deployment version

* fix: handle missing price updates from RPC

* fix: throw errors on missing prices

* feat: aggregate total investments and repayments for epoches (#100)

* feat: index accounts and tranche balances (#101)

* docs: add deployment status badge

* Update README.md

docs: fix badge link to deployment workflow

* feat: tracking loans history with state snapshot (#102)

* 56 handle updates to pool information poolsupdated event (#106)

* chore: upgraded packages

* feat: track pool updates

* 103 totalinvested  and totalredeemed  are missing in poolsnapshot (#107)

* fix: add missing properties to snapshot

* deploy: update node and query versions

* fix: pool investment and redemptions totals

* feat: indexing missing values (#108)

* ci: updated deployment

* ci: upgraded packages

* feat: paginated getters for snapshots and models (#109)

* chore: upgrade packages

* 104 track currency balances for accounts (#111)

* feat: add data model for currency balances

* feat: track endowments withdrawals and deposits of currency

* feat: get initial balance on currency balance init

* ci: revert subql/node version

Co-authored-by: Timon <timon@embrio.tech>
filo87 added a commit that referenced this pull request Nov 3, 2023
* 74 index loanentity data types (#86)

* feat: create loanService

* refactor: improved service getters

* feat: increase outstandingDebt on borrowings

* feat: basics for handle loan prices

* feat: save priced loans

* feat: activate loan when priced

* feat: handle writeoffs

* feat: handle loan closed and write offs

* fix: loan.repay() should increase totalRepaid

* fix: invest execution decimals and avoid empty transactions (#87)

* 82 add prices to all investortransaction types (#88)

* chore: update chain data

* feat: extend InvestorTransaction decoration and refactor

* feat: use rpc prices from trancheTokenPrices() when investor transactions are processed (#89)

* feat: improved loans and borrower transactions (#90)

* 63 convert outflows to dai (#91)

* feat: add currency value for redeem fields

* fix: currency conversion should support null prices

* 98 failing poolservicegettranchetokenprices causes period to be skipped for remaining pools (#99)

* ci: fix deployment version

* fix: handle missing price updates from RPC

* fix: throw errors on missing prices

* feat: aggregate total investments and repayments for epoches (#100)

* feat: index accounts and tranche balances (#101)

* docs: add deployment status badge

* Update README.md

docs: fix badge link to deployment workflow

* feat: tracking loans history with state snapshot (#102)

* 56 handle updates to pool information poolsupdated event (#106)

* chore: upgraded packages

* feat: track pool updates

* 103 totalinvested  and totalredeemed  are missing in poolsnapshot (#107)

* fix: add missing properties to snapshot

* deploy: update node and query versions

* fix: pool investment and redemptions totals

* feat: indexing missing values (#108)

* ci: updated deployment

* ci: upgraded packages

* feat: paginated getters for snapshots and models (#109)

* chore: upgrade packages

* 104 track currency balances for accounts (#111)

* feat: add data model for currency balances

* feat: track endowments withdrawals and deposits of currency

* feat: get initial balance on currency balance init

* ci: revert subql/node version

* 112 develop suitable unit testing approach (#117)

* test: fundamental approach

* test: poolHandlers testing

* test: run pools and tranche tests in CI

* test: include generation of entities

* ci: execute testing in correct order

* docs: updated data model diagram (#118)

* 115 extend kpis as from spreadsheet (#119)

* feat: aggregate loan writeoffs and total overdue

* feat: index additional data

* chore: remove unnecessary imports

* feat: parse and index loanSpecs

* fix: indexing of overdue amount

Co-authored-by: Timon <timon@embrio.tech>
filo87 added a commit that referenced this pull request Nov 3, 2023
* 74 index loanentity data types (#86)

* feat: create loanService

* refactor: improved service getters

* feat: increase outstandingDebt on borrowings

* feat: basics for handle loan prices

* feat: save priced loans

* feat: activate loan when priced

* feat: handle writeoffs

* feat: handle loan closed and write offs

* fix: loan.repay() should increase totalRepaid

* fix: invest execution decimals and avoid empty transactions (#87)

* 82 add prices to all investortransaction types (#88)

* chore: update chain data

* feat: extend InvestorTransaction decoration and refactor

* feat: use rpc prices from trancheTokenPrices() when investor transactions are processed (#89)

* feat: improved loans and borrower transactions (#90)

* 63 convert outflows to dai (#91)

* feat: add currency value for redeem fields

* fix: currency conversion should support null prices

* 98 failing poolservicegettranchetokenprices causes period to be skipped for remaining pools (#99)

* ci: fix deployment version

* fix: handle missing price updates from RPC

* fix: throw errors on missing prices

* feat: aggregate total investments and repayments for epoches (#100)

* feat: index accounts and tranche balances (#101)

* docs: add deployment status badge

* Update README.md

docs: fix badge link to deployment workflow

* feat: tracking loans history with state snapshot (#102)

* 56 handle updates to pool information poolsupdated event (#106)

* chore: upgraded packages

* feat: track pool updates

* 103 totalinvested  and totalredeemed  are missing in poolsnapshot (#107)

* fix: add missing properties to snapshot

* deploy: update node and query versions

* fix: pool investment and redemptions totals

* feat: indexing missing values (#108)

* ci: updated deployment

* ci: upgraded packages

* feat: paginated getters for snapshots and models (#109)

* chore: upgrade packages

* 104 track currency balances for accounts (#111)

* feat: add data model for currency balances

* feat: track endowments withdrawals and deposits of currency

* feat: get initial balance on currency balance init

* ci: revert subql/node version

* 112 develop suitable unit testing approach (#117)

* test: fundamental approach

* test: poolHandlers testing

* test: run pools and tranche tests in CI

* test: include generation of entities

* ci: execute testing in correct order

* docs: updated data model diagram (#118)

* 115 extend kpis as from spreadsheet (#119)

* feat: aggregate loan writeoffs and total overdue

* feat: index additional data

* chore: remove unnecessary imports

* feat: parse and index loanSpecs

* fix: indexing of overdue amount

* 114-Integration and fixes for new centrifuge-chain release (#133)

* 113 enhance standasdization and reusability of services (#126)

* refactor: leverage inheritance of entities

* fix: private methods

* test: extend testing for new inheritance

* test: state snapshotter (#127)

* unit testing for investortransactions and loans (#128)

* test: investor transaction tests

* test: investor transaction amounts tests

* test: loans test suite

* fix: chain release

* fix: tests

* ci: upgrade deployment versions

* ci: updated versions and parameters

* ci: use deployment defaults

* ci: disable historical data

* 132 implement naming changes [BREAKING] (#134)

* refactor: rework indexer naming

* feat!: new suffix for field resetting on new pwriod

* ci: disable flags for stati history tracking

* ci: include empty dict dor deployment command

* ci: disable historical data

* ci: update subql cli

* ci: configure project.yaml for different chains

* ci: omit historical data

* fix: reset property naming

* ci: omit historical data flag in deploy

* fix: update project.yaml

* fix: precision of currency to token amount conversion

* ci: escaping deploy.yaml

* ci: deploy.yaml escaping

* ci: more escaping

* ci: more escaping

* ci: escaping

* ci: escaping with single quotes

* ci: escaping hell

* ci: more escaping

* ci: no escaping

* ci: syntax change

* ci: new approach

* ci: test yq

* ci: test yq

* ci: updated approach

* ci: deploy version disabling history

* ci: use frozen lockfile

* chore: packages versions upgrade

* ci: use matrix deployments

* ci: fix yaml bug

* ci: refactor deployment yaml

* ci: reusable job

* ci: convert import to workflow

* ci: fix deployment type

* ci: rename to inputs

* ci: fix inputs

* ci: use npx for subQL publish version CID

* ci: use null dictionary

* ci: use empty dict

* ci: use npx overall

* ci: omit dictionary

* ci: null dict

* ci: use defaults

* ci: derive name and description from manifest

* ci: use CAPS env

* ci: indexer and query versions defined in imported workflow

* ci: add chain yamls

Co-authored-by: Timon <timon@embrio.tech>
filo87 added a commit that referenced this pull request Dec 22, 2023
* fix: ignore local project files

* feat: init multichain

* chore: remove unused olf chain files

* ci: deploy multiple indexers

* fix: modify deployment

* fix: eth specific indexer version

* fix: indexer version

* fix: avoid specity workers for EVM

* fix: no arrays for endpoints

* ci: ignore cid files

* 167 extend data model to include evm accounts (#171)

* feat: extend data model to include EVM accounts
Fixes #167

* feat: extend data model to include EVM accounts
Fixes #167

* ci: deploy only cfg

* fix: currency init logic

* 169 support additional borrower transaction type (#172)

* feat: support additional borrowerTransactionType DebtTransferred
Fixes #169

* feat: support additional borrowerTransactionType DebtTransfer
Fixes #169

* chore: upgrde indexer to 3.4.6

* chore: node upgrade

* Update src/mappings/handlers/loansHandlers.ts

Co-authored-by: Jeroen <1748621+hieronx@users.noreply.github.com>

* Update chains-evm/base.yaml

Co-authored-by: Jeroen <1748621+hieronx@users.noreply.github.com>

* fix: update node versions

* fix: add missing chain files

* 165 implement transfer inout mechanism (#178)

* feat: implement transfer in/out mechanism
Fixes #165

* feat: implement transfer in/out mechanism
Fixes #165

* chore: implement transfer in/out mechanism
Fixes #165

* feat: adapt data model to be chain independent

* fix: end of line

* feat: implement transfer in/out mechanism
Fixes #165

* feat: implement new currency model for orml tokens

* fix: implement transfer in/out mechanism
Fixes #165

* fix: implement transfer in/out mechanism
Fixes #165

* fix: implement transfer in/out mechanism
Fixes #165

* fix: implement transfer in/out mechanism
Fixes #165

* fix: update tests

* fix: endpoints

* fix: transfer typo

* feat: connect to BASE EVM Chain (#179)

Fixes #175

* ci: improve deployment logic

* ci: fix

* ci: fix

* ci: fix

* Delete project-coinbase.yaml

* fix: ignore project files

* ci: handle missing multichain files

* ci: fix yaml multiline

* ci: improve build resilience

* ci: improve build resilience

* ci: remove unrequired chains

* ci: rename files

* ci: fix base file naming

* fix: ci naming

* ci: fix chains

* ci: fix dev contract

---------

Co-authored-by: Jeroen <1748621+hieronx@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

decoration of tokenAmounts and currencyAmounts Add prices to all investorTransaction types
2 participants