Skip to content

Commit

Permalink
Merge branch 'main' into feat/improve-regex
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker authored Jun 26, 2023
2 parents 16d28b3 + da291d7 commit f28bfa5
Show file tree
Hide file tree
Showing 15 changed files with 146 additions and 244 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
- utils `v0.0.18`
- nns-proto `v0.0.4`

## Breaking Changes

- move `convertStringToE8s` and `TokenAmount` from Nns package to `@dfinity/utils`
- retire `TokenAmount.toProto()`

## Features

- add a new utils function `decodePayment` to the `@dfinity/ledger` library. Useful to decode payment through QR code that contains target address and amount
Expand Down
147 changes: 25 additions & 122 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"node-fetch": "^3.3.1",
"prettier": "^2.8.7",
"prettier-plugin-organize-imports": "^3.2.2",
"semver": "^7.5.3",
"size-limit": "^8.2.4",
"text-encoding": "^0.7.0",
"ts-jest": "^29.1.0",
Expand Down Expand Up @@ -144,8 +145,12 @@
"ignore": [
"@dfinity/agent",
"@dfinity/candid",
"@dfinity/principal"
"@dfinity/principal",
"@dfinity/utils"
]
}
]
],
"overrides": {
"semver": "^7.5.3"
}
}
4 changes: 2 additions & 2 deletions packages/ic-management/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ The features are available through the class `ICMgmtCanister`. It has to be inst
e.g. fetching a token metadata.

```ts
import { ICMgmtCanister } from "@dfinity/ic-management";
import { ICManagementCanister } from "@dfinity/ic-management";
import { createAgent } from "@dfinity/utils";

const agent = await createAgent({
identity,
host: HOST,
});

const { canisterStatus } = ICMgmtCanister.create({
const { canisterStatus } = ICManagementCanister.create({
agent,
});

Expand Down
Loading

0 comments on commit f28bfa5

Please sign in to comment.