Skip to content

Commit

Permalink
test: update
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniFrenchBread committed Oct 10, 2024
1 parent 8647243 commit 4be981f
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 21 deletions.
3 changes: 2 additions & 1 deletion tests/cli_file_upload_download_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ def __test_upload_download_file(self, size, submission_index, rand_data=True):
wait_until(lambda: client.zgs_get_file_info(root) is not None)
wait_until(lambda: client.zgs_get_file_info(root)["finalized"])

self._download_file_use_cli(','.join([x.rpc_url for x in self.nodes]), None, root)
self._download_file_use_cli(','.join([x.rpc_url for x in self.nodes]), None, root, with_proof=True)
self._download_file_use_cli(','.join([x.rpc_url for x in self.nodes]), None, root, with_proof=False)

if __name__ == "__main__":
FileUploadDownloadTest().main()
2 changes: 1 addition & 1 deletion tests/storage-contracts-abis/0g-storage-contracts-rev
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dbeff538b949599c203e43be6ecc05e9e997d09d
75c251804a29ab22adced50d92478cf0baf834bc
4 changes: 2 additions & 2 deletions tests/storage-contracts-abis/ChunkLinearReward.json

Large diffs are not rendered by default.

17 changes: 15 additions & 2 deletions tests/storage-contracts-abis/DummyMarket.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,23 @@
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "pricePerSector",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
}
],
"bytecode": "0x6080604052348015600f57600080fd5b5060a08061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063da6eb36a14602d575b600080fd5b603d6038366004603f565b505050565b005b600080600060608486031215605357600080fd5b50508135936020830135935060409092013591905056fea264697066735822122054eb84b374e7eb5c57b284f82f977fe19500436ef4128d3e147969cefdd4cbcd64736f6c63430008100033",
"deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060285760003560e01c8063da6eb36a14602d575b600080fd5b603d6038366004603f565b505050565b005b600080600060608486031215605357600080fd5b50508135936020830135935060409092013591905056fea264697066735822122054eb84b374e7eb5c57b284f82f977fe19500436ef4128d3e147969cefdd4cbcd64736f6c63430008100033",
"bytecode": "0x608060405234801561001057600080fd5b5060be8061001f6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c806361ec5082146037578063da6eb36a14604b575b600080fd5b600060405190815260200160405180910390f35b605b6056366004605d565b505050565b005b600080600060608486031215607157600080fd5b50508135936020830135935060409092013591905056fea264697066735822122044ebf96fcad90f0bbc521513843d64fbc182c5c913a8210a4d638393793be63064736f6c63430008100033",
"deployedBytecode": "0x6080604052348015600f57600080fd5b506004361060325760003560e01c806361ec5082146037578063da6eb36a14604b575b600080fd5b600060405190815260200160405180910390f35b605b6056366004605d565b505050565b005b600080600060608486031215607157600080fd5b50508135936020830135935060409092013591905056fea264697066735822122044ebf96fcad90f0bbc521513843d64fbc182c5c913a8210a4d638393793be63064736f6c63430008100033",
"linkReferences": {},
"deployedLinkReferences": {}
}
4 changes: 2 additions & 2 deletions tests/storage-contracts-abis/DummyReward.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b5060f18061001f6000396000f3fe60806040526004361060265760003560e01c806359e9670014602b578063b7a3c04c14603c575b600080fd5b603a60363660046058565b5050565b005b348015604757600080fd5b50603a60533660046079565b505050565b60008060408385031215606a57600080fd5b50508035926020909101359150565b600080600060608486031215608d57600080fd5b8335925060208401356001600160a01b038116811460aa57600080fd5b92959294505050604091909101359056fea264697066735822122031a993c3def9ed899c5b5a53bab495d498047e1a8ce262b61e700511cfb9adf164736f6c63430008100033",
"deployedBytecode": "0x60806040526004361060265760003560e01c806359e9670014602b578063b7a3c04c14603c575b600080fd5b603a60363660046058565b5050565b005b348015604757600080fd5b50603a60533660046079565b505050565b60008060408385031215606a57600080fd5b50508035926020909101359150565b600080600060608486031215608d57600080fd5b8335925060208401356001600160a01b038116811460aa57600080fd5b92959294505050604091909101359056fea264697066735822122031a993c3def9ed899c5b5a53bab495d498047e1a8ce262b61e700511cfb9adf164736f6c63430008100033",
"bytecode": "0x608060405234801561001057600080fd5b5060f18061001f6000396000f3fe60806040526004361060265760003560e01c806359e9670014602b578063b7a3c04c14603c575b600080fd5b603a60363660046058565b5050565b005b348015604757600080fd5b50603a60533660046079565b505050565b60008060408385031215606a57600080fd5b50508035926020909101359150565b600080600060608486031215608d57600080fd5b8335925060208401356001600160a01b038116811460aa57600080fd5b92959294505050604091909101359056fea2646970667358221220ce57385afc7714a4000e530d1e1154d214fc1c0e2392abde201018635be1a2ab64736f6c63430008100033",
"deployedBytecode": "0x60806040526004361060265760003560e01c806359e9670014602b578063b7a3c04c14603c575b600080fd5b603a60363660046058565b5050565b005b348015604757600080fd5b50603a60533660046079565b505050565b60008060408385031215606a57600080fd5b50508035926020909101359150565b600080600060608486031215608d57600080fd5b8335925060208401356001600160a01b038116811460aa57600080fd5b92959294505050604091909101359056fea2646970667358221220ce57385afc7714a4000e530d1e1154d214fc1c0e2392abde201018635be1a2ab64736f6c63430008100033",
"linkReferences": {},
"deployedLinkReferences": {}
}
4 changes: 2 additions & 2 deletions tests/storage-contracts-abis/FixedPrice.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tests/storage-contracts-abis/FixedPriceFlow.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tests/storage-contracts-abis/Flow.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tests/storage-contracts-abis/PoraMine.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tests/storage-contracts-abis/PoraMineTest.json

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions tests/storage-contracts-abis/README.md

This file was deleted.

0 comments on commit 4be981f

Please sign in to comment.