diff --git a/packages/backend/environments/local.toml.example b/packages/backend/environments/local.toml.example index a18bd357..9a3fb54c 100644 --- a/packages/backend/environments/local.toml.example +++ b/packages/backend/environments/local.toml.example @@ -30,7 +30,8 @@ [registryConfig] fetchDeploymentRecordDelay = 5000 checkAuctionStatusDelay = 5000 - restEndpoint = "http://dss-daemon.test1.wireitin.com:26657" + restEndpoint = "http://localhost:1317" + gqlEndpoint = "http://localhost:9473/api" chainId = "laconic_9000-1" privateKey = "" bondId = "" diff --git a/packages/backend/src/service.ts b/packages/backend/src/service.ts index 02fd004a..e8dd2f6c 100644 --- a/packages/backend/src/service.ts +++ b/packages/backend/src/service.ts @@ -266,7 +266,7 @@ export class Service { } /** - * Checks for auction status for all ongoing auctions + * Checks the status for all ongoing auctions * Calls the createDeploymentFromAuction method for deployments with completed auctions */ async checkAuctionStatus(): Promise { diff --git a/packages/frontend/src/components/projects/create/Configure.tsx b/packages/frontend/src/components/projects/create/Configure.tsx index 602ac5ee..4ae25460 100644 --- a/packages/frontend/src/components/projects/create/Configure.tsx +++ b/packages/frontend/src/components/projects/create/Configure.tsx @@ -74,7 +74,15 @@ const Configure = () => { auctionData ); - navigate(`/${orgSlug}/projects/create/template/deploy?projectId=${addProjectFromTemplate.id}&templateId=${templateId}`); + data.option === 'Auction' + ? navigate( + `/${orgSlug}/projects/create/success/${addProjectFromTemplate.id}`, + { + state: { + isAuction: true + } + }) + : navigate(`/${orgSlug}/projects/create/template/deploy?projectId=${addProjectFromTemplate.id}&templateId=${templateId}`); } catch (error) { console.error('Error creating project:', error); toast({ diff --git a/packages/frontend/src/pages/org-slug/projects/create/success/Id.tsx b/packages/frontend/src/pages/org-slug/projects/create/success/Id.tsx index 7e8deb3b..837be153 100644 --- a/packages/frontend/src/pages/org-slug/projects/create/success/Id.tsx +++ b/packages/frontend/src/pages/org-slug/projects/create/success/Id.tsx @@ -1,4 +1,4 @@ -import { Link, useParams } from 'react-router-dom'; +import { Link, useLocation, useParams } from 'react-router-dom'; import Lottie from 'lottie-react'; import { Badge } from 'components/shared/Badge'; @@ -19,6 +19,8 @@ const Id = () => { const { id, orgSlug } = useParams(); const client = useGQLClient(); const [project, setProject] = useState(null); + const location = useLocation(); + const { isAuction } = location.state || {}; const handleSetupDomain = async () => { if (id) { @@ -51,22 +53,24 @@ const Id = () => { {/* Heading */}
- Project deployed successfully. + {isAuction? 'Project created successfully.' : 'Project deployed successfully.'} -

- Your project has been deployed at{' '} - -

+ {!isAuction && ( +

+ Your project has been deployed at{' '} + +

+ )}
{/* Card */} diff --git a/yarn.lock b/yarn.lock index a80465ac..baa03dc7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1431,10 +1431,10 @@ resolved "https://registry.yarnpkg.com/@bugsnag/safe-json-stringify/-/safe-json-stringify-6.0.0.tgz#22abdcd83e008c369902976730c34c150148a758" integrity sha512-htzFO1Zc57S8kgdRK9mLcPVTW1BY2ijfH7Dk2CeZmspTWKdKqSo1iwmqrq2WtRjFlo8aRZYgLX0wFrDXF/9DLA== -"@cerc-io/registry-sdk@^0.2.5": - version "0.2.10" - resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fregistry-sdk/-/0.2.10/registry-sdk-0.2.10.tgz#15773ea36a862585cdcb0991cbf075736f845f96" - integrity sha512-xxVD7ylrN951TFoSFbluz7mt4SwSCv7z+yry3jGd8v8TWnycoBMMrrYSTfETs6Ydxwziiz/uLrRwk59vFZxLEA== +"@cerc-io/registry-sdk@^0.2.11": + version "0.2.11" + resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fregistry-sdk/-/0.2.11/registry-sdk-0.2.11.tgz#019b792c68f440f2cfca5af2f49e1205bb33ba72" + integrity sha512-IipqJzaBQEXMNH6yWFG2E/o0U6IAXw35PBMHx6QIboVu/sMNLIsWy1P8MmR8C8xYsmHOhgXLsC4hYSeFMXrqFw== dependencies: "@cosmjs/amino" "^0.28.1" "@cosmjs/crypto" "^0.28.1"