Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/develop-release-program.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ jobs:
program-id: ${{ env.PROGRAM_ID }}
buffer-authority: ${{ secrets.DEVNET_MULTISIG_VAULT }}
- name: Squads program upgrade
uses: helium/squads-program-upgrade@v0.3.3
uses: helium/squads-program-upgrade@v0.5.0
with:
network-url: "https://api.devnet.solana.com"
program-multisig: ${{ secrets.DEVNET_MULTISIG }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-program.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
buffer-authority: ${{ secrets.MULTISIG_VAULT }}

- name: Squads program upgrade
uses: helium/squads-program-upgrade@v0.3.3
uses: helium/squads-program-upgrade@v0.5.0
with:
network-url: "https://api.mainnet-beta.solana.com"
program-multisig: ${{ secrets.MULTISIG }}
Expand Down
8 changes: 8 additions & 0 deletions solana-programs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 0.0.10 (2025-11-17)

**Note:** Version bump only for package solana-programs





## 0.0.9 (2025-05-14)

**Note:** Version bump only for package solana-programs
Expand Down
2 changes: 1 addition & 1 deletion solana-programs/lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"packages/*"
],
"useWorkspaces": true,
"version": "0.0.9"
"version": "0.0.10"
}
8 changes: 8 additions & 0 deletions solana-programs/packages/cron-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 0.0.10 (2025-11-17)

**Note:** Version bump only for package @helium/cron-sdk





## 0.0.9 (2025-05-14)

**Note:** Version bump only for package @helium/cron-sdk
Expand Down
6 changes: 3 additions & 3 deletions solana-programs/packages/cron-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"registry": "https://registry.npmjs.org/"
},
"license": "Apache-2.0",
"version": "0.0.9",
"version": "0.0.10",
"description": "Interface to the cron smart contract",
"repository": {
"type": "git",
Expand Down Expand Up @@ -33,8 +33,8 @@
"dependencies": {
"@coral-xyz/anchor": "^0.31.0",
"@helium/anchor-resolvers": "^0.10.0-alpha.4",
"@helium/tuktuk-idls": "^0.0.9",
"@helium/tuktuk-sdk": "^0.0.9",
"@helium/tuktuk-idls": "^0.0.10",
"@helium/tuktuk-sdk": "^0.0.10",
"js-sha256": "^0.11.0"
},
"devDependencies": {
Expand Down
10 changes: 5 additions & 5 deletions solana-programs/packages/cron-sdk/yarn.deploy.lock
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ __metadata:
dependencies:
"@coral-xyz/anchor": ^0.31.0
"@helium/anchor-resolvers": ^0.10.0-alpha.4
"@helium/tuktuk-idls": ^0.0.9
"@helium/tuktuk-sdk": ^0.0.9
"@helium/tuktuk-idls": ^0.0.10
"@helium/tuktuk-sdk": ^0.0.10
"@types/crypto-js": ^4.1.1
git-format-staged: ^2.1.3
js-sha256: ^0.11.0
Expand All @@ -101,7 +101,7 @@ __metadata:
languageName: unknown
linkType: soft

"@helium/tuktuk-idls@^0.0.9":
"@helium/tuktuk-idls@^0.0.10":
version: 0.0.0-use.local
resolution: "@helium/tuktuk-idls@workspace:packages/tuktuk-idls"
dependencies:
Expand All @@ -113,13 +113,13 @@ __metadata:
languageName: unknown
linkType: soft

"@helium/tuktuk-sdk@^0.0.9":
"@helium/tuktuk-sdk@^0.0.10":
version: 0.0.0-use.local
resolution: "@helium/tuktuk-sdk@workspace:packages/tuktuk-sdk"
dependencies:
"@coral-xyz/anchor": ^0.31.0
"@helium/anchor-resolvers": ^0.10.0-alpha.4
"@helium/tuktuk-idls": ^0.0.9
"@helium/tuktuk-idls": ^0.0.10
"@types/crypto-js": ^4.1.1
git-format-staged: ^2.1.3
js-sha256: ^0.11.0
Expand Down
8 changes: 8 additions & 0 deletions solana-programs/packages/remote-example-server/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 0.0.10 (2025-11-17)

**Note:** Version bump only for package @helium/faucet-service





## 0.0.9 (2025-05-14)

**Note:** Version bump only for package @helium/faucet-service
Expand Down
6 changes: 3 additions & 3 deletions solana-programs/packages/remote-example-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"registry": "https://registry.npmjs.org/"
},
"license": "Apache-2.0",
"version": "0.0.9",
"version": "0.0.10",
"description": "Remote example server for Tuktuk",
"repository": {
"type": "git",
Expand Down Expand Up @@ -36,8 +36,8 @@
"@coral-xyz/anchor": "^0.31.0",
"@fastify/cors": "^8.1.1",
"@helium/spl-utils": "^0.10.3",
"@helium/tuktuk-idls": "^0.0.9",
"@helium/tuktuk-sdk": "^0.0.9",
"@helium/tuktuk-idls": "^0.0.10",
"@helium/tuktuk-sdk": "^0.0.10",
"@solana/spl-token": "^0.3.8",
"@solana/web3.js": "^1.95.2",
"bn.js": "^5.2.0",
Expand Down
10 changes: 5 additions & 5 deletions solana-programs/packages/remote-example-server/yarn.deploy.lock
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ __metadata:
"@coral-xyz/anchor": ^0.31.0
"@fastify/cors": ^8.1.1
"@helium/spl-utils": ^0.10.3
"@helium/tuktuk-idls": ^0.0.9
"@helium/tuktuk-sdk": ^0.0.9
"@helium/tuktuk-idls": ^0.0.10
"@helium/tuktuk-sdk": ^0.0.10
"@solana/spl-token": ^0.3.8
"@solana/web3.js": ^1.95.2
"@types/bn.js": ^5.1.1
Expand Down Expand Up @@ -205,7 +205,7 @@ __metadata:
languageName: node
linkType: hard

"@helium/tuktuk-idls@^0.0.9":
"@helium/tuktuk-idls@^0.0.10":
version: 0.0.0-use.local
resolution: "@helium/tuktuk-idls@workspace:packages/tuktuk-idls"
dependencies:
Expand All @@ -217,13 +217,13 @@ __metadata:
languageName: unknown
linkType: soft

"@helium/tuktuk-sdk@^0.0.9":
"@helium/tuktuk-sdk@^0.0.10":
version: 0.0.0-use.local
resolution: "@helium/tuktuk-sdk@workspace:packages/tuktuk-sdk"
dependencies:
"@coral-xyz/anchor": ^0.31.0
"@helium/anchor-resolvers": ^0.10.0-alpha.4
"@helium/tuktuk-idls": ^0.0.9
"@helium/tuktuk-idls": ^0.0.10
"@types/crypto-js": ^4.1.1
git-format-staged: ^2.1.3
js-sha256: ^0.11.0
Expand Down
8 changes: 8 additions & 0 deletions solana-programs/packages/tuktuk-idls/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 0.0.10 (2025-11-17)

**Note:** Version bump only for package @helium/tuktuk-idls





## 0.0.9 (2025-05-14)

**Note:** Version bump only for package @helium/tuktuk-idls
Expand Down
2 changes: 1 addition & 1 deletion solana-programs/packages/tuktuk-idls/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@helium/tuktuk-idls",
"version": "0.0.9",
"version": "0.0.10",
"description": "Exported idls",
"publishConfig": {
"access": "public",
Expand Down
8 changes: 8 additions & 0 deletions solana-programs/packages/tuktuk-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 0.0.10 (2025-11-17)

**Note:** Version bump only for package @helium/tuktuk-sdk





## 0.0.9 (2025-05-14)

**Note:** Version bump only for package @helium/tuktuk-sdk
Expand Down
4 changes: 2 additions & 2 deletions solana-programs/packages/tuktuk-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"registry": "https://registry.npmjs.org/"
},
"license": "Apache-2.0",
"version": "0.0.9",
"version": "0.0.10",
"description": "Interface to the tuktuk smart contract",
"repository": {
"type": "git",
Expand Down Expand Up @@ -33,7 +33,7 @@
"dependencies": {
"@coral-xyz/anchor": "^0.31.0",
"@helium/anchor-resolvers": "^0.10.0-alpha.4",
"@helium/tuktuk-idls": "^0.0.9",
"@helium/tuktuk-idls": "^0.0.10",
"js-sha256": "^0.11.0"
},
"devDependencies": {
Expand Down
53 changes: 25 additions & 28 deletions solana-programs/packages/tuktuk-sdk/src/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function verificationHash(
Buffer.from([acc.isWritable ? 1 : 0, acc.isSigner ? 1 : 0]),
])
)
)
),
])
),
"hex"
Expand All @@ -60,8 +60,7 @@ export class RemoteTaskTransactionV0 {
const isWritable =
index < fields.transaction.numRwSigners ||
(index >=
fields.transaction.numRwSigners +
fields.transaction.numRoSigners &&
fields.transaction.numRwSigners + fields.transaction.numRoSigners &&
index <
fields.transaction.numRwSigners +
fields.transaction.numRoSigners +
Expand All @@ -76,7 +75,10 @@ export class RemoteTaskTransactionV0 {
this.transaction = { ...fields.transaction, accounts: [] };
}

static async serialize(coder: AccountsCoder, value: RemoteTaskTransactionV0): Promise<Buffer> {
static async serialize(
coder: AccountsCoder,
value: RemoteTaskTransactionV0
): Promise<Buffer> {
return coder.encode("remoteTaskTransactionV0", value);
}
}
Expand Down Expand Up @@ -231,7 +233,7 @@ async function defaultFetcher({
task_queued_at: taskQueuedAt.toString(),
task_queue: taskQueue.toBase58(),
});
const { transaction: txB64, signature, remaining_accounts } = resp.data;;
const { transaction: txB64, signature, remaining_accounts } = resp.data;
const remainingAccounts = remaining_accounts.map((acc) => {
return {
pubkey: new PublicKey(acc.pubkey),
Expand All @@ -256,16 +258,16 @@ export async function runTask({
program: Program<Tuktuk>;
task: PublicKey;
crankTurner: PublicKey;
nextAvailableTaskIds?: number[],
nextAvailableTaskIds?: number[];
fetcher?: ({
task,
taskQueuedAt,
url,
}: {
task: PublicKey,
taskQueuedAt: BN,
taskQueue: PublicKey,
url: string,
task: PublicKey;
taskQueuedAt: BN;
taskQueue: PublicKey;
url: string;
}) => Promise<{
remoteTaskTransaction: Buffer;
remainingAccounts: AccountMeta[];
Expand All @@ -289,10 +291,9 @@ export async function runTask({
};
});

const nextAvailable = argsNextAvailableTaskIds || nextAvailableTaskIds(
taskQueueAcc.taskBitmap,
freeTasks
);
const nextAvailable =
argsNextAvailableTaskIds?.slice(0, freeTasks) ||
nextAvailableTaskIds(taskQueueAcc.taskBitmap, freeTasks);
const freeTasksAccounts = nextAvailable.map((id) => ({
pubkey: taskKey(taskQueue, id)[0],
isWritable: true,
Expand All @@ -312,26 +313,22 @@ export async function runTask({
.instruction(),
];
} else {
const nextAvailable = nextAvailableTaskIds(
taskQueueAcc.taskBitmap,
freeTasks
);
const nextAvailable =
argsNextAvailableTaskIds?.slice(0, freeTasks) ||
nextAvailableTaskIds(taskQueueAcc.taskBitmap, freeTasks);
const freeTasksAccounts = nextAvailable.map((id) => ({
pubkey: taskKey(taskQueue, id)[0],
isWritable: true,
isSigner: false,
}));

const {
remoteTaskTransaction,
remainingAccounts,
signature,
} = await fetcher({
task,
taskQueuedAt: queuedAt,
url: transaction.remoteV0.url,
taskQueue,
});
const { remoteTaskTransaction, remainingAccounts, signature } =
await fetcher({
task,
taskQueuedAt: queuedAt,
url: transaction.remoteV0.url,
taskQueue,
});

return [
Ed25519Program.createInstructionWithPublicKey({
Expand Down
4 changes: 2 additions & 2 deletions solana-programs/packages/tuktuk-sdk/yarn.deploy.lock
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ __metadata:
languageName: node
linkType: hard

"@helium/tuktuk-idls@^0.0.9":
"@helium/tuktuk-idls@^0.0.10":
version: 0.0.0-use.local
resolution: "@helium/tuktuk-idls@workspace:packages/tuktuk-idls"
dependencies:
Expand All @@ -102,7 +102,7 @@ __metadata:
dependencies:
"@coral-xyz/anchor": ^0.31.0
"@helium/anchor-resolvers": ^0.10.0-alpha.4
"@helium/tuktuk-idls": ^0.0.9
"@helium/tuktuk-idls": ^0.0.10
"@types/crypto-js": ^4.1.1
git-format-staged: ^2.1.3
js-sha256: ^0.11.0
Expand Down
Loading
Loading