diff --git a/README.md b/README.md index 6fedbcf..019fb79 100644 --- a/README.md +++ b/README.md @@ -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 ``` -## 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. @@ -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 -``` - -## 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 diff --git a/public/mainnet.contracts.json b/public/mainnet.contracts.json index d475e5b..0d76be4 100644 --- a/public/mainnet.contracts.json +++ b/public/mainnet.contracts.json @@ -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" } } \ No newline at end of file diff --git a/src/deploy_phoenix_adapter.ts b/src/deploy_phoenix_adapter.ts index 61b50b1..be9aed3 100644 --- a/src/deploy_phoenix_adapter.ts +++ b/src/deploy_phoenix_adapter.ts @@ -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);