Skip to content

Commit

Permalink
pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
heyAyushh committed Nov 22, 2024
1 parent 6689125 commit 0ddf7cb
Show file tree
Hide file tree
Showing 8 changed files with 1,407 additions and 25 deletions.
4 changes: 2 additions & 2 deletions basics/hello-solana/poseidon/Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resolution = true
skip-lint = false

[programs.localnet]
poseidon = "8krac1be77qraaZQGzHypmngXH6MbftjBmcucLtQLahG"
hello_solana = "84mLf5VZKf58tQ1VkUtsthxuR8fSeDLv8ZKemANC53oF"

[registry]
url = "https://api.apr.dev"
Expand All @@ -15,4 +15,4 @@ cluster = "Localnet"
wallet = "~/.config/solana/id.json"

[scripts]
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
test = "pnpm run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
1,387 changes: 1,387 additions & 0 deletions basics/hello-solana/poseidon/pnpm-lock.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "poseidon"
name = "hello-solana"
version = "0.1.0"
description = "Created with Anchor"
edition = "2021"

[lib]
crate-type = ["cdylib", "lib"]
name = "poseidon"
name = "hello_solana"

[features]
default = []
Expand Down
11 changes: 11 additions & 0 deletions basics/hello-solana/poseidon/programs/hello-solana/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
use anchor_lang::prelude::*;
declare_id!("84mLf5VZKf58tQ1VkUtsthxuR8fSeDLv8ZKemANC53oF");
#[program]
pub mod hello_solana {
use super::*;
pub fn initialize(ctx: Context<InitializeContext>) -> Result<()> {
Ok(())
}
}
#[derive(Accounts)]
pub struct InitializeContext {}
16 changes: 0 additions & 16 deletions basics/hello-solana/poseidon/programs/poseidon/src/lib.rs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as anchor from '@coral-xyz/anchor';
import { Program } from '@coral-xyz/anchor';
import { Poseidon } from '../target/types/poseidon';
import { HelloSolana } from '../target/types/hello_solana';

describe('poseidon', () => {
describe('hello-solana', () => {
// Configure the client to use the local cluster.
anchor.setProvider(anchor.AnchorProvider.env());

const program = anchor.workspace.Poseidon as Program<Poseidon>;
const program = anchor.workspace.HelloSolana as Program<HelloSolana>;

it('Is initialized!', async () => {
// Add your test here.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Pubkey, type Result } from '@solanaturbine/poseidon';

export default class Poseidon {
static PROGRAM_ID = new Pubkey('8krac1be77qraaZQGzHypmngXH6MbftjBmcucLtQLahG');
export default class HelloSolana {
static PROGRAM_ID = new Pubkey('84mLf5VZKf58tQ1VkUtsthxuR8fSeDLv8ZKemANC53oF');

initialize(): Result {
// Write your program here
Expand Down

0 comments on commit 0ddf7cb

Please sign in to comment.