Skip to content

Commit

Permalink
test: updated to knownContractsPsQuebecB in config
Browse files Browse the repository at this point in the history
  • Loading branch information
hui-an-yang committed Sep 20, 2024
1 parent d15b44c commit 9d1a731
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
18 changes: 9 additions & 9 deletions integration-tests/__tests__/contract/estimation-tests.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ CONFIGS().forEach(({ lib, setup, knownBaker, createAddress, rpc }) => {
expect(estimate.minimalFeeMutez).toEqual(374);
expect(estimate.totalCost).toEqual(374);
expect(estimate.usingBaseFeeMutez).toEqual(374);
expect(estimate.consumedMilligas).toEqual(1455454);
expect(estimate.consumedMilligas).toEqual(1455798);
});

it('Verify .estimate.transfer for multiple internal transfers to unallocated account', async () => {
Expand All @@ -112,14 +112,14 @@ CONFIGS().forEach(({ lib, setup, knownBaker, createAddress, rpc }) => {
50)
).toTransferParams();
const estimate = await LowAmountTez.estimate.transfer(tx);
expect(estimate.gasLimit).toEqual(1570);
expect(estimate.gasLimit).toEqual(1571);
expect(estimate.storageLimit).toEqual(534);
expect(estimate.suggestedFeeMutez).toEqual(464);
expect(estimate.suggestedFeeMutez).toEqual(465);
expect(estimate.burnFeeMutez).toEqual(133500);
expect(estimate.minimalFeeMutez).toEqual(444);
expect(estimate.totalCost).toEqual(133944);
expect(estimate.usingBaseFeeMutez).toEqual(444);
expect(estimate.consumedMilligas).toEqual(1569983);
expect(estimate.minimalFeeMutez).toEqual(445);
expect(estimate.totalCost).toEqual(133945);
expect(estimate.usingBaseFeeMutez).toEqual(445);
expect(estimate.consumedMilligas).toEqual(1570327);
});

it('Verify .estimate.transfer for internal origination', async () => {
Expand All @@ -132,7 +132,7 @@ CONFIGS().forEach(({ lib, setup, knownBaker, createAddress, rpc }) => {
expect(estimate.minimalFeeMutez).toEqual(421);
expect(estimate.totalCost).toEqual(84671);
expect(estimate.usingBaseFeeMutez).toEqual(421);
expect(estimate.consumedMilligas).toEqual(1866078);
expect(estimate.consumedMilligas).toEqual(1866422);
});

it('Verify .estimate.transfer for multiple internal originations', async () => {
Expand All @@ -145,7 +145,7 @@ CONFIGS().forEach(({ lib, setup, knownBaker, createAddress, rpc }) => {
expect(estimate.minimalFeeMutez).toEqual(539);
expect(estimate.totalCost).toEqual(164039);
expect(estimate.usingBaseFeeMutez).toEqual(539);
expect(estimate.consumedMilligas).toEqual(2391231);
expect(estimate.consumedMilligas).toEqual(2391575);
// Do the actual operation
const op2 = await contract.methods.do(originate2()).send();
await op2.confirmation();
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/__tests__/rpc/nodes.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ CONFIGS().forEach(
knownViewContract,
}) => {
const Tezos = lib;
const unrestrictedRPCNode = rpc.endsWith("ecadinfra.com") ? test.skip : test;
const unrestrictedRPCNode = rpc.includes("teztnets.com") ? test : test.skip;
const quebecbnet = protocol === Protocols.PsQuebecB ? test : test.skip;
let ticketContract: DefaultContractType;

Expand Down Expand Up @@ -165,7 +165,7 @@ CONFIGS().forEach(
expect(bigMapValue).toBeDefined();
});

it(`Verify that rpcClient.getAllDelegates returns all delegates from RPC`, async () => {
unrestrictedRPCNode(`Verify that rpcClient.getAllDelegates returns all delegates from RPC`, async () => {
const allDelegates = await rpcClient.getAllDelegates();
expect(allDelegates).toBeDefined();

Expand Down
10 changes: 5 additions & 5 deletions integration-tests/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,19 +139,19 @@ const parisnetEphemeral: Config =
});

const parisnetSecretKey: Config =
{ ...parisnetEphemeral, ...{ signerConfig: defaultSecretKey }, ...{ defaultRpc: 'https://rpc.pariscnet.teztnets.com/' } };
{ ...parisnetEphemeral, ...{ signerConfig: defaultSecretKey } };

const quebecbnetEphemeral: Config =
defaultConfig({
networkName: 'QUEBECBNET',
protocol: Protocols.PsQuebecB,
defaultRpc: 'https://rpc.quebecbnet.teztnets.com/',
knownContracts: knownContractsPsParisCZ,
defaultRpc: 'https://quebecbnet.ecadinfra.com/',
knownContracts: knownContractsPsQuebecB,
signerConfig: defaultEphemeralConfig('https://keygen.ecadinfra.com/quebecbnet')
});

const quebecbnetSecretKey: Config =
{ ...quebecbnetEphemeral, ...{ signerConfig: defaultSecretKey }, ...{ defaultRpc: 'https://rpc.quebecbcnet.teztnets.com/' } };
{ ...quebecbnetEphemeral, ...{ signerConfig: defaultSecretKey }, ...{ defaultRpc: 'https://rpc.quebecbnet.teztnets.com/' } };

const ghostnetEphemeral: Config =
defaultConfig({
Expand All @@ -163,7 +163,7 @@ const ghostnetEphemeral: Config =
});

const ghostnetSecretKey: Config =
{ ...ghostnetEphemeral, ...{ signerConfig: defaultSecretKey }, ...{ defaultRpc: 'http://ecad-tezos-ghostnet-rolling-1.i.ecadinfra.com/' } };
{ ...ghostnetEphemeral, ...{ signerConfig: defaultSecretKey }, ...{ defaultRpc: 'https://ghostnet.ecadinfra.com/' } };

const weeklynetEphemeral: Config =
defaultConfig({
Expand Down

0 comments on commit 9d1a731

Please sign in to comment.