diff --git a/src/constants.ts b/src/constants.ts index 119cc67..a83424e 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -20,10 +20,10 @@ export const Path = { depositOfUser: (userAddress: string) => `${Path.app(appName).deposit()}/${userAddress}`, billingConfig: () => `${Path.app(appName).root()}/billingConfig`, model: () => `${Path.app(appName).root()}/model`, - userOfModel: (userAddress: string) => + requestUser: (userAddress: string) => `${Path.app(appName).model()}/${userAddress}`, requestKey: (userAddress: string, requestKey: string) => - `${Path.app(appName).userOfModel(userAddress)}/${requestKey}`, + `${Path.app(appName).requestUser(userAddress)}/${requestKey}`, request: (userAddress: string, requestKey: string) => `${Path.app(appName).requestKey(userAddress, requestKey)}/request`, response: (userAddress: string, requestKey: string) => @@ -65,6 +65,17 @@ export const defaultAppRules = (appName: string): { [type: string]: { ref: strin }, }, }, + requestUser: { + ref: Path.app(appName).requestUser("$userAddress"), + value: { + ".rule": { + state: { + gc_max_siblings: 50, + gc_num_siblings_deleted: 10, + }, + } + } + }, requestKey: { ref: Path.app(appName).requestKey("$userAddress", "$requestKey"), value: {