Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
f09b21c
starting to divide txs
Mar 28, 2024
cfe009f
separated native transactions execution module
Mar 28, 2024
0ad3acf
standardized ComLink types and handlers for gas consuming and message…
Mar 28, 2024
e576f29
separated execution
Mar 28, 2024
5c3c898
handled gas consuming transactions types
Mar 28, 2024
a456e40
updated types
Mar 28, 2024
3fe681e
refactored Signature types
Mar 28, 2024
ccfabb2
standardized xmscript calls
Mar 28, 2024
2899e40
added security checks for validityData
Mar 31, 2024
c7576b4
documented
Apr 1, 2024
13f2b61
broke down gasless messages in an appropriate module
Apr 1, 2024
0365472
refactored imports and divided types for the network workflow
Apr 1, 2024
b6e3591
documented some best practices
Apr 1, 2024
00bda6a
documented all the code in a diagram
Apr 2, 2024
5318841
provided appropriate documentation for this branch
Apr 2, 2024
73fb4c7
merged experimental features into features (yay they made it!)
Apr 2, 2024
eef93e4
refactored names
Apr 8, 2024
d1a96a0
partially fixed comlink validation errors
Apr 9, 2024
c480ee8
Fixed transaction validation issues and streamlined both operations a…
Apr 9, 2024
46909a0
Latest changes
Apr 11, 2024
dcc1066
Modernized & Fixed IWeb2Request types in dispatcher
Apr 11, 2024
c4ad1cf
corrected redundancy in responses on confirmed tx
Apr 12, 2024
583cfcd
gas determination adapted for congestion
Apr 16, 2024
24ea81a
added clean and purge scripts
Apr 16, 2024
46128f4
basic balances test
Apr 16, 2024
4880987
cleanup
Apr 16, 2024
d3fba2c
package and refactor types
cwilvx Apr 16, 2024
1bf6821
fixed imports using the SDK, removed unused ones, refactored used one…
Apr 16, 2024
c7b7dda
type handling on tx.data
Apr 17, 2024
5657f4b
refactor to packaged xm sdks
cwilvx Apr 18, 2024
e6351e7
remove dead type files
cwilvx Apr 18, 2024
6f788ce
reverse multichainDispatcher.digest parsing payload
cwilvx Apr 18, 2024
9971a0b
auto dependencies update inserted
Apr 21, 2024
137e380
added easy sdk upgrade (yarn upgrade_sdk)
Apr 21, 2024
23a3962
removed toMempool from specific workflows
Apr 21, 2024
8933bd3
added toMempool for all standard Transactions (TODO: check Operation …
Apr 21, 2024
5385bec
Fixed signature format
Apr 22, 2024
8b77d96
debug for web2 hash mismatches
Apr 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions .github/workflows/test:chains.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ src/features/experimental/fhe/fhe_test.ts
yarn.lock
publickey
publickey
documentation/schemas/.$*
appmap.yml
4 changes: 4 additions & 0 deletions data/genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
[
"ccc6ba0c609435a05fdbf236e7df7d60f024ed26c19d8f64b024e6163036247a",
"1000000000000000000000000000"
],
[
"6f1df0905c986d41bcb01c8b542c0af8263c03ba52a3dd3af9123d99fc8e1067",
"1000000000000000000000000000"
]
],
"timestamp": "1692734616000",
Expand Down
13 changes: 13 additions & 0 deletions documentation/Best Practices.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Best Practices when coding in this repository

## Imports
As per `tsconfig.json`, the root of the repository is set to `./`.
For this reason, is easy to keep all the imports sorted and tidy by avoiding relative paths such as `../mymodule.ts` and using directly `src/libs/mymodule.ts` for example.

## Interfaces
To keep everything ordered, please use the `types` folder in your subdirectory (i.e. `src/libs/blockchain/types`) and import from there. Please avoid defining and exporting interfaces all around the place.

Classes should have their own file too, while not residing in a dedicated folder.

## Linting and Formatting
`trunk` linter is used and enabled globally. Configuration should be already shipped. Alternatively, you can use `prettier-eslint`. Please avoid using other formatting tools to avoid huge "false-commits".
159 changes: 0 additions & 159 deletions documentation/code diagrams/Web2.drawio

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/code diagrams/network_diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/code diagrams/web2_diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documentation/faq.docx
Binary file not shown.
91 changes: 91 additions & 0 deletions documentation/schemas/.$development.drawio.bkp
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<mxfile host="Electron" modified="2024-03-22T17:20:24.787Z" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/22.1.11 Chrome/114.0.5735.289 Electron/25.9.8 Safari/537.36" etag="T4YEkhjmmKO5LC53hU2q" version="22.1.11" type="device">
<diagram name="Pagina-1" id="D3IKO9B6dYwsl1Db0L5D">
<mxGraphModel dx="1364" dy="1944" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="42L2r5ntAp5r32FlDwG5-17" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="42L2r5ntAp5r32FlDwG5-4" target="42L2r5ntAp5r32FlDwG5-10">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-18" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="42L2r5ntAp5r32FlDwG5-4" target="42L2r5ntAp5r32FlDwG5-9">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-4" value="Frontend" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="90" y="50" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-14" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="42L2r5ntAp5r32FlDwG5-5" target="42L2r5ntAp5r32FlDwG5-12">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-15" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="42L2r5ntAp5r32FlDwG5-5" target="42L2r5ntAp5r32FlDwG5-13">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-16" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="1" source="42L2r5ntAp5r32FlDwG5-5" target="42L2r5ntAp5r32FlDwG5-11">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-5" value="Backend" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="630" y="50" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-20" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="42L2r5ntAp5r32FlDwG5-9" target="42L2r5ntAp5r32FlDwG5-19">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-23" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="42L2r5ntAp5r32FlDwG5-9" target="42L2r5ntAp5r32FlDwG5-21">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-24" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="42L2r5ntAp5r32FlDwG5-9" target="42L2r5ntAp5r32FlDwG5-22">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-9" value="dApp" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="40" y="170" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-10" value="Web SDK" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#00CC00;" vertex="1" parent="1">
<mxGeometry x="200" y="170" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-11" value="Local SDK" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#00CC00;" vertex="1" parent="1">
<mxGeometry x="360" y="170" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-30" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="42L2r5ntAp5r32FlDwG5-12" target="42L2r5ntAp5r32FlDwG5-29">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-32" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="42L2r5ntAp5r32FlDwG5-12" target="42L2r5ntAp5r32FlDwG5-31">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-12" value="Core" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="680" y="170" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-13" value="Web2" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#009999;" vertex="1" parent="1">
<mxGeometry x="520" y="170" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-19" value="Wallet Extension" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#990099;" vertex="1" parent="1">
<mxGeometry x="140" y="420" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-21" value="Transactions" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#990099;" vertex="1" parent="1">
<mxGeometry x="140" y="520" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-22" value="Block Explorer" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#990099;" vertex="1" parent="1">
<mxGeometry x="140" y="620" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-29" value="Features Integration" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#009999;" vertex="1" parent="1">
<mxGeometry x="580" y="420" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-31" value="DB and Mechanisms" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#CC6600;" vertex="1" parent="1">
<mxGeometry x="580" y="520" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-33" value="Core Developers" style="swimlane;fontStyle=0;childLayout=stackLayout;horizontal=1;startSize=30;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;fontSize=18;" vertex="1" parent="1">
<mxGeometry x="80" y="-200" width="250" height="150" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-34" value="&lt;font color=&quot;#00cccc&quot; style=&quot;font-size: 18px;&quot;&gt;TCSenpai&lt;/font&gt;" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;fontSize=18;" vertex="1" parent="42L2r5ntAp5r32FlDwG5-33">
<mxGeometry y="30" width="250" height="30" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-35" value="&lt;font color=&quot;#cc6600&quot; style=&quot;font-size: 18px;&quot;&gt;Duck&lt;/font&gt;" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;fontSize=18;" vertex="1" parent="42L2r5ntAp5r32FlDwG5-33">
<mxGeometry y="60" width="250" height="30" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-37" value="&lt;font color=&quot;#00ff00&quot; style=&quot;font-size: 18px;&quot;&gt;Jeff&lt;/font&gt;" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;fontSize=18;" vertex="1" parent="42L2r5ntAp5r32FlDwG5-33">
<mxGeometry y="90" width="250" height="30" as="geometry" />
</mxCell>
<mxCell id="42L2r5ntAp5r32FlDwG5-36" value="&lt;font color=&quot;#990099&quot; style=&quot;font-size: 18px;&quot;&gt;Budino&lt;/font&gt;" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rotatable=0;whiteSpace=wrap;html=1;fontSize=18;" vertex="1" parent="42L2r5ntAp5r32FlDwG5-33">
<mxGeometry y="120" width="250" height="30" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
Loading