Release process
Describe our release process
Update releases in pom and check tests are passing.
x402-commons
Intellij / analyse / inspect code
just run_testsjust run_install
x402-java-client
Intellij / analyse / inspect code
Change
mogami.commons.versionto latest snapshot.just run_testsjust run_install
x402-spring-boot-starter
Intellij / analyse / inspect code
Change
mogami.commons.versionto latest snapshot.just run_testsjust run_install
x402-facilitator
Intellij / analyse / inspect code
Change
mogami.commons.versionto latest snapshot.Change
mogami.java-client.versionto latest snapshot.just run_testsjust build_docker_image
x402-example-server
Intellij / analyse / inspect code
Change
mogami.spring-boot-starter.versionto latest snapshot.Change
mogami.java-client.versionto latest snapshot.
Run a payment with a local facilitator on Base Sepolia.
Start a local docker facilitator:
docker run -e PORT=4020 \
-e X402_FACILITATOR_PRIVATE_KEY=FACILITATOR_PRIVATE_KEY \
-p 4020:8080 \
mogamitech/facilitator:latestGet the example projet and run the tests with:
just run_tests_local_facilitatorYou can check the balance of our two test addresses here: - 0xf6b42050A71Ca13f842eDa53C7d31B7C1BD94F6E (payer) - 0x375605671ddA2d461E333Cfa51F5b53763E8C585 (provider)
Run a payment with a local facilitator on Base Mainnet.
Start a local docker facilitator:
docker run -e PORT=4020 \
-e X402_FACILITATOR_PRIVATE_KEY=FACILITATOR_PRIVATE_KEY \
-p 4020:8080 \
mogamitech/facilitator:latestOpen a terminal and set the sender private key with this command:
export TIP_PRIVATE_KEY=SENDER_PRIVATE_KEYThe presence of TIP_PRIVATE_KEY will force the example application to call the /tip api and pay for it.
In the example project, just run the application with:
just run_application_local_facilitatorYou can check the balance of our two test addresses here: - 0x375605671ddA2d461E333Cfa51F5b53763E8C585 (payer) - 0x2306e12F56e45E698bFAfa9c5E7D4e77cDEb4d06 (provider)
Release and update projects in that order
Wait until all projects are available here: https://central.sonatype.com/search?q=mogami
Make a release of x402-facilitator and wait until it's deployed. Once deploy, check the launch logs to check if the configuration is correct.
Update releases in projet x402-examples.
Run a payment with hosted facilitator on Base Sepolia.
Warning: Stop the local facilitator and remove the TIP_PRIVATE_KEY env variable.
Run the example using hosted facilitator:
just run_testsYou can check the balance of our two test addresses here: - 0xf6b42050A71Ca13f842eDa53C7d31B7C1BD94F6E (payer) - 0x375605671ddA2d461E333Cfa51F5b53763E8C585 (provider)
Run a payment with hosted facilitator on Base Mainnet.
Open a terminal, set the sender private key and the target URL with this command:
EXPORT TIP_PRIVATE_KEY=SENDER_PRIVATE_KEY
EXPORT TIP_URL=https://playground.mogami.tech/tipAnd then, run:
just run_applicationYou can check the balance of our two test addresses here:
You can now release x402-examples.
Documentation.
You can now update the documentation, especially project versions.
Last updated