File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ export enum Protocol {
2+ Airdrops = "airdrops" ,
3+ Lockup = "lockup" ,
4+ }
5+
6+ export namespace Version {
7+ export enum Airdrops {
8+ V1_0 = "v1.0" ,
9+ }
10+
11+ export enum Lockup {
12+ V1_0 = "v1.0" ,
13+ }
14+ }
15+
16+ export const enums = {
17+ Protocol,
18+ Version,
19+ } ;
Original file line number Diff line number Diff line change 11export { chains } from "./chains" ;
22export * from "./idl" ;
3+ export * from "./types" ;
Original file line number Diff line number Diff line change 11import type { Chain as ViemChain } from "viem" ;
2+ import type * as enums from "./enums" ;
23
34/**
45 * @see https://github.com/wevm/viem/discussions/3678
@@ -46,4 +47,13 @@ export namespace Solana {
4647 cluster : Cluster ;
4748 } ;
4849 } ;
50+
51+ export type Protocol = `${enums . Protocol } ` | enums . Protocol ;
52+
53+ export namespace Version {
54+ export type Airdrops = `${enums . Version . Airdrops } ` | enums . Version . Airdrops ;
55+ export type Lockup = `${enums . Version . Lockup } ` | enums . Version . Lockup ;
56+ }
57+
58+ export type Version = Version . Airdrops | Version . Lockup ;
4959}
You can’t perform that action at this time.
0 commit comments