-
Notifications
You must be signed in to change notification settings - Fork 1
/
program_ids.go
94 lines (71 loc) · 4.6 KB
/
program_ids.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// Copyright 2021 github.com/gagliardetto
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package base
import "github.com/cielu/go-solana/common"
var (
// Create new accounts, allocate account data, assign accounts to owning programs,
// transfer lamports from System Program owned accounts and pay transacation fees.
SystemProgramID = common.StrToAddress("11111111111111111111111111111111")
// Add configuration data to the chain and the list of public keys that are permitted to modify it.
ConfigProgramID = common.StrToAddress("Config1111111111111111111111111111111111111")
// Create and manage accounts representing stake and rewards for delegations to validators.
StakeProgramID = common.StrToAddress("Stake11111111111111111111111111111111111111")
// Create and manage accounts that track validator voting state and rewards.
VoteProgramID = common.StrToAddress("Vote111111111111111111111111111111111111111")
BPFLoaderDeprecatedProgramID = common.StrToAddress("BPFLoader1111111111111111111111111111111111")
// Deploys, upgrades, and executes programs on the chain.
BPFLoaderProgramID = common.StrToAddress("BPFLoader2111111111111111111111111111111111")
BPFLoaderUpgradeableProgramID = common.StrToAddress("BPFLoaderUpgradeab1e11111111111111111111111")
// Verify secp256k1 public key recovery operations (ecrecover).
Secp256k1ProgramID = common.StrToAddress("KeccakSecp256k11111111111111111111111111111")
FeatureProgramID = common.StrToAddress("Feature111111111111111111111111111111111111")
ComputeBudget = common.StrToAddress("ComputeBudget111111111111111111111111111111")
//
SPLNameServiceProgramID = common.StrToAddress("namesLPneVptA9Z5rqUDD9tMTWEJwofgaYwp8cawRkX")
MetaplexTokenMetaProgramID = common.StrToAddress("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")
ComputeBudgetProgramID = common.StrToAddress("ComputeBudget111111111111111111111111111111")
AddressLookupTableProgramID = common.StrToAddress("AddressLookupTab1e1111111111111111111111111")
)
// SPL:
var (
// A Token program on the Solana blockchain.
// This program defines a common implementation for Fungible and Non Fungible tokens.
TokenProgramID = common.StrToAddress("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA")
Token2022ProgramID = common.StrToAddress("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb")
// A Uniswap-like exchange for the Token program on the Solana blockchain,
// implementing multiple automated market maker (AMM) curves.
TokenSwapProgramID = common.StrToAddress("SwaPpA9LAaLfeLi3a68M4DjnLqgtticKg6CnyNwgAC8")
TokenSwapFeeOwner = common.StrToAddress("HfoTxFR1Tm6kGmWgYWD6J7YHVy1UwqSULUGVLXkJqaKN")
// A lending protocol for the Token program on the Solana blockchain inspired by Aave and Compound.
TokenLendingProgramID = common.StrToAddress("LendZqTs8gn5CTSJU1jWKhKuVpjJGom45nnwPb2AMTi")
// This program defines the convention and provides the mechanism for mapping
// the user's wallet address to the associated token accounts they hold.
SPLAssociatedTokenAccountProgramID = common.StrToAddress("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL")
// The Memo program is a simple program that validates a string of UTF-8 encoded characters
// and verifies that any accounts provided are signers of the transaction.
// The program also logs the memo, as well as any verified signer addresses,
// to the transaction log, so that anyone can easily observe memos
// and know they were approved by zero or more addresses
// by inspecting the transaction log from a trusted provider.
MemoProgramID = common.StrToAddress("MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr")
)
var (
// The Mint for native SOL Token accounts
SolMint = common.StrToAddress("So11111111111111111111111111111111111111112")
SolMint2022 = common.StrToAddress("9pan9bMn5HatX4EJdBwg9VgCa7Uz5HL8N1m5D3NdXejP")
WrappedSol = SolMint
TokenMetadataProgramID = common.StrToAddress("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")
MetaplexCandyMachineV2ProgramID = common.StrToAddress("cndy3Z4yapfJBmL3ShUp5exZKqR3z33thTzeNMm2gRZ")
MetaplexTokenMetadataProgramID = common.StrToAddress("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s")
)