Skip to content

Commit d044661

Browse files
authored
Merge pull request #1177 from alleslabs/release/v1.9.3
Cut release v1.9.3
2 parents 45e61de + fd1abfe commit d044661

File tree

17 files changed

+376
-105
lines changed

17 files changed

+376
-105
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,26 @@ All notable changes to this project will be documented in this file.
3535
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
3636
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
3737

38+
## Unreleased
39+
40+
### Features
41+
42+
### Improvements
43+
44+
### Bug fixes
45+
46+
## v1.9.3
47+
48+
### Features
49+
50+
- [#1174](https://github.com/alleslabs/celatone-frontend/pull/1174) Add custom network by url with query param
51+
52+
### Bug fixes
53+
54+
- [#1176](https://github.com/alleslabs/celatone-frontend/pull/1176) Improve adding custom network by url with query param
55+
- [#1175](https://github.com/alleslabs/celatone-frontend/pull/1175) Fix tooltip bg color
56+
- [#1172](https://github.com/alleslabs/celatone-frontend/pull/1172) Fix auto popup for module drawer in mobile
57+
3858
## v1.9.2
3959

4060
### Improvements

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "celatone",
3-
"version": "1.9.2",
3+
"version": "1.9.3",
44
"author": "Alles Labs",
55
"contributors": [
66
{
@@ -42,7 +42,7 @@
4242
"build-storybook": "storybook build"
4343
},
4444
"dependencies": {
45-
"@alleslabs/shared": "1.0.0-dev5",
45+
"@alleslabs/shared": "1.0.0-dev6",
4646
"@amplitude/analytics-browser": "^2.3.3",
4747
"@amplitude/analytics-types": "^2.3.0",
4848
"@amplitude/plugin-user-agent-enrichment-browser": "^1.0.0",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/app-provider/hooks/useChainConfigs.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { ChainConfig } from "@alleslabs/shared";
22
import type { AssetList, Chain } from "@chain-registry/types";
33
import chainRegistry from "chain-registry";
4-
import { find, isUndefined, unionBy } from "lodash";
4+
import { isUndefined, unionBy } from "lodash";
55
import { useMemo } from "react";
66

77
import { devChainConfigs } from "config/chain";
@@ -23,7 +23,6 @@ export const useChainConfigs = (): {
2323
registryAssets: AssetList[];
2424
supportedChainIds: string[];
2525
isChainIdExist: (chainId: string) => boolean;
26-
isPrettyNameExist: (name: string) => boolean;
2726
isLoading: boolean;
2827
} => {
2928
const { data: apiChainConfigs, isFetching } =
@@ -114,8 +113,6 @@ export const useChainConfigs = (): {
114113
),
115114
supportedChainIds: [...SUPPORTED_CHAIN_IDS, ...local.supportedChainIds],
116115
isChainIdExist: (chainId: string) => !!chainConfigs[chainId],
117-
isPrettyNameExist: (name: string) =>
118-
!!find(chainConfigs, { prettyName: name }),
119116
isLoading: isFetching || !isHydrated,
120117
};
121118
}, [

src/lib/app-provider/tx/storeCode.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ export const useStoreCodeTx = (isMigrate: boolean) => {
4040

4141
const message = composeStoreCodeMsg({
4242
sender: address,
43-
wasmByteCode: await gzip(new Uint8Array(await wasmCode)),
43+
wasmByteCode: new Uint8Array(
44+
await gzip(new Uint8Array(await wasmCode))
45+
),
4446
permission,
4547
addresses,
4648
});

src/lib/components/module/FunctionCard.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,7 @@ const FunctionCardBody = ({
8787
<Flex alignItems="center" gap={2}>
8888
{!isView && (
8989
<>
90-
<Tooltip
91-
bg="primary.dark"
92-
label={`is_entry: ${exposedFn.is_entry}`}
93-
>
90+
<Tooltip label={`is_entry: ${exposedFn.is_entry}`}>
9491
<Flex pointerEvents="auto" onClick={(e) => e.stopPropagation()}>
9592
{disabled ? (
9693
<CustomIcon name="close" color="gray.600" boxSize={3} />
@@ -140,7 +137,6 @@ export const FunctionCard = ({
140137
/>
141138
) : (
142139
<Tooltip
143-
bg="primary.dark"
144140
label="Only functions with “is_entry: true” are able to interacted through Celatone’s module interactions."
145141
hidden={!disabled}
146142
>

src/lib/components/state/EmptyState.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { StateImage } from "./StateImage";
77
export interface EmptyStateProps {
88
imageVariant?: ImageVariant;
99
imageWidth?: ImageProps["width"];
10-
message: string;
10+
message?: string;
1111
heading?: string;
1212
withBorder?: boolean;
1313
my?: FlexProps["my"];
@@ -51,14 +51,16 @@ export const EmptyState = ({
5151
{heading}
5252
</Heading>
5353
)}
54-
<Text
55-
color="text.dark"
56-
textAlign="center"
57-
whiteSpace="pre-wrap"
58-
variant={textVariant}
59-
>
60-
{message}
61-
</Text>
54+
{message && (
55+
<Text
56+
color="text.dark"
57+
textAlign="center"
58+
whiteSpace="pre-wrap"
59+
variant={textVariant}
60+
>
61+
{message}
62+
</Text>
63+
)}
6264
{children}
6365
</Flex>
6466
);
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
import type { ChainConfig } from "@alleslabs/shared";
2+
3+
export const DEFAULT_WASM_CONFIG: ChainConfig["features"]["wasm"] = {
4+
enabled: true,
5+
storeCodeMaxFileSize: 1024 * 1024 * 2,
6+
clearAdminGas: 1000000,
7+
};
8+
9+
export const DEFAULT_MOVE_CONFIG: ChainConfig["features"]["move"] = {
10+
enabled: true,
11+
moduleMaxFileSize: 1024 * 1024,
12+
};
13+
14+
export const DEFAULT_POOL_CONFIG: ChainConfig["features"]["pool"] = {
15+
enabled: false,
16+
};
17+
18+
export const DEFAULT_PUBLIC_PROJECT_CONFIG: ChainConfig["features"]["publicProject"] =
19+
{
20+
enabled: true,
21+
};
22+
23+
export const DEFAULT_GOV_CONFIG: ChainConfig["features"]["gov"] = {
24+
enabled: false,
25+
};
26+
27+
export const DEFAULT_WALLET_CONFIG: ChainConfig["wallets"] = [
28+
"initia",
29+
"keplr",
30+
];
31+
32+
export const DEFAULT_BECH32_PREFIX = "init";
33+
34+
export const DEFAULT_GAS = {
35+
gasPrice: 0.15,
36+
fixed_min_gas_price: 0.15,
37+
low_gas_price: 0.15,
38+
average_gas_price: 0.15,
39+
high_gas_price: 0.15,
40+
gasAdjustment: 1.5,
41+
maxGasLimit: 25000000,
42+
};
43+
44+
export const DEFAULT_SLIP44 = 118;
45+
46+
export const DEFAULT_DENOM = "umin";
47+
48+
export const DEFAULT_CUSTOM_MINITIA_NETWORK: Pick<
49+
ChainConfig,
50+
"tier" | "chain" | "network_type" | "extra"
51+
> = {
52+
tier: "sequencer",
53+
chain: "initia",
54+
network_type: "local",
55+
extra: {
56+
isValidatorExternalLink: null,
57+
layer: "2",
58+
},
59+
};

src/lib/pages/custom-network/json/index.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { useLocalChainConfigStore } from "lib/providers/store";
2222

2323
export const AddNetworkJson = observer(() => {
2424
const navigate = useInternalNavigate();
25-
const { isChainIdExist, isPrettyNameExist } = useChainConfigs();
25+
const { isChainIdExist } = useChainConfigs();
2626
const { addLocalChainConfig } = useLocalChainConfigStore();
2727
const [file, setFile] = useState<File | null>(null);
2828
const [json, setJson] = useState<ChainConfig | null>(null);
@@ -63,10 +63,7 @@ export const AddNetworkJson = observer(() => {
6363

6464
setJson(validatedData);
6565

66-
if (
67-
isChainIdExist(validatedData.chainId) ||
68-
isPrettyNameExist(validatedData.prettyName)
69-
) {
66+
if (isChainIdExist(validatedData.chainId)) {
7067
duplicatedModalOnOpen();
7168

7269
return;
@@ -84,10 +81,8 @@ export const AddNetworkJson = observer(() => {
8481

8582
if (isChainIdExist(json.chainId)) return json.chainId;
8683

87-
if (isPrettyNameExist(json.prettyName)) return json.prettyName;
88-
8984
return "";
90-
}, [isChainIdExist, isPrettyNameExist, json]);
85+
}, [isChainIdExist, json]);
9186

9287
return (
9388
<>

0 commit comments

Comments
 (0)