Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spark api now lives at https://api.filspark.com/ #37

Merged
merged 1 commit into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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