Skip to content

Commit 3dcb6c6

Browse files
author
Aleksandr Penskoi
committed
Fix CI building process (dependencies and warnings)
1 parent 96adb20 commit 3dcb6c6

File tree

10 files changed

+339
-77
lines changed

10 files changed

+339
-77
lines changed

flake.lock

Lines changed: 289 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
type = "github";
1111
owner = "Plutonomicon";
1212
repo = "cardano-transaction-lib";
13-
rev = "a8aabb842ecc1e287d4a60ea4f4c6cff6fbfeea7";
13+
# should be same rev as in packages.dhall
14+
# Oh update, do `spago2nix generate`
15+
rev = "b7614b4e11a57b5b366b65509b86eb4b086bb1ce";
1416
};
1517
nixpkgs.follows = "cardano-transaction-lib/nixpkgs";
1618
};
@@ -33,8 +35,8 @@
3335
projectName = "seabug-contracts";
3436
shell = {
3537
packages = [
36-
pkgs.fd
3738
pkgs.easy-ps.purs-tidy
39+
pkgs.fd
3840
];
3941
};
4042
};

packages.dhall

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ let additions =
327327
, "variant"
328328
]
329329
, repo = "https://github.com/Plutonomicon/cardano-transaction-lib.git"
330+
-- should be same rev as in flake.nix
330331
-- https://github.com/Plutonomicon/cardano-transaction-lib/pull/696
331332
-- PR: Return error if no utxo is specified for a tx input & Fix transaction inputs locking
332333
, version = "b7614b4e11a57b5b366b65509b86eb4b086bb1ce"

spago-packages.nix

Lines changed: 42 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spago.dhall

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Welcome to a Spago project!
33
You can edit this file as you like.
44
-}
5-
{ name = "my-project"
5+
{ name = "seabug-contract"
66
, dependencies =
77
[ "aeson"
88
, "aeson-helpers"

src/Seabug/CallContract.purs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import Control.Promise (Promise)
3838
import Control.Promise as Promise
3939
import Data.BigInt (BigInt)
4040
import Data.BigInt as BigInt
41-
import Data.Maybe (fromJust)
4241
import Data.Tuple.Nested ((/\))
4342
import Data.UInt as UInt
4443
import Effect (Effect)

src/Seabug/Contract/MarketPlaceBuy.purs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ import Contract.PlutusData
3535
import Constants.Babbage (utxoEntrySizeWithoutVal)
3636
import Contract.Scripts (applyArgs, typedValidatorEnterpriseAddress)
3737
import Contract.Transaction
38-
( BalancedSignedTransaction(BalancedSignedTransaction)
39-
, TransactionOutput(TransactionOutput)
40-
, balanceAndSignTx
38+
( TransactionOutput(TransactionOutput)
4139
, balanceAndSignTxE
4240
, submit
4341
)

src/Seabug/Metadata.purs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ import Data.HTTP.Method (Method(GET))
3434
import Data.Newtype (unwrap)
3535
import Seabug.Metadata.Types (SeabugMetadata(SeabugMetadata))
3636
import Partial.Unsafe (unsafePartial)
37-
import Types.CborBytes (cborBytesToByteArray)
3837

3938
import Debug (traceM)
4039

src/Seabug/Test.purs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import Contract.Prim.ByteArray
1616
import Contract.Time (Slot(Slot))
1717
import Contract.Value (mkCurrencySymbol, mkTokenName)
1818
import Data.BigInt as BigInt
19-
import Data.UInt as UInt
2019
import Effect.Aff (launchAff_)
2120
import Seabug.Contract.MarketPlaceBuy (marketplaceBuy)
2221
import Seabug.Types

src/Seabug/Types.purs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ module Seabug.Types
1111

1212
import Contract.Prelude
1313

14-
import Affjax as Affjax
15-
import Affjax.RequestBody as Affjax.RequestBody
16-
import Affjax.ResponseFormat as Affjax.ResponseFormat
1714
import Cardano.Types.Value as Cardano.Types.Value
1815
import Contract.Value
1916
( CurrencySymbol
@@ -22,7 +19,7 @@ import Contract.Value
2219
, getTokenName
2320
, mkCurrencySymbol
2421
)
25-
import Contract.Monad (Contract(Contract), mkHttpUrl)
22+
import Contract.Monad (Contract)
2623
import Contract.Address (PaymentPubKeyHash, PubKeyHash)
2724
import Contract.Aeson as Aeson
2825
import Contract.PlutusData
@@ -35,14 +32,11 @@ import Contract.PlutusData
3532
import Contract.Prim.ByteArray
3633
( ByteArray
3734
, byteArrayFromIntArrayUnsafe
38-
, byteArrayToHex
3935
)
4036
import Contract.Numeric.Natural (Natural, toBigInt)
4137
import Contract.Scripts (ValidatorHash)
4238
import Contract.Time (Slot)
43-
import Control.Monad.Reader.Trans (asks)
4439
import Data.Argonaut as Json
45-
import Data.Argonaut.Encode.Encoders (encodeString)
4640
import Data.BigInt (BigInt, fromInt, toInt)
4741
import Hashing (blake2b256Hash)
4842
import Partial.Unsafe (unsafePartial)

0 commit comments

Comments
 (0)