@tari-project/tarijs-types 0.14.1 → 0.14.3

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.
@@ -1,8 +1,8 @@
1
- import { CompressedElgamalVerifiableBalance } from "@tari-project/typescript-bindings";
1
+ import { ElgamalVerifiableBalanceBytes } from "@tari-project/typescript-bindings";
2
2
  export interface ConfidentialOutput {
3
3
  commitment: string;
4
4
  stealthPublicNonce: string;
5
5
  encrypted_data: Array<number>;
6
6
  minimumValuePromise: number;
7
- viewableBalance?: CompressedElgamalVerifiableBalance;
7
+ viewableBalance?: ElgamalVerifiableBalanceBytes;
8
8
  }
package/dist/index.d.ts CHANGED
@@ -14,6 +14,6 @@ export { TransactionStatus, transactionStatusFromStr } from "./TransactionStatus
14
14
  export { WorkspaceArg } from "./Workspace";
15
15
  export { ListAccountNftFromBalancesRequest } from "./ListAccountNftFromBalancesRequest";
16
16
  export { Network } from "./network";
17
- export { AccountData, GetSubstateRequest, ListNftsRequest, ListNftsResponse, ListSubstatesRequest, ListSubstatesResponse, ReqSubstate, SubmitTransactionRequest, Substate, SubstateMetadata, TemplateDefinition, VaultBalances, VaultData, } from "./signer";
17
+ export { AccountData, GetSubstateRequest, ListNftsRequest, ListNftsResponse, ListSubstatesRequest, ListSubstatesResponse, ReqSubstate, SubmitTransactionRequest, Substate, SubstateMetadata, TemplateDefinition, RevealedBalances, VaultData, } from "./signer";
18
18
  export { convertHexStringToU256Array, convertStringToTransactionStatus, convertU256ToHexString, createNftAddressFromResource, createNftAddressFromToken, getRejectReasonFromTransactionResult, getSubstateDiffFromTransactionResult, jrpcPermissionToString, rejectReasonToString, shortenString, shortenSubstateId, stringToSubstateId, substateIdToString, fromHexString, toHexString, convertTaggedValue, getCborValueByPath, parseCbor, getSubstateValueFromUpSubstates, getComponentsForTemplate, txResultCheck, BinaryTag, CborValue, SimpleTransactionResult, SimpleSubstateDiff, AnySubstate, DownSubstate, UpSubstate, splitOnce, } from "./helpers";
19
19
  export { ACCOUNT_TEMPLATE_ADDRESS, XTR, TARI_RESOURCE } from "./consts";
package/dist/signer.d.ts CHANGED
@@ -23,12 +23,13 @@ export interface AccountData {
23
23
  export interface VaultData {
24
24
  type: string;
25
25
  balance: number;
26
+ confidential_balance: number;
26
27
  resource_address: string;
27
28
  token_symbol: string;
28
29
  vault_id: string;
29
30
  }
30
- export interface VaultBalances {
31
- balances: Map<string, number | null>;
31
+ export interface RevealedBalances {
32
+ balances: Map<string, bigint | null>;
32
33
  }
33
34
  export type TemplateDefinition = TemplateDef;
34
35
  export interface Substate {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tari-project/tarijs-types",
3
- "version": "0.14.1",
3
+ "version": "0.14.3",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -10,7 +10,7 @@
10
10
  "author": "The Tari Community",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@tari-project/typescript-bindings": ">=1.17.0",
13
+ "@tari-project/typescript-bindings": ">=1.17.2",
14
14
  "@thames/monads": "^0.7.0"
15
15
  },
16
16
  "devDependencies": {