Skip to content

Commit

Permalink
Bump ya-client version to master - filled missed fields with default …
Browse files Browse the repository at this point in the history
…values.
  • Loading branch information
scx1332 committed Apr 3, 2024
2 parents 2d37874 + 757cc46 commit 60d103c
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ ya-service-api-interfaces = { path = "core/serv-api/interfaces" }
ya-service-api-web = { path = "core/serv-api/web" }

## CLIENT
ya-client = { git = "https://github.com/golemfactory/ya-client.git", rev = "e58208bdd521afbb626021d94b0b91a7d17d4e9d" }
ya-client = { git = "https://github.com/golemfactory/ya-client.git", rev = "2539fcefd02b12e0078dc1ddcc9bcc0e841e685f" }
#ya-client = { path = "../ya-client" }
ya-client-model = { git = "https://github.com/golemfactory/ya-client.git", rev = "e58208bdd521afbb626021d94b0b91a7d17d4e9d" }
ya-client-model = { git = "https://github.com/golemfactory/ya-client.git", rev = "2539fcefd02b12e0078dc1ddcc9bcc0e841e685f" }
#ya-client-model = { path = "../ya-client/model" }
golem-certificate = { git = "https://github.com/golemfactory/golem-certificate.git", rev = "f2d7514c18fc066e9cfb796090b90f5b27cfe1c6" }

Expand Down
1 change: 1 addition & 0 deletions core/payment/examples/cancel_invoice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ async fn main() -> anyhow::Result<()> {
)),
total_amount: BigDecimal::from(10u64),
timeout: None,
deposit: None,
make_deposit: false,
})
.await?;
Expand Down
1 change: 1 addition & 0 deletions core/payment/examples/debit_note_flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ async fn main() -> anyhow::Result<()> {
payment_platform: Some(PaymentPlatformEnum::PaymentPlatformName(args.platform)),
total_amount: BigDecimal::from(10u64),
timeout: None,
deposit: None,
make_deposit: false,
})
.await?;
Expand Down
1 change: 1 addition & 0 deletions core/payment/examples/invoice_flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ async fn main() -> anyhow::Result<()> {
payment_platform: Some(PaymentPlatformEnum::PaymentPlatformName(args.platform)),
total_amount: BigDecimal::from(10u64),
timeout: None,
deposit: None,
make_deposit: false,
})
.await?;
Expand Down
1 change: 1 addition & 0 deletions core/payment/examples/market_decoration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ async fn main() -> anyhow::Result<()> {
)),
total_amount: BigDecimal::from(10u64),
timeout: None,
deposit: None,
make_deposit: false,
})
.await
Expand Down
2 changes: 2 additions & 0 deletions core/payment/examples/release_allocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ async fn main() -> anyhow::Result<()> {
)),
total_amount: BigDecimal::from(10u64),
timeout: None,
deposit: None,
make_deposit: false,
})
.await?;
Expand Down Expand Up @@ -97,6 +98,7 @@ async fn main() -> anyhow::Result<()> {
)),
total_amount: BigDecimal::from(10u64),
timeout: None,
deposit: None,
make_deposit: false,
})
.await?;
Expand Down
2 changes: 2 additions & 0 deletions core/payment/examples/validate_allocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ async fn main() -> anyhow::Result<()> {
)),
total_amount: BigDecimal::from(1u64),
timeout: None,
deposit: None,
make_deposit: false,
})
.await;
Expand All @@ -75,6 +76,7 @@ async fn main() -> anyhow::Result<()> {
payment_platform: Some(PaymentPlatformEnum::PaymentPlatformName(payment_platform)),
total_amount: requestor_balance,
timeout: None,
deposit: None,
make_deposit: false,
};

Expand Down
1 change: 1 addition & 0 deletions core/payment/src/models/allocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ impl From<ReadObj> for Allocation {
remaining_amount: allocation.remaining_amount.into(),
timestamp: Utc.from_utc_datetime(&allocation.timestamp),
timeout: allocation.timeout.map(|v| Utc.from_utc_datetime(&v)),
deposit: None,
make_deposit: allocation.make_deposit,
}
}
Expand Down

0 comments on commit 60d103c

Please sign in to comment.