golem-js icon indicating copy to clipboard operation
golem-js copied to clipboard

Deposit in allocation

Open SewerynKras opened this issue 10 months ago • 0 comments

The deposit details can be added when calling paymentService.createAllocation :

  const allocation = await payment.createAllocation({
    budget: 1.0,
    expirationSec: DURATION_SEC,
    deposit: {
      contract: "0x...",
      id: "0x...",
    }
  });

I also added AllocationOptions to PaymentOptions so it can be added to TE:

 const executor = await TaskExecutor.create({
    package: "golem/alpine:latest",
    logger: pinoPrettyLogger(),
    allocation: {
      deposit: {
        contract: "0x...",
        id: "0x...",
      },
    },
  });

related to: JST-829

SewerynKras avatar Apr 02 '24 13:04 SewerynKras