Skip to content

Commit

Permalink
Update makeMint.rho
Browse files Browse the repository at this point in the history
Updated makeMint.rho according to its current status on rgov.rhobot.net and debugging sessions with Jim Whitescarver
  • Loading branch information
PatrickMockridge authored Feb 28, 2024
1 parent 9f8dff7 commit 5913ea5
Showing 1 changed file with 27 additions and 21 deletions.
48 changes: 27 additions & 21 deletions src/actions/makeMint.rho
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
match ["myTokenMint", "inbox"] {
[name, lockerTag] => {
new
return,
lookup(`rho:registry:lookup`),
deployerId(`rho:rchain:deployerId`),
deployId(`rho:rchain:deployId`),
ch
in {
for (@{"read": *MCA, ..._} <<- @[*deployerId, "dictionary"]) {
trace!({"MCA": MCA}) |
MCA("MakeMint", ch)
} |
for (@(nonce, *MakeMint) <- ch) {
MakeMint!(*ch) |
for (aMint <- ch) {
for (@{"inbox": *inbox, ..._} <<- @{[*deployerId, lockerTag]}) {
// send the mint to my inbox for safe keeping.
inbox!(["Mint", name, *aMint], *deployId)
[name, lockerTag] => {
new
return,
rl(`rho:registry:lookup`),
deployerId(`rho:rchain:deployerId`),
deployId(`rho:rchain:deployId`),
//MakeMint(`rho:rchain:makeMint`),
ch
in {
for (@{"read": *MCA, ..._} <<- @[*deployerId, "dictionary"]) {
deployId!({"MCA": *MCA}) |
rl!(`rho:rchain:makeMint`, *ch)
} |
// for (MakeMint <- ch) {deployId!([*MakeMint, "MakeMint"] ) |
for (@(nonce, *MakeMint) <- ch) {
deployId!(["MakeMint", *MakeMint]) |
MakeMint!(*ch) |
for (aMint <- ch) {
deployId! (["aMint", *aMint]) |
for (@{"inbox": *inbox, ..._} <<- @{[*deployerId, lockerTag]}) {
//send the mint to my inbox for safe keeping.//inbox!(["issue", name, {"admin": *admin, "tally": *tally}], *return)
//inbox!(["issue", name, {"admin": *admin, "tally": *tally}], *return)
inbox!(["Mint", name, {"admin": *aMint}], *deployId) |
deployId!("Received to inbox")
}
}
}
}
}
}

}} // end of match
// end of match

0 comments on commit 5913ea5

Please sign in to comment.