Skip to content
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

Remove "nonParticipation: true" from offlineKeyReg example #825

Closed
wants to merge 10 commits into from
1 change: 0 additions & 1 deletion examples/participation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ async function main() {
{
from: addr,
suggestedParams,
nonParticipation: true,
}
);
console.log(offlineKeyReg.get_obj_for_encoding());
Expand Down
209 changes: 184 additions & 25 deletions src/client/v2/algod/algod.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/client/v2/algod/getApplicationBoxByName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Box } from './models/types';
* const boxValue = boxResponse.value;
* ```
*
* [Response data schema details](https://developer.algorand.org/docs/rest-apis/algod/v2/#get-v2applicationsapplication-idbox)
* [Response data schema details](https://developer.algorand.org/docs/rest-apis/algod/#get-v2applicationsapplication-idbox)
* @param index - The application ID to look up.
* @category GET
*/
Expand Down
2 changes: 1 addition & 1 deletion src/client/v2/algod/getApplicationBoxes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { BoxesResponse } from './models/types';
* const boxNames = boxesResponse.boxes.map(box => box.name);
* ```
*
* [Response data schema details](https://developer.algorand.org/docs/rest-apis/algod/v2/#get-v2applicationsapplication-idboxes)
* [Response data schema details](https://developer.algorand.org/docs/rest-apis/algod/#get-v2applicationsapplication-idboxes)
* @param index - The application ID to look up.
* @category GET
*/
Expand Down
17 changes: 17 additions & 0 deletions src/client/v2/algod/getBlockOffsetTimestamp.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import JSONRequest from '../jsonrequest';
import { GetBlockTimeStampOffsetResponse } from './models/types';

export default class GetBlockOffsetTimestamp extends JSONRequest<
GetBlockTimeStampOffsetResponse,
Record<string, any>
> {
// eslint-disable-next-line class-methods-use-this
path() {
return `/v2/devmode/blocks/offset`;
}

// eslint-disable-next-line class-methods-use-this
prepare(body: Record<string, any>): GetBlockTimeStampOffsetResponse {
return GetBlockTimeStampOffsetResponse.from_obj_for_encoding(body);
}
}
17 changes: 17 additions & 0 deletions src/client/v2/algod/getSyncRound.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import JSONRequest from '../jsonrequest';
import { GetSyncRoundResponse } from './models/types';

export default class GetSyncRound extends JSONRequest<
GetSyncRoundResponse,
Record<string, any>
> {
// eslint-disable-next-line class-methods-use-this
path() {
return `/v2/ledger/sync`;
}

// eslint-disable-next-line class-methods-use-this
prepare(body: Record<string, any>): GetSyncRoundResponse {
return GetSyncRoundResponse.from_obj_for_encoding(body);
}
}
Loading
Loading