46 Commits

Author SHA1 Message Date
Chalith Desaman
bfc38a3c70 Updated hotpocket-nodejs-contract version (#387) 2023-10-06 10:10:53 +05:30
Chalith Desaman
cff3a822fc Updated library version on node js contract sample (#386) 2023-10-02 12:39:07 +05:30
ravinsp
33e536c31b Used consistent wording for HotPocket. 2023-05-07 14:08:55 +05:30
Chalith Desaman
62e89c3d0e Missing config restructure changes for sample contracts (#369) 2022-08-04 12:04:49 +05:30
ravinsp
69481e5265 Updated examples nodejs contract lib version. 2022-07-14 20:52:14 +05:30
Ravin Perera
050b6f5bd5 Upgraded nodejs dependencies to 16.x (#364) 2022-03-08 21:12:26 +05:30
Ravin Perera
c720a777ce Control message to update peers. (#351) 2021-11-02 14:13:21 +05:30
Ravin Perera
9bc9404e07 Used npm package for client and contract lib examples. (#350) 2021-10-11 20:16:50 +05:30
Ravin Perera
6dc0776b56 Large cluster optimizations. (#348)
* Added sync log to streamer.
* Fixed ledger closing attempt while syncing.
* Added diagnostic contract.
* Reset to stage 0 on unreliable votes.
* Reduced peer msg age threshold.
* Added health tracking.
* Weakly-connected detection improvement.
* Increased version 0.5.1.
* Improved client lib server version check.
* Added health logging support to text client.
* Added weakly connected status in status response.
* Increased max peers limits when serializing.
* Local docker cluster manual ip.
* Updated vultr script vm region order.
* Sync status reporting improvement.
* Added milliseconds to logging.
2021-09-17 11:53:49 +05:30
Chalith Desaman
4a5c3554bd Hotpocket version changes (#336) 2021-07-28 16:33:58 +05:30
Ravin Perera
cdf3a73c7d Added ncc build to nodejs contracts. (#334) 2021-07-22 12:38:02 +05:30
ravinsp
6cfa47418c Minor updates to echo contract and hpfs. 2021-05-23 17:14:34 +05:30
Ravin Perera
45492f7c7f Added stage slice config to control stage time allocation. (#310) 2021-05-19 16:59:01 +05:30
Ravin Perera
0a3183a3d6 Included output hash and ledger info in output return message. (#284) 2021-04-08 10:42:33 +05:30
Ravin Perera
31344fe266 Updated js client and contract libs. (#273)
* Updated js contract lib to for ES spec compatibility.
* Added 'ed' prefix to generated keys in js client lib.
* Fixed js client lib incorrect connection timeout tracking.
2021-03-23 09:42:48 +05:30
Chalith Desaman
363116fc2a Added user input max ledger seq offset limit config (#256)
- Added new config for max input ledger offset inside contract section.
- Updated implementation of getting and updating patch config inside node and c contracts.
- Skip inputs if max ledger offset exceeds, when handling user inputs and nup messages.
2021-02-24 09:19:36 +05:30
Ravin Perera
6b8d60a404 Separated lcl string usage to sequence no and hash. (#251) 2021-02-18 18:28:38 +05:30
Ravin Perera
8eac87fb85 Added smart contract upgrade support. (#250)
Supports smart contract self-upgrades by allowing "post_exec.sh" script to be executed after consensus contract execution.
2021-02-18 17:25:42 +05:30
Ravin Perera
4c4e109233 Contract process resource limits. (#243) 2021-02-15 16:36:10 +05:30
Ravin Perera
0937ca0bbe Npl outputs round limit. (#242) 2021-02-15 14:50:03 +05:30
Ravin Perera
0de7983504 User outputs round limit. (#241)
Implemented user outputs round limit and upgraded the contract libraries to support the configs.
2021-02-15 14:23:47 +05:30
Chalith Desaman
cf02108576 Interface to read patch config from c contract lib. (#223) 2021-01-18 14:38:39 +05:30
Chalith Desaman
b15d8260cc Read patch config implementation for js contract lib. (#218) 2021-01-12 09:48:14 +05:30
Chalith Desaman
99c768360e Contract hpargs revamp. (#217) 2021-01-11 14:28:01 +05:30
Chalith Desaman
12a8252598 Patch config update method for js contract library (#214)
Load patch.cfg in js contract lib. 
Update values of the patch config. 
Common method with optional parameters.
2021-01-08 17:38:21 +05:30
Ravin Perera
8dc20bdab0 Naming changes and reintroducing key prefix to contract libraries. (#202) 2020-12-23 19:23:46 +05:30
Ravin Perera
f2ed9040c0 User protocol upgrade and js client lib. (#191)
* Unified js client lib for browser and nodejs.
* Client lib multiple connections support.
* Implemented server challenge response.
* Contract guid and version validation.
* Server key validation.
* User json message encoding improvements.
2020-12-11 11:02:58 +05:30
Ravin Perera
b2fd8ae4b5 Contract and client library improvements. (#184)
* Added tty check to contract libs.
* Javascript browser-native client.
* Removed hex encoding in user json outputs.
* Updated file contract for new contract library.
2020-12-05 09:08:24 +05:30
Ravin Perera
dfe42f827b Refactored node contract lib control flow. (#176) 2020-11-30 17:39:07 +05:30
Ravin Perera
efbd775fa1 Refactored C contract lib interface. (#175) 2020-11-30 10:03:06 +05:30
Ravin Perera
332e5a4750 User input json/bson format improvements. (#174)
* Removed hex encoding in json input container.
* Refactored client lib exports.
2020-11-28 21:24:35 +05:30
Ravin Perera
79b55258de Poll-based contract output reading. (#172) 2020-11-27 15:57:36 +05:30
Ravin Perera
d476f787a7 Introduced UNL update control message. (#169) 2020-11-26 22:26:12 +05:30
Ravin Perera
bb223b1e3a JSON message parsing for contract control messages. (#166) 2020-11-26 09:31:39 +05:30
Ravin Perera
9c1f62dbde Migrated user inputs from domain sockets to memfd. (#159) 2020-11-23 21:52:05 +05:30
Ravin Perera
beedfb2709 C contract library and NodeJS library improvements. (#157) 2020-11-20 10:48:57 +05:30
Ravin Perera
1608e9fc49 Contract execution refactor. (#153) 2020-11-18 07:16:17 +05:30
Ravin Perera
0098c3ddab Revamped NodeJS library examples. (#151) 2020-11-16 17:08:47 +05:30
priyadharsun
8f00c5e7d4 Introduced contract control channel with 'terminate' message (#147) 2020-11-10 14:09:24 +05:30
Chalith Desaman
49e30961bd Node js contract library AsyncCallbackEmitter implementation (#146) 2020-11-09 14:21:43 +05:30
Savinda Senevirathne
51173e37f2 Support message separation for multiple inputs from same user. (#142) 2020-11-06 10:55:40 +05:30
Savinda Senevirathne
7a4515865d Replaced contract I/O pipes with domain sockets. (#140) 2020-11-02 16:50:21 +05:30
Chalith Desaman
5f40aebf08 NPL message refactor. (#132)
* Implemented feeding and broadcasting npl messages from the contract execution in real-time.
* Replaced npl pipe with domain sockets.
* Refactored npl read and write in nodejs echo contract
2020-10-14 15:18:00 +05:30
Ravin Perera
465573ad29 Updated nodejs contract lib for streamed input reading. (#110) 2020-08-21 15:27:25 +05:30
Ravin Perera
d4a786e3b9 Refactored NPL message processing. Passed lcl to contract args. (#105) 2020-08-05 21:30:48 +05:30
Ravin Perera
311d20aba6 HP smart contract nodejs library. (#101) 2020-07-20 13:38:08 +05:30