Skip to content

Commit

Permalink
spark api now lives at https://api.filspark.com/ (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber authored Oct 19, 2023
1 parent 2b35ff5 commit e3e6054
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/spark.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class Spark {

async getRetrieval () {
console.log('Getting retrieval...')
const res = await this.#fetch('https://spark.fly.dev/rounds/current', {
const res = await this.#fetch('https://api.filspark.com/rounds/current', {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
})
Expand Down Expand Up @@ -111,7 +111,7 @@ export default class Spark {
participantAddress: Zinnia.walletAddress
}
console.log('%o', payload)
const res = await this.#fetch('https://spark.fly.dev/measurements', {
const res = await this.#fetch('https://api.filspark.com/measurements', {
method: 'POST',
body: JSON.stringify(payload),
headers: {
Expand Down
2 changes: 1 addition & 1 deletion test/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { assert } from 'zinnia:assert'
test('integration', async () => {
const spark = new Spark()
const measurementId = await spark.nextRetrieval()
const res = await fetch(`https://spark.fly.dev/measurements/${measurementId}`)
const res = await fetch(`https://api.filspark.com/measurements/${measurementId}`)
assert(res.ok)
const retrieval = await res.json()
assert(retrieval.startAt)
Expand Down
4 changes: 2 additions & 2 deletions test/spark.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ test('getRetrieval', async () => {
const retrieval = await spark.getRetrieval()
assertArrayIncludes(round.retrievalTasks, [retrieval])
assertEquals(requests, [{
url: 'https://spark.fly.dev/rounds/current',
url: 'https://api.filspark.com/rounds/current',
opts: {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
Expand Down Expand Up @@ -120,7 +120,7 @@ test('submitRetrieval', async () => {
await spark.submitMeasurement({ cid: 'bafytest' }, {})
assertEquals(requests, [
{
url: 'https://spark.fly.dev/measurements',
url: 'https://api.filspark.com/measurements',
opts: {
method: 'POST',
body: JSON.stringify({
Expand Down

0 comments on commit e3e6054

Please sign in to comment.