Prepare for anchor publish

- switch to normal upstream anchor
- add mainnet to anchor's list
This commit is contained in:
Christian Kamm 2022-10-19 15:21:36 +02:00
parent 32be00fe71
commit e99e2fb84f
3 changed files with 33 additions and 3 deletions

View File

@ -5,11 +5,17 @@ skip-lint = false
[programs.localnet]
mango_v3_reimbursement = "m3roABq4Ta3sGyFRLdY4LH1KN16zBtg586gJ3UxoBzb"
[programs.devnet]
mango_v3_reimbursement = "m3roABq4Ta3sGyFRLdY4LH1KN16zBtg586gJ3UxoBzb"
[programs.mainnet]
mango_v3_reimbursement = "m3roABq4Ta3sGyFRLdY4LH1KN16zBtg586gJ3UxoBzb"
[registry]
url = "https://api.apr.dev"
[provider]
cluster = "localnet"
cluster = "mainnet"
wallet = "/Users/mc/.config/solana/id.json"
[scripts]

24
Cargo.lock generated
View File

@ -98,6 +98,8 @@ dependencies = [
[[package]]
name = "anchor-attribute-access-control"
version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "70f6ee9518f50ff4d434471ccf569186022bdd5ef65a21d14da3ea5231af944f"
dependencies = [
"anchor-syn",
"anyhow",
@ -110,6 +112,8 @@ dependencies = [
[[package]]
name = "anchor-attribute-account"
version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32c92bcf5388b52676d990f85bbfd838a8f5672393135063a50dc79b2b837c79"
dependencies = [
"anchor-syn",
"anyhow",
@ -123,6 +127,8 @@ dependencies = [
[[package]]
name = "anchor-attribute-constant"
version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0844974ac35e8ced62056b0d63777ebcdc5807438b8b189c881e2b647450b70a"
dependencies = [
"anchor-syn",
"proc-macro2 1.0.46",
@ -132,6 +138,8 @@ dependencies = [
[[package]]
name = "anchor-attribute-error"
version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0f7467345e67a6f1d4b862b9763a4160ad89d18c247b8c902807768f7b6e23df"
dependencies = [
"anchor-syn",
"proc-macro2 1.0.46",
@ -142,6 +150,8 @@ dependencies = [
[[package]]
name = "anchor-attribute-event"
version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8774e4c1ac71f71a5aea7e4932fb69c30e3b8155c4fa59fd69401195434528a9"
dependencies = [
"anchor-syn",
"anyhow",
@ -153,6 +163,8 @@ dependencies = [
[[package]]
name = "anchor-attribute-interface"
version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90eeb6e1c80f9f94fcef93a52813f6472186200e275e83cb3fac92b801de92f7"
dependencies = [
"anchor-syn",
"anyhow",
@ -165,6 +177,8 @@ dependencies = [
[[package]]
name = "anchor-attribute-program"
version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac515a7a5a4fea7fc768b1cec40ddb948e148ea657637c75f94f283212326cb9"
dependencies = [
"anchor-syn",
"anyhow",
@ -176,6 +190,8 @@ dependencies = [
[[package]]
name = "anchor-attribute-state"
version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43dc667b62ff71450f19dcfcc37b0c408fd4ddd89e8650368c2b0984b110603f"
dependencies = [
"anchor-syn",
"anyhow",
@ -187,6 +203,8 @@ dependencies = [
[[package]]
name = "anchor-derive-accounts"
version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7354d583a06701d24800a8ec4c2b0491f62581a331af349205e23421e0b56643"
dependencies = [
"anchor-syn",
"anyhow",
@ -198,6 +216,8 @@ dependencies = [
[[package]]
name = "anchor-lang"
version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff5f57ec5e12fa6874b27f3d5c1f6f44302d3ad86c1266197ff7611bf6f5d251"
dependencies = [
"anchor-attribute-access-control",
"anchor-attribute-account",
@ -220,6 +240,8 @@ dependencies = [
[[package]]
name = "anchor-spl"
version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d65904c3106851f6d1bb87d504044764819d69c51d2b4346d59d399d8afa7d18"
dependencies = [
"anchor-lang",
"solana-program",
@ -230,6 +252,8 @@ dependencies = [
[[package]]
name = "anchor-syn"
version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "55aa1e680d9471342122ed5b6bc13bf5da473b0f7e4677d41a6954e5cc8ad155"
dependencies = [
"anyhow",
"bs58 0.3.1",

View File

@ -17,8 +17,8 @@ default = []
test-bpf = []
[dependencies]
anchor-lang = { path = "../../../mango-v4/anchor/lang", features = ["init-if-needed"] }
anchor-spl = { path = "../../../mango-v4/anchor/spl" }
anchor-lang = { version = "0.25.0", features = ["init-if-needed"] }
anchor-spl = { version = "0.25.0" }
solana-program = "~1.10.29"
static_assertions = "1.1"