Skip to content

Commit

Permalink
🧩 PragmaX Testnet 0.1.0 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvolveArt authored Jul 6, 2023
1 parent 24e6c12 commit 3ee08b4
Show file tree
Hide file tree
Showing 8 changed files with 61,537 additions and 57,786 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ jobs:
matrix:
platform:
- linux/amd64
- linux/arm/v6
- linux/arm/v7
- linux/arm64
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
61,451 changes: 61,451 additions & 0 deletions crates/node/chain-specs/pragma-testnet-plain.json

Large diffs are not rendered by default.

80 changes: 80 additions & 0 deletions crates/node/chain-specs/pragma-testnet.json

Large diffs are not rendered by default.

70 changes: 0 additions & 70 deletions crates/node/chain-specs/testnet-sharingan-raw.json

This file was deleted.

57,707 changes: 0 additions & 57,707 deletions crates/node/chain-specs/testnet-sharingan.json

This file was deleted.

6 changes: 3 additions & 3 deletions crates/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ pub type ChainSpec = sc_service::GenericChainSpec<GenesisConfig>;
/// Specialized `ChainSpec` for development.
pub type DevChainSpec = sc_service::GenericChainSpec<DevGenesisExt>;

/// Starknet testnet SN_GOERLI
pub const CHAIN_ID_STARKNET_TESTNET: u128 = 0x534e5f474f45524c49;
/// Pragma testnet PRAGMA_GOERLI
pub const CHAIN_ID_PRAGMA_TESTNET: u128 = 0x505241474D415F474F45524C49;

/// Extension for the dev genesis config to support a custom changes to the genesis state.
#[derive(Serialize, Deserialize)]
Expand Down Expand Up @@ -208,7 +208,7 @@ fn testnet_genesis(
let udc_contract_address = Felt252Wrapper::from_hex_be(UDC_CONTRACT_ADDRESS).unwrap();

let public_key = Felt252Wrapper::from_hex_be(PUBLIC_KEY).unwrap();
let chain_id = Felt252Wrapper(FieldElement::from_byte_slice_be(&CHAIN_ID_STARKNET_TESTNET.to_be_bytes()).unwrap());
let chain_id = Felt252Wrapper(FieldElement::from_byte_slice_be(&CHAIN_ID_PRAGMA_TESTNET.to_be_bytes()).unwrap());

GenesisConfig {
system: SystemConfig {
Expand Down
2 changes: 1 addition & 1 deletion crates/node/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub enum Sealing {
#[derive(Debug, Copy, Clone, PartialEq, clap::ValueEnum)]
pub enum Testnet {
Local,
Sharingan,
Pragma,
}

#[derive(Debug, clap::Parser)]
Expand Down
4 changes: 2 additions & 2 deletions crates/node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ pub fn run() -> sc_cli::Result<()> {
Some(Testnet::Local) => {
cli.run.run_cmd.shared_params.chain = Some(madara_path + "/chain-specs/local-raw.json");
}
Some(Testnet::Sharingan) => {
Some(Testnet::Pragma) => {
cli.run.run_cmd.shared_params.chain =
Some(madara_path + "/chain-specs/testnet-sharingan-raw.json");
Some(madara_path + "/chain-specs/testnet-pragma-raw.json");
}
None => {}
};
Expand Down

0 comments on commit 3ee08b4

Please sign in to comment.