feat: wrap up adding uplc builtins for now

This commit is contained in:
rvcas
2022-10-25 14:52:29 -04:00
committed by Lucas
parent d5d2ba9cd7
commit 819256df99
12 changed files with 222 additions and 110 deletions

View File

@@ -27,6 +27,8 @@ thiserror = "1.0.31"
anyhow = "1.0.57"
serde = { version = "1.0.144", features = ["derive"] }
serde_json = "1.0.85"
strum = "0.24.1"
strum_macros = "0.24.3"
[dev-dependencies]
hex = "0.4.3"

View File

@@ -1,11 +1,13 @@
use std::{fmt::Display, str::FromStr};
use strum_macros::EnumIter;
use flat_rs::de;
/// All the possible builtin functions in Untyped Plutus Core.
#[repr(u8)]
#[allow(non_camel_case_types)]
#[derive(Debug, Clone, PartialEq, Eq, Copy)]
#[derive(Debug, Clone, PartialEq, Eq, Copy, EnumIter)]
pub enum DefaultFunction {
// Integer functions
AddInteger = 0,