Skip to content

Commit

Permalink
algod: Add json query arg to delta endpoints (algorand#793)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Warehime authored and joe-p committed Apr 11, 2024
1 parent 807bf28 commit 067d215
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/asa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async function main() {
console.log(`Asset Params: ${assetInfo.params}`);
// example: ASSET_INFO

await new Promise((f) => setTimeout(f, 1000)); // sleep to ensure indexer is caught up
await new Promise((f) => setTimeout(f, 45000)); // sleep to ensure indexer is caught up

// example: INDEXER_LOOKUP_ASSET
const indexer = getLocalIndexerClient();
Expand Down
1 change: 1 addition & 0 deletions src/client/v2/algod/getLedgerStateDelta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default class GetLedgerStateDelta extends JSONRequest {
constructor(c: HTTPClient, intDecoding: IntDecoding, private round: bigint) {
super(c, intDecoding);
this.round = round;
this.query = { format: 'json' };
}

// eslint-disable-next-line class-methods-use-this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default class GetLedgerStateDeltaForTransactionGroup extends JSONRequest
constructor(c: HTTPClient, intDecoding: IntDecoding, private id: string) {
super(c, intDecoding);
this.id = id;
this.query = { format: 'json' };
}

// eslint-disable-next-line class-methods-use-this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default class GetTransactionGroupLedgerStateDeltasForRound extends JSONRe
constructor(c: HTTPClient, intDecoding: IntDecoding, private round: bigint) {
super(c, intDecoding);
this.round = round;
this.query = { format: 'json' };
}

// eslint-disable-next-line class-methods-use-this
Expand Down
6 changes: 2 additions & 4 deletions tests/cucumber/unit.tags
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@
@unit.responses.participationupdates
@unit.responses.unlimited_assets
@unit.responses.blocksummary
@unit.responses.statedelta
@unit.responses.statedelta.json
@unit.responses.sync
@unit.responses.timestamp
@unit.responses.txngroupdeltas
@unit.responses.txngroupdeltas.json
@unit.sourcemap
@unit.statedelta
@unit.stateproof.paths
@unit.stateproof.responses
@unit.stateproof.responses.msgp
Expand All @@ -37,4 +36,3 @@
@unit.transactions
@unit.transactions.keyreg
@unit.transactions.payment
@unit.txngroupdeltas

0 comments on commit 067d215

Please sign in to comment.