Skip to content

Commit

Permalink
Merge pull request #630 from alleslabs/release/v1.3.0
Browse files Browse the repository at this point in the history
Cut release v1.3.0
  • Loading branch information
evilpeach authored Nov 22, 2023
2 parents d2b135a + a22e86a commit 4cf1fb7
Show file tree
Hide file tree
Showing 643 changed files with 31,678 additions and 13,189 deletions.
86 changes: 86 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,90 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Bug fixes

## v1.3.0

### Features

- [#629](https://github.com/alleslabs/celatone-frontend/pull/629) Add Amplitude for save account,to save code page count, and to save
- [#628](https://github.com/alleslabs/celatone-frontend/pull/628) Add Amplitude for contract states, pagination and contract details
- [#620](https://github.com/alleslabs/celatone-frontend/pull/620) Add hex address in save account feature in initia
- [#618](https://github.com/alleslabs/celatone-frontend/pull/618) Add save account feature in account detail page
- [#616](https://github.com/alleslabs/celatone-frontend/pull/616) Add table for saved accounts and add save, remove and edit modal
- [#613](https://github.com/alleslabs/celatone-frontend/pull/613) Add saved accounts modal ui
- [#611](https://github.com/alleslabs/celatone-frontend/pull/611) Add saved accounts page
- [#608](https://github.com/alleslabs/celatone-frontend/pull/608) Deprecate stone 10
- [#601](https://github.com/alleslabs/celatone-frontend/pull/601) Add modules in public project
- [#581](https://github.com/alleslabs/celatone-frontend/pull/581) Support new move input i.e., object, fixed_point, and decimal
- [#583](https://github.com/alleslabs/celatone-frontend/pull/583) Support Move code snippets
- [#585](https://github.com/alleslabs/celatone-frontend/pull/585) Add Initia Faucet
- [#562](https://github.com/alleslabs/celatone-frontend/pull/562) Support searching with hex address and module path
- [#572](https://github.com/alleslabs/celatone-frontend/pull/572) Wireup module publish details
- [#558](https://github.com/alleslabs/celatone-frontend/pull/558) Wireup module transaction history table
- [#558](https://github.com/alleslabs/celatone-frontend/pull/558) Wireup module transaction history table
- [#556](https://github.com/alleslabs/celatone-frontend/pull/556) Fully functional deploy script page
- [#550](https://github.com/alleslabs/celatone-frontend/pull/550) Add modules and resources in account detail
- [#540](https://github.com/alleslabs/celatone-frontend/pull/540) Wireup publish module tx
- [#544](https://github.com/alleslabs/celatone-frontend/pull/544) Show module source code if available
- [#534](https://github.com/alleslabs/celatone-frontend/pull/534) Wire up initia execute function
- [#533](https://github.com/alleslabs/celatone-frontend/pull/533) Wire up initia view function
- [#536](https://github.com/alleslabs/celatone-frontend/pull/536) Add publish module validation and decode query
- [#524](https://github.com/alleslabs/celatone-frontend/pull/524) Add initia abi form
- [#530](https://github.com/alleslabs/celatone-frontend/pull/530) Publish module component state wireup and add leaflet
- [#521](https://github.com/alleslabs/celatone-frontend/pull/521) Initia module interaction function panel and selected function info accordion
- [#515](https://github.com/alleslabs/celatone-frontend/pull/515) Initia select module drawer wireup
- [#494](https://github.com/alleslabs/celatone-frontend/pull/494) Initia select module drawer UI
- [#490](https://github.com/alleslabs/celatone-frontend/pull/490) Add initia module interaction page
- [#488](https://github.com/alleslabs/celatone-frontend/pull/488) Add initia navigation and sidebar
- [#524](https://github.com/alleslabs/celatone-frontend/pull/524) Refactor contract detail page and add contract states

### Improvements

- [#627](https://github.com/alleslabs/celatone-frontend/pull/627) Add responsive for published event in module detail
- [#625](https://github.com/alleslabs/celatone-frontend/pull/625) Fix abi empty vector serialization
- [#605](https://github.com/alleslabs/celatone-frontend/pull/605) Apply singleton class style to Amplitude structure
- [#591](https://github.com/alleslabs/celatone-frontend/pull/591) Bump initia.js due to decimal serialization and dynamic buffer
- [#564](https://github.com/alleslabs/celatone-frontend/pull/564) Handle multi bond denoms data in the delegation section
- [#593](https://github.com/alleslabs/celatone-frontend/pull/593) Refactor submit button to a common component
- [#574](https://github.com/alleslabs/celatone-frontend/pull/574) Add min height to wasm page container to properly align footer
- [#569](https://github.com/alleslabs/celatone-frontend/pull/569) Add move config to dev shortcuts in homepage
- [#559](https://github.com/alleslabs/celatone-frontend/pull/559) Restructure and refactor responsive tables
- [#549](https://github.com/alleslabs/celatone-frontend/pull/549) Add move tx filer options
- [#553](https://github.com/alleslabs/celatone-frontend/pull/553) Use Cmd on Mac OS while Ctrl on others
- [#548](https://github.com/alleslabs/celatone-frontend/pull/548) Handle interaction page query param and refactor page
- [#546](https://github.com/alleslabs/celatone-frontend/pull/546) Handle 404 on the current selected chain
- [#586](https://github.com/alleslabs/celatone-frontend/pull/586) Add shortcut for contract states
- [#598](https://github.com/alleslabs/celatone-frontend/pull/598) Display content field for submit proposal tx details
- [#587](https://github.com/alleslabs/celatone-frontend/pull/587) Make block row clickable
- [#579](https://github.com/alleslabs/celatone-frontend/pull/579) Improve ux writing for recent items page
- [#546](https://github.com/alleslabs/celatone-frontend/pull/546) Handle 404 on the current selected chain

### Bug fixes

- [#623](https://github.com/alleslabs/celatone-frontend/pull/623) Fix abi empty vector serialization
- [#619](https://github.com/alleslabs/celatone-frontend/pull/619) Fix observer, logo and disable delegation in Account Detail Page
- [#617](https://github.com/alleslabs/celatone-frontend/pull/617) Fix textwrap module path on module detail, framer motion incorrect transition prop, loadingoverlay not centered
- [#610](https://github.com/alleslabs/celatone-frontend/pull/610) Remove `.at()` from code
- [#615](https://github.com/alleslabs/celatone-frontend/pull/615) Fix useEffect on pool page
- [#612](https://github.com/alleslabs/celatone-frontend/pull/612) Add saved accounts page
- [#614](https://github.com/alleslabs/celatone-frontend/pull/614) Disabled saved account for now
- [#607](https://github.com/alleslabs/celatone-frontend/pull/607) Fix mintscan tracking in internal
- [#604](https://github.com/alleslabs/celatone-frontend/pull/604) Fix single delegation total card zero state
- [#603](https://github.com/alleslabs/celatone-frontend/pull/603) Dynamically change returned data by isWasm, isMove
- [#602](https://github.com/alleslabs/celatone-frontend/pull/602) Fix package version client error
- [#599](https://github.com/alleslabs/celatone-frontend/pull/599) Fix getNavigationUrl to support move
- [#590](https://github.com/alleslabs/celatone-frontend/pull/590) Fix upload script various bugs
- [#594](https://github.com/alleslabs/celatone-frontend/pull/594) LP assets filtering and delegation ui/ux improvement
- [#584](https://github.com/alleslabs/celatone-frontend/pull/584) Throw an error when tx failed on postTx
- [#555](https://github.com/alleslabs/celatone-frontend/pull/555) Rewrite publish status resolver into an effect
- [#557](https://github.com/alleslabs/celatone-frontend/pull/557) Fix see module ux writing and policy modal
- [#554](https://github.com/alleslabs/celatone-frontend/pull/554) Fix and improve ui alignment, cta, and publish error
- [#551](https://github.com/alleslabs/celatone-frontend/pull/551) Fix various bugs on the interaction page
- [#547](https://github.com/alleslabs/celatone-frontend/pull/547) Fix form null and sort modules when submit an address
- [#543](https://github.com/alleslabs/celatone-frontend/pull/543) Fix Initia testnet chain config
- [#597](https://github.com/alleslabs/celatone-frontend/pull/597) Fix pool txs row chevron and copy icon, add replace navigation option to public project details page
- [#563](https://github.com/alleslabs/celatone-frontend/pull/563) Order by contract latest history timestamp in account contract instances
- [#560](https://github.com/alleslabs/celatone-frontend/pull/560) Fix pool type alignment in pool card

## v1.2.0

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

### Improvements

- [#596](https://github.com/alleslabs/celatone-frontend/pull/596) Show parameter changes field for ParameterChangeProposal Tx
- [#575](https://github.com/alleslabs/celatone-frontend/pull/575) Support message suggestion for contract from Sylvia framework
- [#564](https://github.com/alleslabs/celatone-frontend/pull/564) Update cosmjs version to latest and bump terra testnet gas price
- [#540](https://github.com/alleslabs/celatone-frontend/pull/540) Add open proposal configuration
Expand Down Expand Up @@ -114,6 +199,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Bug fixes

- [#626](https://github.com/alleslabs/celatone-frontend/pull/626) Fix handle validator image
- [#570](https://github.com/alleslabs/celatone-frontend/pull/570) Use native tokens in attached funds
- [#567](https://github.com/alleslabs/celatone-frontend/pull/567) Fix attached funds in code snippet
- [#539](https://github.com/alleslabs/celatone-frontend/pull/539) Fix JSON schema upload text
Expand Down
2 changes: 1 addition & 1 deletion codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { CodegenConfig } from "@graphql-codegen/cli";
* @remarks Update schema when it is needed
*/
const config: CodegenConfig = {
schema: "https://osmo-test-5-graphql.alleslabs.dev/v1/graphql",
schema: "http://localhost:8080/v1/graphql",
documents: ["src/**/*.tsx", "src/**/*.ts"],
ignoreNoDocuments: true, // for better experience with the watcher
generates: {
Expand Down
15 changes: 15 additions & 0 deletions global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
export {};

declare global {
interface Array<T> {
findLastIndex(
predicate: (value: T, index: number, obj: T[]) => unknown,
thisArg?: any
): number;
findLast(
predicate: (value: T, index: number, obj: T[]) => unknown,
thisArg?: any
): T | undefined;
}
}
50 changes: 50 additions & 0 deletions hasura-schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
version: "3.6"
services:
postgres:
image: postgres:15
restart: always
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgrespassword
graphql-engine:
image: hasura/graphql-engine:v2.33.0
ports:
- "8080:8080"
restart: always
environment:
## postgres database to store Hasura metadata
HASURA_GRAPHQL_METADATA_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/postgres
## this env var can be used to add the above postgres database to Hasura as a data source. this can be removed/updated based on your needs
PG_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/postgres
## enable the console served by server
HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set to "false" to disable console
## enable debugging mode. It is recommended to disable this in production
HASURA_GRAPHQL_DEV_MODE: "true"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
## uncomment next line to run console offline (i.e load console assets from server instead of CDN)
# HASURA_GRAPHQL_CONSOLE_ASSETS_DIR: /srv/console-assets
## uncomment next line to set an admin secret
# HASURA_GRAPHQL_ADMIN_SECRET: myadminsecretkey
HASURA_GRAPHQL_METADATA_DEFAULTS: '{"backend_configs":{"dataconnector":{"athena":{"uri":"http://data-connector-agent:8081/api/v1/athena"},"mariadb":{"uri":"http://data-connector-agent:8081/api/v1/mariadb"},"mysql8":{"uri":"http://data-connector-agent:8081/api/v1/mysql"},"oracle":{"uri":"http://data-connector-agent:8081/api/v1/oracle"},"snowflake":{"uri":"http://data-connector-agent:8081/api/v1/snowflake"}}}}'
depends_on:
data-connector-agent:
condition: service_healthy
data-connector-agent:
image: hasura/graphql-data-connector:v2.33.0
restart: always
ports:
- 8081:8081
environment:
QUARKUS_LOG_LEVEL: ERROR # FATAL, ERROR, WARN, INFO, DEBUG, TRACE
## https://quarkus.io/guides/opentelemetry#configuration-reference
QUARKUS_OPENTELEMETRY_ENABLED: "false"
## QUARKUS_OPENTELEMETRY_TRACER_EXPORTER_OTLP_ENDPOINT: http://jaeger:4317
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8081/api/v1/athena/health"]
interval: 5s
timeout: 10s
retries: 5
start_period: 5s
volumes:
db_data:
56 changes: 34 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "celatone",
"version": "1.2.0",
"version": "1.3.0",
"author": "Alles Labs",
"scripts": {
"dev": "next dev",
Expand All @@ -18,29 +18,38 @@
"push-release": "git push --follow-tags origin main",
"prepare": "husky install"
},
"resolutions": {
"@interchain-ui/react": "1.11.4",
"chakra-react-select": "^4.7.0"
},
"dependencies": {
"@amplitude/analytics-browser": "^1.8.0",
"@amplitude/marketing-analytics-browser": "^1.0.7",
"@chain-registry/types": "^0.13.1",
"@amplitude/analytics-browser": "^2.3.3",
"@amplitude/analytics-types": "^2.3.0",
"@amplitude/plugin-user-agent-enrichment-browser": "^1.0.0",
"@chain-registry/types": "0.17.0",
"@chakra-ui/anatomy": "^2.1.0",
"@chakra-ui/card": "^2.1.1",
"@chakra-ui/icons": "^2.0.11",
"@chakra-ui/react": "2.3.6",
"@chakra-ui/styled-system": "^2.3.5",
"@cosmjs/cosmwasm-stargate": "^0.31.1",
"@cosmjs/crypto": "^0.31.1",
"@cosmjs/encoding": "^0.31.1",
"@cosmjs/proto-signing": "^0.31.1",
"@cosmjs/stargate": "^0.31.1",
"@cosmos-kit/compass": "2.3.0",
"@cosmos-kit/core": "2.5.0",
"@cosmos-kit/keplr": "2.3.0",
"@cosmos-kit/react": "2.6.0",
"@cosmos-kit/station": "2.3.0",
"@cosmjs/cosmwasm-stargate": "0.31.3",
"@cosmjs/crypto": "0.31.3",
"@cosmjs/encoding": "0.31.3",
"@cosmjs/proto-signing": "0.31.3",
"@cosmjs/stargate": "0.31.3",
"@cosmos-kit/compass": "2.4.5",
"@cosmos-kit/core": "2.7.4",
"@cosmos-kit/keplr": "2.4.6",
"@cosmos-kit/react": "2.9.5",
"@cosmos-kit/station": "2.4.4",
"@emotion/react": "^11",
"@emotion/styled": "^11",
"@graphql-codegen/cli": "^2.13.12",
"@graphql-codegen/client-preset": "^1.1.4",
"@initia/initia.js": "0.1.12",
"@initia/initia.proto": "0.1.12",
"@interchain-ui/react": "1.11.4",
"@monaco-editor/react": "^4.6.0",
"@rjsf/chakra-ui": "v5.0.0-beta.10",
"@rjsf/core": "v5.0.0-beta.10",
"@rjsf/utils": "v5.0.0-beta.10",
Expand All @@ -55,10 +64,11 @@
"axios": "^1.1.3",
"big.js": "^6.2.1",
"camelcase": "^7.0.0",
"chain-registry": "^1.19.0",
"chain-registry": "1.20.0",
"chakra-react-select": "^4.7.0",
"cosmjs-types": "^0.7.2",
"dayjs": "^1.11.6",
"file-saver": "^2.0.5",
"framer-motion": "^7.6.12",
"graphql": "^16.6.0",
"graphql-request": "^5.0.0",
Expand All @@ -71,6 +81,7 @@
"mobx": "^6.6.2",
"mobx-persist-store": "^1.1.2",
"mobx-react-lite": "^3.4.0",
"monaco-editor": "^0.44.0",
"next": "^13.0.0",
"next-seo": "^5.8.0",
"node-gzip": "^1.1.2",
Expand All @@ -89,8 +100,9 @@
"uuid": "^9.0.0"
},
"devDependencies": {
"@commitlint/config-conventional": "^17.1.0",
"@commitlint/cz-commitlint": "^17.1.2",
"@commitlint/config-conventional": "^18.1.0",
"@commitlint/cz-commitlint": "^18.2.0",
"@types/file-saver": "^2.0.5",
"@types/jest": "^29.4.0",
"@types/node-gzip": "^1.1.0",
"@types/react": "^18.0.21",
Expand All @@ -99,18 +111,18 @@
"commitizen": "^4.2.5",
"commitlint": "^17.1.2",
"cross-env": "^7.0.3",
"eslint": "^8.25.0",
"eslint-config-next": "^13.0.0",
"eslint-config-sznm": "^1.0.0",
"eslint": "^8.52.0",
"eslint-config-next": "^14.0.0",
"eslint-config-sznm": "^2.0.2",
"husky": "^8.0.1",
"jest": "^29.5.0",
"lint-staged": "^13.0.3",
"mockdate": "^3.0.5",
"next-sitemap": "^3.1.25",
"prettier": "^2.7.1",
"prettier": "^3.0.3",
"standard-version": "^9.5.0",
"ts-jest": "^29.0.5",
"typescript": "^4.9.5"
"typescript": "^5.1.6"
},
"packageManager": "[email protected]"
}
Binary file added public/PilatWide-Bold.woff2
Binary file not shown.
Binary file added public/font/PilatWide-Bold.woff
Binary file not shown.
Binary file added public/font/PilatWide-Bold.woff2
Binary file not shown.
8 changes: 8 additions & 0 deletions public/font/pilatwide.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* TODO: add another font face later */
@font-face {
font-family: "Pilat Wide";
src: url("./PilatWide-Bold.woff");
src: url("./PilatWide-Bold.woff2");
font-weight: 600;
font-style: normal;
}
6 changes: 6 additions & 0 deletions src/config/chain/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export const DEFAULT_CHAIN_CONFIG: ChainConfig = {
wasm: {
enabled: false,
},
move: {
enabled: false,
},
pool: {
enabled: false,
},
Expand All @@ -25,6 +28,9 @@ export const DEFAULT_CHAIN_CONFIG: ChainConfig = {
gov: {
enabled: false,
},
nft: {
enabled: false,
},
},
gas: {
gasPrice: {
Expand Down
2 changes: 2 additions & 0 deletions src/config/chain/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { INITIA_CHAIN_CONFIGS } from "./initia";
import { NEUTRON_CHAIN_CONFIGS } from "./neutron";
import { OSMOSIS_CHAIN_CONFIGS } from "./osmosis";
import { SEI_CHAIN_CONFIGS } from "./sei";
Expand All @@ -14,4 +15,5 @@ export const CHAIN_CONFIGS: ChainConfigs = {
...NEUTRON_CHAIN_CONFIGS,
...STARGAZE_CHAIN_CONFIGS,
...TERRA_CHAIN_CONFIGS,
...INITIA_CHAIN_CONFIGS,
};
55 changes: 55 additions & 0 deletions src/config/chain/initia.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import { wallets as keplrWallets } from "@cosmos-kit/keplr";

import type { ChainConfigs } from "./types";

export const INITIA_CHAIN_CONFIGS: ChainConfigs = {
"stone-11": {
chain: "initia",
registryChainName: "initiatestnet11",
prettyName: "Initia Testnet 11",
lcd: "https://stone-rest.initia.tech",
rpc: "https://stone-rpc.initia.tech:443",
indexer: "https://stone-11-graphql.alleslabs.dev/v1/graphql",
api: "https://celatone-api.alleslabs.dev",
wallets: [...keplrWallets],
features: {
faucet: {
enabled: true,
url: process.env.NEXT_PUBLIC_INITIA_TESTNET_FAUCET_URL ?? "",
},
wasm: {
enabled: false,
},
move: {
enabled: true,
moduleMaxFileSize: 1_048_576,
decodeApi: "https://initia-api-jiod42ec2q-as.a.run.app/decode_module",
},
pool: {
enabled: false,
},
publicProject: {
enabled: true,
},
gov: {
enabled: true,
},
nft: {
enabled: true,
},
},
gas: {
gasPrice: {
tokenPerGas: 0.151,
denom: "uinit",
},
gasAdjustment: 1.5,
maxGasLimit: 25_000_000,
},
explorerLink: {
validator: "https://app.initia.tech/validator",
proposal: "https://app.initia.tech/proposal",
},
extra: {},
},
};
Loading

5 comments on commit 4cf1fb7

@vercel
Copy link

@vercel vercel bot commented on 4cf1fb7 Nov 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 4cf1fb7 Nov 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 4cf1fb7 Nov 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 4cf1fb7 Nov 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 4cf1fb7 Nov 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.