Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/yoojin/gc rules #156

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 24 additions & 13 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down Expand Up @@ -65,17 +65,28 @@ export const defaultAppRules = (appName: string): { [type: string]: { ref: strin
},
},
},
// requestKey: {
// ref: Path.app(appName).requestKey("$userAddress", "$requestKey"),
// value: {
// ".rule": {
// state: {
// gc_max_siblings: 20,
// gc_num_siblings_deleted: 10,
// },
// },
// }
// },
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: {
".rule": {
state: {
gc_max_siblings: 20,
gc_num_siblings_deleted: 10,
},
},
}
},
request: {
ref: Path.app(appName).request("$userAddress", "$requestKey"),
value: {
Expand Down
Loading