mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
update docs and tests, pass signer account, not signer address
This commit is contained in:
parent
71c59230db
commit
81a60a9e51
@ -627,7 +627,7 @@ Let's have 5 minute of compute access
|
|||||||
computeEnv.id,
|
computeEnv.id,
|
||||||
computeValidUntil,
|
computeValidUntil,
|
||||||
providerUrl,
|
providerUrl,
|
||||||
await consumerAccount.getAddress()
|
consumerAccount
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
<!--
|
<!--
|
||||||
|
@ -485,7 +485,7 @@ Initializes the provider for a compute request.
|
|||||||
| `computeEnv` | `string` | The compute environment. |
|
| `computeEnv` | `string` | The compute environment. |
|
||||||
| `validUntil` | `number` | The job expiration date. |
|
| `validUntil` | `number` | The job expiration date. |
|
||||||
| `providerUri` | `string` | The provider URI. |
|
| `providerUri` | `string` | The provider URI. |
|
||||||
| `accountId` | `string` | caller address |
|
| `signer` | `Signer` | caller account |
|
||||||
| `signal?` | `AbortSignal` | abort signal |
|
| `signal?` | `AbortSignal` | abort signal |
|
||||||
|
|
||||||
#### Returns
|
#### Returns
|
||||||
|
@ -627,7 +627,7 @@ describe('Compute-to-data example tests', async () => {
|
|||||||
computeEnv.id,
|
computeEnv.id,
|
||||||
computeValidUntil,
|
computeValidUntil,
|
||||||
providerUrl,
|
providerUrl,
|
||||||
await consumerAccount.getAddress()
|
consumerAccount
|
||||||
)
|
)
|
||||||
/// ```
|
/// ```
|
||||||
/// <!--
|
/// <!--
|
||||||
|
@ -430,7 +430,7 @@ describe('Compute flow tests', async () => {
|
|||||||
computeEnv.id,
|
computeEnv.id,
|
||||||
computeValidUntil,
|
computeValidUntil,
|
||||||
providerUrl,
|
providerUrl,
|
||||||
await consumerAccount.getAddress()
|
consumerAccount
|
||||||
)
|
)
|
||||||
assert(
|
assert(
|
||||||
!('error' in providerInitializeComputeResults.algorithm),
|
!('error' in providerInitializeComputeResults.algorithm),
|
||||||
@ -501,7 +501,7 @@ describe('Compute flow tests', async () => {
|
|||||||
computeEnv.id,
|
computeEnv.id,
|
||||||
computeValidUntil,
|
computeValidUntil,
|
||||||
providerUrl,
|
providerUrl,
|
||||||
await consumerAccount.getAddress()
|
consumerAccount
|
||||||
)
|
)
|
||||||
assert(
|
assert(
|
||||||
providerInitializeComputeResults.algorithm.validOrder,
|
providerInitializeComputeResults.algorithm.validOrder,
|
||||||
@ -563,7 +563,7 @@ describe('Compute flow tests', async () => {
|
|||||||
computeEnv.id,
|
computeEnv.id,
|
||||||
computeValidUntil,
|
computeValidUntil,
|
||||||
providerUrl,
|
providerUrl,
|
||||||
await consumerAccount.getAddress()
|
consumerAccount
|
||||||
)
|
)
|
||||||
assert(
|
assert(
|
||||||
!('error' in providerInitializeComputeResults.algorithm),
|
!('error' in providerInitializeComputeResults.algorithm),
|
||||||
@ -641,7 +641,7 @@ describe('Compute flow tests', async () => {
|
|||||||
computeEnv.id,
|
computeEnv.id,
|
||||||
computeValidUntil,
|
computeValidUntil,
|
||||||
providerUrl,
|
providerUrl,
|
||||||
await consumerAccount.getAddress()
|
consumerAccount
|
||||||
)
|
)
|
||||||
assert(
|
assert(
|
||||||
providerInitializeComputeResults.algorithm.validOrder,
|
providerInitializeComputeResults.algorithm.validOrder,
|
||||||
@ -712,7 +712,7 @@ describe('Compute flow tests', async () => {
|
|||||||
computeEnv.id,
|
computeEnv.id,
|
||||||
computeValidUntil,
|
computeValidUntil,
|
||||||
providerUrl,
|
providerUrl,
|
||||||
await consumerAccount.getAddress()
|
consumerAccount
|
||||||
)
|
)
|
||||||
assert(
|
assert(
|
||||||
providerInitializeComputeResults.algorithm.validOrder,
|
providerInitializeComputeResults.algorithm.validOrder,
|
||||||
@ -797,7 +797,7 @@ describe('Compute flow tests', async () => {
|
|||||||
computeEnv.id,
|
computeEnv.id,
|
||||||
computeValidUntil,
|
computeValidUntil,
|
||||||
providerUrl,
|
providerUrl,
|
||||||
await consumerAccount.getAddress()
|
consumerAccount
|
||||||
)
|
)
|
||||||
assert(
|
assert(
|
||||||
providerInitializeComputeResults.algorithm.validOrder,
|
providerInitializeComputeResults.algorithm.validOrder,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user