@ledgerhq/coin-canton 0.2.1 → 0.2.2-nightly.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.js CHANGED
@@ -13,6 +13,7 @@ module.exports = {
13
13
  },
14
14
  ],
15
15
  rules: {
16
+ eqeqeq: ["error"],
16
17
  "no-console": ["error", { allow: ["warn", "error"] }],
17
18
  "@typescript-eslint/no-empty-function": "off",
18
19
  "no-empty-pattern": "off",
@@ -1,4 +1,4 @@
1
1
 
2
- > @ledgerhq/coin-canton@0.2.1 build /home/runner/work/ledger-live/ledger-live/libs/coin-modules/coin-canton
2
+ > @ledgerhq/coin-canton@0.2.2-nightly.0 build /home/runner/work/ledger-live/ledger-live/libs/coin-modules/coin-canton
3
3
  > tsc && tsc -m esnext --moduleResolution bundler --outDir lib-es
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @ledgerhq/coin-canton
2
2
 
3
+ ## 0.2.2-nightly.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#11454](https://github.com/LedgerHQ/ledger-live/pull/11454) [`212f772`](https://github.com/LedgerHQ/ledger-live/commit/212f772b17dc3db97009ebe62912f8f183c1ef2e) Thanks [@francois-guerin-ledger](https://github.com/francois-guerin-ledger)! - chore(coin-modules): add `eqeqeq` ESLint rule
8
+
9
+ - Updated dependencies [[`9fcc4eb`](https://github.com/LedgerHQ/ledger-live/commit/9fcc4eb5cd6e96e772daa154bd87ae374f925ddc), [`8936f39`](https://github.com/LedgerHQ/ledger-live/commit/8936f390edbe9cbc36ac6590b01562daf5c580e1), [`0356d19`](https://github.com/LedgerHQ/ledger-live/commit/0356d1904dbb5e856970fa7e7ebb206eed7b4c5d)]:
10
+ - @ledgerhq/coin-framework@6.2.0-nightly.1
11
+ - @ledgerhq/cryptoassets@13.26.0-nightly.1
12
+ - @ledgerhq/types-live@6.82.0-nightly.1
13
+ - @ledgerhq/errors@6.25.0-nightly.0
14
+ - @ledgerhq/live-env@2.15.0-nightly.1
15
+ - @ledgerhq/devices@8.5.1-nightly.0
16
+ - @ledgerhq/live-network@2.0.16-nightly.1
17
+
18
+ ## 0.2.2-nightly.0
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [[`87617a9`](https://github.com/LedgerHQ/ledger-live/commit/87617a9930be43a6cdbc5cc5711cc24b00309184), [`d6a6a94`](https://github.com/LedgerHQ/ledger-live/commit/d6a6a949d45fdd2f97f15842c808bf6d1058403f)]:
23
+ - @ledgerhq/live-env@2.15.0-nightly.0
24
+ - @ledgerhq/types-live@6.82.0-nightly.0
25
+ - @ledgerhq/coin-framework@6.2.0-nightly.0
26
+ - @ledgerhq/cryptoassets@13.25.1-nightly.0
27
+ - @ledgerhq/live-network@2.0.16-nightly.0
28
+
3
29
  ## 0.2.1
4
30
 
5
31
  ### Patch Changes
@@ -5,6 +5,6 @@ const node_1 = require("../../network/node");
5
5
  // Could be getAccountInfo so it is used in both bridge and api
6
6
  async function getBalance(address) {
7
7
  const accountInfo = await (0, node_1.getAccountInfo)(address);
8
- return [{ asset: { type: "native" }, value: BigInt(accountInfo.account_data.Balance) }];
8
+ return [{ asset: { type: "native" }, value: BigInt(accountInfo.account_data.Balance) }]; // TODO: add more info like spendableBalance, etc.
9
9
  }
10
10
  //# sourceMappingURL=getBalance.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getBalance.js","sourceRoot":"","sources":["../../../src/common-logic/account/getBalance.ts"],"names":[],"mappings":";;AAIA,gCAGC;AAND,6CAAoD;AAEpD,+DAA+D;AACxD,KAAK,UAAU,UAAU,CAAC,OAAe;IAC9C,MAAM,WAAW,GAAG,MAAM,IAAA,qBAAc,EAAC,OAAO,CAAC,CAAC;IAClD,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC1F,CAAC"}
1
+ {"version":3,"file":"getBalance.js","sourceRoot":"","sources":["../../../src/common-logic/account/getBalance.ts"],"names":[],"mappings":";;AAIA,gCAGC;AAND,6CAAoD;AAEpD,+DAA+D;AACxD,KAAK,UAAU,UAAU,CAAC,OAAe;IAC9C,MAAM,WAAW,GAAG,MAAM,IAAA,qBAAc,EAAC,OAAO,CAAC,CAAC;IAClD,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,kDAAkD;AAC7I,CAAC"}
@@ -2,6 +2,6 @@ import { getAccountInfo } from "../../network/node";
2
2
  // Could be getAccountInfo so it is used in both bridge and api
3
3
  export async function getBalance(address) {
4
4
  const accountInfo = await getAccountInfo(address);
5
- return [{ asset: { type: "native" }, value: BigInt(accountInfo.account_data.Balance) }];
5
+ return [{ asset: { type: "native" }, value: BigInt(accountInfo.account_data.Balance) }]; // TODO: add more info like spendableBalance, etc.
6
6
  }
7
7
  //# sourceMappingURL=getBalance.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getBalance.js","sourceRoot":"","sources":["../../../src/common-logic/account/getBalance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,+DAA+D;AAC/D,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,OAAe;IAC9C,MAAM,WAAW,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC;IAClD,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC1F,CAAC"}
1
+ {"version":3,"file":"getBalance.js","sourceRoot":"","sources":["../../../src/common-logic/account/getBalance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,+DAA+D;AAC/D,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,OAAe;IAC9C,MAAM,WAAW,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC;IAClD,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,kDAAkD;AAC7I,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/coin-canton",
3
- "version": "0.2.1",
3
+ "version": "0.2.2-nightly.1",
4
4
  "description": "Canton coin integration",
5
5
  "keywords": [
6
6
  "Ledger",
@@ -101,13 +101,13 @@
101
101
  "bignumber.js": "^9.1.2",
102
102
  "invariant": "^2.2.4",
103
103
  "rxjs": "^7.8.1",
104
- "@ledgerhq/coin-framework": "^6.1.0",
105
- "@ledgerhq/cryptoassets": "^13.25.0",
106
- "@ledgerhq/devices": "8.5.0",
107
- "@ledgerhq/errors": "^6.24.0",
108
- "@ledgerhq/live-env": "^2.14.0",
109
- "@ledgerhq/live-network": "^2.0.15",
110
- "@ledgerhq/types-live": "^6.81.0"
104
+ "@ledgerhq/coin-framework": "^6.2.0-nightly.1",
105
+ "@ledgerhq/cryptoassets": "^13.26.0-nightly.1",
106
+ "@ledgerhq/devices": "8.5.1-nightly.0",
107
+ "@ledgerhq/errors": "^6.25.0-nightly.0",
108
+ "@ledgerhq/live-env": "^2.15.0-nightly.1",
109
+ "@ledgerhq/live-network": "^2.0.16-nightly.1",
110
+ "@ledgerhq/types-live": "^6.82.0-nightly.1"
111
111
  },
112
112
  "devDependencies": {
113
113
  "@types/invariant": "^2.2.37",
@@ -117,7 +117,7 @@
117
117
  "jest": "^29.7.0",
118
118
  "ts-jest": "^29.1.1",
119
119
  "typescript": "^5.4.5",
120
- "@ledgerhq/types-cryptoassets": "^7.25.0",
120
+ "@ledgerhq/types-cryptoassets": "^7.26.0-nightly.0",
121
121
  "@ledgerhq/disable-network-setup": "^0.0.0"
122
122
  },
123
123
  "scripts": {
@@ -4,5 +4,5 @@ import { getAccountInfo } from "../../network/node";
4
4
  // Could be getAccountInfo so it is used in both bridge and api
5
5
  export async function getBalance(address: string): Promise<Balance[]> {
6
6
  const accountInfo = await getAccountInfo(address);
7
- return [{ asset: { type: "native" }, value: BigInt(accountInfo.account_data.Balance) }];
7
+ return [{ asset: { type: "native" }, value: BigInt(accountInfo.account_data.Balance) }]; // TODO: add more info like spendableBalance, etc.
8
8
  }