Skip to content
This repository was archived by the owner on Feb 9, 2025. It is now read-only.

Commit a9db5b5

Browse files
authored
Update program id (#38)
1 parent a7eedd5 commit a9db5b5

File tree

6 files changed

+23
-13
lines changed

6 files changed

+23
-13
lines changed

Anchor.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
seeds = false
33

44
[programs.localnet]
5-
nft_voter = "FDfF7jzJDCEkFWNi3is487k8rFPJxFkU821t2pQ1vDr1"
5+
nft_voter = "GnftV5kLjd67tvHpNGyodwWveEKivz3ZWvvE3Z4xi2iw"
66

77
[registry]
88
url = "https://anchor.projectserum.com"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@solana/governance-program-library",
3-
"version": "0.12.0",
3+
"version": "0.13.0",
44
"description": "Client for Governance Program Library which is a set of extensions for Solana's spl-governance program.",
55
"author": "Solana Maintainers <[email protected]>",
66
"license": "MIT",

programs/nft-voter/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub mod tools;
1111

1212
use spl_governance_addin_api::voter_weight::VoterWeightAction;
1313

14-
declare_id!("FDfF7jzJDCEkFWNi3is487k8rFPJxFkU821t2pQ1vDr1");
14+
declare_id!("GnftV5kLjd67tvHpNGyodwWveEKivz3ZWvvE3Z4xi2iw");
1515

1616
#[program]
1717
pub mod nft_voter {

run-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ anchor build
1818
# update on chain program and IDL, atm used for testing/developing
1919
# anchor deploy --provider.cluster devnet --provider.wallet ${PROVIDER_WALLET}
2020
# anchor idl upgrade --provider.cluster devnet --provider.wallet ${PROVIDER_WALLET}\
21-
# --filepath target/idl/nft_voter.json FDfF7jzJDCEkFWNi3is487k8rFPJxFkU821t2pQ1vDr1
21+
# --filepath target/idl/nft_voter.json GnftV5kLjd67tvHpNGyodwWveEKivz3ZWvvE3Z4xi2iw
2222

2323
# update types in npm package and publish the npm package
2424
cp ./target/types/nft_voter.ts src/nft_voter.ts

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { PublicKey } from '@solana/web3.js';
33
import { NftVoter, IDL } from './nft_voter';
44

55
export const NFT_VOTER_ID = new PublicKey(
6-
'FDfF7jzJDCEkFWNi3is487k8rFPJxFkU821t2pQ1vDr1',
6+
'GnftV5kLjd67tvHpNGyodwWveEKivz3ZWvvE3Z4xi2iw',
77
);
88

99
export class NftVoterClient {

src/nft_voter.ts

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -535,26 +535,31 @@ export type NftVoter = {
535535
},
536536
{
537537
"code": 6017,
538+
"name": "InvalidNftAmount",
539+
"msg": "Invalid NFT amount"
540+
},
541+
{
542+
"code": 6018,
538543
"name": "NftAlreadyVoted",
539544
"msg": "NFT already voted"
540545
},
541546
{
542-
"code": 6018,
547+
"code": 6019,
543548
"name": "InvalidProposalForNftVoteRecord",
544549
"msg": "Invalid Proposal for NftVoteRecord"
545550
},
546551
{
547-
"code": 6019,
552+
"code": 6020,
548553
"name": "InvalidTokenOwnerForNftVoteRecord",
549554
"msg": "Invalid TokenOwner for NftVoteRecord"
550555
},
551556
{
552-
"code": 6020,
557+
"code": 6021,
553558
"name": "VoteRecordMustBeWithdrawn",
554559
"msg": "VoteRecord must be withdrawn"
555560
},
556561
{
557-
"code": 6021,
562+
"code": 6022,
558563
"name": "InvalidVoteRecordForNftVoteRecord",
559564
"msg": "Invalid VoteRecord for NftVoteRecord"
560565
}
@@ -1098,26 +1103,31 @@ export const IDL: NftVoter = {
10981103
},
10991104
{
11001105
"code": 6017,
1106+
"name": "InvalidNftAmount",
1107+
"msg": "Invalid NFT amount"
1108+
},
1109+
{
1110+
"code": 6018,
11011111
"name": "NftAlreadyVoted",
11021112
"msg": "NFT already voted"
11031113
},
11041114
{
1105-
"code": 6018,
1115+
"code": 6019,
11061116
"name": "InvalidProposalForNftVoteRecord",
11071117
"msg": "Invalid Proposal for NftVoteRecord"
11081118
},
11091119
{
1110-
"code": 6019,
1120+
"code": 6020,
11111121
"name": "InvalidTokenOwnerForNftVoteRecord",
11121122
"msg": "Invalid TokenOwner for NftVoteRecord"
11131123
},
11141124
{
1115-
"code": 6020,
1125+
"code": 6021,
11161126
"name": "VoteRecordMustBeWithdrawn",
11171127
"msg": "VoteRecord must be withdrawn"
11181128
},
11191129
{
1120-
"code": 6021,
1130+
"code": 6022,
11211131
"name": "InvalidVoteRecordForNftVoteRecord",
11221132
"msg": "Invalid VoteRecord for NftVoteRecord"
11231133
}

0 commit comments

Comments
 (0)