Skip to content

Change examples, docs and tests to use braga instead of kaolin#56

Merged
SewerynKras merged 1 commit into
developfrom
braga
May 6, 2026
Merged

Change examples, docs and tests to use braga instead of kaolin#56
SewerynKras merged 1 commit into
developfrom
braga

Conversation

@SewerynKras
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 6, 2026 11:44
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the SDK’s examples and documentation to use the braga chain (Arkiv testnet) instead of kaolin, aligning smoke tests, sample scripts, and README snippets with the newer default network reference.

Changes:

  • Switched smoke-test scripts (TS/ESM/CJS) from kaolin to braga.
  • Updated public/wallet client and action JSDoc examples to reference braga.
  • Updated README and sample read_example.ts/write_example.ts to use braga (including faucet URL).

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
test/src/smoke-tests/index.ts Use braga chain in TS smoke test.
test/src/smoke-tests/index.mjs Use braga chain in ESM smoke test.
test/src/smoke-tests/index.js Use braga chain in JS smoke test.
test/src/smoke-tests/index.cjs Use braga chain in CJS smoke test.
src/clients/decorators/arkivWallet.ts Update wallet action docs examples to braga (noted one example still uses a public client).
src/clients/decorators/arkivPublic.ts Update public action docs examples to braga.
src/clients/createWalletClient.ts Update top-level wallet client docs to braga (noted doc text/example inconsistencies).
src/clients/createPublicClient.ts Update top-level public client docs to braga (noted RPC URL inconsistency).
sample/write_example.ts Update write sample to use braga.
sample/read_example.ts Update read sample to use braga.
README.md Update README examples and faucet reference to braga.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

* - Docs: https://docs.arkiv.network/ts-sdk/clients/public
*
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [Kaolin JSON-RPC API](https://kaolin.holesky.arkiv.network/rpc) methods such as retrieving block numbers, transactions, reading from smart contracts, etc through [Public Actions](/docs/actions/public/introduction).
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [Braga JSON-RPC API](https://braga.holesky.arkiv.network/rpc) methods such as retrieving block numbers, transactions, reading from smart contracts, etc through [Public Actions](/docs/actions/public/introduction).
Comment on lines 25 to +30
/**
* Creates a Public Client with a given [Transport](https://viem.sh/docs/clients/intro) configured for a [Chain](https://viem.sh/docs/clients/chains).
*
* - Docs: https://docs.arkiv.network/ts-sdk/clients/public
*
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [Kaolin JSON-RPC API](https://kaolin.holesky.arkiv.network/rpc) methods such as retrieving block numbers, transactions, reading from smart contracts, etc through [Public Actions](/docs/actions/public/introduction).
* A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [Braga JSON-RPC API](https://braga.holesky.arkiv.network/rpc) methods such as retrieving block numbers, transactions, reading from smart contracts, etc through [Public Actions](/docs/actions/public/introduction).
Comment on lines 35 to +40
* @example
* import { createPublicClient, http } from 'arkiv'
* import { kaolin } from 'arkiv/chains'
* import { braga } from 'arkiv/chains'
*
* const client = createPublicClient({
* chain: kaolin,
* chain: braga,
Comment on lines 59 to +64
* @example
* import { createPublicClient, http } from 'arkiv'
* import { kaolin } from 'arkiv/chains'
* import { braga } from 'arkiv/chains'
*
* const client = createPublicClient({
* chain: kaolin,
* chain: braga,
@SewerynKras SewerynKras merged commit aa470a5 into develop May 6, 2026
9 checks passed
@SewerynKras SewerynKras deleted the braga branch May 6, 2026 11:50
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