golem-js
golem-js copied to clipboard
Deposit in allocation
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