feat: whoAmI
This commit is contained in:
@@ -64,6 +64,7 @@ export class Warp {
|
||||
|
||||
readonly testing: Testing;
|
||||
kvStorageFactory: KVStorageFactory;
|
||||
whoAmI: string;
|
||||
|
||||
private readonly plugins: Map<WarpPluginType, WarpPlugin<unknown, unknown>> = new Map();
|
||||
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user