Skip to content

Commit

Permalink
feat: Client -> Oddworld (less ambiguity)
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Nov 13, 2024
1 parent a69b6ac commit 29cbe04
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,20 @@ jobs:
- name: Install dependencies
uses: ./.github/actions/install-dependencies

# - name: PR or publish
# uses: changesets/action@v1
# with:
# title: 'chore: version packages'
# commit: 'chore: version packages'
# createGithubReleases: ${{ github.ref == 'refs/heads/main' }}
# publish: pnpm changeset:publish
# version: pnpm changeset:version
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: PR or publish
uses: changesets/action@v1
with:
title: 'chore: version packages'
commit: 'chore: version packages'
createGithubReleases: ${{ github.ref == 'refs/heads/main' }}
publish: pnpm changeset:publish
version: pnpm changeset:version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish Prerelease
# if: steps.changesets.outputs.published != 'true'
if: steps.changesets.outputs.published != 'true'
continue-on-error: true
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions playground/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import {
rainbowWallet,
safeWallet,
} from '@rainbow-me/rainbowkit/wallets'
import { Client } from 'oddworld'
import { Oddworld } from 'oddworld'
import { http, createConfig } from 'wagmi'
import { odysseyTestnet } from 'wagmi/chains'

export const oddworld = Client.create()
export const oddworld = Oddworld.create()

const connectors = connectorsForWallets(
[
Expand Down
8 changes: 4 additions & 4 deletions src/Client.ts → src/Oddworld.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import { experimentalDelegationAddress } from './generated.js'
import * as AccountDelegation from './internal/accountDelegation.js'

/**
* Instantiates an Oddworld Client instance.
* Instantiates an Oddworld instance.
*
* @example
* ```ts twoslash
* import { Client } from 'oddworld'
* import { Oddworld } from 'oddworld'
*
* const client = Client.create()
* const oddworld = Oddworld.create()
*
* const blockNumber = await client.provider.request({ method: 'eth_blockNumber' })
* const blockNumber = await oddworld.provider.request({ method: 'eth_blockNumber' })
* ```
*/
export function create<
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * as Client from './Client.js'
export * as Oddworld from './Oddworld.js'

0 comments on commit 29cbe04

Please sign in to comment.