From ef686c1b0ba0ab2bd0e0377e0bf2a44630938da2 Mon Sep 17 00:00:00 2001 From: Bryan Date: Tue, 8 Oct 2024 10:10:34 -0500 Subject: [PATCH] Chore/fix idl for do hotspots (#53) * idl-update: program-helium-entity-manager-0.2.11 * anchor lang bump --- idl/helium_entity_manager.json | 528 +++++++++++++++++++++- programs/helium-entity-manager/Cargo.toml | 2 +- 2 files changed, 527 insertions(+), 3 deletions(-) diff --git a/idl/helium_entity_manager.json b/idl/helium_entity_manager.json index c8a6d5b..da39a5a 100644 --- a/idl/helium_entity_manager.json +++ b/idl/helium_entity_manager.json @@ -1,5 +1,5 @@ { - "version": "0.2.4", + "version": "0.2.11", "name": "helium_entity_manager", "instructions": [ { @@ -2623,7 +2623,7 @@ }, { "name": "dataOnlyConfig", - "isMut": true, + "isMut": false, "isSigner": false, "pda": { "seeds": [ @@ -2996,6 +2996,312 @@ } ], "args": [] + }, + { + "name": "tempStandardizeEntity", + "accounts": [ + { + "name": "keyToAsset", + "isMut": false, + "isSigner": false + }, + { + "name": "merkleTree", + "isMut": true, + "isSigner": false + }, + { + "name": "maker", + "isMut": true, + "isSigner": false, + "isOptional": true + }, + { + "name": "dataOnlyConfig", + "isMut": false, + "isSigner": false + }, + { + "name": "treeAuthority", + "isMut": false, + "isSigner": false, + "pda": { + "seeds": [ + { + "kind": "account", + "type": "publicKey", + "path": "merkle_tree" + } + ], + "programId": { + "kind": "account", + "type": "publicKey", + "path": "bubblegum_program" + } + } + }, + { + "name": "authority", + "isMut": false, + "isSigner": true + }, + { + "name": "collection", + "isMut": false, + "isSigner": false + }, + { + "name": "collectionMetadata", + "isMut": true, + "isSigner": false, + "pda": { + "seeds": [ + { + "kind": "const", + "type": "string", + "value": "metadata" + }, + { + "kind": "account", + "type": "publicKey", + "path": "token_metadata_program" + }, + { + "kind": "account", + "type": "publicKey", + "account": "Mint", + "path": "collection" + } + ], + "programId": { + "kind": "account", + "type": "publicKey", + "path": "token_metadata_program" + } + } + }, + { + "name": "leafOwner", + "isMut": false, + "isSigner": false + }, + { + "name": "payer", + "isMut": false, + "isSigner": true + }, + { + "name": "logWrapper", + "isMut": false, + "isSigner": false + }, + { + "name": "compressionProgram", + "isMut": false, + "isSigner": false + }, + { + "name": "bubblegumProgram", + "isMut": false, + "isSigner": false + }, + { + "name": "tokenMetadataProgram", + "isMut": false, + "isSigner": false + }, + { + "name": "systemProgram", + "isMut": false, + "isSigner": false + } + ], + "args": [ + { + "name": "args", + "type": { + "defined": "TempStandardizeEntityArgs" + } + } + ] + }, + { + "name": "onboardDataOnlyMobileHotspotV0", + "accounts": [ + { + "name": "payer", + "isMut": true, + "isSigner": true + }, + { + "name": "dcFeePayer", + "isMut": true, + "isSigner": true + }, + { + "name": "mobileInfo", + "isMut": true, + "isSigner": false + }, + { + "name": "hotspotOwner", + "isMut": true, + "isSigner": true + }, + { + "name": "merkleTree", + "isMut": false, + "isSigner": false + }, + { + "name": "dcBurner", + "isMut": true, + "isSigner": false + }, + { + "name": "dntBurner", + "isMut": true, + "isSigner": false + }, + { + "name": "rewardableEntityConfig", + "isMut": false, + "isSigner": false, + "relations": [ + "sub_dao" + ] + }, + { + "name": "dataOnlyConfig", + "isMut": false, + "isSigner": false, + "pda": { + "seeds": [ + { + "kind": "const", + "type": "string", + "value": "data_only_config" + }, + { + "kind": "account", + "type": "publicKey", + "account": "DaoV0", + "path": "dao" + } + ] + }, + "relations": [ + "merkle_tree", + "dao" + ] + }, + { + "name": "dao", + "isMut": false, + "isSigner": false, + "relations": [ + "dc_mint" + ] + }, + { + "name": "keyToAsset", + "isMut": false, + "isSigner": false, + "relations": [ + "dao" + ] + }, + { + "name": "subDao", + "isMut": true, + "isSigner": false, + "relations": [ + "dao", + "dnt_mint" + ] + }, + { + "name": "dcMint", + "isMut": true, + "isSigner": false + }, + { + "name": "dntMint", + "isMut": true, + "isSigner": false + }, + { + "name": "dntPrice", + "isMut": false, + "isSigner": false + }, + { + "name": "dc", + "isMut": false, + "isSigner": false, + "pda": { + "seeds": [ + { + "kind": "const", + "type": "string", + "value": "dc" + }, + { + "kind": "account", + "type": "publicKey", + "account": "Mint", + "path": "dc_mint" + } + ], + "programId": { + "kind": "account", + "type": "publicKey", + "path": "data_credits_program" + } + }, + "relations": [ + "dc_mint" + ] + }, + { + "name": "compressionProgram", + "isMut": false, + "isSigner": false + }, + { + "name": "dataCreditsProgram", + "isMut": false, + "isSigner": false + }, + { + "name": "tokenProgram", + "isMut": false, + "isSigner": false + }, + { + "name": "associatedTokenProgram", + "isMut": false, + "isSigner": false + }, + { + "name": "systemProgram", + "isMut": false, + "isSigner": false + }, + { + "name": "heliumSubDaosProgram", + "isMut": false, + "isSigner": false + } + ], + "args": [ + { + "name": "args", + "type": { + "defined": "OnboardDataOnlyMobileHotspotArgsV0" + } + } + ] } ], "accounts": [ @@ -3281,6 +3587,14 @@ "type": { "defined": "MobileDeviceTypeV0" } + }, + { + "name": "deploymentInfo", + "type": { + "option": { + "defined": "MobileDeploymentInfoV0" + } + } } ] } @@ -3500,6 +3814,51 @@ ] } }, + { + "name": "OnboardDataOnlyMobileHotspotArgsV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "dataHash", + "type": { + "array": [ + "u8", + 32 + ] + } + }, + { + "name": "creatorHash", + "type": { + "array": [ + "u8", + 32 + ] + } + }, + { + "name": "root", + "type": { + "array": [ + "u8", + 32 + ] + } + }, + { + "name": "index", + "type": "u32" + }, + { + "name": "location", + "type": { + "option": "u64" + } + } + ] + } + }, { "name": "OnboardIotHotspotArgsV0", "type": { @@ -3604,6 +3963,14 @@ "type": { "defined": "MobileDeviceTypeV0" } + }, + { + "name": "deploymentInfo", + "type": { + "option": { + "defined": "MobileDeploymentInfoV0" + } + } } ] } @@ -3652,6 +4019,90 @@ ] } }, + { + "name": "MetadataArgs", + "type": { + "kind": "struct", + "fields": [ + { + "name": "name", + "docs": [ + "The name of the asset" + ], + "type": "string" + }, + { + "name": "symbol", + "docs": [ + "The symbol for the asset" + ], + "type": "string" + }, + { + "name": "uri", + "docs": [ + "URI pointing to JSON representing the asset" + ], + "type": "string" + }, + { + "name": "creators", + "type": { + "vec": { + "defined": "Creator" + } + } + } + ] + } + }, + { + "name": "Creator", + "type": { + "kind": "struct", + "fields": [ + { + "name": "address", + "type": "publicKey" + }, + { + "name": "verified", + "type": "bool" + }, + { + "name": "share", + "type": "u8" + } + ] + } + }, + { + "name": "TempStandardizeEntityArgs", + "type": { + "kind": "struct", + "fields": [ + { + "name": "root", + "type": { + "array": [ + "u8", + 32 + ] + } + }, + { + "name": "index", + "type": "u32" + }, + { + "name": "currentMetadata", + "type": { + "defined": "MetadataArgs" + } + } + ] + } + }, { "name": "UpdateIotInfoArgsV0", "type": { @@ -3786,6 +4237,14 @@ { "name": "index", "type": "u32" + }, + { + "name": "deploymentInfo", + "type": { + "option": { + "defined": "MobileDeploymentInfoV0" + } + } } ] } @@ -3875,6 +4334,22 @@ ] } }, + { + "name": "RadioInfoV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "radioId", + "type": "string" + }, + { + "name": "elevation", + "type": "i32" + } + ] + } + }, { "name": "MobileDeviceTypeV0", "type": { @@ -3888,6 +4363,9 @@ }, { "name": "WifiOutdoor" + }, + { + "name": "WifiDataOnly" } ] } @@ -3973,6 +4451,52 @@ } ] } + }, + { + "name": "MobileDeploymentInfoV0", + "type": { + "kind": "enum", + "variants": [ + { + "name": "WifiInfoV0", + "fields": [ + { + "name": "antenna", + "type": "u32" + }, + { + "name": "elevation", + "type": "i32" + }, + { + "name": "azimuth", + "type": "u16" + }, + { + "name": "mechanicalDownTilt", + "type": "u16" + }, + { + "name": "electricalDownTilt", + "type": "u16" + } + ] + }, + { + "name": "CbrsInfoV0", + "fields": [ + { + "name": "radioInfos", + "type": { + "vec": { + "defined": "RadioInfoV0" + } + } + } + ] + } + ] + } } ], "errors": [ diff --git a/programs/helium-entity-manager/Cargo.toml b/programs/helium-entity-manager/Cargo.toml index bd4913a..00421f9 100644 --- a/programs/helium-entity-manager/Cargo.toml +++ b/programs/helium-entity-manager/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "helium-entity-manager" -version = "0.3.1" +version = "0.2.11" edition = "2021" authors = ["Louis Thiery "] license = "Apache-2.0"