Skip to content

Commit

Permalink
changed to task
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmovses committed Feb 11, 2022
1 parent 481597e commit 8c46025
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 49 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ get-social-details:
register-token:
go run ./tasks/register_token/main.go

.PHONY: register-and-mint-multiple
register-and-mint-multiple:
.PHONY: register-multiple-tokens
register-multiple-tokens:
go run ./tasks/register_multiple_tokens/main.go

.PHONY: mint-burn-instant
Expand Down
47 changes: 0 additions & 47 deletions tasks/register_multiple_tokens/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,51 +34,4 @@ func main() {
log.Printf(" ------ Social Token Details second Artist----- %s", TokenDetailsSecond)
log.Printf(" ------ Social Token Details second Artist----- %s", TokenDetailsThird)

log.Printf(" ------")
flow.TransactionFromFile("setup_fusd_vault").SignProposeAndPayAs("account").RunPrintEventsFull()
log.Printf(" ---")

//--------------------------------------------------//
//-- SETUP and Mint FUSD ---------------------------//
//--------------------------------------------------//

//Setup FUSD Vaults for all accounts
log.Printf(" ------")
flow.TransactionFromFile("setup_fusd_vault").SignProposeAndPayAs("first").RunPrintEventsFull()
log.Printf(" ---")

flow.TransactionFromFile("setup_fusd_vault").SignProposeAndPayAs("account").RunPrintEventsFull()
log.Printf(" ---")

flow.TransactionFromFile("setup_fusd_vault").SignProposeAndPayAs("second").RunPrintEventsFull() // Artist Vault

//First Account sets up FUSD Minter
flow.TransactionFromFile("setup_fusd_minter").SignProposeAndPayAs("first").RunPrintEventsFull()

//Admin Account deposits minter into first account
flow.TransactionFromFile("setup_social_minter").SignProposeAndPayAs("account").AccountArgument("first").RunPrintEventsFull()

// First Account Mints and deposits in one transaction
flow.TransactionFromFile("mint_fusd").SignProposeAndPayAs("first").UFix64Argument("10000000.00").AccountArgument("account").RunPrintEventsFull()

//Setup SocialToken Vaults for accounts
flow.TransactionFromFile("setup_social_vault").SignProposeAndPayAs("account").StringArgument("S_0x1cf0e2f2f715450").RunPrintEventsFull()
flow.TransactionFromFile("setup_social_vault").SignProposeAndPayAs("account").StringArgument("X_0x179b6b1cb6755e31").RunPrintEventsFull()
flow.TransactionFromFile("setup_social_vault").SignProposeAndPayAs("account").StringArgument("STRANGE_0xf3fcd2c1a78f5eee").RunPrintEventsFull()

mintQuoteFirst := flow.ScriptFromFile("get_social_mint_quote").UFix64Argument("111.00").StringArgument("S_0x1cf0e2f2f715450").RunFailOnError()
log.Printf(" ------ mintQuote for S is ----- %s", mintQuoteFirst)

flow.TransactionFromFile("mint_social_token").SignProposeAndPayAs("account").StringArgument("S_0x1cf0e2f2f715450").UFix64Argument("100.00").UFix64Argument(mintQuoteFirst.String()).RunPrintEventsFull()

mintQuoteSecond := flow.ScriptFromFile("get_social_mint_quote").UFix64Argument("222.00").StringArgument("X_0x179b6b1cb6755e31").RunFailOnError()
log.Printf(" ------ mintQuote is for X is ----- %s", mintQuoteSecond)

flow.TransactionFromFile("mint_social_token").SignProposeAndPayAs("account").StringArgument("X_0x179b6b1cb6755e31").UFix64Argument("222.00").UFix64Argument(mintQuoteSecond.String()).RunPrintEventsFull()

mintQuoteThird := flow.ScriptFromFile("get_social_mint_quote").UFix64Argument("333.00").StringArgument("STRANGE_0xf3fcd2c1a78f5eee").RunFailOnError()
log.Printf(" ------ mintQuote is for X is ----- %s", mintQuoteThird)

flow.TransactionFromFile("mint_social_token").SignProposeAndPayAs("account").StringArgument("STRANGE_0xf3fcd2c1a78f5eee").UFix64Argument("333.00").UFix64Argument(mintQuoteThird.String()).RunPrintEventsFull()

}

0 comments on commit 8c46025

Please sign in to comment.