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
2 changes: 2 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ libs = ["lib"]
solc = "0.8.28"
fs_permissions = [
{ access = "write", path = "./artifacts" },
{ access = "read", path = "./src/build-metadata.json" },
{ access = "read", path = "./out" },
]

gas_limit = 50073741824
Expand Down
211 changes: 101 additions & 110 deletions src/build-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,147 +12,138 @@
"description": "The metadata that contains the information about the staged proposal processor."
},
{
"components": [
{
"components": [
{
"components": [
{
"components": [
{
"name": "addr",
"type": "address",
"internalType": "address",
"description": "The address responsible for reporting results. For automatic bodies, it is also where the SPP creates proposals."
},
{
"name": "isManual",
"type": "bool",
"internalType": "bool",
"description": "Whether SPP should create a proposal on a body. If true, it will not create."
},
{
"name": "tryAdvance",
"type": "bool",
"internalType": "bool",
"description": "Whether to try to automatically advance the stage when a body reports results."
},
{
"name": "resultType",
"type": "uint8",
"internalType": "uint8",
"description": "The type(`None`, `Approval` or `Veto`) this body is registered with."
}
],
"name": "body",
"type": "tuple",
"internalType": "struct StagedProposalProcessor.Body"
}
],
"name": "bodies",
"type": "tuple[]",
"internalType": "struct StagedProposalProcessor.Body[]",
"description": "The bodies that are responsible for advancing the stage."
},
{
"name": "maxAdvance",
"type": "uint64",
"internalType": "uint64",
"description": "The maximum duration after which stage can not be advanced."
},
{
"name": "minAdvance",
"type": "uint64",
"internalType": "uint64",
"description": "The minimum duration until when stage can not be advanced."
},
{
"name": "voteDuration",
"type": "uint64",
"internalType": "uint64",
"description": "The time to give vetoing bodies to make decisions in optimistic stage. Note that this also is used as an endDate time for bodies"
},
{
"name": "approvalThreshold",
"type": "uint16",
"internalType": "uint16",
"description": "The number of bodies that are required to pass to advance the proposal."
},
{
"name": "vetoThreshold",
"type": "uint16",
"internalType": "uint16",
"description": "If this number of bodies veto, the proposal can never advance even if `approvalThreshold` is satisfied."
}
],
"name": "stage",
"type": "tuple",
"internalType": "struct StagedProposalProcessor.Stage"
}
],
"name": "stages",
"type": "tuple[]",
"internalType": "struct StagedProposalProcessor.Stage[]",
"description": "The stages that the proposal will go through."
},
{
"description": "The stages that the proposal will go through.",
"components": [
{
"name": "bodies",
"type": "tuple[]",
"internalType": "struct StagedProposalProcessor.Body[]",
"description": "The bodies that are responsible for advancing the stage.",
"components": [
{
"name": "id",
"type": "uint8",
"internalType": "uint8",
"description": "The ID representing the identifier of the rule."
"name": "addr",
"type": "address",
"internalType": "address",
"description": "The address responsible for reporting results. For automatic bodies, it is also where the SPP creates proposals."
},
{
"name": "op",
"type": "uint8",
"internalType": "uint8",
"description": "The operation to apply, as defined in the `Op` enum."
"name": "isManual",
"type": "bool",
"internalType": "bool",
"description": "Whether SPP should create a proposal on a body. If true, it will not create."
},
{
"name": "value",
"type": "uint240",
"internalType": "uint240",
"description": "The value associated with this rule, which could be an address, timestamp, etc."
"name": "tryAdvance",
"type": "bool",
"internalType": "bool",
"description": "Whether to try to automatically advance the stage when a body reports results."
},
{
"name": "permissionId",
"type": "bytes32",
"internalType": "bytes32",
"description": "The specific permission ID to use for evaluating this rule. If set to `0x`, the passed permission ID will be used."
"name": "resultType",
"type": "uint8",
"internalType": "enum StagedProposalProcessor.ResultType",
"description": "The type(`None`, `Approval` or `Veto`) this body is registered with."
}
],
"name": "rule",
"type": "tuple",
"internalType": "struct RuledCondition.Rule"
]
},
{
"name": "maxAdvance",
"type": "uint64",
"internalType": "uint64",
"description": "The maximum duration after which stage can not be advanced."
},
{
"name": "minAdvance",
"type": "uint64",
"internalType": "uint64",
"description": "The minimum duration until when stage can not be advanced."
},
{
"name": "voteDuration",
"type": "uint64",
"internalType": "uint64",
"description": "The time to give vetoing bodies to make decisions in optimistic stage. Note that this also is used as an endDate time for bodies"
},
{
"name": "approvalThreshold",
"type": "uint16",
"internalType": "uint16",
"description": "The number of bodies that are required to pass to advance the proposal."
},
{
"name": "vetoThreshold",
"type": "uint16",
"internalType": "uint16",
"description": "If this number of bodies veto, the proposal can never advance even if `approvalThreshold` is satisfied."
},
{
"name": "cancelable",
"type": "bool",
"internalType": "bool",
"description": "If the proposal can be cancelled in the stage."
},
{
"name": "editable",
"type": "bool",
"internalType": "bool",
"description": "If the proposal can be edited in the stage."
}
],
]
},
{
"name": "rules",
"type": "tuple[]",
"internalType": "struct RuledCondition.Rule[]",
"description": "Allows conditional permissions of who can create proposals using specific rules."
"description": "Allows conditional permissions of who can create proposals using specific rules.",
"components": [
{
"name": "id",
"type": "uint8",
"internalType": "uint8",
"description": "The ID representing the identifier of the rule."
},
{
"name": "op",
"type": "uint8",
"internalType": "uint8",
"description": "The operation to apply, as defined in the `Op` enum."
},
{
"name": "value",
"type": "uint240",
"internalType": "uint240",
"description": "The value associated with this rule, which could be an address, timestamp, etc."
},
{
"name": "permissionId",
"type": "bytes32",
"internalType": "bytes32",
"description": "The specific permission ID to use for evaluating this rule. If set to `0x`, the passed permission ID will be used."
}
]
},
{
"name": "TargetConfig",
"type": "tuple",
"internalType": "struct IPlugin.TargetConfig",
"description": "The initial target config",
"components": [
{
"internalType": "address",
"name": "target",
"type": "address",
"internalType": "address",
"description": "The target contract to which actions will be forwarded to for execution."
},
{
"internalType": "uint8",
"name": "operation",
"type": "uint8",
"internalType": "enum IPlugin.Operation",
"description": "The operation type(either `call` or `delegatecall`) that will be used for execution forwarding."
}
],
"name": "TargetConfig",
"type": "tuple",
"internalType": "struct StagedProposalProcessor.TargetConfig",
"description": "The initial target config"
]
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion src/utils/PluginSettings.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ library PluginSettings {
// 3. Paste the returned `ipfs://<cid>` into the matching constant below.

string public constant BUILD_METADATA =
"ipfs://QmUuvtPgqNogyC6pVRJqzyesjQYbTHXsS4iksDHC258uYW";
"ipfs://QmPJErCM2FV8YpJGNjNy4U5yDgHwTNczwEfMZ9SHhBTa64";
string public constant RELEASE_METADATA =
"ipfs://bafkreif23p6yw325rkwwlhgkudiasvq64lonqmfnt7ls5ksfam5hedcb4m";

Expand Down
Loading
Loading