Skip to content

Did not manage to install the CLI #719

Description

@maxencerb

I did the installation on a clean VM, installed the latest version of bun and foundry. The installation failed while building because of type errors it seems.

I did the full install by pulling the repo and also with the simple bash command:

curl -fsSL https://raw.githubusercontent.com/wormhole-foundation/native-token-transfers/main/cli/install.sh | bash

Both fail.

Here are the errors:

@wormhole-foundation/sdk-definitions-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ $ tsc -p ./tsconfig.cjs.json  && echo '{"type":"commonjs"}' > dist/cjs/package.json
│ src/layouts/index.ts(11,14): error TS2742: The inferred type of 'nttNamedPayloads' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/manager.ts(12,14): error TS2742: The inferred type of 'nttManagerMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiver.ts(15,14): error TS2742: The inferred type of 'transceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiverInstructions.ts(7,14): error TS2742: The inferred type of 'transceiverInstructionLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/wormhole.ts(11,14): error TS2742: The inferred type of 'wormholeTransceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ error: script "build:cjs" exited with code 1
└─ Exited with code 1
@wormhole-foundation/sdk-definitions-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ $ tsc -p ./tsconfig.cjs.json  && echo '{"type":"commonjs"}' > dist/cjs/package.json
│ src/layouts/index.ts(11,14): error TS2742: The inferred type of 'nttNamedPayloads' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/manager.ts(12,14): error TS2742: The inferred type of 'nttManagerMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiver.ts(15,14): error TS2742: The inferred type of 'transceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiverInstructions.ts(7,14): error TS2742: The inferred type of 'transceiverInstructionLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/wormhole.ts(11,14): error TS2742: The inferred type of 'wormholeTransceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ error: script "build:cjs" exited with code 1
└─ Exited with code 1
@wormhole-foundation/sdk-evm-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
@wormhole-foundation/sdk-definitions-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ $ tsc -p ./tsconfig.cjs.json  && echo '{"type":"commonjs"}' > dist/cjs/package.json
│ src/layouts/index.ts(11,14): error TS2742: The inferred type of 'nttNamedPayloads' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/manager.ts(12,14): error TS2742: The inferred type of 'nttManagerMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiver.ts(15,14): error TS2742: The inferred type of 'transceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiverInstructions.ts(7,14): error TS2742: The inferred type of 'transceiverInstructionLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/wormhole.ts(11,14): error TS2742: The inferred type of 'wormholeTransceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ error: script "build:cjs" exited with code 1
└─ Exited with code 1
@wormhole-foundation/sdk-evm-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
@wormhole-foundation/sdk-definitions-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ $ tsc -p ./tsconfig.cjs.json  && echo '{"type":"commonjs"}' > dist/cjs/package.json
│ src/layouts/index.ts(11,14): error TS2742: The inferred type of 'nttNamedPayloads' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/manager.ts(12,14): error TS2742: The inferred type of 'nttManagerMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiver.ts(15,14): error TS2742: The inferred type of 'transceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiverInstructions.ts(7,14): error TS2742: The inferred type of 'transceiverInstructionLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/wormhole.ts(11,14): error TS2742: The inferred type of 'wormholeTransceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ error: script "build:cjs" exited with code 1
└─ Exited with code 1
@wormhole-foundation/sdk-evm-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
@wormhole-foundation/sdk-definitions-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ $ tsc -p ./tsconfig.cjs.json  && echo '{"type":"commonjs"}' > dist/cjs/package.json
│ src/layouts/index.ts(11,14): error TS2742: The inferred type of 'nttNamedPayloads' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/manager.ts(12,14): error TS2742: The inferred type of 'nttManagerMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiver.ts(15,14): error TS2742: The inferred type of 'transceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiverInstructions.ts(7,14): error TS2742: The inferred type of 'transceiverInstructionLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/wormhole.ts(11,14): error TS2742: The inferred type of 'wormholeTransceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ error: script "build:cjs" exited with code 1
└─ Exited with code 1
@wormhole-foundation/sdk-evm-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
@wormhole-foundation/sdk-definitions-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ $ tsc -p ./tsconfig.cjs.json  && echo '{"type":"commonjs"}' > dist/cjs/package.json
│ src/layouts/index.ts(11,14): error TS2742: The inferred type of 'nttNamedPayloads' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/manager.ts(12,14): error TS2742: The inferred type of 'nttManagerMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiver.ts(15,14): error TS2742: The inferred type of 'transceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiverInstructions.ts(7,14): error TS2742: The inferred type of 'transceiverInstructionLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/wormhole.ts(11,14): error TS2742: The inferred type of 'wormholeTransceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ error: script "build:cjs" exited with code 1
└─ Exited with code 1
@wormhole-foundation/sdk-evm-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ $ tsc -p ./tsconfig.cjs.json  && echo '{"type":"commonjs"}' > dist/cjs/package.json
@wormhole-foundation/sdk-definitions-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ $ tsc -p ./tsconfig.cjs.json  && echo '{"type":"commonjs"}' > dist/cjs/package.json
│ src/layouts/index.ts(11,14): error TS2742: The inferred type of 'nttNamedPayloads' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/manager.ts(12,14): error TS2742: The inferred type of 'nttManagerMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiver.ts(15,14): error TS2742: The inferred type of 'transceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiverInstructions.ts(7,14): error TS2742: The inferred type of 'transceiverInstructionLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/wormhole.ts(11,14): error TS2742: The inferred type of 'wormholeTransceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ error: script "build:cjs" exited with code 1
└─ Exited with code 1
@wormhole-foundation/sdk-evm-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ $ tsc -p ./tsconfig.cjs.json  && echo '{"type":"commonjs"}' > dist/cjs/package.json
│ src/ntt.ts(332,31): error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
│ src/ntt.ts(347,31): error TS7015: Element implicitly has an 'any' type because index expression is
@wormhole-foundation/sdk-definitions-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ $ tsc -p ./tsconfig.cjs.json  && echo '{"type":"commonjs"}' > dist/cjs/package.json
│ src/layouts/index.ts(11,14): error TS2742: The inferred type of 'nttNamedPayloads' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/manager.ts(12,14): error TS2742: The inferred type of 'nttManagerMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiver.ts(15,14): error TS2742: The inferred type of 'transceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiverInstructions.ts(7,14): error TS2742: The inferred type of 'transceiverInstructionLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/wormhole.ts(11,14): error TS2742: The inferred type of 'wormholeTransceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ error: script "build:cjs" exited with code 1
└─ Exited with code 1
@wormhole-foundation/sdk-evm-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ $ tsc -p ./tsconfig.cjs.json  && echo '{"type":"commonjs"}' > dist/cjs/package.json
│ src/ntt.ts(332,31): error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
│ src/ntt.ts(347,31): error TS7015: Element implicitly has an 'any' type because index expression is
@wormhole-foundation/sdk-definitions-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ $ tsc -p ./tsconfig.cjs.json  && echo '{"type":"commonjs"}' > dist/cjs/package.json
│ src/layouts/index.ts(11,14): error TS2742: The inferred type of 'nttNamedPayloads' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/manager.ts(12,14): error TS2742: The inferred type of 'nttManagerMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiver.ts(15,14): error TS2742: The inferred type of 'transceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiverInstructions.ts(7,14): error TS2742: The inferred type of 'transceiverInstructionLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/wormhole.ts(11,14): error TS2742: The inferred type of 'wormholeTransceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ error: script "build:cjs" exited with code 1
└─ Exited with code 1
@wormhole-foundation/sdk-evm-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ $ tsc -p ./tsconfig.cjs.json  && echo '{"type":"commonjs"}' > dist/cjs/package.json
│ src/ntt.ts(332,31): error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
│ src/ntt.ts(347,31): error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
@wormhole-foundation/sdk-definitions-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ $ tsc -p ./tsconfig.cjs.json  && echo '{"type":"commonjs"}' > dist/cjs/package.json
│ src/layouts/index.ts(11,14): error TS2742: The inferred type of 'nttNamedPayloads' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/manager.ts(12,14): error TS2742: The inferred type of 'nttManagerMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiver.ts(15,14): error TS2742: The inferred type of 'transceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiverInstructions.ts(7,14): error TS2742: The inferred type of 'transceiverInstructionLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/wormhole.ts(11,14): error TS2742: The inferred type of 'wormholeTransceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ error: script "build:cjs" exited with code 1
└─ Exited with code 1
@wormhole-foundation/sdk-evm-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ $ tsc -p ./tsconfig.cjs.json  && echo '{"type":"commonjs"}' > dist/cjs/package.json
│ src/ntt.ts(332,31): error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
│ src/ntt.ts(347,31): error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
│ src/ntt.ts(360,31): error TS7015: Element implicitly has an 'any' type because index expression is
@wormhole-foundation/sdk-definitions-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ $ tsc -p ./tsconfig.cjs.json  && echo '{"type":"commonjs"}' > dist/cjs/package.json
│ src/layouts/index.ts(11,14): error TS2742: The inferred type of 'nttNamedPayloads' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/manager.ts(12,14): error TS2742: The inferred type of 'nttManagerMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiver.ts(15,14): error TS2742: The inferred type of 'transceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiverInstructions.ts(7,14): error TS2742: The inferred type of 'transceiverInstructionLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/wormhole.ts(11,14): error TS2742: The inferred type of 'wormholeTransceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ error: script "build:cjs" exited with code 1
└─ Exited with code 1
@wormhole-foundation/sdk-evm-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ $ tsc -p ./tsconfig.cjs.json  && echo '{"type":"commonjs"}' > dist/cjs/package.json
│ src/ntt.ts(332,31): error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
│ src/ntt.ts(347,31): error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
│ src/ntt.ts(360,31): error TS7015: Element implicitly has an 'any' type because index expression is
@wormhole-foundation/sdk-definitions-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ $ tsc -p ./tsconfig.cjs.json  && echo '{"type":"commonjs"}' > dist/cjs/package.json
│ src/layouts/index.ts(11,14): error TS2742: The inferred type of 'nttNamedPayloads' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/manager.ts(12,14): error TS2742: The inferred type of 'nttManagerMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiver.ts(15,14): error TS2742: The inferred type of 'transceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiverInstructions.ts(7,14): error TS2742: The inferred type of 'transceiverInstructionLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/wormhole.ts(11,14): error TS2742: The inferred type of 'wormholeTransceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ error: script "build:cjs" exited with code 1
└─ Exited with code 1
@wormhole-foundation/sdk-evm-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ $ tsc -p ./tsconfig.cjs.json  && echo '{"type":"commonjs"}' > dist/cjs/package.json
│ src/ntt.ts(332,31): error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
│ src/ntt.ts(347,31): error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
│ src/ntt.ts(360,31): error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
│ src/ntt.ts(575,27): error TS2345: Argument of type 'VAA<"Ntt:WormholeTransfer">' is not assignable to parameter of type 'never'.
└─ Exited with code 2
@wormhole-foundation/sdk-solana-ntt build $ bun run build:esm && bun run build:cjs
│ [5 lines elided]
│ ts/sdk/ntt.ts(103,36): error TS2339: Property 'payload' does not exist on type 'never'.
│ ts/sdk/ntt.ts(104,31): error TS2339: Property 'emitterChain' does not exist on type 'never'.
│ ts/sdk/ntt.ts(113,35): error TS2339: Property 'hash' does not exist on type 'never'.
@wormhole-foundation/sdk-definitions-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ $ tsc -p ./tsconfig.cjs.json  && echo '{"type":"commonjs"}' > dist/cjs/package.json
│ src/layouts/index.ts(11,14): error TS2742: The inferred type of 'nttNamedPayloads' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/manager.ts(12,14): error TS2742: The inferred type of 'nttManagerMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiver.ts(15,14): error TS2742: The inferred type of 'transceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/transceiverInstructions.ts(7,14): error TS2742: The inferred type of 'transceiverInstructionLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ src/layouts/wormhole.ts(11,14): error TS2742: The inferred type of 'wormholeTransceiverMessageLayout' cannot be named without a reference to '.bun/binary-layout@1.3.1/node_modules/binary-layout'. This is likely not portable. A type annotation is necessary.
│ error: script "build:cjs" exited with code 1
└─ Exited with code 1
@wormhole-foundation/sdk-evm-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ $ tsc -p ./tsconfig.cjs.json  && echo '{"type":"commonjs"}' > dist/cjs/package.json
│ src/ntt.ts(332,31): error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
│ src/ntt.ts(347,31): error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
│ src/ntt.ts(360,31): error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
│ src/ntt.ts(575,27): error TS2345: Argument of type 'VAA<"Ntt:WormholeTransfer">' is not assignable to parameter of type 'never'.
└─ Exited with code 2
@wormhole-foundation/sdk-solana-ntt build $ bun run build:esm && bun run build:cjs
│ [5 lines elided]
│ ts/sdk/ntt.ts(103,36): error TS2339: Property 'payload' does not exist on type 'never'.
│ ts/sdk/ntt.ts(104,31): error TS2339: Property 'emitterChain' does not exist on type 'never'.
│ ts/sdk/ntt.ts(113,35): error TS2339: Property 'hash' does not exist on type 'never'.
│ ts/sdk/ntt.ts(1051,41): error TS2345: Argument of type 'VAA<"Ntt:WormholeTransfer">' is not assignable to parameter of type 'VAA<PayloadLiteral>'.
│   Type '"Ntt:WormholeTransfer"' is not assignable to type 'PayloadLiteral'.
│ ts/sdk/ntt.ts(1056,11): error TS2345: Argument of type 'VAA<"Ntt:WormholeTransfer">' is not assignable to parameter of type 'never'.
│ ts/sdk/ntt.ts(1070,48): error TS2339: Property 'nttManagerPayload' does not exist on type 'Uint8Array<ArrayBufferLike>'.
│ ts/sdk/ntt.ts(1181,41): error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
│ ts/sdk/ntt.ts(1200,41): error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
│ ts/sdk/ntt.ts(1219,41): error TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'.
└─ Exited with code 2
@wormhole-foundation/sdk-sui-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ src/bcs-types.ts(2,35): error TS2307: Cannot find module '@mysten/bcs' or its corresponding type declarations.
│ src/utils.ts(3,33): error TS2307: Cannot find module '@mysten/bcs' or its corresponding type declarations.
└─ Exited with code 2
@wormhole-foundation/sdk-route-ntt build $ bun run build:esm && bun run build:cjs
│ $ tsc -p ./tsconfig.esm.json
│ src/executor/executor.ts(52,8): error TS2307: Cannot find module '@wormhole-foundation/sdk-definitions' or its corresponding type declarations.
│ src/executor/executor.ts(469,43): error TS7031: Binding element 'request' implicitly has an 'any' type.
│ src/executor/utils.ts(6,8): error TS2307: Cannot find module '@wormhole-foundation/sdk-base' or its corresponding type declarations.
│ src/executor/utils.ts(7,29): error TS2307: Cannot find module '@wormhole-foundation/sdk-definitions' or its corresponding type declarations.
│ src/executor/utils.ts(75,18): error TS7053: Element implicitly has an 'any' type because expression of type 'Network' can't be used to index type 'Partial<Record<"Mainnet" | "Testnet" | "Devnet", string>>'.
│ src/executor/utils.ts(96,18): error TS7053: Element implicitly has an 'any' type because expression of type 'Network' can't be used to index type 'Partial<Record<"Mainnet" | "Testnet" | "Devnet", string>>'.
│ src/executor/utils.ts(121,18): error TS7053: Element implicitly has an 'any' type because expression of type 'Network' can't be used to index type 'Partial<Record<"Mainnet" | "Testnet" | "Devnet", string>>'.
│ src/executor/utils.ts(153,5): error TS2322: Type 'number' is not assignable to type 'bigint'.
└─ Exited with code 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions