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

Update storage structure to support one-time + recurring grants; balance for each #376

Closed
Tracked by #144 ...
sidvishnoi opened this issue Jun 27, 2024 · 0 comments · Fixed by #379
Closed
Tracked by #144 ...
Assignees
Labels
area: background Improvements or additions to extension background script

Comments

@sidvishnoi
Copy link
Member

{
  recurringGrantRemainingBalance: "1",
  recurringGrant: {
    interval: "R/....", // previously amount.interval
    approvedAmount: "1000", // previously amount.value
    continue: { // previously storage.grant
      url: "https://..",
      accessToken: "...",
    },
    accessToken: { // previously storage.token
      value: "ADAS",
      manageUrl: "https://...",
    },
  },

  oneTimeGrantRemainingBalance: "342",
  oneTimeGrant: {
    // same as recurringGrant above except interval
  },
}
@sidvishnoi sidvishnoi added the area: background Improvements or additions to extension background script label Jun 27, 2024
@sidvishnoi sidvishnoi self-assigned this Jun 27, 2024
@sidvishnoi sidvishnoi added this to the WM extension beta milestone Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: background Improvements or additions to extension background script
Projects
Archived in project
1 participant