Skip to content
Open

Master #2547

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
209 commits
Select commit Hold shift + click to select a range
3690187
test
alissacrane-cb Mar 26, 2025
85206c5
test
abcrane123 Mar 26, 2025
0cdcc65
Create SECURITY.md (#1)
Dargon789 Apr 12, 2025
00794cf
Add .circleci/config.yml
Dargon789 Apr 13, 2025
be71573
Add .circleci/config.yml (#2)
Dargon789 Apr 13, 2025
caeb355
initial
abcrane123 Apr 22, 2025
3333f72
chore: deprecate code (#2312)
abcrane123 Apr 24, 2025
fbab72c
feat: upgrade tailwind to v4 (#2313)
xtbase Apr 29, 2025
982e17c
chore: refactor fund components (#2311)
abcrane123 May 2, 2025
77278ee
Deprecate ock classes (#2325)
xtbase May 2, 2025
e15914e
chore: remove deprecated default components (#2328)
abcrane123 May 2, 2025
45b062d
feat: <Connected /> component (#2317)
dgca May 5, 2025
3063a61
v1: Fix lint issues (#2338)
dgca May 5, 2025
298c565
chore: Add onchainkit-v1 to CI test/lint/format workflows (#2340)
dgca May 6, 2025
0d14944
chore: Merge main into onchainkit-v1 (#2346)
dgca May 7, 2025
6f2a212
chore: merge main (#2356)
xtbase May 13, 2025
58c8392
Feat: React 19 + Nextjs 15 upgrade (#2337)
xtbase May 13, 2025
f79f88e
feat: explore render prop for transaction (#2316)
abcrane123 May 16, 2025
f87493e
Merge branch 'coinbase:main' into main
Dargon789 May 26, 2025
513a732
chore: add context exports (#2261)
abcrane123 Apr 14, 2025
a3907e5
feat: Add batch ENS / Basename resolution with useAddresses hook and …
Apr 14, 2025
3e7c8f2
chore: add provider exports back (#2278)
abcrane123 Apr 14, 2025
b369057
refactor: Replace Packemon with Vite (#2227)
dgca Apr 14, 2025
8e49fa4
fix: Don't clean out out dir when building in dev mode (#2279)
dgca Apr 14, 2025
f9ac80c
fix wallet modal (#2282)
abcrane123 Apr 15, 2025
89647f0
fix: Separate deafult Wagmi and Query providers (#2280)
dgca Apr 15, 2025
6539766
chore: show connect button when disconnected in Identity demo (#2285)
abcrane123 Apr 16, 2025
b43425c
Fix: Flaky AppchainBridgeProvider network toggle test (#2288)
Apr 16, 2025
a1cd8f0
refactor: send display name (#2283)
brendan-defi Apr 16, 2025
36e894a
chore: Refactor getNames utility to leverage batch processing with ge…
Apr 16, 2025
0e6a2dc
chore: fix typos in documentation (#2286)
leopardracer Apr 16, 2025
abfb783
chore: Dynamically set version in version.ts (#2290)
dgca Apr 17, 2025
e5199b6
fix: viem version (#2291)
alessey Apr 17, 2025
a39e8b2
fix: viem (#2293)
alessey Apr 17, 2025
c4bf182
fix: viem (#2295)
alessey Apr 17, 2025
04b4007
chore: Add @farcaster/frame-sdk dependency to minikit templates (#2297)
heyztb Apr 18, 2025
388771c
chore: bump cli templates deps (#2296)
alessey Apr 21, 2025
6208192
chore: remove smart wallet check from cli prompt (#2287)
abcrane123 Apr 21, 2025
0189040
fix: ready options (#2300)
alessey Apr 22, 2025
a5aff39
fix: authenticate against user fid (#2299)
alessey Apr 22, 2025
11ecee2
chore: version packages v 0.38.8 🌊 (#2276)
github-actions[bot] Apr 22, 2025
a7f2797
fix: OnchainKit package.json publishConfig.access = public (#2306)
dgca Apr 22, 2025
b671486
chore: add redirect for `getOnrampBuyUrl` (#2104)
dschlabach Apr 23, 2025
0227374
fix: signature provider unmount reset (#2172)
teimurjan Apr 23, 2025
721ca38
fix: Updates playground to remove outdated imports (#2294)
dgca Apr 23, 2025
b1f6a34
chore(deps): bump next from 14.2.25 to 14.2.26 (#2215)
dependabot[bot] Apr 23, 2025
f5b1d80
chore: update `create-onchain` version (#2315)
dschlabach Apr 26, 2025
45af789
fix: rpcUrl (#2319)
brendan-defi Apr 28, 2025
7e84d03
chore: update release workflows (#2314)
dschlabach Apr 29, 2025
befb555
fix: fix root build command (#2320)
dschlabach Apr 29, 2025
e449832
fix: fix build command in workflow (#2321)
dschlabach Apr 29, 2025
c7fa9e4
fix: narrow filtering for release workflow (#2322)
dschlabach Apr 29, 2025
a3ce1e7
chore: version packages v0.38.9 🌊 (#2323)
github-actions[bot] Apr 29, 2025
5d6e915
fix: support an insecure fallback for session id to allow for testing…
xtbase Apr 29, 2025
c48aa52
chore: Make create-onchain library public (#2324)
dgca Apr 30, 2025
cbebd29
chore: Don't ask to generate manifest during app creation in create-o…
dgca May 1, 2025
c811694
fix: Basenames bidirectional validation (#2329)
dgca May 1, 2025
1cc007e
chore: version packages v0.38.10 🌊 (#2330)
github-actions[bot] May 1, 2025
421b03d
fix: getSocials (#2333)
dgca May 2, 2025
8cc7a78
docs: fix broken link (#2331)
GarmashAlex May 2, 2025
293c336
feat: Make sign up button optional (#2332)
dgca May 6, 2025
436729d
chore: Release changesets (#2342)
dgca May 6, 2025
11beba0
Chore: workflow improvement for vscode/cursor users (#2334)
xtbase May 6, 2025
1817884
chore: version packages 🚀 (#2343)
github-actions[bot] May 7, 2025
0cf7de7
chore: enable paymaster for wallet advanced Send (#2335)
abcrane123 May 7, 2025
0b433fe
fix: MiniKit frames connector (#2347)
dgca May 7, 2025
840de87
chore: version packages 🚀 (#2348)
github-actions[bot] May 7, 2025
eff917e
fix: Update wagmi config if connectors change (#2350)
dgca May 7, 2025
f7a35dd
chore: version packages 🚀 (#2352)
github-actions[bot] May 7, 2025
5c78d77
chore(deps-dev): bump vite from 6.2.3 to 6.2.7 (#2327)
dependabot[bot] May 8, 2025
a1e63d1
chore: Use signed commits for Changesets action (#2351)
dgca May 13, 2025
930c401
chore: Update MiniKit mini app manifest (#2355)
dgca May 13, 2025
bb07ea0
chore: version packages 🚀 (#2362)
github-actions[bot] May 14, 2025
678620f
Create dependency-review.yml
Dargon789 May 27, 2025
cd9eb4e
chore: switch enums -> object consts (#2363)
xtbase May 29, 2025
2f4dd0f
chore: token audit (#2357)
abcrane123 May 29, 2025
d0238fb
Merge branch 'coinbase:main' into main
Dargon789 May 30, 2025
4ab1425
Create stale.yml (#5)
Dargon789 May 30, 2025
2f516b9
Feat: TextInput updates (#2361)
xtbase May 30, 2025
a634618
chore: update txn types (#2370)
abcrane123 May 30, 2025
1d86f30
[feat] Update popover (#2374)
xtbase Jun 2, 2025
5535237
chore: Buy component audit (#2371)
abcrane123 Jun 4, 2025
f743107
chore: remove useValue usage (#2381)
abcrane123 Jun 4, 2025
951325f
chore: audit identity (#2382)
abcrane123 Jun 5, 2025
5dd4a4b
Merge branch 'coinbase:main' into main
Dargon789 Jun 7, 2025
ccee6d1
[feat][1/n] Update internal components (#2387)
xtbase Jun 9, 2025
5c9e30a
chore: audit earn (#2380)
abcrane123 Jun 9, 2025
9da304d
chore: rename nft types (#2386)
abcrane123 Jun 9, 2025
855758b
chore: rename appchain types (#2388)
abcrane123 Jun 9, 2025
a9d5b0c
chore: rename checkout types (#2385)
abcrane123 Jun 9, 2025
f57dbc7
[feat][2/n] Update rest of internal components (#2389)
xtbase Jun 9, 2025
43fb802
v1: Signature audit pt 1 (#2360)
dgca Jun 12, 2025
f9fe5b5
[feat] Update toast (#2397)
xtbase Jun 13, 2025
fd37650
chore: cleanup types and export utils (#2394)
abcrane123 Jun 13, 2025
74252e8
[feat] swap audit (#2379)
xtbase Jun 13, 2025
1aaeda5
[chore] core/api folder audit (#2392)
xtbase Jun 16, 2025
9487c5b
chore: Make theming based on data-attribute (#2410)
dgca Jun 25, 2025
2e66a93
chore: Merge main into ock-v1 (#2411)
dgca Jun 26, 2025
d051c38
chore: Prefix component classnames (#2310)
dgca Jun 26, 2025
4bd1b52
v1: Wallet audit (#2383)
dgca Jun 27, 2025
93e036f
refactor: MiniKit and OnchainKit audit (#2412)
dgca Jun 28, 2025
9502adf
chore: Merge main into onchainkit-v1 (#2414)
dgca Jun 30, 2025
b9c335a
Bump onchainkit version to v1
dgca Jun 30, 2025
28c1f65
Merge branch 'coinbase:main' into master
Dargon789 Jul 1, 2025
07623be
Merge branch 'coinbase:main' into main
Dargon789 Jul 1, 2025
483a3b0
chore: Publish create-onchain@alpha (#2416)
dgca Jul 1, 2025
0b46fe1
chore: add 'use client' directive to core provider modules for Next.j…
0xFloyd Jul 3, 2025
028865b
chore: Create new templates directory and add basic OnchainKit templa…
dgca Jul 7, 2025
021d8fb
chore: Simplify MiniKit template (#2420)
dgca Jul 7, 2025
b5970f8
chore: Update create-onchain CLI tool to handle new templates (#2421)
dgca Jul 8, 2025
9f81ff4
Merge branch 'coinbase:main' into main
Dargon789 Jul 11, 2025
7152dd6
Update publish-prerelease.js (#7)
Dargon789 Jul 11, 2025
c42d44a
refactor: Use floating UI for wallet dropdown (#2433)
dgca Jul 24, 2025
a0182c8
fix: Move wallet click outside logic to WalletDropdown (#2447)
dgca Aug 8, 2025
1616b94
fix: Get alpha into mergable state (#2452)
dgca Aug 15, 2025
ae083eb
Merge main into alpha
dgca Aug 15, 2025
c7bb397
frame-sdk => miniapp-sdk
dgca Aug 15, 2025
89dc81b
Remove notifications in playground
dgca Aug 15, 2025
60b9956
Skip create-onchain test if on alpha branch, since it checks out @latest
dgca Aug 15, 2025
f6b3b9e
refactor: Use Mantine for minikit example app (#2458)
dgca Aug 17, 2025
f9f09c3
chore: Set account association in MiniKit example app (#2459)
dgca Aug 17, 2025
def24a1
Add name to example minikit app fc:frame
dgca Aug 17, 2025
d7daf07
Add logging to useUserInfo
dgca Aug 17, 2025
6e2d959
Add logging to getUrlHost
dgca Aug 17, 2025
9142bf2
Try to get the hostname from request headers
dgca Aug 17, 2025
8674a3f
Clean up minikit example app hostname resolution
dgca Aug 17, 2025
2cd48df
feat: Add batched transaction example to MiniKit Example App (#2460)
dgca Aug 17, 2025
bd04a8d
fix: ConnectWallet render prop (#2454)
dgca Aug 18, 2025
ca070bf
feat: Update Sign in with Base wallet UI (#2456)
dgca Aug 18, 2025
4bc3309
chore: Upgrade guides + minor tweaks (#2464)
dgca Aug 18, 2025
3f75642
Add new project section to upgrade guide
dgca Aug 18, 2025
7659eae
Fix lint issues
dgca Aug 18, 2025
0462f5a
fix: Include .gitignore in alpha projects (#2467)
dgca Aug 20, 2025
5967791
See context
dgca Aug 21, 2025
c0b3675
pre
dgca Aug 21, 2025
df618c3
Overflow scroll context
dgca Aug 21, 2025
f96d9e1
Test logging quickauth payload
dgca Aug 21, 2025
ce1581b
feat: Add optional `defaultPublicClients` prop to allow creating cust…
dgca Sep 3, 2025
6d65eee
feat: adding support for custom unmounted content for wallet
xtbase Sep 5, 2025
8c2169b
Merge branch 'coinbase:main' into master
Dargon789 Sep 10, 2025
e6bb3a3
Create Hardhat.yml (#10)
Dargon789 Sep 10, 2025
6925509
feat: upgrade react from 18.3.1 to 19.1.1
snyk-io[bot] Oct 10, 2025
0a4ebfb
fix: upgrade eslint-config-next from 15.3.3 to 15.5.3
snyk-io[bot] Oct 10, 2025
9ca1752
Merge branch 'coinbase:main' into master
Dargon789 Oct 24, 2025
a1dc6e7
fix: packages/miniapp-manifest-generator/package.json to reduce vulne…
snyk-io[bot] Oct 24, 2025
5e408d2
feat: upgrade eslint from 8.57.1 to 9.36.0
snyk-io[bot] Oct 10, 2025
67bd8be
feat: upgrade tailwindcss from 3.4.18 to 4.1.13
snyk-io[bot] Oct 10, 2025
3c85135
feat: upgrade react-dom from 18.3.1 to 19.1.1
snyk-io[bot] Oct 10, 2025
f72e0a2
Potential fix for code scanning alert no. 31: Server-side request for…
Dargon789 Oct 24, 2025
fbd972b
Merge branch 'coinbase:main' into master
Dargon789 Oct 25, 2025
c3189e5
fix: packages/playground/package.json to reduce vulnerabilities (#20)
snyk-io[bot] Oct 25, 2025
7e58e95
feat: upgrade react from 18.3.1 to 19.2.0
snyk-io[bot] Oct 30, 2025
39a695c
feat: upgrade tailwindcss from 3.4.18 to 4.1.14
snyk-io[bot] Oct 30, 2025
884461e
fix: examples/minikit-example/package.json to reduce vulnerabilities
snyk-io[bot] Nov 20, 2025
6a16005
fix: packages/playground/package.json to reduce vulnerabilities
snyk-io[bot] Nov 22, 2025
a8deec1
chore: version packages 🚀 (#2529) (#30)
Dargon789 Nov 24, 2025
d1e137f
chore: fix fund components to mandate session-token (#2542)
suryatejamandadi-cb Nov 24, 2025
a54c1c7
Merge branch 'coinbase:main' into master
Dargon789 Nov 24, 2025
ac2a621
Merge remote-tracking branch 'origin/snyk-fix-2ab8f5b4354af906c9ac307…
Dargon789 Nov 27, 2025
ca0bbe4
fix: packages/onchainkit/package.json to reduce vulnerabilities
snyk-bot Nov 20, 2025
3acd092
fix: packages/miniapp-manifest-generator/package.json to reduce vulne…
snyk-bot Nov 23, 2025
d13080b
fix: examples/minikit-example/package.json to reduce vulnerabilities
snyk-io[bot] Dec 3, 2025
9a02227
fix: packages/create-onchain/templates/next/package.json to reduce vu…
snyk-io[bot] Dec 3, 2025
87ccc4c
fix: packages/create-onchain/templates/next/package.json to reduce vu…
snyk-bot Dec 13, 2025
2c21542
Update packages/create-onchain/templates/next/package.json
Dargon789 Dec 14, 2025
7c5f2a5
chore(deps): bump the npm_and_yarn group across 1 directory with 4 up…
dependabot[bot] Dec 14, 2025
de71014
fix: examples/minikit-example/package.json to reduce vulnerabilities
snyk-bot Dec 14, 2025
c44e0d9
fix: packages/playground/package.json to reduce vulnerabilities
snyk-io[bot] Dec 13, 2025
679d818
Merge branch 'snyk-fix-2ab8f5b4354af906c9ac3074aa2f2a28'
Dargon789 Dec 14, 2025
9eb92f5
fix: packages/playground/package.json to reduce vulnerabilities
snyk-io[bot] Dec 14, 2025
06574fc
chore(deps): bump the npm_and_yarn group across 4 directories with 4 …
dependabot[bot] Dec 14, 2025
0467295
Merge remote-tracking branch 'origin/snyk-fix-1daab140fafd6aa4f8e410c…
Dargon789 Dec 15, 2025
2d461e6
Merge remote-tracking branch 'origin/snyk-fix-53f5ddc27277be07c26015c…
Dargon789 Dec 15, 2025
6932ae6
fix: packages/create-onchain/templates/next/package.json to reduce vu…
Dargon789 Dec 15, 2025
523d0fa
Merge remote-tracking branch 'upstream/main'
Dargon789 Dec 15, 2025
26c91b7
Merge branch 'main' of https://github.com/Dargon789/onchainkit
Dargon789 Dec 15, 2025
359dc1b
fix: packages/playground/package.json to reduce vulnerabilities
snyk-io[bot] Dec 15, 2025
345a16a
fix: examples/minikit-example/package.json to reduce vulnerabilities
snyk-io[bot] Dec 15, 2025
7333229
Update cli-minikit.yml (#49)
Dargon789 Dec 15, 2025
0dd1cb7
Update cli-verify-onchainkit-template.yml (#48)
Dargon789 Dec 15, 2025
2e7af03
chore: bump react/next due to recent cve (#2554) (#51)
Dargon789 Dec 15, 2025
023535e
Merge branch 'coinbase:main' into master
Dargon789 Dec 15, 2025
c1393a4
chore(deps): bump the npm_and_yarn group across 5 directories with 4 …
dependabot[bot] Dec 15, 2025
c1b76d9
Merge remote-tracking branch 'origin/master'
Dargon789 Dec 15, 2025
a79e3a0
Merge remote-tracking branch 'upstream/main' into circleci-project-setup
Dargon789 Dec 15, 2025
c5ca6c2
Circleci project setup (#43)
Dargon789 Dec 15, 2025
661d4ba
Merge branch 'circleci-project-setup' into tea/custom-unmounted-button
Dargon789 Dec 15, 2025
1ed8b6c
Merge remote-tracking branch 'origin/snyk-fix-9bbdc17cce1b9813fdd5dc9…
Dargon789 Dec 15, 2025
7da1969
Merge remote-tracking branch 'origin/snyk-fix-da415bbd7b133b5ea57801b…
Dargon789 Dec 15, 2025
7d1dcfb
Merge remote-tracking branch 'origin/snyk-fix-e06917125bcd00953d06b10…
Dargon789 Dec 15, 2025
1cb8eac
fix: packages/playground/package.json to reduce vulnerabilities (#47)
snyk-io[bot] Dec 15, 2025
3886825
fix: examples/minikit-example/package.json to reduce vulnerabilities …
snyk-io[bot] Dec 15, 2025
a53783a
Merge remote-tracking branch 'origin/snyk-fix-da415bbd7b133b5ea57801b…
Dargon789 Dec 15, 2025
c10c4a3
Merge remote-tracking branch 'origin/snyk-upgrade-0825cb6388a27d24906…
Dargon789 Dec 15, 2025
ba915b3
feat: upgrade eslint-plugin-react-hooks from 5.2.0 to 7.0.0 (#24)
snyk-io[bot] Dec 15, 2025
ece5b8f
fix: upgrade eslint-config-next from 15.3.3 to 15.5.4 (#23)
snyk-io[bot] Dec 15, 2025
a988dc5
feat: upgrade react-dom from 18.3.1 to 19.2.0 (#22)
snyk-io[bot] Dec 15, 2025
f35d143
Merge remote-tracking branch 'origin/snyk-upgrade-cd8b43a7262eb730ff4…
Dargon789 Dec 15, 2025
94d153a
Merge remote-tracking branch 'origin/snyk-upgrade-783b1212d71f9db1c5b…
Dargon789 Dec 15, 2025
6507b68
fix: packages/create-onchain/templates/minikit-basic/package.json to …
snyk-io[bot] Dec 15, 2025
55e5347
Merge remote-tracking branch 'origin/snyk-upgrade-cc3de04c265ba915fc1…
Dargon789 Dec 15, 2025
a22ed0c
Merge branch 'tea/custom-unmounted-button'
Dargon789 Dec 15, 2025
d7ab125
Merge remote-tracking branch 'upstream/ac-connect-wallet'
Dargon789 Dec 15, 2025
42c807f
Update and rename Hardhat.yml to ci-web3-gamefi.yml (#55)
Dargon789 Dec 15, 2025
691f40d
Delete .circleci/Hardhat.yml (#56)
Dargon789 Dec 15, 2025
25711e5
Create ci-foundry.yml (#57)
Dargon789 Dec 15, 2025
d37da27
Merge branch 'tea/custom-unmounted-button'
Dargon789 Dec 15, 2025
40b107b
Delete .circleci/ci-web3-gamefi.yml (#58)
Dargon789 Dec 15, 2025
71f2d34
Update ci-foundry.yml (#61)
Dargon789 Dec 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .circleci/ci-foundry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/configuration-reference

version: 2.1
executors:
my-custom-executor:
docker:
- image: cimg/base:stable
auth:
# ensure you have first added these secrets
# visit app.circleci.com/settings/project/github/Dargon789/foundry/environment-variables
username: $DOCKER_HUB_USER
password: $DOCKER_HUB_PASSWORD
jobs:
web3-defi-game-project:

executor: my-custom-executor
steps:
- checkout
- run: echo "Build started"

workflows:
my-custom-workflow:
jobs:
- web3-defi-game-project
31 changes: 31 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/configuration-reference
version: 2.1

# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/jobs-steps/#jobs-overview & https://circleci.com/docs/configuration-reference/#jobs
jobs:
say-hello:
# Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub.
# See: https://circleci.com/docs/executor-intro/ & https://circleci.com/docs/configuration-reference/#executor-job
docker:
# Specify the version you desire here
# See: https://circleci.com/developer/images/image/cimg/base
- image: cimg/base:current

# Add steps to the job
# See: https://circleci.com/docs/jobs-steps/#steps-overview & https://circleci.com/docs/configuration-reference/#steps
steps:
# Checkout the code as the first step.
- checkout
- run:
name: "Say hello"
command: "echo Hello, World!"

# Orchestrate jobs using workflows
# See: https://circleci.com/docs/workflows/ & https://circleci.com/docs/configuration-reference/#workflows
workflows:
say-hello-workflow: # This is the name of the workflow, feel free to change it to better match your workflow.
# Inside the workflow, you define the jobs you want to run.
jobs:
- say-hello
60 changes: 60 additions & 0 deletions .github/workflows/cli-minikit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: "cli: build & install minikit"

on:
pull_request:
branches:
- main
- alpha
paths:
- 'packages/create-onchain/**'
push:
branches:
- changeset-release/main

jobs:
test:
if: github.head_ref != 'alpha'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
with:
egress-policy: audit

- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: 'Setup'
uses: ./.github/actions/setup

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

- name: Install dependencies
run: pnpm f:create install

- name: Build CLI
run: pnpm f:create build

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

- name: Create test project
run: |
mkdir test-project
cd test-project

(sleep 1; echo ""; sleep 1; echo ""; sleep 1; echo -e "\033[D\n"; sleep 1; echo -e "\033[D\n") | ../packages/create-onchain/dist/esm/cli.js --mini

- name: Install & Build test project
working-directory: ./test-project/my-onchainkit-app
run: |
npm install
npm run build
1 change: 1 addition & 0 deletions .github/workflows/cli-verify-minikit-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:

jobs:
test:
if: github.head_ref != 'alpha'
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/cli-verify-onchainkit-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:

jobs:
test:
if: github.head_ref != 'alpha'
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -49,10 +50,11 @@ jobs:
run: |
mkdir test-project
cd test-project

(sleep 1; echo ""; sleep 1; echo ""; sleep 1; echo ""; sleep 1; echo -e "\033[D\n") | ../packages/create-onchain/dist/esm/cli.js

- name: Install & Build test project
working-directory: ./test-project/my-onchainkit-app
run: |
npm install
npm run build
npm run build
39 changes: 39 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Dependency Review Action
#
# This Action will scan dependency manifest files that change as part of a Pull Request,
# surfacing known-vulnerable versions of the packages declared or updated in the PR.
# Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable
# packages will be blocked from merging.
#
# Source repository: https://github.com/actions/dependency-review-action
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
name: 'Dependency review'
on:
pull_request:
branches: [ "main" ]

# If using a dependency submission action in this workflow this permission will need to be set to:
#
# permissions:
# contents: write
#
# https://docs.github.com/en/enterprise-cloud@latest/code-security/supply-chain-security/understanding-your-software-supply-chain/using-the-dependency-submission-api
permissions:
contents: read
# Write permissions for pull-requests are required for using the `comment-summary-in-pr` option, comment out if you aren't using this option
pull-requests: write

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
# Commonly enabled options, see https://github.com/actions/dependency-review-action#configuration-options for all available options.
with:
comment-summary-in-pr: always
# fail-on-severity: moderate
# deny-licenses: GPL-1.0-or-later, LGPL-2.0-or-later
# retry-on-snapshot-warnings: true
27 changes: 27 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Mark stale issues and pull requests

on:
schedule:
- cron: '29 4 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Stale issue message'
stale-pr-message: 'Stale pull request message'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
21 changes: 21 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Security Policy

## Supported Versions

Use this section to tell people about which versions of your project are
currently being supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| 5.1.x | :white_check_mark: |
| 5.0.x | :x: |
| 4.0.x | :white_check_mark: |
| < 4.0 | :x: |

## Reporting a Vulnerability

Use this section to tell people how to report a vulnerability.

Tell them where to go, how often they can expect to get an update on a
reported vulnerability, what to expect if the vulnerability is accepted or
declined, etc.
83 changes: 83 additions & 0 deletions examples/minikit-example/lib/notification-client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
import {
FrameNotificationDetails,
type SendNotificationRequest,
sendNotificationResponseSchema,
} from "@farcaster/frame-sdk";
import { getUserNotificationDetails } from "@/lib/notification";

const appUrl = process.env.NEXT_PUBLIC_URL || "";

type SendFrameNotificationResult =
| {
state: "error";
error: unknown;
}
| { state: "no_token" }
| { state: "rate_limit" }
| { state: "success" };

export async function sendFrameNotification({
fid,
title,
body,
notificationDetails,
}: {
fid: number;
title: string;
body: string;
notificationDetails?: FrameNotificationDetails | null;
}): Promise<SendFrameNotificationResult> {
if (!notificationDetails) {
notificationDetails = await getUserNotificationDetails(fid);
}
if (!notificationDetails) {
return { state: "no_token" };
}

// Define a strict allowlist of hostnames and paths
const allowedHostnames = ["api.coinbase.com"];
const allowedPaths = ["/api/notification"]; // change/add allowed paths as needed
const url = new URL(notificationDetails.url);

// Validate the URL scheme, hostname, port, and pathname
if (
url.protocol !== "https:" ||
!allowedHostnames.includes(url.hostname) ||
(url.port && url.port !== "443") ||
!allowedPaths.includes(url.pathname) ||
url.search || url.hash // optionally disallow query/fragment, remove this if queries are needed
) {
return { state: "error", error: "Invalid or unsafe notification URL" };
}

const response = await fetch(notificationDetails.url, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
notificationId: crypto.randomUUID(),
title,
body,
targetUrl: appUrl,
tokens: [notificationDetails.token],
} satisfies SendNotificationRequest),
});

const responseJson = await response.json();

if (response.status === 200) {
const responseBody = sendNotificationResponseSchema.safeParse(responseJson);
if (responseBody.success === false) {
return { state: "error", error: responseBody.error.errors };
}

if (responseBody.data.result.rateLimitedTokens.length) {
return { state: "rate_limit" };
}

return { state: "success" };
}

return { state: "error", error: responseJson };
}
2 changes: 1 addition & 1 deletion examples/minikit-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@mantine/core": "^8.2.5",
"@mantine/hooks": "^8.2.5",
"@tanstack/react-query": "^5.81.5",
"next": "15.3.6",
"next": "15.4.10",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"viem": "^2.31.6",
Expand Down
Loading