@carbonx3/cx3.js 0.3.1 → 0.3.2

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.
package/README.md CHANGED
@@ -258,7 +258,7 @@ Type declarations (`index.d.ts`) ship with the package.
258
258
 
259
259
  ## Upgrading from 0.2.x
260
260
 
261
- Version 0.3.0 signs native transfers for the network's new signing format (0.3.1 only updates this README):
261
+ Version 0.3.0 signs native transfers for the network's new signing format (0.3.1 and 0.3.2 change only this README and the file headers, not the code):
262
262
 
263
263
  - **The genesis hash is signed.** `transferNative` asks the network for its chain id and genesis hash (`provider.getChainIdentity()`) unless both are given as `opts.chainId` and `opts.genesisHash`. 0.2.x transfers no longer verify on the chain.
264
264
  - **No fallback chain id.** `buildTransferPayload` throws `NO_CHAIN_IDENTITY` without `chainId` and `genesisHash`; the `CX3_CHAIN_ID` variable and the `chainIdBind` option are gone.
package/index.d.ts CHANGED
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @copyright 2026 Mersolution Technology Ltd. All rights reserved.
3
+ * @license PROPRIETARY
4
+ */
1
5
  export const VERSION: string;
2
6
 
3
7
  export class Cx3Error extends Error {
package/index.js CHANGED
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @copyright 2026 Mersolution Technology Ltd. All rights reserved.
3
+ * @license PROPRIETARY
4
+ */
1
5
  "use strict";
2
6
 
3
7
  const { Cx3Provider } = require("./src/provider");
@@ -29,7 +33,7 @@ const {
29
33
  } = require("./src/crypto");
30
34
  const { normalizeAbi, argsToParams } = require("./src/abi");
31
35
 
32
- const VERSION = "0.3.1";
36
+ const VERSION = "0.3.2";
33
37
 
34
38
  /**
35
39
  * Convenience: provider from `options.url` or env `CX3_NODE_URL` — the CX3Api gateway
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carbonx3/cx3.js",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Official Node.js SDK (CX3js) for CarbonX3 Green Chain: OAuth2 app access, local secp256k1 signing, ABI-bound contracts and token deploys over REST + JSON",
5
5
  "homepage": "https://cx3script.com",
6
6
  "publishConfig": {
package/src/abi.js CHANGED
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @copyright 2026 Mersolution Technology Ltd. All rights reserved.
3
+ * @license PROPRIETARY
4
+ */
1
5
  "use strict";
2
6
 
3
7
  const { Cx3Error } = require("./errors");
package/src/contract.js CHANGED
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @copyright 2026 Mersolution Technology Ltd. All rights reserved.
3
+ * @license PROPRIETARY
4
+ */
1
5
  "use strict";
2
6
 
3
7
  const { normalizeAbi, argsToParams } = require("./abi");
package/src/crypto.js CHANGED
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @copyright 2026 Mersolution Technology Ltd. All rights reserved.
3
+ * @license PROPRIETARY
4
+ */
1
5
  "use strict";
2
6
 
3
7
  const crypto = require("crypto");
package/src/digest.js CHANGED
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @copyright 2026 Mersolution Technology Ltd. All rights reserved.
3
+ * @license PROPRIETARY
4
+ */
1
5
  "use strict";
2
6
 
3
7
  const { Cx3Error } = require("./errors");
package/src/errors.js CHANGED
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @copyright 2026 Mersolution Technology Ltd. All rights reserved.
3
+ * @license PROPRIETARY
4
+ */
1
5
  "use strict";
2
6
 
3
7
  class Cx3Error extends Error {
package/src/factory.js CHANGED
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @copyright 2026 Mersolution Technology Ltd. All rights reserved.
3
+ * @license PROPRIETARY
4
+ */
1
5
  "use strict";
2
6
 
3
7
  const { Cx3Error } = require("./errors");
package/src/provider.js CHANGED
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @copyright 2026 Mersolution Technology Ltd. All rights reserved.
3
+ * @license PROPRIETARY
4
+ */
1
5
  "use strict";
2
6
 
3
7
  const { Cx3Error, Cx3HttpError, Cx3TxError } = require("./errors");
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @copyright 2026 Mersolution Technology Ltd. All rights reserved.
3
+ * @license PROPRIETARY
4
+ */
1
5
  "use strict";
2
6
 
3
7
  const { Cx3TxError } = require("./errors");
package/src/utils.js CHANGED
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @copyright 2026 Mersolution Technology Ltd. All rights reserved.
3
+ * @license PROPRIETARY
4
+ */
1
5
  "use strict";
2
6
 
3
7
  /**
package/src/wallet.js CHANGED
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @copyright 2026 Mersolution Technology Ltd. All rights reserved.
3
+ * @license PROPRIETARY
4
+ */
1
5
  "use strict";
2
6
 
3
7
  const {