-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #221 from Consensys/fix/wrap-unwrap-names
fix: unwrapping and wrapping names to use correct functions
- Loading branch information
Showing
10 changed files
with
867 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
30 changes: 30 additions & 0 deletions
30
packages/linea-ens-app/src/ensJsOverrides/contracts/erc1155.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
export const erc1155SafeTransferFromSnippet = [ | ||
{ | ||
inputs: [ | ||
{ | ||
name: 'from', | ||
type: 'address', | ||
}, | ||
{ | ||
name: 'to', | ||
type: 'address', | ||
}, | ||
{ | ||
name: 'id', | ||
type: 'uint256', | ||
}, | ||
{ | ||
name: 'amount', | ||
type: 'uint256', | ||
}, | ||
{ | ||
name: 'data', | ||
type: 'bytes', | ||
}, | ||
], | ||
name: 'safeTransferFrom', | ||
outputs: [], | ||
stateMutability: 'nonpayable', | ||
type: 'function', | ||
}, | ||
] as const |
69 changes: 69 additions & 0 deletions
69
packages/linea-ens-app/src/ensJsOverrides/contracts/erc721.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
export const erc721OwnerOfSnippet = [ | ||
{ | ||
inputs: [ | ||
{ | ||
name: 'id', | ||
type: 'uint256', | ||
}, | ||
], | ||
name: 'ownerOf', | ||
outputs: [ | ||
{ | ||
name: 'owner', | ||
type: 'address', | ||
}, | ||
], | ||
stateMutability: 'view', | ||
type: 'function', | ||
}, | ||
] as const | ||
|
||
export const erc721SafeTransferFromSnippet = [ | ||
{ | ||
inputs: [ | ||
{ | ||
name: 'from', | ||
type: 'address', | ||
}, | ||
{ | ||
name: 'to', | ||
type: 'address', | ||
}, | ||
{ | ||
name: 'tokenId', | ||
type: 'uint256', | ||
}, | ||
], | ||
name: 'safeTransferFrom', | ||
outputs: [], | ||
stateMutability: 'nonpayable', | ||
type: 'function', | ||
}, | ||
] as const | ||
|
||
export const erc721SafeTransferFromWithDataSnippet = [ | ||
{ | ||
inputs: [ | ||
{ | ||
name: 'from', | ||
type: 'address', | ||
}, | ||
{ | ||
name: 'to', | ||
type: 'address', | ||
}, | ||
{ | ||
name: 'tokenId', | ||
type: 'uint256', | ||
}, | ||
{ | ||
name: '_data', | ||
type: 'bytes', | ||
}, | ||
], | ||
name: 'safeTransferFrom', | ||
outputs: [], | ||
stateMutability: 'nonpayable', | ||
type: 'function', | ||
}, | ||
] as const |
Oops, something went wrong.