Skip to content

coinhall/injective-ts-sdk-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bundling Test

@injectivelabs/sdk-ts

import { MsgSend } from "@injectivelabs/sdk-ts";

console.log(
  MsgSend.fromJSON({
    amount: {
      amount: "1",
      denom: "",
    },
    srcInjectiveAddress: "",
    dstInjectiveAddress: "",
  })
);
pnpm esbuild ./src/injectivesdk.ts --outdir='.tmp' --bundle --minify --platform='node'
# .tmp/injectivesdk.js  8.2mb

pnpm esbuild ./src/injectivesdk.ts --outdir='.tmp' --bundle --minify --platform='browser'
# errors out without any output

cosmes

import { MsgSend } from "cosmes/client";

console.log(
  new MsgSend({
    amount: [
      {
        amount: "1",
        denom: "",
      },
    ],
    fromAddress: "",
    toAddress: "",
  })
);
pnpm esbuild ./src/cosmes.ts --outdir='.tmp' --bundle --minify --platform='node'
# .tmp/cosmes.js  156.2kb

pnpm esbuild ./src/cosmes.ts --outdir='.tmp' --bundle --minify --platform='browser'
# .tmp/cosmes.js  39.1kb

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published