@meshtrade/api-old 1.53.0 → 1.55.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.
@@ -14,7 +14,6 @@ export enum InstrumentType {
14
14
  INSTRUMENT_TYPE_UNIT_TRUST = 8,
15
15
  INSTRUMENT_TYPE_CRYPTO_CURRENCY = 9,
16
16
  INSTRUMENT_TYPE_FIAT_CURRENCY = 10,
17
- INSTRUMENT_TYPE_RIGHTS = 11,
18
17
  INSTRUMENT_TYPE_GOLD = 12,
19
18
  INSTRUMENT_TYPE_SILVER = 13,
20
19
  INSTRUMENT_TYPE_PLATINUM = 14,
@@ -31,4 +30,8 @@ export enum InstrumentType {
31
30
  INSTRUMENT_TYPE_ENDOWMENT_WRAPPER = 25,
32
31
  INSTRUMENT_TYPE_FUND = 26,
33
32
  INSTRUMENT_TYPE_FUND_STABLECOIN = 27,
33
+ INSTRUMENT_TYPE_AMC_STABLECOIN = 28,
34
+ INSTRUMENT_TYPE_ETF_STABLECOIN = 29,
35
+ INSTRUMENT_TYPE_ETN_STABLECOIN = 30,
36
+ INSTRUMENT_TYPE_CRYPTO_CURRENCY_STABLECOIN = 31,
34
37
  }
@@ -37,7 +37,6 @@ proto.meshtrade.studio.instrument.v1.InstrumentType = {
37
37
  INSTRUMENT_TYPE_UNIT_TRUST: 8,
38
38
  INSTRUMENT_TYPE_CRYPTO_CURRENCY: 9,
39
39
  INSTRUMENT_TYPE_FIAT_CURRENCY: 10,
40
- INSTRUMENT_TYPE_RIGHTS: 11,
41
40
  INSTRUMENT_TYPE_GOLD: 12,
42
41
  INSTRUMENT_TYPE_SILVER: 13,
43
42
  INSTRUMENT_TYPE_PLATINUM: 14,
@@ -53,7 +52,11 @@ proto.meshtrade.studio.instrument.v1.InstrumentType = {
53
52
  INSTRUMENT_TYPE_MONEY_MARKET_FUND_STABLECOIN: 24,
54
53
  INSTRUMENT_TYPE_ENDOWMENT_WRAPPER: 25,
55
54
  INSTRUMENT_TYPE_FUND: 26,
56
- INSTRUMENT_TYPE_FUND_STABLECOIN: 27
55
+ INSTRUMENT_TYPE_FUND_STABLECOIN: 27,
56
+ INSTRUMENT_TYPE_AMC_STABLECOIN: 28,
57
+ INSTRUMENT_TYPE_ETF_STABLECOIN: 29,
58
+ INSTRUMENT_TYPE_ETN_STABLECOIN: 30,
59
+ INSTRUMENT_TYPE_CRYPTO_CURRENCY_STABLECOIN: 31
57
60
  };
58
61
 
59
62
  goog.object.extend(exports, proto.meshtrade.studio.instrument.v1);
@@ -22,4 +22,5 @@ export enum Unit {
22
22
  UNIT_QUARTER_OUNCE = 16,
23
23
  UNIT_ONE_TENTH_OUNCE = 17,
24
24
  UNIT_ONE_HUNDREDTH_OUNCE = 18,
25
+ UNIT_TONNE = 19,
25
26
  }
@@ -44,7 +44,8 @@ proto.meshtrade.studio.instrument.v1.Unit = {
44
44
  UNIT_HALF_OUNCE: 15,
45
45
  UNIT_QUARTER_OUNCE: 16,
46
46
  UNIT_ONE_TENTH_OUNCE: 17,
47
- UNIT_ONE_HUNDREDTH_OUNCE: 18
47
+ UNIT_ONE_HUNDREDTH_OUNCE: 18,
48
+ UNIT_TONNE: 19
48
49
  };
49
50
 
50
51
  goog.object.extend(exports, proto.meshtrade.studio.instrument.v1);
@@ -1,4 +1,13 @@
1
1
  import { Token } from "./token_pb";
2
+ /**
3
+ * The reserved issuer value for assets that are native to their ledger's protocol
4
+ * layer. Each ledger typically has one native asset (e.g., ETH on Ethereum, SOL on
5
+ * Solana, XLM on Stellar, SUI on Sui) — a base-layer token which has no issuing
6
+ * contract or account. For all other assets (e.g., ERC-20 tokens, Stellar credit
7
+ * assets), the issuer field should contain the unique identifier of the issuing
8
+ * entity, such as a smart contract address or issuance account public key.
9
+ */
10
+ export declare const NativeAssetIssuer = "__LEDGER__";
2
11
  export declare function tokensAreEqual(t?: Token, t2?: Token): boolean;
3
12
  export declare function tokenIsUndefined(t?: Token): boolean;
4
13
  export declare function tokenToString(t?: Token): string;
@@ -1,9 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NativeAssetIssuer = void 0;
3
4
  exports.tokensAreEqual = tokensAreEqual;
4
5
  exports.tokenIsUndefined = tokenIsUndefined;
5
6
  exports.tokenToString = tokenToString;
6
7
  const ledger_pb_1 = require("./ledger_pb");
8
+ /**
9
+ * The reserved issuer value for assets that are native to their ledger's protocol
10
+ * layer. Each ledger typically has one native asset (e.g., ETH on Ethereum, SOL on
11
+ * Solana, XLM on Stellar, SUI on Sui) — a base-layer token which has no issuing
12
+ * contract or account. For all other assets (e.g., ERC-20 tokens, Stellar credit
13
+ * assets), the issuer field should contain the unique identifier of the issuing
14
+ * entity, such as a smart contract address or issuance account public key.
15
+ */
16
+ exports.NativeAssetIssuer = "__LEDGER__";
7
17
  function tokensAreEqual(t, t2) {
8
18
  return ((t?.getCode() ?? "") === (t2?.getCode() ?? "") &&
9
19
  (t?.getIssuer() ?? "") === (t2?.getIssuer() ?? "") &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshtrade/api-old",
3
- "version": "1.53.0",
3
+ "version": "1.55.0",
4
4
  "description": "Mesh Typescript SDK (Legacy)",
5
5
  "author": "Bernard Bussy <bernard@meshtrade.co>",
6
6
  "license": "UNLICENSED",