@cheqd/sdk 5.4.0-develop.3 → 5.4.1-develop.1

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 (146) hide show
  1. package/build/esm/package.json +1 -1
  2. package/package.json +1 -1
  3. package/build/esm/cjs/src/index.d.ts +0 -142
  4. package/build/esm/cjs/src/index.d.ts.map +0 -1
  5. package/build/esm/cjs/src/index.js +0 -184
  6. package/build/esm/cjs/src/index.js.map +0 -1
  7. package/build/esm/cjs/src/modules/_.d.ts +0 -81
  8. package/build/esm/cjs/src/modules/_.d.ts.map +0 -1
  9. package/build/esm/cjs/src/modules/_.js +0 -93
  10. package/build/esm/cjs/src/modules/_.js.map +0 -1
  11. package/build/esm/cjs/src/modules/did.d.ts +0 -490
  12. package/build/esm/cjs/src/modules/did.d.ts.map +0 -1
  13. package/build/esm/cjs/src/modules/did.js +0 -1274
  14. package/build/esm/cjs/src/modules/did.js.map +0 -1
  15. package/build/esm/cjs/src/modules/feeabstraction.d.ts +0 -429
  16. package/build/esm/cjs/src/modules/feeabstraction.d.ts.map +0 -1
  17. package/build/esm/cjs/src/modules/feeabstraction.js +0 -474
  18. package/build/esm/cjs/src/modules/feeabstraction.js.map +0 -1
  19. package/build/esm/cjs/src/modules/feemarket.d.ts +0 -244
  20. package/build/esm/cjs/src/modules/feemarket.d.ts.map +0 -1
  21. package/build/esm/cjs/src/modules/feemarket.js +0 -297
  22. package/build/esm/cjs/src/modules/feemarket.js.map +0 -1
  23. package/build/esm/cjs/src/modules/oracle.d.ts +0 -563
  24. package/build/esm/cjs/src/modules/oracle.d.ts.map +0 -1
  25. package/build/esm/cjs/src/modules/oracle.js +0 -784
  26. package/build/esm/cjs/src/modules/oracle.js.map +0 -1
  27. package/build/esm/cjs/src/modules/resource.d.ts +0 -332
  28. package/build/esm/cjs/src/modules/resource.d.ts.map +0 -1
  29. package/build/esm/cjs/src/modules/resource.js +0 -575
  30. package/build/esm/cjs/src/modules/resource.js.map +0 -1
  31. package/build/esm/cjs/src/querier.d.ts +0 -83
  32. package/build/esm/cjs/src/querier.d.ts.map +0 -1
  33. package/build/esm/cjs/src/querier.js +0 -138
  34. package/build/esm/cjs/src/querier.js.map +0 -1
  35. package/build/esm/cjs/src/registry.d.ts +0 -18
  36. package/build/esm/cjs/src/registry.d.ts.map +0 -1
  37. package/build/esm/cjs/src/registry.js +0 -23
  38. package/build/esm/cjs/src/registry.js.map +0 -1
  39. package/build/esm/cjs/src/signer.d.ts +0 -250
  40. package/build/esm/cjs/src/signer.d.ts.map +0 -1
  41. package/build/esm/cjs/src/signer.js +0 -617
  42. package/build/esm/cjs/src/signer.js.map +0 -1
  43. package/build/esm/cjs/src/types.d.ts +0 -221
  44. package/build/esm/cjs/src/types.d.ts.map +0 -1
  45. package/build/esm/cjs/src/types.js.map +0 -1
  46. package/build/esm/cjs/src/utils.d.ts +0 -233
  47. package/build/esm/cjs/src/utils.d.ts.map +0 -1
  48. package/build/esm/cjs/src/utils.js +0 -571
  49. package/build/esm/cjs/src/utils.js.map +0 -1
  50. package/build/esm/esm/src/types.js +0 -43
  51. package/build/types/cjs/src/index.d.ts +0 -142
  52. package/build/types/cjs/src/index.d.ts.map +0 -1
  53. package/build/types/cjs/src/modules/_.d.ts +0 -81
  54. package/build/types/cjs/src/modules/_.d.ts.map +0 -1
  55. package/build/types/cjs/src/modules/did.d.ts +0 -490
  56. package/build/types/cjs/src/modules/did.d.ts.map +0 -1
  57. package/build/types/cjs/src/modules/feeabstraction.d.ts +0 -429
  58. package/build/types/cjs/src/modules/feeabstraction.d.ts.map +0 -1
  59. package/build/types/cjs/src/modules/feemarket.d.ts +0 -244
  60. package/build/types/cjs/src/modules/feemarket.d.ts.map +0 -1
  61. package/build/types/cjs/src/modules/oracle.d.ts +0 -563
  62. package/build/types/cjs/src/modules/oracle.d.ts.map +0 -1
  63. package/build/types/cjs/src/modules/resource.d.ts +0 -332
  64. package/build/types/cjs/src/modules/resource.d.ts.map +0 -1
  65. package/build/types/cjs/src/querier.d.ts +0 -83
  66. package/build/types/cjs/src/querier.d.ts.map +0 -1
  67. package/build/types/cjs/src/registry.d.ts +0 -18
  68. package/build/types/cjs/src/registry.d.ts.map +0 -1
  69. package/build/types/cjs/src/signer.d.ts +0 -250
  70. package/build/types/cjs/src/signer.d.ts.map +0 -1
  71. package/build/types/cjs/src/types.d.ts +0 -221
  72. package/build/types/cjs/src/types.d.ts.map +0 -1
  73. package/build/types/cjs/src/utils.d.ts +0 -233
  74. package/build/types/cjs/src/utils.d.ts.map +0 -1
  75. /package/build/esm/{esm/src/index.d.ts → index.d.ts} +0 -0
  76. /package/build/esm/{esm/src/index.d.ts.map → index.d.ts.map} +0 -0
  77. /package/build/esm/{esm/src/index.js → index.js} +0 -0
  78. /package/build/esm/{esm/src/index.js.map → index.js.map} +0 -0
  79. /package/build/esm/{esm/src/modules → modules}/_.d.ts +0 -0
  80. /package/build/esm/{esm/src/modules → modules}/_.d.ts.map +0 -0
  81. /package/build/esm/{esm/src/modules → modules}/_.js +0 -0
  82. /package/build/esm/{esm/src/modules → modules}/_.js.map +0 -0
  83. /package/build/esm/{esm/src/modules → modules}/did.d.ts +0 -0
  84. /package/build/esm/{esm/src/modules → modules}/did.d.ts.map +0 -0
  85. /package/build/esm/{esm/src/modules → modules}/did.js +0 -0
  86. /package/build/esm/{esm/src/modules → modules}/did.js.map +0 -0
  87. /package/build/esm/{esm/src/modules → modules}/feeabstraction.d.ts +0 -0
  88. /package/build/esm/{esm/src/modules → modules}/feeabstraction.d.ts.map +0 -0
  89. /package/build/esm/{esm/src/modules → modules}/feeabstraction.js +0 -0
  90. /package/build/esm/{esm/src/modules → modules}/feeabstraction.js.map +0 -0
  91. /package/build/esm/{esm/src/modules → modules}/feemarket.d.ts +0 -0
  92. /package/build/esm/{esm/src/modules → modules}/feemarket.d.ts.map +0 -0
  93. /package/build/esm/{esm/src/modules → modules}/feemarket.js +0 -0
  94. /package/build/esm/{esm/src/modules → modules}/feemarket.js.map +0 -0
  95. /package/build/esm/{esm/src/modules → modules}/oracle.d.ts +0 -0
  96. /package/build/esm/{esm/src/modules → modules}/oracle.d.ts.map +0 -0
  97. /package/build/esm/{esm/src/modules → modules}/oracle.js +0 -0
  98. /package/build/esm/{esm/src/modules → modules}/oracle.js.map +0 -0
  99. /package/build/esm/{esm/src/modules → modules}/resource.d.ts +0 -0
  100. /package/build/esm/{esm/src/modules → modules}/resource.d.ts.map +0 -0
  101. /package/build/esm/{esm/src/modules → modules}/resource.js +0 -0
  102. /package/build/esm/{esm/src/modules → modules}/resource.js.map +0 -0
  103. /package/build/esm/{esm/src/querier.d.ts → querier.d.ts} +0 -0
  104. /package/build/esm/{esm/src/querier.d.ts.map → querier.d.ts.map} +0 -0
  105. /package/build/esm/{esm/src/querier.js → querier.js} +0 -0
  106. /package/build/esm/{esm/src/querier.js.map → querier.js.map} +0 -0
  107. /package/build/esm/{esm/src/registry.d.ts → registry.d.ts} +0 -0
  108. /package/build/esm/{esm/src/registry.d.ts.map → registry.d.ts.map} +0 -0
  109. /package/build/esm/{esm/src/registry.js → registry.js} +0 -0
  110. /package/build/esm/{esm/src/registry.js.map → registry.js.map} +0 -0
  111. /package/build/esm/{esm/src/signer.d.ts → signer.d.ts} +0 -0
  112. /package/build/esm/{esm/src/signer.d.ts.map → signer.d.ts.map} +0 -0
  113. /package/build/esm/{esm/src/signer.js → signer.js} +0 -0
  114. /package/build/esm/{esm/src/signer.js.map → signer.js.map} +0 -0
  115. /package/build/esm/{esm/src/types.d.ts → types.d.ts} +0 -0
  116. /package/build/esm/{esm/src/types.d.ts.map → types.d.ts.map} +0 -0
  117. /package/build/esm/{cjs/src/types.js → types.js} +0 -0
  118. /package/build/esm/{esm/src/types.js.map → types.js.map} +0 -0
  119. /package/build/esm/{esm/src/utils.d.ts → utils.d.ts} +0 -0
  120. /package/build/esm/{esm/src/utils.d.ts.map → utils.d.ts.map} +0 -0
  121. /package/build/esm/{esm/src/utils.js → utils.js} +0 -0
  122. /package/build/esm/{esm/src/utils.js.map → utils.js.map} +0 -0
  123. /package/build/types/{esm/src/index.d.ts → index.d.ts} +0 -0
  124. /package/build/types/{esm/src/index.d.ts.map → index.d.ts.map} +0 -0
  125. /package/build/types/{esm/src/modules → modules}/_.d.ts +0 -0
  126. /package/build/types/{esm/src/modules → modules}/_.d.ts.map +0 -0
  127. /package/build/types/{esm/src/modules → modules}/did.d.ts +0 -0
  128. /package/build/types/{esm/src/modules → modules}/did.d.ts.map +0 -0
  129. /package/build/types/{esm/src/modules → modules}/feeabstraction.d.ts +0 -0
  130. /package/build/types/{esm/src/modules → modules}/feeabstraction.d.ts.map +0 -0
  131. /package/build/types/{esm/src/modules → modules}/feemarket.d.ts +0 -0
  132. /package/build/types/{esm/src/modules → modules}/feemarket.d.ts.map +0 -0
  133. /package/build/types/{esm/src/modules → modules}/oracle.d.ts +0 -0
  134. /package/build/types/{esm/src/modules → modules}/oracle.d.ts.map +0 -0
  135. /package/build/types/{esm/src/modules → modules}/resource.d.ts +0 -0
  136. /package/build/types/{esm/src/modules → modules}/resource.d.ts.map +0 -0
  137. /package/build/types/{esm/src/querier.d.ts → querier.d.ts} +0 -0
  138. /package/build/types/{esm/src/querier.d.ts.map → querier.d.ts.map} +0 -0
  139. /package/build/types/{esm/src/registry.d.ts → registry.d.ts} +0 -0
  140. /package/build/types/{esm/src/registry.d.ts.map → registry.d.ts.map} +0 -0
  141. /package/build/types/{esm/src/signer.d.ts → signer.d.ts} +0 -0
  142. /package/build/types/{esm/src/signer.d.ts.map → signer.d.ts.map} +0 -0
  143. /package/build/types/{esm/src/types.d.ts → types.d.ts} +0 -0
  144. /package/build/types/{esm/src/types.d.ts.map → types.d.ts.map} +0 -0
  145. /package/build/types/{esm/src/utils.d.ts → utils.d.ts} +0 -0
  146. /package/build/types/{esm/src/utils.d.ts.map → utils.d.ts.map} +0 -0
@@ -1,83 +0,0 @@
1
- import { QueryClient } from '@cosmjs/stargate-cjs';
2
- import { Tendermint34Client, Tendermint37Client, ConsensusParams } from '@cosmjs/tendermint-rpc-cjs';
3
- import { QueryExtensionSetup, CheqdExtensions, CheqdNetwork } from './types';
4
- import { GetNodeInfoResponse } from 'cosmjs-types-cjs/cosmos/base/tendermint/v1beta1/query';
5
- /**
6
- * Extended QueryClient specifically designed for the Cheqd blockchain network.
7
- * Provides enhanced querying capabilities with support for custom extensions
8
- * and consensus parameter retrieval.
9
- */
10
- export declare class CheqdQuerier extends QueryClient {
11
- /**
12
- * Constructs a new CheqdQuerier instance with the provided Tendermint client.
13
- *
14
- * @param tmClient - Tendermint client (v34 or v37) for blockchain communication
15
- */
16
- constructor(tmClient: Tendermint37Client | Tendermint34Client);
17
- /**
18
- * Retrieves the consensus parameters from the blockchain network.
19
- * This method creates a temporary connection to fetch the latest block results
20
- * and extract consensus update information.
21
- *
22
- * @param url - RPC URL of the blockchain node
23
- * @returns Promise resolving to consensus parameters or undefined if not available
24
- */
25
- static getConsensusParameters(url: string): Promise<ConsensusParams | undefined>;
26
- /**
27
- * Queries the node information over RPC to retrieve binary (application) version details.
28
- * Uses the Cosmos base tendermint service which returns both application and consensus versions.
29
- *
30
- * @param url - RPC URL of the blockchain node
31
- * @returns Promise resolving to GetNodeInfoResponse containing version info
32
- */
33
- static getNodeInfo(url: string): Promise<GetNodeInfoResponse>;
34
- /**
35
- * Resolves the Cheqd network (mainnet/testnet) from the node info response.
36
- * @param nodeInfo - Node info response to inspect
37
- * @returns Detected network or undefined if it cannot be inferred
38
- */
39
- static resolveNetworkFromNodeInfo(nodeInfo: GetNodeInfoResponse): CheqdNetwork | undefined;
40
- /**
41
- * Detects the network (mainnet/testnet) by querying the node info over RPC.
42
- * @param url - RPC URL of the blockchain node
43
- * @returns Resolved CheqdNetwork value
44
- */
45
- static detectNetwork(url: string): Promise<CheqdNetwork>;
46
- /**
47
- * Creates a new CheqdQuerier instance by establishing a connection to the specified RPC URL.
48
- * This is the primary method for creating a querier instance for blockchain communication.
49
- *
50
- * @param url - RPC URL of the blockchain node to connect to
51
- * @returns Promise resolving to a connected CheqdQuerier instance
52
- */
53
- static connect(url: string): Promise<CheqdQuerier>;
54
- /**
55
- * Creates a CheqdQuerier instance from an existing Tendermint client.
56
- * Useful when you already have an established client connection.
57
- *
58
- * @param client - Existing Tendermint client (v34 or v37)
59
- * @returns Promise resolving to a CheqdQuerier instance using the provided client
60
- */
61
- static fromClient(client: Tendermint34Client | Tendermint37Client): Promise<CheqdQuerier>;
62
- /**
63
- * Creates a CheqdQuerier instance with a single query extension.
64
- * Extensions provide specialized query capabilities for specific blockchain modules.
65
- *
66
- * @param url - RPC URL of the blockchain node to connect to
67
- * @param extension - Query extension setup to add specialized query functionality
68
- * @returns Promise resolving to a CheqdQuerier instance with the specified extension
69
- */
70
- static connectWithExtension(url: string, extension: QueryExtensionSetup<CheqdExtensions>): Promise<CheqdQuerier & CheqdExtensions>;
71
- /**
72
- * Creates a CheqdQuerier instance with multiple query extensions.
73
- * This method supports adding multiple specialized query capabilities for different
74
- * blockchain modules in a single operation. For single extensions, it delegates
75
- * to connectWithExtension for efficiency.
76
- *
77
- * @param url - RPC URL of the blockchain node to connect to
78
- * @param extensions - Variable number of query extension setups to add functionality
79
- * @returns Promise resolving to a CheqdQuerier instance with all specified extensions
80
- */
81
- static connectWithExtensions(url: string, ...extensions: QueryExtensionSetup<CheqdExtensions>[]): Promise<CheqdQuerier & CheqdExtensions>;
82
- }
83
- //# sourceMappingURL=querier.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"querier.d.ts","sourceRoot":"","sources":["../../../../cjs/src/querier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA2B,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AACrG,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAqB,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAE/G;;;;GAIG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC5C;;;;OAIG;gBACS,QAAQ,EAAE,kBAAkB,GAAG,kBAAkB;IAI7D;;;;;;;OAOG;WACU,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC;IActF;;;;;;OAMG;WACU,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAanE;;;;OAIG;IACH,MAAM,CAAC,0BAA0B,CAAC,QAAQ,EAAE,mBAAmB,GAAG,YAAY,GAAG,SAAS;IAkB1F;;;;OAIG;WACU,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAK9D;;;;;;OAMG;WACU,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAKxD;;;;;;OAMG;WACU,UAAU,CAAC,MAAM,EAAE,kBAAkB,GAAG,kBAAkB,GAAG,OAAO,CAAC,YAAY,CAAC;IAI/F;;;;;;;OAOG;WACU,oBAAoB,CAChC,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,mBAAmB,CAAC,eAAe,CAAC,GAC7C,OAAO,CAAC,YAAY,GAAG,eAAe,CAAC;IAK1C;;;;;;;;;OASG;WACU,qBAAqB,CACjC,GAAG,EAAE,MAAM,EACX,GAAG,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,EAAE,GACnD,OAAO,CAAC,YAAY,GAAG,eAAe,CAAC;CAc1C"}
@@ -1,138 +0,0 @@
1
- import { QueryClient, createProtobufRpcClient } from '@cosmjs/stargate-cjs';
2
- import { Tendermint37Client } from '@cosmjs/tendermint-rpc-cjs';
3
- import { CheqdNetwork } from './types';
4
- import { ServiceClientImpl } from 'cosmjs-types-cjs/cosmos/base/tendermint/v1beta1/query';
5
- /**
6
- * Extended QueryClient specifically designed for the Cheqd blockchain network.
7
- * Provides enhanced querying capabilities with support for custom extensions
8
- * and consensus parameter retrieval.
9
- */
10
- export class CheqdQuerier extends QueryClient {
11
- /**
12
- * Constructs a new CheqdQuerier instance with the provided Tendermint client.
13
- *
14
- * @param tmClient - Tendermint client (v34 or v37) for blockchain communication
15
- */
16
- constructor(tmClient) {
17
- super(tmClient);
18
- }
19
- /**
20
- * Retrieves the consensus parameters from the blockchain network.
21
- * This method creates a temporary connection to fetch the latest block results
22
- * and extract consensus update information.
23
- *
24
- * @param url - RPC URL of the blockchain node
25
- * @returns Promise resolving to consensus parameters or undefined if not available
26
- */
27
- static async getConsensusParameters(url) {
28
- // connect to comet rpc
29
- const cometClient = await Tendermint37Client.connect(url);
30
- // get block results
31
- const result = await cometClient.blockResults();
32
- // disconnect comet client
33
- cometClient.disconnect();
34
- // return consensus parameters
35
- return result.consensusUpdates;
36
- }
37
- /**
38
- * Queries the node information over RPC to retrieve binary (application) version details.
39
- * Uses the Cosmos base tendermint service which returns both application and consensus versions.
40
- *
41
- * @param url - RPC URL of the blockchain node
42
- * @returns Promise resolving to GetNodeInfoResponse containing version info
43
- */
44
- static async getNodeInfo(url) {
45
- const tmClient = await Tendermint37Client.connect(url);
46
- try {
47
- const baseQuerier = new QueryClient(tmClient);
48
- const rpcClient = createProtobufRpcClient(baseQuerier);
49
- const tendermintService = new ServiceClientImpl(rpcClient);
50
- return await tendermintService.GetNodeInfo({});
51
- }
52
- finally {
53
- tmClient.disconnect();
54
- }
55
- }
56
- /**
57
- * Resolves the Cheqd network (mainnet/testnet) from the node info response.
58
- * @param nodeInfo - Node info response to inspect
59
- * @returns Detected network or undefined if it cannot be inferred
60
- */
61
- static resolveNetworkFromNodeInfo(nodeInfo) {
62
- const chainId = nodeInfo.defaultNodeInfo?.network ||
63
- nodeInfo.applicationVersion?.appName ||
64
- nodeInfo.applicationVersion?.name ||
65
- nodeInfo.applicationVersion?.version;
66
- if (!chainId)
67
- return undefined;
68
- const chainIdLower = chainId.toLowerCase();
69
- if (chainIdLower.includes(CheqdNetwork.Mainnet)) {
70
- return CheqdNetwork.Mainnet;
71
- }
72
- if (chainIdLower.includes(CheqdNetwork.Testnet)) {
73
- return CheqdNetwork.Testnet;
74
- }
75
- return undefined;
76
- }
77
- /**
78
- * Detects the network (mainnet/testnet) by querying the node info over RPC.
79
- * @param url - RPC URL of the blockchain node
80
- * @returns Resolved CheqdNetwork value
81
- */
82
- static async detectNetwork(url) {
83
- const nodeInfo = await CheqdQuerier.getNodeInfo(url);
84
- return CheqdQuerier.resolveNetworkFromNodeInfo(nodeInfo) ?? CheqdNetwork.Testnet;
85
- }
86
- /**
87
- * Creates a new CheqdQuerier instance by establishing a connection to the specified RPC URL.
88
- * This is the primary method for creating a querier instance for blockchain communication.
89
- *
90
- * @param url - RPC URL of the blockchain node to connect to
91
- * @returns Promise resolving to a connected CheqdQuerier instance
92
- */
93
- static async connect(url) {
94
- const tmClient = await Tendermint37Client.connect(url);
95
- return new CheqdQuerier(tmClient);
96
- }
97
- /**
98
- * Creates a CheqdQuerier instance from an existing Tendermint client.
99
- * Useful when you already have an established client connection.
100
- *
101
- * @param client - Existing Tendermint client (v34 or v37)
102
- * @returns Promise resolving to a CheqdQuerier instance using the provided client
103
- */
104
- static async fromClient(client) {
105
- return new CheqdQuerier(client);
106
- }
107
- /**
108
- * Creates a CheqdQuerier instance with a single query extension.
109
- * Extensions provide specialized query capabilities for specific blockchain modules.
110
- *
111
- * @param url - RPC URL of the blockchain node to connect to
112
- * @param extension - Query extension setup to add specialized query functionality
113
- * @returns Promise resolving to a CheqdQuerier instance with the specified extension
114
- */
115
- static async connectWithExtension(url, extension) {
116
- const tmClient = await Tendermint37Client.connect(url);
117
- return CheqdQuerier.withExtensions(tmClient, extension);
118
- }
119
- /**
120
- * Creates a CheqdQuerier instance with multiple query extensions.
121
- * This method supports adding multiple specialized query capabilities for different
122
- * blockchain modules in a single operation. For single extensions, it delegates
123
- * to connectWithExtension for efficiency.
124
- *
125
- * @param url - RPC URL of the blockchain node to connect to
126
- * @param extensions - Variable number of query extension setups to add functionality
127
- * @returns Promise resolving to a CheqdQuerier instance with all specified extensions
128
- */
129
- static async connectWithExtensions(url, ...extensions) {
130
- if (extensions.length === 1) {
131
- return CheqdQuerier.connectWithExtension(url, extensions[0]);
132
- }
133
- const tmClient = await Tendermint37Client.connect(url);
134
- const tupleLike = extensions;
135
- return CheqdQuerier.withExtensions(tmClient, ...tupleLike);
136
- }
137
- }
138
- //# sourceMappingURL=querier.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"querier.js","sourceRoot":"","sources":["../../../../cjs/src/querier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAsB,kBAAkB,EAAmB,MAAM,4BAA4B,CAAC;AACrG,OAAO,EAAwC,YAAY,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAuB,MAAM,uDAAuD,CAAC;AAE/G;;;;GAIG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC5C;;;;OAIG;IACH,YAAY,QAAiD;QAC5D,KAAK,CAAC,QAAQ,CAAC,CAAC;IACjB,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC,GAAW;QAC9C,uBAAuB;QACvB,MAAM,WAAW,GAAG,MAAM,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAE1D,oBAAoB;QACpB,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,YAAY,EAAE,CAAC;QAEhD,0BAA0B;QAC1B,WAAW,CAAC,UAAU,EAAE,CAAC;QAEzB,8BAA8B;QAC9B,OAAO,MAAM,CAAC,gBAAgB,CAAC;IAChC,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,GAAW;QACnC,MAAM,QAAQ,GAAG,MAAM,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,C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AC,KAAK,CAAC,OAAO,CAAC,GAAW;QAC/B,MAAM,QAAQ,GAAG,MAAM,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACvD,OAAO,IAAI,YAAY,CAAC,QAAQ,CAAC,CAAC;IACnC,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,MAA+C;QACtE,OAAO,IAAI,YAAY,CAAC,MAAM,CAAC,CAAC;IACjC,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAChC,GAAW,EACX,SAA+C;QAE/C,MAAM,QAAQ,GAAG,MAAM,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACvD,OAAO,YAAY,CAAC,cAAc,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IACzD,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,KAAK,CAAC,qBAAqB,CACjC,GAAW,EACX,GAAG,UAAkD;QAErD,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC7B,OAAO,YAAY,CAAC,oBAAoB,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;QAC9D,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACvD,MAAM,SAAS,GAAG,UAKjB,CAAC;QACF,OAAO,YAAY,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,SAAS,CAAC,CAAC;IAC5D,CAAC;CACD"}
@@ -1,18 +0,0 @@
1
- import { Registry, GeneratedType } from '@cosmjs/proto-signing-cjs';
2
- /**
3
- * Creates a default Cheqd registry with optional custom types.
4
- * The registry is used for encoding and decoding protobuf messages in blockchain transactions.
5
- * It includes all default Stargate types and any additional custom types provided.
6
- *
7
- * @param customTypes - Optional iterable of custom type mappings to add to the registry.
8
- * Each entry should be a tuple of [typeUrl, GeneratedType].
9
- * @returns A configured Registry instance with default and custom types
10
- */
11
- export declare function createDefaultCheqdRegistry(customTypes?: Iterable<[string, GeneratedType]>): Registry;
12
- /**
13
- * Pre-configured Cheqd registry instance with default Stargate types.
14
- * This is a ready-to-use registry for basic blockchain operations that don't require
15
- * custom message types. For applications needing custom types, use createDefaultCheqdRegistry instead.
16
- */
17
- export declare const CheqdRegistry: Registry;
18
- //# sourceMappingURL=registry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../cjs/src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAIpE;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,GAAG,QAAQ,CAGpG;AAED;;;;GAIG;AACH,eAAO,MAAM,aAAa,UAAqC,CAAC"}
@@ -1,23 +0,0 @@
1
- import { Registry } from '@cosmjs/proto-signing-cjs';
2
- import { defaultRegistryTypes } from '@cosmjs/stargate-cjs';
3
- /**
4
- * Creates a default Cheqd registry with optional custom types.
5
- * The registry is used for encoding and decoding protobuf messages in blockchain transactions.
6
- * It includes all default Stargate types and any additional custom types provided.
7
- *
8
- * @param customTypes - Optional iterable of custom type mappings to add to the registry.
9
- * Each entry should be a tuple of [typeUrl, GeneratedType].
10
- * @returns A configured Registry instance with default and custom types
11
- */
12
- export function createDefaultCheqdRegistry(customTypes) {
13
- if (!customTypes)
14
- customTypes = [];
15
- return new Registry([...defaultRegistryTypes, ...customTypes]);
16
- }
17
- /**
18
- * Pre-configured Cheqd registry instance with default Stargate types.
19
- * This is a ready-to-use registry for basic blockchain operations that don't require
20
- * custom message types. For applications needing custom types, use createDefaultCheqdRegistry instead.
21
- */
22
- export const CheqdRegistry = new Registry(defaultRegistryTypes);
23
- //# sourceMappingURL=registry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../../cjs/src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D;;;;;;;;GAQG;AACH,MAAM,UAAU,0BAA0B,CAAC,WAA+C;IACzF,IAAI,CAAC,WAAW;QAAE,WAAW,GAAG,EAAE,CAAC;IACnC,OAAO,IAAI,QAAQ,CAAC,CAAC,GAAG,oBAAoB,EAAE,GAAG,WAAW,CAAC,CAAC,CAAC;AAChE,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,QAAQ,CAAC,oBAAoB,CAAC,CAAC"}
@@ -1,250 +0,0 @@
1
- import { EncodeObject, OfflineSigner } from '@cosmjs/proto-signing-cjs';
2
- import { DeliverTxResponse, GasPrice, HttpEndpoint, SigningStargateClient, SigningStargateClientOptions, SignerData } from '@cosmjs/stargate-cjs';
3
- import { Tendermint37Client } from '@cosmjs/tendermint-rpc-cjs';
4
- import { MsgCreateDidDocPayload, SignInfo, MsgUpdateDidDocPayload, MsgDeactivateDidDocPayload, VerificationMethod } from '@cheqd/ts-proto-cjs/cheqd/did/v2';
5
- import { DIDDocument, DidStdFee, ISignInputs, MessageBatch, TSignerAlgo, TxExtension } from './types';
6
- import { Signer } from 'did-jwt-cjs';
7
- import { SignerInfo, TxRaw } from 'cosmjs-types-cjs/cosmos/tx/v1beta1/tx';
8
- import { SignMode } from 'cosmjs-types-cjs/cosmos/tx/signing/v1beta1/signing';
9
- import { Any } from 'cosmjs-types-cjs/google/protobuf/any';
10
- import { Coin } from 'cosmjs-types-cjs/cosmos/base/v1beta1/coin';
11
- import { CheqdQuerier } from './querier';
12
- /**
13
- * Calculates the transaction fee for DID operations using gas limit and gas price.
14
- *
15
- * @param gasLimit - Maximum amount of gas units that can be consumed by the transaction
16
- * @param gasPrice - Price per gas unit, either as a string or GasPrice object
17
- * @returns DidStdFee object containing the calculated fee structure
18
- */
19
- export declare function calculateDidFee(gasLimit: number, gasPrice: string | GasPrice): DidStdFee;
20
- /**
21
- * Creates SignerInfo objects for transaction authentication from signer data.
22
- * Each signer info contains the public key, sequence number, and signing mode.
23
- *
24
- * @param signers - Array of signer objects containing public keys and sequence numbers
25
- * @param signMode - Signing mode to use (e.g., SIGN_MODE_DIRECT)
26
- * @returns Array of SignerInfo objects for transaction authentication
27
- */
28
- export declare function makeSignerInfos(signers: ReadonlyArray<{
29
- readonly pubkey: Any;
30
- readonly sequence: number;
31
- }>, signMode: SignMode): SignerInfo[];
32
- /**
33
- * Creates encoded AuthInfo bytes for DID transactions with fee payer support.
34
- * The AuthInfo contains signer information, fee details, and gas limit.
35
- *
36
- * @param signers - Array of signer objects with public keys and sequence numbers
37
- * @param feeAmount - Array of coins representing the transaction fee
38
- * @param gasLimit - Maximum gas units that can be consumed
39
- * @param feePayer - Address of the account paying the transaction fees
40
- * @param signMode - Signing mode to use, defaults to SIGN_MODE_DIRECT
41
- * @returns Encoded AuthInfo as Uint8Array for transaction construction
42
- */
43
- export declare function makeDidAuthInfoBytes(signers: ReadonlyArray<{
44
- readonly pubkey: Any;
45
- readonly sequence: number;
46
- }>, feeAmount: readonly Coin[], gasLimit: number, feePayer: string, signMode?: SignMode): Uint8Array;
47
- /**
48
- * Extended SigningStargateClient specifically designed for Cheqd blockchain operations.
49
- * Provides enhanced transaction signing, broadcasting, and DID-specific functionality
50
- * with support for custom fee payers and advanced retry mechanisms.
51
- */
52
- export declare class CheqdSigningStargateClient extends SigningStargateClient {
53
- /** Map of DID signing algorithms for different verification method types */
54
- private didSigners;
55
- /** Gas price configuration for transaction fee calculation */
56
- private readonly _gasPrice;
57
- /** Offline signer instance for transaction signing */
58
- private readonly _signer;
59
- /** RPC endpoint URL for blockchain communication */
60
- private readonly endpoint?;
61
- /** Maximum gas limit allowed for transactions */
62
- static readonly maxGasLimit: number;
63
- /**
64
- * Creates a new CheqdSigningStargateClient by establishing a connection to the specified endpoint.
65
- * This is the primary factory method for creating a signing client instance.
66
- *
67
- * @param endpoint - RPC endpoint URL or HttpEndpoint object to connect to
68
- * @param signer - Offline signer for transaction signing
69
- * @param options - Additional client configuration options including registry and gas price
70
- * @returns Promise resolving to a connected CheqdSigningStargateClient instance
71
- */
72
- static connectWithSigner(endpoint: string | HttpEndpoint, signer: OfflineSigner, options?: (SigningStargateClientOptions & {
73
- endpoint?: string;
74
- }) | undefined): Promise<CheqdSigningStargateClient>;
75
- /**
76
- * Constructs a new CheqdSigningStargateClient instance with the provided Comet client and signer.
77
- *
78
- * @param cometClient - Tendermint client for blockchain communication
79
- * @param signer - Offline signer for transaction signing
80
- * @param options - Additional configuration options including registry, gas price, and endpoint
81
- */
82
- constructor(cometClient: Tendermint37Client | undefined, signer: OfflineSigner, options?: SigningStargateClientOptions & {
83
- endpoint?: string;
84
- });
85
- /**
86
- * Signs and broadcasts a transaction to the blockchain network.
87
- * Supports automatic fee calculation and custom fee payer functionality.
88
- *
89
- * @param signerAddress - Address of the account signing the transaction
90
- * @param messages - Array of messages to include in the transaction
91
- * @param fee - Fee configuration: 'auto' for automatic calculation, number for multiplier, or DidStdFee object
92
- * @param memo - Optional transaction memo string
93
- * @returns Promise resolving to DeliverTxResponse with transaction results
94
- * @throws Error if gas price is not set when using automatic fee calculation
95
- */
96
- signAndBroadcast(signerAddress: string, messages: readonly EncodeObject[], fee: DidStdFee | 'auto' | number, memo?: string): Promise<DeliverTxResponse>;
97
- /**
98
- * Signs a transaction without broadcasting it to the network.
99
- * Creates a signed transaction that can be broadcast later.
100
- *
101
- * @param signerAddress - Address of the account signing the transaction
102
- * @param messages - Array of messages to include in the transaction
103
- * @param fee - Fee configuration for the transaction
104
- * @param memo - Transaction memo string
105
- * @param explicitSignerData - Optional explicit signer data to avoid querying the chain
106
- * @returns Promise resolving to TxRaw containing the signed transaction
107
- */
108
- sign(signerAddress: string, messages: readonly EncodeObject[], fee: DidStdFee, memo: string, explicitSignerData?: SignerData): Promise<TxRaw>;
109
- /**
110
- * Internal method for direct signing of transactions using SIGN_MODE_DIRECT.
111
- * Handles the low-level transaction construction and signing process.
112
- *
113
- * @param signerAddress - Address of the account signing the transaction
114
- * @param messages - Array of messages to include in the transaction
115
- * @param fee - Fee configuration for the transaction
116
- * @param memo - Transaction memo string
117
- * @param signerData - Account data including number, sequence, and chain ID
118
- * @returns Promise resolving to TxRaw containing the signed transaction
119
- * @private
120
- */
121
- private _signDirect;
122
- /**
123
- * Broadcasts a signed transaction to the network and monitors its inclusion in a block,
124
- * with support for retrying on failure and graceful timeout handling.
125
- *
126
- * ## Optimizations over base implementation:
127
- * - Implements a retry policy (`maxRetries`, default: 3) to handle transient broadcast errors.
128
- * - Prevents double spend by reusing the exact same signed transaction (immutable `Uint8Array`).
129
- * - Tracks and returns the last known transaction hash (`txId`), even in the case of timeout or failure.
130
- * - Throws a `TimeoutError` if the transaction is not found within `timeoutMs`, attaching the `txHash` if known.
131
- * - Polling frequency and timeout are customizable via `pollIntervalMs` and `timeoutMs` parameters.
132
- *
133
- * @param tx - The signed transaction bytes to broadcast.
134
- * @param timeoutMs - Maximum duration (in milliseconds) to wait for block inclusion. Defaults to 60,000 ms.
135
- * @param pollIntervalMs - Polling interval (in milliseconds) when checking for transaction inclusion. Defaults to 3,000 ms.
136
- * @param maxRetries - Maximum number of times to retry `broadcastTxSync` on failure. Defaults to 3.
137
- *
138
- * @returns A `Promise` that resolves to `DeliverTxResponse` upon successful inclusion in a block.
139
- * @throws `BroadcastTxError` if the transaction is rejected by the node during CheckTx.
140
- * @throws `TimeoutError` if the transaction is not found on-chain within the timeout window. Includes `txHash` if available.
141
- */
142
- broadcastTx(tx: Uint8Array, timeoutMs?: number, pollIntervalMs?: number, maxRetries?: number): Promise<DeliverTxResponse>;
143
- /**
144
- * Broadcasts a signed transaction to the network without monitoring it.
145
- * Returns the transaction hash immediately after broadcast submission.
146
- *
147
- * If broadcasting is rejected by the node for some reason (e.g. because of a CheckTx failure),
148
- * an error is thrown.
149
- *
150
- * If the transaction is broadcasted, a `string` containing the hash of the transaction is returned. The caller then
151
- * usually needs to check if the transaction was included in a block and was successful.
152
- *
153
- * @param tx - Signed transaction bytes to broadcast
154
- * @returns Promise resolving to the hash of the transaction
155
- * @throws BroadcastTxError if the transaction is rejected during CheckTx
156
- */
157
- broadcastTxSync(tx: Uint8Array): Promise<string>;
158
- /**
159
- * Simulates transaction execution to estimate gas usage.
160
- * Uses the configured endpoint to query the blockchain for gas estimation.
161
- *
162
- * @param signerAddress - Address of the account that would sign the transaction
163
- * @param messages - Array of messages to simulate
164
- * @param memo - Transaction memo string
165
- * @returns Promise resolving to the estimated gas units required
166
- * @throws Error if endpoint is not configured
167
- */
168
- simulate(signerAddress: string, messages: readonly EncodeObject[], memo: string | undefined): Promise<number>;
169
- /**
170
- * Constructs a transaction extension object for simulation and query operations.
171
- * Provides methods for transaction simulation and retrieval.
172
- *
173
- * @param querier - CheqdQuerier instance for blockchain communication
174
- * @returns Promise resolving to TxExtension with simulation and query capabilities
175
- */
176
- constructSimulateExtension(querier: CheqdQuerier): Promise<TxExtension>;
177
- /**
178
- * Batches multiple messages into optimal groups based on gas limits.
179
- * Simulates each message individually and groups them to maximize throughput
180
- * while staying within gas constraints.
181
- *
182
- * @param messages - Array of messages to batch
183
- * @param signerAddress - Address of the account that will sign the transactions
184
- * @param memo - Optional transaction memo
185
- * @param maxGasLimit - Maximum gas limit per batch, defaults to 30,000,000
186
- * @returns Promise resolving to MessageBatch with grouped messages and gas estimates
187
- */
188
- batchMessages(messages: readonly EncodeObject[], signerAddress: string, memo?: string, maxGasLimit?: number): Promise<MessageBatch>;
189
- /**
190
- * Validates and initializes DID signers for the provided verification methods.
191
- * Ensures that all verification method types are supported and assigns appropriate signers.
192
- *
193
- * @param verificationMethods - Array of verification methods to validate
194
- * @returns Promise resolving to the configured signer algorithm map
195
- * @throws Error if no verification methods are provided or unsupported types are found
196
- */
197
- checkDidSigners(verificationMethods?: Partial<VerificationMethod>[]): Promise<TSignerAlgo>;
198
- /**
199
- * Retrieves the appropriate DID signer for a specific verification method.
200
- * Looks up the verification method by ID and returns the corresponding signer function.
201
- *
202
- * @param verificationMethodId - ID of the verification method to get signer for
203
- * @param verificationMethods - Array of available verification methods
204
- * @returns Promise resolving to a signer function that takes a secret key
205
- * @throws Error if the verification method is not found
206
- */
207
- getDidSigner(verificationMethodId: string, verificationMethods: Partial<VerificationMethod>[]): Promise<(secretKey: Uint8Array) => Signer>;
208
- /**
209
- * Signs a CreateDidDoc transaction payload using the provided signing inputs.
210
- * Validates verification methods and creates signatures for each signing input.
211
- *
212
- * @param signInputs - Array of signing inputs containing verification method IDs and private keys
213
- * @param payload - CreateDidDoc payload to sign
214
- * @returns Promise resolving to array of SignInfo objects with signatures
215
- */
216
- signCreateDidDocTx(signInputs: ISignInputs[], payload: MsgCreateDidDocPayload): Promise<SignInfo[]>;
217
- /**
218
- * Signs an UpdateDidDoc transaction payload using the provided signing inputs.
219
- * Handles complex verification method resolution including external controllers
220
- * and previous DID document verification methods.
221
- *
222
- * @param signInputs - Array of signing inputs containing verification method IDs and private keys
223
- * @param payload - UpdateDidDoc payload to sign
224
- * @param externalControllers - Optional external controller DID documents
225
- * @param previousDidDocument - Optional previous version of the DID document
226
- * @returns Promise resolving to array of SignInfo objects with signatures
227
- */
228
- signUpdateDidDocTx(signInputs: ISignInputs[], payload: MsgUpdateDidDocPayload, externalControllers?: DIDDocument[], previousDidDocument?: DIDDocument): Promise<SignInfo[]>;
229
- /**
230
- * Signs a DeactivateDidDoc transaction payload using the provided signing inputs.
231
- * Validates verification methods and creates signatures for DID deactivation.
232
- *
233
- * @param signInputs - Array of signing inputs containing verification method IDs and private keys
234
- * @param payload - DeactivateDidDoc payload to sign
235
- * @param verificationMethod - Array of verification methods for signature validation
236
- * @returns Promise resolving to array of SignInfo objects with signatures
237
- */
238
- signDeactivateDidDocTx(signInputs: ISignInputs[], payload: MsgDeactivateDidDocPayload, verificationMethod: VerificationMethod[]): Promise<SignInfo[]>;
239
- /**
240
- * Static method for signing identity transactions with multiple key types.
241
- * Supports Ed25519, Secp256k1, and P256 signature algorithms.
242
- *
243
- * @param signBytes - Raw bytes to sign
244
- * @param signInputs - Array of signing inputs with key types and private keys
245
- * @returns Promise resolving to array of SignInfo objects with signatures
246
- * @throws Error if key type is undefined or unsupported
247
- */
248
- static signIdentityTx(signBytes: Uint8Array, signInputs: ISignInputs[]): Promise<SignInfo[]>;
249
- }
250
- //# sourceMappingURL=signer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"signer.d.ts","sourceRoot":"","sources":["../../../../cjs/src/signer.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EAEZ,aAAa,EAIb,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACN,iBAAiB,EACjB,QAAQ,EACR,YAAY,EACZ,qBAAqB,EACrB,4BAA4B,EAE5B,UAAU,EAIV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,OAAO,EACN,sBAAsB,EACtB,QAAQ,EACR,sBAAsB,EACtB,0BAA0B,EAC1B,kBAAkB,EAElB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACN,WAAW,EACX,SAAS,EACT,WAAW,EACX,YAAY,EACZ,WAAW,EACX,WAAW,EAEX,MAAM,SAAS,CAAC;AACjB,OAAO,EAA0C,MAAM,EAA6B,MAAM,aAAa,CAAC;AAKxG,OAAO,EAAY,UAAU,EAAE,KAAK,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,oDAAoD,CAAC;AAC9E,OAAO,EAAE,GAAG,EAAE,MAAM,sCAAsC,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,2CAA2C,CAAC;AAEjE,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAUzC;;;;;;GAMG;AACH,wBAAg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