Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 745c686

Browse files
authored
Merge pull request #493 from alchemyplatform/solana-updates-v2
updates to gas manager admin api removing defaults
2 parents 2e1d255 + 0a2f70b commit 745c686

File tree

1 file changed

+8
-23
lines changed

1 file changed

+8
-23
lines changed

account-abstraction/schemas.yaml

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,29 @@ components:
66
maxSpendUsd:
77
type: string
88
description: Maximum amount of USD that can be spent by the Gas Manager
9-
default: '5000.00'
109
nullable: true
1110
maxSpendPerSenderUsd:
1211
type: string
1312
description: Maximum amount of USD that can be spent by a single sender
14-
default: '100.00'
1513
nullable: true
1614
maxSpendPerUoUsd:
1715
type: string
1816
description: Maximum amount of USD that can be spent by a single user operation
19-
default: '20.00'
2017
nullable: true
2118
maxCount:
2219
type: string
2320
description: Maximum number of operations that can be sponsored through the policy
24-
default: '100'
2521
nullable: true
2622
maxCountPerSender:
2723
type: string
2824
description: Maximum number of operations that can be sponsored for a single sender through the policy
29-
default: '2'
3025
nullable: true
3126
senderAllowlist:
3227
type: array
3328
items:
3429
type: string
3530
description: List of addresses that are allowed to send operations
36-
default:
37-
- '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266'
38-
- '0x70997970c51812dc3a010c7d01b50e0d17dc79c8'
31+
nullable: true
3932
senderBlocklist:
4033
type: array
4134
items:
@@ -45,18 +38,19 @@ components:
4538
startTimeUnix:
4639
type: string
4740
description: Unix timestamp of when the policy starts
48-
default: '1674228753'
41+
nullable: true
4942
endTimeUnix:
5043
type: string
5144
description: Unix timestamp of when the policy ends
52-
default: '1679340742'
5345
nullable: true
5446
sponsorshipExpiryMs:
5547
type: string
56-
description: Milliseconds from signing that the sponsorship expires
48+
description: Milliseconds from signing that the sponsorship expires. Defaults to 600000 (10 minutes).
5749
default: '600000'
50+
nullable: true
5851
webhookRules:
5952
type: object
53+
nullable: true
6054
description: Make a request to your server to verify sponsorship eligibility.
6155
properties:
6256
webhookUrl:
@@ -72,14 +66,12 @@ components:
7266
- webhookUrl
7367
- approveOnFailure
7468
networks:
75-
description: Networks for the policy
69+
description: |
70+
Networks for the policy. Example: ["ETH_MAINNET"]
7671
type: array
7772
items:
7873
type: string
79-
default:
80-
- ETH_MAINNET
8174
required:
82-
- startTimeUnix
8375
- sponsorshipExpiryMs
8476

8577
SolanaRules:
@@ -88,30 +80,23 @@ components:
8880
maxSpendUsd:
8981
type: string
9082
description: Maximum amount of USD that can be spent by the Gas Manager
91-
default: '6500.00'
9283
maxSpendPerTxnUsd:
9384
type: string
9485
description: Maximum amount of USD that can be spent per transaction
95-
default: '30.00'
9686
maxCount:
9787
type: string
9888
description: Maximum number of transactions that can be sponsored through the policy
99-
default: '200'
10089
startTimeUnix:
10190
type: string
10291
description: Unix timestamp of when the policy starts
103-
default: '1674228753'
10492
endTimeUnix:
10593
type: string
10694
description: Unix timestamp of when the policy ends
107-
default: '1679340742'
10895
networks:
10996
type: array
11097
items:
11198
type: string
112-
description: List of networks the policy is active on
113-
default:
114-
- 'SOLANA_MAINNET'
99+
description: List of networks the policy is active on. Valid values are "SOLANA_MAINNET" and "SOLANA_DEVNET".
115100

116101

117102
Policy:

0 commit comments

Comments
 (0)