Skip to content

Commit

Permalink
Merge pull request #138 from bnb-chain/wenty/sdk
Browse files Browse the repository at this point in the history
refactor: Refactor sdk
  • Loading branch information
wenty22 authored Nov 18, 2024
2 parents 3a0ff73 + d05066d commit 1925e4e
Show file tree
Hide file tree
Showing 121 changed files with 4,387 additions and 6,861 deletions.
12 changes: 6 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"*.json": "jsonc"
},
"files.exclude": {
// "**/.git": true,
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
// "**/node_modules": true,
// "**/.next": true,
"**/node_modules": true,
"**/.next": true,
"**/*.log": true,
// "**/dist": true,
// "**/.rush": true,
// "**/temp": true,
"**/dist": true,
"**/.rush": true,
"**/temp": true,
"**/tsconfig.tsbuildinfo": true
},
"[typescript]": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export const ThemeProvider = ({ children }: ThemeProviderProps) => {
global: ({ colorMode }: { colorMode: ColorMode }) => ({
body: {
bg: theme.colors[colorMode].background[3],
'.transfer-widget': {
bg: 'white',
},
},
}),
},
Expand Down
2 changes: 1 addition & 1 deletion apps/canonical-bridge-ui/pages/mainnet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const bridgeConfig: ICanonicalBridgeConfig = {
},
http: {
refetchingInterval: 30 * 1000, // 30s
apiTimeOut: 60 * 1000, // 60s
apiTimeOut: 10 * 1000, // 60s
deBridgeAccessToken: '',
serverEndpoint: env.SERVER_ENDPOINT,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function useTransferConfig() {
defaultSelectedInfo: {
fromChainId: 1,
toChainId: 56,
tokenSymbol: 'USDT', // USDT
tokenAddress: '0xdac17f958d2ee523a2206206994597c13d831ec7', // USDT
amount: '',
},
order: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function useTestnetTransferConfig() {
defaultSelectedInfo: {
fromChainId: 97,
toChainId: 3448148188,
tokenSymbol: 'USDT', // USDT
tokenAddress: '0x337610d27c682E347C9cD60BD4b3b107C9d34dDd', // USDT
amount: '',
},
order: {
Expand Down
85 changes: 49 additions & 36 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

103 changes: 0 additions & 103 deletions packages/canonical-bridge-sdk/CHANGELOG.md

This file was deleted.

7 changes: 5 additions & 2 deletions packages/canonical-bridge-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@
},
"peerDependencies": {
"axios": "^0",
"viem": "^2"
"viem": "^2",
"@solana/web3.js": "^1"
},
"devDependencies": {
"@solana/web3.js": "~1.95.4",
"@types/react": "^18",
"@types/react-dom": "^18",
"@vitejs/plugin-react": "^4.2.0",
Expand All @@ -43,6 +45,7 @@
"typescript": "^5",
"viem": "~2.21.14",
"vite": "^4.5.0",
"vite-plugin-dts": "^3.6.3"
"vite-plugin-dts": "^3.6.3",
"@types/node": "~22.9.0"
}
}
1 change: 1 addition & 0 deletions packages/canonical-bridge-sdk/src/abi/exports.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './erc20Token';
2 changes: 2 additions & 0 deletions packages/canonical-bridge-sdk/src/adapters/base/exports.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './index';
export * from './types';
Loading

0 comments on commit 1925e4e

Please sign in to comment.