test group for uxd on devnet

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2022-10-21 15:31:26 +02:00
parent 286d93efbb
commit 659300b3a0
1 changed files with 3 additions and 13 deletions

View File

@ -70,10 +70,10 @@ async function main() {
.createGroup(
GROUP_NUM,
new PublicKey("mdcXrm2NkzXYvHNcKXzCLXT58R4UN8Rzd1uzD4h8338"),
1
0
)
.accounts({
table: new PublicKey("tabXVjdYVYGbT2SmZbgaaXm1QBYArbDio8BMCZxgrU4"),
table: new PublicKey("tab2GSQhmstsCiPmPABk1F8QnffSaFEXnqbef7AkEnB"),
payer: (mangoV3ReimbursementClient.program.provider as AnchorProvider)
.wallet.publicKey,
authority: (
@ -91,16 +91,6 @@ async function main() {
await mangoV3ReimbursementClient.program.account.group.all()
).find((group) => group.account.groupNum === GROUP_NUM);
// // Edit group, set new table
// await mangoV3ReimbursementClient.program.methods
// .editGroup(new PublicKey("tabXVjdYVYGbT2SmZbgaaXm1QBYArbDio8BMCZxgrU4"))
// .accounts({
// group: group?.publicKey,
// authority: (mangoV3ReimbursementClient.program.provider as AnchorProvider)
// .wallet.publicKey,
// })
// .rpc();
// Reload group
group = (await mangoV3ReimbursementClient.program.account.group.all()).find(
(group) => group.account.groupNum === GROUP_NUM
@ -199,7 +189,7 @@ async function main() {
group?.account.mints[i]!,
group?.account.vaults[i]!,
admin.publicKey,
10,
100,
token.decimals
)
);