update gradido node api

This commit is contained in:
einhornimmond 2025-09-27 16:10:33 +02:00
parent 4e3d119f12
commit cf254c1081
2 changed files with 4 additions and 10 deletions

View File

@ -4,7 +4,6 @@
"": {
"name": "dlt-connector",
"dependencies": {
"async-exit-hook": "^2.0.1",
"gradido-blockchain-js": "git+https://github.com/gradido/gradido-blockchain-js",
},
"devDependencies": {
@ -12,7 +11,6 @@
"@hashgraph/sdk": "^2.70.0",
"@sinclair/typebox": "^0.34.33",
"@sinclair/typemap": "^0.10.1",
"@types/async-exit-hook": "^2.0.2",
"@types/bun": "^1.2.17",
"dotenv": "^10.0.0",
"elysia": "1.3.8",
@ -249,8 +247,6 @@
"@tokenizer/token": ["@tokenizer/token@0.3.0", "", {}, "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A=="],
"@types/async-exit-hook": ["@types/async-exit-hook@2.0.2", "", {}, "sha512-RJbTNivnnn+JzNiQTtUgwo/1S6QUHwI5JfXCeUPsqZXB4LuvRwvHhbKFSS5jFDYpk8XoEAYVW2cumBOdGpXL2Q=="],
"@types/babel__core": ["@types/babel__core@7.20.5", "", { "dependencies": { "@babel/parser": "^7.20.7", "@babel/types": "^7.20.7", "@types/babel__generator": "*", "@types/babel__template": "*", "@types/babel__traverse": "*" } }, "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA=="],
"@types/babel__generator": ["@types/babel__generator@7.27.0", "", { "dependencies": { "@babel/types": "^7.0.0" } }, "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg=="],
@ -305,8 +301,6 @@
"asn1js": ["asn1js@3.0.6", "", { "dependencies": { "pvtsutils": "^1.3.6", "pvutils": "^1.1.3", "tslib": "^2.8.1" } }, "sha512-UOCGPYbl0tv8+006qks/dTgV9ajs97X2p0FAbyS2iyCRrmLSRolDaHdp+v/CLgnzHc3fVB+CwYiUmei7ndFcgA=="],
"async-exit-hook": ["async-exit-hook@2.0.1", "", {}, "sha512-NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw=="],
"async-limiter": ["async-limiter@1.0.1", "", {}, "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ=="],
"asynckit": ["asynckit@0.4.0", "", {}, "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="],

View File

@ -64,7 +64,7 @@ export class GradidoNodeClient {
...parse(transactionIdentifierSchema, transactionIdentifier),
format: 'base64',
}
const response = await this.rpcCall<{ transaction: string }>('gettransaction', parameter)
const response = await this.rpcCall<{ transaction: string }>('getTransaction', parameter)
if (response.isSuccess()) {
// this.logger.debug('result: ', response.result.transaction)
return parse(confirmedTransactionSchema, response.result.transaction)
@ -90,7 +90,7 @@ export class GradidoNodeClient {
format: 'base64',
topic: hieroTopic,
}
const response = await this.rpcCall<{ transaction: string }>('getlasttransaction', parameter)
const response = await this.rpcCall<{ transaction: string }>('getLastTransaction', parameter)
if (response.isSuccess()) {
return parse(confirmedTransactionSchema, response.result.transaction)
}
@ -151,7 +151,7 @@ export class GradidoNodeClient {
format: 'base64',
}
const response = await this.rpcCallResolved<{ transactions: string[] }>(
'listtransactionsforaddress',
'getTransactionsForAddress',
parameter,
)
return response.transactions.map((transactionBase64) =>
@ -176,7 +176,7 @@ export class GradidoNodeClient {
topic: hieroTopic,
}
const response = await this.rpcCallResolved<{ addressType: string }>(
'getaddresstype',
'getAddressType',
parameter,
)
return parse(addressTypeSchema, response.addressType)