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

BREAKING: ERC1155 support #615

Merged
merged 43 commits into from
Oct 28, 2021
Merged
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
c554b15
Add package human-standard-multi-collectible-abi
Oct 14, 2021
f3a2dec
Get NFT standard from OpenSea
Oct 14, 2021
a240a1e
Add ERC1155 standard class
Oct 15, 2021
e63cfc3
Add ERC721 standard class
Oct 15, 2021
9b7f086
Update AssetContract controller
Oct 15, 2021
a0ee10e
Update tests
Oct 15, 2021
ec7aaac
Update AssetsContractController test
Oct 17, 2021
862fe90
Update method names
Oct 17, 2021
626a025
Update method names
Oct 17, 2021
909d63c
Update standard params
Oct 17, 2021
a713b59
Update standard tests
Oct 17, 2021
b9e6c94
Change variable name
Oct 17, 2021
fac7f5c
Change variable name
Oct 17, 2021
2dd05eb
Change variable name
Oct 17, 2021
5282b7a
Update AssetsContractController methods
Oct 18, 2021
c224f72
Add method to verify collectible ownership
Oct 18, 2021
d08cf1f
Update CollectiblesController tests
Oct 18, 2021
ffe7983
Nit
Oct 18, 2021
b8331d7
Update test
Oct 18, 2021
3c57e51
Update tests
Oct 18, 2021
87fc46a
Change tokenId from number to string
Oct 19, 2021
5363bed
Update method name
Oct 19, 2021
68af6da
Update comments
Oct 19, 2021
3efc2c3
Update tests
Oct 19, 2021
cfafaf0
Update tests
Oct 19, 2021
2a265fd
feat(AddCustomCollectible): Update version
Oct 19, 2021
7fc748c
feat(ERC1155): Update standard
Oct 23, 2021
a899204
feat(ERC1155): Update standard
Oct 23, 2021
a79126f
feat(ERC1155): Get collection from OpenSea
Oct 25, 2021
324ef91
feat(ERC1155): Get collection from OpenSea
Oct 25, 2021
4d9d8bc
Fix version
Oct 25, 2021
204ba1d
Remove comments
Oct 25, 2021
7c9b8b1
Add method to get token standard
Oct 27, 2021
57e3623
Add rinkeby network id as constant
Oct 27, 2021
5bdb719
Clean tests
Oct 28, 2021
fa3a558
Remove logs
Oct 28, 2021
36e50e3
Add standard to CollectibleMetadata object
Oct 28, 2021
078d9c6
Clean tests
Oct 28, 2021
2370a31
Update constant name
Oct 28, 2021
672e00e
Clean tests
Oct 28, 2021
48e094c
Remove standard from object
Oct 28, 2021
54d6eb7
Clean tests
Oct 28, 2021
22d7c30
Update variable names
Oct 28, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update tests
  • Loading branch information
gantunesr committed Oct 19, 2021
commit cfafaf0152e3816e6f43a2d5dcd6825f8f4b3559
7 changes: 5 additions & 2 deletions src/assets/AssetsContractController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,18 @@ describe('AssetsContractController', () => {

it('should get ERC-721 collectible tokenURI correctly', async () => {
assetsContract.configure({ provider: MAINNET_PROVIDER });
const tokenId = await assetsContract.getCollectibleTokenURI(GODSADDRESS, 0);
const tokenId = await assetsContract.getCollectibleTokenURI(
GODSADDRESS,
'0',
);
expect(tokenId).toStrictEqual('https://api.godsunchained.com/card/0');
});

it('should return empty string as URI when address given is not an ERC-721 NFT', async () => {
assetsContract.configure({ provider: MAINNET_PROVIDER });
const tokenId = await assetsContract.getCollectibleTokenURI(
'0x0000000000000000000000000000000000000000',
0,
'0',
);
expect(tokenId).toStrictEqual('');
});
Expand Down