diff --git a/lib/main.dart b/lib/main.dart index 6473212d8b..ba40328522 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -204,8 +204,6 @@ class AppState extends State { communityOracle: CommunityOracle( ArDriveContractOracle( [ - ContractOracle(VertoContractReader()), - ContractOracle(RedstoneContractReader()), ContractOracle(ARNSContractReader()), ], fallbackContractOracle: ContractOracle( diff --git a/packages/ardrive_uploader/lib/src/ardrive_uploader.dart b/packages/ardrive_uploader/lib/src/ardrive_uploader.dart index 7a7ba47d88..f16e4d26fb 100644 --- a/packages/ardrive_uploader/lib/src/ardrive_uploader.dart +++ b/packages/ardrive_uploader/lib/src/ardrive_uploader.dart @@ -58,8 +58,6 @@ abstract class ArDriveUploader { pstService ??= PstService( communityOracle: CommunityOracle( ArDriveContractOracle([ - ContractOracle(VertoContractReader()), - ContractOracle(RedstoneContractReader()), ContractOracle(SmartweaveContractReader()), ]), ), diff --git a/packages/pst/lib/pst.dart b/packages/pst/lib/pst.dart index ee4508883f..188c54939b 100644 --- a/packages/pst/lib/pst.dart +++ b/packages/pst/lib/pst.dart @@ -5,9 +5,7 @@ export 'src/community_oracle.dart'; export 'src/contract_oracle.dart'; export 'src/contract_reader.dart'; export 'src/contract_readers/arns_contract_reader.dart'; -export 'src/contract_readers/redstone_contract_reader.dart'; export 'src/contract_readers/smartweave_contract_reader.dart'; -export 'src/contract_readers/verto_contract_reader.dart'; export 'src/pst.dart'; export 'src/pst_contract_data.dart'; export 'src/pst_contract_data_builder.dart'; diff --git a/packages/pst/lib/src/constants.dart b/packages/pst/lib/src/constants.dart index 3484e5612f..c390d3cde6 100644 --- a/packages/pst/lib/src/constants.dart +++ b/packages/pst/lib/src/constants.dart @@ -4,5 +4,4 @@ final pstTransactionId = TransactionID( '-8A6RexFkpfWwuyVO98wzSFZh0d6VJuI-buTJvlwOJQ', ); const cacheUrl = 'https://d2440r7x1v6779.cloudfront.net/cache/state'; -const vertoCacheUrl = 'https://v2.cache.verto.exchange'; -const arnsCacheUrl = 'https://dev.arns.app/v1/contract'; +const arnsCacheUrl = 'https://api.arns.app/v1/contract'; diff --git a/packages/pst/lib/src/contract_readers/redstone_contract_reader.dart b/packages/pst/lib/src/contract_readers/redstone_contract_reader.dart deleted file mode 100644 index 5679843199..0000000000 --- a/packages/pst/lib/src/contract_readers/redstone_contract_reader.dart +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:ardrive_http/ardrive_http.dart'; -import 'package:ardrive_utils/ardrive_utils.dart'; -import 'package:pst/src/constants.dart'; -import 'package:pst/src/contract_reader.dart'; - -class RedstoneContractReader implements ContractReader { - @override - Future readContract(TransactionID txId) async { - final apiUrl = '$cacheUrl/$txId'; - final response = await ArDriveHTTP().getJson(apiUrl); - - return response.data['state']; - } -} diff --git a/packages/pst/lib/src/contract_readers/verto_contract_reader.dart b/packages/pst/lib/src/contract_readers/verto_contract_reader.dart deleted file mode 100644 index a9700ad7a0..0000000000 --- a/packages/pst/lib/src/contract_readers/verto_contract_reader.dart +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:ardrive_http/ardrive_http.dart'; -import 'package:ardrive_utils/ardrive_utils.dart'; -import 'package:pst/src/constants.dart'; -import 'package:pst/src/contract_reader.dart'; - -class VertoContractReader implements ContractReader { - @override - Future readContract(TransactionID txId) async { - final apiUrl = '$vertoCacheUrl/$txId'; - final response = await ArDriveHTTP().getJson(apiUrl); - - return response.data['state']; - } -} diff --git a/packages/pst/test/src/contract_oracle_test.dart b/packages/pst/test/src/contract_oracle_test.dart index d8a6232fd6..fa7a908de4 100644 --- a/packages/pst/test/src/contract_oracle_test.dart +++ b/packages/pst/test/src/contract_oracle_test.dart @@ -78,13 +78,6 @@ void main() { myBrokenContractOracle = ContractOracle(myBrokenContractReader); }); - test('throws if an empty array is passed', () { - expect( - () => ArDriveContractOracle([]), - throwsA(const EmptyContractOracles()), - ); - }); - setUp(() { // Puts a delay to test the retries in the broken contract // in other case it will returns before the broken one retry more than one time