Skip to content

Commit ef6df00

Browse files
authored
Merge pull request #996 from algodex/995-create-new-type-for-an-activewallet-object
995 create new type for an activewallet object
2 parents 9c7377b + a0bf2e4 commit ef6df00

File tree

1 file changed

+71
-4
lines changed

1 file changed

+71
-4
lines changed

components/LaunchPad/CreatorAddress.tsx

Lines changed: 71 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,81 @@ import Button from '@mui/material/Button'
88
// Custom coponent
99
import { CopyIcon } from './copyIcon'
1010
import { truncatedWalletAddress } from 'components/helpers'
11-
import { styles } from './styles.css'
1211
import useWallets from '@/hooks/useWallets'
1312

14-
type creatorAddressTypes = {
15-
activeWallet?: any
13+
type activeWalletTypes = {
14+
address: string
15+
name: string
16+
type: string
17+
connector: {
18+
bridge: {
19+
options: {
20+
waitForReply: boolean
21+
timeout: number
22+
}
23+
bridge: {
24+
channelName: string
25+
_requests: object
26+
_nextId: number
27+
_defaultTimeout: number
28+
}
29+
}
30+
timeout: number
31+
url: string
32+
currentConnectPopup: unknown
33+
currentSigntxPopup: unknown
34+
currentSignLogicSigPopup: unknown
35+
options: {
36+
waitForReply: boolean
37+
timeout: number
38+
}
39+
disableLedgerNano: boolean
40+
connected: boolean
41+
}
42+
amount: number
43+
'amount-without-pending-rewards': number
44+
assets: Array<{
45+
amount: 44
46+
'asset-id': number
47+
deleted: boolean
48+
'is-frozen': boolean
49+
'opted-in-at-round': number
50+
}>
51+
'created-assets': Array<{
52+
'created-at-round': number
53+
deleted: boolean
54+
index: number
55+
params: {
56+
clawback: string
57+
creator: string
58+
decimals: number
59+
'default-frozen': boolean
60+
freeze: string
61+
manager: string
62+
name: string
63+
'name-b64': string
64+
total: number
65+
'unit-name': string
66+
'unit-name-b64': string
67+
}
68+
}>
69+
'created-at-round': number
70+
deleted: false
71+
'pending-rewards': number
72+
'reward-base': number
73+
rewards: number
74+
round: number
75+
'sig-type': string
76+
status: string
77+
'total-apps-opted-in': number
78+
'total-assets-opted-in': number
79+
'total-box-bytes': number
80+
'total-boxes': number
81+
'total-created-apps': number
82+
'total-created-assets': number
1683
}
1784

18-
export const CreatorAddress = ({ activeWallet }: creatorAddressTypes) => {
85+
export const CreatorAddress = ({ activeWallet }: { activeWallet: activeWalletTypes }) => {
1986
const { peraDisconnect, myAlgoDisconnect } = useWallets(null)
2087
const walletDisconnectMap = {
2188
'my-algo-wallet': myAlgoDisconnect,

0 commit comments

Comments
 (0)