Skip to content

feat: btc to sbtc swap #14798

feat: btc to sbtc swap

feat: btc to sbtc swap #14798

Triggered via push December 3, 2024 21:48
Status Failure
Total duration 1m 31s
Artifacts

code-checks.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 24 warnings
lint-unused-exports
Process completed with exit code 1.
typecheck: src/app/common/hooks/use-filtered-sip10-tokens.ts#L25
Argument of type 'import("/home/runner/work/extension/extension/src/app/pages/swap/swap.context").SwapAsset[]' is not assignable to parameter of type 'import("/home/runner/work/extension/extension/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@leather.io/query/dist/src/common/alex-sdk/alex-sdk.hooks").SwapAsset[]'.
typecheck: src/app/common/hooks/use-filtered-sip10-tokens.ts#L26
Argument of type 'import("/home/runner/work/extension/extension/src/app/pages/swap/swap.context").SwapAsset[]' is not assignable to parameter of type 'import("/home/runner/work/extension/extension/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@leather.io/query/dist/src/common/alex-sdk/alex-sdk.hooks").SwapAsset[]'.
typecheck: src/app/common/hooks/use-filtered-sip10-tokens.ts#L27
Argument of type 'import("/home/runner/work/extension/extension/src/app/pages/swap/swap.context").SwapAsset[]' is not assignable to parameter of type 'import("/home/runner/work/extension/extension/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@leather.io/query/dist/src/common/alex-sdk/alex-sdk.hooks").SwapAsset[]'.
typecheck: src/app/common/hooks/use-submit-stx-transaction.ts#L39
Argument of type 'StacksNetwork' is not assignable to parameter of type '"mainnet" | "testnet" | "devnet" | "mocknet" | StacksNetwork | undefined'.
typecheck: src/app/common/transactions/stacks/generate-unsigned-txs.ts#L69
Argument of type '(string | PostCondition | PostCondition)[] | undefined' is not assignable to parameter of type '(string | PostCondition)[] | undefined'.
typecheck: src/app/common/transactions/stacks/generate-unsigned-txs.ts#L73
Argument of type '{ contractName: string; contractAddress: string; functionName: string; publicKey: string; anchorMode: AnchorMode | AnchorMode; ... 6 more ...; sponsored: boolean | undefined; }' is not assignable to parameter of type 'UnsignedContractCallOptions | UnsignedMultiSigContractCallOptions'.
typecheck: src/app/common/transactions/stacks/generate-unsigned-txs.ts#L91
Argument of type '(string | PostCondition | PostCondition)[] | undefined' is not assignable to parameter of type '(string | PostCondition)[] | undefined'.
typecheck: src/app/common/transactions/stacks/generate-unsigned-txs.ts#L94
Argument of type '{ contractName: string; codeBody: string; nonce: string | undefined; fee: string; publicKey: string; anchorMode: AnchorMode | AnchorMode; postConditionMode: PostConditionMode | undefined; postConditions: PostCondition[] | undefined; network: StacksNetwork | undefined; }' is not assignable to parameter of type 'UnsignedContractDeployOptions | UnsignedMultiSigContractDeployOptions'.
typecheck: src/app/common/transactions/stacks/generate-unsigned-txs.ts#L114
Argument of type '{ recipient: string; memo: string | undefined; publicKey: string; anchorMode: AnchorMode | AnchorMode; amount: string; nonce: string | undefined; fee: string; network: StacksNetwork | undefined; }' is not assignable to parameter of type 'UnsignedTokenTransferOptions | UnsignedMultiSigTokenTransferOptions'.
typecheck: src/app/features/add-network/use-add-network.tsx#L124
Property 'fetchFn' does not exist on type 'StacksNetwork'.
src/app/common/transactions/stacks/generate-unsigned-txs.spec.ts > generated signed transactions > can handle encoded payload: tests/transation-test-utils.ts#L49
TypeError: StacksTestnet is not a constructor ❯ Module.generateContractCallToken tests/transation-test-utils.ts:49:19 ❯ src/app/common/transactions/stacks/generate-unsigned-txs.spec.ts:9:31
test-unit
Process completed with exit code 1.
lint-commit
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint-commit
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
lint-unused-exports
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
audit
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint-deps
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
locked-versions
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint-filename
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
typecheck
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test-unit
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint-prettier
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint-message-schema
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test-build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint-eslint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint-eslint: src/app/common/app-analytics.ts#L80
'chrome' is deprecated. Part of the deprecated Chrome Apps platform
lint-eslint: src/app/common/app-analytics.ts#L85
'chrome' is deprecated. Part of the deprecated Chrome Apps platform
lint-eslint: src/app/common/authentication/use-legacy-auth-bitcoin-addresses.ts#L30
This assertion is unnecessary since the receiver accepts the original type of the expression
lint-eslint: src/app/common/authentication/use-legacy-auth-bitcoin-addresses.ts#L31
This assertion is unnecessary since the receiver accepts the original type of the expression
lint-eslint: src/app/common/authentication/use-legacy-auth-bitcoin-addresses.ts#L34
This assertion is unnecessary since the receiver accepts the original type of the expression
lint-eslint: src/app/common/authentication/use-legacy-auth-bitcoin-addresses.ts#L35
This assertion is unnecessary since the receiver accepts the original type of the expression
lint-eslint: src/app/common/hooks/use-copy-to-clipboard.ts#L21
'execCommand' is deprecated. [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/execCommand)
lint-eslint: src/app/common/hooks/use-waiting-message.ts#L9
This assertion is unnecessary since it does not change the type of the expression
lint-eslint: src/app/common/persistence.ts#L15
'chrome' is deprecated. Part of the deprecated Chrome Apps platform
lint-eslint: src/app/common/persistence.ts#L18
'chrome' is deprecated. Part of the deprecated Chrome Apps platform
lint-firefox-build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636