Skip to content

Commit 0ddf7cb

Browse files
committed
pnpm
1 parent 6689125 commit 0ddf7cb

File tree

8 files changed

+1407
-25
lines changed

8 files changed

+1407
-25
lines changed

basics/hello-solana/poseidon/Anchor.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resolution = true
55
skip-lint = false
66

77
[programs.localnet]
8-
poseidon = "8krac1be77qraaZQGzHypmngXH6MbftjBmcucLtQLahG"
8+
hello_solana = "84mLf5VZKf58tQ1VkUtsthxuR8fSeDLv8ZKemANC53oF"
99

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

1717
[scripts]
18-
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
18+
test = "pnpm run ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"

basics/hello-solana/poseidon/pnpm-lock.yaml

Lines changed: 1387 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

basics/hello-solana/poseidon/programs/poseidon/Cargo.toml renamed to basics/hello-solana/poseidon/programs/hello-solana/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
2-
name = "poseidon"
2+
name = "hello-solana"
33
version = "0.1.0"
44
description = "Created with Anchor"
55
edition = "2021"
66

77
[lib]
88
crate-type = ["cdylib", "lib"]
9-
name = "poseidon"
9+
name = "hello_solana"
1010

1111
[features]
1212
default = []
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
use anchor_lang::prelude::*;
2+
declare_id!("84mLf5VZKf58tQ1VkUtsthxuR8fSeDLv8ZKemANC53oF");
3+
#[program]
4+
pub mod hello_solana {
5+
use super::*;
6+
pub fn initialize(ctx: Context<InitializeContext>) -> Result<()> {
7+
Ok(())
8+
}
9+
}
10+
#[derive(Accounts)]
11+
pub struct InitializeContext {}

basics/hello-solana/poseidon/programs/poseidon/src/lib.rs

Lines changed: 0 additions & 16 deletions
This file was deleted.

basics/hello-solana/poseidon/tests/poseidon.ts renamed to basics/hello-solana/poseidon/tests/hello-solana.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import * as anchor from '@coral-xyz/anchor';
22
import { Program } from '@coral-xyz/anchor';
3-
import { Poseidon } from '../target/types/poseidon';
3+
import { HelloSolana } from '../target/types/hello_solana';
44

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

9-
const program = anchor.workspace.Poseidon as Program<Poseidon>;
9+
const program = anchor.workspace.HelloSolana as Program<HelloSolana>;
1010

1111
it('Is initialized!', async () => {
1212
// Add your test here.

basics/hello-solana/poseidon/ts-programs/src/poseidon.ts renamed to basics/hello-solana/poseidon/ts-programs/src/helloSolana.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Pubkey, type Result } from '@solanaturbine/poseidon';
22

3-
export default class Poseidon {
4-
static PROGRAM_ID = new Pubkey('8krac1be77qraaZQGzHypmngXH6MbftjBmcucLtQLahG');
3+
export default class HelloSolana {
4+
static PROGRAM_ID = new Pubkey('84mLf5VZKf58tQ1VkUtsthxuR8fSeDLv8ZKemANC53oF');
55

66
initialize(): Result {
77
// Write your program here

0 commit comments

Comments
 (0)