diff --git a/packages/spl-utils/src/transaction.ts b/packages/spl-utils/src/transaction.ts index b37a7ca10..596cbc2cf 100644 --- a/packages/spl-utils/src/transaction.ts +++ b/packages/spl-utils/src/transaction.ts @@ -561,7 +561,7 @@ export async function bulkSendTransactions( return ret; } -// Returns the list of succesfully sent txns +// Returns the list of successfully sent txns // NOTE: The return signatures are ordered by confirmation, not by order they are passed // This list should be in order. Seom txns may fail // due to blockhash exp diff --git a/packages/sus/README.md b/packages/sus/README.md index 1452c6a81..bfa0086bf 100644 --- a/packages/sus/README.md +++ b/packages/sus/README.md @@ -38,7 +38,7 @@ console.log(result) ## Human-readable Writable Accounts (and changes) -On Solana, every transaciton must declare which accounts can be changed over the course of a transaction. This is an important way to detect bad behavior. If a transaction is meant to swap SOL for HNT and it labels your USDC account as writable, this is a problem! +On Solana, every transaction must declare which accounts can be changed over the course of a transaction. This is an important way to detect bad behavior. If a transaction is meant to swap SOL for HNT and it labels your USDC account as writable, this is a problem! Transaction simulation is not a silver bullet, it can be tricked. We cannot rely on simulated balance changes to reflect what _can_ happen in a transaction. As such, we should flag which important accounts are at risk. diff --git a/packages/sus/src/index.ts b/packages/sus/src/index.ts index 36817a151..c9e2c3760 100644 --- a/packages/sus/src/index.ts +++ b/packages/sus/src/index.ts @@ -422,7 +422,7 @@ export async function sus({ }); } - // Catch malicious sol ownwer change + // Catch malicious sol owner change const sysProg = new PublicKey("11111111111111111111111111111111"); const postOwner = acc.post.account?.owner || sysProg; const preOwner = acc.pre.account?.owner || sysProg; diff --git a/packages/voter-stake-registry-hooks/src/hooks/useRelinquishVote.ts b/packages/voter-stake-registry-hooks/src/hooks/useRelinquishVote.ts index 1815ed0cc..49f224738 100644 --- a/packages/voter-stake-registry-hooks/src/hooks/useRelinquishVote.ts +++ b/packages/voter-stake-registry-hooks/src/hooks/useRelinquishVote.ts @@ -97,7 +97,7 @@ export const useRelinquishVote = (proposal: PublicKey) => { if (marker && canRelinquishVote) { if (position.isProxiedToMe) { if (marker.proxyIndex < (position.proxy?.index || 0)) { - // Do not vote with a position that has been delegated to us, but voting overidden + // Do not vote with a position that has been delegated to us, but voting overridden return; } diff --git a/packages/voter-stake-registry-hooks/src/hooks/useVote.ts b/packages/voter-stake-registry-hooks/src/hooks/useVote.ts index fa3b07539..880768031 100644 --- a/packages/voter-stake-registry-hooks/src/hooks/useVote.ts +++ b/packages/voter-stake-registry-hooks/src/hooks/useVote.ts @@ -167,7 +167,7 @@ export const useVote = (proposalKey: PublicKey) => { (marker.proxyIndex < (position.proxy?.index || 0) || marker.choices.includes(choice)) ) { - // Do not vote with a position that has been delegated to us, but voting overidden + // Do not vote with a position that has been delegated to us, but voting overridden // Also ignore voting for the same choice twice return; } diff --git a/programs/lazy-transactions/src/canopy.rs b/programs/lazy-transactions/src/canopy.rs index 149732db5..1184774a3 100644 --- a/programs/lazy-transactions/src/canopy.rs +++ b/programs/lazy-transactions/src/canopy.rs @@ -100,7 +100,7 @@ pub fn fill_in_proof_from_canopy( node_idx >>= 1; } // We only want to add inferred canopy nodes such that the proof length - // is equal to the tree depth. If the lengh of proof + lengh of canopy nodes is + // is equal to the tree depth. If the length of proof + length of canopy nodes is // less than the tree depth, the instruction will fail. let overlap = (proof.len() + inferred_nodes.len()).saturating_sub(max_depth as usize); proof.extend(inferred_nodes.iter().skip(overlap)); diff --git a/utils/vehnt/Cargo.lock b/utils/vehnt/Cargo.lock index 35ed1d6be..0eeb5cfaf 100644 --- a/utils/vehnt/Cargo.lock +++ b/utils/vehnt/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "Inflector" @@ -1028,7 +1028,7 @@ dependencies = [ [[package]] name = "circuit-breaker" -version = "0.1.0" +version = "0.1.1" dependencies = [ "anchor-lang", "anchor-spl", @@ -1973,7 +1973,7 @@ checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" [[package]] name = "helium-sub-daos" -version = "0.1.6" +version = "0.1.12" dependencies = [ "anchor-lang", "anchor-spl", @@ -2345,12 +2345,12 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "ledger-apdu" version = "0.7.0" -source = "git+https://github.com/helium/ledger-rs?branch=lthiery/tcp-transport#3066a3379e568805917459c78daa4e306b0cb12d" +source = "git+https://github.com/helium/ledger-rs?branch=lthiery%2Ftcp-transport#3066a3379e568805917459c78daa4e306b0cb12d" [[package]] name = "ledger-transport" version = "0.7.0" -source = "git+https://github.com/helium/ledger-rs?branch=lthiery/tcp-transport#3066a3379e568805917459c78daa4e306b0cb12d" +source = "git+https://github.com/helium/ledger-rs?branch=lthiery%2Ftcp-transport#3066a3379e568805917459c78daa4e306b0cb12d" dependencies = [ "byteorder", "futures", @@ -2369,7 +2369,7 @@ dependencies = [ [[package]] name = "ledger-transport-hid" version = "0.7.0" -source = "git+https://github.com/helium/ledger-rs?branch=lthiery/tcp-transport#3066a3379e568805917459c78daa4e306b0cb12d" +source = "git+https://github.com/helium/ledger-rs?branch=lthiery%2Ftcp-transport#3066a3379e568805917459c78daa4e306b0cb12d" dependencies = [ "byteorder", "cfg-if 0.1.10", @@ -2386,7 +2386,7 @@ dependencies = [ [[package]] name = "ledger-transport-tcp" version = "0.7.0" -source = "git+https://github.com/helium/ledger-rs?branch=lthiery/tcp-transport#3066a3379e568805917459c78daa4e306b0cb12d" +source = "git+https://github.com/helium/ledger-rs?branch=lthiery%2Ftcp-transport#3066a3379e568805917459c78daa4e306b0cb12d" dependencies = [ "byteorder", "hidapi", @@ -5013,7 +5013,7 @@ dependencies = [ [[package]] name = "treasury-management" -version = "0.2.0" +version = "0.2.1" dependencies = [ "anchor-lang", "anchor-spl", @@ -5223,7 +5223,7 @@ checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" [[package]] name = "voter-stake-registry" -version = "0.3.2" +version = "0.3.4" dependencies = [ "anchor-lang", "anchor-spl",