-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: address clippy errors * feat: update to newest near-sdk-rs * feat!: break up initial args
- Loading branch information
1 parent
1f57f61
commit e55bac8
Showing
14 changed files
with
967 additions
and
198 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// import { Workspace, NearAccount } from "near-willem-workspaces-ava"; | ||
// import { NEAR } from "near-units"; | ||
// import { | ||
// costPerToken, | ||
// tokenStorageCost, | ||
// totalCost, | ||
// MINT_ONE_GAS, | ||
// nftTokensForOwner, | ||
// deployEmpty, | ||
// deploy, | ||
// } from "./util"; | ||
|
||
// const base_cost = NEAR.parse("1 N"); | ||
// const min_cost = NEAR.parse("0.01 N"); | ||
|
||
// const runner = Workspace.init( | ||
// { initialBalance: NEAR.parse("15 N").toString() }, | ||
// async ({ root }) => { | ||
// const tenk = await deploy(root, "tenk", { price_structure: {base_cost, min_cost}, size: 2 }); | ||
// return { tenk }; | ||
// } | ||
// ); | ||
|
||
// runner.test("token ids start at 1", async (t, { root, tenk }) => { | ||
// const tokens: { token_id: string }[] = await root.call( | ||
// tenk, | ||
// "nft_mint_many", | ||
// { num: 2 }, | ||
// { attachedDeposit: NEAR.parse("2.1 N") } | ||
// ); | ||
// const token_ids = tokens.map((t) => t.token_id); | ||
// t.is(token_ids.length, 2); | ||
// t.true(token_ids.includes("1")); | ||
// t.true(token_ids.includes("2")); | ||
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.