Skip to content

Commit 59bf9be

Browse files
feat: update sdk to 1.2.2
1 parent dc8d330 commit 59bf9be

4 files changed

Lines changed: 23 additions & 23 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,10 @@ ACURAST_MNEMONIC=abandon abandon about ...
168168
- Third element: The deployment ID
169169
- Example: `["Acurast", "5CiPPseXPECbkjWCa6MnjNokrgYjMqmKndv2rSnekmSK2DjL", 123456]`
170170
- `benchmarkFilters` (optional): Minimum benchmark requirements used to filter eligible processors.
171-
- `minMemoryBytes`: Minimum total RAM in bytes.
171+
- `minRamTotalBytes`: Minimum total RAM in bytes.
172172
- `minCpuSingleCoreScore`: Minimum single-core CPU score.
173-
- `minStorageBytes`: Minimum total storage in bytes.
174-
- `minStorageIoScore`: Minimum storage I/O score.
173+
- `minCpuMultiCoreScore`: Minimum multi-core CPU score.
174+
- `minStorageAvailBytes`: Minimum available storage in bytes.
175175
- `poolIds` (advanced): Override compute-pallet benchmark pool IDs.
176176

177177
### Benchmark Filters
@@ -186,10 +186,10 @@ Config example:
186186
"projects": {
187187
"example": {
188188
"benchmarkFilters": {
189-
"minMemoryBytes": 4000000000,
189+
"minRamTotalBytes": 4000000000,
190190
"minCpuSingleCoreScore": 1000,
191-
"minStorageBytes": 64000000000,
192-
"minStorageIoScore": 500
191+
"minCpuMultiCoreScore": 3000,
192+
"minStorageAvailBytes": 64000000000
193193
}
194194
}
195195
}
@@ -199,7 +199,7 @@ Config example:
199199
Deploy flag examples (can be combined):
200200

201201
```bash
202-
acurast deploy --min-memory 4GB --min-cpu-score 1000 --min-storage 64GB --min-io-score 500
202+
acurast deploy --min-memory 4GB --min-cpu-score 1000 --min-storage 64GB --min-cpu-multi-score 3000
203203
```
204204

205205
Notes:

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@
3333
"dependencies": {
3434
"@acurast/dapp": "^1.0.1",
3535
"@acurast/devtools": "^1.0.1",
36-
"@acurast/sdk": "^1.2.0",
36+
"@acurast/sdk": "^1.2.2",
3737
"@inquirer/prompts": "^5.0.5",
38-
"adm-zip": "^0.5.16",
3938
"@polkadot/api": "^16.1.2",
4039
"@polkadot/api-augment": "^16.1.2",
4140
"@polkadot/keyring": "^14.0.0",
@@ -44,6 +43,7 @@
4443
"@polkadot/util": "^14.0.0",
4544
"@polkadot/util-crypto": "^14.0.0",
4645
"@polkadot/wasm-crypto": "^7.3.2",
46+
"adm-zip": "^0.5.16",
4747
"ansis": "^4.1.0",
4848
"bignumber.js": "^9.3.0",
4949
"bip39": "^3.1.0",

src/commands/deploy.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -270,17 +270,17 @@ export const addCommandDeploy = (program: Command) => {
270270
.addOption(
271271
new Option(
272272
'--min-storage <size>',
273-
'Minimum total storage capacity (e.g. 64GB)'
273+
'Minimum available storage capacity (e.g. 64GB)'
274274
)
275275
)
276276
.addOption(
277277
new Option(
278-
'--min-io-score <n>',
279-
'Minimum storage I/O benchmark score'
278+
'--min-cpu-multi-score <n>',
279+
'Minimum CPU multi-core benchmark score'
280280
).argParser((v) => {
281281
const n = Number.parseInt(v, 10)
282282
if (Number.isNaN(n) || n < 0) {
283-
throw new Error(`Invalid --min-io-score: ${v}`)
283+
throw new Error(`Invalid --min-cpu-multi-score: ${v}`)
284284
}
285285
return n
286286
})
@@ -298,7 +298,7 @@ export const addCommandDeploy = (program: Command) => {
298298
minMemory?: string
299299
minCpuScore?: number
300300
minStorage?: string
301-
minIoScore?: number
301+
minCpuMultiScore?: number
302302
}
303303
) => {
304304
const log = consoleOutput(options.output)
@@ -346,22 +346,22 @@ export const addCommandDeploy = (program: Command) => {
346346
try {
347347
const bf = { ...config.benchmarkFilters }
348348
if (options.minMemory !== undefined) {
349-
bf.minMemoryBytes = Number(parseByteSize(options.minMemory))
349+
bf.minRamTotalBytes = Number(parseByteSize(options.minMemory))
350350
}
351351
if (options.minCpuScore !== undefined) {
352352
bf.minCpuSingleCoreScore = options.minCpuScore
353353
}
354354
if (options.minStorage !== undefined) {
355-
bf.minStorageBytes = Number(parseByteSize(options.minStorage))
355+
bf.minStorageAvailBytes = Number(parseByteSize(options.minStorage))
356356
}
357-
if (options.minIoScore !== undefined) {
358-
bf.minStorageIoScore = options.minIoScore
357+
if (options.minCpuMultiScore !== undefined) {
358+
bf.minCpuMultiCoreScore = options.minCpuMultiScore
359359
}
360360
if (
361361
options.minMemory !== undefined ||
362362
options.minCpuScore !== undefined ||
363363
options.minStorage !== undefined ||
364-
options.minIoScore !== undefined
364+
options.minCpuMultiScore !== undefined
365365
) {
366366
config.benchmarkFilters = bf
367367
}

0 commit comments

Comments
 (0)