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
14 changes: 14 additions & 0 deletions .changeset/cdm-registry-migration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"playground-cli": patch
---

Point `dot deploy --playground` and `dot mod` at the current CDM meta-registry.
The playground-app and playground-constellation migrated to a freshly deployed
meta-registry (`0xf62c…`) where the playground-registry contract was redeployed
with additive lineage methods (`getLineage`/`getLineageCount`). The CLI was still
resolving live contract addresses from the old meta-registry (`0xa7ae…`), so it
published to a stale registry the app no longer reads from. The bundled `cdm.json`
now targets the new meta-registry and the latest `@w3s/playground-registry` ABI,
and `@dotdm/env` is bumped to `2.0.2` so `dot contract` defaults match. The
`publish()` signature is unchanged, so mod lineage continues to flow through the
`modded_from` argument.
10 changes: 10 additions & 0 deletions .changeset/modded-from-onchain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"playground-cli": patch
---

Fix `dot deploy --playground` not recording mod lineage on-chain. The
`modded_from` argument to the registry `publish()` call was read from a
never-set option instead of the `moddedFrom` value `dot mod` captures in
`dot.json`, so the contract always received `""` and never awarded the source
owner the "your app is modded" XP. The deploy now passes the captured source
domain through to the registry.
149 changes: 142 additions & 7 deletions cdm.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"targets": {
"929b5c63e2cb5202": {
"b7a87bf51613d89f": {
"asset-hub": "wss://paseo-asset-hub-next-rpc.polkadot.io",
"bulletin": "https://paseo-bulletin-next-ipfs.polkadot.io/ipfs",
"registry": "0xa7ae171c78f06c248a9b2556c793aa1df5c9173a"
"registry": "0xf62c2ece29cd8df2e10040ecfa5a894a5c5d9cb0"
}
},
"dependencies": {
"929b5c63e2cb5202": {
"b7a87bf51613d89f": {
"@w3s/playground-registry": "latest"
}
},
"contracts": {
"929b5c63e2cb5202": {
"b7a87bf51613d89f": {
"@w3s/playground-registry": {
"version": 11,
"address": "0x109BBf68F41B570Fd6d3b7bDE9b8e18779FDd8Db",
"version": 0,
"address": "0x1C12456f461aBd82C276436d3136F9Df4E8f3E08",
"abi": [
{
"type": "constructor",
Expand Down Expand Up @@ -498,6 +498,49 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getLineageCount",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getLineage",
"inputs": [
{
"name": "start",
"type": "uint32"
},
{
"name": "count",
"type": "uint32"
}
],
"outputs": [
{
"name": "",
"type": "tuple[]",
"components": [
{
"name": "child",
"type": "string"
},
{
"name": "source",
"type": "string"
}
]
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getMetadataUri",
Expand Down Expand Up @@ -793,6 +836,98 @@
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "importLineage",
"inputs": [
{
"name": "entries",
"type": "tuple[]",
"components": [
{
"name": "child",
"type": "string"
},
{
"name": "source",
"type": "string"
}
]
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "importPoints",
"inputs": [
{
"name": "entries",
"type": "tuple[]",
"components": [
{
"name": "account",
"type": "address"
},
{
"name": "total",
"type": "uint128"
}
]
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "importSocialCounts",
"inputs": [
{
"name": "entries",
"type": "tuple[]",
"components": [
{
"name": "domain",
"type": "string"
},
{
"name": "star_count",
"type": "uint32"
},
{
"name": "mod_count",
"type": "uint32"
}
]
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "importUsernames",
"inputs": [
{
"name": "entries",
"type": "tuple[]",
"components": [
{
"name": "account",
"type": "address"
},
{
"name": "name",
"type": "string"
}
]
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setUsername",
Expand Down Expand Up @@ -885,7 +1020,7 @@
"stateMutability": "view"
}
],
"metadataCid": "bafk2bzaceatxst44simdeefvybqtrytkbsxhpktn7cjfhpuei6soggmped4oi"
"metadataCid": "bafk2bzaceduyvqkzgyfafjcy77v3t3ypvkruwvt6zq3uaw37zvzelalfpkfty"
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"test:e2e:nightly": "tools/e2e-local.sh nightly"
},
"dependencies": {
"@dotdm/cdm": "^0.6.13",
"@dotdm/contracts": "^3.1.0",
"@dotdm/env": "^2.0.0",
"@dotdm/cdm": "^0.6.15",
"@dotdm/contracts": "^3.1.2",
"@dotdm/env": "^2.0.2",
"@parity/dotns-cli": "0.6.1",
"@parity/product-sdk-address": "^0.1.1",
"@parity/product-sdk-bulletin": "^0.4.2",
Expand Down
Loading
Loading