-
Notifications
You must be signed in to change notification settings - Fork 139
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
feat: add multi-policy sponsorships #1189
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// This file is autogenerated by inject-version.ts. Any changes will be | ||
// overwritten on commit! | ||
export const VERSION = "4.5.1"; | ||
export const VERSION = "4.6.0"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,15 +56,15 @@ export type AlchemyAccountsConfig = { | |
export type Connection = { | ||
transport: AlchemyTransportConfig; | ||
chain: Chain; | ||
policyId?: string; | ||
policyId?: string | string[]; | ||
}; | ||
|
||
type RpcConnectionConfig = | ||
| { | ||
chain: Chain; | ||
chains: { | ||
chain: Chain; | ||
policyId?: string; | ||
policyId?: string | string[]; | ||
// optional transport override | ||
transport?: AlchemyTransport; | ||
}[]; | ||
|
@@ -78,7 +78,7 @@ type RpcConnectionConfig = | |
chain: Chain; | ||
chains: { | ||
chain: Chain; | ||
policyId?: string; | ||
policyId?: string | string[]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can one chain have multiple policy ids? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, with the idea being that when we have gas grants you can add both the grant as well as your own policy. In general this model might be worth revisiting now that we also have multi-chain policices. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yea with multi-chain policies, it almost feels like we can add support for that at the top level and just have a |
||
transport: AlchemyTransport; | ||
}[]; | ||
transport?: never; | ||
|
@@ -89,7 +89,7 @@ type RpcConnectionConfig = | |
| { | ||
transport: AlchemyTransport; | ||
chain: Chain; | ||
policyId?: string; | ||
policyId?: string | string[]; | ||
signerConnection?: ConnectionConfig; | ||
chains?: never; | ||
}; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// This file is autogenerated by inject-version.ts. Any changes will be | ||
// overwritten on commit! | ||
export const VERSION = "4.5.1"; | ||
export const VERSION = "4.6.0"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// This file is autogenerated by inject-version.ts. Any changes will be | ||
// overwritten on commit! | ||
export const VERSION = "4.5.1"; | ||
export const VERSION = "4.6.0"; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
almost feels like we need one more permutation here like the following that allows you to specify the policyId array at the top level instead of nesting it