Skip to content

wip: tx spec #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from
Closed

wip: tx spec #10

wants to merge 7 commits into from

Conversation

jxom
Copy link
Member

@jxom jxom commented Feb 27, 2024

No description provided.

Copy link

vercel bot commented Feb 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
frog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 3, 2024 5:20am
frog-auth ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 3, 2024 5:20am
frog-frame ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 3, 2024 5:20am

app.route('/todos', todoApp)
app.route('/routing', routingApp)

export const erc20Abi = [
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should viemify these, human readable abi etc.

Comment on lines 134 to 141
return [
<meta
property={`fc:frame:button:${index}`}
content={children}
data-value="_t"
/>,
<meta property={`fc:frame:button:${index}:action`} content="tx" />,
<meta property={`fc:frame:button:${index}:target`} content={location} />,
] as unknown as HtmlEscapedString
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clean

Comment on lines +3 to +14
export type OneOf<
union extends object,
///
keys extends KeyofUnion<union> = KeyofUnion<union>,
> = union extends infer Item
? Pretty<Item & { [_K in Exclude<keys, keyof Item>]?: undefined }>
: never
type KeyofUnion<type> = type extends type ? keyof type : never

export type Pretty<type> = { [key in keyof type]: type[key] } & unknown

export type Widen<type> =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

magic

Copy link
Collaborator

@dalechyn dalechyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typings question.

Comment on lines 233 to 251
value: '984316556204476',
chainId: '10',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't value be a bigint and chainId a number?

@jxom jxom force-pushed the main branch 2 times, most recently from 9a05963 to dd3578f Compare March 1, 2024 05:20
@@ -119,11 +119,34 @@ export function ButtonReset({
)
}

export type ButtonTransactionProps = ButtonProps & {
location: string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to use target instead to keep inline with the spec?

@jxom
Copy link
Member Author

jxom commented Mar 3, 2024

Succeeded by #63.

@jxom jxom closed this Mar 3, 2024
@jxom jxom deleted the jxom/tx branch March 3, 2024 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants