@meshtrade/api-web 1.53.0 → 1.54.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.
@@ -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?.code ?? "") === (t2?.code ?? "") &&
9
19
  (t?.issuer ?? "") === (t2?.issuer ?? "") &&
@@ -28,11 +28,14 @@ export type Token = Message<"meshtrade.type.v1.Token"> & {
28
28
  code: string;
29
29
  /**
30
30
  *
31
- * Issuer is a reference to issuing entity of the token.
32
- * For NATIVE assets on a ledger (e.g., ETH on Ethereum), the issuer is the ledger itself,
33
- * represented by the reserved string __LEDGER__.
34
- * For ALL other issued assets (e.g., ERC-20 tokens), this is the unique identifier of the issuing entity,
35
- * such as a smart contract address on Ethereum or an issuance account public key on Stellar.
31
+ * Issuer is a reference to the issuing entity of the token.
32
+ * For NATIVE assets on a ledger (e.g., ETH on Ethereum, SOL on Solana, XLM on Stellar),
33
+ * the issuer is the ledger itself, represented by the reserved string __LEDGER__.
34
+ * All Mesh SDKs expose a constant for this value (e.g., NativeAssetIssuer in Go and
35
+ * TypeScript, NATIVE_ASSET_ISSUER in Python and Java).
36
+ * For ALL other issued assets (e.g., ERC-20 tokens), this is the unique identifier of
37
+ * the issuing entity, such as a smart contract address on Ethereum or an issuance
38
+ * account public key on Stellar.
36
39
  * Required field.
37
40
  *
38
41
  * @generated from field: string issuer = 2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshtrade/api-web",
3
- "version": "1.53.0",
3
+ "version": "1.54.0",
4
4
  "description": "Mesh Typescript SDK",
5
5
  "author": "Bernard Bussy <bernard@meshtrade.co>",
6
6
  "license": "UNLICENSED",