Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: coinbase/onchainkit
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.33.2
Choose a base ref
...
head repository: coinbase/onchainkit
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing 863 changed files with 36,031 additions and 22,759 deletions.
1 change: 1 addition & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -9,3 +9,4 @@
"updateInternalDependencies": "patch",
"ignore": []
}

16 changes: 0 additions & 16 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -2,10 +2,6 @@ root:
- changed-files:
- any-glob-to-any-file: '*'

framegear:
- changed-files:
- any-glob-to-any-file: framegear/**

documentation:
- changed-files:
- any-glob-to-any-file: site/**
@@ -14,14 +10,6 @@ documentation:
- changed-files:
- any-glob-to-any-file: src/core/**

'pkg: farcaster':
- changed-files:
- any-glob-to-any-file: src/farcaster/**

'pkg: frame':
- changed-files:
- any-glob-to-any-file: src/frame/**

'pkg: fund':
- changed-files:
- any-glob-to-any-file: src/fund/**
@@ -53,7 +41,3 @@ documentation:
'pkg: wallet':
- changed-files:
- any-glob-to-any-file: src/wallet/**

'pkg: xmtp':
- changed-files:
- any-glob-to-any-file: src/xmtp/**
52 changes: 52 additions & 0 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: "CLI: Build & Install"

on:
push:
branches:
- main
paths:
- 'create-onchain/**'
pull_request:
branches:
- main
paths:
- 'create-onchain/**'

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Install dependencies
working-directory: ./create-onchain
run: bun install

- name: Build CLI
working-directory: ./create-onchain
run: bun run build

- name: Make CLI executable
run: chmod +x ./create-onchain/dist/esm/cli.js

- name: Create test project
run: |
mkdir test-project
cd test-project
yes "" | ../create-onchain/dist/esm/cli.js
- name: Install & Build test project
working-directory: ./test-project/my-onchainkit-app
run: |
npm install
npm run build
6 changes: 3 additions & 3 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
@@ -19,13 +19,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache: 'yarn'

- name: Site Install dependencies
working-directory: ./site
run: npm install
run: yarn install

- name: Site Test Build
working-directory: ./site
run: |
npm run build
yarn run build
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -19,11 +19,12 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache: 'yarn'

- name: Kit Install dependencies
run: npm install && npm install --prefix ./framegear
run: |
yarn install
- name: Kit Test
# When fails, please check your tests
run: npm run test:coverage
run: yarn test:coverage
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -62,3 +62,6 @@ docs/.vitepress/dist

*storybook.log
storybook-static/

# Tarballs
*.tgz
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"tabWidth": 2,
"singleQuote": true
"singleQuote": true,
"trailingComma": "all"
}
15 changes: 15 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// biome-ignore lint/correctness/noNodejsModules: Needed for vite resolving
import path from 'node:path';
import type { StorybookConfig } from '@storybook/react-vite';
import { mergeConfig } from 'vite';

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(ts|tsx)'],
@@ -13,6 +16,18 @@ const config: StorybookConfig = {
name: '@storybook/react-vite',
options: {},
},
viteFinal: async (config) => {
return mergeConfig(config, {
resolve: {
alias: {
'@/core': path.resolve(__dirname, '../src/core'),
'@/core-react': path.resolve(__dirname, '../src/core-react'),
'@/ui-react': path.resolve(__dirname, '../src/ui/react'),
'@': path.resolve(__dirname, '../src'),
},
},
});
},
};

export default config;
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
Loading