magicblock-delegation-program 1.2.0

Delegation program for the Ephemeral Rollups
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "magicblock-delegation-program"
version = "1.2.0"
authors = ["Magicblock Labs <dev@magicblock.gg>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Delegation program for the Ephemeral Rollups"
homepage = "https://www.magicblock.gg/"
documentation = "https://docs.magicblock.gg/"
readme = "README.md"
keywords = [
    "solana",
    "crypto",
    "delegation",
    "ephemeral-rollups",
    "magicblock",
]
license = "MIT"
repository = "https://github.com/magicblock-labs/delegation-program"

[profile.release]
opt-level = "z"
lto = "fat"
codegen-units = 1
debug = 0
panic = "abort"
overflow-checks = false
incremental = false
strip = "symbols"

[lib]
name = "dlp"
crate-type = [
    "cdylib",
    "lib",
]
path = "src/lib.rs"

[[test]]
name = "test_call_handler"
path = "tests/test_call_handler.rs"

[[test]]
name = "test_call_handler_v2"
path = "tests/test_call_handler_v2.rs"

[[test]]
name = "test_cleartext_with_insertable_encrypted"
path = "tests/test_cleartext_with_insertable_encrypted.rs"

[[test]]
name = "test_close_validator_fees_vault"
path = "tests/test_close_validator_fees_vault.rs"

[[test]]
name = "test_commit_fees_on_undelegation"
path = "tests/test_commit_fees_on_undelegation.rs"

[[test]]
name = "test_commit_finalize"
path = "tests/test_commit_finalize.rs"

[[test]]
name = "test_commit_finalize_from_buffer"
path = "tests/test_commit_finalize_from_buffer.rs"

[[test]]
name = "test_commit_on_curve"
path = "tests/test_commit_on_curve.rs"

[[test]]
name = "test_commit_state"
path = "tests/test_commit_state.rs"

[[test]]
name = "test_commit_state_from_buffer"
path = "tests/test_commit_state_from_buffer.rs"

[[test]]
name = "test_commit_state_with_program_config"
path = "tests/test_commit_state_with_program_config.rs"

[[test]]
name = "test_commit_undelegate_zero_lamports_system_owned"
path = "tests/test_commit_undelegate_zero_lamports_system_owned.rs"

[[test]]
name = "test_delegate"
path = "tests/test_delegate.rs"

[[test]]
name = "test_delegate_magic_fee_vault"
path = "tests/test_delegate_magic_fee_vault.rs"

[[test]]
name = "test_delegate_on_curve"
path = "tests/test_delegate_on_curve.rs"

[[test]]
name = "test_delegate_with_actions"
path = "tests/test_delegate_with_actions.rs"

[[test]]
name = "test_delegation_confined_accounts"
path = "tests/test_delegation_confined_accounts.rs"

[[test]]
name = "test_finalize"
path = "tests/test_finalize.rs"

[[test]]
name = "test_init_fees_vault"
path = "tests/test_init_fees_vault.rs"

[[test]]
name = "test_init_magic_fee_vault"
path = "tests/test_init_magic_fee_vault.rs"

[[test]]
name = "test_init_validator_fees_vault"
path = "tests/test_init_validator_fees_vault.rs"

[[test]]
name = "test_lamports_settlement"
path = "tests/test_lamports_settlement.rs"

[[test]]
name = "test_protocol_claim_fees"
path = "tests/test_protocol_claim_fees.rs"

[[test]]
name = "test_top_up"
path = "tests/test_top_up.rs"

[[test]]
name = "test_undelegate"
path = "tests/test_undelegate.rs"

[[test]]
name = "test_undelegate_confined_account"
path = "tests/test_undelegate_confined_account.rs"

[[test]]
name = "test_undelegate_on_curve"
path = "tests/test_undelegate_on_curve.rs"

[[test]]
name = "test_undelegate_without_commit"
path = "tests/test_undelegate_without_commit.rs"

[[test]]
name = "test_validator_claim_fees"
path = "tests/test_validator_claim_fees.rs"

[[test]]
name = "test_whitelist_validator_for_program"
path = "tests/test_whitelist_validator_for_program.rs"

[dependencies.bincode]
version = "^1.3"

[dependencies.borsh]
version = "1.5.3"
features = ["derive"]

[dependencies.bytemuck]
version = ">=1"
features = ["derive"]

[dependencies.const-crypto]
version = "0.3.0"
optional = true

[dependencies.dlp-api]
version = "0.1.1"
default-features = false
package = "magicblock-delegation-program-api"

[dependencies.num_enum]
version = "^0.7.2"

[dependencies.pinocchio]
version = "0.10.1"
optional = true

[dependencies.pinocchio-associated-token-account]
version = "0.3.0"
optional = true

[dependencies.pinocchio-log]
version = "0.5.1"
optional = true

[dependencies.pinocchio-pubkey]
version = "0.3.0"
optional = true

[dependencies.pinocchio-system]
version = "0.5.0"
optional = true

[dependencies.pinocchio-token]
version = "0.5.0"
optional = true

[dependencies.rand]
version = "=0.8.5"
features = ["small_rng"]
optional = true

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.solana-address]
version = "2.0"
features = [
    "bytemuck",
    "decode",
    "syscalls",
    "curve25519",
    "std",
]

[dependencies.solana-curve25519]
version = ">=2.2"
optional = true

[dependencies.solana-instruction]
version = "3.0.0"

[dependencies.solana-program]
version = ">=1.16, <3.0.0"

[dependencies.solana-sdk]
version = ">=1.16"
optional = true

[dependencies.solana-security-txt]
version = ">=1.1"
optional = true

[dependencies.solana-sha256-hasher]
version = "3.1.0"

[dependencies.static_assertions]
version = "1.1.0"

[dependencies.strum]
version = ">=0.27"
features = ["derive"]

[dependencies.thiserror]
version = ">=1"

[dev-dependencies.assertables]
version = "9.8.2"

[dev-dependencies.dlp-api]
version = "0.1.1"
package = "magicblock-delegation-program-api"

[dev-dependencies.rand]
version = "=0.8.5"
features = ["small_rng"]

[dev-dependencies.solana-program-test]
version = ">=1.16"

[dev-dependencies.solana-pubkey]
version = "3.0.0"

[dev-dependencies.solana-sdk]
version = ">=1.16"

[dev-dependencies.tokio]
version = "^1.0"
features = ["full"]

[features]
default = [
    "program",
    "solana-security-txt",
]
diff = [
    "pinocchio-rt",
    "dlp-api/diff",
]
entrypoint = []
log-cost = []
logging = []
no-entrypoint = []
pinocchio-rt = [
    "dep:pinocchio",
    "dep:pinocchio-log",
    "dep:pinocchio-pubkey",
    "dep:pinocchio-system",
    "dep:const-crypto",
    "dep:solana-curve25519",
]
processor = ["diff"]
program = [
    "processor",
    "entrypoint",
]
sdk = [
    "diff",
    "dlp-api/cpi",
    "dlp-api/instruction",
]
unit_test_config = ["dlp-api/unit_test_config"]

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ['cfg(target_os, values("solana"))']