Skip to content

Commit 216764f

Browse files
authored
Frontend - Benchmarks - ZK Apps updates (#773)
1 parent b7067b9 commit 216764f

File tree

11 files changed

+20
-55
lines changed

11 files changed

+20
-55
lines changed

frontend/angular.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,6 @@
112112
}
113113
],
114114
"outputHashing": "all"
115-
},
116-
"staging": {
117-
"fileReplacements": [
118-
{
119-
"replace": "src/environments/environment.ts",
120-
"with": "src/environments/environment.staging.ts"
121-
}
122-
],
123-
"outputHashing": "all"
124115
}
125116
},
126117
"defaultConfiguration": "production"

frontend/src/app/features/benchmarks/wallets/benchmarks-wallets-zk.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export class BenchmarksWalletsZkService {
2424
return this.o1jsInterface.pipe(
2525
filter(Boolean),
2626
switchMap((o1js: any) => {
27-
return fromPromise(o1js.sendZkApp(CONFIG.globalConfig?.graphQL, zkApps[0], this.updates));
27+
// return fromPromise(o1js.deployZkApp(CONFIG.globalConfig?.graphQL, zkApps[0], this.updates));
28+
return fromPromise(o1js.updateZkApp(CONFIG.globalConfig?.graphQL, zkApps[0], this.updates));
2829
}),
2930
map((response: any) => {
3031
if (response.errors[0]) {

frontend/src/app/features/benchmarks/wallets/benchmarks-wallets-zkapp-toolbar/benchmarks-wallets-zkapp-toolbar.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
<span class="mina-icon">arrow_drop_down</span>
4141
</div>
4242
</button>
43-
<!-- <div class="tertiary" *ngIf="updates$ | async as updates">-->
44-
<!-- {{ updates.step }} {{ updates.duration }}s-->
45-
<!-- </div>-->
43+
<div class="tertiary text-italic ml-10" *ngIf="updates$ | async as updates">
44+
{{ updates.step }} <span class="secondary">{{ updates.duration }}<span *ngIf="updates.duration">s</span></span>
45+
</div>
4646
</form>
4747
</div>
4848
</ng-template>

frontend/src/app/features/benchmarks/wallets/benchmarks-wallets.reducer.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ export function reducer(state: BenchmarksWalletsState = initialState, action: Be
227227

228228
case BENCHMARKS_WALLETS_GET_ALL_TXS_SUCCESS: {
229229
const allTxs = [...action.payload.mempoolTxs, ...action.payload.includedTxs];
230+
console.log(allTxs);
230231
return {
231232
...state,
232233
wallets: state.wallets.map((w: BenchmarksWallet) => {
@@ -306,7 +307,7 @@ export function reducer(state: BenchmarksWalletsState = initialState, action: Be
306307
fee: state.sendingFeeZkapps,
307308
nonce,
308309
memo,
309-
accountUpdates: 8,
310+
accountUpdates: 2,
310311
};
311312
});
312313
} else {
@@ -322,7 +323,7 @@ export function reducer(state: BenchmarksWalletsState = initialState, action: Be
322323
fee: state.sendingFeeZkapps,
323324
nonce: nonce.toString(),
324325
memo,
325-
accountUpdates: 8,
326+
accountUpdates: 2,
326327
};
327328
nonce++;
328329

frontend/src/app/shared/constants/config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import { hasValue } from '@openmina/shared';
44

55
export const CONFIG: Readonly<MinaEnv> = {
66
...environment,
7+
globalConfig: {
8+
...environment.globalConfig,
9+
graphQL: getURL(environment.globalConfig.graphQL),
10+
},
711
configs: environment.configs.map((config) => ({
812
...config,
913
url: getURL(config.url),

frontend/src/assets/environments/block_producers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default {
88
'snarks': ['scan-state', 'work-pool'],
99
},
1010
canAddNodes: true,
11+
graphQL: 'http://localhost:11010/graphql',
1112
},
1213
configs: [
1314
{

frontend/src/assets/environments/staging.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
'benchmarks': ['wallets'],
1212
},
1313
canAddNodes: false,
14-
graphQL: 'http://adonagy.hz.minaprotocol.network:3000/graphql'
14+
graphQL: 'https://adonagy.com/graphql'
1515
},
1616
configs: [
1717
{

frontend/src/assets/o1js/o1jsWrapper.js

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

frontend/src/environments/environment.block_producers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const environment: Readonly<MinaEnv> = {
1010
'snarks': ['scan-state', 'work-pool'],
1111
},
1212
canAddNodes: true,
13+
graphQL: 'http://localhost:11010/graphql',
1314
},
1415
configs: [
1516
{

frontend/src/environments/environment.staging.ts

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)