Skip to content

Commit 34c5e69

Browse files
committed
Migrate from @hashgraph/sdk to @hiero-ledger/sdk
Replaced all imports of @hashgraph/sdk with @hiero-ledger/sdk across the codebase and updated related dependencies in package.json and yarn.lock Bump sdk version from 2.72.0 to 2.78.0 --------- Signed-off-by: Alexander Pyatakov <[email protected]>
1 parent ec9e7d6 commit 34c5e69

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+258
-213
lines changed

common/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
"@aws-sdk/client-secrets-manager": "^3.812.0",
55
"@azure/identity": "^4.10.0",
66
"@azure/keyvault-secrets": "^4.9.0",
7+
"@formulajs/formulajs": "4.5.4",
78
"@google-cloud/secret-manager": "^4.2.2",
89
"@guardian/interfaces": "3.4.0",
9-
"@hashgraph/sdk": "2.72.0",
10+
"@hiero-ledger/sdk": "2.78.0",
1011
"@mattrglobal/jsonld-signatures-bbs": "^1.1.2",
1112
"@meeco/cryppo": "^2.0.2",
1213
"@mikro-orm/core": "6.4.16",
@@ -15,14 +16,13 @@
1516
"@nestjs/common": "^11.0.11",
1617
"@nestjs/core": "^11.0.11",
1718
"@nestjs/microservices": "^11.0.11",
18-
"jsonld-signatures": "11.5.0",
19+
"@noble/curves": "^1.3.0",
1920
"@transmute/credentials-context": "0.7.0-unstable.80",
2021
"@transmute/did-context": "0.7.0-unstable.80",
2122
"@transmute/ed25519-signature-2018": "0.7.0-unstable.80",
2223
"@transmute/jsonld-schema": "0.7.0-unstable.80",
2324
"@transmute/security-context": "0.7.0-unstable.80",
2425
"@transmute/vc.js": "0.7.0-unstable.80",
25-
"@noble/curves": "^1.3.0",
2626
"ajv": "^8.10.0",
2727
"ajv-formats": "^2.1.1",
2828
"axios": "^1.8.3",
@@ -33,6 +33,7 @@
3333
"express": "^5.1.0",
3434
"geotiff": "^2.1.4-beta.0",
3535
"js-base64": "^3.6.1",
36+
"jsonld-signatures": "11.5.0",
3637
"jszip": "^3.7.1",
3738
"lodash.get": "^4.4.2",
3839
"lodash.set": "^4.3.2",
@@ -42,23 +43,22 @@
4243
"nats": "^2.6.1",
4344
"node-vault": "^0.10.0",
4445
"papaparse": "5.5.3",
45-
"reflect-metadata": "^0.1.13",
46-
"ws": "^8.2.1",
47-
"@formulajs/formulajs": "4.5.4",
4846
"prom-client": "^14.1.1",
49-
"seq-logging": "^2.2.0"
47+
"reflect-metadata": "^0.1.13",
48+
"seq-logging": "^2.2.0",
49+
"ws": "^8.2.1"
5050
},
5151
"description": "Common package share cross all services",
5252
"devDependencies": {
5353
"@types/express": "^5.0.1",
54+
"@types/glob": "^8.1.0",
5455
"@types/jszip": "^3.4.1",
5556
"@types/node": "^22.15.19",
56-
"@types/glob": "^8.1.0",
57+
"esmock": "^2.6.7",
5758
"mocha-junit-reporter": "^2.0.2",
59+
"sinon": "^20.0.0",
5860
"tslint": "^6.1.3",
59-
"typescript": "^5.8.3",
60-
"esmock": "^2.6.7",
61-
"sinon": "^20.0.0"
61+
"typescript": "^5.8.3"
6262
},
6363
"files": [
6464
"dist"
@@ -83,4 +83,4 @@
8383
},
8484
"type": "module",
8585
"version": "3.4.0"
86-
}
86+
}

common/src/database-modules/database-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { AssignedEntityType, GenerateUUIDv4, IVC, MintTransactionStatus, PolicyTestStatus, PolicyStatus, SchemaEntity, TokenType, TopicType, ExternalPolicyStatus } from '@guardian/interfaces';
2-
import { TopicId } from '@hashgraph/sdk';
2+
import { TopicId } from '@hiero-ledger/sdk';
33
import { FilterObject, FilterQuery, FindAllOptions, MikroORM } from '@mikro-orm/core';
44
import type { FindOptions } from '@mikro-orm/core/drivers/IDatabaseDriver';
55
import { MongoDriver, ObjectId, PopulatePath } from '@mikro-orm/mongodb';

common/src/hedera-modules/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AccountId, Client } from '@hashgraph/sdk';
1+
import { AccountId, Client } from '@hiero-ledger/sdk';
22

33
/**
44
* Environment class

common/src/hedera-modules/message/message-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AccountId, PrivateKey, TopicId, } from '@hashgraph/sdk';
1+
import { AccountId, PrivateKey, TopicId, } from '@hiero-ledger/sdk';
22
import { GenerateUUIDv4, ISignOptions, SignType, WorkerTaskType } from '@guardian/interfaces';
33
import { IPFS, PinoLogger, Workers } from '../../helpers/index.js';
44
import { TransactionLogger } from '../transaction-logger.js';

common/src/hedera-modules/message/message.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { GenerateUUIDv4 } from '@guardian/interfaces';
2-
import { TopicId } from '@hashgraph/sdk';
2+
import { TopicId } from '@hiero-ledger/sdk';
33
import { Hashing } from '../hashing.js';
44
import { MessageAction } from './message-action.js';
55
import { MessageBody } from './message-body.interface.js';

common/src/hedera-modules/timestamp-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Timestamp } from '@hashgraph/sdk';
1+
import { Timestamp } from '@hiero-ledger/sdk';
22
import moment from 'moment';
33

44
/**

common/src/hedera-modules/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PrivateKey, PublicKey } from '@hashgraph/sdk';
1+
import { PrivateKey, PublicKey } from '@hiero-ledger/sdk';
22

33
/**
44
* Timeout decorator

common/src/hedera-modules/vcjs/did-document.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PrivateKey, PublicKey, TopicId } from '@hashgraph/sdk';
1+
import { PrivateKey, PublicKey, TopicId } from '@hiero-ledger/sdk';
22
import { Environment } from '../environment.js';
33
import { Hashing } from '../hashing.js';
44
import { IVerificationMethod, IDidDocument } from '@guardian/interfaces';

common/src/hedera-modules/vcjs/did/components/hedera-bbs-method.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PrivateKey } from '@hashgraph/sdk';
1+
import { PrivateKey } from '@hiero-ledger/sdk';
22
import { Bls12381G2KeyPair } from '@mattrglobal/jsonld-signatures-bbs';
33
import { VerificationMethod } from './verification-method.js';
44

common/src/hedera-modules/vcjs/did/components/hedera-ed25519-method.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PrivateKey } from '@hashgraph/sdk';
1+
import { PrivateKey } from '@hiero-ledger/sdk';
22
import { Hashing } from '../../../hashing.js';
33
import { VerificationMethod } from './verification-method.js';
44

0 commit comments

Comments
 (0)