v0.2.6-pre.003
This commit is contained in:
66
config/composite.ksp-app-wallet-desk.json
Normal file
66
config/composite.ksp-app-wallet-desk.json
Normal file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"format_version": 1,
|
||||
"default_profile": "devnet",
|
||||
"profiles": [
|
||||
{
|
||||
"profile_id": "devnet",
|
||||
"documents": [
|
||||
{
|
||||
"component_id": "logging",
|
||||
"file_id": "cfg.std.logging",
|
||||
"profile_id": "local_dev"
|
||||
},
|
||||
{
|
||||
"component_id": "transport",
|
||||
"file_id": "cfg.std.transport",
|
||||
"profile_id": "devnet_public"
|
||||
},
|
||||
{
|
||||
"component_id": "wallet",
|
||||
"file_id": "cfg.std.wallet",
|
||||
"profile_id": "default"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile_id": "temporary",
|
||||
"documents": [
|
||||
{
|
||||
"component_id": "logging",
|
||||
"file_id": "cfg.std.logging",
|
||||
"profile_id": "local_dev"
|
||||
},
|
||||
{
|
||||
"component_id": "transport",
|
||||
"file_id": "cfg.std.transport",
|
||||
"profile_id": "devnet_public"
|
||||
},
|
||||
{
|
||||
"component_id": "wallet",
|
||||
"file_id": "cfg.std.wallet",
|
||||
"profile_id": "temporary"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile_id": "tests",
|
||||
"documents": [
|
||||
{
|
||||
"component_id": "logging",
|
||||
"file_id": "cfg.std.logging",
|
||||
"profile_id": "local_dev"
|
||||
},
|
||||
{
|
||||
"component_id": "transport",
|
||||
"file_id": "cfg.std.transport",
|
||||
"profile_id": "devnet_public"
|
||||
},
|
||||
{
|
||||
"component_id": "wallet",
|
||||
"file_id": "cfg.std.wallet",
|
||||
"profile_id": "tests"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
66
config/examples/composite.ksp-app-wallet-desk.example.json
Normal file
66
config/examples/composite.ksp-app-wallet-desk.example.json
Normal file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"format_version": 1,
|
||||
"default_profile": "devnet",
|
||||
"profiles": [
|
||||
{
|
||||
"profile_id": "devnet",
|
||||
"documents": [
|
||||
{
|
||||
"component_id": "logging",
|
||||
"file_id": "cfg.std.logging",
|
||||
"profile_id": "local_dev"
|
||||
},
|
||||
{
|
||||
"component_id": "transport",
|
||||
"file_id": "cfg.std.transport",
|
||||
"profile_id": "devnet_public"
|
||||
},
|
||||
{
|
||||
"component_id": "wallet",
|
||||
"file_id": "cfg.std.wallet",
|
||||
"profile_id": "default"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile_id": "temporary",
|
||||
"documents": [
|
||||
{
|
||||
"component_id": "logging",
|
||||
"file_id": "cfg.std.logging",
|
||||
"profile_id": "local_dev"
|
||||
},
|
||||
{
|
||||
"component_id": "transport",
|
||||
"file_id": "cfg.std.transport",
|
||||
"profile_id": "devnet_public"
|
||||
},
|
||||
{
|
||||
"component_id": "wallet",
|
||||
"file_id": "cfg.std.wallet",
|
||||
"profile_id": "temporary"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile_id": "tests",
|
||||
"documents": [
|
||||
{
|
||||
"component_id": "logging",
|
||||
"file_id": "cfg.std.logging",
|
||||
"profile_id": "local_dev"
|
||||
},
|
||||
{
|
||||
"component_id": "transport",
|
||||
"file_id": "cfg.std.transport",
|
||||
"profile_id": "devnet_public"
|
||||
},
|
||||
{
|
||||
"component_id": "wallet",
|
||||
"file_id": "cfg.std.wallet",
|
||||
"profile_id": "tests"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
18
config/examples/std.wallet.example.json
Normal file
18
config/examples/std.wallet.example.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"format_version": 1,
|
||||
"wallets_directory": "${KSP_WALLETS_DIRECTORY:-wallets}",
|
||||
"default_profile": "tests",
|
||||
"profiles": [
|
||||
{
|
||||
"profile_id": "default"
|
||||
},
|
||||
{
|
||||
"profile_id": "scenarios",
|
||||
"wallets_subdirectory": "scenarios/ephemeral"
|
||||
},
|
||||
{
|
||||
"profile_id": "tests",
|
||||
"wallets_subdirectory": "tests"
|
||||
}
|
||||
]
|
||||
}
|
||||
54
config/schemas/std.wallet.schema.json
Normal file
54
config/schemas/std.wallet.schema.json
Normal file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "urn:ksp:schema:std.wallet:v1",
|
||||
"title": "KSP standard Wallet configuration",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"format_version",
|
||||
"wallets_directory",
|
||||
"default_profile",
|
||||
"profiles"
|
||||
],
|
||||
"properties": {
|
||||
"format_version": {
|
||||
"const": 1
|
||||
},
|
||||
"wallets_directory": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"default_profile": {
|
||||
"$ref": "#/$defs/profileId"
|
||||
},
|
||||
"profiles": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"$ref": "#/$defs/profile"
|
||||
}
|
||||
}
|
||||
},
|
||||
"$defs": {
|
||||
"profileId": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z0-9][a-z0-9._-]*$"
|
||||
},
|
||||
"profile": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"profile_id"
|
||||
],
|
||||
"properties": {
|
||||
"profile_id": {
|
||||
"$ref": "#/$defs/profileId"
|
||||
},
|
||||
"wallets_subdirectory": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
18
config/std.wallet.json
Normal file
18
config/std.wallet.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"format_version": 1,
|
||||
"wallets_directory": "${KSP_WALLETS_DIRECTORY:-wallets}",
|
||||
"default_profile": "default",
|
||||
"profiles": [
|
||||
{
|
||||
"profile_id": "default"
|
||||
},
|
||||
{
|
||||
"profile_id": "temporary",
|
||||
"wallets_subdirectory": "temporary"
|
||||
},
|
||||
{
|
||||
"profile_id": "tests",
|
||||
"wallets_subdirectory": "tests"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user