Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion create-leo-app/template-node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async function remoteProgramExecution(programName, functionName, inputs) {
const keyProvider = new AleoKeyProvider();
keyProvider.useCache(true);

const programManager = new ProgramManager("http://34.168.156.3:3030", keyProvider);
const programManager = new ProgramManager("http://34.169.215.4:3030", keyProvider);

const tx = await programManager.buildExecutionTransaction(
{
Expand Down
3 changes: 3 additions & 0 deletions sdk/src/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import {
NetworkRecordProvider,
RecordProvider,
} from "./record-provider.js";
import { RecordScanner } from "./record-scanner.js";

// @TODO: This function is no longer needed, remove it.
async function initializeWasm() {
Expand Down Expand Up @@ -126,6 +127,7 @@ export {
PUBLIC_TRANSFER,
PUBLIC_TRANSFER_AS_SIGNER,
PUBLIC_TO_PRIVATE_TRANSFER,
RECORD_DOMAIN,
VALID_TRANSFER_TYPES,
} from "./constants.js";

Expand Down Expand Up @@ -177,6 +179,7 @@ export {
RecordsFilter,
RecordsResponseFilter,
RecordProvider,
RecordScanner,
RecordSearchParams,
SolutionJSON,
SolutionsJSON,
Expand Down
2 changes: 2 additions & 0 deletions sdk/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,5 @@ export const PUBLIC_TO_PRIVATE_TRANSFER = new Set([
"transfer_public_to_private",
"transferPublicToPrivate",
]);

export const RECORD_DOMAIN = "RecordScannerV0";
6 changes: 5 additions & 1 deletion sdk/src/models/record-scanner/recordsResponseFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* @example
* const recordsResponseFilter: RecordsResponseFilter = {
* block_height: true,
* block_timestamp: true,
* checksum: true,
* commitment: true,
* record_ciphertext: true,
Expand All @@ -14,17 +15,20 @@
* owner: true,
* program_name: true,
* record_name: true,
* sender_ciphertext: true,
* transaction_id: true,
* transition_id: true,
* transaction_index: true,
* transition_index: true,
* }
*/
export type RecordsResponseFilter = {
blockHeight?: boolean;
block_height?: boolean;
block_timestamp?: boolean;
checksum?: boolean;
commitment?: boolean;
record_ciphertext?: boolean;
sender_ciphertext?: boolean;
function_name?: boolean;
nonce?: boolean;
output_index?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/models/record-scanner/registrationResponse.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* RegistrationResponse is a type that represents a response from a record scanning service.
* RegistrationResponse is a type that represents a response from a record scanning service's registration endpoint.
*
* @example
* const registrationResponse: RegistrationResponse = {
Expand All @@ -8,7 +8,7 @@
* status: "pending",
* }
*/
interface RegistrationResponse {
export interface RegistrationResponse {
uuid: string,
job_id?: string,
status?: string
Expand Down
13 changes: 13 additions & 0 deletions sdk/src/models/record-scanner/statusResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* StatusResponse is a type that represents a response from a record scanning service's status endpoint.
*
* @example
* const statusResponse: StatusResponse = {
* synced: true,
* percentage: 100,
* }
*/
export interface StatusResponse {
synced: boolean;
percentage: number;
}
Loading
Loading