Skip to content

Commit 73de51c

Browse files
authored
chore(dapp-deps): Bump iota-sdk to v1.10.0 (#1027)
* chore(dapp-deps): Bump iota-sdk to v1.10.0 * chore(dapp): Bump iota deps to match iota-sdk * fix(script): GetDynamicFieldObjectV2Params change * fix(script): Add missing content option to request
1 parent 20a9a57 commit 73de51c

File tree

5 files changed

+84
-42
lines changed

5 files changed

+84
-42
lines changed

dapp/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
"@growthbook/growthbook-react": "^1.6.1",
3030
"@iota/apps-ui-icons": "^0.7.0",
3131
"@iota/apps-ui-kit": "^0.9.0",
32-
"@iota/dapp-kit": "^0.8.0",
32+
"@iota/dapp-kit": "^0.8.1",
3333
"@iota/graphql-transport": "^0.12.0",
3434
"@iota/iota-names-sdk": "workspace:^",
35-
"@iota/iota-sdk": "^1.9.0",
36-
"@iota/kiosk": "^0.6.0",
35+
"@iota/iota-sdk": "^1.10.0",
36+
"@iota/kiosk": "^0.6.1",
3737
"@next/mdx": "^15.5.0",
3838
"@noble/hashes": "^1.4.0",
3939
"@sentry/nextjs": "^10",

pnpm-lock.yaml

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

scripts/init/queries.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,23 @@ export const queryRegistryTables = async (
1010
iotaNamesPackageId: string,
1111
) => {
1212
const table = await client.getDynamicFieldObject({
13-
parentId: iotaNames,
13+
parentObjectId: iotaNames,
1414
name: {
1515
type: `${iotaNamesPackageId}::iota_names::RegistryKey<${iotaNamesPackageId}::registry::Registry>`,
1616
value: {
1717
dummy_field: false,
1818
},
1919
},
20+
options: {
21+
showContent: true,
22+
},
2023
});
2124

22-
if (table.data?.content?.dataType !== 'moveObject')
23-
throw new Error(`Invalid data ${iotaNamesPackageId}`);
25+
if (table.data?.content?.dataType !== 'moveObject') {
26+
throw new Error(
27+
`Invalid data. Data type was expected to be 'moveObject' but was ${table.data?.content?.dataType} for package: ${iotaNamesPackageId}`,
28+
);
29+
}
2430

2531
const data = table.data?.content.fields as Record<string, any>;
2632
let registryTableId = data.value.fields.registry.fields.id.id;

scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"license": "ISC",
2525
"dependencies": {
2626
"@iarna/toml": "3.0.0",
27-
"@iota/iota-sdk": "^1.5.0",
27+
"@iota/iota-sdk": "^1.10.0",
2828
"@iota/kiosk": "^0.4.6",
2929
"@noble/hashes": "^1.4.0",
3030
"dotenv": "^16.3.1"

sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"node": ">=20"
4242
},
4343
"peerDependencies": {
44-
"@iota/iota-sdk": "^1.9.0"
44+
"@iota/iota-sdk": "^1.10.0"
4545
},
4646
"dependencies": {
4747
"@noble/hashes": "^1.4.0"

0 commit comments

Comments
 (0)