Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auction contract (cameligo + jsligo) #82

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

frankhillard
Copy link
Contributor

No description provided.



let setCommissionFee = ([param, store] : [Parameter.set_fee_param, Storage.t]) : return_ => {
let _check_admin : unit = Assert.assert_only_admin(store);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let _check_admin : unit = Assert.assert_only_admin(store);
Assert.assert_only_admin(store);

Also, should have been Assert.onlyAdmin(store); for better readability (and camelCase)

All further binds of function calls returning unit are not necessary

let _check_auction_not_started : unit = Assert.assert_auction_is_started(currentAuction);
let _check_auction_not_ended : unit = Assert.assert_auction_is_not_ended(currentAuction);

let modified_auctions = Big_map.remove(param, store.auctionIdToAuction);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not camelCase

@@ -0,0 +1,120 @@
"use strict";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these js files can be avoided by using ts-node to execute the ts ones

@@ -0,0 +1,23 @@
{
"name": "Smarketplace",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need review of this content

@@ -0,0 +1,121 @@

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need tests in jsligo, anyway, we should probably wait for validation of cameligo before spending time of transpilation

@frankhillard frankhillard changed the title Auction contract (cameligo) Auction contract (cameligo + jsligo) Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants