Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m11s
CI/CD Pipeline / Security Scanning (push) Has been cancelled
CI/CD Pipeline / Lint and Format (push) Has been cancelled
CI/CD Pipeline / Terraform Validation (push) Has been cancelled
CI/CD Pipeline / Kubernetes Validation (push) Has been cancelled
Validation / validate-genesis (push) Has been cancelled
Validation / validate-terraform (push) Has been cancelled
Validation / validate-kubernetes (push) Has been cancelled
Validation / validate-smart-contracts (push) Has been cancelled
Validation / validate-security (push) Has been cancelled
Validation / validate-documentation (push) Has been cancelled
Deploy ChainID 138 / Deploy ChainID 138 (push) Failing after 1m4s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 31s
OMNL reconcile anchor / Run omnl:reconcile and upload artifacts (push) Failing after 29s
Verify Deployment / Verify Deployment (push) Failing after 57s
Relay router, reserve system, oracle publisher, token-aggregation compliance middleware, and Monad deployment scripts. Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
726 B
JavaScript
18 lines
726 B
JavaScript
/** Jest vm context may not inherit Node web APIs or global fetch. */
|
|
if (typeof globalThis.ReadableStream === 'undefined') {
|
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
const { ReadableStream, WritableStream, TransformStream } = require('stream/web');
|
|
globalThis.ReadableStream = ReadableStream;
|
|
globalThis.WritableStream = WritableStream;
|
|
globalThis.TransformStream = TransformStream;
|
|
}
|
|
|
|
if (typeof globalThis.fetch === 'undefined') {
|
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
const { fetch, Headers, Request, Response } = require('undici');
|
|
globalThis.fetch = fetch;
|
|
globalThis.Headers = Headers;
|
|
globalThis.Request = Request;
|
|
globalThis.Response = Response;
|
|
}
|