From 2040aaac7d651719e8de49519303d4fcb24cfe18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Le=CC=81o=20Haf?= Date: Tue, 18 Mar 2025 14:57:53 +0100 Subject: [PATCH] update to `v0.3.1beta` --- datum_gateway | 2 +- manifest.yaml | 4 ++-- scripts/procedures/getConfig.ts | 7 +++++++ scripts/procedures/migrations.ts | 24 +++++++++++++++++++++++- 4 files changed, 33 insertions(+), 4 deletions(-) diff --git a/datum_gateway b/datum_gateway index a38edeb..2607be5 160000 --- a/datum_gateway +++ b/datum_gateway @@ -1 +1 @@ -Subproject commit a38edeb8a8485d22ffb3888dc2971441e09fc474 +Subproject commit 2607be583af667ca5417a25b5ba736547116d125 diff --git a/manifest.yaml b/manifest.yaml index f1026b9..c8c4576 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -5,10 +5,10 @@ id: datum # A human readable service title title: "Datum Gateway" # Service version - accepts up to four digits, where the last confirms to revisions necessary for StartOS - see documentation: https://github.com/Start9Labs/emver-rs. This value will change with each release of the service. -version: 0.2.2.1 +version: 0.3.1 # Release notes for the update - can be a string, paragraph or URL release-notes: | - - Contains a fix for non-pooled mining + - Release notes: https://github.com/OCEAN-xyz/datum_gateway/releases/tag/v0.3.1beta license: MIT wrapper-repo: "https://github.com/ocean-xyz/datum-gateway-startos" upstream-repo: "https://github.com/ocean-xyz/datum-gateway" diff --git a/scripts/procedures/getConfig.ts b/scripts/procedures/getConfig.ts index 303f75e..7df6567 100644 --- a/scripts/procedures/getConfig.ts +++ b/scripts/procedures/getConfig.ts @@ -220,6 +220,13 @@ export const getConfig: T.ExpectedExports.getConfig = compat.getConfig({ integral: true, default: 7152, }, + admin_password: { + type: "string", + name: "API password", + description: "API password for actions/changes", + default: "", + nullable: true, + }, }, }, // "extra_block_submissions": { diff --git a/scripts/procedures/migrations.ts b/scripts/procedures/migrations.ts index be1669f..bb203f6 100644 --- a/scripts/procedures/migrations.ts +++ b/scripts/procedures/migrations.ts @@ -29,6 +29,16 @@ function migrate_0221_to_022(config: any) { return config; } +function migrate_022_to_031(config: any) { + config.api.admin_password = ''; + return config; +} + +function migrate_031_to_022(config: any) { + delete config.api.admin_password; + return config; +} + export const migration: T.ExpectedExports.migration = compat.migrations.fromMapping( { @@ -59,7 +69,19 @@ export const migration: T.ExpectedExports.migration = true, { version: "0.2.2.1", type: "down"} ) + }, + "0.3.1": { + up: compat.migrations.updateConfig( + migrate_022_to_031, + true, + { version: "0.3.1", type: "up"} + ), + down: compat.migrations.updateConfig( + migrate_031_to_022, + true, + { version: "0.3.1", type: "down"} + ) } }, - "0.2.2.1" + "0.3.1" );