Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aztec/foundation

Package Overview
Dependencies
Maintainers
6
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aztec/foundation - npm Package Compare versions

Comparing version 0.35.1 to 0.36.0

dest/error/index.d.ts

44

dest/abi/abi.d.ts
/// <reference types="node" resolution-mode="require"/>
import { type Fr } from '../fields/fields.js';
import { type FunctionSelector } from './function_selector.js';

@@ -217,2 +218,11 @@ /**

/**
* The debug information for a given program (a collection of functions)
*/
export interface ProgramDebugInfo {
/**
* A list of debug information that matches with each function in a program
*/
debug_infos: Array<DebugInfo>;
}
/**
* Maps a file ID to its metadata for debugging purposes.

@@ -231,2 +241,28 @@ */

/**
* Type representing a note in use in the contract.
*/
export type ContractNote = {
/**
* Note identifier
*/
id: Fr;
/**
* Type of the note (e.g., 'TransparentNote')
*/
typ: string;
};
/**
* Type representing a field layout in the storage of a contract.
*/
export type FieldLayout = {
/**
* Slot in which the field is stored.
*/
slot: Fr;
/**
* Type being stored at the slot (e.g., 'Map<AztecAddress, PublicMutable<U128>>')
*/
typ: string;
};
/**
* Defines artifact of a contract.

@@ -255,2 +291,10 @@ */

/**
* Storage layout
*/
storageLayout: Record<string, FieldLayout>;
/**
* The notes used in the contract.
*/
notes: Record<string, ContractNote>;
/**
* The map of file ID to the source code and path of the file.

@@ -257,0 +301,0 @@ */

9

dest/abi/abi.js

@@ -51,4 +51,7 @@ import { inflate } from 'pako';

if (functionArtifact.debugSymbols && contractArtifact.fileMap) {
const debugSymbols = JSON.parse(inflate(Buffer.from(functionArtifact.debugSymbols, 'base64'), { to: 'string', raw: true }));
return { debugSymbols, files: contractArtifact.fileMap };
const programDebugSymbols = JSON.parse(inflate(Buffer.from(functionArtifact.debugSymbols, 'base64'), { to: 'string', raw: true }));
// TODO(https://github.com/AztecProtocol/aztec-packages/issues/5813)
// We only support handling debug info for the contract function entry point.
// So for now we simply index into the first debug info.
return { debugSymbols: programDebugSymbols.debug_infos[0], files: contractArtifact.fileMap };
}

@@ -100,2 +103,2 @@ return undefined;

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2FiaS9hYmkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLE1BQU0sQ0FBQztBQXdEL0I7O0dBRUc7QUFDSCxNQUFNLENBQU4sSUFBWSxzQkFHWDtBQUhELFdBQVksc0JBQXNCO0lBQ2hDLDJDQUFpQixDQUFBO0lBQ2pCLDJDQUFpQixDQUFBO0FBQ25CLENBQUMsRUFIVyxzQkFBc0IsS0FBdEIsc0JBQXNCLFFBR2pDO0FBK0VEOztHQUVHO0FBQ0gsTUFBTSxDQUFOLElBQVksWUFJWDtBQUpELFdBQVksWUFBWTtJQUN0QixpQ0FBaUIsQ0FBQTtJQUNqQiw2QkFBYSxDQUFBO0lBQ2IsK0NBQStCLENBQUE7QUFDakMsQ0FBQyxFQUpXLFlBQVksS0FBWixZQUFZLFFBSXZCO0FBbUtEOztHQUVHO0FBQ0gsTUFBTSxVQUFVLG1CQUFtQixDQUNqQyxRQUEwQixFQUMxQixzQkFBaUQ7SUFFakQsTUFBTSxnQkFBZ0IsR0FBRyxRQUFRLENBQUMsU0FBUyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUNuRCxPQUFPLHNCQUFzQixLQUFLLFFBQVE7UUFDeEMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLEtBQUssc0JBQXNCO1FBQ25DLENBQUMsQ0FBQyxzQkFBc0IsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLElBQUksRUFBRSxDQUFDLENBQUMsVUFBVSxDQUFDLENBQ3hELENBQUM7SUFDRixJQUF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pGLElBQUksQ0FBQyxLQUFLLEVBQUUsQ0FBQztZQUNYLE1BQU0sSUFBSSxLQUFLLENBQUMsc0JBQXNCLHlCQUF5QixpQ0FBaUMsQ0FBQyxDQUFDO1FBQ3BHLENBQUM7YUFBTSxJQUFJLENBQUMsS0FBSyxDQUFDLGFBQWEsRUFBRSxDQUFDO1lBQ2hDLE1BQU0sSUFBSSxLQUFLLENBQUMsVUFBVSx5QkFBeUIsd0JBQXdCLENBQUMsQ0FBQztRQUMvRSxDQUFDO1FBQ0QsT0FBTyxLQUFLLENBQUM7SUFDZixDQUFDO1NBQU0sSUFBSSx5QkFBeUIsS0FBSyxTQUFTLEVBQUUsQ0FBQztRQUNuRCxPQUFPLHFCQUFxQixDQUFDLFFBQVEsQ0FBQyxDQUFDO0lBQ3pDLENBQUM7U0FBTSxDQUFDO1FBQ04sSUFBSSxDQUFDLHlCQUF5QixDQUFDLGFBQWEsRUFBRSxDQUFDO1lBQzdDLE1BQU0sSUFBSSxLQUFLLENBQUMsVUFBVSx5QkFBeUIsQ0FBQyxJQUFJLHdCQUF3QixDQUFDLENBQUM7UUFDcEYsQ0FBQztRQUNELE9BQU8seUJBQXlCLENBQUM7SUFDbkMsQ0FBQztBQUNILENBQUMifQ==
import { AztecAddress } from '../aztec-address/index.js';
import { type Fr } from '../fields/index.js';
import { type ABIParameter, type FunctionArtifact } from './abi.js';
import { type ABIParameter, type FunctionAbi } from './abi.js';
/**

@@ -10,3 +10,2 @@ * The type of our decoded ABI.

};
export type ProcessReturnValues = (DecodedReturn | undefined)[] | undefined;
/**

@@ -18,3 +17,3 @@ * Decodes return values from a function call.

*/
export declare function decodeReturnValues(abi: FunctionArtifact, returnValues: Fr[]): DecodedReturn;
export declare function decodeReturnValues(abi: FunctionAbi, returnValues: Fr[]): DecodedReturn;
/**

@@ -21,0 +20,0 @@ * Decodes the signature of a function from the name and parameters.

@@ -163,2 +163,2 @@ import { AztecAddress } from '../aztec-address/index.js';

}
//# sourceMappingURL=data:application/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QsQ0FBQztJQUVRLE1BQU07UUFDYixPQUFPO1lBQ0wsSUFBSSxFQUFFLGNBQWM7WUFDcEIsS0FBSyxFQUFFLElBQUksQ0FBQyxRQUFRLEVBQUU7U0FDdkIsQ0FBQztJQUNKLENBQUM7O0FBckNlLGlCQUFJLEdBQUcsSUFBSSxZQUFZLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDO0FBd0M1RCwwQkFBMEI7QUFDMUIsWUFBWSxDQUFDLFFBQVEsQ0FBQyxjQUFjLEVBQUUsWUFBWSxDQUFDLENBQUMifQ==

@@ -20,9 +20,13 @@ /**

/**
* Returns next item within the queue, or blocks until and item has been put into the queue.
* If given a timeout, the promise will reject if no item is received after `timeout` seconds.
* Returns next item within the queue, or blocks until an item has been put into the queue.
*
* If given a timeout, the promise will reject if no item is received after `timeoutSec` seconds.
* If the timeout is undefined (default), this call will block until an item is available or the queue is closed.
* If the timeout is 0 and there are no items available then the queue will immediately reject with a TimeoutError.
*
* If the queue is flushing, `null` is returned.
* @param timeout - The timeout in seconds.
* @param timeoutSec - The timeout in seconds.
* @returns A result promise.
*/
get(timeout?: number): Promise<T | null>;
get(timeoutSec?: number): Promise<T | null>;
/**

@@ -29,0 +33,0 @@ * Put an item onto back of the queue.

@@ -0,1 +1,2 @@

import { TimeoutError } from '../error/index.js';
import { createDebugLogger } from '../log/index.js';

@@ -24,9 +25,13 @@ /**

/**
* Returns next item within the queue, or blocks until and item has been put into the queue.
* If given a timeout, the promise will reject if no item is received after `timeout` seconds.
* Returns next item within the queue, or blocks until an item has been put into the queue.
*
* If given a timeout, the promise will reject if no item is received after `timeoutSec` seconds.
* If the timeout is undefined (default), this call will block until an item is available or the queue is closed.
* If the timeout is 0 and there are no items available then the queue will immediately reject with a TimeoutError.
*
* If the queue is flushing, `null` is returned.
* @param timeout - The timeout in seconds.
* @param timeoutSec - The timeout in seconds.
* @returns A result promise.
*/
get(timeout) {
get(timeoutSec) {
if (this.items.length) {

@@ -38,5 +43,10 @@ return Promise.resolve(this.items.shift());

}
// if the caller doesn't want to wait for an item to be available
// immediately reject with a Timeout error
if (timeoutSec === 0) {
return Promise.reject(new TimeoutError('Timeout getting item from queue.'));
}
return new Promise((resolve, reject) => {
this.waiting.push(resolve);
if (timeout) {
if (timeoutSec) {
setTimeout(() => {

@@ -46,6 +56,6 @@ const index = this.waiting.findIndex(r => r === resolve);

this.waiting.splice(index, 1);
const err = new Error('Timeout getting item from queue.');
const err = new TimeoutError('Timeout getting item from queue.');
reject(err);
}
}, timeout * 1000);
}, timeoutSec * 1000);
}

@@ -116,2 +126,2 @@ });

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVtb3J5X2ZpZm8uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZmlmby9tZW1vcnlfZmlmby50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUVwRDs7OztHQUlHO0FBQ0gsTUFBTSxPQUFPLFVBQVU7SUFLckIsWUFBb0IsTUFBTSxpQkFBaUIsQ0FBQyw4QkFBOEIsQ0FBQztRQUF2RCxRQUFHLEdBQUgsR0FBRyxDQUFvRDtRQUpuRSxZQUFPLEdBQWlDLEVBQUUsQ0FBQztRQUMzQyxVQUFLLEdBQVEsRUFBRSxDQUFDO1FBQ2hCLGFBQVEsR0FBRyxLQUFLLENBQUM7SUFFcUQsQ0FBQztJQUUvRTs7Ozs7T0FLRztJQUNJLE1BQU07UUFDWCxPQUFPLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDO0lBQzNCLENBQUM7SUFFRDs7Ozs7O09BTUc7SUFDSSxHQUFHLENBQUMsT0FBZ0I7UUFDekIsSUFBSSxJQUFJLENBQUMsS0FBSyxDQUFDLE1BQU0sRUFBRSxDQU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yxLQUFLLEdBQUcsRUFBRSxDQUFDO1FBQ2hCLElBQUksQ0FBQyxPQUFPLENBQUMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxFQUFFLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUM7SUFDakQsQ0FBQztJQUVEOzs7Ozs7OztPQVFHO0lBQ0ksS0FBSyxDQUFDLE9BQU8sQ0FBQyxPQUFtQztRQUN0RCxJQUFJLENBQUM7WUFDSCxPQUFPLElBQUksRUFBRSxDQUFDO2dCQUNaLE1BQU0sSUFBSSxHQUFHLE1BQU0sSUFBSSxDQUFDLEdBQUcsRUFBRSxDQUFDO2dCQUM5QixJQUFJLElBQUksS0FBSyxJQUFJLEVBQUUsQ0FBQztvQkFDbEIsTUFBTTtnQkFDUixDQUFDO2dCQUNELE1BQU0sT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDO1lBQ3RCLENBQUM7UUFDSCxDQUFDO1FBQUMsT0FBTyxHQUFHLEVBQUUsQ0FBQztZQUNiLElBQUksQ0FBQyxHQUFHLENBQUMsS0FBSyxDQUFDLHlCQUF5QixFQUFFLEdBQUcsQ0FBQyxDQUFDO1FBQ2pELENBQUM7SUFDSCxDQUFDO0NBQ0YifQ==

@@ -8,3 +8,3 @@ export * as abi from './abi/index.js';

export * as crypto from './crypto/index.js';
export * as errors from './errors/index.js';
export * as errors from './error/index.js';
export * as ethAddress from './eth-address/index.js';

@@ -11,0 +11,0 @@ export * as fields from './fields/index.js';

@@ -9,3 +9,3 @@ // Reexport all folders at the root for packages targeting CommonJS

export * as crypto from './crypto/index.js';
export * as errors from './errors/index.js';
export * as errors from './error/index.js';
export * as ethAddress from './eth-address/index.js';

@@ -31,2 +31,2 @@ export * as fields from './fields/index.js';

export * as testing from './testing/index.js';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW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bin" | undefined;
entry?: string | undefined;

@@ -91,4 +91,4 @@ description?: string | undefined;

package: {
type?: "lib" | "contract" | "bin" | undefined;
name?: string | undefined;
type?: "lib" | "contract" | "bin" | undefined;
entry?: string | undefined;

@@ -95,0 +95,0 @@ description?: string | undefined;

@@ -1,35 +0,2 @@

/**
* RunningPromise is a utility class that helps manage the execution of an asynchronous function
* at a specified polling interval. It allows starting, stopping, and checking the status of the
* internally managed promise. The class also supports interrupting the polling process when stopped.
*/
export declare class RunningPromise {
private fn;
private pollingInterval;
private running;
private runningPromise;
private interruptPromise;
private interruptResolve;
constructor(fn: () => Promise<void>, pollingInterval?: number);
/**
* Starts the running promise.
*/
start(): void;
/**
* Stops the running promise, resolves any pending interruptible sleep,
* and waits for the currently executing function to complete.
*/
stop(): Promise<void>;
/**
* A sleep function that can be interrupted before the specified time.
* The sleep duration is determined by 'timeInMs', and it can be terminated early if the 'interruptPromise' is resolved.
* @param timeInMs - The time in milliseconds.
*/
private interruptibleSleep;
/**
* Checks if the running promise is currently active.
* @returns True if the promise is running.
*/
isRunning(): boolean;
}
export * from '../promise/running-promise.js';
//# sourceMappingURL=index.d.ts.map

@@ -1,59 +0,2 @@

/**
* RunningPromise is a utility class that helps manage the execution of an asynchronous function
* at a specified polling interval. It allows starting, stopping, and checking the status of the
* internally managed promise. The class also supports interrupting the polling process when stopped.
*/
export class RunningPromise {
constructor(fn, pollingInterval = 10000) {
this.fn = fn;
this.pollingInterval = pollingInterval;
this.running = false;
this.runningPromise = Promise.resolve();
this.interruptPromise = Promise.resolve();
this.interruptResolve = () => { };
}
/**
* Starts the running promise.
*/
start() {
this.running = true;
this.interruptPromise = new Promise(resolve => (this.interruptResolve = resolve));
const poll = async () => {
while (this.running) {
await this.fn();
await this.interruptibleSleep(this.pollingInterval);
}
};
this.runningPromise = poll();
}
/**
* Stops the running promise, resolves any pending interruptible sleep,
* and waits for the currently executing function to complete.
*/
async stop() {
this.running = false;
this.interruptResolve();
await this.runningPromise;
}
/**
* A sleep function that can be interrupted before the specified time.
* The sleep duration is determined by 'timeInMs', and it can be terminated early if the 'interruptPromise' is resolved.
* @param timeInMs - The time in milliseconds.
*/
async interruptibleSleep(timeInMs) {
let timeout;
const sleepPromise = new Promise(resolve => {
timeout = setTimeout(resolve, timeInMs);
});
await Promise.race([sleepPromise, this.interruptPromise]);
clearTimeout(timeout);
}
/**
* Checks if the running promise is currently active.
* @returns True if the promise is running.
*/
isRunning() {
return this.running;
}
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcnVubmluZy1wcm9taXNlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7O0dBSUc7QUFDSCxNQUFNLE9BQU8sY0FBYztJQUt6QixZQUFvQixFQUF1QixFQUFVLGtCQUFrQixLQUFLO1FBQXhELE9BQUUsR0FBRixFQUFFLENBQXFCO1FBQVUsb0JBQWUsR0FBZixlQUFlLENBQVE7UUFKcEUsWUFBTyxHQUFHLEtBQUssQ0FBQztRQUNoQixtQkFBYyxHQUFHLE9BQU8sQ0FBQyxPQUFPLEVBQUUsQ0FBQztRQUNuQyxxQkFBZ0IsR0FBRyxPQUFPLENBQUMsT0FBTyxFQUFFLENBQUM7UUFDckMscUJBQWdCLEdBQUcsR0FBRyxFQUFFLEdBQUUsQ0FBQyxDQUFDO0lBQzJDLENBQUM7SUFFaEY7O09BRUc7SUFDSSxLQUFLO1FBQ1YsSUFBSSxDQUFDLE9BQU8sR0FBRyxJQUFJLENBQUM7UUFDcEIsSUFBSSxDQUFDLGdCQUFnQixHQUFHLElBQUksT0FBTyxDQUFDLE9BQU8sQ0FBQyxFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsZ0JBQWdCLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQztRQUVsRixNQUFNLElBQUksR0FBRyxLQUF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9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcnVubmluZy1wcm9taXNlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsK0JBQStCLENBQUMifQ==

@@ -1,2 +0,2 @@

import { InterruptError } from '../errors/index.js';
import { InterruptError } from '../error/index.js';
/**

@@ -71,2 +71,2 @@ * InterruptibleSleep is a utility class that allows you to create an interruptible sleep function.

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc2xlZXAvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBRXBEOzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBbUJHO0FBQ0gsTUFBTSxPQUFPLGtCQUFrQjtJQUEvQjtRQUNVLGVBQVUsR0FBMEMsRUFBRSxDQUFDO0lBc0NqRSxDQUFDO0lBcENDOzs7Ozs7O09BT0c7SUFDSSxLQUFLLENBQUMsS0FBSyxDQUFDLEVBQVU7UUFDM0IsSUFBSSxnQkFBZ0QsQ0FBQztRQUNyRCxNQUFNLGdCQUFnQixHQUFHLElBQUksT0FBTyxDQUFVLE9BQU8sQ0FBQyxFQUFFO1lBQ3RELGdCQUFnQixHQUFHLE9BQU8sQ0FBQztZQUMzQixJQUFJLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUNoQyxDQUFDLENBQUMsQ0FBQztRQUVILE1BQU0sY0FBYyxHQUFHLElBQUksT0FBTyxDQUFVLE9BQU8sQ0FBQyxFQUFFLENBQUMsVUFBVSxDQUFDLEdBQUcsRUFBRSxDQUFDLE9BQU8sQ0FBQy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DO0lBQ0gsQ0FBQztJQUVEOzs7Ozs7T0FNRztJQUNJLFNBQVMsQ0FBQyxnQkFBZ0IsR0FBRyxLQUFLO1FBQ3ZDLElBQUksQ0FBQyxVQUFVLENBQUMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxFQUFFLENBQUMsT0FBTyxDQUFDLGdCQUFnQixDQUFDLENBQUMsQ0FBQztRQUM5RCxJQUFJLENBQUMsVUFBVSxHQUFHLEVBQUUsQ0FBQztJQUN2QixDQUFDO0NBQ0Y7QUFFRDs7Ozs7Ozs7R0FRRztBQUNILE1BQU0sVUFBVSxLQUFLLENBQUksRUFBVSxFQUFFLFdBQWU7SUFDbEQsT0FBTyxJQUFJLE9BQU8sQ0FBQyxPQUFPLENBQUMsRUFBRSxDQUFDLFVBQVUsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxPQUFPLENBQUMsV0FBVyxDQUFDLEVBQUUsRUFBRSxDQUFDLENBQUMsQ0FBQztBQUM1RSxDQUFDIn0=

@@ -58,3 +58,3 @@ import { existsSync, readFileSync, writeFileSync } from 'fs';

const contents = readFileSync(targetFile, 'utf8').toString();
const regex = new RegExp(`let ${itemName} = .*;`, 'g');
const regex = new RegExp(`let ${itemName} = [\\s\\S]*?;`, 'g');
if (!regex.exec(contents)) {

@@ -74,2 +74,2 @@ throw new Error(`Test data marker for ${itemName} not found in ${targetFile}`);

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdF9kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3Rlc3RpbmcvdGVzdF9kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLGFBQWEsRUFBRSxNQUFNLElBQUksQ0FBQztBQUM3RCxPQUFPLEVBQUUsT0FBTyxFQUFFLElBQUksRUFBRSxPQUFPLEVBQUUs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PQUFPLEtBQUssRUFBRSxDQUFDLENBQUM7QUFDM0UsQ0FBQztBQUVELFNBQVMsYUFBYSxDQUFDLHNCQUE4QjtJQUNuRCxNQUFNLFFBQVEsR0FBRyxPQUFPLENBQUMsT0FBTyxDQUFDLGFBQWEsQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDLEVBQUUsY0FBYyxDQUFDLENBQUM7SUFDbEYsSUFBSSxDQUFDLFVBQVUsQ0FBQyxJQUFJLENBQUMsUUFBUSxFQUFFLFlBQVksQ0FBQyxDQUFDLEVBQUUsQ0FBQztRQUM5QyxNQUFNLElBQUksS0FBSyxDQUFDLHVDQUF1QyxRQUFRLEdBQUcsQ0FBQyxDQUFDO0lBQ3RFLENBQUM7SUFFRCxPQUFPLElBQUksQ0FBQyxRQUFRLEVBQUUsc0JBQXNCLENBQUMsQ0FBQztBQUNoRCxDQUFDIn0=
{
"name": "@aztec/foundation",
"version": "0.35.1",
"version": "0.36.0",
"packageManager": "yarn@3.4.1",

@@ -42,3 +42,4 @@ "type": "module",

"./array": "./dest/array/index.js",
"./validation": "./dest/validation/index.js"
"./validation": "./dest/validation/index.js",
"./promise": "./dest/promise/index.js"
},

@@ -70,6 +71,14 @@ "scripts": {

".ts"
],
"reporters": [
[
"default",
{
"summaryThreshold": 9999
}
]
]
},
"dependencies": {
"@aztec/bb.js": "0.35.1",
"@aztec/bb.js": "0.36.0",
"@koa/cors": "^5.0.0",

@@ -76,0 +85,0 @@ "@noble/curves": "^1.2.0",

import { inflate } from 'pako';
import { type Fr } from '../fields/fields.js';
import { type FunctionSelector } from './function_selector.js';

@@ -244,2 +245,12 @@

/**
* The debug information for a given program (a collection of functions)
*/
export interface ProgramDebugInfo {
/**
* A list of debug information that matches with each function in a program
*/
debug_infos: Array<DebugInfo>;
}
/**
* Maps a file ID to its metadata for debugging purposes.

@@ -262,2 +273,30 @@ */

/**
* Type representing a note in use in the contract.
*/
export type ContractNote = {
/**
* Note identifier
*/
id: Fr;
/**
* Type of the note (e.g., 'TransparentNote')
*/
typ: string;
};
/**
* Type representing a field layout in the storage of a contract.
*/
export type FieldLayout = {
/**
* Slot in which the field is stored.
*/
slot: Fr;
/**
* Type being stored at the slot (e.g., 'Map<AztecAddress, PublicMutable<U128>>')
*/
typ: string;
};
/**
* Defines artifact of a contract.

@@ -287,2 +326,10 @@ */

};
/**
* Storage layout
*/
storageLayout: Record<string, FieldLayout>;
/**
* The notes used in the contract.
*/
notes: Record<string, ContractNote>;

@@ -361,6 +408,9 @@ /**

if (functionArtifact.debugSymbols && contractArtifact.fileMap) {
const debugSymbols = JSON.parse(
const programDebugSymbols = JSON.parse(
inflate(Buffer.from(functionArtifact.debugSymbols, 'base64'), { to: 'string', raw: true }),
);
return { debugSymbols, files: contractArtifact.fileMap };
// TODO(https://github.com/AztecProtocol/aztec-packages/issues/5813)
// We only support handling debug info for the contract function entry point.
// So for now we simply index into the first debug info.
return { debugSymbols: programDebugSymbols.debug_infos[0], files: contractArtifact.fileMap };
}

@@ -367,0 +417,0 @@ return undefined;

import { AztecAddress } from '../aztec-address/index.js';
import { type Fr } from '../fields/index.js';
import { type ABIParameter, type ABIVariable, type AbiType, type FunctionArtifact } from './abi.js';
import { type ABIParameter, type ABIVariable, type AbiType, type FunctionAbi } from './abi.js';
import { isAztecAddressStruct } from './utils.js';

@@ -10,3 +10,2 @@

export type DecodedReturn = bigint | boolean | AztecAddress | DecodedReturn[] | { [key: string]: DecodedReturn };
export type ProcessReturnValues = (DecodedReturn | undefined)[] | undefined;

@@ -18,3 +17,3 @@ /**

class ReturnValuesDecoder {
constructor(private artifact: FunctionArtifact, private flattened: Fr[]) {}
constructor(private artifact: FunctionAbi, private flattened: Fr[]) {}

@@ -102,3 +101,3 @@ /**

*/
export function decodeReturnValues(abi: FunctionArtifact, returnValues: Fr[]) {
export function decodeReturnValues(abi: FunctionAbi, returnValues: Fr[]) {
return new ReturnValuesDecoder(abi, returnValues.slice()).decode();

@@ -105,0 +104,0 @@ }

@@ -24,6 +24,6 @@ import { fromHex, toBigIntBE } from '../bigint-buffer/index.js';

*/
equals(fn: { name: string; parameters: ABIParameter[] }): boolean;
equals(otherName: string, otherParams: ABIParameter[]): boolean;
equals(other: FunctionSelector): boolean;
equals(
override equals(fn: { name: string; parameters: ABIParameter[] }): boolean;
override equals(otherName: string, otherParams: ABIParameter[]): boolean;
override equals(other: FunctionSelector): boolean;
override equals(
other: FunctionSelector | string | { name: string; parameters: ABIParameter[] },

@@ -30,0 +30,0 @@ otherParams?: ABIParameter[],

@@ -26,9 +26,9 @@ import { inspect } from 'util';

static ZERO = new AztecAddress(Buffer.alloc(32));
static override ZERO = new AztecAddress(Buffer.alloc(32));
static zero(): AztecAddress {
static override zero(): AztecAddress {
return AztecAddress.ZERO;
}
static fromBuffer(buffer: Buffer | BufferReader) {
static override fromBuffer(buffer: Buffer | BufferReader) {
return fromBuffer(buffer, AztecAddress);

@@ -50,3 +50,3 @@ }

static fromString(buf: string) {
static override fromString(buf: string) {
const buffer = Buffer.from(buf.replace(/^0x/i, ''), 'hex');

@@ -56,7 +56,7 @@ return new AztecAddress(buffer);

static random() {
static override random() {
return new AztecAddress(super.random().toBuffer());
}
toJSON() {
override toJSON() {
return {

@@ -63,0 +63,0 @@ type: 'AztecAddress',

@@ -0,1 +1,2 @@

import { TimeoutError } from '../error/index.js';
import { createDebugLogger } from '../log/index.js';

@@ -26,9 +27,13 @@

/**
* Returns next item within the queue, or blocks until and item has been put into the queue.
* If given a timeout, the promise will reject if no item is received after `timeout` seconds.
* Returns next item within the queue, or blocks until an item has been put into the queue.
*
* If given a timeout, the promise will reject if no item is received after `timeoutSec` seconds.
* If the timeout is undefined (default), this call will block until an item is available or the queue is closed.
* If the timeout is 0 and there are no items available then the queue will immediately reject with a TimeoutError.
*
* If the queue is flushing, `null` is returned.
* @param timeout - The timeout in seconds.
* @param timeoutSec - The timeout in seconds.
* @returns A result promise.
*/
public get(timeout?: number): Promise<T | null> {
public get(timeoutSec?: number): Promise<T | null> {
if (this.items.length) {

@@ -42,6 +47,12 @@ return Promise.resolve(this.items.shift()!);

// if the caller doesn't want to wait for an item to be available
// immediately reject with a Timeout error
if (timeoutSec === 0) {
return Promise.reject(new TimeoutError('Timeout getting item from queue.'));
}
return new Promise<T | null>((resolve, reject) => {
this.waiting.push(resolve);
if (timeout) {
if (timeoutSec) {
setTimeout(() => {

@@ -51,6 +62,6 @@ const index = this.waiting.findIndex(r => r === resolve);

this.waiting.splice(index, 1);
const err = new Error('Timeout getting item from queue.');
const err = new TimeoutError('Timeout getting item from queue.');
reject(err);
}
}, timeout * 1000);
}, timeoutSec * 1000);
}

@@ -57,0 +68,0 @@ });

@@ -9,3 +9,3 @@ // Reexport all folders at the root for packages targeting CommonJS

export * as crypto from './crypto/index.js';
export * as errors from './errors/index.js';
export * as errors from './error/index.js';
export * as ethAddress from './eth-address/index.js';

@@ -12,0 +12,0 @@ export * as fields from './fields/index.js';

@@ -1,60 +0,1 @@

/**
* RunningPromise is a utility class that helps manage the execution of an asynchronous function
* at a specified polling interval. It allows starting, stopping, and checking the status of the
* internally managed promise. The class also supports interrupting the polling process when stopped.
*/
export class RunningPromise {
private running = false;
private runningPromise = Promise.resolve();
private interruptPromise = Promise.resolve();
private interruptResolve = () => {};
constructor(private fn: () => Promise<void>, private pollingInterval = 10000) {}
/**
* Starts the running promise.
*/
public start() {
this.running = true;
this.interruptPromise = new Promise(resolve => (this.interruptResolve = resolve));
const poll = async () => {
while (this.running) {
await this.fn();
await this.interruptibleSleep(this.pollingInterval);
}
};
this.runningPromise = poll();
}
/**
* Stops the running promise, resolves any pending interruptible sleep,
* and waits for the currently executing function to complete.
*/
async stop(): Promise<void> {
this.running = false;
this.interruptResolve();
await this.runningPromise;
}
/**
* A sleep function that can be interrupted before the specified time.
* The sleep duration is determined by 'timeInMs', and it can be terminated early if the 'interruptPromise' is resolved.
* @param timeInMs - The time in milliseconds.
*/
private async interruptibleSleep(timeInMs: number) {
let timeout!: NodeJS.Timeout;
const sleepPromise = new Promise(resolve => {
timeout = setTimeout(resolve, timeInMs);
});
await Promise.race([sleepPromise, this.interruptPromise]);
clearTimeout(timeout);
}
/**
* Checks if the running promise is currently active.
* @returns True if the promise is running.
*/
public isRunning() {
return this.running;
}
}
export * from '../promise/running-promise.js';

@@ -1,2 +0,2 @@

import { InterruptError } from '../errors/index.js';
import { InterruptError } from '../error/index.js';

@@ -3,0 +3,0 @@ /**

@@ -69,3 +69,3 @@ import { existsSync, readFileSync, writeFileSync } from 'fs';

const contents = readFileSync(targetFile, 'utf8').toString();
const regex = new RegExp(`let ${itemName} = .*;`, 'g');
const regex = new RegExp(`let ${itemName} = [\\s\\S]*?;`, 'g');
if (!regex.exec(contents)) {

@@ -72,0 +72,0 @@ throw new Error(`Test data marker for ${itemName} not found in ${targetFile}`);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc