Merge remote-tracking branch 'origin/master' into refactor-platforms
This commit is contained in:
commit
4a58389976
191
package-lock.json
generated
191
package-lock.json
generated
|
@ -64,7 +64,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@netlify/plugin-nextjs": "^4.2.4",
|
"@netlify/plugin-nextjs": "^4.2.4",
|
||||||
"@svgr/cli": "^6.2.1",
|
"@svgr/cli": "^6.2.1",
|
||||||
"netlify-cli": "^9.13.4"
|
"netlify-cli": "^9.13.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@algolia/cache-browser-local-storage": {
|
"node_modules/@algolia/cache-browser-local-storage": {
|
||||||
|
@ -5928,16 +5928,15 @@
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/netlify-cli": {
|
"node_modules/netlify-cli": {
|
||||||
"version": "9.13.4",
|
"version": "9.13.6",
|
||||||
"resolved": "https://registry.npmjs.org/netlify-cli/-/netlify-cli-9.13.4.tgz",
|
"resolved": "https://registry.npmjs.org/netlify-cli/-/netlify-cli-9.13.6.tgz",
|
||||||
"integrity": "sha512-Ws9qKeeGqmHezoKVzGKCfYr+gh2LJZ1RfCjRX8US+3S1YxFyiHpbR8LN7lNDbZj34jEhZeOrwYwS5zbwJtqHCQ==",
|
"integrity": "sha512-6S+uWGZSroD+2Y+RQj0a5bcsjpNCPrJBt2nJHHg0SnGiSCAkf/h2aRUTrFHiyDB/CDWE9brswggxDvGqdSAEAg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"hasShrinkwrap": true,
|
"hasShrinkwrap": true,
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@netlify/build": "^26.5.0",
|
"@netlify/build": "^26.5.1",
|
||||||
"@netlify/config": "^17.0.18",
|
"@netlify/config": "^17.0.19",
|
||||||
"@netlify/framework-info": "^9.0.2",
|
"@netlify/framework-info": "^9.0.2",
|
||||||
"@netlify/local-functions-proxy": "^1.1.1",
|
"@netlify/local-functions-proxy": "^1.1.1",
|
||||||
"@netlify/plugin-edge-handlers": "^3.0.7",
|
"@netlify/plugin-edge-handlers": "^3.0.7",
|
||||||
|
@ -6007,7 +6006,7 @@
|
||||||
"memoize-one": "^6.0.0",
|
"memoize-one": "^6.0.0",
|
||||||
"minimist": "^1.2.5",
|
"minimist": "^1.2.5",
|
||||||
"multiparty": "^4.2.1",
|
"multiparty": "^4.2.1",
|
||||||
"netlify": "^11.0.0",
|
"netlify": "^11.0.1",
|
||||||
"netlify-headers-parser": "^6.0.2",
|
"netlify-headers-parser": "^6.0.2",
|
||||||
"netlify-onegraph-internal": "0.0.50",
|
"netlify-onegraph-internal": "0.0.50",
|
||||||
"netlify-redirect-parser": "^13.0.5",
|
"netlify-redirect-parser": "^13.0.5",
|
||||||
|
@ -8385,9 +8384,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/netlify-cli/node_modules/@netlify/build": {
|
"node_modules/netlify-cli/node_modules/@netlify/build": {
|
||||||
"version": "26.5.0",
|
"version": "26.5.1",
|
||||||
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.5.1.tgz",
|
||||||
"integrity": "sha512-aF6H6CnWcggf5ObDYMzreGq9tKtny95Ys9GhxCMxoQxfhcw3kab984Xj1epk3wlKNt1vJbZ3bndlme3LDG/cOg==",
|
"integrity": "sha512-sqS/7zyJwp48f1nsKJ9XaZF8FSoJpdCp1EH2g5777rc0hGyYC1AFX0NaJnT3weN47VjsLkaxcfHBUvwo6lyEJw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@bugsnag/js": "^7.0.0",
|
"@bugsnag/js": "^7.0.0",
|
||||||
|
@ -8396,7 +8395,7 @@
|
||||||
"@netlify/functions-utils": "^4.0.0",
|
"@netlify/functions-utils": "^4.0.0",
|
||||||
"@netlify/git-utils": "^4.0.0",
|
"@netlify/git-utils": "^4.0.0",
|
||||||
"@netlify/plugin-edge-handlers": "^3.0.7",
|
"@netlify/plugin-edge-handlers": "^3.0.7",
|
||||||
"@netlify/plugins-list": "^6.16.0",
|
"@netlify/plugins-list": "^6.17.0",
|
||||||
"@netlify/run-utils": "^4.0.0",
|
"@netlify/run-utils": "^4.0.0",
|
||||||
"@netlify/zip-it-and-ship-it": "5.9.0",
|
"@netlify/zip-it-and-ship-it": "5.9.0",
|
||||||
"@sindresorhus/slugify": "^2.0.0",
|
"@sindresorhus/slugify": "^2.0.0",
|
||||||
|
@ -8762,9 +8761,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/netlify-cli/node_modules/@netlify/build/node_modules/is-unicode-supported": {
|
"node_modules/netlify-cli/node_modules/@netlify/build/node_modules/is-unicode-supported": {
|
||||||
"version": "1.1.0",
|
"version": "1.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.2.0.tgz",
|
||||||
"integrity": "sha512-lDcxivp8TJpLG75/DpatAqNzOpDPSpED8XNtrpBHTdQ2InQ1PbW78jhwSxyxhhu+xbVSast2X38bwj8atwoUQA==",
|
"integrity": "sha512-wH+U77omcRzevfIG8dDhTS0V9zZyweakfD01FULl97+0EHiJTTZtJqxPSkIIo/SDPv/i07k/C9jAPY+jwLLeUQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12"
|
"node": ">=12"
|
||||||
|
@ -9013,9 +9012,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/netlify-cli/node_modules/@netlify/build/node_modules/read-pkg-up/node_modules/type-fest": {
|
"node_modules/netlify-cli/node_modules/@netlify/build/node_modules/read-pkg-up/node_modules/type-fest": {
|
||||||
"version": "2.12.0",
|
"version": "2.12.1",
|
||||||
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.0.tgz",
|
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.1.tgz",
|
||||||
"integrity": "sha512-Qe5GRT+n/4GoqCNGGVp5Snapg1Omq3V7irBJB3EaKsp7HWDo5Gv2d/67gfNyV+d5EXD+x/RF5l1h4yJ7qNkcGA==",
|
"integrity": "sha512-AiknQSEqKVGDDjtZqeKrUoTlcj7FKhupmnVUgz6KoOKtvMwRGE6hUNJ/nVear+h7fnUPO1q/htSkYKb1pyntkQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12.20"
|
"node": ">=12.20"
|
||||||
|
@ -9025,9 +9024,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/netlify-cli/node_modules/@netlify/build/node_modules/read-pkg/node_modules/type-fest": {
|
"node_modules/netlify-cli/node_modules/@netlify/build/node_modules/read-pkg/node_modules/type-fest": {
|
||||||
"version": "2.12.0",
|
"version": "2.12.1",
|
||||||
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.0.tgz",
|
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.1.tgz",
|
||||||
"integrity": "sha512-Qe5GRT+n/4GoqCNGGVp5Snapg1Omq3V7irBJB3EaKsp7HWDo5Gv2d/67gfNyV+d5EXD+x/RF5l1h4yJ7qNkcGA==",
|
"integrity": "sha512-AiknQSEqKVGDDjtZqeKrUoTlcj7FKhupmnVUgz6KoOKtvMwRGE6hUNJ/nVear+h7fnUPO1q/htSkYKb1pyntkQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12.20"
|
"node": ">=12.20"
|
||||||
|
@ -9191,9 +9190,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/netlify-cli/node_modules/@netlify/config": {
|
"node_modules/netlify-cli/node_modules/@netlify/config": {
|
||||||
"version": "17.0.18",
|
"version": "17.0.19",
|
||||||
"resolved": "https://registry.npmjs.org/@netlify/config/-/config-17.0.18.tgz",
|
"resolved": "https://registry.npmjs.org/@netlify/config/-/config-17.0.19.tgz",
|
||||||
"integrity": "sha512-iHTCjGtqxwKHMxiN6sbh54u0Zn4VTTZmjjnkNABJ8PwtwyDFFbe2JkFLM7LkikKG0PwP8CeExy+0J+bDTD9RSw==",
|
"integrity": "sha512-GH2fKuqmNt+syuQrWIejB0FqkPZWo1/M1AmiZbcYMHh9oQFnBKo+OixD0BPl66HFKd4/rPKqqwaSg/xZ3Y9mKg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chalk": "^5.0.0",
|
"chalk": "^5.0.0",
|
||||||
|
@ -9209,7 +9208,7 @@
|
||||||
"is-plain-obj": "^4.0.0",
|
"is-plain-obj": "^4.0.0",
|
||||||
"js-yaml": "^4.0.0",
|
"js-yaml": "^4.0.0",
|
||||||
"map-obj": "^5.0.0",
|
"map-obj": "^5.0.0",
|
||||||
"netlify": "^11.0.0",
|
"netlify": "^11.0.1",
|
||||||
"netlify-headers-parser": "^6.0.2",
|
"netlify-headers-parser": "^6.0.2",
|
||||||
"netlify-redirect-parser": "13.0.5",
|
"netlify-redirect-parser": "13.0.5",
|
||||||
"omit.js": "^2.0.2",
|
"omit.js": "^2.0.2",
|
||||||
|
@ -9229,9 +9228,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/netlify-cli/node_modules/@netlify/config/node_modules/chalk": {
|
"node_modules/netlify-cli/node_modules/@netlify/config/node_modules/chalk": {
|
||||||
"version": "5.0.0",
|
"version": "5.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.0.1.tgz",
|
||||||
"integrity": "sha512-/duVOqst+luxCQRKEo4bNxinsOQtMP80ZYm7mMqzuh5PociNL0PvmHFvREJ9ueYL2TxlHjBcmLCdmocx9Vg+IQ==",
|
"integrity": "sha512-Fo07WOYGqMfCWHOzSXOt2CxDbC6skS/jO9ynEcmpANMoPrD+W1r1K6Vx7iNm+AQmETU1Xr2t+n8nzkV9t6xh3w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^12.17.0 || ^14.13 || >=16.0.0"
|
"node": "^12.17.0 || ^14.13 || >=16.0.0"
|
||||||
|
@ -9380,9 +9379,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/netlify-cli/node_modules/@netlify/config/node_modules/is-unicode-supported": {
|
"node_modules/netlify-cli/node_modules/@netlify/config/node_modules/is-unicode-supported": {
|
||||||
"version": "1.1.0",
|
"version": "1.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.2.0.tgz",
|
||||||
"integrity": "sha512-lDcxivp8TJpLG75/DpatAqNzOpDPSpED8XNtrpBHTdQ2InQ1PbW78jhwSxyxhhu+xbVSast2X38bwj8atwoUQA==",
|
"integrity": "sha512-wH+U77omcRzevfIG8dDhTS0V9zZyweakfD01FULl97+0EHiJTTZtJqxPSkIIo/SDPv/i07k/C9jAPY+jwLLeUQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12"
|
"node": ">=12"
|
||||||
|
@ -9524,9 +9523,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/netlify-cli/node_modules/@netlify/config/node_modules/type-fest": {
|
"node_modules/netlify-cli/node_modules/@netlify/config/node_modules/type-fest": {
|
||||||
"version": "2.12.0",
|
"version": "2.12.1",
|
||||||
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.0.tgz",
|
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.1.tgz",
|
||||||
"integrity": "sha512-Qe5GRT+n/4GoqCNGGVp5Snapg1Omq3V7irBJB3EaKsp7HWDo5Gv2d/67gfNyV+d5EXD+x/RF5l1h4yJ7qNkcGA==",
|
"integrity": "sha512-AiknQSEqKVGDDjtZqeKrUoTlcj7FKhupmnVUgz6KoOKtvMwRGE6hUNJ/nVear+h7fnUPO1q/htSkYKb1pyntkQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12.20"
|
"node": ">=12.20"
|
||||||
|
@ -19674,9 +19673,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/netlify-cli/node_modules/gh-release-fetch": {
|
"node_modules/netlify-cli/node_modules/gh-release-fetch": {
|
||||||
"version": "3.0.1",
|
"version": "3.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/gh-release-fetch/-/gh-release-fetch-3.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/gh-release-fetch/-/gh-release-fetch-3.0.2.tgz",
|
||||||
"integrity": "sha512-gV6V6+T0kKppzh/+YXpI/jl8ZgvjMY4oyWR3DAmPsqk9ILhk8TEneLFjBBM3kO7OfZ3dWCvuQu5M0DSh/Hz21w==",
|
"integrity": "sha512-xcX1uaOVDvsm+io4bvJfBFpQCLfoI3DsFay2GBMUtEnNInbNFFZqxTh7X0WIorCDtOmtos5atp2BGHAGEzmlAg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/download": "^8.0.0",
|
"@types/download": "^8.0.0",
|
||||||
|
@ -23705,9 +23704,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/netlify-cli/node_modules/minimist": {
|
"node_modules/netlify-cli/node_modules/minimist": {
|
||||||
"version": "1.2.5",
|
"version": "1.2.6",
|
||||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
|
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
|
||||||
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
|
"integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/netlify-cli/node_modules/minimist-options": {
|
"node_modules/netlify-cli/node_modules/minimist-options": {
|
||||||
|
@ -24033,9 +24032,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/netlify-cli/node_modules/netlify": {
|
"node_modules/netlify-cli/node_modules/netlify": {
|
||||||
"version": "11.0.0",
|
"version": "11.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/netlify/-/netlify-11.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/netlify/-/netlify-11.0.1.tgz",
|
||||||
"integrity": "sha512-y5wVBOCRneW43AI+sODsmGW+rJR11/Dhv/c12bPxdUxfpp0xyPccQLHGb3m+XbgtkQ+XioYBm2Ys1Rnxem1vrw==",
|
"integrity": "sha512-TkVuTvmhlAtvAdgqb+iA5wMehEHS5QcPOrULm1t809Q6KmZIhe+7b0+jwZSsDqgX3OWK/P3xgk/AU0ZbTv7ufw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@netlify/open-api": "^2.8.0",
|
"@netlify/open-api": "^2.8.0",
|
||||||
|
@ -24186,9 +24185,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/netlify-cli/node_modules/netlify/node_modules/node-fetch": {
|
"node_modules/netlify-cli/node_modules/netlify/node_modules/node-fetch": {
|
||||||
"version": "3.2.0",
|
"version": "3.2.3",
|
||||||
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.2.3.tgz",
|
||||||
"integrity": "sha512-8xeimMwMItMw8hRrOl3C9/xzU49HV/yE6ORew/l+dxWimO5A4Ra8ld2rerlJvc/O7et5Z1zrWsPX43v1QBjCxw==",
|
"integrity": "sha512-AXP18u4pidSZ1xYXRDPY/8jdv3RAozIt/WLNR/MBGZAz+xjtlr90RvCnsvHQRiXyWliZF/CpytExp32UU67/SA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"data-uri-to-buffer": "^4.0.0",
|
"data-uri-to-buffer": "^4.0.0",
|
||||||
|
@ -30582,9 +30581,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/netlify-cli/node_modules/typescript": {
|
"node_modules/netlify-cli/node_modules/typescript": {
|
||||||
"version": "4.6.2",
|
"version": "4.6.3",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.2.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz",
|
||||||
"integrity": "sha512-HM/hFigTBHZhLXshn9sN37H085+hQGeJHJ/X7LpBWLID/fbc2acUMfU+lGD98X81sKP+pFa9f0DZmCwB9GnbAg==",
|
"integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsc": "bin/tsc",
|
"tsc": "bin/tsc",
|
||||||
|
@ -38872,13 +38871,13 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"netlify-cli": {
|
"netlify-cli": {
|
||||||
"version": "9.13.4",
|
"version": "9.13.6",
|
||||||
"resolved": "https://registry.npmjs.org/netlify-cli/-/netlify-cli-9.13.4.tgz",
|
"resolved": "https://registry.npmjs.org/netlify-cli/-/netlify-cli-9.13.6.tgz",
|
||||||
"integrity": "sha512-Ws9qKeeGqmHezoKVzGKCfYr+gh2LJZ1RfCjRX8US+3S1YxFyiHpbR8LN7lNDbZj34jEhZeOrwYwS5zbwJtqHCQ==",
|
"integrity": "sha512-6S+uWGZSroD+2Y+RQj0a5bcsjpNCPrJBt2nJHHg0SnGiSCAkf/h2aRUTrFHiyDB/CDWE9brswggxDvGqdSAEAg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@netlify/build": "^26.5.0",
|
"@netlify/build": "^26.5.1",
|
||||||
"@netlify/config": "^17.0.18",
|
"@netlify/config": "^17.0.19",
|
||||||
"@netlify/framework-info": "^9.0.2",
|
"@netlify/framework-info": "^9.0.2",
|
||||||
"@netlify/local-functions-proxy": "^1.1.1",
|
"@netlify/local-functions-proxy": "^1.1.1",
|
||||||
"@netlify/plugin-edge-handlers": "^3.0.7",
|
"@netlify/plugin-edge-handlers": "^3.0.7",
|
||||||
|
@ -38948,7 +38947,7 @@
|
||||||
"memoize-one": "^6.0.0",
|
"memoize-one": "^6.0.0",
|
||||||
"minimist": "^1.2.5",
|
"minimist": "^1.2.5",
|
||||||
"multiparty": "^4.2.1",
|
"multiparty": "^4.2.1",
|
||||||
"netlify": "^11.0.0",
|
"netlify": "^11.0.1",
|
||||||
"netlify-headers-parser": "^6.0.2",
|
"netlify-headers-parser": "^6.0.2",
|
||||||
"netlify-onegraph-internal": "0.0.50",
|
"netlify-onegraph-internal": "0.0.50",
|
||||||
"netlify-redirect-parser": "^13.0.5",
|
"netlify-redirect-parser": "^13.0.5",
|
||||||
|
@ -40675,9 +40674,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@netlify/build": {
|
"@netlify/build": {
|
||||||
"version": "26.5.0",
|
"version": "26.5.1",
|
||||||
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.5.1.tgz",
|
||||||
"integrity": "sha512-aF6H6CnWcggf5ObDYMzreGq9tKtny95Ys9GhxCMxoQxfhcw3kab984Xj1epk3wlKNt1vJbZ3bndlme3LDG/cOg==",
|
"integrity": "sha512-sqS/7zyJwp48f1nsKJ9XaZF8FSoJpdCp1EH2g5777rc0hGyYC1AFX0NaJnT3weN47VjsLkaxcfHBUvwo6lyEJw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@bugsnag/js": "^7.0.0",
|
"@bugsnag/js": "^7.0.0",
|
||||||
|
@ -40686,7 +40685,7 @@
|
||||||
"@netlify/functions-utils": "^4.0.0",
|
"@netlify/functions-utils": "^4.0.0",
|
||||||
"@netlify/git-utils": "^4.0.0",
|
"@netlify/git-utils": "^4.0.0",
|
||||||
"@netlify/plugin-edge-handlers": "^3.0.7",
|
"@netlify/plugin-edge-handlers": "^3.0.7",
|
||||||
"@netlify/plugins-list": "^6.16.0",
|
"@netlify/plugins-list": "^6.17.0",
|
||||||
"@netlify/run-utils": "^4.0.0",
|
"@netlify/run-utils": "^4.0.0",
|
||||||
"@netlify/zip-it-and-ship-it": "5.9.0",
|
"@netlify/zip-it-and-ship-it": "5.9.0",
|
||||||
"@sindresorhus/slugify": "^2.0.0",
|
"@sindresorhus/slugify": "^2.0.0",
|
||||||
|
@ -40934,9 +40933,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"is-unicode-supported": {
|
"is-unicode-supported": {
|
||||||
"version": "1.1.0",
|
"version": "1.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.2.0.tgz",
|
||||||
"integrity": "sha512-lDcxivp8TJpLG75/DpatAqNzOpDPSpED8XNtrpBHTdQ2InQ1PbW78jhwSxyxhhu+xbVSast2X38bwj8atwoUQA==",
|
"integrity": "sha512-wH+U77omcRzevfIG8dDhTS0V9zZyweakfD01FULl97+0EHiJTTZtJqxPSkIIo/SDPv/i07k/C9jAPY+jwLLeUQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"locate-path": {
|
"locate-path": {
|
||||||
|
@ -41069,9 +41068,9 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"type-fest": {
|
"type-fest": {
|
||||||
"version": "2.12.0",
|
"version": "2.12.1",
|
||||||
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.0.tgz",
|
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.1.tgz",
|
||||||
"integrity": "sha512-Qe5GRT+n/4GoqCNGGVp5Snapg1Omq3V7irBJB3EaKsp7HWDo5Gv2d/67gfNyV+d5EXD+x/RF5l1h4yJ7qNkcGA==",
|
"integrity": "sha512-AiknQSEqKVGDDjtZqeKrUoTlcj7FKhupmnVUgz6KoOKtvMwRGE6hUNJ/nVear+h7fnUPO1q/htSkYKb1pyntkQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -41088,9 +41087,9 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"type-fest": {
|
"type-fest": {
|
||||||
"version": "2.12.0",
|
"version": "2.12.1",
|
||||||
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.0.tgz",
|
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.1.tgz",
|
||||||
"integrity": "sha512-Qe5GRT+n/4GoqCNGGVp5Snapg1Omq3V7irBJB3EaKsp7HWDo5Gv2d/67gfNyV+d5EXD+x/RF5l1h4yJ7qNkcGA==",
|
"integrity": "sha512-AiknQSEqKVGDDjtZqeKrUoTlcj7FKhupmnVUgz6KoOKtvMwRGE6hUNJ/nVear+h7fnUPO1q/htSkYKb1pyntkQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -41194,9 +41193,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@netlify/config": {
|
"@netlify/config": {
|
||||||
"version": "17.0.18",
|
"version": "17.0.19",
|
||||||
"resolved": "https://registry.npmjs.org/@netlify/config/-/config-17.0.18.tgz",
|
"resolved": "https://registry.npmjs.org/@netlify/config/-/config-17.0.19.tgz",
|
||||||
"integrity": "sha512-iHTCjGtqxwKHMxiN6sbh54u0Zn4VTTZmjjnkNABJ8PwtwyDFFbe2JkFLM7LkikKG0PwP8CeExy+0J+bDTD9RSw==",
|
"integrity": "sha512-GH2fKuqmNt+syuQrWIejB0FqkPZWo1/M1AmiZbcYMHh9oQFnBKo+OixD0BPl66HFKd4/rPKqqwaSg/xZ3Y9mKg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"chalk": "^5.0.0",
|
"chalk": "^5.0.0",
|
||||||
|
@ -41212,7 +41211,7 @@
|
||||||
"is-plain-obj": "^4.0.0",
|
"is-plain-obj": "^4.0.0",
|
||||||
"js-yaml": "^4.0.0",
|
"js-yaml": "^4.0.0",
|
||||||
"map-obj": "^5.0.0",
|
"map-obj": "^5.0.0",
|
||||||
"netlify": "^11.0.0",
|
"netlify": "^11.0.1",
|
||||||
"netlify-headers-parser": "^6.0.2",
|
"netlify-headers-parser": "^6.0.2",
|
||||||
"netlify-redirect-parser": "13.0.5",
|
"netlify-redirect-parser": "13.0.5",
|
||||||
"omit.js": "^2.0.2",
|
"omit.js": "^2.0.2",
|
||||||
|
@ -41226,9 +41225,9 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chalk": {
|
"chalk": {
|
||||||
"version": "5.0.0",
|
"version": "5.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.0.1.tgz",
|
||||||
"integrity": "sha512-/duVOqst+luxCQRKEo4bNxinsOQtMP80ZYm7mMqzuh5PociNL0PvmHFvREJ9ueYL2TxlHjBcmLCdmocx9Vg+IQ==",
|
"integrity": "sha512-Fo07WOYGqMfCWHOzSXOt2CxDbC6skS/jO9ynEcmpANMoPrD+W1r1K6Vx7iNm+AQmETU1Xr2t+n8nzkV9t6xh3w==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"dot-prop": {
|
"dot-prop": {
|
||||||
|
@ -41314,9 +41313,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"is-unicode-supported": {
|
"is-unicode-supported": {
|
||||||
"version": "1.1.0",
|
"version": "1.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.2.0.tgz",
|
||||||
"integrity": "sha512-lDcxivp8TJpLG75/DpatAqNzOpDPSpED8XNtrpBHTdQ2InQ1PbW78jhwSxyxhhu+xbVSast2X38bwj8atwoUQA==",
|
"integrity": "sha512-wH+U77omcRzevfIG8dDhTS0V9zZyweakfD01FULl97+0EHiJTTZtJqxPSkIIo/SDPv/i07k/C9jAPY+jwLLeUQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"locate-path": {
|
"locate-path": {
|
||||||
|
@ -41395,9 +41394,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"type-fest": {
|
"type-fest": {
|
||||||
"version": "2.12.0",
|
"version": "2.12.1",
|
||||||
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.0.tgz",
|
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.12.1.tgz",
|
||||||
"integrity": "sha512-Qe5GRT+n/4GoqCNGGVp5Snapg1Omq3V7irBJB3EaKsp7HWDo5Gv2d/67gfNyV+d5EXD+x/RF5l1h4yJ7qNkcGA==",
|
"integrity": "sha512-AiknQSEqKVGDDjtZqeKrUoTlcj7FKhupmnVUgz6KoOKtvMwRGE6hUNJ/nVear+h7fnUPO1q/htSkYKb1pyntkQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"yocto-queue": {
|
"yocto-queue": {
|
||||||
|
@ -49167,9 +49166,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"gh-release-fetch": {
|
"gh-release-fetch": {
|
||||||
"version": "3.0.1",
|
"version": "3.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/gh-release-fetch/-/gh-release-fetch-3.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/gh-release-fetch/-/gh-release-fetch-3.0.2.tgz",
|
||||||
"integrity": "sha512-gV6V6+T0kKppzh/+YXpI/jl8ZgvjMY4oyWR3DAmPsqk9ILhk8TEneLFjBBM3kO7OfZ3dWCvuQu5M0DSh/Hz21w==",
|
"integrity": "sha512-xcX1uaOVDvsm+io4bvJfBFpQCLfoI3DsFay2GBMUtEnNInbNFFZqxTh7X0WIorCDtOmtos5atp2BGHAGEzmlAg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/download": "^8.0.0",
|
"@types/download": "^8.0.0",
|
||||||
|
@ -52227,9 +52226,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"minimist": {
|
"minimist": {
|
||||||
"version": "1.2.5",
|
"version": "1.2.6",
|
||||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
|
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
|
||||||
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
|
"integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"minimist-options": {
|
"minimist-options": {
|
||||||
|
@ -52479,9 +52478,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"netlify": {
|
"netlify": {
|
||||||
"version": "11.0.0",
|
"version": "11.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/netlify/-/netlify-11.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/netlify/-/netlify-11.0.1.tgz",
|
||||||
"integrity": "sha512-y5wVBOCRneW43AI+sODsmGW+rJR11/Dhv/c12bPxdUxfpp0xyPccQLHGb3m+XbgtkQ+XioYBm2Ys1Rnxem1vrw==",
|
"integrity": "sha512-TkVuTvmhlAtvAdgqb+iA5wMehEHS5QcPOrULm1t809Q6KmZIhe+7b0+jwZSsDqgX3OWK/P3xgk/AU0ZbTv7ufw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@netlify/open-api": "^2.8.0",
|
"@netlify/open-api": "^2.8.0",
|
||||||
|
@ -52494,9 +52493,9 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"node-fetch": {
|
"node-fetch": {
|
||||||
"version": "3.2.0",
|
"version": "3.2.3",
|
||||||
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.2.3.tgz",
|
||||||
"integrity": "sha512-8xeimMwMItMw8hRrOl3C9/xzU49HV/yE6ORew/l+dxWimO5A4Ra8ld2rerlJvc/O7et5Z1zrWsPX43v1QBjCxw==",
|
"integrity": "sha512-AXP18u4pidSZ1xYXRDPY/8jdv3RAozIt/WLNR/MBGZAz+xjtlr90RvCnsvHQRiXyWliZF/CpytExp32UU67/SA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"data-uri-to-buffer": "^4.0.0",
|
"data-uri-to-buffer": "^4.0.0",
|
||||||
|
@ -57615,9 +57614,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"version": "4.6.2",
|
"version": "4.6.3",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.2.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz",
|
||||||
"integrity": "sha512-HM/hFigTBHZhLXshn9sN37H085+hQGeJHJ/X7LpBWLID/fbc2acUMfU+lGD98X81sKP+pFa9f0DZmCwB9GnbAg==",
|
"integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"uglify-js": {
|
"uglify-js": {
|
||||||
|
|
|
@ -82,6 +82,6 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@netlify/plugin-nextjs": "^4.2.4",
|
"@netlify/plugin-nextjs": "^4.2.4",
|
||||||
"@svgr/cli": "^6.2.1",
|
"@svgr/cli": "^6.2.1",
|
||||||
"netlify-cli": "^9.13.4"
|
"netlify-cli": "^9.13.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,8 @@ case $platform in
|
||||||
echo "Cookie found:"
|
echo "Cookie found:"
|
||||||
echo "$cookie"
|
echo "$cookie"
|
||||||
echo "Running: netlify env:set INFER_COOKIE '\$cookie'"
|
echo "Running: netlify env:set INFER_COOKIE '\$cookie'"
|
||||||
netlify env:set INFER_COOKIE "$cookie"
|
# netlify env:set INFER_COOKIE "$cookie"
|
||||||
|
heroku config:set INFER_COOKIE="$cookie" -a metaforecast-backend
|
||||||
;;
|
;;
|
||||||
"1" )
|
"1" )
|
||||||
echo "Platform: Good Judgment Open"
|
echo "Platform: Good Judgment Open"
|
||||||
|
@ -55,7 +56,8 @@ case $platform in
|
||||||
echo "Cookie found:"
|
echo "Cookie found:"
|
||||||
echo "$cookie"
|
echo "$cookie"
|
||||||
echo "Running: netlify env:set GOODJUDGMENTOPENCOOKIE '\$cookie'"
|
echo "Running: netlify env:set GOODJUDGMENTOPENCOOKIE '\$cookie'"
|
||||||
netlify env:set GOODJUDGMENTOPENCOOKIE "$cookie"
|
# netlify env:set GOODJUDGMENTOPENCOOKIE "$cookie"
|
||||||
|
heroku config:set GOODJUDGMENTOPENCOOKIE="$cookie" -a metaforecast-backend
|
||||||
;;
|
;;
|
||||||
* )
|
* )
|
||||||
echo "Option not in {0,1}, exiting."
|
echo "Option not in {0,1}, exiting."
|
||||||
|
|
|
@ -6,21 +6,22 @@ import { Forecast, Platform } from "./";
|
||||||
|
|
||||||
/* Definitions */
|
/* Definitions */
|
||||||
let graphQLendpoint =
|
let graphQLendpoint =
|
||||||
"https://api.thegraph.com/subgraphs/name/polymarket/matic-markets-5";
|
"https://api.thegraph.com/subgraphs/name/polymarket/matic-markets-5"; // "https://api.thegraph.com/subgraphs/name/polymarket/matic-markets-4"// "https://api.thegraph.com/subgraphs/name/tokenunion/polymarket-matic"//"https://subgraph-matic.poly.market/subgraphs/name/TokenUnion/polymarket"//"https://subgraph-backup.poly.market/subgraphs/name/TokenUnion/polymarket"//'https://subgraph-matic.poly.market/subgraphs/name/TokenUnion/polymarket3'
|
||||||
let units = 10 ** 6;
|
let units = 10 ** 6;
|
||||||
|
|
||||||
async function fetchAllContractInfo() {
|
async function fetchAllContractInfo() {
|
||||||
// for info which the polymarket graphql API
|
// for info which the polymarket graphql API
|
||||||
let response = await axios
|
let response = await axios
|
||||||
.get(
|
.get(
|
||||||
"https://strapi-matic.poly.market/markets?active=true&_sort=volume:desc&_limit=-1"
|
"https://strapi-matic.poly.market/markets?active=true&_sort=volume:desc&closed=false&_limit=-1"
|
||||||
|
// "https://strapi-matic.poly.market/markets?active=true&_sort=volume:desc&_limit=-1" to get all markets, including closed ones
|
||||||
)
|
)
|
||||||
.then((query) => query.data);
|
.then((query) => query.data);
|
||||||
response = response.filter((res) => res.closed != true);
|
response = response.filter((res) => res.closed != true);
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fetchAllContractData() {
|
async function fetchIndividualContractData(marketMakerAddress) {
|
||||||
let daysSinceEra = Math.round(Date.now() / (1000 * 24 * 60 * 60)) - 7; // last week
|
let daysSinceEra = Math.round(Date.now() / (1000 * 24 * 60 * 60)) - 7; // last week
|
||||||
let response = await axios({
|
let response = await axios({
|
||||||
url: graphQLendpoint,
|
url: graphQLendpoint,
|
||||||
|
@ -31,6 +32,7 @@ async function fetchAllContractData() {
|
||||||
{
|
{
|
||||||
fixedProductMarketMakers(first: 1000
|
fixedProductMarketMakers(first: 1000
|
||||||
where: {
|
where: {
|
||||||
|
id: "${marketMakerAddress}"
|
||||||
lastActiveDay_gt: ${daysSinceEra}
|
lastActiveDay_gt: ${daysSinceEra}
|
||||||
}){
|
}){
|
||||||
id
|
id
|
||||||
|
@ -56,69 +58,53 @@ async function fetchAllContractData() {
|
||||||
})
|
})
|
||||||
.then((res) => res.data)
|
.then((res) => res.data)
|
||||||
.then((res) => res.data.fixedProductMarketMakers);
|
.then((res) => res.data.fixedProductMarketMakers);
|
||||||
|
// console.log(response)
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const polymarket: Platform = {
|
export const polymarket: Platform = {
|
||||||
name: "polymarket",
|
name: "polymarket",
|
||||||
async fetcher() {
|
async fetcher() {
|
||||||
let allData = await fetchAllContractData();
|
let results: Forecast[] = [];
|
||||||
let allInfo = await fetchAllContractInfo();
|
let webpageEndpointData = await fetchAllContractInfo();
|
||||||
|
for (let marketInfo of webpageEndpointData) {
|
||||||
let used = process.memoryUsage().heapUsed / 1024 / 1024;
|
let address = marketInfo.marketMakerAddress;
|
||||||
console.log(
|
|
||||||
`The script uses approximately ${Math.round(used * 100) / 100} MB`
|
|
||||||
);
|
|
||||||
|
|
||||||
let infos = {};
|
|
||||||
for (let info of allInfo) {
|
|
||||||
let address = info.marketMakerAddress;
|
|
||||||
let addressLowerCase = address.toLowerCase();
|
let addressLowerCase = address.toLowerCase();
|
||||||
|
if (
|
||||||
if (info.outcomes[0] != "Long" || info.outcomes[1] != "Long")
|
marketInfo.outcomes[0] != "Long" ||
|
||||||
infos[addressLowerCase] = {
|
marketInfo.outcomes[1] != "Long"
|
||||||
title: info.question,
|
) {
|
||||||
url: "https://polymarket.com/market/" + info.slug,
|
let moreMarketAnswer = await fetchIndividualContractData(
|
||||||
address: address,
|
addressLowerCase
|
||||||
description: info.description,
|
);
|
||||||
outcomes: info.outcomes,
|
if (moreMarketAnswer.length > 0) {
|
||||||
options: [],
|
let moreMarketInfo = moreMarketAnswer[0];
|
||||||
category: info.category,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
let results = [];
|
|
||||||
for (let data of allData) {
|
|
||||||
let addressLowerCase = data.id;
|
|
||||||
|
|
||||||
if (infos[addressLowerCase] != undefined) {
|
|
||||||
let id = `polymarket-${addressLowerCase.slice(0, 10)}`;
|
let id = `polymarket-${addressLowerCase.slice(0, 10)}`;
|
||||||
let info = infos[addressLowerCase];
|
// console.log(id);
|
||||||
let numforecasts = Number(data.tradesQuantity);
|
let numforecasts = Number(moreMarketInfo.tradesQuantity);
|
||||||
let tradevolume =
|
let tradevolume =
|
||||||
(Number(data.collateralBuyVolume) +
|
(Number(moreMarketInfo.collateralBuyVolume) +
|
||||||
Number(data.collateralSellVolume)) /
|
Number(moreMarketInfo.collateralSellVolume)) /
|
||||||
units;
|
units;
|
||||||
let liquidity = Number(data.liquidityParameter) / units;
|
let liquidity = Number(moreMarketInfo.liquidityParameter) / units;
|
||||||
// let isbinary = Number(data.conditions[0].outcomeSlotCount) == 2
|
// let isbinary = Number(moreMarketInfo.conditions[0].outcomeSlotCount) == 2
|
||||||
// let percentage = Number(data.outcomeTokenPrices[0]) * 100
|
// let percentage = Number(moreMarketInfo.outcomeTokenPrices[0]) * 100
|
||||||
// let percentageFormatted = isbinary ? (percentage.toFixed(0) + "%") : "none"
|
// let percentageFormatted = isbinary ? (percentage.toFixed(0) + "%") : "none"
|
||||||
let options = [];
|
let options = [];
|
||||||
for (let outcome in data.outcomeTokenPrices) {
|
for (let outcome in moreMarketInfo.outcomeTokenPrices) {
|
||||||
options.push({
|
options.push({
|
||||||
name: info.outcomes[outcome],
|
name: marketInfo.outcomes[outcome],
|
||||||
probability: data.outcomeTokenPrices[outcome],
|
probability: moreMarketInfo.outcomeTokenPrices[outcome],
|
||||||
type: "PROBABILITY",
|
type: "PROBABILITY",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let result: Forecast = {
|
let result: Forecast = {
|
||||||
id: id,
|
id: id,
|
||||||
title: info.title,
|
title: marketInfo.question,
|
||||||
url: info.url,
|
url: "https://polymarket.com/market/" + marketInfo.slug,
|
||||||
platform: "PolyMarket",
|
platform: "PolyMarket",
|
||||||
description: info.description,
|
description: marketInfo.description,
|
||||||
options: options,
|
options: options,
|
||||||
timestamp: new Date().toISOString(),
|
timestamp: new Date().toISOString(),
|
||||||
qualityindicators: {
|
qualityindicators: {
|
||||||
|
@ -132,15 +118,17 @@ export const polymarket: Platform = {
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
extra: {
|
extra: {
|
||||||
address: info.address,
|
address: marketInfo.address,
|
||||||
},
|
},
|
||||||
|
/*
|
||||||
|
*/
|
||||||
};
|
};
|
||||||
if (info.category != "Sports") {
|
if (marketInfo.category !== "Sports") {
|
||||||
results.push(result);
|
results.push(result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return results;
|
return results;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user