@ocap/client 1.28.6 → 1.28.7

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.
Files changed (129) hide show
  1. package/README.md +1 -1
  2. package/dist/base.js +1 -3
  3. package/dist/base.js.map +1 -1
  4. package/dist/browser.d.ts +270 -175
  5. package/dist/bundle.js +1 -1
  6. package/dist/extension.js +0 -8
  7. package/dist/extension.js.map +1 -1
  8. package/dist/lite.js +0 -1
  9. package/dist/lite.js.map +1 -1
  10. package/dist/module.js +1 -1
  11. package/dist/module.js.map +1 -1
  12. package/dist/report.html +2 -2
  13. package/docs/QUERIES.md +2 -2
  14. package/docs/README.md +2 -2
  15. package/docs/api-reference-client-methods.ja.md +6 -1
  16. package/docs/api-reference-client-methods.md +5 -0
  17. package/docs/api-reference-client-methods.zh-TW.md +6 -1
  18. package/docs/api-reference-client-methods.zh.md +6 -1
  19. package/docs/api-reference-data-types.ja.md +6 -1
  20. package/docs/api-reference-data-types.md +6 -1
  21. package/docs/api-reference-data-types.zh-TW.md +6 -1
  22. package/docs/api-reference-data-types.zh.md +6 -1
  23. package/docs/api-reference-low-level-api.ja.md +9 -5
  24. package/docs/api-reference-low-level-api.md +9 -5
  25. package/docs/api-reference-low-level-api.zh-TW.md +9 -5
  26. package/docs/api-reference-low-level-api.zh.md +9 -5
  27. package/docs/api-reference-query-mutation-methods.ja.md +5 -3
  28. package/docs/api-reference-query-mutation-methods.md +4 -2
  29. package/docs/api-reference-query-mutation-methods.zh-TW.md +5 -3
  30. package/docs/api-reference-query-mutation-methods.zh.md +5 -3
  31. package/docs/api-reference-transaction-helpers.ja.md +6 -1
  32. package/docs/api-reference-transaction-helpers.md +5 -0
  33. package/docs/api-reference-transaction-helpers.zh-TW.md +6 -1
  34. package/docs/api-reference-transaction-helpers.zh.md +6 -1
  35. package/docs/api-reference.ja.md +1 -1
  36. package/docs/api-reference.md +1 -1
  37. package/docs/api-reference.zh-TW.md +1 -1
  38. package/docs/api-reference.zh.md +1 -1
  39. package/docs/core-concepts-client-architecture.ja.md +16 -11
  40. package/docs/core-concepts-client-architecture.md +16 -11
  41. package/docs/core-concepts-client-architecture.zh-TW.md +16 -11
  42. package/docs/core-concepts-client-architecture.zh.md +16 -11
  43. package/docs/core-concepts-event-subscriptions.ja.md +12 -7
  44. package/docs/core-concepts-event-subscriptions.md +12 -7
  45. package/docs/core-concepts-event-subscriptions.zh-TW.md +12 -7
  46. package/docs/core-concepts-event-subscriptions.zh.md +12 -7
  47. package/docs/core-concepts-gas-payment.ja.md +7 -3
  48. package/docs/core-concepts-gas-payment.md +7 -3
  49. package/docs/core-concepts-gas-payment.zh-TW.md +7 -3
  50. package/docs/core-concepts-gas-payment.zh.md +7 -3
  51. package/docs/core-concepts-transaction-lifecycle.ja.md +15 -7
  52. package/docs/core-concepts-transaction-lifecycle.md +15 -7
  53. package/docs/core-concepts-transaction-lifecycle.zh-TW.md +15 -7
  54. package/docs/core-concepts-transaction-lifecycle.zh.md +15 -7
  55. package/docs/core-concepts.ja.md +1 -1
  56. package/docs/core-concepts.md +1 -1
  57. package/docs/core-concepts.zh-TW.md +1 -1
  58. package/docs/core-concepts.zh.md +1 -1
  59. package/docs/getting-started-basic-usage.ja.md +6 -1
  60. package/docs/getting-started-basic-usage.md +6 -1
  61. package/docs/getting-started-basic-usage.zh-TW.md +6 -1
  62. package/docs/getting-started-basic-usage.zh.md +6 -1
  63. package/docs/getting-started-installation.ja.md +7 -3
  64. package/docs/getting-started-installation.md +7 -3
  65. package/docs/getting-started-installation.zh-TW.md +7 -3
  66. package/docs/getting-started-installation.zh.md +7 -3
  67. package/docs/getting-started.ja.md +1 -1
  68. package/docs/getting-started.md +1 -1
  69. package/docs/getting-started.zh-TW.md +1 -1
  70. package/docs/getting-started.zh.md +1 -1
  71. package/docs/how-to-guides-delegate-permissions.ja.md +4 -1
  72. package/docs/how-to-guides-delegate-permissions.md +3 -0
  73. package/docs/how-to-guides-delegate-permissions.zh-TW.md +4 -1
  74. package/docs/how-to-guides-delegate-permissions.zh.md +4 -1
  75. package/docs/how-to-guides-manage-accounts.ja.md +4 -3
  76. package/docs/how-to-guides-manage-accounts.md +4 -3
  77. package/docs/how-to-guides-manage-accounts.zh-TW.md +4 -3
  78. package/docs/how-to-guides-manage-accounts.zh.md +4 -3
  79. package/docs/how-to-guides-manage-assets.ja.md +6 -2
  80. package/docs/how-to-guides-manage-assets.md +6 -2
  81. package/docs/how-to-guides-manage-assets.zh-TW.md +6 -2
  82. package/docs/how-to-guides-manage-assets.zh.md +6 -2
  83. package/docs/how-to-guides-manage-tokens.ja.md +8 -1
  84. package/docs/how-to-guides-manage-tokens.md +8 -1
  85. package/docs/how-to-guides-manage-tokens.zh-TW.md +8 -1
  86. package/docs/how-to-guides-manage-tokens.zh.md +8 -1
  87. package/docs/how-to-guides-stake-tokens-and-assets.ja.md +11 -5
  88. package/docs/how-to-guides-stake-tokens-and-assets.md +11 -5
  89. package/docs/how-to-guides-stake-tokens-and-assets.zh-TW.md +11 -5
  90. package/docs/how-to-guides-stake-tokens-and-assets.zh.md +11 -5
  91. package/docs/how-to-guides-transfer-tokens-and-nfts.ja.md +8 -6
  92. package/docs/how-to-guides-transfer-tokens-and-nfts.md +8 -6
  93. package/docs/how-to-guides-transfer-tokens-and-nfts.zh-TW.md +8 -6
  94. package/docs/how-to-guides-transfer-tokens-and-nfts.zh.md +8 -6
  95. package/docs/how-to-guides.ja.md +1 -1
  96. package/docs/how-to-guides.md +1 -1
  97. package/docs/how-to-guides.zh-TW.md +1 -1
  98. package/docs/how-to-guides.zh.md +1 -1
  99. package/docs/overview.ja.md +5 -3
  100. package/docs/overview.md +5 -3
  101. package/docs/overview.zh-TW.md +5 -3
  102. package/docs/overview.zh.md +5 -3
  103. package/examples/asset.js +0 -2
  104. package/examples/create-secondary-token.js +0 -2
  105. package/examples/declare.js +0 -1
  106. package/examples/delegate-exchange-both.js +1 -3
  107. package/examples/delegate-exchange.js +1 -3
  108. package/examples/delegate-transfer.js +0 -1
  109. package/examples/exchange-secondary-token.js +0 -2
  110. package/examples/exchange.js +0 -2
  111. package/examples/migrate-account.js +0 -1
  112. package/examples/run-no-debug.sh +0 -0
  113. package/examples/run.sh +0 -0
  114. package/examples/subscribe.js +0 -2
  115. package/examples/transfer-asset.js +0 -2
  116. package/examples/transfer-primary-token.js +0 -1
  117. package/examples/transfer-secondary-token.js +0 -2
  118. package/lib/base.js +1 -3
  119. package/lib/base.js.map +1 -1
  120. package/lib/extension.js +0 -8
  121. package/lib/extension.js.map +1 -1
  122. package/lib/lite.js +0 -1
  123. package/lib/lite.js.map +1 -1
  124. package/lib/module.js +1 -1
  125. package/lib/module.js.map +1 -1
  126. package/lib/node.d.ts +270 -175
  127. package/lib/node.js +1 -1
  128. package/lib/node.js.map +1 -1
  129. package/package.json +30 -32
@@ -4,6 +4,7 @@
4
4
 
5
5
  需要記住的一個關鍵特性是,當一個新帳戶收到第一筆入帳交易時,它會自動在鏈上被建立。這意味著您可以將代幣或資產轉移到一個全新的地址,而無需為接收方進行任何預先設定。
6
6
 
7
+
7
8
  ## `transfer` 方法
8
9
 
9
10
  `client.transfer()` 方法是一個多功能的輔助函式,可以簡化發送資產和代幣的過程。它透過單次呼叫即可建構、簽署並將相應的交易(`transferV2Tx`)發送到區塊鏈。
@@ -36,15 +37,16 @@
36
37
  <x-field-desc markdown>一個 Promise,在成功提交到區塊鏈後會解析為交易雜湊值。</x-field-desc>
37
38
  </x-field>
38
39
 
40
+
39
41
  ## 逐步範例
40
42
 
41
43
  ### 前提條件
42
44
 
43
45
  在開始之前,請確保您具備:
44
46
 
45
- 1. 一個已初始化並連接到鏈主機(例如 `https://beta.abtnetwork.io`)的 `GraphQLClient`。
46
- 2. 一個發送方的錢包物件(`senderWallet`),其中有足夠的代幣來支付轉帳和交易費用。
47
- 3. 一個接收方的錢包物件(`recipientWallet`),以獲取其地址。接收方的帳戶尚無需存在於鏈上。
47
+ 1. 一個已初始化並連接到鏈主機(例如 `https://beta.abtnetwork.io`)的 `GraphQLClient`。
48
+ 2. 一個發送方的錢包物件(`senderWallet`),其中有足夠的代幣來支付轉帳和交易費用。
49
+ 3. 一個接收方的錢包物件(`recipientWallet`),以獲取其地址。接收方的帳戶尚無需存在於鏈上。
48
50
 
49
51
  ```javascript 基本設定 icon=logos:javascript
50
52
  import GraphQLClient from '@ocap/client';
@@ -174,6 +176,6 @@ combinedTransfer();
174
176
 
175
177
  ### 延伸閱讀
176
178
 
177
- - [如何管理資產 (NFT)](./how-to-guides-manage-assets.md)
178
- - [如何管理代幣](./how-to-guides-manage-tokens.md)
179
- - [高階 API](./api-reference-transaction-helpers.md)
179
+ * [如何管理資產 (NFT)](./how-to-guides-manage-assets.md)
180
+ * [如何管理代幣](./how-to-guides-manage-tokens.md)
181
+ * [高階 API](./api-reference-transaction-helpers.md)
@@ -4,6 +4,7 @@
4
4
 
5
5
  需要记住的一个关键特性是,当新账户首次接收到入账交易时,它会自动在链上创建。这意味着您可以将通证或资产转移到一个全新的地址,而无需接收方进行任何预先设置。
6
6
 
7
+
7
8
  ## `transfer` 方法
8
9
 
9
10
  `client.transfer()` 方法是一个多功能的辅助函数,可简化发送资产和通证的过程。它通过一次调用即可构建、签署相应的交易(`transferV2Tx`)并将其发送到区块链。
@@ -36,15 +37,16 @@
36
37
  <x-field-desc markdown>一个 Promise,在成功提交到区块链后会解析为交易哈希值。</x-field-desc>
37
38
  </x-field>
38
39
 
40
+
39
41
  ## 分步示例
40
42
 
41
43
  ### 前提条件
42
44
 
43
45
  在开始之前,请确保您已具备:
44
46
 
45
- 1. 一个已初始化的 `GraphQLClient`,已连接到链主机,例如 `https://beta.abtnetwork.io`。
46
- 2. 一个发送方的钱包对象 (`senderWallet`),其中存有足够的通证以支付转账和交易费用。
47
- 3. 一个接收方的钱包对象 (`recipientWallet`),用于获取其地址。接收方的账户此时无需已在链上存在。
47
+ 1. 一个已初始化的 `GraphQLClient`,已连接到链主机,例如 `https://beta.abtnetwork.io`。
48
+ 2. 一个发送方的钱包对象 (`senderWallet`),其中存有足够的通证以支付转账和交易费用。
49
+ 3. 一个接收方的钱包对象 (`recipientWallet`),用于获取其地址。接收方的账户此时无需已在链上存在。
48
50
 
49
51
  ```javascript Basic Setup icon=logos:javascript
50
52
  import GraphQLClient from '@ocap/client';
@@ -174,6 +176,6 @@ combinedTransfer();
174
176
 
175
177
  ### 延伸阅读
176
178
 
177
- - [如何管理资产 (NFT)](./how-to-guides-manage-assets.md)
178
- - [如何管理通证](./how-to-guides-manage-tokens.md)
179
- - [高级 API](./api-reference-transaction-helpers.md)
179
+ * [如何管理资产 (NFT)](./how-to-guides-manage-assets.md)
180
+ * [如何管理通证](./how-to-guides-manage-tokens.md)
181
+ * [高级 API](./api-reference-transaction-helpers.md)
@@ -24,4 +24,4 @@
24
24
  <x-card data-title="アトミックスワップの実行" data-href="/how-to-guides/perform-atomic-swaps" data-icon="lucide:repeat">
25
25
  マルチシグネチャトランザクションを使用して、2つの当事者間でトークンとアセットを安全に交換する方法に関するガイドです。
26
26
  </x-card>
27
- </x-cards>
27
+ </x-cards>
@@ -24,4 +24,4 @@ This section provides practical, step-by-step instructions for completing common
24
24
  <x-card data-title="Perform Atomic Swaps" data-href="/how-to-guides/perform-atomic-swaps" data-icon="lucide:repeat">
25
25
  A guide on how to securely exchange tokens and assets between two parties using a multi-signature transaction.
26
26
  </x-card>
27
- </x-cards>
27
+ </x-cards>
@@ -24,4 +24,4 @@
24
24
  <x-card data-title="執行原子交換" data-href="/how-to-guides/perform-atomic-swaps" data-icon="lucide:repeat">
25
25
  關於如何使用多重簽名交易在兩方之間安全地交換代幣和資產的指南。
26
26
  </x-card>
27
- </x-cards>
27
+ </x-cards>
@@ -24,4 +24,4 @@
24
24
  <x-card data-title="执行原子交换" data-href="/how-to-guides/perform-atomic-swaps" data-icon="lucide:repeat">
25
25
  关于如何使用多重签名交易在两方之间安全交换通证和资产的指南。
26
26
  </x-card>
27
- </x-cards>
27
+ </x-cards>
@@ -5,7 +5,9 @@ OCAP Clientは、アプリケーションをOCAPベースのブロックチェ
5
5
  その中核となるのは、トランザクションのエンコーディングや署名の複雑さを抽象化することで、ブロックチェーンとの対話を簡素化することです。HTTP/Sを介したブロックチェーンノードとのすべての通信にGraphQL APIを使用しており、チェーンデータのクエリやトランザクションの送信が容易になります。
6
6
 
7
7
  <!-- DIAGRAM_IMAGE_START:architecture:4:3 -->
8
+
8
9
  ![Overview](assets/diagram/overview-01.jpg)
10
+
9
11
  <!-- DIAGRAM_IMAGE_END -->
10
12
 
11
13
  ### 主な機能
@@ -29,9 +31,9 @@ OCAP Clientは、ブロックチェーン通信のさまざまな側面を処理
29
31
 
30
32
  ### 重要な概念
31
33
 
32
- - **アカウントの自動作成**: OCAPベースのチェーンでは、最初に入金トランザクション(例:トークンの受信)を受け取ると、新しいアカウントがオンチェーンで自動的に作成されます。アカウントを初期化するために別のトランザクションは必要ありません。
34
+ * **アカウントの自動作成**: OCAPベースのチェーンでは、最初に入金トランザクション(例:トークンの受信)を受け取ると、新しいアカウントがオンチェーンで自動的に作成されます。アカウントを初期化するために別のトランザクションは必要ありません。
33
35
 
34
- - **ガスレストランザクション**: このクライアントは、指定された「ガス支払者」ウォレットが他のユーザーのトランザクション手数料を負担できるガス支払いメカニズムをサポートしています。これにより、アプリケーションのユーザーにシームレスでガス代無料の体験を提供できます。
36
+ * **ガスレストランザクション**: このクライアントは、指定された「ガス支払者」ウォレットが他のユーザーのトランザクション手数料を負担できるガス支払いメカニズムをサポートしています。これにより、アプリケーションのユーザーにシームレスでガス代無料の体験を提供できます。
35
37
 
36
38
  ### 次のステップ
37
39
 
@@ -47,4 +49,4 @@ OCAP Clientは、ブロックチェーン通信のさまざまな側面を処理
47
49
  <x-card data-title="API リファレンス" data-icon="lucide:code" data-href="/api-reference">
48
50
  すべてのメソッド、パラメータ、データ型に関する詳細情報について、完全なAPIドキュメントをご覧ください。
49
51
  </x-card>
50
- </x-cards>
52
+ </x-cards>
package/docs/overview.md CHANGED
@@ -5,7 +5,9 @@ The OCAP Client is a powerful and versatile JavaScript library designed to conne
5
5
  At its core, the client simplifies blockchain interaction by abstracting away the complexities of transaction encoding and signing. It uses a GraphQL API for all communication with the blockchain node over HTTP/S, making it easy to query chain data and submit transactions.
6
6
 
7
7
  <!-- DIAGRAM_IMAGE_START:architecture:4:3 -->
8
+
8
9
  ![Overview](assets/diagram/overview-01.jpg)
10
+
9
11
  <!-- DIAGRAM_IMAGE_END -->
10
12
 
11
13
  ### Key Features
@@ -29,9 +31,9 @@ The OCAP Client is organized into several distinct groups of methods to handle d
29
31
 
30
32
  ### Important Concepts
31
33
 
32
- - **Automatic Account Creation**: On an OCAP-powered chain, a new account is automatically created on-chain when it receives its first incoming transaction (e.g., receiving tokens). You don't need a separate transaction to initialize an account.
34
+ * **Automatic Account Creation**: On an OCAP-powered chain, a new account is automatically created on-chain when it receives its first incoming transaction (e.g., receiving tokens). You don't need a separate transaction to initialize an account.
33
35
 
34
- - **Gasless Transactions**: The client supports a gas payment mechanism where a designated "gas payer" wallet can sponsor transaction fees for other users. This enables you to create seamless, gas-free experiences for your application's users.
36
+ * **Gasless Transactions**: The client supports a gas payment mechanism where a designated "gas payer" wallet can sponsor transaction fees for other users. This enables you to create seamless, gas-free experiences for your application's users.
35
37
 
36
38
  ### Where to Go Next
37
39
 
@@ -47,4 +49,4 @@ Ready to start building? Here are some helpful links to get you moving:
47
49
  <x-card data-title="API Reference" data-icon="lucide:code" data-href="/api-reference">
48
50
  Dive into the complete API documentation for detailed information on every method, parameter, and data type.
49
51
  </x-card>
50
- </x-cards>
52
+ </x-cards>
@@ -5,7 +5,9 @@ OCAP Client 是一個功能強大且多功能的 JavaScript 函式庫,旨在
5
5
  其核心在於,此客戶端透過抽象化交易編碼和簽署的複雜性,簡化了區塊鏈的互動。它使用 GraphQL API 透過 HTTP/S 與區塊鏈節點進行所有通訊,使得查詢鏈上資料和提交交易變得容易。
6
6
 
7
7
  <!-- DIAGRAM_IMAGE_START:architecture:4:3 -->
8
+
8
9
  ![Overview](assets/diagram/overview-01.jpg)
10
+
9
11
  <!-- DIAGRAM_IMAGE_END -->
10
12
 
11
13
  ### 主要功能
@@ -29,9 +31,9 @@ OCAP Client 分為幾個不同的方法群組,以處理區塊鏈通訊的不
29
31
 
30
32
  ### 重要概念
31
33
 
32
- - **自動建立帳戶**:在由 OCAP 驅動的鏈上,當新帳戶收到第一筆傳入交易(例如,接收代幣)時,鏈上會自動建立該帳戶。您不需要透過單獨的交易來初始化帳戶。
34
+ * **自動建立帳戶**:在由 OCAP 驅動的鏈上,當新帳戶收到第一筆傳入交易(例如,接收代幣)時,鏈上會自動建立該帳戶。您不需要透過單獨的交易來初始化帳戶。
33
35
 
34
- - **無 Gas 交易**:此客戶端支援一種 Gas 支付機制,其中指定的「Gas 支付者」錢包可以為其他使用者贊助交易費用。這使您能夠為您的應用程式使用者創造無縫、免 Gas 費的體驗。
36
+ * **無 Gas 交易**:此客戶端支援一種 Gas 支付機制,其中指定的「Gas 支付者」錢包可以為其他使用者贊助交易費用。這使您能夠為您的應用程式使用者創造無縫、免 Gas 費的體驗。
35
37
 
36
38
  ### 下一步
37
39
 
@@ -47,4 +49,4 @@ OCAP Client 分為幾個不同的方法群組,以處理區塊鏈通訊的不
47
49
  <x-card data-title="API 參考" data-icon="lucide:code" data-href="/api-reference">
48
50
  深入完整的 API 文件,以獲取有關每個方法、參數和資料類型的詳細資訊。
49
51
  </x-card>
50
- </x-cards>
52
+ </x-cards>
@@ -5,7 +5,9 @@ OCAP Client 是一个功能强大且通用的 JavaScript 库,旨在将您的
5
5
  该客户端的核心功能是通过抽象交易编码和签名的复杂性来简化区块链交互。它使用 GraphQL API 通过 HTTP/S 与区块链节点进行所有通信,使得查询链上数据和提交交易变得简单。
6
6
 
7
7
  <!-- DIAGRAM_IMAGE_START:architecture:4:3 -->
8
+
8
9
  ![Overview](assets/diagram/overview-01.jpg)
10
+
9
11
  <!-- DIAGRAM_IMAGE_END -->
10
12
 
11
13
  ### 主要功能
@@ -29,9 +31,9 @@ OCAP Client 分为几个不同的方法组,以处理区块链通信的不同
29
31
 
30
32
  ### 重要概念
31
33
 
32
- - **自动创建账户**:在由 OCAP 驱动的链上,当一个新账户收到第一笔入账交易(例如,接收通证)时,它会自动在链上创建。你无需通过单独的交易来初始化账户。
34
+ * **自动创建账户**:在由 OCAP 驱动的链上,当一个新账户收到第一笔入账交易(例如,接收通证)时,它会自动在链上创建。你无需通过单独的交易来初始化账户。
33
35
 
34
- - **无 Gas 费交易**:该客户端支持一种 Gas 费支付机制,即由指定的“Gas 费支付方”钱包为其他用户赞助交易费用。这使您能够为应用程序的用户创建无缝、免 Gas 费的体验。
36
+ * **无 Gas 费交易**:该客户端支持一种 Gas 费支付机制,即由指定的“Gas 费支付方”钱包为其他用户赞助交易费用。这使您能够为应用程序的用户创建无缝、免 Gas 费的体验。
35
37
 
36
38
  ### 下一步
37
39
 
@@ -47,4 +49,4 @@ OCAP Client 分为几个不同的方法组,以处理区块链通信的不同
47
49
  <x-card data-title="API 参考" data-icon="lucide:code" data-href="/api-reference">
48
50
  深入了解完整的 API 文档,获取有关每个方法、参数和数据类型的详细信息。
49
51
  </x-card>
50
- </x-cards>
52
+ </x-cards>
package/examples/asset.js CHANGED
@@ -1,4 +1,3 @@
1
- /* eslint-disable import/no-extraneous-dependencies */
2
1
  /* eslint no-console:"off" */
3
2
 
4
3
  /**
@@ -30,7 +29,6 @@ const sleep = (timeout) =>
30
29
 
31
30
  // 2. create asset for owner
32
31
  let assetAddress;
33
- // eslint-disable-next-line prefer-const
34
32
  [hash, assetAddress] = await client.createAsset({
35
33
  moniker: 'asset',
36
34
  readonly: false, // if we want to update the asset, we should set this to false
@@ -1,4 +1,3 @@
1
- /* eslint-disable import/no-extraneous-dependencies */
2
1
  /* eslint no-console:"off" */
3
2
 
4
3
  /**
@@ -25,7 +24,6 @@ const client = new GraphQLClient(`${endpoint}/api`);
25
24
  console.log('declare.owner.result', hash);
26
25
  console.log('view owner account', `${endpoint}/explorer/accounts/${owner.address}`);
27
26
 
28
- // eslint-disable-next-line prefer-const
29
27
  const createResult = await client.createToken({
30
28
  name: 'demo token',
31
29
  description: 'demo token',
@@ -1,4 +1,3 @@
1
- /* eslint-disable import/no-extraneous-dependencies */
2
1
  /* eslint no-console:"off" */
3
2
 
4
3
  /**
@@ -1,4 +1,3 @@
1
- /* eslint-disable import/no-extraneous-dependencies */
2
1
  /* eslint no-console:"off" */
3
2
 
4
3
  /**
@@ -82,8 +81,7 @@ const sleep = (timeout) =>
82
81
  await sleep(3000);
83
82
 
84
83
  // 3. create asset for sender
85
- // eslint-disable-next-line prefer-const
86
- let [hash, assetAddress] = await client.createAsset({
84
+ const [hash, assetAddress] = await client.createAsset({
87
85
  moniker: 'asset',
88
86
  data: {
89
87
  typeUrl: 'json',
@@ -1,4 +1,3 @@
1
- /* eslint-disable import/no-extraneous-dependencies */
2
1
  /* eslint no-console:"off" */
3
2
 
4
3
  /**
@@ -71,8 +70,7 @@ const sleep = (timeout) =>
71
70
  console.log('alice.delegate.hash', hash);
72
71
 
73
72
  // 3. create asset for sender
74
- // eslint-disable-next-line prefer-const
75
- let [, assetAddress] = await client.createAsset({
73
+ const [, assetAddress] = await client.createAsset({
76
74
  moniker: 'asset',
77
75
  data: {
78
76
  typeUrl: 'json',
@@ -1,4 +1,3 @@
1
- /* eslint-disable import/no-extraneous-dependencies */
2
1
  /* eslint no-console:"off" */
3
2
 
4
3
  /**
@@ -1,4 +1,3 @@
1
- /* eslint-disable import/no-extraneous-dependencies */
2
1
  /* eslint no-console:"off" */
3
2
 
4
3
  /**
@@ -51,7 +50,6 @@ const sleep = (timeout) =>
51
50
 
52
51
  // 3. create token
53
52
  let tokenAddress;
54
- // eslint-disable-next-line prefer-const
55
53
  [hash, tokenAddress] = await client.createToken({
56
54
  name: 'demo token',
57
55
  description: 'demo token',
@@ -1,4 +1,3 @@
1
- /* eslint-disable import/no-extraneous-dependencies */
2
1
  /* eslint no-console:"off" */
3
2
 
4
3
  /**
@@ -53,7 +52,6 @@ const sleep = (timeout) =>
53
52
 
54
53
  // 3. create asset for sender
55
54
  let assetAddress;
56
- // eslint-disable-next-line prefer-const
57
55
  [hash, assetAddress] = await client.createAsset({
58
56
  moniker: 'asset',
59
57
  data: {
@@ -1,4 +1,3 @@
1
- /* eslint-disable import/no-extraneous-dependencies */
2
1
  /* eslint no-console:"off" */
3
2
 
4
3
  /**
File without changes
package/examples/run.sh CHANGED
File without changes
@@ -1,5 +1,3 @@
1
- /* eslint-disable no-console */
2
- // eslint-disable-next-line import/no-extraneous-dependencies
3
1
  const { fromRandom } = require('@ocap/wallet');
4
2
  const Client = require('../lib/node');
5
3
 
@@ -1,4 +1,3 @@
1
- /* eslint-disable import/no-extraneous-dependencies */
2
1
  /* eslint no-console:"off" */
3
2
 
4
3
  /**
@@ -40,7 +39,6 @@ const sleep = (timeout) =>
40
39
 
41
40
  // 3. create asset for sender
42
41
  let assetAddress;
43
- // eslint-disable-next-line prefer-const
44
42
  [hash, assetAddress] = await client.createAsset({
45
43
  moniker: 'asset_to_be_transferred',
46
44
  data: {
@@ -1,4 +1,3 @@
1
- /* eslint-disable import/no-extraneous-dependencies */
2
1
  /* eslint no-console:"off" */
3
2
 
4
3
  /**
@@ -1,4 +1,3 @@
1
- /* eslint-disable import/no-extraneous-dependencies */
2
1
  /* eslint no-console:"off" */
3
2
 
4
3
  /**
@@ -36,7 +35,6 @@ const sleep = (timeout) =>
36
35
 
37
36
  await sleep(3000);
38
37
 
39
- // eslint-disable-next-line prefer-const
40
38
  const createTokenResult = await client.createToken({
41
39
  name: 'demo token',
42
40
  description: 'demo token',