-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathenv.d.ts
90 lines (80 loc) · 2.31 KB
/
env.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import 'vue-router'
/// <reference types="vite/client" />
declare module '*.vue' {
import type { DefineComponent } from 'vue'
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
const component: DefineComponent<{}, {}, any>
export default component
}
declare global {
import type { DelegatePermission } from '@/stores/apps.store'
import type {
TransactionSignerParams,
SmartContractAcceptedValue,
} from '@/utils/signerUtils'
type DelegatorParams = {
appAddress: string
gateway: string
forwarderAddress: string
accessToken: string
provider: any
delegator: string
roles: DelegatePermission[]
}
interface ImportMetaEnv {
PROD: boolean
VITE_IS_APP_DOWN?: boolean
VITE_ARCANA_APP_ADDRESS: string
VITE_ARCANA_AUTH_NETWORK: 'dev' | 'testnet' | 'mainnet'
VITE_ARCANA_DOCS_URL: string
VITE_ARCANA_GATEWAY_API_VERSION: string
VITE_ARCANA_GATEWAY_TESTNET_URL: string
VITE_ARCANA_GATEWAY_MAINNET_URL: string
VITE_ARCANA_VERIFY_TESTNET_URL: string
VITE_ARCANA_VERIFY_MAINNET_URL: string
VITE_ARCANA_VERIFY_URL: string
VITE_IS_ONLY_TESTNET: 'true' | 'false'
VITE_ARCANA_STRIPE_API_KEY: string
VITE_GOOGLE_ANALYTICS_ID?: string
VITE_MAILCHIMP_DEV_PORTAL_ID?: string
VITE_MAILCHIMP_GROUP?: string
VITE_MAILCHIMP_LIST_ID?: string
VITE_MAILCHIMP_LIST_URL?: string
VITE_MAILCHIMP_USER_ID?: string
VITE_SENTRY_DSN: string
VITE_SENTRY_TRACING_ORIGINS: string
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
interface Window {
transactionSigner: {
createTransactionSigner: (
data: TransactionSignerParams
) => (
method: string,
value?: SmartContractAcceptedValue
) => Promise<string>
generateLoginInfo: (data: { provider: any; gateway: string }) => Promise<{
nonce: number
signature: string
address: string
}>
hashJson: (data: any) => string
delegator: {
grant: (data: DelegatorParams) => Promise<string>
revoke: (data: Omit<DelegatorParams, 'roles'>) => Promise<string>
}
}
arcana: {
provider: any
}
Stripe: (publicKey: string) => any
}
}
declare module 'vue-router' {
interface RouteMeta {
requiresAuth?: boolean
}
}
export {}