Skip to content
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

Permit2 sdk #1724

Merged
merged 16 commits into from
Jun 26, 2024
Merged

Permit2 sdk #1724

merged 16 commits into from
Jun 26, 2024

Conversation

anihamde
Copy link
Contributor

Upgrade SDKs to permit2 + factory

Copy link

vercel bot commented Jun 23, 2024

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

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 0:34am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
xc-admin-frontend ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 0:34am

opportunityAdapterInitBytecodeHash: Hex
): Address {
const saltHex = searcher.replace("0x", "").padStart(64, "0");
const create2Address = `0x${keccak256(
Copy link
Collaborator

Choose a reason for hiding this comment

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

@@ -164,12 +164,12 @@ export interface components {
* @description The network chain id parameter for EIP712 domain.
* @example 31337
*/
chain_id: string;
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not just remove this EIP712 all together?

opportunityAdapterConfig.opportunity_adapter_init_bytecode_hash
)
),
nonce: bidParams.nonce,
Copy link
Collaborator

Choose a reason for hiding this comment

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

nonce should have a default random value. Otherwise, we should document somewhere on what this value should be

): TokenPermissions[] {
const permitted: TokenPermissions[] = [];

for (let i = 0; i < tokens.length; i++) {
Copy link
Contributor

Choose a reason for hiding this comment

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

use map

@m30m m30m merged commit 05dc9c8 into main Jun 26, 2024
5 checks passed
@m30m m30m deleted the permit2_sdk branch June 26, 2024 16:18
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.

3 participants