diff --git a/src/interface/builder.rs b/src/interface/builder.rs index 1fa6818b..c7541a37 100644 --- a/src/interface/builder.rs +++ b/src/interface/builder.rs @@ -96,6 +96,19 @@ pub struct ContractBuilder { } impl ContractBuilder { + pub fn with( + iface: Iface, + schema: SubSchema, + iimpl: IfaceImpl, + testnet: bool, + ) -> Result { + Ok(Self { + builder: OperationBuilder::with(iface, schema, iimpl)?, + testnet, + alt_layers1: none!(), + }) + } + pub fn mainnet( iface: Iface, schema: SubSchema, @@ -107,6 +120,7 @@ impl ContractBuilder { alt_layers1: none!(), }) } + pub fn testnet( iface: Iface, schema: SubSchema, diff --git a/src/interface/contract.rs b/src/interface/contract.rs index 8c29a418..f9e6f1a0 100644 --- a/src/interface/contract.rs +++ b/src/interface/contract.rs @@ -74,6 +74,7 @@ impl From for AttachedState { } } +// TODO: Consider removing type in favour of `FungibleOutput` #[derive(Copy, Clone, Eq, PartialEq, Debug)] pub struct FungibleAllocation { pub owner: Output,