Skip to content
This repository was archived by the owner on Feb 27, 2025. It is now read-only.

Commit 2aea7a3

Browse files
committed
Adding documentation for every method
1 parent cce29de commit 2aea7a3

File tree

51 files changed

+643
-211
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+643
-211
lines changed

docs/Technical-docs/README.md

+46-29
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,51 @@ soroban-react
44

55
## Table of contents
66

7+
### Interfaces
8+
9+
- [connect_button_src.ConnectButtonProps](./interfaces/connect_button_src.ConnectButtonProps.md)
10+
- [contracts_src_contractTransaction.contractTransactionProps](./interfaces/contracts_src_contractTransaction.contractTransactionProps.md)
11+
- [contracts_src_useContractValue.fetchContractValueProps](./interfaces/contracts_src_useContractValue.fetchContractValueProps.md)
12+
- [contracts_src_useContractValue.useContractValueProps](./interfaces/contracts_src_useContractValue.useContractValueProps.md)
13+
- [contracts_src_useSendTransaction.SendTransactionOptions](./interfaces/contracts_src_useSendTransaction.SendTransactionOptions.md)
14+
- [contracts_src_useSendTransaction.SendTransactionResult](./interfaces/contracts_src_useSendTransaction.SendTransactionResult.md)
15+
- [core_src_SorobanContext.SorobanContextType](./interfaces/core_src_SorobanContext.SorobanContextType.md)
16+
- [core_src_SorobanReactProvider.SorobanReactProviderProps](./interfaces/core_src_SorobanReactProvider.SorobanReactProviderProps.md)
17+
- [types_src.NetworkDetails](./interfaces/types_src.NetworkDetails.md)
18+
- [types_src.WalletChain](./interfaces/types_src.WalletChain.md)
19+
- [wallet_data_src.WalletDataProps](./interfaces/wallet_data_src.WalletDataProps.md)
20+
21+
722
### Modules
823

9-
- [chains/src](modules/chains_src.md)
10-
- [connect-button/src](modules/connect_button_src.md)
11-
- [contracts/src](modules/contracts_src.md)
12-
- [contracts/src/contractInvoke](modules/contracts_src_contractInvoke.md)
13-
- [contracts/src/contractTransaction](modules/contracts_src_contractTransaction.md)
14-
- [contracts/src/defaultAddress](modules/contracts_src_defaultAddress.md)
15-
- [contracts/src/setTrustline](modules/contracts_src_setTrustline.md)
16-
- [contracts/src/transaction](modules/contracts_src_transaction.md)
17-
- [contracts/src/types](modules/contracts_src_types.md)
18-
- [contracts/src/useContractValue](modules/contracts_src_useContractValue.md)
19-
- [contracts/src/useSendTransaction](modules/contracts_src_useSendTransaction.md)
20-
- [core/src](modules/core_src.md)
21-
- [core/src/SorobanContext](modules/core_src_SorobanContext.md)
22-
- [core/src/SorobanReactProvider](modules/core_src_SorobanReactProvider.md)
23-
- [core/src/getDefaultConnectors](modules/core_src_getDefaultConnectors.md)
24-
- [core/src/useSorobanReact](modules/core_src_useSorobanReact.md)
25-
- [events/src](modules/events_src.md)
26-
- [events/src/SorobanEventsContext](modules/events_src_SorobanEventsContext.md)
27-
- [events/src/SorobanEventsProvider](modules/events_src_SorobanEventsProvider.md)
28-
- [events/src/useSorobanEvents](modules/events_src_useSorobanEvents.md)
29-
- [freighter/src](modules/freighter_src.md)
30-
- [types/src](modules/types_src.md)
31-
- [utils/src](modules/utils_src.md)
32-
- [utils/src/convert](modules/utils_src_convert.md)
33-
- [utils/src/identifiers](modules/utils_src_identifiers.md)
34-
- [wallet-data/src](modules/wallet_data_src.md)
35-
- [wallet-data/src/provideWalletChains](modules/wallet_data_src_provideWalletChains.md)
36-
- [wallet-data/src/useIsMounted](modules/wallet_data_src_useIsMounted.md)
37-
- [wallet-data/src/useNetwork](modules/wallet_data_src_useNetwork.md)
24+
- [chains/src](./modules/chains_src.md)
25+
- [connect-button/src](./modules/connect_button_src.md)
26+
- [contracts/src](./modules/contracts_src.md)
27+
- [contracts/src/contractInvoke](./modules/contracts_src_contractInvoke.md)
28+
- [contracts/src/contractTransaction](./modules/contracts_src_contractTransaction.md)
29+
- [contracts/src/defaultAddress](./modules/contracts_src_defaultAddress.md)
30+
- [contracts/src/setTrustline](./modules/contracts_src_setTrustline.md)
31+
- [contracts/src/transaction](./modules/contracts_src_transaction.md)
32+
- [contracts/src/types](./modules/contracts_src_types.md)
33+
- [contracts/src/useContractValue](./modules/contracts_src_useContractValue.md)
34+
- [contracts/src/useRegisteredContract](./modules/contracts_src_useRegisteredContract.md)
35+
- [contracts/src/useSendTransaction](./modules/contracts_src_useSendTransaction.md)
36+
- [contracts/src/wrapStellarAsset](./modules/contracts_src_wrapStellarAsset.md)
37+
- [core/src](./modules/core_src.md)
38+
- [core/src/SorobanContext](./modules/core_src_SorobanContext.md)
39+
- [core/src/SorobanReactProvider](./modules/core_src_SorobanReactProvider.md)
40+
- [core/src/getDefaultConnectors](./modules/core_src_getDefaultConnectors.md)
41+
- [core/src/useSorobanReact](./modules/core_src_useSorobanReact.md)
42+
- [events/src](./modules/events_src.md)
43+
- [events/src/SorobanEventsContext](./modules/events_src_SorobanEventsContext.md)
44+
- [events/src/SorobanEventsProvider](./modules/events_src_SorobanEventsProvider.md)
45+
- [events/src/useSorobanEvents](./modules/events_src_useSorobanEvents.md)
46+
- [freighter/src](./modules/freighter_src.md)
47+
- [types/src](./modules/types_src.md)
48+
- [utils/src](./modules/utils_src.md)
49+
- [utils/src/convert](./modules/utils_src_convert.md)
50+
- [utils/src/identifiers](./modules/utils_src_identifiers.md)
51+
- [wallet-data/src](./modules/wallet_data_src.md)
52+
- [wallet-data/src/provideWalletChains](./modules/wallet_data_src_provideWalletChains.md)
53+
- [wallet-data/src/useIsMounted](./modules/wallet_data_src_useIsMounted.md)
54+
- [wallet-data/src/useNetwork](./modules/wallet_data_src_useNetwork.md)

docs/Technical-docs/interfaces/connect_button_src.ConnectButtonProps.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Whether the connect button is higher.
2727

2828
#### Defined in
2929

30-
[connect-button/src/index.tsx:22](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/connect-button/src/index.tsx#L22)
30+
[connect-button/src/index.tsx:22](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/connect-button/src/index.tsx#L22)
3131

3232
___
3333

@@ -39,7 +39,7 @@ Label for the connect button.
3939

4040
#### Defined in
4141

42-
[connect-button/src/index.tsx:17](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/connect-button/src/index.tsx#L17)
42+
[connect-button/src/index.tsx:17](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/connect-button/src/index.tsx#L17)
4343

4444
___
4545

@@ -51,4 +51,4 @@ The Soroban context.
5151

5252
#### Defined in
5353

54-
[connect-button/src/index.tsx:27](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/connect-button/src/index.tsx#L27)
54+
[connect-button/src/index.tsx:27](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/connect-button/src/index.tsx#L27)

docs/Technical-docs/interfaces/contracts_src_contractTransaction.contractTransactionProps.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ title: contractTransactionProps
77

88
[contracts/src/contractTransaction](../modules/contracts_src_contractTransaction.md).contractTransactionProps
99

10+
Properties for building a transaction to invoke a smart contract method call.
11+
1012
## Table of contents
1113

1214
### Properties
@@ -25,7 +27,7 @@ title: contractTransactionProps
2527

2628
#### Defined in
2729

28-
[contracts/src/contractTransaction.tsx:8](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/contractTransaction.tsx#L8)
30+
[contracts/src/contractTransaction.tsx:11](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/contractTransaction.tsx#L11)
2931

3032
___
3133

@@ -35,7 +37,7 @@ ___
3537

3638
#### Defined in
3739

38-
[contracts/src/contractTransaction.tsx:6](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/contractTransaction.tsx#L6)
40+
[contracts/src/contractTransaction.tsx:9](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/contractTransaction.tsx#L9)
3941

4042
___
4143

@@ -45,7 +47,7 @@ ___
4547

4648
#### Defined in
4749

48-
[contracts/src/contractTransaction.tsx:7](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/contractTransaction.tsx#L7)
50+
[contracts/src/contractTransaction.tsx:10](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/contractTransaction.tsx#L10)
4951

5052
___
5153

@@ -55,7 +57,7 @@ ___
5557

5658
#### Defined in
5759

58-
[contracts/src/contractTransaction.tsx:4](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/contractTransaction.tsx#L4)
60+
[contracts/src/contractTransaction.tsx:7](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/contractTransaction.tsx#L7)
5961

6062
___
6163

@@ -65,4 +67,4 @@ ___
6567

6668
#### Defined in
6769

68-
[contracts/src/contractTransaction.tsx:5](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/contractTransaction.tsx#L5)
70+
[contracts/src/contractTransaction.tsx:8](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/contractTransaction.tsx#L8)

docs/Technical-docs/interfaces/contracts_src_useContractValue.fetchContractValueProps.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ title: fetchContractValueProps
2626

2727
#### Defined in
2828

29-
[contracts/src/useContractValue.tsx:91](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useContractValue.tsx#L91)
29+
[contracts/src/useContractValue.tsx:96](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useContractValue.tsx#L96)
3030

3131
___
3232

@@ -36,7 +36,7 @@ ___
3636

3737
#### Defined in
3838

39-
[contracts/src/useContractValue.tsx:89](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useContractValue.tsx#L89)
39+
[contracts/src/useContractValue.tsx:94](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useContractValue.tsx#L94)
4040

4141
___
4242

@@ -46,7 +46,7 @@ ___
4646

4747
#### Defined in
4848

49-
[contracts/src/useContractValue.tsx:90](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useContractValue.tsx#L90)
49+
[contracts/src/useContractValue.tsx:95](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useContractValue.tsx#L95)
5050

5151
___
5252

@@ -56,7 +56,7 @@ ___
5656

5757
#### Defined in
5858

59-
[contracts/src/useContractValue.tsx:88](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useContractValue.tsx#L88)
59+
[contracts/src/useContractValue.tsx:93](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useContractValue.tsx#L93)
6060

6161
___
6262

@@ -66,7 +66,7 @@ ___
6666

6767
#### Defined in
6868

69-
[contracts/src/useContractValue.tsx:87](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useContractValue.tsx#L87)
69+
[contracts/src/useContractValue.tsx:92](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useContractValue.tsx#L92)
7070

7171
___
7272

@@ -76,4 +76,4 @@ ___
7676

7777
#### Defined in
7878

79-
[contracts/src/useContractValue.tsx:92](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useContractValue.tsx#L92)
79+
[contracts/src/useContractValue.tsx:97](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useContractValue.tsx#L97)

docs/Technical-docs/interfaces/contracts_src_useContractValue.useContractValueProps.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ title: useContractValueProps
2525

2626
#### Defined in
2727

28-
[contracts/src/useContractValue.tsx:21](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useContractValue.tsx#L21)
28+
[contracts/src/useContractValue.tsx:21](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useContractValue.tsx#L21)
2929

3030
___
3131

@@ -35,7 +35,7 @@ ___
3535

3636
#### Defined in
3737

38-
[contracts/src/useContractValue.tsx:19](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useContractValue.tsx#L19)
38+
[contracts/src/useContractValue.tsx:19](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useContractValue.tsx#L19)
3939

4040
___
4141

@@ -45,7 +45,7 @@ ___
4545

4646
#### Defined in
4747

48-
[contracts/src/useContractValue.tsx:20](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useContractValue.tsx#L20)
48+
[contracts/src/useContractValue.tsx:20](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useContractValue.tsx#L20)
4949

5050
___
5151

@@ -55,7 +55,7 @@ ___
5555

5656
#### Defined in
5757

58-
[contracts/src/useContractValue.tsx:23](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useContractValue.tsx#L23)
58+
[contracts/src/useContractValue.tsx:23](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useContractValue.tsx#L23)
5959

6060
___
6161

@@ -65,4 +65,4 @@ ___
6565

6666
#### Defined in
6767

68-
[contracts/src/useContractValue.tsx:22](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useContractValue.tsx#L22)
68+
[contracts/src/useContractValue.tsx:22](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useContractValue.tsx#L22)

docs/Technical-docs/interfaces/contracts_src_useSendTransaction.SendTransactionOptions.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ title: SendTransactionOptions
2424

2525
#### Defined in
2626

27-
[contracts/src/useSendTransaction.tsx:29](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useSendTransaction.tsx#L29)
27+
[contracts/src/useSendTransaction.tsx:35](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useSendTransaction.tsx#L35)
2828

2929
___
3030

@@ -34,7 +34,7 @@ ___
3434

3535
#### Defined in
3636

37-
[contracts/src/useSendTransaction.tsx:28](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useSendTransaction.tsx#L28)
37+
[contracts/src/useSendTransaction.tsx:34](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useSendTransaction.tsx#L34)
3838

3939
___
4040

@@ -44,7 +44,7 @@ ___
4444

4545
#### Defined in
4646

47-
[contracts/src/useSendTransaction.tsx:30](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useSendTransaction.tsx#L30)
47+
[contracts/src/useSendTransaction.tsx:36](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useSendTransaction.tsx#L36)
4848

4949
___
5050

@@ -54,4 +54,4 @@ ___
5454

5555
#### Defined in
5656

57-
[contracts/src/useSendTransaction.tsx:27](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useSendTransaction.tsx#L27)
57+
[contracts/src/useSendTransaction.tsx:33](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useSendTransaction.tsx#L33)

docs/Technical-docs/interfaces/contracts_src_useSendTransaction.SendTransactionResult.md

+17-13
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ title: SendTransactionResult<E>
3535

3636
#### Defined in
3737

38-
[contracts/src/useSendTransaction.tsx:12](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useSendTransaction.tsx#L12)
38+
[contracts/src/useSendTransaction.tsx:12](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useSendTransaction.tsx#L12)
3939

4040
___
4141

@@ -45,7 +45,7 @@ ___
4545

4646
#### Defined in
4747

48-
[contracts/src/useSendTransaction.tsx:13](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useSendTransaction.tsx#L13)
48+
[contracts/src/useSendTransaction.tsx:13](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useSendTransaction.tsx#L13)
4949

5050
___
5151

@@ -55,7 +55,7 @@ ___
5555

5656
#### Defined in
5757

58-
[contracts/src/useSendTransaction.tsx:14](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useSendTransaction.tsx#L14)
58+
[contracts/src/useSendTransaction.tsx:14](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useSendTransaction.tsx#L14)
5959

6060
___
6161

@@ -65,7 +65,7 @@ ___
6565

6666
#### Defined in
6767

68-
[contracts/src/useSendTransaction.tsx:15](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useSendTransaction.tsx#L15)
68+
[contracts/src/useSendTransaction.tsx:15](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useSendTransaction.tsx#L15)
6969

7070
___
7171

@@ -75,7 +75,7 @@ ___
7575

7676
#### Defined in
7777

78-
[contracts/src/useSendTransaction.tsx:16](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useSendTransaction.tsx#L16)
78+
[contracts/src/useSendTransaction.tsx:16](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useSendTransaction.tsx#L16)
7979

8080
___
8181

@@ -85,7 +85,7 @@ ___
8585

8686
#### Defined in
8787

88-
[contracts/src/useSendTransaction.tsx:17](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useSendTransaction.tsx#L17)
88+
[contracts/src/useSendTransaction.tsx:17](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useSendTransaction.tsx#L17)
8989

9090
___
9191

@@ -103,7 +103,7 @@ ___
103103

104104
#### Defined in
105105

106-
[contracts/src/useSendTransaction.tsx:22](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useSendTransaction.tsx#L22)
106+
[contracts/src/useSendTransaction.tsx:28](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useSendTransaction.tsx#L28)
107107

108108
___
109109

@@ -115,20 +115,24 @@ ___
115115

116116
▸ (`txn?`, `opts?`): `Promise`\<`SimulateTransactionResponse` \| `Object`\>
117117

118+
Sends a transaction and returns the result.
119+
118120
##### Parameters
119121

120-
| Name | Type |
121-
| :------ | :------ |
122-
| `txn?` | [`Transaction`](../modules/contracts_src_types.md#transaction) |
123-
| `opts?` | [`SendTransactionOptions`](contracts_src_useSendTransaction.SendTransactionOptions.md) |
122+
| Name | Type | Description |
123+
| :------ | :------ | :------ |
124+
| `txn?` | [`Transaction`](../modules/contracts_src_types.md#transaction) | The transaction to send. |
125+
| `opts?` | [`SendTransactionOptions`](contracts_src_useSendTransaction.SendTransactionOptions.md) | Additional options for sending the transaction. |
124126

125127
##### Returns
126128

127129
`Promise`\<`SimulateTransactionResponse` \| `Object`\>
128130

131+
A promise that resolves to the transaction response or simulation result.
132+
129133
#### Defined in
130134

131-
[contracts/src/useSendTransaction.tsx:18](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useSendTransaction.tsx#L18)
135+
[contracts/src/useSendTransaction.tsx:24](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useSendTransaction.tsx#L24)
132136

133137
___
134138

@@ -138,4 +142,4 @@ ___
138142

139143
#### Defined in
140144

141-
[contracts/src/useSendTransaction.tsx:23](https://github.com/paltalabs/soroban-react/blob/50e8963/packages/contracts/src/useSendTransaction.tsx#L23)
145+
[contracts/src/useSendTransaction.tsx:29](https://github.com/paltalabs/soroban-react/blob/cce29de/packages/contracts/src/useSendTransaction.tsx#L29)

0 commit comments

Comments
 (0)