New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/account/balance
staking support
#206
Comments
jvieiro
pushed a commit
that referenced
this issue
Nov 12, 2020
Create findBalanceByAddressAndBlock query in blockchain-queries.ts, findBalanceByAddressAndBlock in blockchain-repository.ts and BlockBalance in models.ts Refs #206
jvieiro
pushed a commit
that referenced
this issue
Nov 12, 2020
Update findUtxoByAddressAndBlock interface for stake accounts and create function getPrefixFromAddress Refs #206
jvieiro
pushed a commit
that referenced
this issue
Nov 12, 2020
jvieiro
pushed a commit
that referenced
this issue
Nov 13, 2020
change number type for string Refs #206
jvieiro
pushed a commit
that referenced
this issue
Nov 13, 2020
jvieiro
pushed a commit
that referenced
this issue
Nov 13, 2020
change name and balance type Refs #206
jvieiro
pushed a commit
that referenced
this issue
Nov 13, 2020
jvieiro
pushed a commit
that referenced
this issue
Nov 13, 2020
Create findBalanceByAddressAndBlock query in blockchain-queries.ts, findBalanceByAddressAndBlock in blockchain-repository.ts and BlockBalance in models.ts Refs #206
jvieiro
pushed a commit
that referenced
this issue
Nov 13, 2020
Update findUtxoByAddressAndBlock interface for stake accounts and create function getPrefixFromAddress Refs #206
jvieiro
pushed a commit
that referenced
this issue
Nov 13, 2020
jvieiro
pushed a commit
that referenced
this issue
Nov 13, 2020
change number type for string Refs #206
jvieiro
pushed a commit
that referenced
this issue
Nov 13, 2020
jvieiro
pushed a commit
that referenced
this issue
Nov 13, 2020
change name and balance type Refs #206
jvieiro
pushed a commit
that referenced
this issue
Nov 13, 2020
jvieiro
pushed a commit
that referenced
this issue
Nov 13, 2020
jvieiro
pushed a commit
that referenced
this issue
Nov 13, 2020
jvieiro
pushed a commit
that referenced
this issue
Nov 13, 2020
Add cardanoService for blockService in services.ts Refs #206
jvieiro
pushed a commit
that referenced
this issue
Nov 13, 2020
jvieiro
pushed a commit
that referenced
this issue
Nov 13, 2020
jvieiro
pushed a commit
that referenced
this issue
Nov 13, 2020
jvieiro
pushed a commit
that referenced
this issue
Nov 16, 2020
change name for a more generic one and handle properly stake accounts Refs #206
jvieiro
pushed a commit
that referenced
this issue
Nov 25, 2020
Update findUtxoByAddressAndBlock interface for stake accounts and create function getPrefixFromAddress Refs #206
jvieiro
pushed a commit
that referenced
this issue
Nov 25, 2020
jvieiro
pushed a commit
that referenced
this issue
Nov 25, 2020
change number type for string Refs #206
jvieiro
pushed a commit
that referenced
this issue
Nov 25, 2020
jvieiro
pushed a commit
that referenced
this issue
Nov 25, 2020
change name and balance type Refs #206
jvieiro
pushed a commit
that referenced
this issue
Nov 25, 2020
jvieiro
pushed a commit
that referenced
this issue
Nov 25, 2020
jvieiro
pushed a commit
that referenced
this issue
Nov 25, 2020
jvieiro
pushed a commit
that referenced
this issue
Nov 25, 2020
Add cardanoService for blockService in services.ts Refs #206
jvieiro
pushed a commit
that referenced
this issue
Nov 25, 2020
jvieiro
pushed a commit
that referenced
this issue
Nov 25, 2020
jvieiro
pushed a commit
that referenced
this issue
Nov 25, 2020
jvieiro
pushed a commit
that referenced
this issue
Nov 25, 2020
change name for a more generic one and handle properly stake accounts Refs #206
jvieiro
pushed a commit
that referenced
this issue
Nov 25, 2020
change response expected for stake account test Refs #206
jvieiro
pushed a commit
that referenced
this issue
Nov 26, 2020
jvieiro
pushed a commit
that referenced
this issue
Nov 26, 2020
jvieiro
pushed a commit
that referenced
this issue
Nov 26, 2020
change name for a more generic one and handle properly stake accounts Refs #206
jvieiro
pushed a commit
that referenced
this issue
Nov 26, 2020
tomasBustamante
pushed a commit
that referenced
this issue
Nov 27, 2020
* feat: Handle stake accounts in account/balance Refs #206 * test: add stake account test Refs #206 * refactor: refact findUtxoByAddressAndBlock function change name for a more generic one and handle properly stake accounts Refs #206 * test: add data set for rewards Refs #206 * fix: fix account balance query * test: add stake account balance tests * refactor: create isStakeAddress function * test: adapt fixture data for account balance * fix: fix account balance query Use block id as filter
AlanVerbner
pushed a commit
that referenced
this issue
Nov 28, 2020
* feat: Handle stake accounts in account/balance Refs #206 * test: add stake account test Refs #206 * refactor: refact findUtxoByAddressAndBlock function change name for a more generic one and handle properly stake accounts Refs #206 * test: add data set for rewards Refs #206 * fix: fix account balance query * test: add stake account balance tests * refactor: create isStakeAddress function * test: adapt fixture data for account balance * fix: fix account balance query Use block id as filter
AlanVerbner
pushed a commit
that referenced
this issue
Dec 2, 2020
* feat: Handle stake accounts in account/balance Refs #206 * test: add stake account test Refs #206 * refactor: refact findUtxoByAddressAndBlock function change name for a more generic one and handle properly stake accounts Refs #206 * test: add data set for rewards Refs #206 * fix: fix account balance query * test: add stake account balance tests * refactor: create isStakeAddress function * test: adapt fixture data for account balance * fix: fix account balance query Use block id as filter
rhyslbw
pushed a commit
that referenced
this issue
Dec 4, 2020
* feat: Handle stake accounts in account/balance Refs #206 * test: add stake account test Refs #206 * refactor: refact findUtxoByAddressAndBlock function change name for a more generic one and handle properly stake accounts Refs #206 * test: add data set for rewards Refs #206 * fix: fix account balance query * test: add stake account balance tests * refactor: create isStakeAddress function * test: adapt fixture data for account balance * fix: fix account balance query Use block id as filter
AlanVerbner
pushed a commit
that referenced
this issue
Dec 7, 2020
* feat: Handle stake accounts in account/balance Refs #206 * test: add stake account test Refs #206 * refactor: refact findUtxoByAddressAndBlock function change name for a more generic one and handle properly stake accounts Refs #206 * test: add data set for rewards Refs #206 * fix: fix account balance query * test: add stake account balance tests * refactor: create isStakeAddress function * test: adapt fixture data for account balance * fix: fix account balance query Use block id as filter
AlanVerbner
pushed a commit
that referenced
this issue
Dec 8, 2020
* feat: Handle stake accounts in account/balance Refs #206 * test: add stake account test Refs #206 * refactor: refact findUtxoByAddressAndBlock function change name for a more generic one and handle properly stake accounts Refs #206 * test: add data set for rewards Refs #206 * fix: fix account balance query * test: add stake account balance tests * refactor: create isStakeAddress function * test: adapt fixture data for account balance * fix: fix account balance query Use block id as filter
AlanVerbner
pushed a commit
that referenced
this issue
Dec 11, 2020
* feat: Handle stake accounts in account/balance Refs #206 * test: add stake account test Refs #206 * refactor: refact findUtxoByAddressAndBlock function change name for a more generic one and handle properly stake accounts Refs #206 * test: add data set for rewards Refs #206 * fix: fix account balance query * test: add stake account balance tests * refactor: create isStakeAddress function * test: adapt fixture data for account balance * fix: fix account balance query Use block id as filter
AlanVerbner
pushed a commit
that referenced
this issue
Dec 11, 2020
* feat: Handle stake accounts in account/balance Refs #206 * test: add stake account test Refs #206 * refactor: refact findUtxoByAddressAndBlock function change name for a more generic one and handle properly stake accounts Refs #206 * test: add data set for rewards Refs #206 * fix: fix account balance query * test: add stake account balance tests * refactor: create isStakeAddress function * test: adapt fixture data for account balance * fix: fix account balance query Use block id as filter
Implemented here https://github.com/input-output-hk/cardano-rosetta/pull/213 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As we will be introducing staking functionality, we also need to be able to return staking account balances. We need to provide the balance of a staking account at a certain block number. To do so, we need to let people to query for an account based on a stake address.
The response format should not change but different tables will need to be queried when looking for a stake address.
bech32
preffix (stake
,stake_test
)src/server/services/block-service.ts#findUtxoByAddressAndBlock
to:src/server/utils/data-mapper.ts#mapToAccountBalanceResponse
to properly map the new type (do not includeutxos
in case of stakingTesting
As mentioned in #208 we cannot use a db-snapshot therefore some blocks will need to be inserter to fake data.
rosetta-cli check:data
still workscheck:data
for a block range containing blockTBD
.check:data
for the whole chain.The text was updated successfully, but these errors were encountered: