Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge testnet into mainnet #1838

Merged
merged 14 commits into from
Jan 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/components/Decoder/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { hexToUtf8 } from '../../utils/string'
import { useSetToast } from '../Toast'
import { ReactComponent as CopyIcon } from '../../assets/copy_icon.svg'
import styles from './styles.module.scss'
import { parseSporeCellData } from '../../utils/spore'
import { parseSporeCellData, parseSporeClusterData } from '../../utils/spore'
import { parseBtcTimeLockArgs } from '../../utils/rgbpp'

enum DecodeMethod {
Expand All @@ -18,6 +18,7 @@ enum DecodeMethod {
TokenInfo = 'token-info',
XudtData = 'xudt-data',
BTCTimeLock = 'btc-time-lock',
SporeCluster = 'spore-cluster',
Spore = 'spore',
JSON = 'json',
}
Expand Down Expand Up @@ -217,6 +218,10 @@ const Decoder = () => {
const script = addressToScript(v)
return { display: JSON.stringify(script, null, 2), copy: script }
}
case DecodeMethod.SporeCluster: {
const data = parseSporeClusterData(v)
return { display: jsonToList(data), copy: data }
}
case DecodeMethod.Spore: {
const data = parseSporeCellData(v)
switch (data.contentType) {
Expand Down
141 changes: 137 additions & 4 deletions src/components/Footer/index.module.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,141 @@
.tokenFormBtn {
font-size: 18px;
@import '../../styles/variables.module';

.container {
background: #000;
color: #acacac;
height: 23px;
margin: 8px 0;
padding: 0 120px;
white-space: nowrap;

.navigations {
display: flex;
width: 100%;
padding: 44px 0 32px;
gap: 280px;

a,
button {
font-size: 18px;

@media screen and (width < 1240px) {
font-size: 16px;
}
}

.title {
font-size: 1.75rem;
font-weight: 900;
color: #fff;
}

.section:last-child {
flex-grow: 0;
flex-shrink: 0;
}

.section:nth-last-child(2) {
flex: 1;
}

@media screen and (width <1800px) {
gap: 160px;
}

@media screen and (width <1400px) {
gap: 120px;
}

@media screen and (width <1240px) {
gap: 80px;
}

@media screen and (width <$largeBreakPoint) {
gap: 20px;
flex-flow: column wrap;
max-height: 500px;
}

@media screen and (width < 600px) {
max-height: 800px;
}

@media screen and (width < 450px) {
max-height: unset;
}
}

.linkList {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
width: 100%;
margin-top: 8px;
line-height: 2;

&[data-is-grid='true'] {
width: 240px;
flex-flow: row wrap;
gap: 40px 0;
margin-left: auto;

a {
flex-basis: 70px;
}

@media screen and (width < 450px) {
margin-left: 0;
gap: 10px;
}
}
}

.iconLink {
display: flex;
flex-direction: column;
font-size: 12px;
align-items: center;
gap: 4px;
}

.annotation {
height: 52px;
font-size: 12px;
color: #acacac;
font-weight: 100;
border-top: 1px solid #333;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;

a {
font-weight: inherit;
display: flex;
align-items: center;
gap: 4px;
}

@media screen and (width < 500px) {
flex-direction: column;
height: auto;
padding: 16px 0;
}
}

@media screen and (width < $xxlBreakPoint) {
padding: 0 100px;
}

@media screen and (width < $extraLargeBreakPoint) {
padding: 0 45px;
}

@media screen and (width < $mobileBreakPoint) {
padding: 0 18px;
}
}

.tokenFormBtn {
user-select: none;
cursor: pointer;
background: transparent;
Expand Down
Loading
Loading