Replying to @notsofast @litecoin
TradeLayer era has begun
Main.js is flowing bug-free finally.
Next: ensure activation, token issuance and send transactions all flow to their respective datastructures.
Then: add consensus/persistence check.
Subsequently: testnet spam some of these to test in the wild.
Then: flow to trades, contracts
Today got through debugging the txUtils up to the payload encoding/decoding into hex and adding the OP_Return. Tomorrow, change address, reference address, and then testnet staging of activation, token issue, send, orderbook trading. Tuesday aiming for UTXO to token trades.
Ok we are aproximately done creating all the scaffolding of the 10k LoC project now moving into tweaks, debugs, unit tests, testnet staging exercises. Tomorrow the goal is to activate, init, issue tokens, move them, trade them. Wednesday's goal is to get the UTXO->token trades.
Making progress rebuilding TradeLayer.js
Totally abandoned earlier Omnilayer conventions.
Base 36 is the most efficient readily convertible format to optimize byte-length of integers. Strings are format minimized and go in as-is. >40 bytes will use Ordinal commit-reveal.
The above code is an example of adding bytes to a vector that will become a payload, and below is where the payload is made and where the main loop calls it:
1
119
TradeLayer in .js, the last bottleneck before having a live prototype and rapidly prototyping tx logic in it, is building the parser then the tx encoder in .js.
We have a working tx indexer that parses blocks and sorts tx according to OP_Return payload and marker.
Now:
















