Skip to content

Commit

Permalink
Dependencies 20240905 (#3038)
Browse files Browse the repository at this point in the history
* chore: update dependencies base on dependabot and snyk

* test: improve failing-noop tests
  • Loading branch information
hui-an-yang committed Sep 6, 2024
1 parent b5cd507 commit 4a449e8
Show file tree
Hide file tree
Showing 10 changed files with 369 additions and 307 deletions.
2 changes: 1 addition & 1 deletion apps/taquito-test-dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lerna": "^8.1.7",
"prettier-plugin-svelte": "^3.2.6",
"sass": "^1.77.8",
"svelte": "^4.2.18",
"svelte": "^4.2.19",
"svelte-check": "^3.8.5",
"svelte-preprocess": "^6.0.2",
"tslib": "^2.6.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@ import { OpKind, TezosToolkit } from "@taquito/taquito";
import { InMemorySigner } from "@taquito/signer";
import { verifySignature } from "@taquito/utils";

CONFIGS().forEach(({ lib, setup, rpc }) => {
describe(`Test failing_noop through contract api using: ${rpc}`, () => {
let Tezos = lib;
CONFIGS().forEach(({ setup, rpc }) => {
let signerAlice = new InMemorySigner('edsk3QoqBuvdamxouPhin7swCvkQNgq4jP5KZPbwWNnwdZpSpJiEbq')

describe(`Test failing_noop through wallet api using: ${rpc}`, () => {
let Tezos: TezosToolkit;
beforeAll(async () => {
setup(true);
if (rpc.includes('parisnet')) {
Tezos.setRpcProvider('https://rpc.tzkt.io/parisnet'); // public archive node to fetch genesis block
} else if (rpc.includes('ghostnet')) {
Tezos.setRpcProvider('https://rpc.tzkt.io/ghostnet'); // public archive node to fetch genesis block
setup(true)
if (rpc.includes('paris')) {
Tezos = new TezosToolkit('https://rpc.tzkt.io/parisnet'); // public archive node to fetch genesis block
Tezos.setSignerProvider(signerAlice); // alice's secret key
} else if (rpc.includes('ghost')) {
Tezos = new TezosToolkit('https://rpc.tzkt.io/ghostnet'); // public archive node to fetch genesis block
Tezos.setSignerProvider(signerAlice); // alice's secret key
}
});

Expand Down Expand Up @@ -40,7 +43,7 @@ CONFIGS().forEach(({ lib, setup, rpc }) => {

beforeAll(async () => {
Mainnet = new TezosToolkit('https://rpc.tzkt.io/mainnet'); // public archive node to fetch genesis block
Mainnet.setSignerProvider(new InMemorySigner('edsk3QoqBuvdamxouPhin7swCvkQNgq4jP5KZPbwWNnwdZpSpJiEbq')); // alice's secret key
Mainnet.setSignerProvider(signerAlice); // alice's secret key
});

it('Verify that the contract.failingNoop result is as expected when the block and secret key are kept constant', async () => {
Expand Down
19 changes: 11 additions & 8 deletions integration-tests/__tests__/wallet/failing-noop.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@ import { OpKind, TezosToolkit } from "@taquito/taquito";
import { InMemorySigner } from "@taquito/signer";
import { verifySignature } from "@taquito/utils";

CONFIGS().forEach(({ lib, setup, rpc }) => {
describe(`Test failing_noop through wallet api using: ${rpc}`, () => {
let Tezos = lib;
CONFIGS().forEach(({ setup, rpc }) => {
let signerAlice = new InMemorySigner('edsk3QoqBuvdamxouPhin7swCvkQNgq4jP5KZPbwWNnwdZpSpJiEbq')

describe(`Test failing_noop through wallet api using: ${rpc}`, () => {
let Tezos: TezosToolkit;
beforeAll(async () => {
setup(true)
if (rpc.includes('parisnet')) {
Tezos.setRpcProvider('https://rpc.tzkt.io/parisnet'); // public archive node to fetch genesis block
} else if (rpc.includes('ghostnet')) {
Tezos.setRpcProvider('https://rpc.tzkt.io/ghostnet'); // public archive node to fetch genesis block
if (rpc.includes('paris')) {
Tezos = new TezosToolkit('https://rpc.tzkt.io/parisnet'); // public archive node to fetch genesis block
Tezos.setSignerProvider(signerAlice); // alice's secret key
} else if (rpc.includes('ghost')) {
Tezos = new TezosToolkit('https://rpc.tzkt.io/ghostnet'); // public archive node to fetch genesis block
Tezos.setSignerProvider(signerAlice); // alice's secret key
}
});

Expand Down Expand Up @@ -40,7 +43,7 @@ CONFIGS().forEach(({ lib, setup, rpc }) => {

beforeAll(async () => {
Mainnet = new TezosToolkit('https://rpc.tzkt.io/mainnet'); // public archive node to fetch genesis block
Mainnet.setSignerProvider(new InMemorySigner('edsk3QoqBuvdamxouPhin7swCvkQNgq4jP5KZPbwWNnwdZpSpJiEbq')); // alice's secret key
Mainnet.setSignerProvider(signerAlice); // alice's secret key
});

it('Verify that the wallet.failingNoop result is as expected when the block and secret key are kept constant', async () => {
Expand Down
Loading

0 comments on commit 4a449e8

Please sign in to comment.