-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
wip: tx spec #10
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
playground/src/index.tsx
Outdated
app.route('/todos', todoApp) | ||
app.route('/routing', routingApp) | ||
|
||
export const erc20Abi = [ |
There was a problem hiding this comment.
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.
src/components/Button.tsx
Outdated
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean
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> = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
magic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typings question.
playground/src/index.tsx
Outdated
value: '984316556204476', | ||
chainId: '10', |
There was a problem hiding this comment.
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
?
9a05963
to
dd3578f
Compare
@@ -119,11 +119,34 @@ export function ButtonReset({ | |||
) | |||
} | |||
|
|||
export type ButtonTransactionProps = ButtonProps & { | |||
location: string |
There was a problem hiding this comment.
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?
Succeeded by #63. |
No description provided.