diff --git a/k8s/base/verifier/seed-plugins.yaml b/k8s/base/verifier/seed-plugins.yaml index fbc6db8..40bef5f 100644 --- a/k8s/base/verifier/seed-plugins.yaml +++ b/k8s/base/verifier/seed-plugins.yaml @@ -8,7 +8,7 @@ data: -- Seed plugins for Kubernetes deployment -- Uses cluster-internal service endpoints - INSERT INTO plugins (id, title, description, server_endpoint, category, logo_url, thumbnail_url, images, features, faqs, audited, created_at, updated_at) + INSERT INTO plugins (id, title, description, server_endpoint, category, features, faqs, audited, created_at, updated_at) VALUES ( 'vultisig-fees-feee', @@ -16,9 +16,6 @@ data: 'Automatic fee collection for Vultisig transactions', 'http://server.plugin-fee.svc.cluster.local:8085', 'plugin', - 'https://raw.githubusercontent.com/vultisig/verifier/main/assets/plugins/fees/icon.jpg', - 'https://raw.githubusercontent.com/vultisig/verifier/main/assets/plugins/fees/thumbnail.jpg', - '[]', '["Automatic fee deduction", "Multi-chain support", "Transparent pricing"]', '[]', false, @@ -31,9 +28,6 @@ data: 'Automated recurring swaps and transfers', 'http://server-swap.plugin-dca.svc.cluster.local:8082', 'app', - 'https://raw.githubusercontent.com/vultisig/verifier/main/assets/plugins/dca/icon.jpg', - 'https://raw.githubusercontent.com/vultisig/verifier/main/assets/plugins/dca/thumbnail.jpg', - '[]', '["Recurring swaps", "Multi-chain support", "Flexible scheduling"]', '[]', false, @@ -46,26 +40,36 @@ data: 'Automated recurring token transfers', 'http://server-send.plugin-dca.svc.cluster.local:8083', 'app', - 'https://raw.githubusercontent.com/vultisig/verifier/main/assets/plugins/recurring-sends/icon.jpg', - 'https://raw.githubusercontent.com/vultisig/verifier/main/assets/plugins/recurring-sends/thumbnail.jpg', - '[]', '["Scheduled transfers", "Multi-chain support", "Reliable execution"]', '[]', false, NOW(), NOW() + ), + ( + 'vultisig-developer-0000', + 'Developer (Listing Fee)', + 'Plugin listing fee payment service', + 'http://server.plugin-developer.svc.cluster.local', + 'app', + '[]', + '[]', + false, + NOW(), + NOW() ) ON CONFLICT (id) DO UPDATE SET server_endpoint = EXCLUDED.server_endpoint, category = EXCLUDED.category, updated_at = NOW(); - -- Seed plugin API keys (must match secrets in plugin-dca namespace) + -- Seed plugin API keys INSERT INTO plugin_apikey (plugin_id, apikey, status) VALUES ('vultisig-fees-feee', 'k8s-fee-plugin-apikey', 1), ('vultisig-dca-0000', 'k8s-dca-swap-apikey', 1), - ('vultisig-recurring-sends-0000', 'k8s-dca-send-apikey', 1) + ('vultisig-recurring-sends-0000', 'k8s-dca-send-apikey', 1), + ('vultisig-developer-0000', 'k8s-developer-apikey', 1) ON CONFLICT (apikey) DO NOTHING; --- apiVersion: batch/v1 diff --git a/local/seed-plugins.sql b/local/seed-plugins.sql index 4cdc735..8b0e168 100644 --- a/local/seed-plugins.sql +++ b/local/seed-plugins.sql @@ -1,7 +1,7 @@ -- Seed plugins for local development -- Run with: make seed -INSERT INTO plugins (id, title, description, server_endpoint, category, logo_url, thumbnail_url, images, features, faqs, audited, created_at, updated_at) +INSERT INTO plugins (id, title, description, server_endpoint, category, features, faqs, audited, created_at, updated_at) VALUES ( 'vultisig-fees-feee', @@ -9,9 +9,6 @@ VALUES 'Automatic fee collection for Vultisig transactions', 'http://localhost:8085', 'plugin', - 'https://raw.githubusercontent.com/vultisig/verifier/main/assets/plugins/fees/icon.jpg', - 'https://raw.githubusercontent.com/vultisig/verifier/main/assets/plugins/fees/thumbnail.jpg', - '[]', '["Automatic fee deduction", "Multi-chain support", "Transparent pricing"]', '[]', false, @@ -24,9 +21,6 @@ VALUES 'Automated recurring swaps and transfers', 'http://localhost:8082', 'app', - 'https://raw.githubusercontent.com/vultisig/verifier/main/assets/plugins/dca/icon.jpg', - 'https://raw.githubusercontent.com/vultisig/verifier/main/assets/plugins/dca/thumbnail.jpg', - '[]', '["Recurring swaps", "Multi-chain support", "Flexible scheduling"]', '[]', false, @@ -39,14 +33,23 @@ VALUES 'Automated recurring token transfers', 'http://localhost:8083', 'app', - 'https://raw.githubusercontent.com/vultisig/verifier/main/assets/plugins/recurring-sends/icon.jpg', - 'https://raw.githubusercontent.com/vultisig/verifier/main/assets/plugins/recurring-sends/thumbnail.jpg', - '[]', '["Scheduled transfers", "Multi-chain support", "Reliable execution"]', '[]', false, NOW(), NOW() +), +( + 'vultisig-developer-0000', + 'Developer (Listing Fee)', + 'Plugin listing fee payment service', + 'http://localhost:8086', + 'app', + '[]', + '[]', + false, + NOW(), + NOW() ) ON CONFLICT (id) DO UPDATE SET server_endpoint = EXCLUDED.server_endpoint, @@ -58,7 +61,8 @@ INSERT INTO plugin_apikey (plugin_id, apikey, status) VALUES ('vultisig-fees-feee', 'local-dev-fee-apikey', 1), ('vultisig-dca-0000', 'local-dev-dca-apikey', 1), - ('vultisig-recurring-sends-0000', 'local-dev-send-apikey', 1) + ('vultisig-recurring-sends-0000', 'local-dev-send-apikey', 1), + ('vultisig-developer-0000', 'local-dev-developer-apikey', 1) ON CONFLICT (apikey) DO NOTHING; -- Seed plugin pricing (required for policy creation) @@ -67,7 +71,7 @@ ON CONFLICT (apikey) DO NOTHING; -- For 'once' and 'per-tx', frequency must be NULL -- For 'recurring', frequency must be: daily, weekly, biweekly, or monthly -- Note: Delete existing rows first to prevent duplicates (pricings table has no unique constraint on type+plugin_id) -DELETE FROM pricings WHERE plugin_id IN ('vultisig-dca-0000', 'vultisig-recurring-sends-0000', 'vultisig-fees-feee'); +DELETE FROM pricings WHERE plugin_id IN ('vultisig-dca-0000', 'vultisig-recurring-sends-0000', 'vultisig-fees-feee', 'vultisig-developer-0000'); INSERT INTO pricings (type, frequency, amount, asset, metric, plugin_id, created_at, updated_at) VALUES ('once', NULL, 0, 'usdc', 'fixed', 'vultisig-dca-0000', NOW(), NOW()), @@ -75,4 +79,6 @@ VALUES ('once', NULL, 0, 'usdc', 'fixed', 'vultisig-recurring-sends-0000', NOW(), NOW()), ('per-tx', NULL, 0, 'usdc', 'fixed', 'vultisig-recurring-sends-0000', NOW(), NOW()), ('once', NULL, 0, 'usdc', 'fixed', 'vultisig-fees-feee', NOW(), NOW()), - ('per-tx', NULL, 0, 'usdc', 'fixed', 'vultisig-fees-feee', NOW(), NOW()); + ('per-tx', NULL, 0, 'usdc', 'fixed', 'vultisig-fees-feee', NOW(), NOW()), + ('once', NULL, 0, 'usdc', 'fixed', 'vultisig-developer-0000', NOW(), NOW()), + ('per-tx', NULL, 0, 'usdc', 'fixed', 'vultisig-developer-0000', NOW(), NOW());