Skip to content

Commit

Permalink
Merge branch 'main' into 2688-add-pr-title-formatting-check-in-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaylonikolov7 authored Dec 5, 2024
2 parents c6bcf6f + ace95a2 commit 09fdb8e
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 48 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"bn.js": "^5.1.1",
"crypto-js": "^4.2.0",
"js-base64": "^3.7.4",
"long": "^4.0.0",
"long": "^5.2.3",
"pino": "^8.14.1",
"pino-pretty": "^10.0.0",
"protobufjs": "7.2.5",
Expand All @@ -85,7 +85,6 @@
"@playwright/test": "^1.30.0",
"@types/chai": "^4.3.4",
"@types/crypto-js": "^4.2.0",
"@types/long": "^4.0.2",
"@types/mocha": "^10.0.1",
"@types/node": "^20.8.10",
"@types/utf8": "^3.0.1",
Expand Down
1 change: 0 additions & 1 deletion packages/proto/.babelrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"presets": ["minify"],
"plugins": [
"@babel/plugin-transform-modules-commonjs",
"@babel/plugin-syntax-dynamic-import",
Expand Down
3 changes: 1 addition & 2 deletions packages/proto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,14 @@
"last 1 Firefox versions"
],
"dependencies": {
"long": "^4.0.0",
"long": "^5.2.3",
"protobufjs": "7.2.5"
},
"devDependencies": {
"@babel/cli": "^7.23.4",
"@babel/core": "^7.23.3",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-modules-commonjs": "^7.20.11",
"@types/long": "^4.0.2",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"babel-plugin-dynamic-import-node": "^2.3.3",
Expand Down
17 changes: 2 additions & 15 deletions packages/proto/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 3 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/EthereumFlow.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import * as hex from "./encoding/hex.js";
* @typedef {import("./Timestamp.js").default} Timestamp
* @typedef {import("./transaction/TransactionId.js").default} TransactionId
* @typedef {import("./transaction/TransactionResponse.js").default} TransactionResponse
* @typedef {import("long").Long} Long
* @typedef {import("long")} Long
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/EthereumTransaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import Transaction, {
* @typedef {import("./client/Client.js").default<*, *>} Client
* @typedef {import("./Timestamp.js").default} Timestamp
* @typedef {import("./transaction/TransactionId.js").default} TransactionId
* @typedef {import("long").Long} Long
* @typedef {import("long")} Long
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/StakingInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import Timestamp from "./Timestamp.js";
import * as HashgraphProto from "@hashgraph/proto";

/**
* @typedef {import("long").Long} Long
* @typedef {import("long")} Long
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/address_book/NodeAddress.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import * as utf8 from "../encoding/utf8.js";

/**
* @typedef {import("./Endpoint.js").EndPointJson} EndpointJson
* @typedef {import("long").Long} Long
* @typedef {import("long")} Long
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion src/contract/ContractCreateFlow.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import PublicKey from "../PublicKey.js";

/**
* @typedef {import("bignumber.js").BigNumber} BigNumber
* @typedef {import("long").Long} Long
* @typedef {import("long")} Long
*/

export default class ContractCreateFlow {
Expand Down
1 change: 1 addition & 0 deletions src/contract/ContractFunctionParameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import BigNumber from "bignumber.js";
import * as util from "../util.js";
import { defaultAbiCoder } from "@ethersproject/abi";
import { arrayify } from "@ethersproject/bytes";

// eslint-disable-next-line @typescript-eslint/no-unused-vars
import EvmAddress from "../EvmAddress.js";

Expand Down
2 changes: 1 addition & 1 deletion src/contract/DelegateContractId.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import * as hex from "../encoding/hex.js";
*/

/**
* @typedef {import("long").Long} Long
* @typedef {import("long")} Long
* @typedef {import("../client/Client.js").default<*, *>} Client
*/

Expand Down
2 changes: 1 addition & 1 deletion src/schedule/ScheduleId.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import * as entity_id from "../EntityIdHelper.js";
import * as HashgraphProto from "@hashgraph/proto";

/**
* @typedef {import("long").Long} Long
* @typedef {import("long")} Long
* @typedef {import("../client/Client.js").default<*, *>} Client
*/

Expand Down
2 changes: 1 addition & 1 deletion src/token/TokenId.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import * as entity_id from "../EntityIdHelper.js";
import * as HashgraphProto from "@hashgraph/proto";

/**
* @typedef {import("long").Long} Long
* @typedef {import("long")} Long
* @typedef {import("../client/Client.js").default<*, *>} Client
*/

Expand Down
2 changes: 1 addition & 1 deletion src/topic/TopicId.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import * as entity_id from "../EntityIdHelper.js";
import * as HashgraphProto from "@hashgraph/proto";

/**
* @typedef {import("long").Long} Long
* @typedef {import("long")} Long
* @typedef {import("../client/Client.js").default<*, *>} Client
*/

Expand Down
6 changes: 6 additions & 0 deletions src/types/global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export {};

// Declare Long globally
declare global {
const Long: import("long");
}
7 changes: 4 additions & 3 deletions test/integration/TokenAirdropIntegrationTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,10 @@ describe("TokenAirdropIntegrationTest", function () {
expect(newPendingAirdrops[1].airdropId.nftId.tokenId).to.deep.equal(
nftTokenId,
);
expect(newPendingAirdrops[1].airdropId.nftId.serial).to.deep.equal(
serials[0],
);

expect(
newPendingAirdrops[1].airdropId.nftId.serial.toString(),
).to.deep.equal(serials[0].toString());
});

it("should create hollow account when airdropping tokens and transfers them", async function () {
Expand Down

0 comments on commit 09fdb8e

Please sign in to comment.