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

Commit 2eed81b

Browse files
authored
Merge pull request #496 from alchemyplatform/gas-manager-admin-2
move networks field to outer level
2 parents ad4e6dd + 78617c5 commit 2eed81b

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

account-abstraction/gas_manager_admin.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ paths:
4646
solanaRules:
4747
description: Rules for "solana" policy type. Empty if `policyType` is not "solana".
4848
$ref: './schemas.yaml#/components/schemas/SolanaRules'
49+
networks:
50+
description: |
51+
Networks for the policy. Example: ["ETH_MAINNET"]. For Solana policies, valid values are "SOLANA_MAINNET" and "SOLANA_DEVNET".
52+
type: array
53+
items:
54+
type: string
4955
responses:
5056
'200':
5157
description: Policy created successfully
@@ -150,6 +156,12 @@ paths:
150156
solanaRules:
151157
$ref: './schemas.yaml#/components/schemas/SolanaRules'
152158
description: Rules for "solana" policy type. Empty if `policyType` is not "solana".
159+
networks:
160+
description: |
161+
Networks for the policy. Example: ["ETH_MAINNET"]. For Solana policies, valid values are "SOLANA_MAINNET" and "SOLANA_DEVNET".
162+
type: array
163+
items:
164+
type: string
153165
responses:
154166
'200':
155167
description: Policy rules replaced successfully

account-abstraction/schemas.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@ components:
6565
required:
6666
- webhookUrl
6767
- approveOnFailure
68-
networks:
69-
description: |
70-
Networks for the policy. Example: ["ETH_MAINNET"]
71-
type: array
72-
items:
73-
type: string
7468
required:
7569
- sponsorshipExpiryMs
7670

@@ -92,12 +86,6 @@ components:
9286
endTimeUnix:
9387
type: string
9488
description: Unix timestamp of when the policy ends
95-
networks:
96-
type: array
97-
items:
98-
type: string
99-
description: List of networks the policy is active on. Valid values are "SOLANA_MAINNET" and "SOLANA_DEVNET".
100-
10189

10290
Policy:
10391
type: object

0 commit comments

Comments
 (0)