Skip to content

Commit

Permalink
Merge pull request #1124 from alleslabs/feat/cut-1.8.1
Browse files Browse the repository at this point in the history
Feat/cut 1.8.1
  • Loading branch information
songwongtp authored Aug 30, 2024
2 parents f8fd0a2 + 27c1251 commit 8c58893
Show file tree
Hide file tree
Showing 215 changed files with 4,177 additions and 3,101 deletions.
21 changes: 20 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,32 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
## v1.8.1

### Features

- [#1103](https://github.com/alleslabs/celatone-frontend/pull/1103) Apply move verify badge to all places
- [#1092](https://github.com/alleslabs/celatone-frontend/pull/1092) Add module verification badge and entry points
- [#1096](https://github.com/alleslabs/celatone-frontend/pull/1096) My past module verifications with functionalities
- [#1085](https://github.com/alleslabs/celatone-frontend/pull/1085) Add my module verification details
- [#1087](https://github.com/alleslabs/celatone-frontend/pull/1087) Add modules verify page
- [#1102](https://github.com/alleslabs/celatone-frontend/pull/1102) Support add local development chain lite version
- [#1101](https://github.com/alleslabs/celatone-frontend/pull/1101) Add get all codes and contracts APIs

### Improvements

- [#1095](https://github.com/alleslabs/celatone-frontend/pull/1095) Update native broadcast helper function to generic sign and broadcast function
- [#1093](https://github.com/alleslabs/celatone-frontend/pull/1093) Remove unused userkeys and adjust flex from string to number

### Bug fixes

- [#1119](https://github.com/alleslabs/celatone-frontend/pull/1119) Fix move verification bug bash
- [#1115](https://github.com/alleslabs/celatone-frontend/pull/1115) Fix move reverify button
- [#1108](https://github.com/alleslabs/celatone-frontend/pull/1108) Fix example dev config to initialocal
- [#1107](https://github.com/alleslabs/celatone-frontend/pull/1107) Fix network states config
- [#1100](https://github.com/alleslabs/celatone-frontend/pull/1100) Fix account modules spacing
- [#1104](https://github.com/alleslabs/celatone-frontend/pull/1104) Fix pool asset card not taking full width

## v1.8.0

### Features
Expand All @@ -58,6 +76,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Improvements

- [#1099](https://github.com/alleslabs/celatone-frontend/pull/1099) Remove dashboard API
- [#1090](https://github.com/alleslabs/celatone-frontend/pull/1090) Change query page layout in mobile and adjust code snippet copy button
- [#1080](https://github.com/alleslabs/celatone-frontend/pull/1080) Adjust color and remove accent color
- [#1088](https://github.com/alleslabs/celatone-frontend/pull/1088) Remove userKey from network store and add test for it
Expand Down
120 changes: 119 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The Celatone frontend uses the following technologies:

### Prerequisites

1. [Node.js](https://nodejs.org/en/) (version >= 18) or using node version manager [nvm](https://github.com/nvm-sh/nvm#intro) (recommended, installation guide for nvm [here](https://collabnix.com/how-to-install-and-configure-nvm-on-mac-os/)).
1. [Node.js](https://nodejs.org/en/) (version >= 20) or using node version manager [nvm](https://github.com/nvm-sh/nvm#intro) (recommended, installation guide for nvm [here](https://collabnix.com/how-to-install-and-configure-nvm-on-mac-os/)).

### Develop

Expand Down Expand Up @@ -56,3 +56,121 @@ pnpm dev
```

The website will then be live on [http://localhost:3000](http://localhost:3000)

### Running Local

1. Modify a `devChainConfigs.ts` under `src/config/chain` by adding your own chain config

```ts
{
tier: "lite",
chainId: "localinitia",
chain: "localinitia",
registryChainName: "localinitia",
prettyName: "Local Initia",
lcd: "http://localhost:1317",
rpc: "http://localhost:26657",
wallets: ["initia"], // keplr, initia, compass, station
features: {
faucet: {
enabled: false,
},
wasm: {
enabled: false,
},
move: {
enabled: true,
moduleMaxFileSize: 1_048_576,
},
pool: {
enabled: false,
},
publicProject: {
enabled: false,
},
gov: {
enabled: true,
version: "v1",
hideOpenProposal: true,
},
nft: {
enabled: false,
},
},
gas: {
gasAdjustment: 1.5,
maxGasLimit: 200_000_000,
},
extra: {
layer: "1",
},
network_type: "testnet",
logo_URIs: {
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.svg",
},
fees: {
fee_tokens: [
{
denom: "uinit",
fixed_min_gas_price: 0.15,
low_gas_price: 0.15,
average_gas_price: 0.15,
high_gas_price: 0.4,
},
],
},
registry: {
bech32_prefix: "init",
slip44: 118,
staking: {
staking_tokens: [
{
denom: "uinit",
},
],
},
assets: [
{
description: "The native token of Initia",
denom_units: [
{
denom: "uinit",
exponent: 0,
},
{
denom: "INIT",
exponent: 6,
},
],
base: "uinit",
display: "INIT",
name: "Initia Native Token",
symbol: "INIT",
images: [
{
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.svg",
},
],
logo_URIs: {
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.svg",
},
},
],
},
}
```

2. Update your project environment variables by

- adding your development `chainId` into `NEXT_PUBLIC_SUPPORTED_CHAIN_IDS`
- (move only) setting another variable `NEXT_PUBLIC_INITIA_MOVE_DECODER`

```bash
NEXT_PUBLIC_SUPPORTED_CHAIN_IDS=initiation-1,<chainId>

# move only
NEXT_PUBLIC_INITIA_MOVE_DECODER=https://celatone-move-api-prod-jiod42ec2q-as.a.run.app
```
Binary file added public/verify-module-task-folder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
105 changes: 105 additions & 0 deletions src/config/chain/devChainConfigs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
/* eslint-disable sonarjs/no-duplicate-string */
import type { ChainConfig } from "@alleslabs/shared";

export const devChainConfigs: ChainConfig[] = [
// Write your chain config here.
{
tier: "lite",
chainId: "localinitia",
chain: "localinitia",
registryChainName: "localinitia",
prettyName: "Local Initia",
lcd: "http://localhost:1317",
rpc: "http://localhost:26657",
wallets: ["initia"],
features: {
faucet: {
enabled: false,
},
wasm: {
enabled: false,
},
move: {
enabled: true,
moduleMaxFileSize: 1_048_576,
},
pool: {
enabled: false,
},
publicProject: {
enabled: false,
},
gov: {
enabled: true,
version: "v1",
hideOpenProposal: true,
},
nft: {
enabled: false,
},
},
gas: {
gasAdjustment: 1.5,
maxGasLimit: 200_000_000,
},
extra: {
layer: "1",
},
network_type: "testnet",
logo_URIs: {
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.svg",
},
fees: {
fee_tokens: [
{
denom: "uinit",
fixed_min_gas_price: 0.15,
low_gas_price: 0.15,
average_gas_price: 0.15,
high_gas_price: 0.4,
},
],
},
registry: {
bech32_prefix: "init",
slip44: 118,
staking: {
staking_tokens: [
{
denom: "uinit",
},
],
},
assets: [
{
description: "The native token of Initia",
denom_units: [
{
denom: "uinit",
exponent: 0,
},
{
denom: "INIT",
exponent: 6,
},
],
base: "uinit",
display: "INIT",
name: "Initia Native Token",
symbol: "INIT",
images: [
{
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.svg",
},
],
logo_URIs: {
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.svg",
},
},
],
},
},
];
3 changes: 1 addition & 2 deletions src/config/chain/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from "./types";
export * from "./default";
export * from "./devChainConfigs";
97 changes: 0 additions & 97 deletions src/config/chain/types.ts

This file was deleted.

1 change: 1 addition & 0 deletions src/config/project/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ export const PROJECT_CONSTANTS: ProjectConstants = {
maxContractNameLength: 50,
maxContractDescriptionLength: 250,
maxListNameLength: 50,
maxMoveVerifyTaskRequestNoteLength: 50,
};
3 changes: 3 additions & 0 deletions src/config/project/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ export interface ProjectConstants {
maxContractNameLength: number;
maxContractDescriptionLength: number;
maxCodeNameLength: number;

// move verify task
maxMoveVerifyTaskRequestNoteLength: number;
}
Loading

0 comments on commit 8c58893

Please sign in to comment.