Skip to content

Commit b0c61e9

Browse files
committed
Layers
1 parent 564cb45 commit b0c61e9

File tree

8 files changed

+356
-80
lines changed

8 files changed

+356
-80
lines changed

explorer/src/components/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export function Layout({ children }: PropsWithChildren) {
66
<div>
77
<Nav />
88

9-
<div className='max-w-5xl mx-auto p-8'>{children}</div>
9+
<div className='max-w-5xl mx-auto p-4'>{children}</div>
1010
</div>
1111
);
1212
}

explorer/src/lib/parser/arg.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export enum ArgType {
2+
CoinId,
3+
Copiable,
4+
NonCopiable,
5+
}

explorer/src/lib/parser/coinSpend.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { parseCoin, ParsedCoin } from './coin';
33
import { parseCondition, ParsedCondition } from './conditions';
44
import { ParserContext } from './context';
55
import { DeserializedCoinSpend } from './deserializedCoinSpend';
6+
import { ParsedLayer, parseLayer } from './layers';
67
import { MessageSide, parseMessageFlags } from './messages';
78

89
export interface ParsedCoinSpend {
@@ -11,6 +12,7 @@ export interface ParsedCoinSpend {
1112
solution: string;
1213
cost: string;
1314
conditions: ParsedCondition[];
15+
layer: ParsedLayer;
1416
}
1517

1618
export function parseCoinSpend(
@@ -94,5 +96,6 @@ export function parseCoinSpend(
9496
conditions: conditions.map((condition) =>
9597
parseCondition(coinSpend.coin, condition, ctx, isFastForwardable),
9698
),
99+
layer: parseLayer(puzzle),
97100
};
98101
}

0 commit comments

Comments
 (0)