@towns-protocol/contracts 0.0.372 → 0.0.374
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@towns-protocol/contracts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.374",
|
|
4
4
|
"packageManager": "yarn@3.8.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build-types": "bash scripts/build-contract-types.sh",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@layerzerolabs/oapp-evm": "^0.3.2",
|
|
36
36
|
"@openzeppelin/merkle-tree": "^1.0.8",
|
|
37
37
|
"@prb/test": "^0.6.4",
|
|
38
|
-
"@towns-protocol/prettier-config": "^0.0.
|
|
38
|
+
"@towns-protocol/prettier-config": "^0.0.374",
|
|
39
39
|
"@typechain/ethers-v5": "^11.1.2",
|
|
40
40
|
"@wagmi/cli": "^2.2.0",
|
|
41
41
|
"forge-std": "github:foundry-rs/forge-std#v1.10.0",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "b6f28ce51336d969161de5c5aa0aa012f03a182a"
|
|
61
61
|
}
|
|
@@ -8,6 +8,7 @@ import {IMainnetDelegation} from "src/base/registry/facets/mainnet/IMainnetDeleg
|
|
|
8
8
|
import {ISpaceOwner} from "src/spaces/facets/owner/ISpaceOwner.sol";
|
|
9
9
|
import {INodeOperator} from "src/base/registry/facets/operator/INodeOperator.sol";
|
|
10
10
|
import {IRewardsDistribution} from "src/base/registry/facets/distribution/v2/IRewardsDistribution.sol";
|
|
11
|
+
import {ISubscriptionModule} from "src/apps/modules/subscription/ISubscriptionModule.sol";
|
|
11
12
|
|
|
12
13
|
// libraries
|
|
13
14
|
import {NodeOperatorStatus} from "src/base/registry/facets/operator/NodeOperatorStorage.sol";
|
|
@@ -35,6 +36,7 @@ contract InteractPostDeploy is Interaction {
|
|
|
35
36
|
address baseRegistry = getDeployment("baseRegistry");
|
|
36
37
|
address riverAirdrop = getDeployment("riverAirdrop");
|
|
37
38
|
address appRegistry = getDeployment("appRegistry");
|
|
39
|
+
address subscriptionModule = getDeployment("subscriptionModule");
|
|
38
40
|
address townsBase = deployTownsBase.deploy(deployer);
|
|
39
41
|
address proxyDelegation = deployProxyDelegation.deploy(deployer);
|
|
40
42
|
|
|
@@ -47,6 +49,7 @@ contract InteractPostDeploy is Interaction {
|
|
|
47
49
|
IImplementationRegistry(spaceFactory).addImplementation(baseRegistry);
|
|
48
50
|
IImplementationRegistry(spaceFactory).addImplementation(riverAirdrop);
|
|
49
51
|
IImplementationRegistry(spaceFactory).addImplementation(appRegistry);
|
|
52
|
+
ISubscriptionModule(subscriptionModule).setSpaceFactory(spaceFactory);
|
|
50
53
|
IMainnetDelegation(baseRegistry).setProxyDelegation(proxyDelegation);
|
|
51
54
|
IRewardsDistribution(baseRegistry).setRewardNotifier(deployer, true);
|
|
52
55
|
IRewardsDistribution(baseRegistry).notifyRewardAmount(MAX_CLAIMABLE_SUPPLY);
|