-
Alan He authored
commit 9208aba6114a1629ff8e5eb1d87410ee065d94f9 Author: alanhe <qianghe421@gmail.com> Date: Wed Apr 8 10:24:44 2026 +0800 fix: update version to 0.0.1-alpha.3 commit 5efd94047f0f5059d0382b20f79fd51ce591a7ae Author: svenmanli <svenmanli@tencent.com> Date: Thu Apr 2 15:55:36 2026 +0800 fix: optimize commit c40dd0aee2d0c2eee01cef9d99182a9ad7c6e7d6 Author: alanhe <qianghe421@gmail.com> Date: Thu Apr 2 15:14:19 2026 +0800 fix: optimize commit 79d190608f662fe3761cee3ab93ef5169a17323c Author: alanhe <qianghe421@gmail.com> Date: Thu Apr 2 14:55:36 2026 +0800 fix: 在webpack配置中添加drop_console选项以优化构建输出 commit 9207914a8cca02f3bf824ac82335b6bf51a155ea Author: alanhe <qianghe421@gmail.com> Date: Thu Apr 2 14:32:21 2026 +0800 fix: 修正错误信息,更新gRPC协议不支持的环境描述 commit 9bbfc6f5bd182b757be637a4ddde911d0c7f9c97 Author: alanhe <qianghe421@gmail.com> Date: Thu Apr 2 14:30:27 2026 +0800 fix: 修复gRPC请求方法参数命名,优化钱包创建逻辑 commit a36544198bd32267e3b52296cb5e9e9435e89bde Author: alanhe <qianghe421@gmail.com> Date: Mon Mar 30 11:43:21 2026 +0800 docs: 更新README.md,调整项目结构描述,修正格式问题 commit 14f8052a29b051ace598eb326bfef5435f72637e Author: alanhe <qianghe421@gmail.com> Date: Mon Mar 30 11:42:09 2026 +0800 docs: 更新README.md,调整格式并补充项目结构介绍 commit 223f9633 Author: alanqianghe <alanqianghe@tencent.com> Date: Thu Dec 25 16:25:44 2025 +0800 fix/temp (merge request !6) Squash merge branch 'fix/temp' into 'main' * fix: 更新版本号至0.0.1-alpha.2 * fix: 返回压缩格式的公钥hex字符串以匹配Java SDK行为,更新相关测试用例 * fix: 增加对私钥输入的处理,区分十六进制和PEM格式,确保公钥返回格式正确 * fix: 修复私钥处理逻辑,移除0x前缀并确保填充至64个字符 * fix: 更新版本号至0.0.1-alpha commit 73bb5360 Author: alanqianghe <alanqianghe@tencent.com> Date: Wed Dec 24 13:54:11 2025 +0800 fix/secp256k1 (merge request !5) Squash merge branch 'fix/secp256k1' into 'main' * fix: 补充secp256k1公钥PEM格式测试用例,优化代码格式 * fix: 更新文档,增加gRPC代理支持说明,推荐使用HTTP方式 * fix: 修正HTTPS协议说明,确保用户了解TLS终端代理要求 * fix: 更新文档,修正chainmaker.yml中HTTP API服务开启说明 * fix: 调整请求代理文档位置,确保用户更易于查找和理解 * fix: 更新文档,增加K1曲线支持说明及示例代码 * feat: 添加钱包插件适配器示例文档,支持与第三方钱包插件集成 * fix: 更新index.html引用的脚本文件名为chainmaker-web3.js,修正默认提供者配置,添加orgId字段 * feat: 移除不必要的许可证文件并更新依赖 * fix: 修正web3.test.ts缩进和格式,增强secp256k1私钥HexString测试用例 * feat: upgrade web3.umd.js to support gRPC-JS, update webpack config, and add docs for new features * fix: 更新文档,明确HTTP API服务配置及签名逻辑默认使用secp256k1 * fix: 更新文档,建议npm使用时node版本为v22及以上 * fix: 更新钱包实例注释,明确内部签名器的签名逻辑 * feat: 修改包名为 @chainmaker/web3js * fix: 优化代码格式和注释,调整默认协议为HTTP * feat: bump package versions to 2.3.7-alpha.1 and include src directory in published files. * fix: 更新文档和包配置,增强可读性及准确性 * fix: 添加.npmrc文件并更新各package.json以配置npm注册表地址和访问权限 * build: optimize * fix: 添加.nrmrc文件,配置npm注册表地址 * fix: 更新文档和包配置,修正版本号及描述,增强可读性 * fix: 更新文档,调整格式和内容,增强可读性及使用说明 * fix: 更新文档,添加目录以增强可读性,移除多余内容 * fix: 更新文档,调整使用指南结构,增加与ethers.js的功能对比 * fix: 更新文档,增加chainmaker与ethers.js的对比,明确API使用差异 * fix: 添加使用前置依赖说明,明确ChainMaker区块链版本要求及HTTPS代理配置 * fix: 更新README和使用指南,增强对chainmaker-web3-js库的描述和功能说明 * fix: streamline gRPC service definition generation for JS and TypeScript * feat: add TypeScript definitions for various protobuf files * fix: add TypeScript definition generation to protobuf script * fix: del dist folder * fix: update secp256k1 private key conversion to PKCS#8 format in tests and implementation * fix: enhance secp256k1 private key handling and update related tests * fix: update transaction hash in web3 test case * fix: update wallet initialization and enhance contract deployment tests * fix: update contract deployment logic and add new proto files for system contracts * feat: add proto files for HTTP configuration and annotations, and update JavaScript generation script * fix: rename package to @chainmaker/grpc-web-client and update import paths * fix: update proto path in generate-js.sh and README for correct directory structure * fix: update proto path in generate-js.sh and README for correct directory structure * fix: add @grpc/grpc-js dependency to package.json * fix: add browser-like global shims for Node tests and implement gRPC Provider tests * fix: update TypeScript configuration to allow emitting files on error and adjust build script * fix: enhance secp256k1 private key handling with hex string support and update tests * fix: update globalObject in webpack config for better compatibility * fix: update envoy.yaml with new endpoint address and port * fix: add secp256k1 private key tests for public key generation and signing * fix: refactor ECDSA object instantiation for improved clarity * fix: integrate jsrsasign for enhanced key handling and signing functionality commit 0100f085 Author: alanqianghe <alanqianghe@tencent.com> Date: Thu Sep 25 11:55:56 2025 +0800 fix: add validation for private key input to prevent public key submission commit 9c6e8836 Author: alanqianghe <alanqianghe@tencent.com> Date: Wed Sep 24 15:52:36 2025 +0800 fix/temp (merge request !4) Squash merge branch 'fix/temp' into 'main' * feat: enhance UI for blockchain network configuration and add copy configuration feature commit 6f749ceb Author: alanqianghe <alanqianghe@tencent.com> Date: Tue Sep 23 13:42:28 2025 +0800 fix/temp (merge request !3) Squash merge branch 'fix/temp' into 'main' * docs: update docs * docs: update docs commit dfe2c320 Author: alanqianghe <alanqianghe@tencent.com> Date: Tue Sep 23 11:21:12 2025 +0800 docs: update design.drawio commit 236cf9f5 Author: alanqianghe <alanqianghe@tencent.com> Date: Fri Sep 19 17:58:00 2025 +0800 docs: update README to enhance usage instructions and add demo section commit bee1e3b2 Merge: f20c4bad f56cc765 Author: alanqianghe <alanqianghe@tencent.com> Date: Fri Sep 19 17:54:37 2025 +0800 Merge remote-tracking branch 'origin/main' # Conflicts: # demo/wallet.ts commit f56cc765 Author: alanqianghe <alanqianghe@tencent.com> Date: Fri Sep 19 17:50:11 2025 +0800 feat: 二期迭代支持 (merge request !2) Squash merge branch 'fix/alanqianghe' into 'main' * fix: rename CMP-1193.md for consistency * feat: add annotations and http proto files for gRPC HTTP mapping * docs: update README with additional shell commands for grpc-web-client generation * build: update build scripts and configuration for production environment * docs: update readme * test: 完善测试 * test: 完善测试 * chore: update .gitignore to exclude .ruler files * feat: enhance wallet functionality with additional signing tests and improve code clarity * feat: enhance wallet functionality with additional signing tests and improve code clarity * feat: enhance wallet functionality with additional signing tests and improve code clarity * test: support jest * feat: implement ChainMaker authentication types and enhance wallet functionality * feat: implement ChainMaker authentication types and enhance wallet functionality * fix: update todo list to reflect completed tasks and enhance clarity * fix: update web3 integration to use chainmaker-web3.js and enhance documentation * fix: update web3 integration to use chainmaker-web3.js and enhance documentation * fix: remove unused SM2 key handling and update signing method to use chainmaker-wallet-jssdk * fix: adjust layout and improve output console structure * fix: update logging format for PEM key outputs * fix: update TODO list with additional items for secp256k1 and Node.js support * fix: remove hardcoded node IP and update endpoint handling * fix: reorganize todo items for clarity and update TLS support descriptions * fix: add TLS configuration option to form values * fix: add TLS configuration option to form values * fix: improve error handling in network info retrieval * fix: add TLS support for secure connections and update form handling * fix: reorganize todo items for clarity and improve structure * fix: remove debugger statement and add clearNetworkCache method for network configuration management * fix: add logging for private and public key generation in signing-key * fix: simplify constructor options by passing options directly to super * fix: refactor gRPC and HTTP configurations, improve form handling and add connection diagnostics * fix: enhance CORS configuration and add account mode and node IP fields in the form * fix: refactor gRPC and HTTP configurations, improve form handling and add connection diagnostics * fix: update docker run command to include container name for clarity * fix: update docker run command to include container name for clarity * fix: add SSL certificates and update nginx configuration for gRPC support * fix: simplify docker run command in README * fix: remove unused server configurations and update proxy host for gRPC * fix: update access log entries and refine .gitignore for nginx logs * fix: update access log entries and refine .gitignore for nginx logs * fix: update access log entries and refine .gitignore for nginx logs * fix: streamline transaction and block data handling in provider and HTML files * fix: streamline transaction and block data handling in provider and HTML files * fix: update signing mode selection and clean up code formatting * fix: streamline transaction and block data handling in provider and HTML files * fix: streamline transaction and block data handling in provider and HTML files * fix: streamline transaction and block data handling in provider and HTML files * fix: streamline transaction and block data handling in provider and HTML files * fix: streamline transaction and block data handling in provider and HTML files * fix: streamline transaction and block data handling in provider and HTML files * fix: 修复所有的编译报错 * fix: refactor wallet.ts and index.ts to remove unused imports and streamline code * fix: refactor wallet.ts and index.ts to remove unused imports and streamline code * fix: update package.json and package-lock.json to remove unused dependency and rename package * fix: update index.html to enhance label visibility with background color * fix: refactor wallet.ts to streamline imports and remove unused private key processing methods * fix: refactor wallet.ts to streamline imports and remove unused private key processing methods * fix: refactor wallet.ts to streamline imports and remove unused private key processing methods * fix: refactor wallet.ts to streamline imports and remove unused private key processing methods * fix: update contract factory instantiation to use provider object * fix: update contract factory instantiation to use provider object * fix: enhance provider handling in contract factory and deployment methods * fix: enhance provider handling in contract factory and deployment methods * fix: update request type in makeHttpRequest method for improved type safety * fix: update request type in makeHttpRequest method for improved type safety * fix: update request type in makeHttpRequest method for improved type safety * fix: update comments for clarity in abstract-provider.ts * fix: add related documentation links to README * fix: remove unused transformBlock method from base-chainmaker-provider * fix: add note about NodeJS environment support in chainmaker documentation * fix: refactor utility functions for hex string and uint8 array conversion * fix: remove automatic reconnection logic for block subscriptions in grpc-web-provider * fix: uncomment proxyHost configuration in index.html for WebSocket connection * fix: uncomment proxyHost configuration in index.html for WebSocket connection * fix: update WebSocket subscription request to use Base64 encoding and refactor request payload handling * fix: add convertToSnakeCase utility function and apply it to subscription request payload * fix: update transaction ID in index.html and add debugger for error handling * fix: enhance HttpProvider with block subscription capabilities * fix: enhance HttpProvider with block subscription capabilities * fix: enhance HttpProvider with block subscription capabilities * fix: add usage guide for chainmaker-web3-js library * fix: update README to reflect new Caddy run command for proxy setup * fix: update README to reflect new Caddy run command for proxy setup * fix: update README to reflect new Caddy run command for proxy setup * fix: add protocol selection to form and update provider configuration * fix: add protocol selection to form and update provider configuration * fix: add gRPC-Web proxy configuration details to chainmaker-vs-ethers.md * fix: add gRPC-Web proxy configuration details to chainmaker-vs-ethers.md * fix: update provider configurations to support proxy settings for gRPC and HTTP * fix: add TLS configuration to envoy.yaml and update gRPC endpoint to use HTTPS * fix: add TLS configuration to envoy.yaml and update gRPC endpoint to use HTTPS * fix: update package name and author information in package.json * fix: update block event handling to use correct variable names and improve data parsing * fix: update block event handling to use correct variable names and improve data parsing * fix: update block event handling to use correct variable names and improve data parsing * fix: update block event handling to use correct variable names and improve data parsing * fix: update block parameters to use Uint8Array for better type handling * fix: add Envoy configuration for gRPC-Web and update README with testing instructions * fix: add TLS certificate and private key files, and configure Nginx for gRPCs service commit f20c4bad Merge: b4050411 7e50154c Author: alanqianghe <alanqianghe@tencent.com> Date: Tue Aug 5 14:29:05 2025 +0800 Merge remote-tracking branch 'origin/main' # Conflicts: # README.md # dist/index.d.ts # dist/index.js # lib/index.ts # lib/types.ts # lib/web3.ts commit 7e50154c Author: alanqianghe <alanqianghe@tencent.com> Date: Fri Aug 1 15:56:18 2025 +0800 fix/alanqianghe (merge request !1) Squash merge branch 'fix/alanqianghe' into 'main' * fix: add documentation for generating key pairs with web3.Wallet and support for SM2 and EC algorithms * fix: support SM2 curve in random wallet creation and improve private key handling * fix: enhance random wallet creation with curve type support and output private key * fix: add random wallet generation button and update wallet creation method * fix: update chain switching logic to improve account switching functionality * fix: update chain switching logic to improve account switching functionality * fix: refactor chain and account switching methods for clarity and consistency * fix: refactor chain and account switching methods for clarity and consistency * fix: update index.md for clarity on adding chains and accounts * fix: update index.md for clarity on adding chains and accounts * fix: update package.json and package-lock.json to include ts-loader in devDependencies * fix: remove unused buttons for key conversion and wallet creation in index.html * fix: update invokeUserContract method to include chainId and adjust types for improved request handling * fix: update contract name in createUserContract method for consistency * fix: update createUserContract method and types for improved parameter handling and add validation for contract file selection * fix: update invokeUserContract method to use chainmaker instead of webSDK * fix: add file upload functionality and update contract creation parameters in web3.ts and index.html * fix: add file upload functionality and update contract creation parameters in web3.ts and index.html * fix: update contract creation parameters in index.html and web3.ts for improved functionality * fix: update index.md for improved clarity and add examples for transaction and block information * fix: add Base64 decoding information and example to getBlockHeight method in web3.ts * fix: add Base64 decoding information and example to getBlockHeight method in web3.ts * fix: add test chain configuration information to index.html * fix: add test chain configuration information to index.html * fix: initialize WebSDK and Contract in web3.ts; update getNetwork method description * fix: add default behavior description for init method in web3.ts and remove _test/_data from .gitignore * fix:update * fix: update references to 'ChainMaker' to '长安链Web3插件' in README.md * fix: correct capitalization of 'ChainMaker' in README.md * feat: add query balance button and functionality in index.html * fix: update transfer parameters to use 'amount' instead of 'tokenId' for CMDFA contract type * feat: implement Contract class and add transfer functionality in web3.js * refactor: remove unused Signer class and clean up comments in web3.ts * refactor: remove unused Signer class and clean up comments in web3.ts * refactor: remove unused Signer class and clean up comments in web3.ts * feat: add documentation for web3.js API and usage instructions * feat: add documentation for web3.js API and usage instructions * feat: add documentation for web3.js API and usage instructions * feat: add documentation for web3.js API and usage instructions * feat: add documentation for web3.js API and usage instructions * feat: add documentation for web3.js API and usage instructions * feat: add documentation for web3.js API and usage instructions * feat: add documentation for web3.js API and usage instructions * feat: add transfer button and implement transfer function for blockchain interaction * feat(wallet): support both SM2 and EC key types with appropriate handling * feat: add js-base64 dependency and update base64 handling in utils * feat: add js-base64 dependency and update base64 handling in utils * feat: 增加Web3Provider类方法的注释,提升代码可读性 * feat: add js-base64 dependency and update base64 handling in utils * feat: add wallet functionality with private key handling and public key conversion * feat: add private key input and conversion to public key in web3 integration * feat: implement createUserContract method and update contract invocation in web3 integration * feat: add user contract invocation and creation methods in web3 integration * fix: rename getChainBlockHeight to getBlockByHash and update related functionality * feat: add getBlockHeight method and update related functionality in web3 integration * chore: add Apache License 2.0 to the project * chore: add Apache License 2.0 to the project * docs: update README to include getting started instructions and build commands * fix: correct capitalization of 'Web3js' in HTML header * feat: improve layout of input fields in HTML interface for better readability * feat: add buttons for initiating transactions and deploying contracts in HTML interface * feat: implement Web3Provider with transaction and block retrieval methods, add wallet class, and create HTML interface * feat: add getTransaction method to Web3Provider and clean up constructor * feat: enable TypeScript declaration file generation in tsconfig * feat: add TypeScript definitions for various contract functions and configurations * feat: update chain configuration structure and improve TypeScript settings * init commit b4050411 Author: alanqianghe <alanqianghe@tencent.com> Date: Fri May 16 15:55:25 2025 +0800 init commit 80eb33b2 Author: alanqianghe <alanqianghe@tencent.com> Date: Tue May 13 14:26:08 2025 +0800 feat: 添加链配置接口及相关方法定义 commit 591ff47b Author: alanqianghe <alanqianghe@tencent.com> Date: Tue May 13 14:20:46 2025 +0800 feat: 添加链Maker相关类型和抽象类定义 commit 66e8dc1b Author: alanqianghe <alanqianghe@tencent.com> Date: Tue May 13 11:29:41 2025 +0800 init # Conflicts: # README.mdcf509745