Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrap create space with prepay #1282

Merged
merged 1 commit into from
Oct 17, 2024
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
5 changes: 5 additions & 0 deletions contracts/src/factory/facets/create/ICreateSpace.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,9 @@ interface ICreateSpace is IArchitectBase {
function createSpaceWithPrepay(
CreateSpace memory createSpace
) external payable returns (address);

// backwards compatibility
function createSpaceWithPrepay(
CreateSpaceOld memory spaceInfo
) external payable returns (address);
}
2 changes: 1 addition & 1 deletion packages/generated/dev/abis/Architect.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/generated/dev/abis/Architect.metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -884,10 +884,10 @@
"license": "MIT"
},
"contracts/src/factory/facets/architect/IArchitect.sol": {
"keccak256": "0xc53b94ae7740401a89a5c6535ed842ceb4d4b2c8806f76f55e3ae828741b287d",
"keccak256": "0x5d790cabaad08df5dda57b8055dbf21ed103bd10ad0e4d684a0e690f9c240a24",
"urls": [
"bzz-raw://fc972ff384d674abc5cfd47c3dc3faedc6c9d2fbff92b7eb3d1645a9f4a948be",
"dweb:/ipfs/QmWbdrzSuM9BFRdiWGqq8ajswC9itt8Ku7w6Whe7DtngAq"
"bzz-raw://8ff954eb61db93e8b7b58d542f73d75b2e9ee856896a07d436bbc8101b4e9aea",
"dweb:/ipfs/QmdgzSC3JooGsWA6BTgyXQU7YA6byFFLuVkyZqs7mEgRCm"
],
"license": "MIT"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/generated/dev/abis/Channels.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/generated/dev/abis/Channels.metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -1399,10 +1399,10 @@
"license": "MIT"
},
"contracts/src/spaces/facets/roles/RolesBase.sol": {
"keccak256": "0x6b984e7391d7a9a7399240c98fdc46d1d83c2f551f5a18d1d9f41c0b7f4f3080",
"keccak256": "0xc847fa3ca60c268fc9ae30160b22092757e336d00e899f4002a68558eaf4c5f1",
"urls": [
"bzz-raw://d675dfc528d2b12e180d3c737d3f4e6f1e90b81f3366dfed861a787b1e27b3ca",
"dweb:/ipfs/QmVnsDdZeKD5jLnDjwAqvgwMC5iUbn7RrrCDcnw9ijH35E"
"bzz-raw://65284c01e6bae841b51f0a53161d9e88c46b207b8eefdf98cd3c582f2312963e",
"dweb:/ipfs/QmNcxd1hKiyYmKfVjjbwEHrydRJFLQYpjgeC6jMUosbcsY"
],
"license": "MIT"
},
Expand Down
158 changes: 158 additions & 0 deletions packages/generated/dev/abis/ICreateSpace.abi.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,164 @@
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "createSpaceWithPrepay",
"inputs": [
{
"name": "spaceInfo",
"type": "tuple",
"internalType": "struct IArchitectBase.CreateSpaceOld",
"components": [
{
"name": "metadata",
"type": "tuple",
"internalType": "struct IArchitectBase.Metadata",
"components": [
{
"name": "name",
"type": "string",
"internalType": "string"
},
{
"name": "uri",
"type": "string",
"internalType": "string"
},
{
"name": "shortDescription",
"type": "string",
"internalType": "string"
},
{
"name": "longDescription",
"type": "string",
"internalType": "string"
}
]
},
{
"name": "membership",
"type": "tuple",
"internalType": "struct IArchitectBase.MembershipOld",
"components": [
{
"name": "settings",
"type": "tuple",
"internalType": "struct IMembershipBase.Membership",
"components": [
{
"name": "name",
"type": "string",
"internalType": "string"
},
{
"name": "symbol",
"type": "string",
"internalType": "string"
},
{
"name": "price",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxSupply",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "duration",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "currency",
"type": "address",
"internalType": "address"
},
{
"name": "feeRecipient",
"type": "address",
"internalType": "address"
},
{
"name": "freeAllocation",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "pricingModule",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "requirements",
"type": "tuple",
"internalType": "struct IArchitectBase.MembershipRequirementsOld",
"components": [
{
"name": "everyone",
"type": "bool",
"internalType": "bool"
},
{
"name": "users",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "ruleData",
"type": "bytes",
"internalType": "bytes"
}
]
},
{
"name": "permissions",
"type": "string[]",
"internalType": "string[]"
}
]
},
{
"name": "channel",
"type": "tuple",
"internalType": "struct IArchitectBase.ChannelInfo",
"components": [
{
"name": "metadata",
"type": "string",
"internalType": "string"
}
]
},
{
"name": "prepay",
"type": "tuple",
"internalType": "struct IArchitectBase.Prepay",
"components": [
{
"name": "supply",
"type": "uint256",
"internalType": "uint256"
}
]
}
]
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "payable"
},
{
"type": "function",
"name": "createSpaceWithPrepay",
Expand Down
158 changes: 158 additions & 0 deletions packages/generated/dev/abis/ICreateSpace.abi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,164 @@ export default [
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "createSpaceWithPrepay",
"inputs": [
{
"name": "spaceInfo",
"type": "tuple",
"internalType": "struct IArchitectBase.CreateSpaceOld",
"components": [
{
"name": "metadata",
"type": "tuple",
"internalType": "struct IArchitectBase.Metadata",
"components": [
{
"name": "name",
"type": "string",
"internalType": "string"
},
{
"name": "uri",
"type": "string",
"internalType": "string"
},
{
"name": "shortDescription",
"type": "string",
"internalType": "string"
},
{
"name": "longDescription",
"type": "string",
"internalType": "string"
}
]
},
{
"name": "membership",
"type": "tuple",
"internalType": "struct IArchitectBase.MembershipOld",
"components": [
{
"name": "settings",
"type": "tuple",
"internalType": "struct IMembershipBase.Membership",
"components": [
{
"name": "name",
"type": "string",
"internalType": "string"
},
{
"name": "symbol",
"type": "string",
"internalType": "string"
},
{
"name": "price",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxSupply",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "duration",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "currency",
"type": "address",
"internalType": "address"
},
{
"name": "feeRecipient",
"type": "address",
"internalType": "address"
},
{
"name": "freeAllocation",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "pricingModule",
"type": "address",
"internalType": "address"
}
]
},
{
"name": "requirements",
"type": "tuple",
"internalType": "struct IArchitectBase.MembershipRequirementsOld",
"components": [
{
"name": "everyone",
"type": "bool",
"internalType": "bool"
},
{
"name": "users",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "ruleData",
"type": "bytes",
"internalType": "bytes"
}
]
},
{
"name": "permissions",
"type": "string[]",
"internalType": "string[]"
}
]
},
{
"name": "channel",
"type": "tuple",
"internalType": "struct IArchitectBase.ChannelInfo",
"components": [
{
"name": "metadata",
"type": "string",
"internalType": "string"
}
]
},
{
"name": "prepay",
"type": "tuple",
"internalType": "struct IArchitectBase.Prepay",
"components": [
{
"name": "supply",
"type": "uint256",
"internalType": "uint256"
}
]
}
]
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "payable"
},
{
"type": "function",
"name": "createSpaceWithPrepay",
Expand Down
2 changes: 1 addition & 1 deletion packages/generated/dev/abis/ICreateSpace.json

Large diffs are not rendered by default.

Loading
Loading