Skip to content

Commit

Permalink
final changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SahilAujla committed Jan 12, 2025
1 parent 8d759af commit d9f5dc1
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 18 deletions.
72 changes: 57 additions & 15 deletions account-abstraction/gas_manager_admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ paths:
default: 'My Policy'
rules:
$ref: './schemas.yaml#/components/schemas/Rules'
networks:
description: Networks for the policy
type: array
items:
type: string
default:
- ETH_MAINNET
responses:
'200':
description: Policy rules replaced successfully
Expand Down Expand Up @@ -301,21 +308,56 @@ paths:
data:
type: object
properties:
signaturesMined:
type: integer
default: 10
signaturesExpired:
type: integer
default: 1
signaturesPending:
type: integer
default: 1
usdPending:
type: string
default: '25.03'
usdMined:
type: string
default: '260.32'
policyStats:
type: object
properties:
signaturesMined:
type: integer
default: 0
signaturesExpired:
type: integer
default: 0
signaturesPending:
type: integer
default: 0
usdPending:
type: string
default: '0.0'
usdMined:
type: string
default: '0.0'
policyNetworkStats:
type: array
items:
type: object
properties:
network:
type: string
default: 'MATIC_MAINNET'
signaturesMined:
type: integer
default: 0
signaturesExpired:
type: integer
default: 0
signaturesPending:
type: integer
default: 0
usdPending:
type: string
default: '0.0'
usdMined:
type: string
default: '0.0'
pendingNativeToken:
type: number
default: 0
minedNativeToken:
type: number
default: 0
currency:
type: string
default: 'ETH'
error:
type: object
properties:
Expand Down
6 changes: 3 additions & 3 deletions account-abstraction/schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@ components:
default: '600000'
webhookRules:
type: object
description: Configuration for policy-related webhooks.
description: Make a request to your server to verify sponsorship eligibility.
properties:
webhookUrl:
type: string
format: uri
description: The webhook URL to notify when relevant policy events occur.
description: The URL to call to verify sponsorship eligibility.
example: "https://dashboard.alchemy.com/gas-manager/policy/create"
approveOnFailure:
type: boolean
description: If true, requests are approved even if the webhook call fails.
description: If true, the userOp will be sponsored in the event the request fails or times out.
default: false
required:
- webhookUrl
Expand Down

0 comments on commit d9f5dc1

Please sign in to comment.