Skip to content

PAPI + IPFS script#103

Merged
bkontur merged 22 commits into
mainfrom
auth_papi
Nov 20, 2025
Merged

PAPI + IPFS script#103
bkontur merged 22 commits into
mainfrom
auth_papi

Conversation

@x3c41a
Copy link
Copy Markdown
Contributor

@x3c41a x3c41a commented Nov 17, 2025

authorize_and_store.js but with PAPI

Terminal 1

# Run Bulletin chain 
POLKADOT_BULLETIN_BINARY_PATH=./target/release/polkadot-bulletin-chain ./zombienet-macos-arm64 -p native spawn ./zombienet/bulletin-polkadot-local.toml

Terminal 2

# Start IPFS daemon
./kubo/ipfs daemon

Terminal 3

# The connection is unstable, we need to constantly reconnect
./scripts/ipfs-reconnect-solo.sh

Terminal 4

# Run authorize and store with PAPI
npm install
npm run papi:generate
cd examples
node authorize_and_store_papi.js

Comment thread examples/authorize_and_store_papi.js Outdated
@x3c41a x3c41a marked this pull request as draft November 17, 2025 16:29
…ing that content by CID from IPFS - does not. Investigating why...
@x3c41a x3c41a changed the title PAPI + Smoldot script PAPI + IPFS script Nov 19, 2025
Comment thread examples/package.json
Comment thread examples/polkadot-api.json Outdated
Comment thread scripts/ipfs-reconnect-solo.sh
Comment thread examples/package.json
Comment thread README.md Outdated
@x3c41a x3c41a marked this pull request as ready for review November 20, 2025 08:17
Comment thread examples/authorize_and_store_papi.js Outdated
Comment thread examples/authorize_and_store_papi.js Outdated
Comment thread examples/authorize_and_store_papi.js Outdated
Comment thread scripts/ipfs-reconnect-solo.sh Outdated
Comment thread scripts/ipfs-reconnect-solo.sh Outdated
Comment thread scripts/ipfs-reconnect-solo.sh Outdated
Comment thread scripts/ipfs-reconnect-solo.sh Outdated
Comment thread README.md Outdated
Comment thread examples/README.md Outdated
Comment thread examples/README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md
Comment thread examples/README.md Outdated
Copy link
Copy Markdown
Collaborator

@bkontur bkontur left a comment

Choose a reason for hiding this comment

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

@x3c41a very good, working as expected, I just changed that we don't wait for finalized block to speed it up - it is ok for testing and I hope this will be unblock me with testing here: #100

@bkontur bkontur merged commit bb0d238 into main Nov 20, 2025
5 of 6 checks passed
@bkontur bkontur deleted the auth_papi branch November 20, 2025 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants