Skip to content

Commit

Permalink
chore: increase version
Browse files Browse the repository at this point in the history
  • Loading branch information
troykessler committed Jun 19, 2024
1 parent 437b770 commit f1d2b2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions common/coins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ Here are some examples on how to use the coins sdk:
Arithmetic methods:

```ts
new Coins("1acoin,2bcoin").add("3ccoin").mul(2).toString()
new Coins("1acoin,2bcoin").add({denom: "ccoin", amount: "3"}).mul(2).toString()
-> "2acoin,4bcoin,6ccoin"

new Coins("1acoin,2bcoin,4ccoin").sub("1acoin").div(2).toArray()
-> [{"denom": "bcoin", amount: "1"}, {"denom": "ccoin", amount: "2"}]
-> [{denom: "bcoin", amount: "1"}, {denom: "ccoin", amount: "2"}]
```

Checks and info methods:
Expand Down Expand Up @@ -53,7 +53,7 @@ myCoins.max("1bcoin,1ccoin").toString()
Comparison methods:

```ts
const myCoins = new Coins({"denom": "bcoin", amount: "1"}, {"denom": "ccoin", amount: "2"})
const myCoins = new Coins({denom: "bcoin", amount: "1"}, {denom: "ccoin", amount: "2"})

new Coins("1acoin,2bcoin,3ccoin").isAllGT(myCoins)
-> true
Expand Down
2 changes: 1 addition & 1 deletion common/coins/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kyvejs/coins",
"version": "1.0.0",
"version": "1.0.1",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
Expand Down

0 comments on commit f1d2b2c

Please sign in to comment.