This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| useCryptoPayment.ts:532 [CryptoPayment] Payment initiated: {walletType: 'privy', isEmbedded: true, address: 'G1u7waCh95ycC3tv8J2uXohDvStANsfogMZqWUhEDYxr'} | |
| useCryptoPayment.ts:554 [CryptoPayment] Instructions built: {walletAddress: 'G1u7waCh95ycC3tv8J2uXohDvStANsfogMZqWUhEDYxr', senderAta: 'iD4re747mE9xg6rRjJBiPjMp6UipFNavD7ekDFc2Hxy', recipientAta: 'BZ2Ru9WovT3U8nFTsnCTnTDXGm8fQ1HUTNCH9vRphot8', rawAmount: 100000000000n} | |
| useCryptoPayment.ts:583 [CryptoPayment] Balance check: {balance: '200000000000', required: '100000000000'} | |
| useCryptoPayment.ts:599 [CryptoPayment] Using embedded wallet with gas sponsorship | |
| useCryptoPayment.ts:609 [CryptoPayment] Sending via Privy with gas sponsorship | |
| index.mjs:1 POST https://auth.privy.io/api/v1/wallets/o52ee0yhi4szyzceerhjyp9t/rpc 401 (Unauthorized) | |
| [...] | |
| installHook.js:1 {transaction: Uint8Array(387), error: r: Missing auth token. | |
| at u.fetch (https://portal.rewbs.uk/_next/static/chunks/97e97_%40privy-i…} | |
| installHook.js:1 Payment failed: _: Failed to connect to wallet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "Robin's token Token", | |
| "symbol": "RK1", | |
| "description": "A dummy token Robin is using for testing stuff.", | |
| "image": "https://avatars.githubusercontent.com/u/74455", | |
| "external_url": "https://soal.org", | |
| "attributes": [ | |
| { | |
| "trait_type": "Category", | |
| "value": "Utility" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "MONARCHS_NITOPIA": [ | |
| { | |
| "name": "King Loo XII", | |
| "birth": 1748, | |
| "death": 1815, | |
| "cause_of_death": "Stroke", | |
| "reign_start": 1800, | |
| "reign_end": 1815, | |
| "notes": "Ruler of Nitopia when Bertram Woolcrest was born in 1801. Expanded fog levies." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export async function findExistingDbUserFromPrivyUser(privyUser: PrivyInternalUser) { | |
| const log = getUtilityLogger(); | |
| // First, check if a Privy account already exists | |
| const account = await db.account.findUnique({ | |
| where: { | |
| provider_providerAccountId: { | |
| provider: "privy", | |
| providerAccountId: privyUser.id, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use client'; | |
| import { useEffect, useRef } from 'react'; | |
| import { getAccessToken } from '@privy-io/react-auth'; | |
| export function usePrivyBackgroundRefresh() { | |
| const timer = useRef<number | null>(null); | |
| const backoffMs = useRef(0); // grows on error, resets on success | |
| useEffect(() => { | |
| let cancelled = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "metadata": { | |
| "owner": "vuyp:414158939555364865", | |
| "usage": { | |
| "per_model": { | |
| "claude-3-5-sonnet-20241022": { | |
| "modelID": "claude-3-5-sonnet-20241022", | |
| "sum_input_tokens": 20191, | |
| "sum_output_tokens": 7067, | |
| "calls": 20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "metadata": { | |
| "owner": "vuyp:414158939555364865", | |
| "usage": { | |
| "per_model": { | |
| "claude-3-5-sonnet-20241022": { | |
| "modelID": "claude-3-5-sonnet-20241022", | |
| "sum_input_tokens": 24437, | |
| "sum_output_tokens": 10240, | |
| "calls": 20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "metadata": { | |
| "owner": "vuyp:414158939555364865", | |
| "usage": { | |
| "per_model": { | |
| "claude-3-5-sonnet-20241022": { | |
| "modelID": "claude-3-5-sonnet-20241022", | |
| "sum_input_tokens": 151335, | |
| "sum_output_tokens": 19773, | |
| "calls": 36 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "metadata": { | |
| "owner": "oms2213:721268260649304134", | |
| "usage": { | |
| "per_model": { | |
| "claude-3-5-sonnet-20241022": { | |
| "modelID": "claude-3-5-sonnet-20241022", | |
| "sum_input_tokens": 36907, | |
| "sum_output_tokens": 5439, | |
| "calls": 15 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "metadata": { | |
| "owner": "spiketickett:185202457066864640", | |
| "usage": { | |
| "per_model": { | |
| "claude-3-5-sonnet-20241022": { | |
| "modelID": "claude-3-5-sonnet-20241022", | |
| "sum_input_tokens": 2914, | |
| "sum_output_tokens": 2249, | |
| "calls": 2 |
NewerOlder