From 3c4164ba317b57aa3157f9bbb8fcdca654c17ded Mon Sep 17 00:00:00 2001 From: huianyang Date: Wed, 6 Mar 2024 16:41:27 -0800 Subject: [PATCH] test: weeklynet 2024-03-06 changes --- .../contract/operations/failing-noop.spec.ts | 7 ++- .../rpc/get-protocol-constants.spec.ts | 60 +++++++++++++------ .../__tests__/wallet/failing-noop.spec.ts | 7 ++- .../known-contracts-ProtoALph.ts | 10 ++-- 4 files changed, 55 insertions(+), 29 deletions(-) diff --git a/integration-tests/__tests__/contract/operations/failing-noop.spec.ts b/integration-tests/__tests__/contract/operations/failing-noop.spec.ts index 5e5ea19ded..5030b0313e 100644 --- a/integration-tests/__tests__/contract/operations/failing-noop.spec.ts +++ b/integration-tests/__tests__/contract/operations/failing-noop.spec.ts @@ -10,11 +10,12 @@ CONFIGS().forEach(({ rpc }) => { let Tezos: TezosToolkit; beforeAll(async () => { - if(rpc.includes('oxfordnet')){ + if (rpc.includes('oxfordnet')) { Tezos = new TezosToolkit('https://rpc.tzkt.io/oxfordnet'); - } - if(rpc.includes('ghostnet')){ + } else if (rpc.includes('ghostnet')) { Tezos = new TezosToolkit('https://rpc.tzkt.io/ghostnet'); + } else { + Tezos = new TezosToolkit(rpc); } Tezos.setSignerProvider(new InMemorySigner(aliceSKey)); }); diff --git a/integration-tests/__tests__/rpc/get-protocol-constants.spec.ts b/integration-tests/__tests__/rpc/get-protocol-constants.spec.ts index a3ac693227..d71826db11 100644 --- a/integration-tests/__tests__/rpc/get-protocol-constants.spec.ts +++ b/integration-tests/__tests__/rpc/get-protocol-constants.spec.ts @@ -275,54 +275,71 @@ CONFIGS().forEach(({ lib, protocol, rpc, networkType }) => { const constants: ConstantsResponseProto019 = await Tezos.rpc.getConstants(); expect(constants).toEqual({ + adaptive_issuance_activation_vote_enable: true, + adaptive_issuance_force_activation: false, adaptive_issuance_launch_ema_threshold: 10000000, adaptive_rewards_params: { center_dz: { denominator: "2", numerator: "1", }, - growth_rate: "115740740", - issuance_ratio_max: { + growth_rate: { + denominator: "100", + numerator: "1", + }, + initial_period: 10, + issuance_ratio_final_max: { denominator: "10", numerator: "1", }, - issuance_ratio_min: { - denominator: "200", + issuance_ratio_final_min: { + denominator: "400", numerator: "1", }, + issuance_ratio_initial_max: { + denominator: "200", + numerator: "11", + }, + issuance_ratio_initial_min: { + denominator: "200", + numerator: "9", + }, max_bonus: "50000000000000", radius_dz: { denominator: "50", numerator: "1", }, + transition_period: 50, }, + autostaking_enable: true, proof_of_work_nonce_size: 8, nonce_length: 32, nonce_revelation_threshold: 32, + ns_enable: true, max_anon_ops_per_block: 132, max_operation_data_length: 32768, max_proposals_per_delegate: 20, - preserved_cycles: 3, + max_slashing_per_block: 10000, blocks_per_cycle: 128, blocks_per_commitment: 16, hard_gas_limit_per_operation: new BigNumber(1040000), hard_gas_limit_per_block: new BigNumber(5200000), proof_of_work_threshold: new BigNumber(-1), origination_size: 257, - percentage_of_frozen_deposits_slashed_per_double_baking: 11, - percentage_of_frozen_deposits_slashed_per_double_attestation: 50, + percentage_of_frozen_deposits_slashed_per_double_baking: 700, + percentage_of_frozen_deposits_slashed_per_double_attestation: 5000, cost_per_byte: new BigNumber(250), hard_storage_limit_per_operation: new BigNumber(60000), issuance_weights: { attesting_reward_weight: 10240, baking_reward_bonus_weight: 5120, baking_reward_fixed_portion_weight: 5120, - base_total_issued_per_minute: "85007812", - liquidity_baking_subsidy_weight: 1280, + base_total_issued_per_minute: "80007812", seed_nonce_revelation_tip_weight: 1, vdf_revelation_tip_weight: 1, }, limit_of_delegation_over_baking: 9, + liquidity_baking_subsidy: new BigNumber(5000000), quorum_min: 2000, quorum_max: 7000, min_proposal_quorum: 500, @@ -331,30 +348,34 @@ CONFIGS().forEach(({ lib, protocol, rpc, networkType }) => { max_micheline_bytes_limit: 50000, max_micheline_node_count: 50000, michelson_maximum_type_size: 2001, - blocks_per_stake_snapshot: 64, + blocks_preservation_cycles: 1, max_operations_time_to_live: 120, consensus_committee_size: 7000, + consensus_rights_delay: 3, consensus_threshold: 4667, minimal_participation_ratio: { denominator: 3, numerator: 2, }, max_slashing_period: 2, + max_slashing_threshold: 2334, minimal_block_delay: new BigNumber(7), minimal_frozen_stake: "600000000", delay_increment_per_round: new BigNumber(7), + delegate_parameters_activation_delay: 3, + direct_ticket_spending_enable: false, edge_of_staking_over_delegation: 2, global_limit_of_staking_over_baking: 5, dal_parametric: { - attestation_lag: 4, - attestation_threshold: 50, + attestation_lag: 8, + attestation_threshold: 66, feature_enable: true, - number_of_shards: 2048, + number_of_shards: 512, + incentives_enable: false, number_of_slots: 32, - page_size: 4096, - redundancy_factor: 16, - slot_size: 65536, - blocks_per_epoch: 32, + page_size: 3967, + redundancy_factor: 8, + slot_size: 126944, }, minimal_stake: new BigNumber('6000000000'), cache_layout_size: 3, @@ -377,12 +398,15 @@ CONFIGS().forEach(({ lib, protocol, rpc, networkType }) => { smart_rollup_origination_size: 6314, smart_rollup_private_enable: true, smart_rollup_reveal_activation_level: { - dal_page: 0, + dal_attested_slots_validity_lag: 241920, + dal_page: 1, + dal_parameters: 1, metadata: 0, raw_data: { Blake2B: 0, }, }, + smart_rollup_riscv_pvm_enable: true, smart_rollup_stake_amount: "32000000", smart_rollup_timeout_period_in_blocks: 500, vdf_difficulty: new BigNumber('10000000'), diff --git a/integration-tests/__tests__/wallet/failing-noop.spec.ts b/integration-tests/__tests__/wallet/failing-noop.spec.ts index 09d11ed0f2..201533054d 100644 --- a/integration-tests/__tests__/wallet/failing-noop.spec.ts +++ b/integration-tests/__tests__/wallet/failing-noop.spec.ts @@ -10,11 +10,12 @@ CONFIGS().forEach(({ rpc }) => { let Tezos: TezosToolkit; beforeAll(async () => { - if(rpc.includes('oxfordnet')){ + if (rpc.includes('oxfordnet')) { Tezos = new TezosToolkit('https://rpc.tzkt.io/oxfordnet'); - } - if(rpc.includes('ghostnet')){ + } else if (rpc.includes('ghostnet')) { Tezos = new TezosToolkit('https://rpc.tzkt.io/ghostnet'); + } else { + Tezos = new TezosToolkit(rpc); } Tezos.setSignerProvider(new InMemorySigner(aliceSKey)); }); diff --git a/integration-tests/known-contracts-ProtoALph.ts b/integration-tests/known-contracts-ProtoALph.ts index d8a8b93389..b98d468bd6 100644 --- a/integration-tests/known-contracts-ProtoALph.ts +++ b/integration-tests/known-contracts-ProtoALph.ts @@ -1,8 +1,8 @@ import { KnownContracts } from './known-contracts'; export const knownContractsProtoALph: KnownContracts = { - contract: "KT1XXrWDuK77kQWX55zjD347Wh6bwgmJDfJ8", - bigMapContract: "KT1NSDEhMTWoX2Vie98NCtQV4fVYoPfqfAN3", - tzip12BigMapOffChainContract: "KT1X4c8BCVSDE7dtf5jPRtpYtYcaSFknwzN5", - saplingContract: "KT1JKC49zUSCXJGKT2p1bHVWmg47rAgF53ff", - onChainViewContractAddress: "KT1FVjUZeH5KM8tMwYvrVCMC3QFyDRUBFNLk", + contract: "KT19bQyws9qLWrhb2bfJ4BFyUkj73ZRWCTKs", + bigMapContract: "KT1S8D2rF8upZb2R7zcPKbPNDxmifduPhoP6", + tzip12BigMapOffChainContract: "KT1SAn3aMZHPuGeeWHo8Fon8zV1xYjZXFwoT", + saplingContract: "KT1GrYYw8dxxvXu48V9jPp2b8ZX5VmgST7Ft", + onChainViewContractAddress: "KT1LjkKnwRtppwEgtBwG53HELTZgANQNMMMJ", };