config.gno
4.18 Kb · 68 lines
1package core
2
3// Deploy-time configuration (mainnet plan §2.4 M-27, §5.4). Everything that
4// differs per chain lives in this file, so staging (WP-H,
5// deploy/realms/<chain>.json) rewrites one file and its gate can refuse an
6// Onyx address in a mainnet stage. The source carries the Onyx values.
7
8// Roles are separate on purpose (S-8): the admin can only propose
9// timelocked parameter changes and never holds funds (I-1); the treasury
10// only receives fees; the platform engine author only claims and
11// deprecates the platform engines and registers their reserved
12// fingerprints. The admin here is the bootstrap admin (= the deployer):
13// admin.transfer hands it to the 2/3 multisig before minter.add (§5.7).
14var (
15 initialAdmin = address("g1jz6j9hj6rdf5ltl2kcrpa4jwtdh3w30z0yul06")
16 initialTreasury = address("g1rq2g0fmd0e0v0myz677ju3t68g46kan3r96lls")
17 platformAuthor = address("g1nm8kd8hsmp6pr7mudj2c3y2hnmnl8awx7vcz4m")
18)
19
20// reservedFP is a platform engine whose art is public before its adapter
21// registers (Onyx p/ packages, the TS twins in the site bundle). Its sample
22// fingerprint exists in core from the enable tx, so nobody but its author
23// can ever register it (ENG-M1, I-14).
24type reservedFP struct {
25 name, fingerprint string
26 author address
27}
28
29// reservedFingerprints: sha256(Render(engine.SampleInput())) of each
30// platform engine, from docs/engines/README.md (2026-11-04; the v2 and new
31// engines 2026-11-11, each checked against its art package in
32// z_reserved_fp_filetest.gno); the upload
33// card's is sha256 of the v2 card (engines/upload render.gno cardSVG =
34// upload.CardFingerprint, WP-F 2026-11-10; it holds no path text, so it is
35// the same on every chain).
36var reservedFingerprints = []reservedFP{
37 {"genesis", "a9eb40c4aef4fa3d80adcccc28db007ce93f0728a5b07c3805a42777fef4e8c9", platformAuthor},
38 {"kilim", "a50693874cf408b5c24c306785bab1732af0d818952c9f8f892e19cc75bdebff", platformAuthor},
39 {"strata", "6b96256a0111a9508048e8226c0ba87435be040aedbfe407485b3391d46b84af", platformAuthor},
40 {"rubrica", "5565972025909a38ddc9e3e19dbcd1bbc7c1be3f8fe537ea98921b4f90650d04", platformAuthor},
41 {"cantiere", "69902dba328df77cea56dc6635c1489f61bf386f108a6600df0eb8a0e08f8d76", platformAuthor},
42 {"giornate", "44ec27ea29c5a7c38ac90e73de6be96ddd8d3a93e6741275719d5d9a68fa0e2e", platformAuthor},
43 {"upload", "0e414b46db68c64891aadfb4e1fc18ef63d9711907538b659b61b41c7d34efd1", platformAuthor},
44 // v2 engines and the new engines (2026-11-11, docs/engines/integration-2026-11.md)
45 {"kilimv2", "13ef738418a6f8e586c48431f2e58d0963f7f6efabc98bc74f5400806e4449d6", platformAuthor},
46 {"stratav2", "93c92a8bf12fcdb8ff28c1897c00c6a61806d489cbd48e81aa27ca76076f4f41", platformAuthor},
47 {"rubricav2", "94976a6b2ff033d26c685fca5ad8a0feb1023b795a7af7cf84fd6c2d7733959f", platformAuthor},
48 {"cantierev2", "4f16ecd23307b6f08a518d36adf908cb7d7999d1cb4d62c5cc68ce9b4d4a2c1c", platformAuthor},
49 {"giornatev2", "d4e4e9e530cc25a7ecaba21bc44444cd7958b112d6981a7b094883257321f3b1", platformAuthor},
50 {"sima", "bbc39e8daf3e8c4501ebb1130b7990d7151b52d4623e2ca3de9eaf2f6633f7cc", platformAuthor},
51 {"cinar", "95d4922c9f9cdb02ab96e88c1628deb179ebb8d327054ab64d12040b38c00e83", platformAuthor},
52 {"katman", "f8418846a3c0632a7e89b9728127effb4567ee3523067f265ee50d7c191345ef", platformAuthor},
53 {"pafta", "ecba9be924f2f04fa5d4e05f9b87d32fb5547208b05d8ca36c0fa2ece9a0c4d7", platformAuthor},
54 {"ebru", "bb69fb3b0400d4e15156f9feeb400ffa882c1143872e4278c7f4fc254699c6d8", platformAuthor},
55}
56
57// staticDeniedRealms are the platform realms next to core (paths relative
58// to core's parent, README package map) that can never spend an incoming
59// payment. They are refused as payees and treasury from deploy on (SA-L5,
60// M-17); the admin adds others with payee.deny (I-18: additions only).
61var staticDeniedRealms = []string{
62 "mint/v1", "market/v1", "reader", "gallery",
63 "engines/genesis", "engines/kilim", "engines/strata", "engines/rubrica", "engines/cantiere",
64 "engines/giornate", "engines/upload",
65 "assets/v1", "randomness/drand", "offers/v1", "mint/v2", "market/v2",
66 "engines/kilimv2", "engines/stratav2", "engines/rubricav2", "engines/cantierev2", "engines/giornatev2",
67 "engines/sima", "engines/cinar", "engines/katman", "engines/pafta", "engines/ebru",
68}