Skip to content

Commit

Permalink
hdao marketplace
Browse files Browse the repository at this point in the history
  • Loading branch information
crzypatchwork committed Jul 14, 2021
1 parent 6ba6830 commit 326a462
Showing 1 changed file with 98 additions and 34 deletions.
132 changes: 98 additions & 34 deletions michelson/hdao_martketplace.tz
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ code
GET;
IF_NONE
{
PUSH int 137;
PUSH int 136;
FAILWITH;
}
{};
Expand All @@ -39,7 +39,7 @@ code
CONTRACT %transfer (list (pair address (list (pair address (pair nat nat)))));
IF_NONE
{
PUSH int 160;
PUSH int 161;
FAILWITH;
}
{};
Expand All @@ -52,7 +52,7 @@ code
GET;
IF_NONE
{
PUSH int 138;
PUSH int 137;
FAILWITH;
}
{};
Expand All @@ -63,7 +63,7 @@ code
GET;
IF_NONE
{
PUSH int 138;
PUSH int 137;
FAILWITH;
}
{};
Expand All @@ -74,7 +74,7 @@ code
GET;
IF_NONE
{
PUSH int 138;
PUSH int 137;
FAILWITH;
}
{};
Expand Down Expand Up @@ -104,7 +104,7 @@ code
GET;
IF_NONE
{
PUSH int 143;
PUSH int 142;
FAILWITH;
}
{};
Expand All @@ -123,7 +123,7 @@ code
CONTRACT %transfer (list (pair address (list (pair address (pair nat nat)))));
IF_NONE
{
PUSH int 160;
PUSH int 161;
FAILWITH;
}
{};
Expand All @@ -137,7 +137,7 @@ code
GET;
IF_NONE
{
PUSH int 144;
PUSH int 143;
FAILWITH;
}
{};
Expand All @@ -156,7 +156,7 @@ code
CONTRACT %transfer (list (pair address (list (pair address (pair nat nat)))));
IF_NONE
{
PUSH int 160;
PUSH int 161;
FAILWITH;
}
{};
Expand All @@ -175,7 +175,7 @@ code
GET;
IF_NONE
{
PUSH int 148;
PUSH int 147;
FAILWITH;
}
{};
Expand All @@ -194,7 +194,7 @@ code
GET;
IF_NONE
{
PUSH int 147;
PUSH int 146;
FAILWITH;
}
{};
Expand All @@ -205,7 +205,7 @@ code
GET;
IF_NONE
{
PUSH int 147;
PUSH int 146;
FAILWITH;
}
{};
Expand All @@ -216,7 +216,7 @@ code
EDIV;
IF_NONE
{
PUSH int 147;
PUSH int 146;
FAILWITH;
}
{
Expand All @@ -228,7 +228,7 @@ code
GET;
IF_NONE
{
PUSH int 148;
PUSH int 147;
FAILWITH;
}
{};
Expand All @@ -237,7 +237,7 @@ code
EDIV;
IF_NONE
{
PUSH int 148;
PUSH int 147;
FAILWITH;
}
{
Expand All @@ -250,7 +250,7 @@ code
GET;
IF_NONE
{
PUSH int 151;
PUSH int 150;
FAILWITH;
}
{};
Expand All @@ -269,7 +269,7 @@ code
CONTRACT %transfer (list (pair address (list (pair address (pair nat nat)))));
IF_NONE
{
PUSH int 160;
PUSH int 161;
FAILWITH;
}
{};
Expand All @@ -288,7 +288,7 @@ code
GET;
IF_NONE
{
PUSH int 148;
PUSH int 147;
FAILWITH;
}
{};
Expand All @@ -307,7 +307,7 @@ code
GET;
IF_NONE
{
PUSH int 147;
PUSH int 146;
FAILWITH;
}
{};
Expand All @@ -318,7 +318,7 @@ code
GET;
IF_NONE
{
PUSH int 147;
PUSH int 146;
FAILWITH;
}
{};
Expand All @@ -329,7 +329,7 @@ code
EDIV;
IF_NONE
{
PUSH int 147;
PUSH int 146;
FAILWITH;
}
{
Expand All @@ -341,7 +341,7 @@ code
GET;
IF_NONE
{
PUSH int 148;
PUSH int 147;
FAILWITH;
}
{};
Expand All @@ -350,7 +350,7 @@ code
EDIV;
IF_NONE
{
PUSH int 148;
PUSH int 147;
FAILWITH;
}
{
Expand All @@ -369,7 +369,7 @@ code
GET;
IF_NONE
{
PUSH int 147;
PUSH int 146;
FAILWITH;
}
{};
Expand All @@ -380,7 +380,7 @@ code
GET;
IF_NONE
{
PUSH int 147;
PUSH int 146;
FAILWITH;
}
{};
Expand All @@ -391,7 +391,7 @@ code
EDIV;
IF_NONE
{
PUSH int 147;
PUSH int 146;
FAILWITH;
}
{
Expand All @@ -416,7 +416,7 @@ code
CONTRACT %transfer (list (pair address (list (pair address (pair nat nat)))));
IF_NONE
{
PUSH int 160;
PUSH int 161;
FAILWITH;
}
{};
Expand All @@ -436,7 +436,7 @@ code
GET;
IF_NONE
{
PUSH int 147;
PUSH int 146;
FAILWITH;
}
{};
Expand All @@ -447,7 +447,7 @@ code
GET;
IF_NONE
{
PUSH int 147;
PUSH int 146;
FAILWITH;
}
{};
Expand All @@ -458,7 +458,7 @@ code
EDIV;
IF_NONE
{
PUSH int 147;
PUSH int 146;
FAILWITH;
}
{
Expand All @@ -470,7 +470,7 @@ code
GET;
IF_NONE
{
PUSH int 157;
PUSH int 156;
FAILWITH;
}
{};
Expand All @@ -481,11 +481,11 @@ code
PUSH nat 0;
DUP 9;
GET 6;
DIG 8;
DUP 9;
GET;
IF_NONE
{
PUSH int 157;
PUSH int 156;
FAILWITH;
}
{};
Expand All @@ -498,11 +498,75 @@ code
CONS;
TRANSFER_TOKENS;
CONS;
DUP 3;
DUP;
GET 6;
DUP;
DUP 5;
DUP;
DUG 2;
GET;
IF_NONE
{
PUSH int 158;
FAILWITH;
}
{};
PUSH nat 1;
DIG 7;
GET 6;
DIG 7;
GET;
IF_NONE
{
PUSH int 158;
FAILWITH;
}
{};
GET 3;
SUB;
ISNAT;
IF_NONE
{
PUSH int 158;
FAILWITH;
}
{};
UPDATE 3;
SOME;
SWAP;
UPDATE;
UPDATE 6;
SWAP;
};
}
{
IF_LEFT
{
DUP;
GET 6;
PUSH nat 0;
SWAP;
COMPARE;
GE;
IF
{
DUP;
GET 6;
PUSH nat 250;
SWAP;
COMPARE;
LE;
}
{
PUSH bool False;
};
IF
{}
{
PUSH string "WrongCondition: (params.royalties >= 0) & (params.royalties <= 250)";
FAILWITH;
};
SWAP;
DUP;
DUG 2;
Expand Down Expand Up @@ -542,7 +606,7 @@ code
CONTRACT %transfer (list (pair address (list (pair address (pair nat nat)))));
IF_NONE
{
PUSH int 160;
PUSH int 161;
FAILWITH;
}
{};
Expand Down

0 comments on commit 326a462

Please sign in to comment.