Commit Graph
8 Commits
Author SHA1 Message Date
luk.lu 3cf673af6f action.packMe(keypair)调用有个无关紧要的小错:输入参数是 {seckey, pubkey} 即可,不需要传入 address,因为 address 是 packMe 内部自己根据 pubkey 生成的。 2019-04-11 15:59:26 +08:00
luk.lu 044c2175d6 纠错:完善 index.js 返回所有 ActionXxx 子类 2019-04-09 20:34:13 +08:00
luk.lu 4fe26a0b09 采用新结构:Action*.js 从 node.server 中删除,集中存放于本库。
这样消除了同一份代码出现在两处的不良结构,避免了同步的困难。
当 node.server 需要临时修改 ActionXxx.js 时,只要在 server.js 里临时 require('../tic.action').ActionXxx 即可。一处修改,到处可用。
2019-04-09 20:16:58 +08:00
luk.lu e2a0738a80 把 this._class = 'ActionTransfer' 改为 this._class = this.constructor.name,这才是标准写法,不知道为何ActionTranfer用了字符串。 2019-04-09 09:25:58 +08:00
luk.lu 73ca4df3db 重命名 ActTransfer 为 ActionTransfer;
删除 ling 目录,把 Action*.js 迁移到上级根目录。
2019-04-09 09:06:33 +08:00
luk.lu c18b412c1b [Action.js] prepare方法里的wo.Peer 改为 wo.Node。但这其实不影响使用,因为 prepare 方法只在 node.server 里被调用,而在前端只用到 sign, hash 等方法。 2019-02-18 13:36:26 +08:00
luk.lu a9ff95f300 修正package.json里的名字。 2018-11-27 10:42:52 +08:00
luk.lu 89975eea2c 从tic.common转化而来,彻底脱离对 Base/*, _Ling.js 的依赖,只保留并提供 Action及其子类。 2018-11-27 10:42:05 +08:00