Skip to content

Commit

Permalink
successfully anchor built and anchor deployed to localnet:8899 cluste…
Browse files Browse the repository at this point in the history
…r using local tes validator

(.venv) ~/devs/anarcrypt.sol/AnnAHeiM/anchor git:[main] anchor deploy# Veuillez saisir le message de validation pour vos modifications. Les lignes Deploying cluster: http://127.0.0.1:8899# commençant par '#' seront ignorées, et un message vide abandonne la validation. Upgrade
authority: /home/anarchsun/.config/solana/id.json# Deploying program "ana"...# Sur la branche main Program path: /home/anarchsun/devs/anarcrypt.sol/AnnAHeiM/anchor/target/deploy/ana.so...# Votre branche est à jour avec 'origin/main'. Program Id:
7GwbA3FMiRgtsHndhTL5a47iqqM1zuMJ3iC4RtedpPpw#
Signature: 33y9b19Gafg9GoeijavCTCNJ1BN56PVw56fLboYmsjEqnz4bWz2NiFZ6bmKekqYcnjXR3vSy5agyrbgaj1oPKdTV# Deploying program "onchain_voting"... Program path: /home/anarchsun/devs/anarcrypt.sol/AnnAHeiM/anchor/target/deploy/onchain_voting.so... Program Id:
96ZbjmztJKJDiZJFyDRJc1bYxZmATZMS8PofLYDJQAW3 Signature: 4DSK1Lrnbdq8XQ1ufzb2DiQ4QcUi6jVuUF7SPCUvkxt8xKpC7Bf6eCpCJSehdX5B5SDoMhzd6a5BiSEEmwv5mgpa
Deploy success
  • Loading branch information
RastDjuss authored and RastDjuss committed Feb 28, 2025
1 parent 6578794 commit 0ec687b
Show file tree
Hide file tree
Showing 48 changed files with 27,522 additions and 20,882 deletions.
6,216 changes: 649 additions & 5,567 deletions anchor/Cargo.lock

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions anchor/programs/ana/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ idl-build = ["anchor-lang/idl-build"]

[dependencies]
anchor-lang = "0.30.1"
sns-sdk = "1.5.1"
solana-sdk = "1.18.11"
2 changes: 2 additions & 0 deletions anchor/programs/onchain-voting/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ crate-type = ["cdylib", "lib"]
name = "onchain_voting"

[features]
idl-build = ["anchor-lang/idl-build"]

no-entrypoint = []
no-idl = []
no-log-ix-name = []
Expand Down
3 changes: 0 additions & 3 deletions anchor/target/CACHEDIR.TAG

This file was deleted.

160 changes: 160 additions & 0 deletions anchor/target/idl/ana.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
{
"address": "7GwbA3FMiRgtsHndhTL5a47iqqM1zuMJ3iC4RtedpPpw",
"metadata": {
"name": "ana",
"version": "0.1.0",
"spec": "0.1.0",
"description": "Created with Anchor"
},
"instructions": [
{
"name": "close",
"discriminator": [
98,
165,
201,
177,
108,
65,
206,
96
],
"accounts": [
{
"name": "payer",
"writable": true,
"signer": true
},
{
"name": "ana",
"writable": true
}
],
"args": []
},
{
"name": "decrement",
"discriminator": [
106,
227,
168,
59,
248,
27,
150,
101
],
"accounts": [
{
"name": "ana",
"writable": true
}
],
"args": []
},
{
"name": "increment",
"discriminator": [
11,
18,
104,
9,
104,
174,
59,
33
],
"accounts": [
{
"name": "ana",
"writable": true
}
],
"args": []
},
{
"name": "initialize",
"discriminator": [
175,
175,
109,
31,
13,
152,
155,
237
],
"accounts": [
{
"name": "payer",
"writable": true,
"signer": true
},
{
"name": "ana",
"writable": true,
"signer": true
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": []
},
{
"name": "set",
"discriminator": [
198,
51,
53,
241,
116,
29,
126,
194
],
"accounts": [
{
"name": "ana",
"writable": true
}
],
"args": [
{
"name": "value",
"type": "u8"
}
]
}
],
"accounts": [
{
"name": "Ana",
"discriminator": [
119,
77,
173,
208,
132,
255,
123,
254
]
}
],
"types": [
{
"name": "Ana",
"type": {
"kind": "struct",
"fields": [
{
"name": "count",
"type": "u8"
}
]
}
}
]
}
125 changes: 125 additions & 0 deletions anchor/target/idl/onchain_voting.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
"address": "96ZbjmztJKJDiZJFyDRJc1bYxZmATZMS8PofLYDJQAW3",
"metadata": {
"name": "onchain_voting",
"version": "0.1.0",
"spec": "0.1.0",
"description": "Created with Anchor"
},
"instructions": [
{
"name": "gib_vote",
"discriminator": [
123,
118,
129,
88,
142,
252,
195,
85
],
"accounts": [
{
"name": "vote_account",
"writable": true
},
{
"name": "signer",
"signer": true
}
],
"args": [
{
"name": "vote_type",
"type": {
"defined": {
"name": "VoteType"
}
}
}
]
},
{
"name": "init_vote_bank",
"discriminator": [
188,
23,
119,
203,
213,
60,
75,
218
],
"accounts": [
{
"name": "vote_account",
"writable": true,
"signer": true
},
{
"name": "signer",
"writable": true,
"signer": true
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": []
}
],
"accounts": [
{
"name": "VoteBank",
"discriminator": [
83,
109,
30,
62,
146,
35,
200,
133
]
}
],
"types": [
{
"name": "VoteBank",
"type": {
"kind": "struct",
"fields": [
{
"name": "is_open_to_vote",
"type": "bool"
},
{
"name": "gm",
"type": "u64"
},
{
"name": "gn",
"type": "u64"
}
]
}
},
{
"name": "VoteType",
"type": {
"kind": "enum",
"variants": [
{
"name": "GM"
},
{
"name": "GN"
}
]
}
}
]
}
Loading

0 comments on commit 0ec687b

Please sign in to comment.