Skip to content

Commit

Permalink
[FRE-1137, FRE-1131, FRE-1136] Reduce bundle size (#370)
Browse files Browse the repository at this point in the history
Co-authored-by: Nur Fikri <[email protected]>
  • Loading branch information
ericHgorski and codingki authored Oct 30, 2024
1 parent f892aa6 commit 7a22618
Show file tree
Hide file tree
Showing 25 changed files with 13,211 additions and 853 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"submodule:init": "git submodule init",
"submodule:update": "git submodule update",
"release": "yarn run build && yarn workspace @skip-go/widget run pre && changeset publish",
"swagger": "npx open-swagger-ui --open docs/swagger.yml"
"swagger": "npx open-swagger-ui --open docs/swagger.yml",
"postinstall": "yarn run submodule"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
Expand Down Expand Up @@ -69,7 +70,7 @@
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"keccak256": "1.x",
"kujira.js": "0.9.x",
"kujira.js": "^1.0.74",
"minimatch": "^9.0.3",
"msw": "^1.2.3",
"p-map": "^7.0.2",
Expand Down
39 changes: 1 addition & 38 deletions packages/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,41 +20,4 @@ yarn add @skip-go/client

Follow the [Getting Started](https://docs.skip.build/go/client/getting-started) guide to begin your integration.

## Development

```bash
# clone repository
git clone https://github.com/skip-mev/skip-go.git
cd skip-go/packages/client

# prepare submodules
git submodule update --init --recursive

# install dependencies
npm install

# run watch server to build on changes
npm -w @skip-go/client run watch

# build packages
npm run build
```


## Unit Tests

```bash
# run unit tests
npm run test

# run unit tests in watch mode
npm run test -- --watch

# run unit tests with coverage
npm run test -- --coverage
```

## Documentation

- [Skip Go API documentation](https://docs.skip.build/go)
- [Skip Go API Reference](https://docs.skip.build/go/api-reference/prod/info/get-v2infochains)
Example: [Skip go client example](https://github.com/skip-mev/skip-go-example)
26 changes: 13 additions & 13 deletions packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@skip-go/client",
"description": "JavaScript SDK for Skip Go API",
"version": "0.10.3",
"version": "0.11.0-alpha.8",
"repository": "https://github.com/skip-mev/skip-go",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -12,7 +12,7 @@
],
"sideEffects": false,
"scripts": {
"build": "tsup",
"build": "yarn run codegen && tsup",
"clean": "rm -rf dist",
"codegen": "node scripts/codegen.js",
"e2e:clean": "make stop clean",
Expand All @@ -36,6 +36,15 @@
"proxy-from-env": "^1.1.0",
"vitest": "^1.2.2"
},
"peerDependencies": {
"@initia/initia-registry": "^0.1.16",
"@injectivelabs/core-proto-ts": "0.0.21",
"@injectivelabs/sdk-ts": "1.14.5",
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/web3.js": "^1.91.1",
"cosmjs-types": "^0.9.0",
"viem": "2.x"
},
"dependencies": {
"@cosmjs/amino": "0.32.4",
"@cosmjs/cosmwasm-stargate": "0.32.4",
Expand All @@ -44,18 +53,9 @@
"@cosmjs/proto-signing": "0.32.4",
"@cosmjs/stargate": "0.32.4",
"@cosmjs/tendermint-rpc": "0.32.4",
"@initia/initia-registry": "latest",
"@injectivelabs/core-proto-ts": "0.0.21",
"@injectivelabs/sdk-ts": "1.14.5",
"@keplr-wallet/unit": "^0.12.67",
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/web3.js": "^1.91.1",
"@keplr-wallet/unit": "^0.12.143",
"axios": "1.x",
"chain-registry": "latest",
"cosmjs-types": "0.8.0",
"keccak256": "1.x",
"kujira.js": "0.9.x",
"viem": "2.x"
"keccak256": "1.x"
},
"publishConfig": {
"access": "public"
Expand Down
1 change: 0 additions & 1 deletion packages/client/parser.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/client/parser.js

This file was deleted.

Loading

0 comments on commit 7a22618

Please sign in to comment.