[workspace] members = [".", "mock_contracts/mock_mt", "mock_contracts/mock_ft", "factory", "factory_kernel", "factory_vault", "common_data", "vault"] [package] name = "dew-finance-contracts" description = "Dew Finance - Chain-Abstracted Vault Protocol on NEAR" version = "0.1.0" edition = "2021" # NEP-0330 is automatically implemented for all contracts built with https://github.com/near/cargo-near. # Link to the repository will be available via `contract_source_metadata` view-function. repository = "https://github.com/Meteor-Wallet/dew-finance-contract" [lib] crate-type = ["cdylib", "rlib"] # fields to configure build with WASM reproducibility, according to specs # in https://github.com/near/NEPs/blob/master/neps/nep-0330.md [package.metadata.near.reproducible_build] # docker image, descriptor of build environment image = "sourcescan/cargo-near:0.16.0-rust-1.86.0" # tag after colon above serves only descriptive purpose; image is identified by digest image_digest = "sha256:3220302ebb7036c1942e772810f21edd9381edf9a339983da43487c77fbad488" # list of environment variables names, whose values, if set, will be used as external build parameters # in a reproducible manner # supported by `sourcescan/cargo-near:0.10.1-rust-1.82.0` image or later images passed_env = [] # build command inside of docker container # if docker image from default gallery is used https://hub.docker.com/r/sourcescan/cargo-near/tags, # the command may be any combination of flags of `cargo-near`, # supported by respective version of binary inside the container besides `--no-locked` flag container_build_command = [ "cargo", "near", "build", "non-reproducible-wasm", "--locked", ] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] near-sdk = "5.24.0" alloy-rlp = "0.3.12" alloy-consensus = "1.0.24" alloy-json-abi = "1.3.0" hex = "0.4.3" serde_json = "1.0.145" alloy-dyn-abi = "1.3.0" base64 = "0.22.1" bincode = "1.3.3" anchor-idl = "0.4.1" solana-message = { version = "3.0.0", features = ["serde"]} sha2 = "0.10.9" borsh = "1.5.7" thiserror = "2.0.0" ed25519-dalek = "2.2.0" uint = "0.10.0" bs58 = {version = "0.5.1", default-features=false} tiny-keccak = "2.0.2" dcap-qvl = { git = "https://github.com/mattlockyer/dcap-qvl" } near-contract-standards = "5.16.0" paste = "1.0" sha3 = "0.10.8" curve25519-dalek = { version = "4.1.3", features = [ "group", "serde", ], default-features = false } serde = { version = "1.0.225", features = ["derive"] } derive_more = { version = "2.0.1", features = [ "from", ] } k256 = "0.13.4" common_data = { path = "./common_data" } dew-schema-language = {git = "https://github.com/Meteor-Wallet/dew-schema-language", rev = "ad94962"} [target.'cfg(target_arch = "wasm32")'.dependencies] getrandom = { version = "0.2.12", features = ["custom"] } [dev-dependencies] near-sdk = { version = "5.24.0", features = ["unit-testing"] } near-workspaces = { version = "0.22.0", features = ["unstable"] } tokio = { version = "1.12.0", features = ["full"] } serde_json = "1.0.145" [profile.release] codegen-units = 1 # Tell `rustc` to optimize for small code size. opt-level = "z" lto = true debug = false panic = "abort" # Opt into extra safety checks on arithmetic operations https://stackoverflow.com/a/64136471/249801 overflow-checks = true # Workspace-wide profiles to prevent warnings from member packages [profile.dev] overflow-checks = true