Skip to content

Commit

Permalink
chore: sync staging to main for release (#633)
Browse files Browse the repository at this point in the history
Co-authored-by: Todd Kao <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nur Fikri <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Not Jeremy Liu <[email protected]>
Co-authored-by: thal0x <[email protected]>
  • Loading branch information
7 people authored Jan 9, 2025
1 parent 1633ba5 commit 7f3ede7
Show file tree
Hide file tree
Showing 161 changed files with 1,405 additions and 1,637 deletions.
5 changes: 5 additions & 0 deletions .changeset/clean-weeks-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@skip-go/widget': patch
---

Convert globalStyles to stylesheet before passing to react-shadow-scope
5 changes: 5 additions & 0 deletions .changeset/cool-boats-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@skip-go/widget': patch
---

Fix routePreference bug
5 changes: 5 additions & 0 deletions .changeset/lemon-mice-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@skip-go/widget': patch
---

Add sentry integration (session replay, error tracking)
5 changes: 5 additions & 0 deletions .changeset/plenty-cobras-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@skip-go/widget': patch
---

Fix okxWallet eco connection
5 changes: 5 additions & 0 deletions .changeset/popular-donkeys-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@skip-go/client': patch
---

no longer override timeout in signCosmosMessageAmino
5 changes: 5 additions & 0 deletions .changeset/smooth-zoos-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@skip-go/widget': patch
---

enable evm walletconnect for desktop
5 changes: 5 additions & 0 deletions .changeset/thick-cherries-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@skip-go/client': patch
---

update stargate fee types
6 changes: 6 additions & 0 deletions .changeset/unlucky-books-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@skip-go/client': patch
'@skip-go/widget': patch
---

add stargate to experimental features
5 changes: 5 additions & 0 deletions .changeset/wicked-beans-judge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@skip-go/widget': patch
---

Track error in sentry if the transaction fails
4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
},
"eslint.format.enable": true,
"[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[typescriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
Expand Down
12 changes: 10 additions & 2 deletions docs/advanced-transfer/go-fast.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: 'A brief overview of the Go Fast Transfer system'

<Info>
Read the whitepaper [here](https://skip-protocol.notion.site/EXT-Skip-Go-Fast-b30bc47ecc114871bc856184633b504b).
Find integration details for Go Fast [here](../client/advanced-features).
Find integration details for Go Fast [here](../client/advanced-features#use-the-go-fast-transfer-system).
</Info>

# Overview
Expand Down Expand Up @@ -53,4 +53,12 @@ Go Fast works by having solvers use their own capital to fill orders as quickly

Currently, the basis points fee on transfer size paid to solvers is 10 basis points across all transfer sizes. As the protocol evolves, the basis points fee charged is expected to decrease as transfer size increases.

The source and destination gas fees are determined dynamically based on the source and destination chains and their current gas costs, optimized to minimize costs while covering settlement and rebalancing for solvers.
The source and destination gas fees are determined dynamically based on the source and destination chains and their current gas costs, optimized to minimize costs while covering settlement and rebalancing for solvers.

# How do I integrate Go Fast into my application?

For instructions on integrating Go Fast using the `@skip-go/client`, see the [Advanced Features guide](../client/advanced-features#use-the-go-fast-transfer-system).

If you're using the Widget, refer to the [Widget Configuration](../widget/configuration#routeconfig).

Note that enabling Go Fast prioritizes speed over lower fees. For more cost-efficient routes, it's recommended to leave Go Fast disabled.
2 changes: 1 addition & 1 deletion docs/widget/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Customizes enabled route types.

```ts
routeConfig?: {
experimentalFeatures?: ['hyperlane', 'cctp'];
experimentalFeatures?: ['hyperlane', 'cctp', 'stargate'];
allowMultiTx?: boolean;
allowUnsafe?: boolean;
bridges?: ('IBC' | 'AXELAR' | 'CCTP' | 'HYPERLANE' | 'GO_FAST')[];
Expand Down
1 change: 1 addition & 0 deletions examples/nextjs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Updated dependencies [0622dcd]
- @skip-go/widget@3.1.5


## 0.1.32

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/types/unified.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export type MsgsWarningType =
| 'INSUFFICIENT_GAS_AT_DEST_EOA'
| 'INSUFFICIENT_GAS_AT_INTERMEDIATE';

export type ExperimentalFeature = 'cctp' | 'hyperlane';
export type ExperimentalFeature = 'cctp' | 'hyperlane' | 'stargate';

export type RouteWarning = {
type: RouteWarningType;
Expand Down
47 changes: 34 additions & 13 deletions packages/widget/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import reactHooks from "eslint-plugin-react-hooks";
import { fixupPluginRules } from "@eslint/compat";
import prettier from "eslint-plugin-prettier";

export default tseslint.config(
eslint.configs.recommended,
Expand All @@ -11,24 +12,44 @@ export default tseslint.config(
{
plugins: {
"react-hooks": fixupPluginRules(reactHooks),
prettier: prettier,
},
rules: {
...reactHooks.configs.recommended.rules,
"prettier/prettier": [
"error",
{
singleQuote: false,
trailingComma: "all",
tabWidth: 2,
semi: true,
printWidth: 100,
bracketSpacing: true,
endOfLine: "auto",
},
],
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/no-unused-vars": ["error", {
"args": "all",
"argsIgnorePattern": "^_",
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}],
"semi": ["error", "always"],
"@typescript-eslint/no-unused-vars": [
"error",
{
args: "all",
argsIgnorePattern: "^_",
caughtErrors: "all",
caughtErrorsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_",
varsIgnorePattern: "^_",
ignoreRestSiblings: true,
},
],
semi: ["error", "always"],
"no-console": ["error", { allow: ["warn", "error"] }],
"quotes": ["error", "double", { "avoidEscape": true }],
quotes: ["error", "double", { avoidEscape: true }],
"@typescript-eslint/no-unsafe-function-type": "off",
},
ignores: ["scripts/prepublish.cjs", "scripts/generate-chains.cjs", "build/*"],
}
ignores: [
"scripts/prepublish.cjs",
"scripts/generate-chains.cjs",
"build/*",
],
},
);
4 changes: 4 additions & 0 deletions packages/widget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,13 @@
"buffer": "^6.0.3",
"chain-registry": "^1.69.71",
"eslint": "^9.9.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react-hooks": "^4.6.2",
"node-polyfill-webpack-plugin": "^4.0.0",
"pino-pretty": "^13.0.0",
"postcss-loader": "^8.1.1",
"prettier": "^3.4.2",
"process": "^0.11.10",
"raw-loader": "^4.0.2",
"react": ">=17.0.0",
Expand Down Expand Up @@ -98,6 +101,7 @@
"@penumbra-zone/transport-dom": "^7.5.0",
"@r2wc/react-to-web-component": "^2.0.3",
"@radix-ui/react-dialog": "^1.1.1",
"@sentry/react": "^8.46.0",
"@skip-go/client": "workspace:^",
"@solana/spl-token": "^0.4.8",
"@solana/wallet-adapter-backpack": "^0.1.14",
Expand Down
24 changes: 12 additions & 12 deletions packages/widget/src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,32 @@ export type GhostButtonProps = {

export const GhostButton = styled(SmallText).attrs({
as: "button",
}) <GhostButtonProps>`
})<GhostButtonProps>`
${removeButtonStyles};
line-height: 13px;
height: 30px;
${({ alwaysShowBackground, theme, secondary }) => {
if (alwaysShowBackground) {
return (css`
return css`
background-color: ${secondary
? theme.secondary.background.normal
: theme.primary.ghostButtonHover};
`);
`;
}
}}
${({ onClick, disabled, secondary, theme }) => {
if (onClick && !disabled) {
return css`
&:hover {
background-color: ${secondary
? theme.secondary.background.normal
: theme.primary.ghostButtonHover};
color: ${theme.primary.text.normal};
cursor: pointer;
}
`;
&:hover {
background-color: ${secondary
? theme.secondary.background.normal
: theme.primary.ghostButtonHover};
color: ${theme.primary.text.normal};
cursor: pointer;
}
`;
}
}}
Expand Down Expand Up @@ -85,4 +85,4 @@ export const PillButtonLink = styled(PillButton).attrs({
})`
color: ${({ theme }) => theme.primary.text.lowContrast};
text-decoration: none;
`;
`;
10 changes: 4 additions & 6 deletions packages/widget/src/components/EvmDisclaimer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ export const EvmDisclaimer = ({ route }: { route?: RouteResponse } = {}) => {
const { data: chains } = useAtomValue(skipChainsAtom);

const usesEvmInOperations = useMemo(() => {
return route?.requiredChainAddresses?.find(
(chainId) => {
const chainType = chains?.find(chain => chain.chainID === chainId)?.chainType;
return chainType === "evm";
}
);
return route?.requiredChainAddresses?.find((chainId) => {
const chainType = chains?.find((chain) => chain.chainID === chainId)?.chainType;
return chainType === "evm";
});
}, [chains, route?.requiredChainAddresses]);

if (usesEvmInOperations) {
Expand Down
8 changes: 2 additions & 6 deletions packages/widget/src/components/GoFastSymbol.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ export const GoFastSymbol = () => {
onMouseLeave={() => setShowTooltip(false)}
color={theme.brandColor}
/>
{showTooltip && (
<Tooltip>
Powered by Skip:Go Fast
</Tooltip>
)}
{showTooltip && <Tooltip>Powered by Skip:Go Fast</Tooltip>}
</Row>
);
};
Expand All @@ -36,4 +32,4 @@ const Tooltip = styled(SmallText).attrs({
top: 15px;
width: 180px;
z-index: 1;
`;
`;
Loading

0 comments on commit 7f3ede7

Please sign in to comment.