Skip to content

Commit 7671192

Browse files
ludamadludamad0
andauthored
fix(build): git add -f .yalc (#265)
* feat(ts): switch to node-modules linker * feat(ts): add new env for SRS objects * feat(ts): test srs bindings * fix: proper uint8_t include * feat(ts): revert unneeded changes * feat(ts): revert unneeded changes * feat(ts): unify writeMemory arg order * Update barretenberg_wasm.ts * feat(ts): fix srs comments * Fix deps * Fix comments * fix(build): git add -f .yalc * Merge --------- Co-authored-by: Adam Domurad <[email protected]>
1 parent d9d4cb7 commit 7671192

File tree

123 files changed

+2340
-65
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+2340
-65
lines changed
Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,99 @@
11
const contexts = [
2-
'TSMethodDefinition',
3-
'MethodDefinition',
4-
'TSParameterProperty[accessibility=public]',
5-
'TSPropertyDefinition[accessibility=public]',
6-
'PropertyDefinition[accessibility=public]',
7-
'TSPropertySignature',
8-
'PropertySignature',
9-
'TSInterfaceDeclaration',
10-
'InterfaceDeclaration',
11-
'TSTypeAliasDeclaration',
12-
'TypeAliasDeclaration',
13-
'TSTypeDeclaration',
14-
'TypeDeclaration',
15-
'TSEnumDeclaration',
16-
'EnumDeclaration',
17-
'TSClassDeclaration',
18-
'ClassDeclaration',
19-
'TSClassExpression',
20-
'ClassExpression',
21-
'TSFunctionExpression',
22-
'FunctionExpression',
23-
'TSInterfaceExpression',
24-
'InterfaceExpression',
25-
'TSEnumExpression',
26-
'EnumExpression',
2+
"TSMethodDefinition",
3+
"MethodDefinition",
4+
"TSParameterProperty[accessibility=public]",
5+
"TSPropertyDefinition[accessibility=public]",
6+
"PropertyDefinition[accessibility=public]",
7+
"TSPropertySignature",
8+
"PropertySignature",
9+
"TSInterfaceDeclaration",
10+
"InterfaceDeclaration",
11+
"TSTypeAliasDeclaration",
12+
"TypeAliasDeclaration",
13+
"TSTypeDeclaration",
14+
"TypeDeclaration",
15+
"TSEnumDeclaration",
16+
"EnumDeclaration",
17+
"TSClassDeclaration",
18+
"ClassDeclaration",
19+
"TSClassExpression",
20+
"ClassExpression",
21+
"TSFunctionExpression",
22+
"FunctionExpression",
23+
"TSInterfaceExpression",
24+
"InterfaceExpression",
25+
"TSEnumExpression",
26+
"EnumExpression",
2727
];
2828

2929
module.exports = {
3030
extends: [
31-
'eslint:recommended',
32-
'plugin:@typescript-eslint/recommended',
33-
'prettier',
31+
"eslint:recommended",
32+
"plugin:@typescript-eslint/recommended",
33+
"prettier",
3434
],
3535
root: true,
36-
parser: '@typescript-eslint/parser',
37-
plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc', 'jsdoc'],
36+
parser: "@typescript-eslint/parser",
37+
plugins: ["@typescript-eslint", "eslint-plugin-tsdoc", "jsdoc"],
3838
overrides: [
3939
{
40-
files: ['*.ts', '*.tsx'],
40+
files: ["*.ts", "*.tsx"],
4141
parserOptions: {
42-
project: ['./tsconfig.json'],
42+
project: ["./tsconfig.json"],
4343
},
4444
},
4545
],
4646
env: {
4747
node: true,
4848
},
4949
rules: {
50-
'@typescript-eslint/explicit-module-boundary-types': 'off',
51-
'@typescript-eslint/no-non-null-assertion': 'off',
52-
'@typescript-eslint/no-explicit-any': 'off',
53-
'@typescript-eslint/no-empty-function': 'off',
54-
'@typescript-eslint/await-thenable': 'error',
55-
'@typescript-eslint/no-floating-promises': 2,
56-
'require-await': 2,
57-
'no-constant-condition': 'off',
50+
"@typescript-eslint/explicit-module-boundary-types": "off",
51+
"@typescript-eslint/no-non-null-assertion": "off",
52+
"@typescript-eslint/no-explicit-any": "off",
53+
"@typescript-eslint/no-empty-function": "off",
54+
"@typescript-eslint/await-thenable": "error",
55+
"@typescript-eslint/no-floating-promises": 2,
56+
"require-await": 2,
57+
"no-constant-condition": "off",
5858
camelcase: 2,
59-
'no-restricted-imports': [
60-
'warn',
59+
"no-restricted-imports": [
60+
"warn",
6161
{
6262
patterns: [
6363
{
64-
group: ['client-dest'],
64+
group: ["client-dest"],
6565
message:
66-
'Fix this absolute garbage import. It's your duty to solve it before it spreads.',
66+
"Fix this absolute garbage import. It's your duty to solve it before it spreads.",
6767
},
6868
{
69-
group: ['dest'],
69+
group: ["dest"],
7070
message:
71-
'You should not be importing from a build directory. Did you accidentally do a relative import?',
71+
"You should not be importing from a build directory. Did you accidentally do a relative import?",
7272
},
7373
],
7474
},
7575
],
76-
'tsdoc/syntax': 'warn',
77-
'jsdoc/require-jsdoc': [
78-
'warn',
76+
"tsdoc/syntax": "warn",
77+
"jsdoc/require-jsdoc": [
78+
"warn",
7979
{
8080
contexts,
8181
checkConstructors: false,
8282
checkGetters: true,
8383
checkSetters: true,
8484
},
8585
],
86-
'jsdoc/require-description': ['warn', { contexts }],
87-
'jsdoc/require-description-complete-sentence': ['warn'],
88-
'jsdoc/require-hyphen-before-param-description': ['warn'],
89-
'jsdoc/require-param': ['warn', { contexts, checkDestructured: false }],
90-
'jsdoc/require-param-description': ['warn', { contexts }],
91-
'jsdoc/require-param-name': ['warn', { contexts }],
92-
'jsdoc/require-property': ['warn', { contexts }],
93-
'jsdoc/require-property-description': ['warn', { contexts }],
94-
'jsdoc/require-property-name': ['warn', { contexts }],
95-
'jsdoc/require-returns': ['warn', { contexts }],
96-
'jsdoc/require-returns-description': ['warn', { contexts }],
86+
"jsdoc/require-description": ["warn", { contexts }],
87+
"jsdoc/require-description-complete-sentence": ["warn"],
88+
"jsdoc/require-hyphen-before-param-description": ["warn"],
89+
"jsdoc/require-param": ["warn", { contexts, checkDestructured: false }],
90+
"jsdoc/require-param-description": ["warn", { contexts }],
91+
"jsdoc/require-param-name": ["warn", { contexts }],
92+
"jsdoc/require-property": ["warn", { contexts }],
93+
"jsdoc/require-property-description": ["warn", { contexts }],
94+
"jsdoc/require-property-name": ["warn", { contexts }],
95+
"jsdoc/require-returns": ["warn", { contexts }],
96+
"jsdoc/require-returns-description": ["warn", { contexts }],
9797
},
98-
ignorePatterns: ['node_modules', 'dest*', 'dist', '*.js', '.eslintrc.cjs'],
98+
ignorePatterns: ["node_modules", "dest*", "dist", "*.js", ".eslintrc.cjs"],
9999
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* Type for a logger.
3+
*/
4+
export type DebugLogger = (...args: any[]) => void;
5+
/**
6+
* Creates a logger.
7+
* TODO port aztec2 logger over.
8+
* @param moduleName - Name of module for logging or filtering purposes.
9+
*/
10+
export declare function createDebugLogger(moduleName: string): DebugLogger;
11+
//# sourceMappingURL=index.d.ts.map

ts/.yalc/@aztec/log/dest/index.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ts/.yalc/@aztec/log/dest/index.js

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export { WebDataStore } from './worker/browser/index.js';
2+
export { NodeDataStore } from './worker/node/index.js';
3+
export { WasmWorker, WorkerPool } from './worker/index.js';
4+
export { WasmModule } from './wasm/index.js';
5+
export { AsyncCallState, AsyncFnState } from './wasm/index.js';
6+
export { DispatchMsg, WorkerListener, TransportServer, NodeListener } from './transport/index.js';
7+
export { Transfer, isTransferDescriptor } from './transport/interface/transferable.js';
8+
//# sourceMappingURL=index.d.ts.map

ts/.yalc/@aztec/wasm/dest/index.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ts/.yalc/@aztec/wasm/dest/index.js

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/**
2+
* A simple fifo queue. It can grow unbounded. It can have multiple producers and consumers.
3+
* Putting an item onto the queue always succeeds, unless either end() or cancel() has been called in which case
4+
* the item being pushed is simply discarded.
5+
*/
6+
export declare class MemoryFifo<T> {
7+
private waiting;
8+
private items;
9+
private flushing;
10+
/**
11+
* Length of queue.
12+
* @returns integer.
13+
*/
14+
length(): number;
15+
/**
16+
* Returns next item within the queue, or blocks until and item has been put into the queue.
17+
* If given a timeout, the promise will reject if no item is received after `timeout` seconds.
18+
* If the queue is flushing, `null` is returned.
19+
* @param timeout - In seconds.
20+
* @returns Promise of result.
21+
*/
22+
get(timeout?: number): Promise<T | null>;
23+
/**
24+
* Put an item onto back of the queue.
25+
* @param item - The item to enqueue.
26+
*/
27+
put(item: T): void;
28+
/**
29+
* Once ended, no further items are added to queue. Consumers will consume remaining items within the queue.
30+
* The queue is not reusable after calling `end()`.
31+
* Any consumers waiting for an item receive null.
32+
*/
33+
end(): void;
34+
/**
35+
* Once cancelled, all items are discarded from the queue, and no further items are added to the queue.
36+
* The queue is not reusable after calling `cancel()`.
37+
* Any consumers waiting for an item receive null.
38+
*/
39+
cancel(): void;
40+
/**
41+
* Helper method that can be used to continously consume and process items on the queue.
42+
* @param handler - The item handler function.
43+
*/
44+
process(handler: (item: T) => Promise<void>): Promise<void>;
45+
}
46+
//# sourceMappingURL=memory_fifo.d.ts.map

ts/.yalc/@aztec/wasm/dest/memory_fifo.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ts/.yalc/@aztec/wasm/dest/memory_fifo.js

Lines changed: 101 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)