-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switching to use ethers and accept RPC url for token gating validation
- Loading branch information
1 parent
7e39f65
commit 1673b36
Showing
7 changed files
with
199 additions
and
143 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
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
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 |
---|---|---|
@@ -1,53 +1,60 @@ | ||
// Reduced ABI for ERC1155 with just balanceOf | ||
export const ERC1155ContractABI = [ | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
{ | ||
"name": "_owner", | ||
"type": "address" | ||
}, | ||
{ | ||
"name": "_id", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "balanceOf", | ||
"outputs": [ | ||
{ | ||
"name": "", | ||
"type": "uint256" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
} | ||
]; | ||
// // Reduced ABI for ERC1155 with just balanceOf | ||
// export const ERC1155ContractABI = [ | ||
// { | ||
// "constant": true, | ||
// "inputs": [ | ||
// { | ||
// "name": "_owner", | ||
// "type": "address" | ||
// }, | ||
// { | ||
// "name": "_id", | ||
// "type": "uint256" | ||
// } | ||
// ], | ||
// "name": "balanceOf", | ||
// "outputs": [ | ||
// { | ||
// "name": "", | ||
// "type": "uint256" | ||
// } | ||
// ], | ||
// "payable": false, | ||
// "stateMutability": "view", | ||
// "type": "function" | ||
// } | ||
// ]; | ||
|
||
// // Reduced ABI for ERC721 with just balanceOf | ||
// export const ERC721ContractABI = [ | ||
// { | ||
// "constant": true, | ||
// "inputs": [ | ||
// { | ||
// "name": "_owner", | ||
// "type": "address" | ||
// }, | ||
// { | ||
// "name": "_id", | ||
// "type": "uint256" | ||
// } | ||
// ], | ||
// "name": "balanceOf", | ||
// "outputs": [ | ||
// { | ||
// "name": "", | ||
// "type": "uint256" | ||
// } | ||
// ], | ||
// "payable": false, | ||
// "stateMutability": "view", | ||
// "type": "function" | ||
// } | ||
// ]; | ||
|
||
// Reduced ABI for ERC721 with just balanceOf | ||
export const ERC721ContractABI = [ | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
{ | ||
"name": "_owner", | ||
"type": "address" | ||
}, | ||
{ | ||
"name": "_id", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "balanceOf", | ||
"outputs": [ | ||
{ | ||
"name": "", | ||
"type": "uint256" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
} | ||
]; | ||
"function balanceOf(address) view returns (uint)", | ||
] | ||
export const ERC1155ContractABI = [ | ||
"function balanceOf(address, id) view returns (uint)", | ||
] |
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
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 |
---|---|---|
@@ -1,3 +1,10 @@ | ||
{ | ||
"extends": "../config/tsconfig.test.json" | ||
"extends": "../config/tsconfig.test.json", | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "commonjs", | ||
"strict": true, | ||
"skipLibCheck": true, | ||
"esModuleInterop": true, | ||
} | ||
} |
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
{ | ||
"extends": "./config/tsconfig.base.json" | ||
"extends": "./config/tsconfig.base.json", | ||
"compilerOptions": { | ||
"esModuleInterop": true, | ||
} | ||
} |
Oops, something went wrong.