Skip to content

Commit

Permalink
Started adding create collection actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Oct 12, 2023
1 parent d491302 commit e481c98
Show file tree
Hide file tree
Showing 17 changed files with 758 additions and 95 deletions.
13 changes: 13 additions & 0 deletions packages/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"createAToken": "Create a token",
"createAccount": "Create account",
"createDAO": "Create DAO",
"createNftCollection": "Create NFT collection",
"createSubDao": "Create SubDAO",
"delete": "Delete",
"deleteDraft": "Delete draft",
Expand Down Expand Up @@ -323,6 +324,7 @@
"insufficientFunds": "Insufficient funds.",
"insufficientWalletBalance": "Insufficient wallet balance (total: {{amount}} ${{tokenSymbol}}).",
"invalidActionKeys": "Invalid action keys found: {{keys}}",
"invalidChain": "Invalid chain.",
"invalidCosmosMessage": "Invalid <2>Cosmos message</2>",
"invalidDate": "Invalid date format. Please use YYYY-MM-DD.",
"invalidDateTime": "Invalid date/time format. Please use YYYY-MM-DD HH:MM.",
Expand Down Expand Up @@ -411,6 +413,7 @@
"allowRevotingTitle": "Allow revoting",
"allowedMethods": "Allowed methods",
"allowedMethodsDescription": "Comma separated list of smart contract method names to authorize (i.e. set_item, remove_item)",
"allowsTradingAfter": "Allows trading after",
"amount": "amount",
"attributeName": "Attribute name",
"attributeNamePlaceholder": "Community impact",
Expand Down Expand Up @@ -475,6 +478,8 @@
"existingCollectionAddress": "Existing collection address",
"existingTokenSwapContract": "Existing token swap contract",
"existingTokens": "Existing Tokens",
"explicitContent": "Explicit content",
"externalLink": "External link",
"feeShareContractAddressDescription": "The address to claim fee share for. NOTE: you must be admin or the creator of this smart contract to claim fees for it.",
"feeShareToggleWithdrawerAddress": "Custom withdrawer address",
"feeShareToggleWithdrawerAddressTooltip_dao": "Customize the address allowed to withdraw fees. Defaults to the DAO.",
Expand Down Expand Up @@ -525,6 +530,7 @@
"nftCollectionAddress": "NFT collection address",
"nftMintInstructions": "Create a unique token ID for the NFT and enter the address of the initial owner below.",
"nftUploadMetadataInstructions": "Input the NFT's metadata, and then press 'Upload' to store it on IPFS.",
"oneOneCollection": "1/1 Collection",
"onlyMembersExecuteTitle": "Only members execute",
"onlyMembersExecuteTooltip": "If enabled, only members may execute passed proposals.",
"openDate": "Open date",
Expand Down Expand Up @@ -566,6 +572,7 @@
"requireProposalDepositTitle": "Require proposal deposit",
"requireProposalDepositTooltip": "If enabled, requires that tokens are deposited to create a proposal.",
"revokeAuthorizationOption": "Revoke authorization",
"royalties": "Royalties",
"salt": "Salt",
"sameAsPublicSubmissionCloseDate": "Same as public submission close date",
"selectAnImage": "Select an image",
Expand All @@ -577,6 +584,7 @@
"smartContractMessageDescription": "The smart contract message to execute.",
"spendingAllowance": "Spending allowance",
"spendingAllowanceDescription": "The amount of funds allowed to be spent by the authorized account.",
"standardCollection": "Standard Collection",
"startDate": "Start date",
"subDaosToRecognize": "SubDAOs to recognize",
"subDaosToRemove": "SubDAOs to remove",
Expand Down Expand Up @@ -739,6 +747,9 @@
"createCrossChainAccountDescription": "Create an account for this DAO on another chain.",
"createCrossChainAccountExplanation": "This action creates an account on another chain, allowing this DAO to perform actions on that chain.",
"createFirstOneQuestion": "Create the first one?",
"createNftCollectionDescription_dao": "Create a new NFT collection controlled by the DAO.",
"createNftCollectionDescription_gov": "Create a new NFT collection controlled by the chain.",
"createNftCollectionDescription_wallet": "Create a new NFT collection controlled by you.",
"createPostDescription": "Create a post on the DAO's press.",
"createPressContract": "To publish content, you must first create a press contract.",
"createStep1": "Pick a DAO type and name it",
Expand Down Expand Up @@ -970,6 +981,7 @@
"stakedNftsExplanation": "These have been staked by DAO members to earn voting power.",
"stakes": "Stakes",
"stakingAddress": "Staking Contract",
"stargazeCreateCollectionFirst": "On Stargaze, you must first create the NFT Collection via a DAO proposal, and then you can mint the NFTs. Click below to replace this with the Create NFT Action.",
"startedAt": "Started at",
"startsAt": "Starts at",
"startsIn": "Starts in",
Expand Down Expand Up @@ -1193,6 +1205,7 @@
"createAProposal": "Create a proposal",
"createASubDao": "Create a SubDAO",
"createCrossChainAccount": "Create Cross-Chain Account",
"createNftCollection": "Create NFT Collection",
"createPost": "Create Post",
"createProposal": "Create proposal",
"createValidator": "Create a validator",
Expand Down
35 changes: 35 additions & 0 deletions packages/stateful/actions/core/nfts/CreateNftCollection/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# CreateNftCollection

Create a new NFT collection.

## Bulk import format

This is relevant when bulk importing actions, as described in [this
guide](https://github.com/DA0-DA0/dao-dao-ui/wiki/Bulk-importing-actions).

### Key

`createNftCollection`

### Data format

```json
{
"chainId": "<CHAIN ID>",
"name": "<NAME>",
"symbol": "<SYMBOL>",
"collectionInfo": {
"type": <"base" | "vending">,
"description": "<DESCRIPTION>",
"explicitContent": true | false,
"externalLink": <"LINK" | undefined>,
"image": "<IMAGE">,
"royalties": "<ROYALTY IN PERCENT>",
"startTradingDate": "<MM/DD/YY HH:mm>"
}
}
```

`collectionInfo` is only relevant when `chainId` is `stargaze-1` (Stargaze
mainnet) or `elgafar-1` (Stargaze testnet). All other chains only need `name`
and `symbol`.
Loading

0 comments on commit e481c98

Please sign in to comment.