Skip to content

Commit de72a1a

Browse files
authoredJan 11, 2025··
update to v1 (#2)
* remove constant check connection * refactor * working modes * toggle works * error handling drafts * tooltip * cleanup * show notice once * thanks DMO * near rewards * oauth client * callback error handling * adds toast * remove test * drafts modal * fmt * drafts modal wip * thread mode not available * og image * textarea * clean up handles * twitter post error handling * twitter toasts * buttons * character count handling * donate button * consistent modal * profile * helper buddy * cleanup * clean up * feature request * fmt * add submit * fixes
1 parent be57adb commit de72a1a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2343
-496
lines changed
 

‎.env.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
TWITTER_CLIENT_ID=your_oauth2_client_id
33
TWITTER_CLIENT_SECRET=your_oauth2_client_secret
44

5-
# Twitter OAuth 1.0a credentials (for user context endpoints)
5+
# Twitter OAuth 1.0a credentials (for user context endpoints and media uploads)
66
TWITTER_API_KEY=your_oauth1_api_key
77
TWITTER_API_SECRET=your_oauth1_api_secret
88
TWITTER_ACCESS_TOKEN=your_oauth1_access_token

‎.github/workflows/near-rewards.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: NEAR Protocol Rewards Tracking
2+
on:
3+
schedule:
4+
- cron: '0 */12 * * *' # Every 12 hours
5+
workflow_dispatch: # Manual trigger
6+
push:
7+
branches: [ main ] # Start on main branch updates
8+
9+
jobs:
10+
calculate-rewards:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
issues: read
15+
pull-requests: read
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: '18'
21+
22+
- name: Calculate Rewards
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
GITHUB_REPO: ${{ github.repository }}
26+
run: |
27+
npm install -g near-protocol-rewards@latest
28+
near-protocol-rewards calculate

0 commit comments

Comments
 (0)
Please sign in to comment.