Skip to content

Commit

Permalink
chore: installl cbor-js
Browse files Browse the repository at this point in the history
  • Loading branch information
iamcrazycoder committed Nov 8, 2023
1 parent 089683e commit 71f90a7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"bitcoinjs-lib": "6.1.3",
"bitcoinjs-message": "2.2.0",
"buffer-reverse": "^1.0.1",
"cbor-js": "^0.1.0",
"cross-fetch": "3.1.6",
"ecpair": "2.1.0",
"ethers": "6.6.1",
Expand Down
5 changes: 5 additions & 0 deletions packages/sdk/src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ type MetaMask = {
declare module "buffer-reverse" {
export = (_: Buffer): Buffer => {}
}

declare module "cbor-js" {
function encode(object: NestedObject): ArrayBuffer
function decode(data: ArrayBuffer): NestedObject
}
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 71f90a7

Please sign in to comment.