client-sdk-js icon indicating copy to clipboard operation
client-sdk-js copied to clipboard

A javascript interface for interacting with the PlatON network

Results 12 client-sdk-js issues
Sort by recently updated
recently updated
newest added

Bumps [cookiejar](https://github.com/bmeck/node-cookiejar) from 2.1.3 to 2.1.4. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=cookiejar&package-manager=npm_and_yarn&previous-version=2.1.3&new-version=2.1.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

dependencies

Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. Release notes Sourced from decode-uri-component's releases. v0.2.2 Prevent overwriting previously decoded tokens 980e0bf https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.1...v0.2.2 v0.2.1 Switch to GitHub workflows 76abc93 Fix issue where decode...

dependencies

Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. Release notes Sourced from decode-uri-component's releases. v0.2.2 Prevent overwriting previously decoded tokens 980e0bf https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.1...v0.2.2 v0.2.1 Switch to GitHub workflows 76abc93 Fix issue where decode...

dependencies

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.9.1 to 1.12.1. Commits c627e38 Mention CVE-2021-23358 in code, test and documentation (#2915) c9e803e Add diff and docs to the 1.12.1 change log entry 0c20985 Restore comments...

dependencies

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) to 1.15.2 and updates ancestor dependency [axios](https://github.com/axios/axios). These dependencies need to be updated together. Updates `follow-redirects` from 1.5.10 to 1.15.2 Commits 9655237 Release version 1.15.2 of the npm...

dependencies

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.9.1 to 1.12.1. Commits c627e38 Mention CVE-2021-23358 in code, test and documentation (#2915) c9e803e Add diff and docs to the 1.12.1 change log entry 0c20985 Restore comments...

dependencies

Bumps [underscore](https://github.com/jashkenas/underscore) from 1.9.1 to 1.12.1. Commits c627e38 Mention CVE-2021-23358 in code, test and documentation (#2915) c9e803e Add diff and docs to the 1.12.1 change log entry 0c20985 Restore comments...

dependencies

#### Expected behavior 1. 能按照文档描述,正确安装sdk 2. 增加 node 的版本限制描述 #### Actual behavior 1. README 写的是可以通过 npm/yarn 直接安装,但是执行 `npm i PlatONnetwork/client-sdk-js#0.15.1-develop` 命令会报错:`no matches found: PlatONnetwork/client-sdk-js#0.15.1-develop`。 直接使用 `npm i PlatONnetwork/client-sdk-js` 或者 `npm...

help wanted
good first issue

我在开发微信小程序时,使用云开发模式,允许用户在node.js环境下上传不大于500MB的单个云函数,但是我发现JS SDK的整个包太大了,几乎达到了1GB,这让我头很大。 同时我分析了被使用到的require('web3'),我发现其中有大部分的node_module依赖项是重复出现的,所以能否做个优化,将多次出现的node_module去除,或者整合到一个文件夹内,求求你们优化一下吧,我真的很想让大家打开微信就能自己铸造NFT。

help wanted
good first issue
dependencies

现在Alaya与PlatON的js sdk基本使用同一套代码,这样可以减少学习和代码迁移成本,是一种各方都有益的事,但在实践中有一定的问题。例如,在使用sdk与Alaya网络交互时,需要进行大量设置,如使用私钥生成账号时: ```js var act = new AlayaAccounts(web3a.currentProvider, "atp"); act = act.privateKeyToAccount(privateKey); ``` 而且,所有签名都没办法如下方法: ```js web3.platon.accounts.signTransaction(tx, privateKey); ``` 另外,由于PPOS模块都是直接用chainId来确定hrp的,所以导致在现在的代码下是没有办法使用PPOS模块正常操作alaya网络的内置合约的。 对于以上问题,我有以下建议: 1. 在web3对象中,增加一个设置全局chainId和hrp的方法,在设置chainId和hrp之后,web3所有的属性及函数都继承此chainId及hrp,在所有操作过程中都能自动填充chainId和hrp。 2. 将现有的6种网络的信息,如PlatON主网,PlatON开发网,PlatON私有网络默认网络参数,Alaya主网,Alaya开发网和Alaya私有网络默认参数,这6个网络参数当作常量写入到SDK中。其他非常用参数可使用1中的方法单独设置。 3. 更新PPOS中的方法,使之能够适应解锁账号和非解锁账号的使用。

enhancement
help wanted