Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions k8s/base/verifier/seed-plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,14 @@ 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',
'Vultisig Fees',
'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,
Expand All @@ -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,
Expand All @@ -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
Expand Down
32 changes: 19 additions & 13 deletions local/seed-plugins.sql
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
-- 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',
'Vultisig Fees',
'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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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)
Expand All @@ -67,12 +71,14 @@ 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()),
('per-tx', NULL, 0, 'usdc', 'fixed', 'vultisig-dca-0000', NOW(), NOW()),
('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());
Loading