forked from input-output-hk/marlowe-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmarlowe-runtime.nix
80 lines (78 loc) · 2.77 KB
/
marlowe-runtime.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{ inputs, ... }:
let
flake_100 = inputs.marlowe-cardano_1_0_0;
# The old flake in marlowe-cardano doesn't have Shea recent changes
# in self // {
# sqitch-plan-dirs = {
# # Ensure this path only changes when sqitch.plan file is updated, or DDL
# # files are updated.
# chain-sync = (builtins.path {
# path = self;
# name = "marlowe-chain-sync-sqitch-plan";
# filter = path: _:
# path == "${self}/marlowe-chain-sync" || path
# == "${self}/marlowe-chain-sync/sqitch.plan"
# || lib.hasPrefix "${self}/marlowe-chain-sync/deploy" path
# || lib.hasPrefix "${self}/marlowe-chain-sync/revert" path;
# }) + "/marlowe-chain-sync";
# # Ensure this path only changes when sqitch.plan file is updated, or DDL
# # files are updated.
# runtime = (builtins.path {
# path = self;
# name = "marlowe-runtime-sqitch-plan";
# filter = path: _:
# path == "${self}/marlowe-runtime" || path
# == "${self}/marlowe-runtime/marlowe-indexer" || path
# == "${self}/marlowe-runtime/marlowe-indexer/sqitch.plan"
# || lib.hasPrefix "${self}/marlowe-runtime/marlowe-indexer/deploy" path
# || lib.hasPrefix "${self}/marlowe-runtime/marlowe-indexer/revert"
# path;
# }) + "/marlowe-runtime/marlowe-indexer";
# };
# }
in {
marlowe.cardano-node-flake = inputs.cardano-node;
# When you add/remove particular network cardano-node state will be preserved.
# Data should be removed manually if it's not needed anymore.
marlowe.runtimes = {
# Docs: We don't use domain-based addressing since state is keyed here meaning
# we don't want to recreate the service on its domain change.
# preprod-tip = {
# network = "preprod";
# domain = "preprod.staging.runtime.marlowe-lang.org";
# };
# preview-tip = {
# network = "preview";
# domain = "preview.staging.runtime.marlowe-lang.org";
# };
# mainnet-tip = {
# network = "mainnet";
# domain = "mainnet.staging.runtime.marlowe-lang.org";
# };
# preprod-051 = {
# domain = "preprod.051.runtime.marlowe-lang.org";
# network = "preprod";
# flake = flake_051;
# };
# preview-051 = {
# domain = "preview.051.runtime.marlowe-lang.org";
# network = "preview";
# flake = flake_051;
# };
# mainnet-051 = {
# domain = "mainnet.051.runtime.marlowe-lang.org";
# network = "mainnet";
# flake = flake_051;
# };
preprod-100 = {
domain = "preprod.100.runtime.marlowe-lang.org";
network = "preprod";
flake = flake_100;
};
preview-100 = {
domain = "preview.100.runtime.marlowe-lang.org";
network = "preview";
flake = flake_100;
};
};
}