File tree Expand file tree Collapse file tree 8 files changed +1407
-25
lines changed
basics/hello-solana/poseidon Expand file tree Collapse file tree 8 files changed +1407
-25
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ resolution = true
55skip-lint = false
66
77[programs .localnet ]
8- poseidon = " 8krac1be77qraaZQGzHypmngXH6MbftjBmcucLtQLahG "
8+ hello_solana = " 84mLf5VZKf58tQ1VkUtsthxuR8fSeDLv8ZKemANC53oF "
99
1010[registry ]
1111url = " https://api.apr.dev"
@@ -15,4 +15,4 @@ cluster = "Localnet"
1515wallet = " ~/.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"
Original file line number Diff line number Diff line change 11[package ]
2- name = " poseidon "
2+ name = " hello-solana "
33version = " 0.1.0"
44description = " Created with Anchor"
55edition = " 2021"
66
77[lib ]
88crate-type = [" cdylib" , " lib" ]
9- name = " poseidon "
9+ name = " hello_solana "
1010
1111[features ]
1212default = []
File renamed without changes.
Original file line number Diff line number Diff line change 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 { }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import * as anchor from '@coral-xyz/anchor' ;
22import { 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.
Original file line number Diff line number Diff line change 11import { 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
You can’t perform that action at this time.
0 commit comments