-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from alleslabs/feat/admin-migrate-router
feat: admin migrate routes
- Loading branch information
Showing
14 changed files
with
74 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Heading, Text } from "@chakra-ui/react"; | ||
|
||
import { ButtonCard } from "lib/components/ButtonCard"; | ||
import { Stepper } from "lib/components/stepper"; | ||
import WasmPageContainer from "lib/components/WasmPageContainer"; | ||
|
||
const Migrate = () => { | ||
return ( | ||
<WasmPageContainer> | ||
<Text variant="body1" color="text.dark" mb={3} fontWeight={700}> | ||
MIGRATE CONTRACT | ||
</Text> | ||
<Stepper currentStep={1} /> | ||
<Heading as="h4" variant="h4" my="48px"> | ||
Migrate Contract | ||
</Heading> | ||
{/* Select Migrate Contract modal */} | ||
<ButtonCard | ||
title="Upload new WASM File" | ||
description="Deploy contract by upload new Wasm file" | ||
onClick={() => {}} | ||
mb="16px" | ||
/> | ||
<ButtonCard | ||
title="Use existing Code IDs" | ||
description="Input code ID or select from stored codes or your saved codes" | ||
onClick={() => {}} | ||
/> | ||
</WasmPageContainer> | ||
); | ||
}; | ||
|
||
export default Migrate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Heading, Text } from "@chakra-ui/react"; | ||
import { useRouter } from "next/router"; | ||
import { useState } from "react"; | ||
|
||
import WasmPageContainer from "lib/components/WasmPageContainer"; | ||
import { useValidateAddress } from "lib/hooks"; | ||
import { getFirstQueryParam } from "lib/utils"; | ||
|
||
const UpdateAdmin = () => { | ||
const router = useRouter(); | ||
const { validateContractAddress } = useValidateAddress(); | ||
|
||
const contractAddressParam = getFirstQueryParam(router.query.contract); | ||
|
||
const [contractAddress] = useState( | ||
!validateContractAddress(contractAddressParam) | ||
? contractAddressParam | ||
: undefined | ||
); | ||
|
||
return ( | ||
<WasmPageContainer> | ||
<Heading as="h4" variant="h4"> | ||
Update Admin | ||
</Heading> | ||
<Text variant="body1" color="text.dark" mb={3} fontWeight={700}> | ||
{contractAddress} | ||
</Text> | ||
</WasmPageContainer> | ||
); | ||
}; | ||
|
||
export default UpdateAdmin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import UpdateAdmin from "lib/pages/update-admin"; | ||
|
||
export default UpdateAdmin; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Migrate from "lib/pages/migrate"; | ||
|
||
export default Migrate; |
File renamed without changes.
8ba8f96
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
celatone-frontend-staging – ./
celatone-frontend-staging-git-develop-alles-labs.vercel.app
celatone-frontend-staging.vercel.app
celatone-frontend-staging-alles-labs.vercel.app
osmosis-staging.celat.one
8ba8f96
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
celatone-custom-chain-temp – ./
celatone-custom-chain-temp-git-develop-alles-labs.vercel.app
celatone-custom-chain-temp-alles-labs.vercel.app
celatone-custom-chain-temp.vercel.app