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

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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @ledgerhq/coin-canton
2
2
 
3
+ ## 0.2.2-nightly.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`87617a9`](https://github.com/LedgerHQ/ledger-live/commit/87617a9930be43a6cdbc5cc5711cc24b00309184), [`d6a6a94`](https://github.com/LedgerHQ/ledger-live/commit/d6a6a949d45fdd2f97f15842c808bf6d1058403f)]:
8
+ - @ledgerhq/live-env@2.15.0-nightly.0
9
+ - @ledgerhq/types-live@6.82.0-nightly.0
10
+ - @ledgerhq/coin-framework@6.2.0-nightly.0
11
+ - @ledgerhq/cryptoassets@13.25.1-nightly.0
12
+ - @ledgerhq/live-network@2.0.16-nightly.0
13
+
3
14
  ## 0.2.1
4
15
 
5
16
  ### 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.0",
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",
104
+ "@ledgerhq/coin-framework": "^6.2.0-nightly.0",
105
+ "@ledgerhq/cryptoassets": "^13.25.1-nightly.0",
106
106
  "@ledgerhq/devices": "8.5.0",
107
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"
108
+ "@ledgerhq/live-env": "^2.15.0-nightly.0",
109
+ "@ledgerhq/live-network": "^2.0.16-nightly.0",
110
+ "@ledgerhq/types-live": "^6.82.0-nightly.0"
111
111
  },
112
112
  "devDependencies": {
113
113
  "@types/invariant": "^2.2.37",
@@ -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
  }