Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
e8a244f
doc: update documentation to include Time library usage
joaoazevedo Aug 13, 2025
5078012
doc: update precompiles list
joaoazevedo Aug 18, 2025
fde2a78
docs: remove rust-sdk docs since we now use docs.rs
joaoazevedo Aug 18, 2025
ca0bf74
docs: fix anchors in solidity-sdk section
joaoazevedo Aug 18, 2025
2d3d7d0
docs: update examples overview
joaoazevedo Aug 19, 2025
b0a0385
docs: remove unused files
joaoazevedo Aug 19, 2025
38fcf8f
docs: update precompiles list
joaoazevedo Aug 20, 2025
2be4d6f
docs: add base for precompiles docs
joaoazevedo Aug 20, 2025
44058bf
docs: add requireQuorum percompile docs
joaoazevedo Aug 20, 2025
587e6ef
docs: add timestamp percompile docs; small layout changes
joaoazevedo Aug 20, 2025
522a889
docs: add txInfo percompile docs; fix requireQuorum address
joaoazevedo Aug 20, 2025
0887934
docs: add externalCall precompile docs
joaoazevedo Aug 20, 2025
83e0587
docs: add callWithState precompile docs
joaoazevedo Aug 20, 2025
3eef47e
docs: improved examples; better layout; table with links; comment cal…
joaoazevedo Aug 20, 2025
1cc6572
docs: improved anchors; rename base gas in precompiles
joaoazevedo Aug 20, 2025
0ae1cbe
docs: improve requireQuorum example and documentation
joaoazevedo Aug 21, 2025
8db40f4
docs: improve externallCall precompile docs
joaoazevedo Aug 21, 2025
3886d82
docs: solidity fmt
joaoazevedo Aug 21, 2025
7cd8c74
Fix rust version to 1.88 on the lint workflow (#110)
sirodoht Aug 18, 2025
1f89ca6
fix typo
omahs Aug 20, 2025
3cd0532
[docs] fixes (#112)
poszu Aug 20, 2025
981bcc0
Merge branch 'precompiles-docs' into chore-update-docs-time-library: …
joaoazevedo Aug 22, 2025
569d394
docs: use solidity-sdk as examples for precompiles docs
joaoazevedo Aug 26, 2025
790aa73
docs: fix link in precompiles overview; update solidity-sdk docs; upd…
joaoazevedo Aug 26, 2025
8cc758d
[examples] Layer 2 TX auction on pod (#71)
poszu Aug 25, 2025
64fd5dd
Merge branch 'main' into chore-update-docs-time-library
joaoazevedo Aug 26, 2025
8c9c9d5
fix: fmt and bindings
joaoazevedo Aug 26, 2025
5424692
docs: fix title in menu
joaoazevedo Aug 27, 2025
c28e121
add eth get logs precompile docs
jakovmitrovski Sep 17, 2025
a3f5440
Merge branch 'chore-update-docs-time-library' of gith:wub.com:podnetw…
jakovmitrovski Sep 17, 2025
9cbbca8
symlink getlogs
jakovmitrovski Sep 17, 2025
b8efadc
Merge branch 'main' of github.com:podnetwork/pod-sdk into chore-updat…
jakovmitrovski Sep 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions docs/devnet/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,3 @@ url: /
! import ./intro.md

! import ./config.md

---

! import ./precompile.md
5 changes: 4 additions & 1 deletion docs/devnet/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ layout: single
The pod devnet is a test network for developers to experiment
with the pod network. It is designed to be a sandbox for testing
and development purposes, allowing developers to build and test
their applications without the need for real assets or transactions.
their applications without the need for real assets or transactions.


> We expect the devnet to have breaking changes or be reset (pruned completely) at any time.
15 changes: 0 additions & 15 deletions docs/devnet/precompile.md

This file was deleted.

52 changes: 0 additions & 52 deletions docs/examples/auctions/auction-contract-prod.md

This file was deleted.

62 changes: 0 additions & 62 deletions docs/examples/auctions/auction-contract.md

This file was deleted.

36 changes: 0 additions & 36 deletions docs/examples/auctions/auction-mechanise.md

This file was deleted.

18 changes: 11 additions & 7 deletions docs/examples/auctions/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,16 @@ The contract assumes that the `deadline` for an `auction_id` is known between th
! codeblock title="Auction.sol"

```solidity
import {requireTimeBefore} from "pod-sdk/Time.sol";
import {requireTimeBefore, Time} from "pod-sdk/Time.sol";

contract Auction {
using Time for Time.Timestamp;

// Event emitted when a bid is submitted
event BidSubmitted(
uint256 indexed auction_id,
address indexed bidder,
uint256 indexed deadline,
Time.Timestamp indexed deadline,
uint256 value,
bytes data
);
Expand All @@ -65,7 +67,7 @@ contract Auction {
*/
function submitBid(
uint256 auction_id,
uint256 deadline,
Time.Timestamp deadline,
uint256 value,
bytes calldata data
) public {
Expand Down Expand Up @@ -104,7 +106,7 @@ pub async fn submit_bid<P: Provider>(
pod_provider: &P,
contract_address: Address,
auction_id: U256,
deadline: U256,
deadline: u64,
value: U256,
data: Vec<u8>,
) -> Result<TransactionReceipt> {
Expand Down Expand Up @@ -149,21 +151,23 @@ async fn subscribe_logs_for_auction_until_deadline<P: Provider>(
pod_provider: &P,
contract_address: Address,
auction_id: U256,
deadline: U257,
deadline: u64,
) -> Result<()> {
println!("Waiting for on-chain time to pass the deadline {deadline}...");
pod_provider.wait_past_perfect_time(deadline.as_u64()).await?;
pod_provider.wait_past_perfect_time(deadline).await?;
println!("On-chain time is now past {deadline}.");

let bid_submitted_sig = AuctionContract::events::BidSubmitted::SIGNATURE_HASH;

let auction_id_topic = H256::from_uint(&auction_id);

let deadline_topic = H256::from_uint(&U256::from(deadline));

let filter = Filter::new()
.address(contract_address)
.topic0(ValueOrArray::Value(bid_submitted_sig))
.topic1(ValueOrArray::Value(auction_id_topic))
.topic2(ValueOrArray::Value(deadline));
.topic2(ValueOrArray::Value(deadline_topic));

let logs = pod_provider.get_logs(&filter).await?;
for log in logs {
Expand Down
29 changes: 0 additions & 29 deletions docs/examples/auctions/env.md

This file was deleted.

10 changes: 0 additions & 10 deletions docs/examples/auctions/future.md

This file was deleted.

20 changes: 0 additions & 20 deletions docs/examples/auctions/intro.md

This file was deleted.

Loading