Skip to content

Commit 70fd200

Browse files
committed
throwing not implemented
1 parent 63888d9 commit 70fd200

File tree

1 file changed

+14
-85
lines changed

1 file changed

+14
-85
lines changed

packages/xchain-radix/src/client.ts

+14-85
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class RadixClient extends BaseXChainClient {
6666
getExplorerUrl(): string {
6767
switch (this.getNetwork()) {
6868
case Network.Mainnet:
69-
return 'https://explorer.radixdlt.com'
69+
return 'https://dashboard.radixdlt.com'
7070
case Network.Testnet:
7171
return 'https://stokenet-dashboard.radixdlt.com/'
7272
default:
@@ -114,104 +114,33 @@ class RadixClient extends BaseXChainClient {
114114
* @throws {"Invalid asset"} Thrown when the provided asset is invalid.
115115
*/
116116
async getBalance(address: string, assets?: Asset[] | undefined): Promise<Balance[]> {
117-
console.log(address + assets)
118-
try {
119-
// Assuming walletIndex is used to construct the URL
120-
const url = `https://jsonplaceholder.typicode.com/posts/}`
121-
console.log('Making GET request to:', url)
122-
const response = await axios.get(url)
123-
console.log('Response data:', response.data)
124-
// Assuming the response contains an address field
125-
const address = response.data.address
126-
return address
127-
} catch (error) {
128-
console.error('Error fetching address:', error)
129-
throw error
130-
}
117+
throw new Error('Not implemented')
131118
}
119+
132120
async getTransactions(params?: TxHistoryParams | undefined): Promise<TxsPage> {
133-
try {
134-
console.log(params)
135-
// Assuming walletIndex is used to construct the URL
136-
const url = `https://jsonplaceholder.typicode.com/posts/`
137-
console.log('Making GET request to:', url)
138-
const response = await axios.get(url)
139-
console.log('Response data:', response.data)
140-
// Assuming the response contains an address field
141-
const address = response.data.address
142-
return address
143-
} catch (error) {
144-
console.error('Error fetching address:', error)
145-
throw error
146-
}
121+
throw new Error('Not implemented')
147122
}
123+
148124
async getTransactionData(txId: string, assetAddress?: string | undefined): Promise<Tx> {
149-
try {
150-
console.log(txId + assetAddress)
151-
// Assuming walletIndex is used to construct the URL
152-
const url = `https://jsonplaceholder.typicode.com/posts/`
153-
console.log('Making GET request to:', url)
154-
const response = await axios.get(url)
155-
console.log('Response data:', response.data)
156-
// Assuming the response contains an address field
157-
const address = response.data.address
158-
return address
159-
} catch (error) {
160-
console.error('Error fetching address:', error)
161-
throw error
162-
}
125+
throw new Error('Not implemented')
163126
}
127+
164128
async transfer(params: TxParams): Promise<string> {
165-
try {
166-
console.log(params)
167-
// Assuming walletIndex is used to construct the URL
168-
const url = `https://jsonplaceholder.typicode.com/posts/`
169-
console.log('Making GET request to:', url)
170-
const response = await axios.get(url)
171-
console.log('Response data:', response.data)
172-
// Assuming the response contains an address field
173-
const address = response.data.address
174-
return address
175-
} catch (error) {
176-
console.error('Error fetching address:', error)
177-
throw error
178-
}
129+
throw new Error('Not implemented')
179130
}
131+
180132
async broadcastTx(txHex: string): Promise<string> {
181-
try {
182-
console.log(txHex)
183-
// Assuming walletIndex is used to construct the URL
184-
const url = `https://jsonplaceholder.typicode.com/posts/`
185-
console.log('Making GET request to:', url)
186-
const response = await axios.get(url)
187-
console.log('Response data:', response.data)
188-
// Assuming the response contains an address field
189-
const address = response.data.address
190-
return address
191-
} catch (error) {
192-
console.error('Error fetching address:', error)
193-
throw error
194-
}
133+
throw new Error('Not implemented')
195134
}
135+
196136
getAssetInfo(): AssetInfo {
197137
throw new Error('Method not implemented.')
198138
}
139+
199140
async prepareTx(params: TxParams): Promise<PreparedTx> {
200-
try {
201-
console.log(params)
202-
// Assuming walletIndex is used to construct the URL
203-
const url = `https://jsonplaceholder.typicode.com/posts/`
204-
console.log('Making GET request to:', url)
205-
const response = await axios.get(url)
206-
console.log('Response data:', response.data)
207-
// Assuming the response contains an address field
208-
const address = response.data.address
209-
return address
210-
} catch (error) {
211-
console.error('Error fetching address:', error)
212-
throw error
213-
}
141+
throw new Error('Not implemented')
214142
}
143+
215144
async estimateFees(params?: TxParams): Promise<Fees> {
216145
try {
217146
console.log(params)

0 commit comments

Comments
 (0)