@aztec/bot 0.0.0-test.1 → 0.0.1-commit.023c3e5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dest/amm_bot.d.ts +32 -0
- package/dest/amm_bot.d.ts.map +1 -0
- package/dest/amm_bot.js +101 -0
- package/dest/base_bot.d.ts +21 -0
- package/dest/base_bot.d.ts.map +1 -0
- package/dest/base_bot.js +80 -0
- package/dest/bot.d.ts +13 -18
- package/dest/bot.d.ts.map +1 -1
- package/dest/bot.js +27 -86
- package/dest/config.d.ts +84 -60
- package/dest/config.d.ts.map +1 -1
- package/dest/config.js +59 -36
- package/dest/factory.d.ts +30 -31
- package/dest/factory.d.ts.map +1 -1
- package/dest/factory.js +318 -139
- package/dest/index.d.ts +4 -2
- package/dest/index.d.ts.map +1 -1
- package/dest/index.js +3 -1
- package/dest/interface.d.ts +12 -1
- package/dest/interface.d.ts.map +1 -1
- package/dest/interface.js +5 -0
- package/dest/rpc.d.ts +1 -7
- package/dest/rpc.d.ts.map +1 -1
- package/dest/rpc.js +0 -11
- package/dest/runner.d.ts +15 -11
- package/dest/runner.d.ts.map +1 -1
- package/dest/runner.js +441 -51
- package/dest/store/bot_store.d.ts +44 -0
- package/dest/store/bot_store.d.ts.map +1 -0
- package/dest/store/bot_store.js +107 -0
- package/dest/store/index.d.ts +2 -0
- package/dest/store/index.d.ts.map +1 -0
- package/dest/store/index.js +1 -0
- package/dest/utils.d.ts +8 -5
- package/dest/utils.d.ts.map +1 -1
- package/dest/utils.js +14 -5
- package/package.json +27 -23
- package/src/amm_bot.ts +124 -0
- package/src/base_bot.ts +92 -0
- package/src/bot.ts +53 -103
- package/src/config.ts +98 -68
- package/src/factory.ts +378 -154
- package/src/index.ts +3 -1
- package/src/interface.ts +9 -0
- package/src/rpc.ts +0 -13
- package/src/runner.ts +38 -21
- package/src/store/bot_store.ts +141 -0
- package/src/store/index.ts +1 -0
- package/src/utils.ts +17 -6
package/dest/rpc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../src/rpc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAGpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,SAAS,GAAG,UAAU,CAEvE"}
|
package/dest/rpc.js
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import { createTracedJsonRpcServer } from '@aztec/telemetry-client';
|
|
2
1
|
import { BotRunnerApiSchema } from './interface.js';
|
|
3
|
-
/**
|
|
4
|
-
* Wraps a bot runner with a JSON RPC HTTP server.
|
|
5
|
-
* @param botRunner - The BotRunner.
|
|
6
|
-
* @returns An JSON-RPC HTTP server
|
|
7
|
-
*/ export function createBotRunnerRpcServer(botRunner) {
|
|
8
|
-
createTracedJsonRpcServer(botRunner, BotRunnerApiSchema, {
|
|
9
|
-
http200OnError: false,
|
|
10
|
-
healthCheck: botRunner.isHealthy.bind(botRunner)
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
2
|
export function getBotRunnerApiHandler(botRunner) {
|
|
14
3
|
return [
|
|
15
4
|
botRunner,
|
package/dest/runner.d.ts
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AztecNode } from '@aztec/aztec.js/node';
|
|
2
|
+
import type { AztecNodeAdmin } from '@aztec/stdlib/interfaces/client';
|
|
2
3
|
import { type TelemetryClient, type Traceable, type Tracer } from '@aztec/telemetry-client';
|
|
3
|
-
import {
|
|
4
|
-
import type {
|
|
4
|
+
import type { TestWallet } from '@aztec/test-wallet/server';
|
|
5
|
+
import type { BotConfig } from './config.js';
|
|
6
|
+
import type { BotInfo, BotRunnerApi } from './interface.js';
|
|
7
|
+
import { BotStore } from './store/index.js';
|
|
5
8
|
export declare class BotRunner implements BotRunnerApi, Traceable {
|
|
6
9
|
#private;
|
|
7
10
|
private config;
|
|
11
|
+
private readonly wallet;
|
|
12
|
+
private readonly aztecNode;
|
|
13
|
+
private readonly telemetry;
|
|
14
|
+
private readonly aztecNodeAdmin;
|
|
15
|
+
private readonly store;
|
|
8
16
|
private log;
|
|
9
17
|
private bot?;
|
|
10
|
-
private pxe?;
|
|
11
|
-
private node;
|
|
12
18
|
private runningPromise;
|
|
13
19
|
private consecutiveErrors;
|
|
14
20
|
private healthy;
|
|
15
21
|
readonly tracer: Tracer;
|
|
16
|
-
constructor(config: BotConfig,
|
|
17
|
-
pxe?: PXE;
|
|
18
|
-
node?: AztecNode;
|
|
19
|
-
telemetry: TelemetryClient;
|
|
20
|
-
});
|
|
22
|
+
constructor(config: BotConfig, wallet: TestWallet, aztecNode: AztecNode, telemetry: TelemetryClient, aztecNodeAdmin: AztecNodeAdmin | undefined, store: BotStore);
|
|
21
23
|
/** Initializes the bot if needed. Blocks until the bot setup is finished. */
|
|
22
24
|
setup(): Promise<void>;
|
|
23
25
|
private doSetup;
|
|
@@ -45,5 +47,7 @@ export declare class BotRunner implements BotRunnerApi, Traceable {
|
|
|
45
47
|
run(): Promise<void>;
|
|
46
48
|
/** Returns the current configuration for the bot. */
|
|
47
49
|
getConfig(): Promise<BotConfig>;
|
|
50
|
+
/** Returns the bot sender address. */
|
|
51
|
+
getInfo(): Promise<BotInfo>;
|
|
48
52
|
}
|
|
49
|
-
//# sourceMappingURL=
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnVubmVyLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvcnVubmVyLnRzIl0sIm5hbWVzIjpbXSwib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LE1BQU0sRUFBRSxTQUFTLEVBQ1IsTUFBTSxFQUFFLFVBQVUsRUFDbEIsU0FBUyxFQUFFLFNBQVMsRUFDcEIsU0FBUyxFQUFFLGVBQWUsRUFDMUIsY0FBYyxFQUFFLGNBQWMsR0FBRyxTQUFTLEVBQzFDLEtBQUssRUFBRSxRQUFRLEVBS2pDO0lBRUQsNkVBQTZFO0lBQ2hFLEtBQUssa0JBSWpCO1lBR2EsT0FBTztJQU1yQjs7O09BR0c7SUFDVSxLQUFLLGtCQU1qQjtJQUVEOztPQUVHO0lBQ1UsSUFBSSxrQkFPaEI7SUFFTSxTQUFTLFlBRWY7SUFFRCwwQ0FBMEM7SUFDbkMsU0FBUyxZQUVmO0lBRUQ7OztPQUdHO0lBQ1UsTUFBTSxDQUFDLE1BQU0sRUFBRSxTQUFTLGlCQWFwQztJQUVEOzs7T0FHRztJQUNVLEdBQUcsa0JBc0JmO0lBRUQscURBQXFEO0lBQzlDLFNBQVMsdUJBR2Y7SUFFRCxzQ0FBc0M7SUFDekIsT0FBTyxJQUFJLE9BQU8sQ0FBQyxPQUFPLENBQUMsQ0FNdkM7Q0F1Q0YifQ==
|
package/dest/runner.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../src/runner.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../src/runner.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,KAAK,MAAM,EAAa,MAAM,yBAAyB,CAAC;AACvG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAK5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;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
+
function applyDecs2203RFactory() {
|
|
2
|
+
function createAddInitializerMethod(initializers, decoratorFinishedRef) {
|
|
3
|
+
return function addInitializer(initializer) {
|
|
4
|
+
assertNotFinished(decoratorFinishedRef, "addInitializer");
|
|
5
|
+
assertCallable(initializer, "An initializer");
|
|
6
|
+
initializers.push(initializer);
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
function memberDec(dec, name, desc, initializers, kind, isStatic, isPrivate, metadata, value) {
|
|
10
|
+
var kindStr;
|
|
11
|
+
switch(kind){
|
|
12
|
+
case 1:
|
|
13
|
+
kindStr = "accessor";
|
|
14
|
+
break;
|
|
15
|
+
case 2:
|
|
16
|
+
kindStr = "method";
|
|
17
|
+
break;
|
|
18
|
+
case 3:
|
|
19
|
+
kindStr = "getter";
|
|
20
|
+
break;
|
|
21
|
+
case 4:
|
|
22
|
+
kindStr = "setter";
|
|
23
|
+
break;
|
|
24
|
+
default:
|
|
25
|
+
kindStr = "field";
|
|
26
|
+
}
|
|
27
|
+
var ctx = {
|
|
28
|
+
kind: kindStr,
|
|
29
|
+
name: isPrivate ? "#" + name : name,
|
|
30
|
+
static: isStatic,
|
|
31
|
+
private: isPrivate,
|
|
32
|
+
metadata: metadata
|
|
33
|
+
};
|
|
34
|
+
var decoratorFinishedRef = {
|
|
35
|
+
v: false
|
|
36
|
+
};
|
|
37
|
+
ctx.addInitializer = createAddInitializerMethod(initializers, decoratorFinishedRef);
|
|
38
|
+
var get, set;
|
|
39
|
+
if (kind === 0) {
|
|
40
|
+
if (isPrivate) {
|
|
41
|
+
get = desc.get;
|
|
42
|
+
set = desc.set;
|
|
43
|
+
} else {
|
|
44
|
+
get = function() {
|
|
45
|
+
return this[name];
|
|
46
|
+
};
|
|
47
|
+
set = function(v) {
|
|
48
|
+
this[name] = v;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
} else if (kind === 2) {
|
|
52
|
+
get = function() {
|
|
53
|
+
return desc.value;
|
|
54
|
+
};
|
|
55
|
+
} else {
|
|
56
|
+
if (kind === 1 || kind === 3) {
|
|
57
|
+
get = function() {
|
|
58
|
+
return desc.get.call(this);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
if (kind === 1 || kind === 4) {
|
|
62
|
+
set = function(v) {
|
|
63
|
+
desc.set.call(this, v);
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
ctx.access = get && set ? {
|
|
68
|
+
get: get,
|
|
69
|
+
set: set
|
|
70
|
+
} : get ? {
|
|
71
|
+
get: get
|
|
72
|
+
} : {
|
|
73
|
+
set: set
|
|
74
|
+
};
|
|
75
|
+
try {
|
|
76
|
+
return dec(value, ctx);
|
|
77
|
+
} finally{
|
|
78
|
+
decoratorFinishedRef.v = true;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
function assertNotFinished(decoratorFinishedRef, fnName) {
|
|
82
|
+
if (decoratorFinishedRef.v) {
|
|
83
|
+
throw new Error("attempted to call " + fnName + " after decoration was finished");
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function assertCallable(fn, hint) {
|
|
87
|
+
if (typeof fn !== "function") {
|
|
88
|
+
throw new TypeError(hint + " must be a function");
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function assertValidReturnValue(kind, value) {
|
|
92
|
+
var type = typeof value;
|
|
93
|
+
if (kind === 1) {
|
|
94
|
+
if (type !== "object" || value === null) {
|
|
95
|
+
throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
96
|
+
}
|
|
97
|
+
if (value.get !== undefined) {
|
|
98
|
+
assertCallable(value.get, "accessor.get");
|
|
99
|
+
}
|
|
100
|
+
if (value.set !== undefined) {
|
|
101
|
+
assertCallable(value.set, "accessor.set");
|
|
102
|
+
}
|
|
103
|
+
if (value.init !== undefined) {
|
|
104
|
+
assertCallable(value.init, "accessor.init");
|
|
105
|
+
}
|
|
106
|
+
} else if (type !== "function") {
|
|
107
|
+
var hint;
|
|
108
|
+
if (kind === 0) {
|
|
109
|
+
hint = "field";
|
|
110
|
+
} else if (kind === 10) {
|
|
111
|
+
hint = "class";
|
|
112
|
+
} else {
|
|
113
|
+
hint = "method";
|
|
114
|
+
}
|
|
115
|
+
throw new TypeError(hint + " decorators must return a function or void 0");
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
function applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers, metadata) {
|
|
119
|
+
var decs = decInfo[0];
|
|
120
|
+
var desc, init, value;
|
|
121
|
+
if (isPrivate) {
|
|
122
|
+
if (kind === 0 || kind === 1) {
|
|
123
|
+
desc = {
|
|
124
|
+
get: decInfo[3],
|
|
125
|
+
set: decInfo[4]
|
|
126
|
+
};
|
|
127
|
+
} else if (kind === 3) {
|
|
128
|
+
desc = {
|
|
129
|
+
get: decInfo[3]
|
|
130
|
+
};
|
|
131
|
+
} else if (kind === 4) {
|
|
132
|
+
desc = {
|
|
133
|
+
set: decInfo[3]
|
|
134
|
+
};
|
|
135
|
+
} else {
|
|
136
|
+
desc = {
|
|
137
|
+
value: decInfo[3]
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
} else if (kind !== 0) {
|
|
141
|
+
desc = Object.getOwnPropertyDescriptor(base, name);
|
|
142
|
+
}
|
|
143
|
+
if (kind === 1) {
|
|
144
|
+
value = {
|
|
145
|
+
get: desc.get,
|
|
146
|
+
set: desc.set
|
|
147
|
+
};
|
|
148
|
+
} else if (kind === 2) {
|
|
149
|
+
value = desc.value;
|
|
150
|
+
} else if (kind === 3) {
|
|
151
|
+
value = desc.get;
|
|
152
|
+
} else if (kind === 4) {
|
|
153
|
+
value = desc.set;
|
|
154
|
+
}
|
|
155
|
+
var newValue, get, set;
|
|
156
|
+
if (typeof decs === "function") {
|
|
157
|
+
newValue = memberDec(decs, name, desc, initializers, kind, isStatic, isPrivate, metadata, value);
|
|
158
|
+
if (newValue !== void 0) {
|
|
159
|
+
assertValidReturnValue(kind, newValue);
|
|
160
|
+
if (kind === 0) {
|
|
161
|
+
init = newValue;
|
|
162
|
+
} else if (kind === 1) {
|
|
163
|
+
init = newValue.init;
|
|
164
|
+
get = newValue.get || value.get;
|
|
165
|
+
set = newValue.set || value.set;
|
|
166
|
+
value = {
|
|
167
|
+
get: get,
|
|
168
|
+
set: set
|
|
169
|
+
};
|
|
170
|
+
} else {
|
|
171
|
+
value = newValue;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
} else {
|
|
175
|
+
for(var i = decs.length - 1; i >= 0; i--){
|
|
176
|
+
var dec = decs[i];
|
|
177
|
+
newValue = memberDec(dec, name, desc, initializers, kind, isStatic, isPrivate, metadata, value);
|
|
178
|
+
if (newValue !== void 0) {
|
|
179
|
+
assertValidReturnValue(kind, newValue);
|
|
180
|
+
var newInit;
|
|
181
|
+
if (kind === 0) {
|
|
182
|
+
newInit = newValue;
|
|
183
|
+
} else if (kind === 1) {
|
|
184
|
+
newInit = newValue.init;
|
|
185
|
+
get = newValue.get || value.get;
|
|
186
|
+
set = newValue.set || value.set;
|
|
187
|
+
value = {
|
|
188
|
+
get: get,
|
|
189
|
+
set: set
|
|
190
|
+
};
|
|
191
|
+
} else {
|
|
192
|
+
value = newValue;
|
|
193
|
+
}
|
|
194
|
+
if (newInit !== void 0) {
|
|
195
|
+
if (init === void 0) {
|
|
196
|
+
init = newInit;
|
|
197
|
+
} else if (typeof init === "function") {
|
|
198
|
+
init = [
|
|
199
|
+
init,
|
|
200
|
+
newInit
|
|
201
|
+
];
|
|
202
|
+
} else {
|
|
203
|
+
init.push(newInit);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
if (kind === 0 || kind === 1) {
|
|
210
|
+
if (init === void 0) {
|
|
211
|
+
init = function(instance, init) {
|
|
212
|
+
return init;
|
|
213
|
+
};
|
|
214
|
+
} else if (typeof init !== "function") {
|
|
215
|
+
var ownInitializers = init;
|
|
216
|
+
init = function(instance, init) {
|
|
217
|
+
var value = init;
|
|
218
|
+
for(var i = 0; i < ownInitializers.length; i++){
|
|
219
|
+
value = ownInitializers[i].call(instance, value);
|
|
220
|
+
}
|
|
221
|
+
return value;
|
|
222
|
+
};
|
|
223
|
+
} else {
|
|
224
|
+
var originalInitializer = init;
|
|
225
|
+
init = function(instance, init) {
|
|
226
|
+
return originalInitializer.call(instance, init);
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
ret.push(init);
|
|
230
|
+
}
|
|
231
|
+
if (kind !== 0) {
|
|
232
|
+
if (kind === 1) {
|
|
233
|
+
desc.get = value.get;
|
|
234
|
+
desc.set = value.set;
|
|
235
|
+
} else if (kind === 2) {
|
|
236
|
+
desc.value = value;
|
|
237
|
+
} else if (kind === 3) {
|
|
238
|
+
desc.get = value;
|
|
239
|
+
} else if (kind === 4) {
|
|
240
|
+
desc.set = value;
|
|
241
|
+
}
|
|
242
|
+
if (isPrivate) {
|
|
243
|
+
if (kind === 1) {
|
|
244
|
+
ret.push(function(instance, args) {
|
|
245
|
+
return value.get.call(instance, args);
|
|
246
|
+
});
|
|
247
|
+
ret.push(function(instance, args) {
|
|
248
|
+
return value.set.call(instance, args);
|
|
249
|
+
});
|
|
250
|
+
} else if (kind === 2) {
|
|
251
|
+
ret.push(value);
|
|
252
|
+
} else {
|
|
253
|
+
ret.push(function(instance, args) {
|
|
254
|
+
return value.call(instance, args);
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
} else {
|
|
258
|
+
Object.defineProperty(base, name, desc);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
function applyMemberDecs(Class, decInfos, metadata) {
|
|
263
|
+
var ret = [];
|
|
264
|
+
var protoInitializers;
|
|
265
|
+
var staticInitializers;
|
|
266
|
+
var existingProtoNonFields = new Map();
|
|
267
|
+
var existingStaticNonFields = new Map();
|
|
268
|
+
for(var i = 0; i < decInfos.length; i++){
|
|
269
|
+
var decInfo = decInfos[i];
|
|
270
|
+
if (!Array.isArray(decInfo)) continue;
|
|
271
|
+
var kind = decInfo[1];
|
|
272
|
+
var name = decInfo[2];
|
|
273
|
+
var isPrivate = decInfo.length > 3;
|
|
274
|
+
var isStatic = kind >= 5;
|
|
275
|
+
var base;
|
|
276
|
+
var initializers;
|
|
277
|
+
if (isStatic) {
|
|
278
|
+
base = Class;
|
|
279
|
+
kind = kind - 5;
|
|
280
|
+
staticInitializers = staticInitializers || [];
|
|
281
|
+
initializers = staticInitializers;
|
|
282
|
+
} else {
|
|
283
|
+
base = Class.prototype;
|
|
284
|
+
protoInitializers = protoInitializers || [];
|
|
285
|
+
initializers = protoInitializers;
|
|
286
|
+
}
|
|
287
|
+
if (kind !== 0 && !isPrivate) {
|
|
288
|
+
var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields;
|
|
289
|
+
var existingKind = existingNonFields.get(name) || 0;
|
|
290
|
+
if (existingKind === true || existingKind === 3 && kind !== 4 || existingKind === 4 && kind !== 3) {
|
|
291
|
+
throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name);
|
|
292
|
+
} else if (!existingKind && kind > 2) {
|
|
293
|
+
existingNonFields.set(name, kind);
|
|
294
|
+
} else {
|
|
295
|
+
existingNonFields.set(name, true);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers, metadata);
|
|
299
|
+
}
|
|
300
|
+
pushInitializers(ret, protoInitializers);
|
|
301
|
+
pushInitializers(ret, staticInitializers);
|
|
302
|
+
return ret;
|
|
303
|
+
}
|
|
304
|
+
function pushInitializers(ret, initializers) {
|
|
305
|
+
if (initializers) {
|
|
306
|
+
ret.push(function(instance) {
|
|
307
|
+
for(var i = 0; i < initializers.length; i++){
|
|
308
|
+
initializers[i].call(instance);
|
|
309
|
+
}
|
|
310
|
+
return instance;
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
function applyClassDecs(targetClass, classDecs, metadata) {
|
|
315
|
+
if (classDecs.length > 0) {
|
|
316
|
+
var initializers = [];
|
|
317
|
+
var newClass = targetClass;
|
|
318
|
+
var name = targetClass.name;
|
|
319
|
+
for(var i = classDecs.length - 1; i >= 0; i--){
|
|
320
|
+
var decoratorFinishedRef = {
|
|
321
|
+
v: false
|
|
322
|
+
};
|
|
323
|
+
try {
|
|
324
|
+
var nextNewClass = classDecs[i](newClass, {
|
|
325
|
+
kind: "class",
|
|
326
|
+
name: name,
|
|
327
|
+
addInitializer: createAddInitializerMethod(initializers, decoratorFinishedRef),
|
|
328
|
+
metadata
|
|
329
|
+
});
|
|
330
|
+
} finally{
|
|
331
|
+
decoratorFinishedRef.v = true;
|
|
332
|
+
}
|
|
333
|
+
if (nextNewClass !== undefined) {
|
|
334
|
+
assertValidReturnValue(10, nextNewClass);
|
|
335
|
+
newClass = nextNewClass;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
return [
|
|
339
|
+
defineMetadata(newClass, metadata),
|
|
340
|
+
function() {
|
|
341
|
+
for(var i = 0; i < initializers.length; i++){
|
|
342
|
+
initializers[i].call(newClass);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
];
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
function defineMetadata(Class, metadata) {
|
|
349
|
+
return Object.defineProperty(Class, Symbol.metadata || Symbol.for("Symbol.metadata"), {
|
|
350
|
+
configurable: true,
|
|
351
|
+
enumerable: true,
|
|
352
|
+
value: metadata
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
return function applyDecs2203R(targetClass, memberDecs, classDecs, parentClass) {
|
|
356
|
+
if (parentClass !== void 0) {
|
|
357
|
+
var parentMetadata = parentClass[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
358
|
+
}
|
|
359
|
+
var metadata = Object.create(parentMetadata === void 0 ? null : parentMetadata);
|
|
360
|
+
var e = applyMemberDecs(targetClass, memberDecs, metadata);
|
|
361
|
+
if (!classDecs.length) defineMetadata(targetClass, metadata);
|
|
362
|
+
return {
|
|
363
|
+
e: e,
|
|
364
|
+
get c () {
|
|
365
|
+
return applyClassDecs(targetClass, classDecs, metadata);
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
function _apply_decs_2203_r(targetClass, memberDecs, classDecs, parentClass) {
|
|
371
|
+
return (_apply_decs_2203_r = applyDecs2203RFactory())(targetClass, memberDecs, classDecs, parentClass);
|
|
6
372
|
}
|
|
7
|
-
|
|
373
|
+
var _dec, _dec1, _call_work, _initProto;
|
|
374
|
+
import { createLogger } from '@aztec/aztec.js/log';
|
|
375
|
+
import { omit } from '@aztec/foundation/collection';
|
|
8
376
|
import { RunningPromise } from '@aztec/foundation/running-promise';
|
|
9
|
-
import {
|
|
377
|
+
import { trackSpan } from '@aztec/telemetry-client';
|
|
378
|
+
import { AmmBot } from './amm_bot.js';
|
|
10
379
|
import { Bot } from './bot.js';
|
|
11
|
-
|
|
380
|
+
_dec = trackSpan('Bot.setup'), _dec1 = trackSpan('Bot.work');
|
|
12
381
|
export class BotRunner {
|
|
13
382
|
config;
|
|
383
|
+
wallet;
|
|
384
|
+
aztecNode;
|
|
385
|
+
telemetry;
|
|
386
|
+
aztecNodeAdmin;
|
|
387
|
+
store;
|
|
388
|
+
static{
|
|
389
|
+
({ e: [_call_work, _initProto] } = _apply_decs_2203_r(this, [
|
|
390
|
+
[
|
|
391
|
+
_dec,
|
|
392
|
+
2,
|
|
393
|
+
"doSetup"
|
|
394
|
+
],
|
|
395
|
+
[
|
|
396
|
+
_dec1,
|
|
397
|
+
2,
|
|
398
|
+
"work",
|
|
399
|
+
async function() {
|
|
400
|
+
if (this.config.maxPendingTxs > 0) {
|
|
401
|
+
const pendingTxCount = await this.aztecNode.getPendingTxCount();
|
|
402
|
+
if (pendingTxCount >= this.config.maxPendingTxs) {
|
|
403
|
+
this.log.verbose(`Not sending bot tx since node has ${pendingTxCount} pending txs`);
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
try {
|
|
408
|
+
await this.run();
|
|
409
|
+
} catch {
|
|
410
|
+
// Already logged in run()
|
|
411
|
+
if (this.config.maxConsecutiveErrors > 0 && this.consecutiveErrors >= this.config.maxConsecutiveErrors) {
|
|
412
|
+
this.log.error(`Too many errors bot is unhealthy`);
|
|
413
|
+
this.healthy = false;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
if (!this.healthy && this.config.stopWhenUnhealthy) {
|
|
417
|
+
this.log.fatal(`Stopping bot due to errors`);
|
|
418
|
+
process.exit(1); // workaround docker not restarting the container if its unhealthy. We have to exit instead
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
]
|
|
422
|
+
], []));
|
|
423
|
+
}
|
|
14
424
|
log;
|
|
15
425
|
bot;
|
|
16
|
-
pxe;
|
|
17
|
-
node;
|
|
18
426
|
runningPromise;
|
|
19
427
|
consecutiveErrors;
|
|
20
428
|
healthy;
|
|
21
429
|
tracer;
|
|
22
|
-
constructor(config,
|
|
430
|
+
constructor(config, wallet, aztecNode, telemetry, aztecNodeAdmin, store){
|
|
23
431
|
this.config = config;
|
|
24
|
-
this.
|
|
432
|
+
this.wallet = wallet;
|
|
433
|
+
this.aztecNode = aztecNode;
|
|
434
|
+
this.telemetry = telemetry;
|
|
435
|
+
this.aztecNodeAdmin = aztecNodeAdmin;
|
|
436
|
+
this.store = store;
|
|
437
|
+
this.log = (_initProto(this), createLogger('bot'));
|
|
25
438
|
this.consecutiveErrors = 0;
|
|
26
439
|
this.healthy = true;
|
|
27
|
-
this.tracer =
|
|
28
|
-
this.pxe = dependencies.pxe;
|
|
29
|
-
if (!dependencies.node && !config.nodeUrl) {
|
|
30
|
-
throw new Error(`Missing node URL in config or dependencies`);
|
|
31
|
-
}
|
|
32
|
-
this.node = dependencies.node ?? createAztecNodeClient(config.nodeUrl, getVersions(), makeTracedFetch([
|
|
33
|
-
1,
|
|
34
|
-
2,
|
|
35
|
-
3
|
|
36
|
-
], true));
|
|
440
|
+
this.tracer = telemetry.getTracer('Bot');
|
|
37
441
|
this.runningPromise = new RunningPromise(()=>this.#work(), this.log, config.txIntervalSeconds * 1000);
|
|
38
442
|
}
|
|
39
443
|
/** Initializes the bot if needed. Blocks until the bot setup is finished. */ async setup() {
|
|
@@ -63,6 +467,7 @@ export class BotRunner {
|
|
|
63
467
|
this.log.verbose(`Stopping bot`);
|
|
64
468
|
await this.runningPromise.stop();
|
|
65
469
|
}
|
|
470
|
+
await this.store.close();
|
|
66
471
|
this.log.info(`Stopped bot`);
|
|
67
472
|
}
|
|
68
473
|
isHealthy() {
|
|
@@ -116,43 +521,28 @@ export class BotRunner {
|
|
|
116
521
|
}
|
|
117
522
|
}
|
|
118
523
|
/** Returns the current configuration for the bot. */ getConfig() {
|
|
119
|
-
|
|
524
|
+
const redacted = omit(this.config, 'l1Mnemonic', 'l1PrivateKey', 'senderPrivateKey');
|
|
525
|
+
return Promise.resolve(redacted);
|
|
526
|
+
}
|
|
527
|
+
/** Returns the bot sender address. */ async getInfo() {
|
|
528
|
+
if (!this.bot) {
|
|
529
|
+
throw new Error(`Bot is not initialized`);
|
|
530
|
+
}
|
|
531
|
+
const botAddress = await this.bot.then((b)=>b.defaultAccountAddress);
|
|
532
|
+
return {
|
|
533
|
+
botAddress
|
|
534
|
+
};
|
|
120
535
|
}
|
|
121
536
|
async #createBot() {
|
|
122
537
|
try {
|
|
123
|
-
this.bot = Bot.create(this.config,
|
|
124
|
-
pxe: this.pxe,
|
|
125
|
-
node: this.node
|
|
126
|
-
});
|
|
538
|
+
this.bot = this.config.ammTxs ? AmmBot.create(this.config, this.wallet, this.aztecNode, this.aztecNodeAdmin, this.store) : Bot.create(this.config, this.wallet, this.aztecNode, this.aztecNodeAdmin, this.store);
|
|
127
539
|
await this.bot;
|
|
128
540
|
} catch (err) {
|
|
129
541
|
this.log.error(`Error setting up bot: ${err}`);
|
|
130
542
|
throw err;
|
|
131
543
|
}
|
|
132
544
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
const pendingTxs = await this.node.getPendingTxs();
|
|
136
|
-
if (pendingTxs.length >= this.config.maxPendingTxs) {
|
|
137
|
-
this.log.verbose(`Not sending bot tx since node has ${pendingTxs.length} pending txs`);
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
try {
|
|
142
|
-
await this.run();
|
|
143
|
-
} catch (err) {
|
|
144
|
-
// Already logged in run()
|
|
145
|
-
if (this.config.maxConsecutiveErrors > 0 && this.consecutiveErrors >= this.config.maxConsecutiveErrors) {
|
|
146
|
-
this.log.error(`Too many errors bot is unhealthy`);
|
|
147
|
-
this.healthy = false;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
if (!this.healthy && this.config.stopWhenUnhealthy) {
|
|
151
|
-
this.log.fatal(`Stopping bot due to errors`);
|
|
152
|
-
process.exit(1); // workaround docker not restarting the container if its unhealthy. We have to exit instead
|
|
153
|
-
}
|
|
545
|
+
get #work() {
|
|
546
|
+
return _call_work;
|
|
154
547
|
}
|
|
155
548
|
}
|
|
156
|
-
_ts_decorate([
|
|
157
|
-
trackSpan('Bot.setup')
|
|
158
|
-
], BotRunner.prototype, "doSetup", null);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { AztecAddress } from '@aztec/aztec.js/addresses';
|
|
2
|
+
import type { L2AmountClaim } from '@aztec/aztec.js/ethereum';
|
|
3
|
+
import { type Logger } from '@aztec/foundation/log';
|
|
4
|
+
import type { AztecAsyncKVStore } from '@aztec/kv-store';
|
|
5
|
+
export interface BridgeClaimData {
|
|
6
|
+
claim: L2AmountClaim;
|
|
7
|
+
timestamp: number;
|
|
8
|
+
recipient: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Simple data store for the bot to persist L1 bridge claims.
|
|
12
|
+
*/
|
|
13
|
+
export declare class BotStore {
|
|
14
|
+
private readonly store;
|
|
15
|
+
private readonly log;
|
|
16
|
+
static readonly SCHEMA_VERSION = 1;
|
|
17
|
+
private readonly bridgeClaims;
|
|
18
|
+
constructor(store: AztecAsyncKVStore, log?: Logger);
|
|
19
|
+
/**
|
|
20
|
+
* Saves a bridge claim for a recipient.
|
|
21
|
+
*/
|
|
22
|
+
saveBridgeClaim(recipient: AztecAddress, claim: L2AmountClaim): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Gets a bridge claim for a recipient if it exists.
|
|
25
|
+
*/
|
|
26
|
+
getBridgeClaim(recipient: AztecAddress): Promise<BridgeClaimData | undefined>;
|
|
27
|
+
/**
|
|
28
|
+
* Deletes a bridge claim for a recipient.
|
|
29
|
+
*/
|
|
30
|
+
deleteBridgeClaim(recipient: AztecAddress): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Gets all stored bridge claims.
|
|
33
|
+
*/
|
|
34
|
+
getAllBridgeClaims(): Promise<BridgeClaimData[]>;
|
|
35
|
+
/**
|
|
36
|
+
* Cleans up old bridge claims (older than 24 hours).
|
|
37
|
+
*/
|
|
38
|
+
cleanupOldClaims(maxAgeMs?: number): Promise<number>;
|
|
39
|
+
/**
|
|
40
|
+
* Closes the store.
|
|
41
|
+
*/
|
|
42
|
+
close(): Promise<void>;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm90X3N0b3JlLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc3RvcmUvYm90X3N0b3JlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUN6RCxPQUFPLEtBQUssRUFBRSxhQUFhLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUU5RCxPQUFPLEVBQUUsS0FBSy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