From 7f24a124cbea02262c1c45aa7e3577dfc5a233c9 Mon Sep 17 00:00:00 2001 From: Louis Thiery Date: Tue, 9 Jan 2024 11:29:19 -0800 Subject: [PATCH] regenerate IDLs --- README.md | 10 + idl/circuit_breaker.json | 2 +- idl/data_credits.json | 2 +- idl/fanout.json | 7 +- idl/helium_entity_manager.json | 608 +++++++++++++++++++-------------- idl/helium_sub_daos.json | 432 ++--------------------- idl/lazy_distributor.json | 2 +- idl/lazy_transactions.json | 45 ++- idl/mobile_entity_manager.json | 2 +- idl/no_emit.json | 89 +++++ idl/price_oracle.json | 2 +- idl/rewards_oracle.json | 2 +- idl/treasury_management.json | 2 +- idl/voter_stake_registry.json | 71 +++- 14 files changed, 587 insertions(+), 689 deletions(-) create mode 100644 idl/no_emit.json diff --git a/README.md b/README.md index 6699196..4b087bb 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,16 @@ The files in the `idl` directory are output from build `helium-program-library`. With `anchor-cli 0.26`, run `anchor build` in the `helium-program-library`. The output from `target/idl` may be copied over to the `idl` directory here. +## Installing anchor-cli 0.26 + +``` +sh -c "$(curl -sSfL https://release.solana.com/v1.17.15/install)" +ln -s ~/.local/share/solana/install/active_release/bin/cargo-build-bpf ~/.cargo/bin/ +ln -s ~/.local/share/solana/install/active_release/bin/cargo-build-sbf ~/.cargo/bin/ +rustup toolchain install 1.70 +cargo +1.70-x86_64-unknown-linux-gnu install --bin anchor --git https://github.com/coral-xyz/anchor --tag v0.26.0 anchor-cli --force +``` + ## Other notes The crates under `programs` exist to generate the CPI crates. Do not add code there! diff --git a/idl/circuit_breaker.json b/idl/circuit_breaker.json index ba6b53f..9ab4c74 100644 --- a/idl/circuit_breaker.json +++ b/idl/circuit_breaker.json @@ -1,5 +1,5 @@ { - "version": "0.0.1", + "version": "0.1.0", "name": "circuit_breaker", "instructions": [ { diff --git a/idl/data_credits.json b/idl/data_credits.json index 2997d55..63bcdce 100644 --- a/idl/data_credits.json +++ b/idl/data_credits.json @@ -1,5 +1,5 @@ { - "version": "0.1.2", + "version": "0.2.0", "name": "data_credits", "instructions": [ { diff --git a/idl/fanout.json b/idl/fanout.json index e3c716c..338c4be 100644 --- a/idl/fanout.json +++ b/idl/fanout.json @@ -1,5 +1,5 @@ { - "version": "0.0.1", + "version": "0.1.0", "name": "fanout", "instructions": [ { @@ -408,11 +408,6 @@ "name": "tokenMetadataProgram", "isMut": false, "isSigner": false - }, - { - "name": "rent", - "isMut": false, - "isSigner": false } ], "args": [ diff --git a/idl/helium_entity_manager.json b/idl/helium_entity_manager.json index b949327..77cead1 100644 --- a/idl/helium_entity_manager.json +++ b/idl/helium_entity_manager.json @@ -1,5 +1,5 @@ { - "version": "0.1.4", + "version": "0.2.3", "name": "helium_entity_manager", "instructions": [ { @@ -85,6 +85,19 @@ { "name": "subDao", "isMut": false, + "isSigner": false, + "relations": [ + "dnt_mint" + ] + }, + { + "name": "dntMint", + "isMut": false, + "isSigner": false + }, + { + "name": "escrow", + "isMut": true, "isSigner": false }, { @@ -127,6 +140,16 @@ "name": "systemProgram", "isMut": false, "isSigner": false + }, + { + "name": "tokenProgram", + "isMut": false, + "isSigner": false + }, + { + "name": "associatedTokenProgram", + "isMut": false, + "isSigner": false } ], "args": [] @@ -466,11 +489,6 @@ "name": "tokenProgram", "isMut": false, "isSigner": false - }, - { - "name": "rent", - "isMut": false, - "isSigner": false } ], "args": [ @@ -903,6 +921,176 @@ } ] }, + { + "name": "issueNotEmittedEntityV0", + "accounts": [ + { + "name": "payer", + "isMut": true, + "isSigner": true + }, + { + "name": "authority", + "isMut": false, + "isSigner": true + }, + { + "name": "dao", + "isMut": false, + "isSigner": false + }, + { + "name": "entityCreator", + "isMut": false, + "isSigner": false, + "pda": { + "seeds": [ + { + "kind": "const", + "type": "string", + "value": "entity_creator" + }, + { + "kind": "account", + "type": "publicKey", + "account": "DaoV0", + "path": "dao" + } + ] + } + }, + { + "name": "keyToAsset", + "isMut": true, + "isSigner": false + }, + { + "name": "recipient", + "isMut": true, + "isSigner": false, + "pda": { + "seeds": [ + { + "kind": "const", + "type": "string", + "value": "not_emitted" + } + ], + "programId": { + "kind": "account", + "type": "publicKey", + "path": "no_emit_program" + } + } + }, + { + "name": "recipientAccount", + "isMut": true, + "isSigner": false + }, + { + "name": "mint", + "isMut": true, + "isSigner": false + }, + { + "name": "metadata", + "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": "mint" + } + ], + "programId": { + "kind": "account", + "type": "publicKey", + "path": "token_metadata_program" + } + } + }, + { + "name": "masterEdition", + "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": "mint" + }, + { + "kind": "const", + "type": "string", + "value": "edition" + } + ], + "programId": { + "kind": "account", + "type": "publicKey", + "path": "token_metadata_program" + } + } + }, + { + "name": "tokenMetadataProgram", + "isMut": false, + "isSigner": false + }, + { + "name": "tokenProgram", + "isMut": false, + "isSigner": false + }, + { + "name": "associatedTokenProgram", + "isMut": false, + "isSigner": false + }, + { + "name": "systemProgram", + "isMut": false, + "isSigner": false + }, + { + "name": "instructions", + "isMut": false, + "isSigner": false + }, + { + "name": "noEmitProgram", + "isMut": false, + "isSigner": false + } + ], + "args": [] + }, { "name": "issueIotOperationsFundV0", "accounts": [ @@ -1048,11 +1236,6 @@ "name": "systemProgram", "isMut": false, "isSigner": false - }, - { - "name": "rent", - "isMut": false, - "isSigner": false } ], "args": [] @@ -1278,6 +1461,11 @@ "isMut": true, "isSigner": false }, + { + "name": "dntBurner", + "isMut": true, + "isSigner": false + }, { "name": "rewardableEntityConfig", "isMut": false, @@ -1347,7 +1535,8 @@ "isMut": true, "isSigner": false, "relations": [ - "dao" + "dao", + "dnt_mint" ] }, { @@ -1355,6 +1544,16 @@ "isMut": true, "isSigner": false }, + { + "name": "dntMint", + "isMut": true, + "isSigner": false + }, + { + "name": "dntPrice", + "isMut": false, + "isSigner": false + }, { "name": "dc", "isMut": false, @@ -1426,6 +1625,11 @@ { "name": "updateRewardableEntityConfigV0", "accounts": [ + { + "name": "payer", + "isMut": true, + "isSigner": true + }, { "name": "authority", "isMut": false, @@ -1438,6 +1642,11 @@ "relations": [ "authority" ] + }, + { + "name": "systemProgram", + "isMut": false, + "isSigner": false } ], "args": [ @@ -2119,11 +2328,6 @@ "name": "associatedTokenProgram", "isMut": false, "isSigner": false - }, - { - "name": "rent", - "isMut": false, - "isSigner": false } ], "args": [ @@ -2638,35 +2842,6 @@ ], "args": [] }, - { - "name": "tempRepairIotOperationsFund", - "accounts": [ - { - "name": "payer", - "isMut": true, - "isSigner": true - }, - { - "name": "authority", - "isMut": false, - "isSigner": true - }, - { - "name": "dao", - "isMut": false, - "isSigner": false, - "relations": [ - "authority" - ] - }, - { - "name": "keyToAsset", - "isMut": true, - "isSigner": false - } - ], - "args": [] - }, { "name": "setEntityActiveV0", "accounts": [ @@ -2712,107 +2887,11 @@ ] }, { - "name": "tempBackfillOnboardingFeesV0", + "name": "tempPayMobileOnboardingFeeV0", "accounts": [ { - "name": "activeDeviceAuthority", - "isMut": false, - "isSigner": true - }, - { - "name": "rewardableEntityConfig", - "isMut": false, - "isSigner": false, - "relations": [ - "sub_dao" - ] - }, - { - "name": "subDao", - "isMut": true, - "isSigner": false, - "relations": [ - "active_device_authority", - "dao" - ] - }, - { - "name": "dao", - "isMut": false, - "isSigner": false - }, - { - "name": "keyToAsset", - "isMut": false, - "isSigner": false, - "relations": [ - "dao" - ] - }, - { - "name": "iotInfo", - "isMut": true, - "isSigner": false - } - ], - "args": [] - }, - { - "name": "tempBackfillMobileInfoDataV0", - "accounts": [ - { - "name": "authority", - "isMut": false, - "isSigner": true - }, - { - "name": "rewardableEntityConfig", - "isMut": false, - "isSigner": false, - "relations": [ - "sub_dao" - ] - }, - { - "name": "subDao", - "isMut": true, - "isSigner": false, - "relations": [ - "authority" - ] - }, - { - "name": "dao", - "isMut": false, - "isSigner": false - }, - { - "name": "keyToAsset", - "isMut": false, - "isSigner": false, - "relations": [ - "dao" - ] - }, - { - "name": "mobileInfo", - "isMut": true, - "isSigner": false - }, - { - "name": "heliumSubDaosProgram", - "isMut": false, - "isSigner": false - } - ], - "args": [] - }, - { - "name": "tempPayMobileOnboardingFeeV0", - "accounts": [ - { - "name": "dcFeePayer", - "isMut": true, + "name": "dcFeePayer", + "isMut": true, "isSigner": true }, { @@ -2917,97 +2996,6 @@ } ], "args": [] - }, - { - "name": "tempUpdateIotOperationsFundMetadata", - "accounts": [ - { - "name": "payer", - "isMut": true, - "isSigner": true - }, - { - "name": "authority", - "isMut": false, - "isSigner": true - }, - { - "name": "dao", - "isMut": false, - "isSigner": false, - "relations": [ - "authority" - ] - }, - { - "name": "entityCreator", - "isMut": false, - "isSigner": false, - "pda": { - "seeds": [ - { - "kind": "const", - "type": "string", - "value": "entity_creator" - }, - { - "kind": "account", - "type": "publicKey", - "account": "DaoV0", - "path": "dao" - } - ] - } - }, - { - "name": "mint", - "isMut": false, - "isSigner": false - }, - { - "name": "metadata", - "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": "mint" - } - ], - "programId": { - "kind": "account", - "type": "publicKey", - "path": "token_metadata_program" - } - } - }, - { - "name": "tokenMetadataProgram", - "isMut": false, - "isSigner": false - } - ], - "args": [ - { - "name": "args", - "type": { - "defined": "TempUpdateIotOperationsFundMetadataArgs" - } - } - ] } ], "accounts": [ @@ -3037,6 +3025,10 @@ { "name": "bumpSeed", "type": "u8" + }, + { + "name": "stakingRequirement", + "type": "u64" } ] } @@ -3283,6 +3275,12 @@ { "name": "dcOnboardingFeePaid", "type": "u64" + }, + { + "name": "deviceType", + "type": { + "defined": "MobileDeviceTypeV0" + } } ] } @@ -3375,6 +3373,10 @@ "type": { "defined": "ConfigSettingsV0" } + }, + { + "name": "stakingRequirement", + "type": "u64" } ] } @@ -3596,6 +3598,12 @@ "type": { "option": "u64" } + }, + { + "name": "deviceType", + "type": { + "defined": "MobileDeviceTypeV0" + } } ] } @@ -3644,18 +3652,6 @@ ] } }, - { - "name": "TempUpdateIotOperationsFundMetadataArgs", - "type": { - "kind": "struct", - "fields": [ - { - "name": "metadataUrl", - "type": "string" - } - ] - } - }, { "name": "UpdateIotInfoArgsV0", "type": { @@ -3812,6 +3808,86 @@ "defined": "ConfigSettingsV0" } } + }, + { + "name": "stakingRequirement", + "type": { + "option": "u64" + } + } + ] + } + }, + { + "name": "DeviceFeesV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "deviceType", + "type": { + "defined": "MobileDeviceTypeV0" + } + }, + { + "name": "dcOnboardingFee", + "type": "u64" + }, + { + "name": "locationStakingFee", + "type": "u64" + } + ] + } + }, + { + "name": "DeviceFeesV1", + "type": { + "kind": "struct", + "fields": [ + { + "name": "deviceType", + "type": { + "defined": "MobileDeviceTypeV0" + } + }, + { + "name": "dcOnboardingFee", + "type": "u64" + }, + { + "name": "locationStakingFee", + "type": "u64" + }, + { + "name": "mobileOnboardingFeeUsd", + "type": "u64" + }, + { + "name": "reserved", + "type": { + "array": [ + "u64", + 8 + ] + } + } + ] + } + }, + { + "name": "MobileDeviceTypeV0", + "type": { + "kind": "enum", + "variants": [ + { + "name": "Cbrs" + }, + { + "name": "WifiIndoor" + }, + { + "name": "WifiOutdoor" } ] } @@ -3854,6 +3930,32 @@ "type": "u64" } ] + }, + { + "name": "MobileConfigV1", + "fields": [ + { + "name": "fees_by_device", + "type": { + "vec": { + "defined": "DeviceFeesV0" + } + } + } + ] + }, + { + "name": "MobileConfigV2", + "fields": [ + { + "name": "fees_by_device", + "type": { + "vec": { + "defined": "DeviceFeesV1" + } + } + } + ] } ] } @@ -3943,6 +4045,16 @@ "code": 6013, "name": "InvalidSymbol", "msg": "Invalid symbol, must be 'IOT' or 'MOBILE'" + }, + { + "code": 6014, + "name": "InvalidDeviceType", + "msg": "Mobile device type not found" + }, + { + "code": 6015, + "name": "NoOraclePrice", + "msg": "No mobile oracle price" } ] } \ No newline at end of file diff --git a/idl/helium_sub_daos.json b/idl/helium_sub_daos.json index 171482b..f0c7869 100644 --- a/idl/helium_sub_daos.json +++ b/idl/helium_sub_daos.json @@ -1,5 +1,5 @@ { - "version": "0.0.15", + "version": "0.1.3", "name": "helium_sub_daos", "instructions": [ { @@ -94,41 +94,6 @@ "name": "circuitBreakerProgram", "isMut": false, "isSigner": false - }, - { - "name": "thread", - "isMut": true, - "isSigner": false, - "pda": { - "seeds": [ - { - "kind": "const", - "type": "string", - "value": "thread" - }, - { - "kind": "account", - "type": "publicKey", - "account": "DaoV0", - "path": "dao" - }, - { - "kind": "const", - "type": "string", - "value": "issue_hst" - } - ], - "programId": { - "kind": "account", - "type": "publicKey", - "path": "clockwork" - } - } - }, - { - "name": "clockwork", - "isMut": false, - "isSigner": false } ], "args": [ @@ -331,11 +296,6 @@ ] } }, - { - "name": "activeDeviceAggregator", - "isMut": false, - "isSigner": false - }, { "name": "systemProgram", "isMut": false, @@ -615,23 +575,9 @@ "isMut": true, "isSigner": false, "relations": [ - "dao", - "active_device_aggregator" - ] - }, - { - "name": "activeDeviceAggregator", - "isMut": false, - "isSigner": false, - "relations": [ - "history_buffer" + "dao" ] }, - { - "name": "historyBuffer", - "isMut": false, - "isSigner": false - }, { "name": "prevDaoEpochInfo", "isMut": false, @@ -897,10 +843,7 @@ "defined": "IssueRewardsArgsV0" } } - ], - "returns": { - "defined": "ThreadResponse" - } + ] }, { "name": "delegateV0", @@ -1606,10 +1549,7 @@ "defined": "IssueHstPoolArgsV0" } } - ], - "returns": { - "defined": "ThreadResponse" - } + ] }, { "name": "resetLockupV0", @@ -1706,344 +1646,6 @@ } ] }, - { - "name": "calculateKickoffV0", - "accounts": [ - { - "name": "dao", - "isMut": false, - "isSigner": false, - "relations": [ - "hnt_mint" - ] - }, - { - "name": "subDao", - "isMut": false, - "isSigner": false, - "relations": [ - "dao", - "active_device_aggregator" - ] - }, - { - "name": "hntMint", - "isMut": false, - "isSigner": false - }, - { - "name": "activeDeviceAggregator", - "isMut": false, - "isSigner": false - }, - { - "name": "systemProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "circuitBreakerProgram", - "isMut": false, - "isSigner": false - } - ], - "args": [], - "returns": { - "defined": "ThreadResponse" - } - }, - { - "name": "issueRewardsKickoffV0", - "accounts": [ - { - "name": "dao", - "isMut": false, - "isSigner": false, - "relations": [ - "hnt_mint" - ] - }, - { - "name": "subDao", - "isMut": false, - "isSigner": false, - "relations": [ - "dao", - "dnt_mint" - ] - }, - { - "name": "hntMint", - "isMut": false, - "isSigner": false - }, - { - "name": "dntMint", - "isMut": false, - "isSigner": false - }, - { - "name": "systemProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "circuitBreakerProgram", - "isMut": false, - "isSigner": false - } - ], - "args": [], - "returns": { - "defined": "ThreadResponse" - } - }, - { - "name": "issueHstKickoffV0", - "accounts": [ - { - "name": "dao", - "isMut": false, - "isSigner": false, - "relations": [ - "hnt_mint" - ] - }, - { - "name": "hntMint", - "isMut": false, - "isSigner": false - }, - { - "name": "systemProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "circuitBreakerProgram", - "isMut": false, - "isSigner": false - } - ], - "args": [], - "returns": { - "defined": "ThreadResponse" - } - }, - { - "name": "resetDaoThreadV0", - "accounts": [ - { - "name": "authority", - "isMut": false, - "isSigner": true - }, - { - "name": "threadPayer", - "isMut": true, - "isSigner": true - }, - { - "name": "dao", - "isMut": true, - "isSigner": false, - "pda": { - "seeds": [ - { - "kind": "const", - "type": "string", - "value": "dao" - }, - { - "kind": "account", - "type": "publicKey", - "account": "DaoV0", - "path": "dao.hnt_mint" - } - ] - }, - "relations": [ - "authority" - ] - }, - { - "name": "thread", - "isMut": true, - "isSigner": false, - "pda": { - "seeds": [ - { - "kind": "const", - "type": "string", - "value": "thread" - }, - { - "kind": "account", - "type": "publicKey", - "account": "DaoV0", - "path": "dao" - }, - { - "kind": "const", - "type": "string", - "value": "issue_hst" - } - ], - "programId": { - "kind": "account", - "type": "publicKey", - "path": "clockwork" - } - } - }, - { - "name": "clockwork", - "isMut": false, - "isSigner": false - }, - { - "name": "systemProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "circuitBreakerProgram", - "isMut": false, - "isSigner": false - } - ], - "args": [] - }, - { - "name": "resetSubDaoThreadV0", - "accounts": [ - { - "name": "authority", - "isMut": true, - "isSigner": true - }, - { - "name": "threadPayer", - "isMut": true, - "isSigner": true - }, - { - "name": "dao", - "isMut": false, - "isSigner": false - }, - { - "name": "subDao", - "isMut": true, - "isSigner": false, - "relations": [ - "authority", - "dao" - ] - }, - { - "name": "calculateThread", - "isMut": true, - "isSigner": false, - "pda": { - "seeds": [ - { - "kind": "const", - "type": "string", - "value": "thread" - }, - { - "kind": "account", - "type": "publicKey", - "account": "SubDaoV0", - "path": "sub_dao" - }, - { - "kind": "const", - "type": "string", - "value": "calculate" - } - ], - "programId": { - "kind": "account", - "type": "publicKey", - "path": "clockwork" - } - } - }, - { - "name": "issueThread", - "isMut": true, - "isSigner": false, - "pda": { - "seeds": [ - { - "kind": "const", - "type": "string", - "value": "thread" - }, - { - "kind": "account", - "type": "publicKey", - "account": "SubDaoV0", - "path": "sub_dao" - }, - { - "kind": "const", - "type": "string", - "value": "issue" - } - ], - "programId": { - "kind": "account", - "type": "publicKey", - "path": "clockwork" - } - } - }, - { - "name": "clockwork", - "isMut": false, - "isSigner": false - }, - { - "name": "systemProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "circuitBreakerProgram", - "isMut": false, - "isSigner": false - } - ], - "args": [] - }, { "name": "trackDcOnboardingFeesV0", "accounts": [ @@ -2238,6 +1840,10 @@ { "name": "bumpSeed", "type": "u8" + }, + { + "name": "claimedEpochsBitmap", + "type": "u128" } ] } @@ -2314,6 +1920,10 @@ { "name": "initialized", "type": "bool" + }, + { + "name": "dcOnboardingFeesPaid", + "type": "u64" } ] } @@ -2360,7 +1970,7 @@ "type": "publicKey" }, { - "name": "activeDeviceAggregator", + "name": "deprecatedActiveDeviceAggregator", "type": "publicKey" }, { @@ -2712,12 +2322,6 @@ "option": "publicKey" } }, - { - "name": "activeDeviceAggregator", - "type": { - "option": "publicKey" - } - }, { "name": "registrar", "type": { @@ -2927,6 +2531,16 @@ "code": 6014, "name": "PositionChangeWhileDelegated", "msg": "Cannot change a position while it is delegated" + }, + { + "code": 6015, + "name": "EpochNotClosed", + "msg": "This epoch was not closed, cannot claim rewards." + }, + { + "code": 6016, + "name": "NoDelegateEndingPosition", + "msg": "Cannot delegate on a position ending this epoch" } ] } \ No newline at end of file diff --git a/idl/lazy_distributor.json b/idl/lazy_distributor.json index 0f7f837..45e2e01 100644 --- a/idl/lazy_distributor.json +++ b/idl/lazy_distributor.json @@ -1,5 +1,5 @@ { - "version": "0.0.2", + "version": "0.1.0", "name": "lazy_distributor", "instructions": [ { diff --git a/idl/lazy_transactions.json b/idl/lazy_transactions.json index 0b9add9..b3c98bf 100644 --- a/idl/lazy_transactions.json +++ b/idl/lazy_transactions.json @@ -1,5 +1,5 @@ { - "version": "0.0.1", + "version": "0.2.0", "name": "lazy_transactions", "instructions": [ { @@ -36,6 +36,11 @@ "isMut": true, "isSigner": false }, + { + "name": "executedTransactions", + "isMut": true, + "isSigner": false + }, { "name": "systemProgram", "isMut": false, @@ -61,10 +66,11 @@ }, { "name": "lazyTransactions", - "isMut": false, + "isMut": true, "isSigner": false, "relations": [ - "canopy" + "canopy", + "executed_transactions" ] }, { @@ -94,7 +100,7 @@ }, { "name": "block", - "isMut": true, + "isMut": false, "isSigner": false, "pda": { "seeds": [ @@ -123,6 +129,11 @@ "name": "systemProgram", "isMut": false, "isSigner": false + }, + { + "name": "executedTransactions", + "isMut": true, + "isSigner": false } ], "args": [ @@ -144,10 +155,11 @@ }, { "name": "lazyTransactions", - "isMut": false, + "isMut": true, "isSigner": false, "relations": [ - "authority" + "authority", + "executed_transactions" ] }, { @@ -181,6 +193,11 @@ } ] } + }, + { + "name": "executedTransactions", + "isMut": true, + "isSigner": false } ], "args": [ @@ -242,6 +259,11 @@ "name": "canopy", "isMut": true, "isSigner": false + }, + { + "name": "executedTransactions", + "isMut": true, + "isSigner": false } ], "args": [ @@ -320,6 +342,10 @@ { "name": "bumpSeed", "type": "u8" + }, + { + "name": "executedTransactions", + "type": "publicKey" } ] } @@ -340,7 +366,7 @@ "fields": [ { "name": "index", - "type": "u64" + "type": "u32" } ] } @@ -499,6 +525,11 @@ "code": 6003, "name": "CanopyLengthMismatch", "msg": "Invalid canopy length" + }, + { + "code": 6004, + "name": "TransactionAlreadyExecuted", + "msg": "Transaction has already been executed" } ] } \ No newline at end of file diff --git a/idl/mobile_entity_manager.json b/idl/mobile_entity_manager.json index d6da02d..5037c3b 100644 --- a/idl/mobile_entity_manager.json +++ b/idl/mobile_entity_manager.json @@ -1,5 +1,5 @@ { - "version": "0.0.2", + "version": "0.1.0", "name": "mobile_entity_manager", "instructions": [ { diff --git a/idl/no_emit.json b/idl/no_emit.json new file mode 100644 index 0000000..4b4f2dc --- /dev/null +++ b/idl/no_emit.json @@ -0,0 +1,89 @@ +{ + "version": "0.0.1", + "name": "no_emit", + "instructions": [ + { + "name": "noEmitV0", + "accounts": [ + { + "name": "payer", + "isMut": true, + "isSigner": true + }, + { + "name": "noEmitWallet", + "isMut": false, + "isSigner": false, + "pda": { + "seeds": [ + { + "kind": "const", + "type": "string", + "value": "not_emitted" + } + ] + } + }, + { + "name": "notEmittedCounter", + "isMut": true, + "isSigner": false, + "pda": { + "seeds": [ + { + "kind": "const", + "type": "string", + "value": "not_emitted_counter" + }, + { + "kind": "account", + "type": "publicKey", + "account": "Mint", + "path": "mint" + } + ] + } + }, + { + "name": "tokenAccount", + "isMut": true, + "isSigner": false + }, + { + "name": "mint", + "isMut": true, + "isSigner": false + }, + { + "name": "tokenProgram", + "isMut": false, + "isSigner": false + }, + { + "name": "systemProgram", + "isMut": false, + "isSigner": false + } + ], + "args": [] + } + ], + "accounts": [ + { + "name": "NotEmittedCounterV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "amountNotEmitted", + "type": "u64" + }, + { + "name": "bumpSeed", + "type": "u8" + } + ] + } + } + ] +} \ No newline at end of file diff --git a/idl/price_oracle.json b/idl/price_oracle.json index 847b2c6..6ce8379 100644 --- a/idl/price_oracle.json +++ b/idl/price_oracle.json @@ -1,5 +1,5 @@ { - "version": "0.1.0", + "version": "0.2.1", "name": "price_oracle", "instructions": [ { diff --git a/idl/rewards_oracle.json b/idl/rewards_oracle.json index 820ea36..7b2fecc 100644 --- a/idl/rewards_oracle.json +++ b/idl/rewards_oracle.json @@ -1,5 +1,5 @@ { - "version": "0.1.1", + "version": "0.2.0", "name": "rewards_oracle", "instructions": [ { diff --git a/idl/treasury_management.json b/idl/treasury_management.json index c46acb1..fe5d2ea 100644 --- a/idl/treasury_management.json +++ b/idl/treasury_management.json @@ -1,5 +1,5 @@ { - "version": "0.0.1", + "version": "0.2.0", "name": "treasury_management", "instructions": [ { diff --git a/idl/voter_stake_registry.json b/idl/voter_stake_registry.json index 51f8f7b..982f99f 100644 --- a/idl/voter_stake_registry.json +++ b/idl/voter_stake_registry.json @@ -1,5 +1,5 @@ { - "version": "0.0.7", + "version": "0.2.5", "name": "voter_stake_registry", "instructions": [ { @@ -182,11 +182,6 @@ "name": "tokenProgram", "isMut": false, "isSigner": false - }, - { - "name": "rent", - "isMut": false, - "isSigner": false } ], "args": [ @@ -302,7 +297,7 @@ "accounts": [ { "name": "registrar", - "isMut": false, + "isMut": true, "isSigner": false, "relations": [ "collection" @@ -512,11 +507,6 @@ "name": "tokenMetadataProgram", "isMut": false, "isSigner": false - }, - { - "name": "rent", - "isMut": false, - "isSigner": false } ], "args": [ @@ -1462,6 +1452,56 @@ } } ] + }, + { + "name": "relinquishExpiredVoteV0", + "accounts": [ + { + "name": "marker", + "isMut": true, + "isSigner": false, + "pda": { + "seeds": [ + { + "kind": "const", + "type": "string", + "value": "marker" + }, + { + "kind": "account", + "type": "publicKey", + "account": "VoteMarkerV0", + "path": "marker.mint" + }, + { + "kind": "account", + "type": "publicKey", + "account": "ProposalV0", + "path": "proposal" + } + ] + }, + "relations": [ + "proposal" + ] + }, + { + "name": "position", + "isMut": true, + "isSigner": false + }, + { + "name": "proposal", + "isMut": false, + "isSigner": false + }, + { + "name": "systemProgram", + "isMut": false, + "isSigner": false + } + ], + "args": [] } ], "accounts": [ @@ -1499,6 +1539,13 @@ { "name": "bumpSeed", "type": "u8" + }, + { + "name": "relinquished", + "docs": [ + "Whether this vote has been cleared on the position after proposal expireds" + ], + "type": "bool" } ] }