Skip to content

Auction contract (cameligo + jsligo) - #82

Open
frankhillard wants to merge 7 commits into
mainfrom
auction_contract
Open

Auction contract (cameligo + jsligo)#82
frankhillard wants to merge 7 commits into
mainfrom
auction_contract

Conversation

@frankhillard

Copy link
Copy Markdown
Contributor

No description provided.



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

Copy link
Copy Markdown

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);

Copy link
Copy Markdown

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";

Copy link
Copy Markdown

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",

Copy link
Copy Markdown

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 @@

Copy link
Copy Markdown

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