Skip to content

Commit

Permalink
feat: extend range of interfaces for supply object display (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
n00m4d authored Jan 24, 2025
1 parent 11ad39b commit f2a45d7
Show file tree
Hide file tree
Showing 13 changed files with 80 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ snapshot_kind: text
"ownership_model": "single",
"owner": "BzbdvwEkQKeghTY53aZxTYjUienhdbkNVkgrLV6cErke"
},
"supply": null,
"supply": {
"print_max_supply": 0,
"print_current_supply": 0,
"edition_nonce": 253
},
"mutable": false,
"burnt": false,
"lamports": 5616720,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ snapshot_kind: text
"ownership_model": "single",
"owner": "1111111QLbz7JHiBTspS962RLKV8GndWFwiEaqKM"
},
"supply": null,
"supply": {
"print_max_supply": 0,
"print_current_supply": 0,
"edition_nonce": 253
},
"mutable": true,
"burnt": false,
"lamports": 5616720,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ snapshot_kind: text
"ownership_model": "single",
"owner": "1111111QLbz7JHiBTspS962RLKV8GndWFwiEaqKM"
},
"supply": null,
"supply": {
"print_max_supply": 0,
"print_current_supply": 0,
"edition_nonce": 253
},
"mutable": false,
"burnt": false,
"lamports": 5616720,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ snapshot_kind: text
"ownership_model": "single",
"owner": "BzbdvwEkQKeghTY53aZxTYjUienhdbkNVkgrLV6cErke"
},
"supply": null,
"supply": {
"print_max_supply": 0,
"print_current_supply": 0,
"edition_nonce": 253
},
"mutable": true,
"burnt": false,
"lamports": 5616720,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ snapshot_kind: text
"ownership_model": "single",
"owner": "BzbdvwEkQKeghTY53aZxTYjUienhdbkNVkgrLV6cErke"
},
"supply": null,
"supply": {
"print_max_supply": 0,
"print_current_supply": 0,
"edition_nonce": 253
},
"mutable": true,
"burnt": false,
"lamports": 5616720,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ snapshot_kind: text
"ownership_model": "single",
"owner": "A59E2tNJEqNN9TDnzgGnmLmnTsdRDoPocGx3n1w2dqZw"
},
"supply": null,
"supply": {
"print_max_supply": 0,
"print_current_supply": 0,
"edition_nonce": 255
},
"mutable": true,
"burnt": false,
"lamports": 5616720,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ snapshot_kind: text
"ownership_model": "single",
"owner": "9PacVenjPyQYiWBha89UYRM1nn6mf9bGY7vi32zY6DLn"
},
"supply": null,
"supply": {
"print_max_supply": 0,
"print_current_supply": 0,
"edition_nonce": 255
},
"mutable": true,
"burnt": false,
"lamports": 5616720,
Expand Down Expand Up @@ -153,7 +157,11 @@ snapshot_kind: text
"ownership_model": "single",
"owner": "3H3d3hfpZVVdVwuFAxDtDSFN2AdR7kwiDA3ynbnbkhc9"
},
"supply": null,
"supply": {
"print_max_supply": 0,
"print_current_supply": 0,
"edition_nonce": 255
},
"mutable": true,
"burnt": false,
"lamports": 5616720,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ snapshot_kind: text
"ownership_model": "single",
"owner": "9PacVenjPyQYiWBha89UYRM1nn6mf9bGY7vi32zY6DLn"
},
"supply": null,
"supply": {
"print_max_supply": 0,
"print_current_supply": 0,
"edition_nonce": 255
},
"mutable": true,
"burnt": false,
"lamports": 5616720,
Expand Down Expand Up @@ -152,7 +156,11 @@ snapshot_kind: text
"ownership_model": "single",
"owner": "3H3d3hfpZVVdVwuFAxDtDSFN2AdR7kwiDA3ynbnbkhc9"
},
"supply": null,
"supply": {
"print_max_supply": 0,
"print_current_supply": 0,
"edition_nonce": 255
},
"mutable": true,
"burnt": false,
"lamports": 5616720,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ snapshot_kind: text
"ownership_model": "single",
"owner": "BaBQKh34KrqZzd4ifSHQYMf86HiBGASN6TWUi1ZwfyKv"
},
"supply": null,
"supply": {
"print_max_supply": 0,
"print_current_supply": 0,
"edition_nonce": 252
},
"mutable": true,
"burnt": false,
"lamports": 5616720,
Expand Down Expand Up @@ -152,7 +156,11 @@ snapshot_kind: text
"ownership_model": "single",
"owner": "9PacVenjPyQYiWBha89UYRM1nn6mf9bGY7vi32zY6DLn"
},
"supply": null,
"supply": {
"print_max_supply": 0,
"print_current_supply": 0,
"edition_nonce": 255
},
"mutable": true,
"burnt": false,
"lamports": 5616720,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ snapshot_kind: text
"ownership_model": "single",
"owner": "9qUcfdADyrrTSetFjNjF9Ro7LKAqzJkzZV6WKLHfv5MU"
},
"supply": null,
"supply": {
"print_max_supply": 0,
"print_current_supply": 0,
"edition_nonce": 254
},
"mutable": true,
"burnt": false,
"lamports": 5616720,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ snapshot_kind: text
"ownership_model": "single",
"owner": "6Cr66AabRYymhZgYQSfTCo6FVpH18wXrMZswAbcErpyX"
},
"supply": null,
"supply": {
"print_max_supply": 0,
"print_current_supply": 0,
"edition_nonce": 255
},
"mutable": true,
"burnt": false,
"lamports": 5616720,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ snapshot_kind: text
"ownership_model": "single",
"owner": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW"
},
"supply": null,
"supply": {
"print_max_supply": 0,
"print_current_supply": 0,
"edition_nonce": 253
},
"mutable": true,
"burnt": false,
"lamports": 5616720,
Expand Down
6 changes: 5 additions & 1 deletion nft_ingester/src/api/dapi/rpc_asset_convertors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,11 @@ pub fn asset_to_rpc(
_ => None,
};
let supply = match interface {
Interface::V1NFT => {
Interface::V1NFT
| Interface::LegacyNft
| Interface::Nft
| Interface::ProgrammableNFT
| Interface::Custom => {
if let Some(edition_info) = &full_asset.edition_data {
Some(Supply {
edition_nonce,
Expand Down

0 comments on commit f2a45d7

Please sign in to comment.