-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
creating/consuming multiple pellets & refactored tx dir. (#57)
- Loading branch information
1 parent
e21b964
commit ae41bcb
Showing
31 changed files
with
150 additions
and
143 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
offchain/tests/consume-asteria.ts → offchain/tests/admin/consume-asteria.ts
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,14 @@ | ||
import { admin_token } from "../../constants.ts"; | ||
import { consumePellets } from "../../transactions/admin/consume-pellets.ts"; | ||
import { printTxURL } from "../../utils.ts"; | ||
|
||
const pellets_tx_hash = | ||
"fb1a0a14864dc4ad49f53fe2e5416e2f9c8fac14734fe6ad4812b4d977237e11"; | ||
const pellets_tx_indexes = [0, 1, 2]; | ||
|
||
const txHash = await consumePellets( | ||
admin_token, | ||
pellets_tx_hash, | ||
pellets_tx_indexes | ||
); | ||
printTxURL(txHash); |
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,7 @@ | ||
import { admin_token } from "../../constants.ts"; | ||
import { createAsteria } from "../../transactions/admin/create-asteria.ts"; | ||
import { printTxURL } from "../../utils.ts"; | ||
|
||
const txHash = await createAsteria(admin_token); | ||
|
||
printTxURL(txHash); |
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,24 @@ | ||
import { admin_token } from "../../constants.ts"; | ||
import { createPellets } from "../../transactions/admin/create-pellets.ts"; | ||
import { printTxURL } from "../../utils.ts"; | ||
|
||
const params = [ | ||
{ | ||
fuel: 90n, | ||
pos_x: 12n, | ||
pos_y: -50n, | ||
}, | ||
{ | ||
fuel: 40n, | ||
pos_x: -7n, | ||
pos_y: 3n, | ||
}, | ||
{ | ||
fuel: 25n, | ||
pos_x: 20n, | ||
pos_y: 19n, | ||
}, | ||
]; | ||
|
||
const txHash = await createPellets(admin_token, params); | ||
printTxURL(txHash); |
6 changes: 3 additions & 3 deletions
6
offchain/tests/deploy/deploy-asteria.ts → ...hain/tests/admin/deploy/deploy-asteria.ts
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,7 @@ | ||
import { deployPellet } from "../../../transactions/admin/deploy/deploy-pellet.ts"; | ||
import { admin_token } from "../../../constants.ts"; | ||
import { printTxURL } from "../../../utils.ts"; | ||
|
||
const txHash = await deployPellet(admin_token); | ||
|
||
printTxURL(txHash); |
6 changes: 3 additions & 3 deletions
6
offchain/tests/deploy/deploy-spacetime.ts → ...in/tests/admin/deploy/deploy-spacetime.ts
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,7 @@ | ||
import { spendRefUTxOs } from "../../../transactions/admin/deploy/spend-refs.ts"; | ||
import { admin_token } from "../../../constants.ts"; | ||
import { printTxURL } from "../../../utils.ts"; | ||
|
||
const txHash = await spendRefUTxOs(admin_token); | ||
|
||
printTxURL(txHash); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
6 changes: 3 additions & 3 deletions
6
offchain/tests/gather-fuel.ts → offchain/tests/user/gather-fuel.ts
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
6 changes: 3 additions & 3 deletions
6
offchain/tests/mine-asteria.ts → offchain/tests/user/mine-asteria.ts
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
6 changes: 3 additions & 3 deletions
6
offchain/tests/move-ship.ts → offchain/tests/user/move-ship.ts
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
8 changes: 4 additions & 4 deletions
8
...ain/transactions/deploy/deploy-asteria.ts → ...ansactions/admin/deploy/deploy-asteria.ts
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.