0.5.1-pre.007
This commit is contained in:
127
config/schemas/execution.config.schema.json
Normal file
127
config/schemas/execution.config.schema.json
Normal file
@@ -0,0 +1,127 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://khadhroony.local/schemas/execution.config.schema.json",
|
||||
"title": "Khadhroony Solana execution policy configuration",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"default_profile",
|
||||
"profiles"
|
||||
],
|
||||
"properties": {
|
||||
"default_profile": {
|
||||
"$ref": "#/$defs/non_empty_string"
|
||||
},
|
||||
"profiles": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"$ref": "#/$defs/profile"
|
||||
}
|
||||
}
|
||||
},
|
||||
"$defs": {
|
||||
"non_empty_string": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"profile": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"name",
|
||||
"localnet_send_enabled",
|
||||
"devnet_send_enabled",
|
||||
"testnet_send_enabled",
|
||||
"mainnet_send_enabled",
|
||||
"dry_run_default",
|
||||
"require_simulation",
|
||||
"require_operator_confirmation",
|
||||
"localnet_max_spend_lamports",
|
||||
"devnet_max_spend_lamports",
|
||||
"testnet_max_spend_lamports",
|
||||
"mainnet_max_spend_lamports",
|
||||
"max_fee_lamports",
|
||||
"max_compute_unit_price_micro_lamports",
|
||||
"recent_blockhash_max_age_slots",
|
||||
"send_max_retries",
|
||||
"confirmation_poll_interval_ms",
|
||||
"confirmation_max_attempts",
|
||||
"devnet_airdrop_max_lamports"
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
"$ref": "#/$defs/non_empty_string"
|
||||
},
|
||||
"dry_run_default": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"require_simulation": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"require_operator_confirmation": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"localnet_max_spend_lamports": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"devnet_max_spend_lamports": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"testnet_max_spend_lamports": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"mainnet_max_spend_lamports": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"max_fee_lamports": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"max_compute_unit_price_micro_lamports": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"recent_blockhash_max_age_slots": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"send_max_retries": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 4294967295
|
||||
},
|
||||
"confirmation_poll_interval_ms": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 60000
|
||||
},
|
||||
"confirmation_max_attempts": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 10000
|
||||
},
|
||||
"devnet_airdrop_max_lamports": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"mainnet_send_enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"testnet_send_enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"devnet_send_enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"localnet_send_enabled": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user