Skip to content

Commit

Permalink
Bump dependencies (hyperledger#1634)
Browse files Browse the repository at this point in the history
  • Loading branch information
xermicus committed Apr 8, 2024
1 parent 28c86b3 commit d409c1e
Show file tree
Hide file tree
Showing 53 changed files with 109 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ serde_derive = { version = "1.0" }
inkwell = { version = "0.4.0", features = ["target-webassembly", "no-libffi-linking", "llvm16-0"], optional = true }
blake2-rfc = "0.2.18"
handlebars = "5.1"
contract-metadata = "3.2"
contract-metadata = "4.0.2"
semver = { version = "1.0", features = ["serde"] }
tempfile = "3.9"
tempfile = "3.10"
libc = { version = "0.2", optional = true }
tower-lsp = { version = "0.20", optional = true }
tokio = { version = "1.27", features = ["rt", "io-std", "macros"], optional = true }
Expand All @@ -58,11 +58,11 @@ ink_env = "5.0.0"
ink_metadata = "5.0.0"
scale-info = "2.10"
petgraph = "0.6"
wasmparser = "0.121.0"
wasm-encoder = "0.41"
wasmparser = "0.202.0"
wasm-encoder = "0.202"
toml = "0.8"
wasm-opt = { version = "0.113.0", optional = true }
contract-build = { version = "3.2", optional = true }
wasm-opt = { version = "0.116.0", default-features = false, optional = true }
contract-build = { version = "4.0.2", optional = true }
primitive-types = { version = "0.12", features = ["codec"] }
normalize-path = "0.2.1"
bitflags = "2.4"
Expand Down
2 changes: 2 additions & 0 deletions integration/anchor/tests/call_anchor.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { AnchorProvider, Program } from '@coral-xyz/anchor';
import {
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/UniswapV2ERC20.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { weight, createConnection, deploy, transaction, aliceKeypair, daveKeypair, query } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/UniswapV2Factory.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { weight, createConnection, deploy, transaction, aliceKeypair, daveKeypair, query } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/UniswapV2Pair.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { weight, query, createConnection, deploy, transaction, aliceKeypair, daveKeypair } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/array_struct_mapping_storage.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { weight, createConnection, deploy, aliceKeypair, transaction, query } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/arrays.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import crypto from 'crypto';
import { createConnection, deploy, transaction, aliceKeypair, weight, query, } from './index';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/asserts.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { weight, createConnection, deploy, transaction, aliceKeypair, query, } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/balances.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { weight, createConnection, deploy, transaction, aliceKeypair, daveKeypair, query } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/builtins.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { createConnection, deploy, transaction, aliceKeypair, query, } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/builtins2.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { createConnection, deploy, aliceKeypair, weight, query } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/call_flags.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { createConnection, deploy, aliceKeypair, query, debug_buffer, } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/caller_is_root.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { createConnection, deploy, aliceKeypair, query, weight, transaction } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/chain_extension.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { createConnection, deploy, aliceKeypair, query, } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/constructor_dispatch.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import { createConnection, deploy, aliceKeypair, query, debug_buffer, weight, transaction, daveKeypair, } from './index';
import { ContractPromise } from '@polkadot/api-contract';
import { ApiPromise } from '@polkadot/api';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/create_contract.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { weight, createConnection, deploy, transaction, aliceKeypair, query, debug_buffer, dry_run, } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/debug_buffer_format.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import { createConnection, deploy, aliceKeypair, debug_buffer } from "./index";
import expect from 'expect';
import { ContractPromise } from "@polkadot/api-contract";
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/delegate_call.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { weight, createConnection, deploy, transaction, aliceKeypair, daveKeypair, debug_buffer, query, } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/destruct.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { weight, createConnection, deploy, transaction, aliceKeypair, daveKeypair, query } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/events.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { weight, createConnection, deploy, transaction, aliceKeypair, } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/external_call.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { weight, createConnection, deploy, transaction, aliceKeypair, query, } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/flipper.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { weight, createConnection, deploy, transaction, aliceKeypair, query, } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import '@polkadot/api-augment';
import fs, { PathLike } from 'fs';
import { ApiPromise, WsProvider, Keyring } from '@polkadot/api';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/ink_cross_calls.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { weight, createConnection, deploy, transaction, aliceKeypair, query, } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/is_contract.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { createConnection, deploy, aliceKeypair, query, } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/issue666.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { weight, createConnection, deploy, transaction, aliceKeypair, } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/msg_sender.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from "expect";
import { aliceKeypair, createConnection, deploy, weight, transaction, query } from "./index";
import { ContractPromise } from "@polkadot/api-contract";
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/overloading.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { createConnection, deploy, transaction, aliceKeypair, query, } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/primitives.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { createConnection, deploy, aliceKeypair, daveKeypair, query, } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/release_version.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import { createConnection, deploy, aliceKeypair, debug_buffer } from "./index";
import expect from 'expect';
import { ContractPromise } from "@polkadot/api-contract";
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/runtime_errors.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import { createConnection, deploy, aliceKeypair, debug_buffer } from "./index";
import expect from 'expect';
import { ContractPromise } from "@polkadot/api-contract";
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/set_code_hash.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { createConnection, deploy, aliceKeypair, query, debug_buffer, weight, transaction, } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/store.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { weight, createConnection, deploy, transaction, aliceKeypair, } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/structs.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { createConnection, deploy, transaction, aliceKeypair, weight, query, } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/tornado.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

// Tests against the tornado cash core contracts.
// The tornado contracts used here contain minor mechanical changes to work fine on Polkadot.
// The ZK-SNARK setup is the same as ETH Tornado on mainnet.
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/try_catch.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { createConnection, deploy, aliceKeypair, query, } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/polkadot/upgradeable_proxy.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { weight, createConnection, deploy, transaction, aliceKeypair, query, } from './index';
import { ContractPromise } from '@polkadot/api-contract';
Expand Down
2 changes: 2 additions & 0 deletions integration/solana/simple.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import expect from 'expect';
import { loadContractAndCallConstructor } from './setup';
import crypto from 'crypto';
Expand Down
2 changes: 1 addition & 1 deletion src/abi/polkadot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -606,5 +606,5 @@ pub fn metadata(
let project_json = serde_json::to_value(gen_project(contract_no, ns)).unwrap();
let abi = serde_json::from_value(project_json).unwrap();

serde_json::to_value(ContractMetadata::new(source, contract, None, abi)).unwrap()
serde_json::to_value(ContractMetadata::new(source, contract, None, None, abi)).unwrap()
}
2 changes: 2 additions & 0 deletions vscode/src/client/extension.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as vscode from 'vscode';
Expand Down
2 changes: 2 additions & 0 deletions vscode/src/server/server.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import { createConnection, InitializeResult, DefinitionRequest } from 'vscode-languageserver';
import * as rpc from 'vscode-jsonrpc';

Expand Down
2 changes: 2 additions & 0 deletions vscode/src/test/runTest.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import * as path from 'path';

import { runTests } from '@vscode/test-electron';
Expand Down
2 changes: 2 additions & 0 deletions vscode/src/test/suite/extension.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import * as assert from 'assert';

import * as vscode from 'vscode';
Expand Down
2 changes: 2 additions & 0 deletions vscode/src/test/suite/helper.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import * as vscode from 'vscode';
import * as path from 'path';

Expand Down
2 changes: 2 additions & 0 deletions vscode/src/test/suite/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import * as path from 'path';
import * as Mocha from 'mocha';
import * as glob from 'glob';
Expand Down
2 changes: 2 additions & 0 deletions vscode/src/utils/download.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import * as vscode from 'vscode';
import * as path from 'path';
import * as crypto from 'crypto';
Expand Down
2 changes: 2 additions & 0 deletions vscode/src/utils/downloadFile.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import fetch from 'node-fetch';
import { PathLike, createWriteStream } from 'fs';
import * as stream from 'stream';
Expand Down
2 changes: 2 additions & 0 deletions vscode/src/utils/downloadWithRetryDialog.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import * as vscode from 'vscode';

export default async function downloadWithRetryDialog<T>(downloadFunc: () => Promise<T>): Promise<T> {
Expand Down
2 changes: 2 additions & 0 deletions vscode/src/utils/executableVersion.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import { spawnSync } from 'child_process';

export default function executableVersion(path: string): string | undefined {
Expand Down
2 changes: 2 additions & 0 deletions vscode/src/utils/expandPathResolving.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import { homedir } from 'os';

export default function expandPathResolving(path: string): string {
Expand Down
2 changes: 2 additions & 0 deletions vscode/src/utils/fetchLatestRelease.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import fetch from 'node-fetch';

export default async function fetchLatestRelease() {
Expand Down
2 changes: 2 additions & 0 deletions vscode/src/utils/getPlatform.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

export default function getPlatform(): string | undefined {
switch (`${process.arch} ${process.platform}`) {
case 'x64 win32':
Expand Down
2 changes: 2 additions & 0 deletions vscode/src/utils/getServer.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: Apache-2.0

import * as vscode from 'vscode';
import * as path from 'path';
import { promises as fs } from 'fs';
Expand Down

0 comments on commit d409c1e

Please sign in to comment.