This repository has been archived by the owner on Sep 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
scripts/buidler_tasks/gelato/core/minting/collection.minting.tasks.js
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
// Mint | ||
import "./task.mintExecutionClaim"; | ||
// Get Minting Deposit Payable | ||
import "./task.getMintingDepositPayable" | ||
import "./task.getMintingDepositPayable"; | ||
|
||
import "./task.getCurrentExecutionClaimId"; | ||
|
||
// == Sub_Tasks === | ||
import "./sub_tasks/collection.sTasks.minting"; |
27 changes: 27 additions & 0 deletions
27
scripts/buidler_tasks/gelato/core/minting/task.getCurrentExecutionClaimId.js
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,27 @@ | ||
import { task } from "@nomiclabs/buidler/config"; | ||
import { defaultNetwork } from "../../../../../buidler.config"; | ||
|
||
export default task( | ||
"gc-getcurrentexecutionclaimid", | ||
`Calls GelatoCore.getCurrentExecutionClaimId() on [--network] (default: ${defaultNetwork})` | ||
) | ||
.addFlag("log", "Logs return values to stdout") | ||
.setAction(async ({ log }) => { | ||
try { | ||
const gelatoCoreContract = await run("instantiateContract", { | ||
contractname: "GelatoCore", | ||
read: true | ||
}); | ||
|
||
const currentExecutionClaimId = await gelatoCoreContract.getCurrentExecutionClaimId(); | ||
if (log) { | ||
console.log( | ||
`\n GelatoCore current ExecutionClaimId: ${currentExecutionClaimId}` | ||
); | ||
} | ||
return currentExecutionClaimId; | ||
} catch (error) { | ||
console.error(error); | ||
process.exit(1); | ||
} | ||
}); |
2 changes: 2 additions & 0 deletions
2
...ler_tasks/gelato/core/user_proxy_manager/collection.gelato-core-userProxyManager.tasks.js
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
import "./task.createUserProxy"; | ||
import "./task.proxyByUser"; | ||
import "./task.users"; | ||
import "./task.userCount" |
23 changes: 23 additions & 0 deletions
23
scripts/buidler_tasks/gelato/core/user_proxy_manager/task.userCount.js
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,23 @@ | ||
import { task } from "@nomiclabs/buidler/config"; | ||
import { defaultNetwork } from "../../../../../buidler.config"; | ||
|
||
export default task( | ||
"gc-usercount", | ||
`Calls GelatoCore.usercount() on [--network] (default: ${defaultNetwork})` | ||
) | ||
.addFlag("log", "Logs return values to stdout") | ||
.setAction(async ({ log }) => { | ||
try { | ||
const gelatoCoreContract = await run("instantiateContract", { | ||
contractname: "GelatoCore", | ||
read: true | ||
}); | ||
|
||
const userCount = await gelatoCoreContract.userCount(); | ||
if (log) console.log(`\n GelatoCore number of users: ${userCount}`); | ||
return userCount; | ||
} catch (error) { | ||
console.error(error); | ||
process.exit(1); | ||
} | ||
}); |
23 changes: 23 additions & 0 deletions
23
scripts/buidler_tasks/gelato/core/user_proxy_manager/task.users.js
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,23 @@ | ||
import { task } from "@nomiclabs/buidler/config"; | ||
import { defaultNetwork } from "../../../../../buidler.config"; | ||
|
||
export default task( | ||
"gc-users", | ||
`Calls GelatoCore.users() on [--network] (default: ${defaultNetwork})` | ||
) | ||
.addFlag("log", "Logs return values to stdout") | ||
.setAction(async ({ log }) => { | ||
try { | ||
const gelatoCoreContract = await run("instantiateContract", { | ||
contractname: "GelatoCore", | ||
read: true | ||
}); | ||
|
||
const users = await gelatoCoreContract.users(); | ||
if (log) console.log(`\n GelatoCore Users: \n ${users}`); | ||
return users; | ||
} catch (error) { | ||
console.error(error); | ||
process.exit(1); | ||
} | ||
}); |