-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added coverage to show token_info in other rpc calls
- Loading branch information
1 parent
1a4e5f7
commit ce5b7cf
Showing
14 changed files
with
355 additions
and
5 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
Binary file added
BIN
+824 Bytes
...ts/get_asset_by_authority_with_show_fungible/7fXKY9tPpvYsdbSNyesUqo27WYC6ZsBEULdtngGHqLCK
Binary file not shown.
Binary file added
BIN
+312 Bytes
...ts/get_asset_by_authority_with_show_fungible/8Xv3SpX94HHf32Apg4TeSeS3i2p6wuXeE8FBZr168Hti
Binary file not shown.
Binary file added
BIN
+224 Bytes
...ts/get_asset_by_authority_with_show_fungible/AH6wj7T8Ke5nbukjtcobjjs1CDWUcQxndtnLkKAdrSrM
Binary file not shown.
Binary file added
BIN
+824 Bytes
...unts/get_asset_by_creator_with_show_fungible/7fXKY9tPpvYsdbSNyesUqo27WYC6ZsBEULdtngGHqLCK
Binary file not shown.
Binary file added
BIN
+312 Bytes
...unts/get_asset_by_creator_with_show_fungible/8Xv3SpX94HHf32Apg4TeSeS3i2p6wuXeE8FBZr168Hti
Binary file not shown.
Binary file added
BIN
+224 Bytes
...unts/get_asset_by_creator_with_show_fungible/AH6wj7T8Ke5nbukjtcobjjs1CDWUcQxndtnLkKAdrSrM
Binary file not shown.
Binary file added
BIN
+824 Bytes
...counts/get_asset_by_owner_with_show_fungible/7fXKY9tPpvYsdbSNyesUqo27WYC6ZsBEULdtngGHqLCK
Binary file not shown.
Binary file added
BIN
+312 Bytes
...counts/get_asset_by_owner_with_show_fungible/8Xv3SpX94HHf32Apg4TeSeS3i2p6wuXeE8FBZr168Hti
Binary file not shown.
Binary file added
BIN
+224 Bytes
...counts/get_asset_by_owner_with_show_fungible/AH6wj7T8Ke5nbukjtcobjjs1CDWUcQxndtnLkKAdrSrM
Binary file not shown.
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
88 changes: 88 additions & 0 deletions
88
...tegration_tests__show_fungible_flag_tests__get_asset_by_authority_with_show_fungible.snap
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,88 @@ | ||
--- | ||
source: integration_tests/tests/integration_tests/show_fungible_flag_tests.rs | ||
expression: response | ||
snapshot_kind: text | ||
--- | ||
{ | ||
"total": 1, | ||
"limit": 1000, | ||
"cursor": "AH6wj7T8Ke5nbukjtcobjjs1CDWUcQxndtnLkKAdrSrM", | ||
"items": [ | ||
{ | ||
"interface": "ProgrammableNFT", | ||
"id": "AH6wj7T8Ke5nbukjtcobjjs1CDWUcQxndtnLkKAdrSrM", | ||
"content": { | ||
"$schema": "https://schema.metaplex.com/nft1.0.json", | ||
"json_uri": "https://madlads.s3.us-west-2.amazonaws.com/json/1983.json", | ||
"files": [], | ||
"metadata": { | ||
"name": "Mad Lads #1983", | ||
"symbol": "MAD", | ||
"token_standard": "ProgrammableNonFungible" | ||
}, | ||
"links": {} | ||
}, | ||
"authorities": [ | ||
{ | ||
"address": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW", | ||
"scopes": [ | ||
"full" | ||
] | ||
} | ||
], | ||
"compression": { | ||
"eligible": false, | ||
"compressed": false, | ||
"data_hash": "", | ||
"creator_hash": "", | ||
"asset_hash": "", | ||
"tree": "", | ||
"seq": 0, | ||
"leaf_id": 0 | ||
}, | ||
"grouping": [ | ||
{ | ||
"group_key": "collection", | ||
"group_value": "J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w" | ||
} | ||
], | ||
"royalty": { | ||
"royalty_model": "creators", | ||
"target": null, | ||
"percent": 0.042, | ||
"basis_points": 420, | ||
"primary_sale_happened": true, | ||
"locked": false | ||
}, | ||
"creators": [ | ||
{ | ||
"address": "5XvhfmRjwXkGp3jHGmaKpqeerNYjkuZZBYLVQYdeVcRv", | ||
"share": 0, | ||
"verified": true | ||
}, | ||
{ | ||
"address": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW", | ||
"share": 100, | ||
"verified": true | ||
} | ||
], | ||
"ownership": { | ||
"frozen": true, | ||
"delegated": true, | ||
"delegate": "BPB5idZgbA1DG4XEmnKs62AADRZFf3jY7Kr9mpMGyKPi", | ||
"ownership_model": "single", | ||
"owner": "GqPnSDXwp4JFtKS7YZ2HERgBbYLKpKVYy9TpVunzLRa9" | ||
}, | ||
"supply": null, | ||
"mutable": true, | ||
"burnt": false, | ||
"token_info": { | ||
"supply": 1, | ||
"decimals": 0, | ||
"token_program": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", | ||
"mint_authority": "FAzbjKo66M3tKhkKqegmWFaYr93FB74B1ChEBdFyKcip", | ||
"freeze_authority": "FAzbjKo66M3tKhkKqegmWFaYr93FB74B1ChEBdFyKcip" | ||
} | ||
} | ||
] | ||
} |
88 changes: 88 additions & 0 deletions
88
...integration_tests__show_fungible_flag_tests__get_asset_by_creator_with_show_fungible.snap
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,88 @@ | ||
--- | ||
source: integration_tests/tests/integration_tests/show_fungible_flag_tests.rs | ||
expression: response | ||
snapshot_kind: text | ||
--- | ||
{ | ||
"total": 1, | ||
"limit": 1000, | ||
"cursor": "AH6wj7T8Ke5nbukjtcobjjs1CDWUcQxndtnLkKAdrSrM", | ||
"items": [ | ||
{ | ||
"interface": "ProgrammableNFT", | ||
"id": "AH6wj7T8Ke5nbukjtcobjjs1CDWUcQxndtnLkKAdrSrM", | ||
"content": { | ||
"$schema": "https://schema.metaplex.com/nft1.0.json", | ||
"json_uri": "https://madlads.s3.us-west-2.amazonaws.com/json/1983.json", | ||
"files": [], | ||
"metadata": { | ||
"name": "Mad Lads #1983", | ||
"symbol": "MAD", | ||
"token_standard": "ProgrammableNonFungible" | ||
}, | ||
"links": {} | ||
}, | ||
"authorities": [ | ||
{ | ||
"address": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW", | ||
"scopes": [ | ||
"full" | ||
] | ||
} | ||
], | ||
"compression": { | ||
"eligible": false, | ||
"compressed": false, | ||
"data_hash": "", | ||
"creator_hash": "", | ||
"asset_hash": "", | ||
"tree": "", | ||
"seq": 0, | ||
"leaf_id": 0 | ||
}, | ||
"grouping": [ | ||
{ | ||
"group_key": "collection", | ||
"group_value": "J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w" | ||
} | ||
], | ||
"royalty": { | ||
"royalty_model": "creators", | ||
"target": null, | ||
"percent": 0.042, | ||
"basis_points": 420, | ||
"primary_sale_happened": true, | ||
"locked": false | ||
}, | ||
"creators": [ | ||
{ | ||
"address": "5XvhfmRjwXkGp3jHGmaKpqeerNYjkuZZBYLVQYdeVcRv", | ||
"share": 0, | ||
"verified": true | ||
}, | ||
{ | ||
"address": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW", | ||
"share": 100, | ||
"verified": true | ||
} | ||
], | ||
"ownership": { | ||
"frozen": true, | ||
"delegated": true, | ||
"delegate": "BPB5idZgbA1DG4XEmnKs62AADRZFf3jY7Kr9mpMGyKPi", | ||
"ownership_model": "single", | ||
"owner": "GqPnSDXwp4JFtKS7YZ2HERgBbYLKpKVYy9TpVunzLRa9" | ||
}, | ||
"supply": null, | ||
"mutable": true, | ||
"burnt": false, | ||
"token_info": { | ||
"supply": 1, | ||
"decimals": 0, | ||
"token_program": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", | ||
"mint_authority": "FAzbjKo66M3tKhkKqegmWFaYr93FB74B1ChEBdFyKcip", | ||
"freeze_authority": "FAzbjKo66M3tKhkKqegmWFaYr93FB74B1ChEBdFyKcip" | ||
} | ||
} | ||
] | ||
} |
88 changes: 88 additions & 0 deletions
88
...s/integration_tests__show_fungible_flag_tests__get_asset_by_owner_with_show_fungible.snap
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,88 @@ | ||
--- | ||
source: integration_tests/tests/integration_tests/show_fungible_flag_tests.rs | ||
expression: response | ||
snapshot_kind: text | ||
--- | ||
{ | ||
"total": 1, | ||
"limit": 1000, | ||
"cursor": "AH6wj7T8Ke5nbukjtcobjjs1CDWUcQxndtnLkKAdrSrM", | ||
"items": [ | ||
{ | ||
"interface": "ProgrammableNFT", | ||
"id": "AH6wj7T8Ke5nbukjtcobjjs1CDWUcQxndtnLkKAdrSrM", | ||
"content": { | ||
"$schema": "https://schema.metaplex.com/nft1.0.json", | ||
"json_uri": "https://madlads.s3.us-west-2.amazonaws.com/json/1983.json", | ||
"files": [], | ||
"metadata": { | ||
"name": "Mad Lads #1983", | ||
"symbol": "MAD", | ||
"token_standard": "ProgrammableNonFungible" | ||
}, | ||
"links": {} | ||
}, | ||
"authorities": [ | ||
{ | ||
"address": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW", | ||
"scopes": [ | ||
"full" | ||
] | ||
} | ||
], | ||
"compression": { | ||
"eligible": false, | ||
"compressed": false, | ||
"data_hash": "", | ||
"creator_hash": "", | ||
"asset_hash": "", | ||
"tree": "", | ||
"seq": 0, | ||
"leaf_id": 0 | ||
}, | ||
"grouping": [ | ||
{ | ||
"group_key": "collection", | ||
"group_value": "J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w" | ||
} | ||
], | ||
"royalty": { | ||
"royalty_model": "creators", | ||
"target": null, | ||
"percent": 0.042, | ||
"basis_points": 420, | ||
"primary_sale_happened": true, | ||
"locked": false | ||
}, | ||
"creators": [ | ||
{ | ||
"address": "5XvhfmRjwXkGp3jHGmaKpqeerNYjkuZZBYLVQYdeVcRv", | ||
"share": 0, | ||
"verified": true | ||
}, | ||
{ | ||
"address": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW", | ||
"share": 100, | ||
"verified": true | ||
} | ||
], | ||
"ownership": { | ||
"frozen": true, | ||
"delegated": true, | ||
"delegate": "BPB5idZgbA1DG4XEmnKs62AADRZFf3jY7Kr9mpMGyKPi", | ||
"ownership_model": "single", | ||
"owner": "GqPnSDXwp4JFtKS7YZ2HERgBbYLKpKVYy9TpVunzLRa9" | ||
}, | ||
"supply": null, | ||
"mutable": true, | ||
"burnt": false, | ||
"token_info": { | ||
"supply": 1, | ||
"decimals": 0, | ||
"token_program": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", | ||
"mint_authority": "FAzbjKo66M3tKhkKqegmWFaYr93FB74B1ChEBdFyKcip", | ||
"freeze_authority": "FAzbjKo66M3tKhkKqegmWFaYr93FB74B1ChEBdFyKcip" | ||
} | ||
} | ||
] | ||
} |