Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
432 commits
Select commit Hold shift + click to select a range
1387f37
Merge pull request #207 from OriginTrail/improvement/add-other-testne…
Mihajlo-Pavlovic Dec 24, 2024
a05e7ed
Bump version and hubs
brkagithub Dec 25, 2024
abd1008
sigma boy
brkagithub Dec 25, 2024
df7e392
remove console log
brkagithub Dec 25, 2024
fe99ddd
fix bid
Mihajlo-Pavlovic Dec 25, 2024
8a4f834
Fixes
Mihajlo-Pavlovic Dec 25, 2024
8596691
Fix get
Mihajlo-Pavlovic Dec 25, 2024
eb8d18a
Merge pull request #208 from OriginTrail/improvement/add-other-testne…
brkagithub Dec 26, 2024
31fc380
8.0.0
brkagithub Dec 26, 2024
7959e7a
min js
brkagithub Dec 26, 2024
9a66f9f
Change oracle for gnosis
brkagithub Dec 26, 2024
f498b20
dd try catch to gnosis gas oracle
brkagithub Dec 26, 2024
a701d09
PR feedback
brkagithub Dec 26, 2024
198a731
Run build
Mihajlo-Pavlovic Dec 26, 2024
a1e019d
Merge pull request #210 from OriginTrail/fix/gnosis-gas-price
Mihajlo-Pavlovic Dec 26, 2024
b71d768
version bump
Mihajlo-Pavlovic Dec 26, 2024
5d94b7c
correct version for npm
Mihajlo-Pavlovic Dec 26, 2024
00a8886
Change defaults for other blockchains, fix defaulting
brkagithub Dec 26, 2024
d9bca33
merge
brkagithub Dec 26, 2024
8611005
Merge remote-tracking branch 'origin/v8/kcs-integration' into fix/gno…
brkagithub Dec 26, 2024
ac801ae
Bump verison, build again, fix typos
brkagithub Dec 26, 2024
4be5dea
Merge pull request #211 from OriginTrail/fix/gnosis-gas-price
br41nlet Dec 26, 2024
e168965
Implement get/increase allowance for new contracts
brkagithub Dec 27, 2024
ad287e2
Merge pull request #212 from OriginTrail/v8/allowance-backwards-compa…
brkagithub Dec 27, 2024
2ddb486
Add validation for signatures
Mihajlo-Pavlovic Dec 27, 2024
53a2289
add signature validaton code
Mihajlo-Pavlovic Dec 30, 2024
89fc850
Fix decrease allowance issue
Jan 13, 2025
dd74aaa
Fixed demo.js
ilijaMar Jan 13, 2025
129ece2
Changeg constant name
ilijaMar Jan 13, 2025
b25e108
Merge remote-tracking branch 'origin/v8/updating-demo' into v8/decrea…
Jan 13, 2025
1ce759f
Add dotenv adn fix demo
Jan 13, 2025
3dc61fc
Add development pub key
Jan 13, 2025
e2bcd2b
PR suggesstions
Jan 13, 2025
bdf7f7c
Capitalize constants
Jan 13, 2025
daa1839
remove knowledgeCollectionAddress as a param of increaseKnowledgeColl…
Jan 13, 2025
5237e10
Bump version num
Jan 13, 2025
86dd523
Merge pull request #215 from OriginTrail/v8/decrease-allowance-and-de…
zsculac Jan 13, 2025
c5cf29e
Apdated publish finality
ilijaMar Jan 17, 2025
7d4422b
Merge pull request #216 from OriginTrail/v8/adding-publish-finality
Mihajlo-Pavlovic Jan 17, 2025
5916555
Changes contract names
BogBogdan Jan 20, 2025
5192227
edit
BogBogdan Jan 21, 2025
8a89b3f
new fix
BogBogdan Jan 21, 2025
e048c16
wip
Mihajlo-Pavlovic Jan 21, 2025
e7c1b79
Fix create and add paranet services
Jan 21, 2025
9e718ce
eidt names asset in collection
BogBogdan Jan 22, 2025
2200fc7
Fix query and demo
Jan 22, 2025
6ccfc95
Fix all demo functions
Jan 22, 2025
c6f5dd4
fix dotenv in demo
Jan 22, 2025
6513081
Merge pull request #219 from OriginTrail/v8/kcs-integration
brkagithub Jan 23, 2025
af524ab
Add support for new contracts
Jan 24, 2025
dc469a1
wip
Mihajlo-Pavlovic Jan 28, 2025
23a47e5
remove unused things
Mihajlo-Pavlovic Jan 28, 2025
8c3e0a1
remove unused things
Mihajlo-Pavlovic Jan 28, 2025
0880796
Update demo
Mihajlo-Pavlovic Jan 28, 2025
a140bbb
Add env example
Mihajlo-Pavlovic Jan 28, 2025
8d694ad
Small changes
Mihajlo-Pavlovic Jan 28, 2025
63f556f
Fix transfer
Mihajlo-Pavlovic Jan 29, 2025
77ec5d0
Comment out depricated function
Mihajlo-Pavlovic Jan 30, 2025
4a5c48a
Add multiplier calculation based on incentive type
Jan 30, 2025
b57ec71
Update packages
Jan 30, 2025
fca2df2
Update paranet demo
Jan 30, 2025
ae95af7
small fix
Jan 31, 2025
ecd354f
fix rpc error
Jan 31, 2025
8ed4411
Remove unused packages
Jan 31, 2025
ffdf487
fix blockchain in demo
Jan 31, 2025
c6e74ea
Merge pull request #220 from OriginTrail/chore/code-clean-up
Mihajlo-Pavlovic Jan 31, 2025
d3811db
Package update
Mihajlo-Pavlovic Jan 31, 2025
924f326
add package.lock
Jan 31, 2025
0bd43b9
Update incentive type initialization
Jan 31, 2025
c93508d
Update incentive type initialization
Jan 31, 2025
d86f0f7
Move query to new endpoint
Mihajlo-Pavlovic Feb 2, 2025
2d18ce2
Revers demo.js changes
Mihajlo-Pavlovic Feb 2, 2025
911e325
query function tidy up
Mihajlo-Pavlovic Feb 2, 2025
555f5d0
Update assertion tools
Mihajlo-Pavlovic Feb 6, 2025
034f403
Fix resolveUAL
Mihajlo-Pavlovic Feb 6, 2025
90b4407
Update index.cjs
Mihajlo-Pavlovic Feb 6, 2025
3d775c4
Merge pull request #223 from OriginTrail/update-assertion-tools
Mihajlo-Pavlovic Feb 6, 2025
0b4b990
Add PARANET_KC_SUBMISSION_POLICY and rename CURATED to PERMISSIONED
Feb 14, 2025
ca7b9e7
better variable naming
Feb 14, 2025
e79f4cb
Fix registerParanet
Feb 14, 2025
b8478d9
Rename ParanetNeuroIncentivesPool to ParanetIncentivesPool
Feb 14, 2025
866d246
update package
Feb 14, 2025
254a1b6
index.cjs
Feb 14, 2025
90fee50
remove neuro from function names
Feb 17, 2025
274ad30
remove neuro from function names
Feb 17, 2025
c89fe3b
Remove unnecessary params, unused functions
Feb 17, 2025
12bf8e7
Add addCurator function
Feb 17, 2025
8931738
Add removeCurator to paranet
Feb 17, 2025
6f66af3
Add new demo for KC submission policy
Feb 17, 2025
dfaf5fd
Add reviewKnowledgeCollection function
Feb 18, 2025
5eee412
Add stageKnowledgeCollection function
Feb 18, 2025
c8236f2
Add isKnowledgeCollectionStaged function
Feb 18, 2025
33efcb1
Add isKnowledgeCollectionApproved function
Feb 18, 2025
376bd42
Add getKnowledgeCollectionApprovalStatus function
Feb 18, 2025
2de989a
Add paranetKcSubmissionPolicy option
Feb 18, 2025
1c366ee
Add abis, fix resolveUAL bugs
Feb 18, 2025
be36c4d
Add isKnowledgeCollectionRegistered function
Feb 18, 2025
5f14b86
Add paranet permissioned kc submission policy demo
Feb 18, 2025
c8fd976
Remove unnecessary args from paranetOptions
Feb 19, 2025
38fd894
Remove INCENTIVE_TYPE from constants
Feb 19, 2025
b060ddb
Rework emissionMultiplier calculation and incentivesPool (re)deployment
Feb 19, 2025
29584c1
Update paranet-demo with latest changes
Feb 19, 2025
878d7f4
Add getIncentivesPoolStorageAddress function
Feb 20, 2025
3268967
Add getWeb3Instance function
Feb 20, 2025
304b0c6
Fund the incentive pool storage & claim rewards in demo
Feb 20, 2025
303b145
demo updates
brkagithub Feb 25, 2025
8603a01
Merge pull request #224 from OriginTrail/v8/paranet-incentives-pool-c…
zsculac Feb 26, 2025
4a7a1e4
update package.json
Feb 26, 2025
f799642
update package-lock.json and index.cjs
Feb 26, 2025
f917070
Merge remote-tracking branch 'origin/v8/develop' into origin/v8/kcs-i…
Feb 26, 2025
663f524
fix merge issues
Feb 26, 2025
7e3ba7d
fix merge issues
Feb 26, 2025
0ec22a5
fix merge issues
Feb 26, 2025
cdd191e
bump up version
Feb 26, 2025
07b8475
update assertion tools
Feb 26, 2025
fab85e0
fix blockchain service
Feb 26, 2025
5d181dc
Merge pull request #217 from OriginTrail/origin/v8/kcs-integration/pa…
zsculac Feb 26, 2025
5f3a8a6
Fix KC submission policy naming
Feb 26, 2025
9115b2e
Merge pull request #225 from OriginTrail/fix/kc-submission-policy-naming
zsculac Feb 26, 2025
41bbf21
Fix link
Mihajlo-Pavlovic Feb 27, 2025
73e20ea
Merge pull request #226 from OriginTrail/fix/demo-link-readme
Mihajlo-Pavlovic Feb 27, 2025
969aca5
Fix decimals and add default value on catch
Feb 27, 2025
a96dcd0
Bump up version
Feb 27, 2025
1be78ff
Fix calculation
Feb 28, 2025
43b39b7
remove leftover console logs
Mar 6, 2025
8c11bdd
update paranet demo
Mar 6, 2025
1e07209
fix demo
Mar 11, 2025
c698ef8
fix demo
Mar 11, 2025
70f710f
removed console.time*
usebeforefree Mar 12, 2025
ea72411
Merge branch 'v8/develop' into feature/direct-query
usebeforefree Mar 12, 2025
6bd40c2
case fix
usebeforefree Mar 12, 2025
b4b2740
version bump to 8.0.8
usebeforefree Mar 14, 2025
ca7aa57
Merge pull request #229 from marko03kostic/feature/direct-query
Mihajlo-Pavlovic Mar 19, 2025
b518706
fix version name
Mar 19, 2025
2539590
fix version name
Mar 19, 2025
1b6a3aa
Merge pull request #227 from OriginTrail/fix/erc20-fix
zsculac Mar 19, 2025
50bd769
Merge pull request #231 from OriginTrail/release/v8.0.8
Mihajlo-Pavlovic Mar 19, 2025
e9b4e98
Add paranet functionalities
Mihajlo-Pavlovic Mar 31, 2025
388e32d
Fix demo
Mihajlo-Pavlovic Mar 31, 2025
62cd3b5
Renamse curated -> permissioned
Mihajlo-Pavlovic Mar 31, 2025
e7ee2d8
Unccomment
Mihajlo-Pavlovic Mar 31, 2025
026e338
Versiom bump
Mihajlo-Pavlovic Apr 1, 2025
21f03e2
Update Neuroweb testnet hub
Mihajlo-Pavlovic Apr 9, 2025
9a7ebfb
version bump
Mihajlo-Pavlovic Apr 9, 2025
39dc8c7
Merge pull request #236 from OriginTrail/testnet-neuroweb-hub-update
Mihajlo-Pavlovic Apr 9, 2025
f7c6ba3
Fix demo
Mihajlo-Pavlovic Apr 16, 2025
8cd27e5
Fix demo
Mihajlo-Pavlovic Apr 16, 2025
a494157
version bump
Mihajlo-Pavlovic Apr 16, 2025
12e0594
Merge branch 'v8/develop' into feature/premissioned-paranet
Mihajlo-Pavlovic Apr 16, 2025
41f6eca
Merge pull request #235 from OriginTrail/feature/premissioned-paranet
Mihajlo-Pavlovic Apr 16, 2025
e328189
version bump and dependency uplift
usebeforefree Apr 17, 2025
a6e7376
Merge pull request #237 from OriginTrail/fix/assertion-tools-bump
usebeforefree Apr 17, 2025
0e3d199
Remove unneccessary npx from scripts (sometimes brekas npm install)
aleksaelezovic May 8, 2025
2982a8a
Merge pull request #238 from OriginTrail/fix/remove-npx
aleksaelezovic May 8, 2025
e1b6fd4
moved constants
usebeforefree May 8, 2025
e163e99
linked constants
usebeforefree May 8, 2025
a82e38a
new constants folder
usebeforefree May 8, 2025
3664f0b
import fix
usebeforefree May 8, 2025
bd8fa7e
path fixes
usebeforefree May 8, 2025
e87c7f5
version bump to 8.0.12
usebeforefree May 8, 2025
46dc045
Merge branch 'v8/develop' into export-constants
usebeforefree May 9, 2025
faf73a8
Merge pull request #239 from marko03kostic/export-constants
usebeforefree May 9, 2025
12cf45e
remove publish.js
May 9, 2025
5676be2
remove devnet and env constants
May 9, 2025
f02198d
derive environment from chain name
May 9, 2025
a4f36c0
update demos
May 9, 2025
5e890a8
bump version
May 9, 2025
858e397
revert to 8.0.12
May 9, 2025
9ee1f74
derive public key from private key
May 9, 2025
2a46195
add getWalletAddress function
May 9, 2025
52d7199
update demos
May 9, 2025
52dd267
index.cjs
May 9, 2025
1912046
Merge pull request #240 from OriginTrail/improvement/get-env-from-cha…
zsculac May 9, 2025
670bd77
Update assertion tools version
Mihajlo-Pavlovic May 19, 2025
6df09f7
Assertion tools depedency uplift to 8.0.5
usebeforefree May 19, 2025
ddcb6db
Merge pull request #241 from OriginTrail/uplift/assertion-tools-to-8.0.4
Mihajlo-Pavlovic May 19, 2025
7e83cf4
assertion tools update
Mihajlo-Pavlovic May 29, 2025
9e8e359
Merge pull request #244 from OriginTrail/release/8014
Mihajlo-Pavlovic May 30, 2025
6500e7c
main logic added
usebeforefree Jun 16, 2025
25e4092
main logic refined
usebeforefree Jun 17, 2025
28f613c
add automatic merge
Bojan131 Jun 17, 2025
d7acdd2
Merge pull request #247 from OriginTrail/add-auto-merge-workflow
Bojan131 Jun 17, 2025
f24f3c4
Upate to merge on PR
Bojan131 Jun 23, 2025
6d22d8c
version bump
Mihajlo-Pavlovic Jun 25, 2025
a2da184
Merge pull request #245 from OriginTrail/feature/estimate-publish-cost
Mihajlo-Pavlovic Jun 25, 2025
709f52c
fix get and query working only when private key is given
Jun 26, 2025
aa12807
suggesstions
Jun 26, 2025
f242d65
increase version
Jun 26, 2025
2bdf2f3
version naming
Jun 26, 2025
f963d47
Merge pull request #251 from OriginTrail/fix/get-query-work-only-with…
zsculac Jun 26, 2025
76b83ad
Update gas price to use fast instead of average
Bojan131 Jun 27, 2025
dfc08b0
Merge remote-tracking branch 'origin/v8/develop' into add-auto-merge-…
Bojan131 Jun 27, 2025
d102d01
Merge pull request #252 from OriginTrail/add-auto-merge-workflow
Bojan131 Jun 27, 2025
432e8fe
Update dkg version
Bojan131 Jun 27, 2025
858ab9a
Merge pull request #253 from OriginTrail/add-auto-merge-workflow
Bojan131 Jun 27, 2025
3f8e12d
update minimum gasPrice for Gnosis
Niks988 Jul 9, 2025
0528540
update minimum gasPrice for Gnosis
Niks988 Jul 9, 2025
f9e60de
update minimum gasPrice for Gnosis
Niks988 Jul 9, 2025
61fb11f
Remove .vscode/settings.json from PR
Niks988 Jul 9, 2025
5abd69a
fix gnosis gas price
Jul 9, 2025
92420fa
fix gnosis gas price in getGasPrice
Jul 9, 2025
e9a7ced
increase version
Jul 10, 2025
53fd60e
Merge pull request #256 from OriginTrail/fix/gnosis-gasprice
zsculac Jul 10, 2025
9bcf919
the gasPrice value is now set if the condition is a false
usebeforefree Jul 29, 2025
f06f5b3
update index.cjs
usebeforefree Jul 30, 2025
8f1f1e9
feat: implement reorg validation safety
Lexpeartha Jul 30, 2025
bc583a3
version bump
usebeforefree Jul 31, 2025
d7629fd
Merge pull request #259 from OriginTrail/fix/missing-condition-for-ga…
usebeforefree Jul 31, 2025
2f3dc04
chore: add 1 min timeout
Lexpeartha Aug 4, 2025
90ac8c4
fix: wait for finality only on neuroweb
Lexpeartha Aug 4, 2025
d023fe8
fix: incorrect block confirmation logic
Lexpeartha Aug 4, 2025
bb26cff
fix: infinite loop when mismatched
Lexpeartha Aug 4, 2025
248bce2
chore: regenerate index.cjs file
Lexpeartha Aug 4, 2025
084981b
Merge pull request #258 from Lexpeartha/v8/reorg-safety
Mihajlo-Pavlovic Aug 4, 2025
63f3a43
Ofix: remove unnecessary error
Lexpeartha Aug 5, 2025
726567a
Merge pull request #260 from Lexpeartha/v8/reorg-safety
Mihajlo-Pavlovic Aug 5, 2025
153994e
Changed sort method for private
MilanKomsa Oct 29, 2025
7b1f0ab
Merge pull request #263 from OriginTrail/fix/get-ELSA-above-10-indexe…
Mihajlo-Pavlovic Oct 31, 2025
bb1f48c
version uplift
Mihajlo-Pavlovic Oct 31, 2025
84321e8
Merge pull request #264 from OriginTrail/chore/v8.2.0-version-uplift
Mihajlo-Pavlovic Oct 31, 2025
4735966
gas and allowance fixes
MilanKomsa Dec 15, 2025
4c53b53
cleaning
MilanKomsa Dec 15, 2025
cc3809e
fixes from reviews
MilanKomsa Dec 15, 2025
cff2c97
fixes from reviews
MilanKomsa Dec 15, 2025
abd6cb0
fixes
MilanKomsa Dec 16, 2025
01579bb
formatting and return values
Dec 16, 2025
5ce76c2
remove unused latest block variable
Dec 16, 2025
9967168
remove unnecessary slice on baseFeePerGas
Dec 16, 2025
946473e
add FEE_HISTORY_BLOCK_COUNT constants
Dec 16, 2025
3bc339c
lower buffer percent to 5
Dec 16, 2025
f81c83f
wrap number arounf bufferPercent
Dec 16, 2025
5d8aeca
use max priority fee from fee history
Dec 16, 2025
cb08e99
apply price buffer if it exists
Dec 16, 2025
aab74d5
add user defined gasPrice
Dec 16, 2025
a0fc90e
8.2.1
Dec 16, 2025
8877fdb
rename bufferPercent to gasPriceBufferPercent
Dec 16, 2025
88aaddc
Merge pull request #266 from OriginTrail/fix/allowance-setting-logic-…
MilanKomsa Dec 16, 2025
7435a82
percentile 80, bufferPercent multiply
MilanKomsa Dec 17, 2025
a5ad0a4
variable priorityFeePercentile
MilanKomsa Dec 17, 2025
827f326
80 percentile fallback
MilanKomsa Dec 17, 2025
0e6a648
fix fallback applyGasPriceBuffer
MilanKomsa Dec 17, 2025
53d7f99
Merge pull request #267 from OriginTrail/patch/percentile-constant-ch…
MilanKomsa Dec 17, 2025
c9516b4
8.2.2
MilanKomsa Dec 17, 2025
55a57f7
Merge pull request #268 from OriginTrail/version-bump
MilanKomsa Dec 17, 2025
940d3ac
[feature] Split asset creation into publish/mint/finalize phases whil…
Dec 22, 2025
21fd410
Add EIP-1559 gas mode toggle and nonce reservation”
Dec 26, 2025
8ca834e
[fix] Clarify gas fee fallbacks and validate publish finality UAL
Dec 29, 2025
51cb952
Normalize gas mode handling and record actual gas prices
Dec 29, 2025
82655b1
8.2.3
lupuszr Dec 29, 2025
4327d03
Merge pull request #269 from OriginTrail/feature-split-asset-crate
lupuszr Dec 29, 2025
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
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Example file includes real private key

.env.example contains a concrete PRIVATE_KEY value. Even if intended for local Hardhat usage, it’s easy for users/CI to copy it into .env and accidentally reuse a known key outside local testing, leading to compromised funds or account control.

Fix in Cursor Fix in Web

File renamed without changes.
38 changes: 38 additions & 0 deletions .github/workflows/auto-merge-main-to-Test_Publish_Query.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Auto Merge v8/develop into Test_Publish_Query

on:
push:
branches:
- v8/develop
pull_request:
branches:
- v8/develop
types:
- closed

jobs:
merge-develop-into-feature:
if: github.event.pull_request.merged == true || github.event_name == 'push'
runs-on: ubuntu-latest

steps:
- name: Checkout target branch (Test_Publish_Query)
uses: actions/checkout@v3
with:
ref: Test_Publish_Query
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Git identity
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"

- name: Fetch latest v8/develop
run: git fetch origin v8/develop

- name: Merge v8/develop into Test_Publish_Query
run: |
git merge origin/v8/develop --no-edit || echo "Merge failed but continuing"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Workflow silently masks merge failures before pushing

The merge command uses || echo "Merge failed but continuing" which causes the step to succeed even when the merge fails. The subsequent push step then executes, but since HEAD hasn't changed (due to the failed merge), nothing meaningful is pushed. The workflow reports success despite failing to actually merge the branches, which could mislead teams into thinking branches are synchronized when they aren't.

Fix in Cursor Fix in Web


- name: Push updated branch
run: git push origin HEAD:Test_Publish_Query
Comment on lines +15 to +38

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 23 days ago

To fix the issue, an explicit permissions block should be added to either the root of the workflow or to the individual job in the workflow YAML file. Since this workflow pushes commits to a branch (git push) and performs merges, it requires contents: write permission for repository contents (code, branches). The safest and most maintainable fix is to add a permissions block at the root of the YAML file (below name: and before on:), giving contents: write. This immediately clarifies what the workflow can do, prevents privilege escalation should defaults change, and adheres to GitHub's security guidelines.

Implementation Steps:

  • Edit .github/workflows/auto-merge-main-to-Test_Publish_Query.yml.
  • Insert the following after the name: line (line 1), before the on: block:
    permissions:
      contents: write

Suggested changeset 1
.github/workflows/auto-merge-main-to-Test_Publish_Query.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/auto-merge-main-to-Test_Publish_Query.yml b/.github/workflows/auto-merge-main-to-Test_Publish_Query.yml
--- a/.github/workflows/auto-merge-main-to-Test_Publish_Query.yml
+++ b/.github/workflows/auto-merge-main-to-Test_Publish_Query.yml
@@ -1,4 +1,6 @@
 name: Auto Merge v8/develop into Test_Publish_Query
+permissions:
+  contents: write
 
 on:
   push:
EOF
@@ -1,4 +1,6 @@
name: Auto Merge v8/develop into Test_Publish_Query
permissions:
contents: write

on:
push:
Copilot is powered by AI and may make mistakes. Always verify output.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.env
node_modules/
.idea/

Expand All @@ -12,3 +13,7 @@ kg-example.json

client-d-n.html
client-d-n.js
assets
mainnet_base.html
mainnet_base.json
mochawesome-report
38 changes: 23 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<a name="readme-top"></a>

___
---

<br />
<div align="center">
Expand All @@ -15,7 +15,7 @@ ___
</br>
<a href="https://docs.origintrail.io/">OriginTrail Docs</a>
·
<a href="https://github.com/OriginTrail/dkg.js/examples/demo.js">View Demo</a>
<a href="https://github.com/OriginTrail/dkg.js/blob/v8/develop/examples/demo.js">View Demo</a>
·
<a href="https://github.com/OriginTrail/dkg.js/issues">Report Bug</a>
·
Expand Down Expand Up @@ -52,7 +52,7 @@ ___
</ol>
</details>

___
---

<br/>

Expand All @@ -62,6 +62,7 @@ ___
<summary>

### **What is the Decentralized Knowledge Graph?**

</summary>

<br/>
Expand All @@ -71,31 +72,35 @@ ___
</div>

OriginTrail Decentralized Knowledge Graph (DKG), hosted on the OriginTrail Decentralized Network (ODN) as trusted knowledge infrastructure, is shared global Knowledge Graph of Knowledge Assets. Running on the basis of the permissionless multi-chain OriginTrail protocol, it combines blockchains and knowledge graph technology to enable trusted AI applications based on key W3C standards.

</details>

<details open>
<summary>

### **The OriginTrail DKG Architecture**

</summary>

<br/>

The OriginTrail tech stack is a three layer structure, consisting of the multi-chain consensus layer (OriginTrail layer 1, running on multiple blockchains), the Decentralized Knowledge Graph layer (OriginTrail Layer 2, hosted on the ODN) and Trusted Knowledge applications in the application layer.
The OriginTrail tech stack is a three layer structure, consisting of the multi-chain consensus layer (OriginTrail layer 1, running on multiple blockchains), the Decentralized Knowledge Graph layer (OriginTrail Layer 2, hosted on the ODN) and Trusted Knowledge applications in the application layer.

<div align="center">
<img src="images/dkg-architecture.png" alt="DKG Architecture" width="400">
</div>

Further, the architecture differentiates between **the public, replicated knowledge graph** shared by all network nodes according to the protocol, and **private Knowledge graphs** hosted separately by each of the OriginTrail nodes.

**Anyone can run an OriginTrail node and become part of the ODN, contributing to the network capacity and hosting the OriginTrail DKG. The OriginTrail node is the ultimate data service for data and knowledge intensive Web3 applications and is used as the key backbone for trusted AI applications (see https://chatdkg.ai)**
**Anyone can run an OriginTrail node and become part of the ODN, contributing to the network capacity and hosting the OriginTrail DKG. The OriginTrail node is the ultimate data service for data and knowledge intensive Web3 applications and is used as the key backbone for trusted AI applications (see https://chatdkg.ai)**

</details>

<details open>
<summary>

### **What is a Knowledge Asset?**

</summary>

<br/>
Expand All @@ -107,15 +112,16 @@ Further, the architecture differentiates between **the public, replicated knowle
**Knowledge Asset is the new, AI‑ready resource for the Internet**

Knowledge Assets are verifiable containers of structured knowledge that live on the OriginTrail DKG and provide:
- **Discoverability - UAL is the new URL**. Uniform Asset Locators (UALs, based on the W3C Decentralized Identifiers) are a new Web3 knowledge identifier (extensions of the Uniform Resource Locators - URLs) which identify a specific piece of knowledge and make it easy to find and connect with other Knowledge Assets.
- **Ownership - NFTs enable ownership**. Each Knowledge Asset contains an NFT token that enables ownership, knowledge asset administration and market mechanisms.
- **Verifiability - On-chain information origin and verifiable trail**. The blockchain tech increases trust, security, transparency, and the traceability of information.

- **Discoverability - UAL is the new URL**. Uniform Asset Locators (UALs, based on the W3C Decentralized Identifiers) are a new Web3 knowledge identifier (extensions of the Uniform Resource Locators - URLs) which identify a specific piece of knowledge and make it easy to find and connect with other Knowledge Assets.
- **Ownership - NFTs enable ownership**. Each Knowledge Asset contains an NFT token that enables ownership, knowledge asset administration and market mechanisms.
- **Verifiability - On-chain information origin and verifiable trail**. The blockchain tech increases trust, security, transparency, and the traceability of information.

By their nature, Knowledge Assets are semantic resources (following the W3C Semantic Web set of standards), and through their symbolic representations inherently AI ready. See more at https://chatdkg.ai
<br/>

**Discover Knowledge Assets with the DKG Explorer:**

<div align="center">
<table>
<tr>
Expand Down Expand Up @@ -147,36 +153,38 @@ By their nature, Knowledge Assets are semantic resources (following the W3C Sema
</table>
</div>


</details>

<p align="right">(<a href="#readme-top">back to top</a>)</p>
<br/>

## 🚀 Getting Started

___
---

### Prerequisites

- **Node.js** >= 16.0.0
- **npm** >= 8.0.0
- **Node.js** >= 16.0.0
- **npm** >= 8.0.0

In order to use in the local environment, make sure to [run the local DKG network](https://github.com/OriginTrail/ot-node?tab=readme-ov-file#local-network-setup).

___
---

<br/>

### Installation

<br/>

Install the SDK:

```bash
npm install dkg.js
```

Now you can run a demo example file (requires the local DKG network running):
Now you can run a demo example file (requires the local DKG network running):

```bash
node examples/demo.js
```
Expand Down Expand Up @@ -246,4 +254,4 @@ Don't forget to give the project a star! Thanks again!
</a>
</div>

___
---
Loading
Loading