Skip to content

Commit

Permalink
test: weeklynet 2024-03-06 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hui-an-yang committed Mar 7, 2024
1 parent dc0254c commit 3c4164b
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});
Expand Down
60 changes: 42 additions & 18 deletions integration-tests/__tests__/rpc/get-protocol-constants.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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'),
Expand Down
7 changes: 4 additions & 3 deletions integration-tests/__tests__/wallet/failing-noop.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});
Expand Down
10 changes: 5 additions & 5 deletions integration-tests/known-contracts-ProtoALph.ts
Original file line number Diff line number Diff line change
@@ -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",
};

0 comments on commit 3c4164b

Please sign in to comment.