This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { ChainInfo } from "@keplr-wallet/types"; | |
| type ChainInfoWithRegistryPath = ChainInfo & { | |
| chainRegistryPath: string; | |
| beta: true; | |
| }; | |
| export const initiaChains: ChainInfoWithRegistryPath[] = [ | |
| { | |
| beta: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { ChainInfo } from '@keplr-wallet/types' | |
| type ChainInfoWithRegistryPath = ChainInfo & { | |
| chainRegistryPath: string | |
| beta: true | |
| } | |
| export const initiaChains: ChainInfoWithRegistryPath[] = [ | |
| { | |
| beta: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type DistributiveOmit<T, K extends PropertyKey> = T extends unknown | |
| ? Omit<T, K> | |
| : never; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type DistributivePick<T, K extends keyof T> = T extends unknown | |
| ? Pick<T, K> | |
| : never; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const ElementsSwapsImplementation = () => { | |
| return ( | |
| <Swaps | |
| allowedDestinationChains={[ | |
| { | |
| chainId: 'osmosis-1', | |
| assetDenoms: [ | |
| // specify allowed tokens via denoms | |
| 'uosmo', | |
| 'ibc/a87adce9f0....', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * The Stride dApp is in light mode, so we will update .leap-ui declaration | |
| */ | |
| .leap-ui.stride { | |
| /* | |
| * Stride primary color is #E50571 | |
| * Convert it to HSL - hsl(331deg, 95.7%, 45.9%) | |
| * We set the --primary variable to 331 95.7% 45.9% | |
| */ | |
| --primary: 331 95.7% 45.9%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const headers = { | |
| // bearer-token authorization header | |
| 'Authorization': `Bearer ${process.env.NOTION_API_SECRET}`, | |
| // the payload content-type | |
| 'Content-Type': 'application/json', | |
| // specify the version of the API | |
| 'Notion-Version': '2021-08-16', | |
| }; | |
| const handler = async (req, res) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| type BSTNode struct { | |
| key int | |
| left *BSTNode | |
| right *BSTNode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| type Node struct { | |
| data int | |
| next *Node | |
| } | |
| func NewNode(data int) *Node { | |
| return &Node{ | |
| data: data, |
NewerOlder