Merge branch 'main' into dev

--wip-- [skip ci]
This commit is contained in:
microwavedcola1 2022-07-14 10:05:56 +02:00
commit 42a1774d01
3 changed files with 22 additions and 3 deletions

15
HOW-TO-RELEASE.md Normal file
View File

@ -0,0 +1,15 @@
For deploying to mainnet,
If there are no breaking changes, simply running `release-to-mainnet.sh` should suffice.
- close accounts for recovering rent sol + allow creating them with new layout in future with same PDA address
** close mango account `ts/client/src/scripts/mb-example1-close-account.ts`,
note: for whatever reason if withdrawing tokens, or closing positions, etc. fails, just comment out everything else and just run the script with
`await client.closeMangoAccount(group, mangoAccount);`
** close all things setup by admin `ts/client/src/scripts/mb-example1-admin-close.ts`
note: the admin does get dust token balances, so no mainnet tokens are lost
- merge dev to main, and then `release-to-mainnet.sh` to deploy latest code to mainnet
- setup group and banks, etc. using `ts/client/src/scripts/mb-example1-admin.ts`
- update ids json `ts/client/src/scripts/mb-example1-ids-json.ts`
- create mango account and deposit some tokens `ts/client/src/scripts/mb-example1-close-account.ts`

View File

@ -74,11 +74,11 @@
"publicKey": "6XDZbWax9imnCEaKokorQtwRY7dGj9HnZNk612ibZu4v"
},
{
"name": "BTC",
"name": "USDC",
"publicKey": "9pJ3V2WvGWtWomiUsRLHvMguoZ9SUCWwZxfvaqdRDq44"
},
{
"name": "USDC",
"name": "BTC",
"publicKey": "41gvXTAYM4xckLYqxPXWwjpr6WM3GZEytM9QZSGKqfjX"
}
],
@ -106,4 +106,4 @@
"perpMarkets": []
}
]
}
}

View File

@ -157,6 +157,10 @@ async function main() {
console.log(`${bank.toString()}`);
}
console.log(
`NOTE: run yarn ts-node ts/client/src/scripts/mb-add-group-to-ids-json.ts to update ids json`,
);
process.exit();
}