-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: Swap iota.js for iota-sdk. Address easily fixable import errors [WiP] * chore(iota-sdk): Fix client.pluginFetch * chore(iota-sdk): Fix parsing of Uint8Array in plugin fetch * chore(iota-sdk): Fix all errors for 'api' + Moved some missing utils from iota.js into explorer under utils/stardust/utils.ts * chore(iota-sdk): Fix all import errors on client [WiP] * chore: Fix MilestonePayload parsing (api) + Switch client dep to bindings/wasm * chore: Switch to npm @iota/sdk dependency + Fixes * chore: Refactor from getType getter to readonly field everywhere * chore: Use sdk-wasm on client * chore: Replace all getter accesses to models with direct readonly field accesses * feat: Use iota-sdk 1.1-rc.1 + Fix Block page * feat: Fix Visualizer stream for iota-sdk * feat: Fix searching with "tag" * feat: Fix other query endpoints * feat: Fix participation plugin fetch * fix: Fix imports + Honour Network.isEnabled + Remove unused file * fix: Reset block state on blockId change * chore: Remove unneeded dependencies from client * chore: Make loglevel verbose in api/Dockerfile to debug CI * chore: Use debian instead of alpine in Dockerfile + Bump required node version to 16.20 * chore: Fix Dockerfile * chore: Revert latest Dockerfile changes and add rust install step * chore: Update Dockerfile * chore: Make Dockerfile less bashy * chore: Update Dockerfile rustup install * chore: Retry Dockerfile with debian * chore: Test if we even need cmake and build-base (api/Dockerfile) * feat: Remove utils.js dependency for stardust (Converter and HexHelper copied locally for convenience) * feat: Rename stardust lib dependency to @iota/sdk (api/client) * feat: Remove dependency on crypto.js-stardust (steal Bleak2b) * fix: Remove log-level arg from Dockerfile * fix: imports and formatting * chore: Bump api/client version --------- Co-authored-by: Branko Bosnic <[email protected]>
- Loading branch information
Showing
146 changed files
with
3,865 additions
and
1,487 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "explorer-api", | ||
"description": "API for Tangle Explorer", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"author": "Martyn Janes <[email protected]>", | ||
"repository": { | ||
"type": "git", | ||
|
@@ -22,22 +22,19 @@ | |
"start": "node ./dist/index" | ||
}, | ||
"engines": { | ||
"node": ">=14 <=16.16" | ||
"node": ">=14 <=16.20" | ||
}, | ||
"dependencies": { | ||
"@google-cloud/logging-winston": "^5.3.0", | ||
"@iota/core": "^1.0.0-beta.30", | ||
"@iota/crypto.js": "^1.8.6", | ||
"@iota/crypto.js-stardust": "npm:@iota/[email protected]", | ||
"@iota/identity-wasm": "^0.5.0-dev.6", | ||
"@iota/identity-wasm-0.4": "npm:@iota/identity-wasm@^0.4.3", | ||
"@iota/identity-wasm-0.7": "npm:@iota/identity-wasm@^0.7.0-alpha.6", | ||
"@iota/iota.js-chrysalis": "npm:@iota/iota.js@^1.8.6", | ||
"@iota/iota.js-stardust": "npm:@iota/[email protected]", | ||
"@iota/sdk": "1.1.1", | ||
"@iota/mqtt.js": "^1.8.6", | ||
"@iota/mqtt.js-stardust": "npm:@iota/[email protected]", | ||
"@iota/util.js": "^1.8.6", | ||
"@iota/util.js-stardust": "npm:@iota/[email protected]", | ||
"@iota/validators": "^1.0.0-beta.30", | ||
"@types/moment": "^2.13.0", | ||
"@types/node-cron": "^3.0.2", | ||
|
@@ -63,7 +60,7 @@ | |
"@types/express": "^4.17.13", | ||
"@types/jest": "^29.2.3", | ||
"@types/jszip": "^3.4.1", | ||
"@types/node": "^16.10.3", | ||
"@types/node": "^16.18.51", | ||
"@types/uuid": "^8.3.1", | ||
"@types/winston": "^2.4.4", | ||
"@typescript-eslint/eslint-plugin": "^5.36.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { IOutputResponse } from "@iota/iota.js-stardust"; | ||
import { OutputResponse } from "@iota/sdk"; | ||
import { IResponse } from "../IResponse"; | ||
|
||
export interface IAddressDetailsResponse extends IResponse { | ||
/** | ||
* The outputs data. | ||
*/ | ||
outputs?: IOutputResponse[]; | ||
outputs?: OutputResponse[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { IOutputResponse } from "@iota/iota.js-stardust"; | ||
import { OutputResponse } from "@iota/sdk"; | ||
import { IResponse } from "./IResponse"; | ||
|
||
export interface IAliasResponse extends IResponse { | ||
/** | ||
* The alias details response. | ||
*/ | ||
aliasDetails?: IOutputResponse; | ||
aliasDetails?: OutputResponse; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { IBlock } from "@iota/iota.js-stardust"; | ||
import { Block } from "@iota/sdk"; | ||
import { IResponse } from "../IResponse"; | ||
|
||
export interface IBlockResponse extends IResponse { | ||
/** | ||
* The deserialized block. | ||
*/ | ||
block?: IBlock; | ||
block?: Block; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { IOutputResponse } from "@iota/iota.js-stardust"; | ||
import { OutputResponse } from "@iota/sdk"; | ||
import { IResponse } from "./IResponse"; | ||
|
||
export interface IOutputDetailsResponse extends IResponse { | ||
/** | ||
* The output data. | ||
*/ | ||
output?: IOutputResponse; | ||
output?: OutputResponse; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { IBlock } from "@iota/iota.js-stardust"; | ||
import { Block } from "@iota/sdk"; | ||
import { IResponse } from "../IResponse"; | ||
|
||
export interface ITransactionDetailsResponse extends IResponse { | ||
/** | ||
* Transaction included block. | ||
*/ | ||
block?: IBlock; | ||
block?: Block; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
api/src/models/api/stardust/chronicle/IBlockChildrenResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
api/src/models/api/stardust/chronicle/IRichestAddressesResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
api/src/models/api/stardust/chronicle/ITokenDistributionResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { IOutputResponse } from "@iota/iota.js-stardust"; | ||
import { OutputResponse } from "@iota/sdk"; | ||
import { IResponse } from "../IResponse"; | ||
|
||
export interface IFoundryResponse extends IResponse { | ||
/** | ||
* The foundry details response. | ||
*/ | ||
foundryDetails?: IOutputResponse; | ||
foundryDetails?: OutputResponse; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { IOutputResponse } from "@iota/iota.js-stardust"; | ||
import { OutputResponse } from "@iota/sdk"; | ||
import { IResponse } from "../IResponse"; | ||
|
||
export interface INftDetailsResponse extends IResponse { | ||
/** | ||
* The nft details response. | ||
*/ | ||
nftDetails?: IOutputResponse; | ||
nftDetails?: OutputResponse; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.