Skip to content

Commit

Permalink
New Mainnet Deployment after Phoenix Upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
esteblock committed Oct 11, 2024
1 parent 085ab81 commit 2621302
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 20 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,20 @@ yarn test
```


## 5.- Publish deployed address.
## 5.- Publish Phoenix Aggregator in Mainnet
```
yarn build && yarn deploy-phoenix-adapter mainnet
```

## 6.- Publish deployed address.
If you want to publish the json files that are in the ignored `.soroban` folder, do:

```bash
yarn publish_addresses <network>
```

## 6.- Integration Test in Public Testnet.
## 7.- Integration Test in Public Testnet.
Its important to allways test contracts in a live testnet Blockchain.
We have prepared some scripts to interact with the deployed Soroswap.Finance testnet version and with a custom deployed Phoenix protocol. This is because Phoenix does not officially support a testnet version.

Expand All @@ -145,12 +151,6 @@ You can test the Aggregator methods by running the following command:
bash scripts/quickstart.sh standalone
bash scripts/run.sh
yarn test:manual <network>
```

## Publish Phoenix Aggregator in Mainnet
```
yarn build && yarn deploy-phoenix-adapter mainnet
```
## Development
When deploying to any network other than mainnet the script will also deploy Phoenix Protocol for testing purposes
Expand Down
10 changes: 5 additions & 5 deletions public/mainnet.contracts.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"ids": {
"deployer": "CDHN5WJ3ZCC6VRWID6KLM22EVHH3O5FWOSMIZ77734EETMRXCWM5G2SF",
"soroswap_adapter": "CAZ6QEH55V75LBXGSUNA4W3QI2Q7WLJZZ2TJOV3M3PVJNLN5XZMZHWNR",
"aggregator": "CC2CMNKAFI3KKL6ROMIYJKKX2WE2MV5QAF7DZDWC57ENHV6DQTHT3W64",
"phoenix_adapter": "CCFILWT4FSCGEYWIP3MV7OWSGERST4JKJP35OUGEJQLTNW6KTJK64O5G"
"deployer": "CCOFOTIMYILQWOWMOBRPD6AAO5TQGWMGX4AC5QJUUT4GZMJBN6JA7MBS",
"soroswap_adapter": "CCQRWHCPO26ZN5Q4EYALHCGZF4UTRRQPJS7QWFMCVAVYWJJ5D5VG3XV7",
"aggregator": "CBFAORZNK4JSCJYT3ZLWFQ5QEI4IHOIYY6XCYT3E47AK6ZMZFKFP6ZKA",
"phoenix_adapter": "CBO4VL3JZJIC7H55DWSJ6NMKFVVNKTYOZO5QWHVXIQSZFLD5DRCJGYR2"
},
"hashes": {
"deployer": "c14be64defd72d2c01c78fc46206934a67844692ff17c974c5fd18a5f775cd7e",
"soroswap_adapter": "6e9897a0d084a6b0fb13bc719263ad808718b4417c12b6b314c1536297a46f71",
"aggregator": "de3c2cba30268f60caa470e6e3f3c14f34d16af0a3c19e01b728b3bd55a71991",
"phoenix_adapter": "5438f7a9df755d0fac4e85235cb3f00d4e70d6eec45b840737fe2f18453dfa70"
"phoenix_adapter": "060d10e53779b685f6b2525fc6b1fb7f491601775a6f17fab319ac15e1e9c509"
}
}
12 changes: 5 additions & 7 deletions src/deploy_phoenix_adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ export async function deployPhoenixAdapter(addressBook: AddressBook) {
if(network != 'mainnet') throw new Error('Only Mainnet is Supported')
// await airdropAccount(loadedConfig.admin);

// deployer has already been deployed.

// console.log('-------------------------------------------------------');
// console.log('Deploying Adapter using the deployer');
// console.log('-------------------------------------------------------');
// console.log("** Phoenix Adapter");
// await installContract('phoenix_adapter', addressBook, loadedConfig.admin);
console.log('-------------------------------------------------------');
console.log('Deploying Adapter using the deployer');
console.log('-------------------------------------------------------');
console.log("** Phoenix Adapter");
await installContract('phoenix_adapter', addressBook, loadedConfig.admin);



Expand Down

0 comments on commit 2621302

Please sign in to comment.