Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion complete_build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -e
# set -e
if [[ $# -eq 0 ]] ; then
echo 'Please Supply A Token Name That Will Be Used For The Starter NFT And The Catalog Name'
exit 1
Expand Down
4 changes: 2 additions & 2 deletions final.check
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./fractionalize-scripts/data/hash.hashes
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ./fractionalize-scripts/data/policy.hashes
62220a6a1407a06a1ca06d450be27c3f183833572913e88fa6255e7c6f2e0ee8 ./hash.hashes
eea0466c736dd3956ea0d7ade1af86536552bb54f179d29b641c81495e8c32a0 ./policy.hashes
40dc567c55b995eb41fa00401ca7479bd9e30bd43c7adb7be7d9768efe74f76f ./hash.hashes
566fddf7d49c9b7293732e8af13e4f7082f327838a25b4b508b87767c471db35 ./policy.hashes
4 changes: 2 additions & 2 deletions fractionalize-scripts/data/datum.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"bytes": "a3a9787f35925763b77dc856b8122d0892deff2bbfde523991f012fe"
},
{
"bytes": "b0818471a0e9633ae337cc1dcc7526ebe42286b4ceb3d836ad3a9e73"
"bytes": "c9bacc3c4efa356b29b1dcd2ba8ecc3cac16fe567c9211bff15e97ec"
},
{
"bytes": "4e45574d5f30"
"bytes": "436174616c6f672330"
},
{
"bytes": "db7bffc41a43c4d9c31342e3fd457409aeb40302aa52058df374913b"
Expand Down
4 changes: 2 additions & 2 deletions hash.hashes
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
2cd1066e1fa216b844a30b84b1b4a44f9a7a1dc929b0551571ec7a21eceeaa37 ./nft-locking-contract/validator.hash
e9ea3fd8fabb925cedf74aeb4c06eea516408d63e02d922473ea4760ab394ab4 ./locking-contract/validator.hash
a01dc34668150c67cd7d72f95b9cdf59d5b02dea4c92e839d21c40cf76353313 ./nft-locking-contract/validator.hash
c53fcc573c0cb65b95f6d3d1243322d4780a34cac525784710cd6283e0e89731 ./locking-contract/validator.hash
2 changes: 1 addition & 1 deletion locking-contract/locking-contract.plutus

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion locking-contract/src/LockingContract.hs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ getPkh = PlutusV2.PubKeyHash { PlutusV2.getPubKeyHash = createBuiltinByteString

-- tokenization minting policy
tokenizedPid :: PlutusV2.CurrencySymbol
tokenizedPid = PlutusV2.CurrencySymbol { PlutusV2.unCurrencySymbol = createBuiltinByteString [176, 129, 132, 113, 160, 233, 99, 58, 227, 55, 204, 29, 204, 117, 38, 235, 228, 34, 134, 180, 206, 179, 216, 54, 173, 58, 158, 115] }
tokenizedPid = PlutusV2.CurrencySymbol { PlutusV2.unCurrencySymbol = createBuiltinByteString [201, 186, 204, 60, 78, 250, 53, 107, 41, 177, 220, 210, 186, 142, 204, 60, 172, 22, 254, 86, 124, 146, 17, 191, 241, 94, 151, 236] }


-------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion locking-contract/validator.bytes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[108, 187, 149, 31, 149, 170, 1, 119, 210, 154, 69, 255, 252, 24, 106, 15, 97, 133, 93, 194, 187, 168, 173, 205, 128, 164, 219, 208]
[137, 54, 129, 217, 40, 231, 179, 57, 27, 56, 34, 208, 4, 134, 143, 201, 25, 132, 206, 54, 25, 54, 189, 146, 107, 224, 184, 157]
2 changes: 1 addition & 1 deletion locking-contract/validator.hash
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6cbb951f95aa0177d29a45fffc186a0f61855dc2bba8adcd80a4dbd0
893681d928e7b3391b3822d004868fc91984ce361936bd926be0b89d
2 changes: 1 addition & 1 deletion minting-contract/src/MintingContract.hs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ getPkh :: PlutusV2.PubKeyHash
getPkh = PlutusV2.PubKeyHash { PlutusV2.getPubKeyHash = createBuiltinByteString [124, 31, 212, 29, 225, 74, 57, 151, 130, 90, 250, 45, 84, 166, 94, 219, 125, 37, 60, 149, 200, 61, 64, 12, 99, 102, 222, 164] }

getValidatorHash :: PlutusV2.ValidatorHash
getValidatorHash = PlutusV2.ValidatorHash $ createBuiltinByteString [108, 187, 149, 31, 149, 170, 1, 119, 210, 154, 69, 255, 252, 24, 106, 15, 97, 133, 93, 194, 187, 168, 173, 205, 128, 164, 219, 208]
getValidatorHash = PlutusV2.ValidatorHash $ createBuiltinByteString [137, 54, 129, 217, 40, 231, 179, 57, 27, 56, 34, 208, 4, 134, 143, 201, 25, 132, 206, 54, 25, 54, 189, 146, 107, 224, 184, 157]
-------------------------------------------------------------------------------
-- | Create the redeemer parameters data object.
-------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion nft-locking-contract/nft-locking-contract.plutus

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions nft-locking-contract/src/NFTLockingContract.hs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ lockPid :: PlutusV2.CurrencySymbol
lockPid = PlutusV2.CurrencySymbol {PlutusV2.unCurrencySymbol = createBuiltinByteString [38, 144, 61, 231, 221, 148, 253, 203, 89, 253, 43, 89, 128, 168, 202, 79, 247, 31, 6, 47, 126, 210, 88, 89, 203, 38, 232, 127] }

lockTkn :: PlutusV2.TokenName
lockTkn = PlutusV2.TokenName {PlutusV2.unTokenName = createBuiltinByteString [78, 69, 87, 77, 95] }
lockTkn = PlutusV2.TokenName {PlutusV2.unTokenName = createBuiltinByteString [67, 97, 116, 97, 108, 111, 103, 35] }

-- check for nft here
lockValue :: PlutusV2.Value
Expand Down Expand Up @@ -82,7 +82,7 @@ checkMultisig :: PlutusV2.TxInfo -> [PlutusV2.PubKeyHash] -> Integer -> Bool
checkMultisig txInfo pkhs amt = loopSigs pkhs 0
where
loopSigs :: [PlutusV2.PubKeyHash] -> Integer -> Bool
loopSigs [] counter = traceIfFalse "Not Enough Signers" counter >= amt
loopSigs [] counter = traceIfFalse "Not Enough Signers" (counter >= amt)
loopSigs (x:xs) counter =
if ContextsV2.txSignedBy txInfo x
then loopSigs xs (counter + 1)
Expand Down
2 changes: 1 addition & 1 deletion nft-locking-contract/validator.bytes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[52, 181, 247, 30, 234, 45, 131, 236, 205, 188, 139, 44, 183, 129, 18, 104, 150, 201, 102, 180, 53, 92, 61, 255, 246, 135, 247, 62]
[99, 12, 228, 102, 87, 201, 242, 139, 77, 126, 219, 54, 12, 229, 164, 211, 183, 209, 179, 51, 75, 124, 210, 69, 84, 169, 195, 35]
2 changes: 1 addition & 1 deletion nft-locking-contract/validator.hash
Original file line number Diff line number Diff line change
@@ -1 +1 @@
34b5f71eea2d83eccdbc8b2cb781126896c966b4355c3dfff687f73e
630ce46657c9f28b4d7edb360ce5a4d3b7d1b3334b7cd24554a9c323
2 changes: 1 addition & 1 deletion nft-minting-contract/nft-minting-contract.plutus

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion nft-minting-contract/policy.bytes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[176, 129, 132, 113, 160, 233, 99, 58, 227, 55, 204, 29, 204, 117, 38, 235, 228, 34, 134, 180, 206, 179, 216, 54, 173, 58, 158, 115]
[201, 186, 204, 60, 78, 250, 53, 107, 41, 177, 220, 210, 186, 142, 204, 60, 172, 22, 254, 86, 124, 146, 17, 191, 241, 94, 151, 236]
2 changes: 1 addition & 1 deletion nft-minting-contract/policy.id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b0818471a0e9633ae337cc1dcc7526ebe42286b4ceb3d836ad3a9e73
c9bacc3c4efa356b29b1dcd2ba8ecc3cac16fe567c9211bff15e97ec
4 changes: 2 additions & 2 deletions nft-minting-contract/src/NFTMintingContract.hs
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ lockPid :: PlutusV2.CurrencySymbol
lockPid = PlutusV2.CurrencySymbol {PlutusV2.unCurrencySymbol = createBuiltinByteString [38, 144, 61, 231, 221, 148, 253, 203, 89, 253, 43, 89, 128, 168, 202, 79, 247, 31, 6, 47, 126, 210, 88, 89, 203, 38, 232, 127] }

lockTkn :: PlutusV2.TokenName
lockTkn = PlutusV2.TokenName {PlutusV2.unTokenName = createBuiltinByteString [78, 69, 87, 77, 95] }
lockTkn = PlutusV2.TokenName {PlutusV2.unTokenName = createBuiltinByteString [67, 97, 116, 97, 108, 111, 103, 35] }

-- check for nft here
tokenValue :: PlutusV2.Value
tokenValue = Value.singleton lockPid lockTkn (1 :: Integer)

getValidatorHash :: PlutusV2.ValidatorHash
getValidatorHash = PlutusV2.ValidatorHash $ createBuiltinByteString [52, 181, 247, 30, 234, 45, 131, 236, 205, 188, 139, 44, 183, 129, 18, 104, 150, 201, 102, 180, 53, 92, 61, 255, 246, 135, 247, 62]
getValidatorHash = PlutusV2.ValidatorHash $ createBuiltinByteString [99, 12, 228, 102, 87, 201, 242, 139, 77, 126, 219, 54, 12, 229, 164, 211, 183, 209, 179, 51, 75, 124, 210, 69, 84, 169, 195, 35]

getPkh :: PlutusV2.PubKeyHash
getPkh = PlutusV2.PubKeyHash { PlutusV2.getPubKeyHash = createBuiltinByteString [124, 31, 212, 29, 225, 74, 57, 151, 130, 90, 250, 45, 84, 166, 94, 219, 125, 37, 60, 149, 200, 61, 64, 12, 99, 102, 222, 164] }
Expand Down
2 changes: 1 addition & 1 deletion policy.hashes
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
725a25f4dc585a17789f9a2cd4816c7367b7a2da2c474035b1ca913b938ef7fb ./minting-contract/policy.id
8872821bb4df8c7e76f3218c9bdea8219a79e9542e452adecb669c4a3afb886f ./nft-minting-contract/policy.id
58b2c02bdfc2a0ffba9f3d2a31273b88bca2f9a9d4f09234bda1d296cb83e4f8 ./nft-minting-contract/policy.id
2 changes: 1 addition & 1 deletion start.tkn
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[78, 69, 87, 77, 95]
[67, 97, 116, 97, 108, 111, 103, 35]
2 changes: 1 addition & 1 deletion start_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"multisig3": "439e52018da81413f09284d96133a059c104de462a0b1d25d3726a97",
"__comment3__": "These are auto filled",
"starterPid": "26903de7dd94fdcb59fd2b5980a8ca4ff71f062f7ed25859cb26e87f",
"starterTkn": "4e45574d5f"
"starterTkn": "436174616c6f6723"
}
4 changes: 2 additions & 2 deletions tokenize-scripts/data/current_datum.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"constructor": 0,
"fields": [
{
"bytes": "b0818471a0e9633ae337cc1dcc7526ebe42286b4ceb3d836ad3a9e73"
"bytes": "c9bacc3c4efa356b29b1dcd2ba8ecc3cac16fe567c9211bff15e97ec"
},
{
"int": 0
},
{
"bytes": "4e45574d5f"
"bytes": "436174616c6f6723"
}
]
}
4 changes: 2 additions & 2 deletions tokenize-scripts/data/next_datum.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"constructor": 0,
"fields": [
{
"bytes": "b0818471a0e9633ae337cc1dcc7526ebe42286b4ceb3d836ad3a9e73"
"bytes": "c9bacc3c4efa356b29b1dcd2ba8ecc3cac16fe567c9211bff15e97ec"
},
{
"int": 1
},
{
"bytes": "4e45574d5f"
"bytes": "436174616c6f6723"
}
]
}