Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tonylee08 committed Oct 9, 2024
1 parent 1b300d3 commit 351c6f7
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 58 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/deepbookv3-build-tx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,10 @@
- name: Install Sui using Homebrew
run: brew install sui

# - name: Set up Sui client config
# run: |
# mkdir -p ~/.sui/sui_config/
# echo "${{ secrets.SUI_CLIENT_YAML }}" > ~/.sui/sui_config/client.yaml

# - name: Test
# run: which sui

- name: try to upgrade
- name: YAML Setup
run: |
sui client --yes new-env --rpc https://fullnode.mainnet.sui.io:443 --alias mainnet
sui client switch --env mainnet
cd packages/deepbook && sui client upgrade --upgrade-capability 0xc3670c420ee0e3cccfae819be4b6780007d56727467d5e5c60c0d3b6e264f5d9 --gas-budget 3000000000 --gas 0xb76abcaefff13813adfa61768fac06a13a9bdbe7c86fb75118885364452286cb --skip-dependency-verification --serialize-unsigned-transaction
- name: NPM BUILD TX Environment
uses: actions/setup-node@v4
Expand Down
45 changes: 0 additions & 45 deletions scripts/transactions/createPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,51 +31,6 @@ import { getFullnodeUrl, SuiClient } from '@mysten/sui/client';

const tx = new Transaction();

// Testnet
// mmClient.deepBookAdmin.createPoolAdmin({
// baseCoinKey: 'DEEP',
// quoteCoinKey: 'SUI',
// tickSize: 0.001,
// lotSize: 1,
// minSize: 10,
// whitelisted: true,
// stablePool: false,
// })(tx);

// mmClient.deepBookAdmin.createPoolAdmin({
// baseCoinKey: 'SUI',
// quoteCoinKey: 'DBUSDC',
// tickSize: 0.001,
// lotSize: 0.1,
// minSize: 1,
// whitelisted: false,
// stablePool: false,
// })(tx);

// mmClient.deepBookAdmin.createPoolAdmin({
// baseCoinKey: 'DEEP',
// quoteCoinKey: 'DBUSDC',
// tickSize: 0.001,
// lotSize: 1,
// minSize: 10,
// whitelisted: true,
// stablePool: false,
// })(tx);

// mmClient.deepBookAdmin.createPoolAdmin({
// baseCoinKey: 'DBUSDT',
// quoteCoinKey: 'DBUSDC',
// tickSize: 0.001,
// lotSize: 0.1,
// minSize: 1,
// whitelisted: false,
// stablePool: true,
// })(tx);

// let res = await mmClient.signAndExecute(tx);

// console.dir(res, { depth: null });

// mainnet
dbClient.deepBookAdmin.createPoolAdmin({
baseCoinKey: 'DEEP',
Expand Down
2 changes: 0 additions & 2 deletions scripts/transactions/mainPackageUpgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

import { execSync } from 'child_process';
import { upgradeCapID } from '../config/constants';
import path from 'path';
import fs from 'fs';

const network = 'mainnet';

Expand Down
1 change: 0 additions & 1 deletion scripts/tx/tx-data.txt

Large diffs are not rendered by default.

0 comments on commit 351c6f7

Please sign in to comment.