feat: whoAmI

This commit is contained in:
ppedziwiatr
2023-04-27 16:04:55 +02:00
committed by just_ppe
parent 3df39d10dc
commit 673b12fe20
3 changed files with 3 additions and 2 deletions

View File

@@ -64,6 +64,7 @@ export class Warp {
readonly testing: Testing;
kvStorageFactory: KVStorageFactory;
whoAmI: string;
private readonly plugins: Map<WarpPluginType, WarpPlugin<unknown, unknown>> = new Map();

View File

@@ -87,6 +87,7 @@ export class WarpGatewayInteractionsLoader implements InteractionsLoader {
fetch(
`${url}?${new URLSearchParams({
contractId: contractId,
...(this._warp.whoAmI ? { client: this._warp.whoAmI } : ''),
...(fromSortKey ? { from: fromSortKey } : ''),
...(toSortKey ? { to: toSortKey } : ''),
page: (++page).toString(),

View File

@@ -1,6 +1,5 @@
import { isBrowser } from '../../../utils/utils';
import { ILoggerFactory } from "../../../logging/LoggerFactory";
import { WarpLogger } from "../../../logging/WarpLogger";
import { WarpLogger } from '../../../logging/WarpLogger';
export function normalizeContractSource(contractSrc: string, useVM2: boolean): string {
// Convert from ES Module format to something we can run inside a Function.