|
|
@@ -3,20 +3,18 @@ import { HeroCode } from '@/components/HeroCode'
|
|
|
|
|
|
const codeProps = {
|
|
|
tabs: [
|
|
|
- { name: 'batch_mint.rs', isActive: true },
|
|
|
+ { name: 'getAsset', isActive: true },
|
|
|
],
|
|
|
- language: 'rust',
|
|
|
- code: `pub struct BatchMintBuilder {
|
|
|
- pub tree_account: Pubkey,
|
|
|
- pub max_depth: u32,
|
|
|
- pub max_buffer_size: u32,
|
|
|
- pub canopy_depth: u32,
|
|
|
- pub merkle: Box<dyn ITree>,
|
|
|
- pub mints: BTreeMap<u64, BatchMintInstruction>,
|
|
|
- pub last_leaf_hash: [u8; 32],
|
|
|
- pub canopy_leaves: Vec<[u8; 32]>,
|
|
|
- pub collection_config: Option<CollectionConfig>,
|
|
|
-}`,
|
|
|
+ language: 'json',
|
|
|
+ code: `{
|
|
|
+ "jsonrpc": "2.0",
|
|
|
+ "result": {
|
|
|
+ "interface": "MplCoreAsset",
|
|
|
+ "id": "5avjMVza8SuMhgTfzEGNWJskDELMCQk9juAAc8zeQoNa",
|
|
|
+ "content": {
|
|
|
+ "$schema": "https://schema.metaplex.com/nft1.0.json",
|
|
|
+ "json_uri": "https://arweave.net/2xl-wNjCDAnCEtPbtUZRlXypSP6boMVTt5On8F7NPoc",
|
|
|
+`,
|
|
|
}
|
|
|
|
|
|
export function Hero({ page }) {
|