From 1992beda240fe2d79085de333af3b8e73c5b7383 Mon Sep 17 00:00:00 2001 From: lthiery Date: Mon, 15 Dec 2025 22:10:10 +0000 Subject: [PATCH] idl-update: program-mobile-entity-manager-0.2.5 --- idl/mobile_entity_manager.json | 3319 +++++++++++++++++---- programs/mobile-entity-manager/Cargo.toml | 2 +- 2 files changed, 2659 insertions(+), 662 deletions(-) diff --git a/idl/mobile_entity_manager.json b/idl/mobile_entity_manager.json index 1200e91..f588dd5 100644 --- a/idl/mobile_entity_manager.json +++ b/idl/mobile_entity_manager.json @@ -1,97 +1,122 @@ { - "version": "0.2.1", - "name": "mobile_entity_manager", + "address": "memMa1HG4odAFmUbGWfPwS1WWfK95k99F2YTkGvyxZr", + "metadata": { + "name": "mobile_entity_manager", + "version": "0.2.5", + "spec": "0.1.0", + "description": "Created with Anchor" + }, "instructions": [ { - "name": "approveCarrierV0", + "name": "approve_carrier_v0", + "discriminator": [ + 133, + 188, + 18, + 251, + 110, + 211, + 124, + 62 + ], "accounts": [ { - "name": "subDao", - "isMut": false, - "isSigner": false, + "name": "sub_dao", "relations": [ - "authority" + "carrier" ] }, { "name": "authority", - "isMut": false, - "isSigner": true - }, - { - "name": "carrier", - "isMut": true, - "isSigner": false, + "signer": true, "relations": [ "sub_dao" ] + }, + { + "name": "carrier", + "writable": true } ], "args": [] }, { - "name": "initializeCarrierV0", + "name": "initialize_carrier_v0", + "discriminator": [ + 179, + 179, + 10, + 60, + 196, + 56, + 135, + 73 + ], "accounts": [ { "name": "payer", - "isMut": true, - "isSigner": true + "writable": true, + "signer": true }, { "name": "carrier", - "isMut": true, - "isSigner": false, + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "carrier" + "value": [ + 99, + 97, + 114, + 114, + 105, + 101, + 114 + ] }, { "kind": "account", - "type": "publicKey", - "account": "SubDaoV0", "path": "sub_dao" }, { "kind": "arg", - "type": { - "defined": "InitializeCarrierArgsV0" - }, "path": "args.name" } ] } }, { - "name": "subDao", - "isMut": false, - "isSigner": false, + "name": "sub_dao" + }, + { + "name": "hnt_mint", "relations": [ "dao" ] }, - { - "name": "hntMint", - "isMut": false, - "isSigner": false - }, { "name": "collection", - "isMut": true, - "isSigner": false, + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "collection" + "value": [ + 99, + 111, + 108, + 108, + 101, + 99, + 116, + 105, + 111, + 110 + ] }, { "kind": "account", - "type": "publicKey", - "account": "CarrierV0", "path": "carrier" } ] @@ -99,115 +124,376 @@ }, { "name": "metadata", - "isMut": true, - "isSigner": false, + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "metadata" + "value": [ + 109, + 101, + 116, + 97, + 100, + 97, + 116, + 97 + ] }, { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" }, { "kind": "account", - "type": "publicKey", - "account": "Mint", "path": "collection" } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" } } }, { - "name": "masterEdition", - "isMut": true, - "isSigner": false, + "name": "master_edition", + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "metadata" + "value": [ + 109, + 101, + 116, + 97, + 100, + 97, + 116, + 97 + ] }, { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" }, { "kind": "account", - "type": "publicKey", - "account": "Mint", "path": "collection" }, { "kind": "const", - "type": "string", - "value": "edition" + "value": [ + 101, + 100, + 105, + 116, + 105, + 111, + 110 + ] } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" } } }, { - "name": "tokenAccount", - "isMut": true, - "isSigner": false + "name": "token_account", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "carrier" + }, + { + "kind": "const", + "value": [ + 6, + 221, + 246, + 225, + 215, + 101, + 161, + 147, + 217, + 203, + 225, + 70, + 206, + 235, + 121, + 172, + 28, + 180, + 133, + 237, + 95, + 91, + 55, + 145, + 58, + 140, + 245, + 133, + 126, + 255, + 0, + 169 + ] + }, + { + "kind": "account", + "path": "collection" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } }, { "name": "source", - "isMut": true, - "isSigner": false + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "payer" + }, + { + "kind": "const", + "value": [ + 6, + 221, + 246, + 225, + 215, + 101, + 161, + 147, + 217, + 203, + 225, + 70, + 206, + 235, + 121, + 172, + 28, + 180, + 133, + 237, + 95, + 91, + 55, + 145, + 58, + 140, + 245, + 133, + 126, + 255, + 0, + 169 + ] + }, + { + "kind": "account", + "path": "hnt_mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } }, { "name": "escrow", - "isMut": true, - "isSigner": false + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "carrier" + }, + { + "kind": "const", + "value": [ + 6, + 221, + 246, + 225, + 215, + 101, + 161, + 147, + 217, + 203, + 225, + 70, + 206, + 235, + 121, + 172, + 28, + 180, + 133, + 237, + 95, + 91, + 55, + 145, + 58, + 140, + 245, + 133, + 126, + 255, + 0, + 169 + ] + }, + { + "kind": "account", + "path": "hnt_mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } }, { - "name": "tokenMetadataProgram", - "isMut": false, - "isSigner": false + "name": "token_metadata_program", + "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s" }, { - "name": "associatedTokenProgram", - "isMut": false, - "isSigner": false + "name": "associated_token_program", + "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { - "name": "systemProgram", - "isMut": false, - "isSigner": false + "name": "system_program", + "address": "11111111111111111111111111111111" }, { - "name": "tokenProgram", - "isMut": false, - "isSigner": false + "name": "token_program", + "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "rent", - "isMut": false, - "isSigner": false + "address": "SysvarRent111111111111111111111111111111111" }, { "name": "dao", - "isMut": false, - "isSigner": false, "relations": [ - "hnt_mint" + "sub_dao" ] } ], @@ -215,1030 +501,2556 @@ { "name": "args", "type": { - "defined": "InitializeCarrierArgsV0" + "defined": { + "name": "InitializeCarrierArgsV0" + } } } ] }, { - "name": "initializeSubscriberV0", + "name": "initialize_incentive_program_v0", + "discriminator": [ + 221, + 236, + 80, + 115, + 125, + 224, + 113, + 168 + ], "accounts": [ { "name": "payer", - "isMut": true, - "isSigner": true - }, - { - "name": "programApproval", - "isMut": false, - "isSigner": false + "writable": true, + "signer": true }, { - "name": "carrier", - "isMut": false, - "isSigner": false, + "name": "issuing_authority", + "signer": true, "relations": [ - "collection", - "merkle_tree", - "issuing_authority", - "sub_dao" + "carrier" ] }, { - "name": "issuingAuthority", - "isMut": false, - "isSigner": true + "name": "program_approval", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 112, + 114, + 111, + 103, + 114, + 97, + 109, + 95, + 97, + 112, + 112, + 114, + 111, + 118, + 97, + 108 + ] + }, + { + "kind": "account", + "path": "dao" + }, + { + "kind": "const", + "value": [ + 11, + 112, + 65, + 158, + 72, + 168, + 159, + 152, + 187, + 188, + 122, + 42, + 226, + 37, + 14, + 7, + 167, + 195, + 247, + 53, + 180, + 5, + 192, + 31, + 89, + 114, + 217, + 86, + 169, + 50, + 218, + 93 + ] + } + ], + "program": { + "kind": "account", + "path": "helium_entity_manager_program" + } + } + }, + { + "name": "carrier" }, { "name": "collection", - "isMut": false, - "isSigner": false + "relations": [ + "carrier" + ] }, { - "name": "collectionMetadata", - "isMut": true, - "isSigner": false, + "name": "collection_metadata", + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "metadata" + "value": [ + 109, + 101, + 116, + 97, + 100, + 97, + 116, + 97 + ] }, { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" }, { "kind": "account", - "type": "publicKey", - "account": "Mint", "path": "collection" } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" } } }, { - "name": "collectionMasterEdition", - "isMut": false, - "isSigner": false, + "name": "collection_master_edition", "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "metadata" + "value": [ + 109, + 101, + 116, + 97, + 100, + 97, + 116, + 97 + ] }, { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" }, { "kind": "account", - "type": "publicKey", - "account": "Mint", "path": "collection" }, { "kind": "const", - "type": "string", - "value": "edition" + "value": [ + 101, + 100, + 105, + 116, + 105, + 111, + 110 + ] } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" } } }, { - "name": "entityCreator", - "isMut": false, - "isSigner": false, + "name": "entity_creator", "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "entity_creator" + "value": [ + 101, + 110, + 116, + 105, + 116, + 121, + 95, + 99, + 114, + 101, + 97, + 116, + 111, + 114 + ] }, { "kind": "account", - "type": "publicKey", - "account": "DaoV0", "path": "dao" } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", "path": "helium_entity_manager_program" } } }, { "name": "dao", - "isMut": false, - "isSigner": false + "relations": [ + "sub_dao" + ] }, { - "name": "subDao", - "isMut": false, - "isSigner": false, + "name": "sub_dao", "relations": [ - "dao" + "carrier" ] }, { - "name": "keyToAsset", - "isMut": true, - "isSigner": false + "name": "key_to_asset", + "writable": true + }, + { + "name": "incentive_escrow_program", + "writable": true }, { - "name": "treeAuthority", - "isMut": true, - "isSigner": false, + "name": "tree_authority", + "writable": true, "pda": { "seeds": [ { "kind": "account", - "type": "publicKey", "path": "merkle_tree" } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", "path": "bubblegum_program" } } }, { - "name": "recipient", - "isMut": false, - "isSigner": false + "name": "recipient" }, { - "name": "merkleTree", - "isMut": true, - "isSigner": false + "name": "merkle_tree", + "writable": true, + "relations": [ + "carrier" + ] }, { - "name": "bubblegumSigner", - "isMut": false, - "isSigner": false, + "name": "bubblegum_signer", "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "collection_cpi" + "value": [ + 99, + 111, + 108, + 108, + 101, + 99, + 116, + 105, + 111, + 110, + 95, + 99, + 112, + 105 + ] } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", "path": "bubblegum_program" } } }, { - "name": "tokenMetadataProgram", - "isMut": false, - "isSigner": false + "name": "token_metadata_program", + "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s" }, { - "name": "logWrapper", - "isMut": false, - "isSigner": false + "name": "log_wrapper", + "address": "noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV" }, { - "name": "bubblegumProgram", - "isMut": false, - "isSigner": false + "name": "bubblegum_program", + "address": "BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY" }, { - "name": "compressionProgram", - "isMut": false, - "isSigner": false + "name": "compression_program", + "address": "cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK" }, { - "name": "systemProgram", - "isMut": false, - "isSigner": false + "name": "system_program", + "address": "11111111111111111111111111111111" }, { - "name": "heliumEntityManagerProgram", - "isMut": false, - "isSigner": false + "name": "helium_entity_manager_program", + "address": "hemjuPXBpNvggtaUnN1MwT3wrdhttKEfosTcc2P9Pg8" } ], "args": [ { "name": "args", "type": { - "defined": "InitializeSubscriberArgsV0" + "defined": { + "name": "InitializeIncentiveProgramArgsV0" + } } } ] }, { - "name": "issueCarrierNftV0", + "name": "initialize_subscriber_v0", + "discriminator": [ + 132, + 149, + 160, + 232, + 79, + 167, + 194, + 248 + ], "accounts": [ { "name": "payer", - "isMut": true, - "isSigner": true + "writable": true, + "signer": true + }, + { + "name": "program_approval", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 112, + 114, + 111, + 103, + 114, + 97, + 109, + 95, + 97, + 112, + 112, + 114, + 111, + 118, + 97, + 108 + ] + }, + { + "kind": "account", + "path": "dao" + }, + { + "kind": "const", + "value": [ + 11, + 112, + 65, + 158, + 72, + 168, + 159, + 152, + 187, + 188, + 122, + 42, + 226, + 37, + 14, + 7, + 167, + 195, + 247, + 53, + 180, + 5, + 192, + 31, + 89, + 114, + 217, + 86, + 169, + 50, + 218, + 93 + ] + } + ], + "program": { + "kind": "account", + "path": "helium_entity_manager_program" + } + } }, { - "name": "programApproval", - "isMut": false, - "isSigner": false + "name": "carrier" }, { - "name": "carrier", - "isMut": false, - "isSigner": false, + "name": "issuing_authority", + "signer": true, "relations": [ - "collection", - "merkle_tree", - "issuing_authority", - "sub_dao" + "carrier" ] }, - { - "name": "issuingAuthority", - "isMut": false, - "isSigner": true - }, { "name": "collection", - "isMut": false, - "isSigner": false + "relations": [ + "carrier" + ] }, { - "name": "collectionMetadata", - "isMut": true, - "isSigner": false, + "name": "collection_metadata", + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "metadata" + "value": [ + 109, + 101, + 116, + 97, + 100, + 97, + 116, + 97 + ] }, { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" }, { "kind": "account", - "type": "publicKey", - "account": "Mint", "path": "collection" } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" } } }, { - "name": "collectionMasterEdition", - "isMut": false, - "isSigner": false, + "name": "collection_master_edition", "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "metadata" + "value": [ + 109, + 101, + 116, + 97, + 100, + 97, + 116, + 97 + ] }, { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" }, { "kind": "account", - "type": "publicKey", - "account": "Mint", "path": "collection" }, { "kind": "const", - "type": "string", - "value": "edition" + "value": [ + 101, + 100, + 105, + 116, + 105, + 111, + 110 + ] } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" } } }, { - "name": "entityCreator", - "isMut": false, - "isSigner": false, + "name": "entity_creator", "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "entity_creator" + "value": [ + 101, + 110, + 116, + 105, + 116, + 121, + 95, + 99, + 114, + 101, + 97, + 116, + 111, + 114 + ] }, { "kind": "account", - "type": "publicKey", - "account": "DaoV0", "path": "dao" } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", "path": "helium_entity_manager_program" } } }, { "name": "dao", - "isMut": false, - "isSigner": false + "relations": [ + "sub_dao" + ] }, { - "name": "subDao", - "isMut": false, - "isSigner": false, + "name": "sub_dao", "relations": [ - "dao" + "carrier" ] }, { - "name": "keyToAsset", - "isMut": true, - "isSigner": false + "name": "key_to_asset", + "writable": true }, { - "name": "treeAuthority", - "isMut": true, - "isSigner": false, + "name": "tree_authority", + "writable": true, "pda": { "seeds": [ { "kind": "account", - "type": "publicKey", "path": "merkle_tree" } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", "path": "bubblegum_program" } } }, { - "name": "recipient", - "isMut": false, - "isSigner": false + "name": "recipient" }, { - "name": "merkleTree", - "isMut": true, - "isSigner": false + "name": "merkle_tree", + "writable": true, + "relations": [ + "carrier" + ] }, { - "name": "bubblegumSigner", - "isMut": false, - "isSigner": false, + "name": "bubblegum_signer", "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "collection_cpi" + "value": [ + 99, + 111, + 108, + 108, + 101, + 99, + 116, + 105, + 111, + 110, + 95, + 99, + 112, + 105 + ] } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", "path": "bubblegum_program" } } }, { - "name": "tokenMetadataProgram", - "isMut": false, - "isSigner": false + "name": "token_metadata_program", + "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s" }, { - "name": "logWrapper", - "isMut": false, - "isSigner": false + "name": "log_wrapper", + "address": "noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV" }, { - "name": "bubblegumProgram", - "isMut": false, - "isSigner": false + "name": "bubblegum_program", + "address": "BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY" }, { - "name": "compressionProgram", - "isMut": false, - "isSigner": false + "name": "compression_program", + "address": "cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK" }, { - "name": "systemProgram", - "isMut": false, - "isSigner": false + "name": "system_program", + "address": "11111111111111111111111111111111" }, { - "name": "heliumEntityManagerProgram", - "isMut": false, - "isSigner": false + "name": "helium_entity_manager_program", + "address": "hemjuPXBpNvggtaUnN1MwT3wrdhttKEfosTcc2P9Pg8" } ], "args": [ { "name": "args", "type": { - "defined": "IssueCarrierNftArgsV0" + "defined": { + "name": "InitializeSubscriberArgsV0" + } } } ] }, { - "name": "revokeCarrierV0", - "accounts": [ - { - "name": "subDao", - "isMut": false, - "isSigner": false, - "relations": [ - "authority" - ] - }, - { - "name": "authority", - "isMut": false, - "isSigner": true - }, - { - "name": "carrier", - "isMut": true, - "isSigner": false, - "relations": [ - "sub_dao" - ] - } + "name": "issue_carrier_nft_v0", + "discriminator": [ + 43, + 84, + 74, + 8, + 1, + 120, + 183, + 222 ], - "args": [] - }, - { - "name": "updateCarrierTreeV0", "accounts": [ { "name": "payer", - "isMut": true, - "isSigner": true - }, - { - "name": "carrier", - "isMut": true, - "isSigner": false + "writable": true, + "signer": true }, { - "name": "treeConfig", - "isMut": true, - "isSigner": false, + "name": "program_approval", "pda": { "seeds": [ { - "kind": "account", - "type": "publicKey", - "account": "CarrierV0", - "path": "carrier.merkle_tree" - } - ], - "programId": { - "kind": "account", - "type": "publicKey", - "path": "bubblegum_program" - } - } - }, - { - "name": "newTreeAuthority", - "isMut": true, - "isSigner": false, - "pda": { - "seeds": [ + "kind": "const", + "value": [ + 112, + 114, + 111, + 103, + 114, + 97, + 109, + 95, + 97, + 112, + 112, + 114, + 111, + 118, + 97, + 108 + ] + }, { "kind": "account", - "type": "publicKey", - "path": "new_merkle_tree" + "path": "dao" + }, + { + "kind": "const", + "value": [ + 11, + 112, + 65, + 158, + 72, + 168, + 159, + 152, + 187, + 188, + 122, + 42, + 226, + 37, + 14, + 7, + 167, + 195, + 247, + 53, + 180, + 5, + 192, + 31, + 89, + 114, + 217, + 86, + 169, + 50, + 218, + 93 + ] } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", - "path": "bubblegum_program" + "path": "helium_entity_manager_program" } } }, { - "name": "newMerkleTree", - "isMut": true, - "isSigner": false - }, - { - "name": "logWrapper", - "isMut": false, - "isSigner": false - }, - { - "name": "systemProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "bubblegumProgram", - "isMut": false, - "isSigner": false + "name": "carrier" }, { - "name": "compressionProgram", - "isMut": false, - "isSigner": false - } - ], - "args": [ - { - "name": "args", - "type": { - "defined": "UpdateCarrierTreeArgsV0" - } - } - ] - }, - { - "name": "updateCarrierV0", - "accounts": [ - { - "name": "carrier", - "isMut": true, - "isSigner": false, + "name": "issuing_authority", + "signer": true, "relations": [ - "update_authority" + "carrier" ] }, { - "name": "updateAuthority", - "isMut": true, - "isSigner": true - } - ], - "args": [ - { - "name": "args", - "type": { - "defined": "UpdateCarrierArgsV0" - } - } - ] - }, - { - "name": "initializeIncentiveProgramV0", - "accounts": [ - { - "name": "payer", - "isMut": true, - "isSigner": true - }, - { - "name": "issuingAuthority", - "isMut": false, - "isSigner": true - }, - { - "name": "programApproval", - "isMut": false, - "isSigner": false - }, - { - "name": "carrier", - "isMut": false, - "isSigner": false, + "name": "collection", "relations": [ - "collection", - "merkle_tree", - "issuing_authority", - "sub_dao" + "carrier" ] }, { - "name": "collection", - "isMut": false, - "isSigner": false - }, - { - "name": "collectionMetadata", - "isMut": true, - "isSigner": false, + "name": "collection_metadata", + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "metadata" + "value": [ + 109, + 101, + 116, + 97, + 100, + 97, + 116, + 97 + ] }, { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" }, { "kind": "account", - "type": "publicKey", - "account": "Mint", "path": "collection" } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" } } }, { - "name": "collectionMasterEdition", - "isMut": false, - "isSigner": false, + "name": "collection_master_edition", "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "metadata" + "value": [ + 109, + 101, + 116, + 97, + 100, + 97, + 116, + 97 + ] }, { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" }, { "kind": "account", - "type": "publicKey", - "account": "Mint", "path": "collection" }, { "kind": "const", - "type": "string", - "value": "edition" + "value": [ + 101, + 100, + 105, + 116, + 105, + 111, + 110 + ] } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" } } }, { - "name": "entityCreator", - "isMut": false, - "isSigner": false, + "name": "entity_creator", "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "entity_creator" + "value": [ + 101, + 110, + 116, + 105, + 116, + 121, + 95, + 99, + 114, + 101, + 97, + 116, + 111, + 114 + ] }, { "kind": "account", - "type": "publicKey", - "account": "DaoV0", "path": "dao" } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", "path": "helium_entity_manager_program" } } }, { "name": "dao", - "isMut": false, - "isSigner": false - }, - { - "name": "subDao", - "isMut": false, - "isSigner": false, "relations": [ - "dao" + "sub_dao" ] }, { - "name": "keyToAsset", - "isMut": true, - "isSigner": false + "name": "sub_dao", + "relations": [ + "carrier" + ] }, { - "name": "incentiveEscrowProgram", - "isMut": true, - "isSigner": false + "name": "key_to_asset", + "writable": true }, { - "name": "treeAuthority", - "isMut": true, - "isSigner": false, + "name": "tree_authority", + "writable": true, "pda": { "seeds": [ { "kind": "account", - "type": "publicKey", "path": "merkle_tree" } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", "path": "bubblegum_program" } } }, { - "name": "recipient", - "isMut": false, - "isSigner": false + "name": "recipient" }, { - "name": "merkleTree", - "isMut": true, - "isSigner": false + "name": "merkle_tree", + "writable": true, + "relations": [ + "carrier" + ] }, { - "name": "bubblegumSigner", - "isMut": false, - "isSigner": false, + "name": "bubblegum_signer", "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "collection_cpi" + "value": [ + 99, + 111, + 108, + 108, + 101, + 99, + 116, + 105, + 111, + 110, + 95, + 99, + 112, + 105 + ] } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", "path": "bubblegum_program" } } }, { - "name": "tokenMetadataProgram", - "isMut": false, - "isSigner": false + "name": "token_metadata_program", + "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s" }, { - "name": "logWrapper", - "isMut": false, - "isSigner": false + "name": "log_wrapper", + "address": "noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV" }, { - "name": "bubblegumProgram", - "isMut": false, - "isSigner": false + "name": "bubblegum_program", + "address": "BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY" }, { - "name": "compressionProgram", - "isMut": false, - "isSigner": false + "name": "compression_program", + "address": "cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK" }, { - "name": "systemProgram", - "isMut": false, - "isSigner": false + "name": "system_program", + "address": "11111111111111111111111111111111" }, { - "name": "heliumEntityManagerProgram", - "isMut": false, - "isSigner": false + "name": "helium_entity_manager_program", + "address": "hemjuPXBpNvggtaUnN1MwT3wrdhttKEfosTcc2P9Pg8" } ], "args": [ { "name": "args", "type": { - "defined": "InitializeIncentiveProgramArgsV0" + "defined": { + "name": "IssueCarrierNftArgsV0" + } } } ] }, { - "name": "updateIncentiveProgramV0", + "name": "issue_mapping_rewards_nft_v0", + "discriminator": [ + 96, + 51, + 175, + 152, + 235, + 71, + 173, + 64 + ], "accounts": [ { - "name": "issuingAuthority", - "isMut": false, - "isSigner": true - }, - { - "name": "carrier", - "isMut": false, - "isSigner": false, - "relations": [ - "issuing_authority" - ] + "name": "payer", + "writable": true, + "signer": true }, { - "name": "incentiveEscrowProgram", - "isMut": true, - "isSigner": false, - "relations": [ - "carrier" - ] - } - ], - "args": [ - { - "name": "args", - "type": { - "defined": "UpdateIncentiveProgramV0Args" - } - } - ] - }, + "name": "program_approval", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 112, + 114, + 111, + 103, + 114, + 97, + 109, + 95, + 97, + 112, + 112, + 114, + 111, + 118, + 97, + 108 + ] + }, + { + "kind": "account", + "path": "dao" + }, + { + "kind": "const", + "value": [ + 11, + 112, + 65, + 158, + 72, + 168, + 159, + 152, + 187, + 188, + 122, + 42, + 226, + 37, + 14, + 7, + 167, + 195, + 247, + 53, + 180, + 5, + 192, + 31, + 89, + 114, + 217, + 86, + 169, + 50, + 218, + 93 + ] + } + ], + "program": { + "kind": "account", + "path": "helium_entity_manager_program" + } + } + }, + { + "name": "carrier" + }, + { + "name": "issuing_authority", + "signer": true, + "relations": [ + "carrier" + ] + }, + { + "name": "collection", + "relations": [ + "carrier" + ] + }, + { + "name": "collection_metadata", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 101, + 116, + 97, + 100, + 97, + 116, + 97 + ] + }, + { + "kind": "account", + "path": "token_metadata_program" + }, + { + "kind": "account", + "path": "collection" + } + ], + "program": { + "kind": "account", + "path": "token_metadata_program" + } + } + }, + { + "name": "collection_master_edition", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 101, + 116, + 97, + 100, + 97, + 116, + 97 + ] + }, + { + "kind": "account", + "path": "token_metadata_program" + }, + { + "kind": "account", + "path": "collection" + }, + { + "kind": "const", + "value": [ + 101, + 100, + 105, + 116, + 105, + 111, + 110 + ] + } + ], + "program": { + "kind": "account", + "path": "token_metadata_program" + } + } + }, + { + "name": "entity_creator", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 101, + 110, + 116, + 105, + 116, + 121, + 95, + 99, + 114, + 101, + 97, + 116, + 111, + 114 + ] + }, + { + "kind": "account", + "path": "dao" + } + ], + "program": { + "kind": "account", + "path": "helium_entity_manager_program" + } + } + }, + { + "name": "dao", + "relations": [ + "sub_dao" + ] + }, + { + "name": "sub_dao", + "relations": [ + "carrier" + ] + }, + { + "name": "key_to_asset", + "writable": true + }, + { + "name": "tree_authority", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "merkle_tree" + } + ], + "program": { + "kind": "account", + "path": "bubblegum_program" + } + } + }, + { + "name": "recipient" + }, + { + "name": "merkle_tree", + "writable": true, + "relations": [ + "carrier" + ] + }, + { + "name": "bubblegum_signer", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 99, + 111, + 108, + 108, + 101, + 99, + 116, + 105, + 111, + 110, + 95, + 99, + 112, + 105 + ] + } + ], + "program": { + "kind": "account", + "path": "bubblegum_program" + } + } + }, + { + "name": "token_metadata_program", + "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s" + }, + { + "name": "log_wrapper", + "address": "noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV" + }, + { + "name": "bubblegum_program", + "address": "BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY" + }, + { + "name": "compression_program", + "address": "cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK" + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + }, + { + "name": "helium_entity_manager_program", + "address": "hemjuPXBpNvggtaUnN1MwT3wrdhttKEfosTcc2P9Pg8" + } + ], + "args": [ + { + "name": "args", + "type": { + "defined": { + "name": "IssueMappingRewardsNftArgsV0" + } + } + } + ] + }, + { + "name": "issue_service_rewards_nft_v0", + "discriminator": [ + 88, + 172, + 70, + 210, + 37, + 223, + 25, + 183 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "program_approval", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 112, + 114, + 111, + 103, + 114, + 97, + 109, + 95, + 97, + 112, + 112, + 114, + 111, + 118, + 97, + 108 + ] + }, + { + "kind": "account", + "path": "dao" + }, + { + "kind": "const", + "value": [ + 11, + 112, + 65, + 158, + 72, + 168, + 159, + 152, + 187, + 188, + 122, + 42, + 226, + 37, + 14, + 7, + 167, + 195, + 247, + 53, + 180, + 5, + 192, + 31, + 89, + 114, + 217, + 86, + 169, + 50, + 218, + 93 + ] + } + ], + "program": { + "kind": "account", + "path": "helium_entity_manager_program" + } + } + }, + { + "name": "carrier" + }, + { + "name": "issuing_authority", + "signer": true, + "relations": [ + "carrier" + ] + }, + { + "name": "collection", + "relations": [ + "carrier" + ] + }, + { + "name": "collection_metadata", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 101, + 116, + 97, + 100, + 97, + 116, + 97 + ] + }, + { + "kind": "account", + "path": "token_metadata_program" + }, + { + "kind": "account", + "path": "collection" + } + ], + "program": { + "kind": "account", + "path": "token_metadata_program" + } + } + }, + { + "name": "collection_master_edition", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 101, + 116, + 97, + 100, + 97, + 116, + 97 + ] + }, + { + "kind": "account", + "path": "token_metadata_program" + }, + { + "kind": "account", + "path": "collection" + }, + { + "kind": "const", + "value": [ + 101, + 100, + 105, + 116, + 105, + 111, + 110 + ] + } + ], + "program": { + "kind": "account", + "path": "token_metadata_program" + } + } + }, + { + "name": "entity_creator", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 101, + 110, + 116, + 105, + 116, + 121, + 95, + 99, + 114, + 101, + 97, + 116, + 111, + 114 + ] + }, + { + "kind": "account", + "path": "dao" + } + ], + "program": { + "kind": "account", + "path": "helium_entity_manager_program" + } + } + }, + { + "name": "dao", + "relations": [ + "sub_dao" + ] + }, + { + "name": "sub_dao", + "relations": [ + "carrier" + ] + }, + { + "name": "key_to_asset", + "writable": true + }, + { + "name": "tree_authority", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "merkle_tree" + } + ], + "program": { + "kind": "account", + "path": "bubblegum_program" + } + } + }, + { + "name": "recipient" + }, + { + "name": "merkle_tree", + "writable": true, + "relations": [ + "carrier" + ] + }, + { + "name": "bubblegum_signer", + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 99, + 111, + 108, + 108, + 101, + 99, + 116, + 105, + 111, + 110, + 95, + 99, + 112, + 105 + ] + } + ], + "program": { + "kind": "account", + "path": "bubblegum_program" + } + } + }, + { + "name": "token_metadata_program", + "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s" + }, + { + "name": "log_wrapper", + "address": "noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV" + }, + { + "name": "bubblegum_program", + "address": "BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY" + }, + { + "name": "compression_program", + "address": "cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK" + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + }, + { + "name": "helium_entity_manager_program", + "address": "hemjuPXBpNvggtaUnN1MwT3wrdhttKEfosTcc2P9Pg8" + } + ], + "args": [ + { + "name": "args", + "type": { + "defined": { + "name": "IssueServiceRewardsNftArgsV0" + } + } + } + ] + }, { - "name": "swapCarrierStake", + "name": "revoke_carrier_v0", + "discriminator": [ + 146, + 70, + 109, + 118, + 153, + 249, + 79, + 42 + ], "accounts": [ { - "name": "payer", - "isMut": true, - "isSigner": true + "name": "sub_dao", + "relations": [ + "carrier" + ] }, { - "name": "updateAuthority", - "isMut": false, - "isSigner": true + "name": "authority", + "signer": true, + "relations": [ + "sub_dao" + ] }, { "name": "carrier", - "isMut": false, - "isSigner": false, + "writable": true + } + ], + "args": [] + }, + { + "name": "swap_carrier_stake", + "discriminator": [ + 53, + 124, + 117, + 158, + 188, + 98, + 199, + 79 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "update_authority", + "signer": true, "relations": [ - "sub_dao", - "update_authority" + "carrier" ] }, { - "name": "subDao", - "isMut": false, - "isSigner": false, + "name": "carrier" + }, + { + "name": "sub_dao", "relations": [ - "dao", - "dnt_mint" + "carrier" ] }, { "name": "dao", - "isMut": false, - "isSigner": false, "relations": [ - "hnt_mint" + "sub_dao" ] }, { - "name": "dntMint", - "isMut": false, - "isSigner": false + "name": "dnt_mint", + "relations": [ + "sub_dao" + ] }, { - "name": "hntMint", - "isMut": false, - "isSigner": false + "name": "hnt_mint", + "relations": [ + "dao" + ] }, { - "name": "newStakeSource", - "isMut": true, - "isSigner": false + "name": "new_stake_source", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "payer" + }, + { + "kind": "const", + "value": [ + 6, + 221, + 246, + 225, + 215, + 101, + 161, + 147, + 217, + 203, + 225, + 70, + 206, + 235, + 121, + 172, + 28, + 180, + 133, + 237, + 95, + 91, + 55, + 145, + 58, + 140, + 245, + 133, + 126, + 255, + 0, + 169 + ] + }, + { + "kind": "account", + "path": "hnt_mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } }, { - "name": "originalStakeDestination", - "isMut": true, - "isSigner": false + "name": "original_stake_destination", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "payer" + }, + { + "kind": "const", + "value": [ + 6, + 221, + 246, + 225, + 215, + 101, + 161, + 147, + 217, + 203, + 225, + 70, + 206, + 235, + 121, + 172, + 28, + 180, + 133, + 237, + 95, + 91, + 55, + 145, + 58, + 140, + 245, + 133, + 126, + 255, + 0, + 169 + ] + }, + { + "kind": "account", + "path": "dnt_mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } }, { - "name": "originalStake", - "isMut": true, - "isSigner": false + "name": "original_stake", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "carrier" + }, + { + "kind": "const", + "value": [ + 6, + 221, + 246, + 225, + 215, + 101, + 161, + 147, + 217, + 203, + 225, + 70, + 206, + 235, + 121, + 172, + 28, + 180, + 133, + 237, + 95, + 91, + 55, + 145, + 58, + 140, + 245, + 133, + 126, + 255, + 0, + 169 + ] + }, + { + "kind": "account", + "path": "dnt_mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } }, { - "name": "newEscrow", - "isMut": true, - "isSigner": false + "name": "new_escrow", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "carrier" + }, + { + "kind": "const", + "value": [ + 6, + 221, + 246, + 225, + 215, + 101, + 161, + 147, + 217, + 203, + 225, + 70, + 206, + 235, + 121, + 172, + 28, + 180, + 133, + 237, + 95, + 91, + 55, + 145, + 58, + 140, + 245, + 133, + 126, + 255, + 0, + 169 + ] + }, + { + "kind": "account", + "path": "hnt_mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } }, { - "name": "associatedTokenProgram", - "isMut": false, - "isSigner": false + "name": "associated_token_program", + "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { - "name": "systemProgram", - "isMut": false, - "isSigner": false + "name": "system_program", + "address": "11111111111111111111111111111111" }, { - "name": "tokenProgram", - "isMut": false, - "isSigner": false + "name": "token_program", + "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "rent", - "isMut": false, - "isSigner": false + "address": "SysvarRent111111111111111111111111111111111" } ], "args": [] + }, + { + "name": "update_carrier_tree_v0", + "discriminator": [ + 94, + 154, + 218, + 108, + 32, + 199, + 29, + 227 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "carrier", + "writable": true + }, + { + "name": "tree_config", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "carrier.merkle_tree", + "account": "CarrierV0" + } + ], + "program": { + "kind": "account", + "path": "bubblegum_program" + } + } + }, + { + "name": "new_tree_authority", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "new_merkle_tree" + } + ], + "program": { + "kind": "account", + "path": "bubblegum_program" + } + } + }, + { + "name": "new_merkle_tree", + "writable": true + }, + { + "name": "log_wrapper", + "address": "noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV" + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + }, + { + "name": "bubblegum_program", + "address": "BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY" + }, + { + "name": "compression_program", + "address": "cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK" + } + ], + "args": [ + { + "name": "args", + "type": { + "defined": { + "name": "UpdateCarrierTreeArgsV0" + } + } + } + ] + }, + { + "name": "update_carrier_v0", + "discriminator": [ + 157, + 136, + 63, + 115, + 187, + 93, + 224, + 3 + ], + "accounts": [ + { + "name": "carrier", + "writable": true + }, + { + "name": "update_authority", + "writable": true, + "signer": true, + "relations": [ + "carrier" + ] + } + ], + "args": [ + { + "name": "args", + "type": { + "defined": { + "name": "UpdateCarrierArgsV0" + } + } + } + ] + }, + { + "name": "update_incentive_program_v0", + "discriminator": [ + 201, + 1, + 46, + 181, + 79, + 191, + 67, + 244 + ], + "accounts": [ + { + "name": "issuing_authority", + "signer": true, + "relations": [ + "carrier" + ] + }, + { + "name": "carrier", + "relations": [ + "incentive_escrow_program" + ] + }, + { + "name": "incentive_escrow_program", + "writable": true + } + ], + "args": [ + { + "name": "args", + "type": { + "defined": { + "name": "UpdateIncentiveProgramV0Args" + } + } + } + ] + } + ], + "accounts": [ + { + "name": "CarrierV0", + "discriminator": [ + 145, + 30, + 146, + 217, + 129, + 70, + 200, + 132 + ] + }, + { + "name": "DaoV0", + "discriminator": [ + 101, + 75, + 232, + 141, + 239, + 45, + 29, + 205 + ] + }, + { + "name": "IncentiveEscrowProgramV0", + "discriminator": [ + 240, + 137, + 6, + 222, + 144, + 157, + 104, + 21 + ] + }, + { + "name": "ProgramApprovalV0", + "discriminator": [ + 57, + 60, + 120, + 143, + 46, + 126, + 59, + 206 + ] + }, + { + "name": "SubDaoV0", + "discriminator": [ + 19, + 5, + 31, + 112, + 144, + 214, + 82, + 128 + ] + }, + { + "name": "TreeConfig", + "discriminator": [ + 122, + 245, + 175, + 248, + 171, + 34, + 0, + 207 + ] + } + ], + "errors": [ + { + "code": 6000, + "name": "CarrierNotApproved", + "msg": "The carrier is not approved" + }, + { + "code": 6001, + "name": "InvalidStringLength", + "msg": "Names, symbols and urls must be less than 32, 10, and 200 characters respectively" + }, + { + "code": 6002, + "name": "TreeNotFull", + "msg": "Cannot swap tree until it is close to full" + }, + { + "code": 6003, + "name": "InvalidIncentiveEscrowFundBps", + "msg": "Incentive escrow fund bps cannot be greater than 100%" } ], - "accounts": [ + "types": [ { "name": "CarrierV0", "type": { "kind": "struct", "fields": [ { - "name": "subDao", - "type": "publicKey" + "name": "sub_dao", + "type": "pubkey" }, { - "name": "updateAuthority", - "type": "publicKey" + "name": "update_authority", + "type": "pubkey" }, { - "name": "issuingAuthority", - "type": "publicKey" + "name": "issuing_authority", + "type": "pubkey" }, { "name": "collection", - "type": "publicKey" + "type": "pubkey" }, { "name": "escrow", - "type": "publicKey" + "type": "pubkey" }, { "name": "name", "type": "string" }, { - "name": "merkleTree", - "type": "publicKey" + "name": "merkle_tree", + "type": "pubkey" }, { "name": "approved", "type": "bool" }, { - "name": "collectionBumpSeed", + "name": "collection_bump_seed", "type": "u8" }, { - "name": "bumpSeed", + "name": "bump_seed", "type": "u8" }, { - "name": "hexboostAuthority", - "type": "publicKey" + "name": "hexboost_authority", + "type": "pubkey" }, { - "name": "incentiveEscrowFundBps", + "name": "incentive_escrow_fund_bps", "type": "u16" } ] } }, + { + "name": "DaoV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "hnt_mint", + "type": "pubkey" + }, + { + "name": "dc_mint", + "type": "pubkey" + }, + { + "name": "authority", + "type": "pubkey" + }, + { + "name": "registrar", + "type": "pubkey" + }, + { + "name": "hst_pool", + "type": "pubkey" + }, + { + "name": "net_emissions_cap", + "type": "u64" + }, + { + "name": "num_sub_daos", + "type": "u32" + }, + { + "name": "emission_schedule", + "type": { + "vec": { + "defined": { + "name": "EmissionScheduleItem" + } + } + } + }, + { + "name": "hst_emission_schedule", + "type": { + "vec": { + "defined": { + "name": "PercentItem" + } + } + } + }, + { + "name": "bump_seed", + "type": "u8" + }, + { + "name": "rewards_escrow", + "type": "pubkey" + }, + { + "name": "delegator_pool", + "type": "pubkey" + }, + { + "name": "delegator_rewards_percent", + "type": "u64" + }, + { + "name": "proposal_namespace", + "type": "pubkey" + }, + { + "name": "recent_proposals", + "type": { + "array": [ + { + "defined": { + "name": "RecentProposal" + } + }, + 4 + ] + } + } + ] + } + }, + { + "name": "DecompressibleState", + "type": { + "kind": "enum", + "variants": [ + { + "name": "Enabled" + }, + { + "name": "Disabled" + } + ] + } + }, + { + "name": "EmissionScheduleItem", + "type": { + "kind": "struct", + "fields": [ + { + "name": "start_unix_time", + "type": "i64" + }, + { + "name": "emissions_per_epoch", + "type": "u64" + } + ] + } + }, { "name": "IncentiveEscrowProgramV0", "type": { @@ -1246,14 +3058,14 @@ "fields": [ { "name": "carrier", - "type": "publicKey" + "type": "pubkey" }, { - "name": "startTs", + "name": "start_ts", "type": "i64" }, { - "name": "stopTs", + "name": "stop_ts", "type": "i64" }, { @@ -1261,7 +3073,7 @@ "type": "u32" }, { - "name": "bumpSeed", + "name": "bump_seed", "type": "u8" }, { @@ -1270,36 +3082,34 @@ } ] } - } - ], - "types": [ + }, { "name": "InitializeCarrierArgsV0", "type": { "kind": "struct", "fields": [ { - "name": "updateAuthority", - "type": "publicKey" + "name": "update_authority", + "type": "pubkey" }, { - "name": "issuingAuthority", - "type": "publicKey" + "name": "issuing_authority", + "type": "pubkey" }, { - "name": "hexboostAuthority", - "type": "publicKey" + "name": "hexboost_authority", + "type": "pubkey" }, { "name": "name", "type": "string" }, { - "name": "metadataUrl", + "name": "metadata_url", "type": "string" }, { - "name": "incentiveEscrowFundBps", + "name": "incentive_escrow_fund_bps", "type": "u16" } ] @@ -1315,17 +3125,17 @@ "type": "string" }, { - "name": "metadataUrl", + "name": "metadata_url", "type": { "option": "string" } }, { - "name": "startTs", + "name": "start_ts", "type": "i64" }, { - "name": "stopTs", + "name": "stop_ts", "type": "i64" }, { @@ -1341,7 +3151,7 @@ "kind": "struct", "fields": [ { - "name": "entityKey", + "name": "entity_key", "type": "bytes" }, { @@ -1349,7 +3159,7 @@ "type": "string" }, { - "name": "metadataUrl", + "name": "metadata_url", "type": { "option": "string" } @@ -1363,7 +3173,7 @@ "kind": "struct", "fields": [ { - "name": "metadataUrl", + "name": "metadata_url", "type": { "option": "string" } @@ -1372,17 +3182,210 @@ } }, { - "name": "UpdateCarrierTreeArgsV0", + "name": "IssueMappingRewardsNftArgsV0", "type": { "kind": "struct", "fields": [ { - "name": "maxDepth", - "type": "u32" + "name": "metadata_url", + "type": { + "option": "string" + } + } + ] + } + }, + { + "name": "IssueServiceRewardsNftArgsV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "metadata_url", + "type": { + "option": "string" + } + } + ] + } + }, + { + "name": "PercentItem", + "type": { + "kind": "struct", + "fields": [ + { + "name": "start_unix_time", + "type": "i64" }, { - "name": "maxBufferSize", - "type": "u32" + "name": "percent", + "type": "u8" + } + ] + } + }, + { + "name": "ProgramApprovalV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "dao", + "type": "pubkey" + }, + { + "name": "program_id", + "type": "pubkey" + }, + { + "name": "bump_seed", + "type": "u8" + } + ] + } + }, + { + "name": "RecentProposal", + "type": { + "kind": "struct", + "fields": [ + { + "name": "proposal", + "type": "pubkey" + }, + { + "name": "ts", + "type": "i64" + } + ] + } + }, + { + "name": "SubDaoV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "dao", + "type": "pubkey" + }, + { + "name": "dnt_mint", + "type": "pubkey" + }, + { + "name": "treasury", + "type": "pubkey" + }, + { + "name": "rewards_escrow", + "type": "pubkey" + }, + { + "name": "delegator_pool", + "docs": [ + "DEPRECATED: use dao.delegator_pool instead. But some people still need to claim old DNT rewards" + ], + "type": "pubkey" + }, + { + "name": "vehnt_delegated", + "type": "u128" + }, + { + "name": "vehnt_last_calculated_ts", + "type": "i64" + }, + { + "name": "vehnt_fall_rate", + "type": "u128" + }, + { + "name": "authority", + "type": "pubkey" + }, + { + "name": "_deprecated_active_device_aggregator", + "type": "pubkey" + }, + { + "name": "dc_burn_authority", + "type": "pubkey" + }, + { + "name": "onboarding_dc_fee", + "type": "u64" + }, + { + "name": "emission_schedule", + "type": { + "vec": { + "defined": { + "name": "EmissionScheduleItem" + } + } + } + }, + { + "name": "bump_seed", + "type": "u8" + }, + { + "name": "registrar", + "type": "pubkey" + }, + { + "name": "_deprecated_delegator_rewards_percent", + "type": "u64" + }, + { + "name": "onboarding_data_only_dc_fee", + "type": "u64" + }, + { + "name": "dc_onboarding_fees_paid", + "type": "u64" + }, + { + "name": "active_device_authority", + "type": "pubkey" + } + ] + } + }, + { + "name": "TreeConfig", + "type": { + "kind": "struct", + "fields": [ + { + "name": "tree_creator", + "type": "pubkey" + }, + { + "name": "tree_delegate", + "type": "pubkey" + }, + { + "name": "total_mint_capacity", + "type": "u64" + }, + { + "name": "num_minted", + "type": "u64" + }, + { + "name": "is_public", + "type": "bool" + }, + { + "name": "is_decompressible", + "type": { + "defined": { + "name": "DecompressibleState" + } + } } ] } @@ -1393,25 +3396,25 @@ "kind": "struct", "fields": [ { - "name": "updateAuthority", + "name": "update_authority", "type": { - "option": "publicKey" + "option": "pubkey" } }, { - "name": "issuingAuthority", + "name": "issuing_authority", "type": { - "option": "publicKey" + "option": "pubkey" } }, { - "name": "hexboostAuthority", + "name": "hexboost_authority", "type": { - "option": "publicKey" + "option": "pubkey" } }, { - "name": "incentiveEscrowFundBps", + "name": "incentive_escrow_fund_bps", "type": { "option": "u16" } @@ -1419,19 +3422,35 @@ ] } }, + { + "name": "UpdateCarrierTreeArgsV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "max_depth", + "type": "u32" + }, + { + "name": "max_buffer_size", + "type": "u32" + } + ] + } + }, { "name": "UpdateIncentiveProgramV0Args", "type": { "kind": "struct", "fields": [ { - "name": "startTs", + "name": "start_ts", "type": { "option": "i64" } }, { - "name": "stopTs", + "name": "stop_ts", "type": { "option": "i64" } @@ -1445,27 +3464,5 @@ ] } } - ], - "errors": [ - { - "code": 6000, - "name": "CarrierNotApproved", - "msg": "The carrier is not approved" - }, - { - "code": 6001, - "name": "InvalidStringLength", - "msg": "Names, symbols and urls must be less than 32, 10, and 200 characters respectively" - }, - { - "code": 6002, - "name": "TreeNotFull", - "msg": "Cannot swap tree until it is close to full" - }, - { - "code": 6003, - "name": "InvalidIncentiveEscrowFundBps", - "msg": "Incentive escrow fund bps cannot be greater than 100%" - } ] } \ No newline at end of file diff --git a/programs/mobile-entity-manager/Cargo.toml b/programs/mobile-entity-manager/Cargo.toml index 8ca720f..18362bd 100644 --- a/programs/mobile-entity-manager/Cargo.toml +++ b/programs/mobile-entity-manager/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mobile-entity-manager" -version = "0.2.1" +version = "0.2.5" edition = "2021" authors = ["Louis Thiery "] license = "Apache-2.0"