Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Commit d3a1b29

Browse files
authored
fix: broken links (#244)
1 parent 17b997c commit d3a1b29

11 files changed

+25
-25
lines changed

pages/book/config.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ In [Blueprint][bp], they act as default unless modified in `wrappers/ContractNam
119119

120120
`false{:json}` by default.
121121

122-
If set to `true{:json}`, enables debug output of a contract and allows usage of [`dump(){:tact}`](/ref/api-debug#dump) function, which is useful for [debugging purposes](/book/debug). With this option enabled, the contract will report that it was compiled in debug mode using the `supported_interfaces` method.
122+
If set to `true{:json}`, enables debug output of a contract and allows usage of [`dump(){:tact}`](/ref/core-debug#dump) function, which is useful for [debugging purposes](/book/debug). With this option enabled, the contract will report that it was compiled in debug mode using the `supported_interfaces` method.
123123

124124
```json filename="tact.config.json" {8,14}
125125
{

pages/book/expressions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ Tact strings support a range of [escape sequences](https://en.wikipedia.org/wiki
127127

128128
Read more about strings and [`String{:tact}`][p] type:\
129129
[Primitive types in the Book][p]\
130-
[Strings and StringBuilders in the Reference](/ref/api-strings)
130+
[Strings and StringBuilders in the Reference](/ref/core-strings)
131131

132132
</Callout>
133133

pages/book/integers.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Use underscores (`_`) to improve readability: $\mathrm{0b111\_111\_111}$ is equa
4646

4747
For example, arithmetic with dollars requires two decimal places after the dot — those are used for the cents value. But how would we represent the number \$$1.25$ if we're only able to work with integers? The solution is to work with _cents_ directly. This way, \$$1.25$ becomes $125$ cents. We simply memorize that the two rightmost digits represent the numbers after the decimal point.
4848

49-
Similarly, working with Toncoins requires nine decimal places instead of the two. Therefore, the amount of $1.25$ TON, which can be represented in Tact as [`ton("1.25"){:tact}`](/ref/api-comptime#ton), is actually the number $1250000000$. We refer to such numbers as _nano-tons_ (or _nanoToncoins_) rather than _cents_.
49+
Similarly, working with Toncoins requires nine decimal places instead of the two. Therefore, the amount of $1.25$ TON, which can be represented in Tact as [`ton("1.25"){:tact}`](/ref/core-comptime#ton), is actually the number $1250000000$. We refer to such numbers as _nano-tons_ (or _nanoToncoins_) rather than _cents_.
5050

5151
## Serialization
5252

pages/book/operators.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This page lists all the operators in Tact in decreasing order of their [preceden
88

99
<Callout>
1010

11-
Note, that there are no implicit type conversions in Tact, so operators can't be used to, say, add values of different type or compare them in terms of equality without explicitly casting to the same type. That's done with certain functions from the standard library. See [`Int.toString(){:tact}`](/ref/api-strings#inttostring) for an example of such function.
11+
Note, that there are no implicit type conversions in Tact, so operators can't be used to, say, add values of different type or compare them in terms of equality without explicitly casting to the same type. That's done with certain functions from the standard library. See [`Int.toString(){:tact}`](/ref/core-strings#inttostring) for an example of such function.
1212

1313
</Callout>
1414

@@ -211,7 +211,7 @@ two % 1; // 1
211211
-1 % -5; // -1
212212
```
213213

214-
The simplest way to avoid confusion between the two is to prefer using positive values via [`abs(x: Int){:tact}`](/ref/api-math#abs):
214+
The simplest way to avoid confusion between the two is to prefer using positive values via [`abs(x: Int){:tact}`](/ref/core-math#abs):
215215

216216
```tact
217217
abs(-1) % abs(-5); // 1

pages/book/structs-and-messages.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ fun convertationFun() {
198198
<Callout>
199199

200200
See those extension functions in the Reference:\
201-
[`Struct.toCell(){:tact}`](/book/api-cells#structtocell)\
202-
[`Message.toCell(){:tact}`](/book/api-cells#messagetocell)
201+
[`Struct.toCell(){:tact}`](/ref/api-cells#structtocell)\
202+
[`Message.toCell(){:tact}`](/ref/api-cells#messagetocell)
203203

204204
</Callout>
205205

pages/ref/core-advanced.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ Various niche, dangerous or unstable features which can produce unexpected resul
1010

1111
</Callout>
1212

13-
## readForwardFee
13+
## Context.readForwardFee
1414

1515
```tact
1616
extends fun readForwardFee(self: Context): Int
1717
```
1818

19-
Extension function for the [`Context{:tact}`](/ref/api-common#context).
19+
Extension function for the [`Context{:tact}`](/ref/core-common#context).
2020

2121
Reads [forward fee](https://docs.ton.org/develop/smart-contracts/guidelines/processing) and returns it as [`Int{:tact}`][int] value in nanoToncoins (nano-tons).
2222

@@ -101,7 +101,7 @@ throw(42); // and this won't fail it
101101
fun nativePrepareRandom();
102102
```
103103

104-
Prepares a random number generator by using [`nativeRandomizeLt(){:tact}`](#nativerandomizelt). Automatically called by [`randomInt(){:tact}`](/ref/api-random#randomint) and [`random(){:tact}`](/ref/api-random#random) functions.
104+
Prepares a random number generator by using [`nativeRandomizeLt(){:tact}`](#nativerandomizelt). Automatically called by [`randomInt(){:tact}`](/ref/core-random#randomint) and [`random(){:tact}`](/ref/core-random#random) functions.
105105

106106
Usage example:
107107

@@ -148,11 +148,11 @@ let idk: Int = randomInt(); // ???, it's random!
148148
fun nativeRandom(): Int;
149149
```
150150

151-
Generates and returns an $256$-bit random number just like [`randomInt(){:tact}`](/ref/api-random#randomint), but doesn't initialize the random generator with [`nativePrepareRandom(){:tact}`](#nativepreparerandom) beforehand.
151+
Generates and returns an $256$-bit random number just like [`randomInt(){:tact}`](/ref/core-random#randomint), but doesn't initialize the random generator with [`nativePrepareRandom(){:tact}`](#nativepreparerandom) beforehand.
152152

153153
<Callout>
154154

155-
Don't use this function directly, and prefer using [`randomInt(){:tact}`](/ref/api-random#randomint) instead.
155+
Don't use this function directly, and prefer using [`randomInt(){:tact}`](/ref/core-random#randomint) instead.
156156

157157
</Callout>
158158

@@ -162,11 +162,11 @@ Generates and returns an $256$-bit random number just like [`randomInt(){:tact}`
162162
fun nativeRandomInterval(max: Int): Int;
163163
```
164164

165-
Generates and returns a $256$-bit random number in the range from $0$ to `max` similar to [`random(){:tact}`](/ref/api-random#random), but doesn't initialize the random generator with [`nativePrepareRandom(){:tact}`](#nativepreparerandom) beforehand.
165+
Generates and returns a $256$-bit random number in the range from $0$ to `max` similar to [`random(){:tact}`](/ref/core-random#random), but doesn't initialize the random generator with [`nativePrepareRandom(){:tact}`](#nativepreparerandom) beforehand.
166166

167167
<Callout>
168168

169-
Don't use this function directly, and prefer using [`random(){:tact}`](/ref/api-random#random) instead.
169+
Don't use this function directly, and prefer using [`random(){:tact}`](/ref/core-random#random) instead.
170170

171171
</Callout>
172172

@@ -180,7 +180,7 @@ Sends the message by specifying the complete `cell` and the [message `mode`](/bo
180180

181181
<Callout>
182182

183-
Prefer using a much more common and user-friendly [`send(){:tact}`](/ref/api-common#send) function unless you have a complex logic that can't be expressed otherwise.
183+
Prefer using a much more common and user-friendly [`send(){:tact}`](/ref/core-common#send) function unless you have a complex logic that can't be expressed otherwise.
184184

185185
</Callout>
186186

pages/ref/core-base.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ In case reservation attempt fails and in the default case without the attempt, t
8888
<Callout>
8989

9090
Note, that `self.forward(){:tact}` never sends additional Toncoins on top of what's available on the balance.\
91-
To be able to send more Toncoins with a single message, use the the [`send(){:tact}`](/ref/api-common#send) function.
91+
To be able to send more Toncoins with a single message, use the the [`send(){:tact}`](/ref/core-common#send) function.
9292

9393
</Callout>
9494

pages/ref/core-common.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Usage example:
6666

6767
```tact
6868
receive() {
69-
let whoSentMeMessage: Address = sender();
69+
let whoSentMeMessage: Address = sender();
7070
}
7171
```
7272

@@ -120,7 +120,7 @@ fun newAddress(chain: Int, hash: Int): Address;
120120

121121
Creates a new [`Address{:tact}`][p] based on the [`chain` id](https://ton-blockchain.github.io/docs/#/overviews/TON_blockchain_overview) and the [SHA-256](/ref/stdlib-math#sha256) encoded [`hash` value](https://docs.ton.org/learn/overviews/addresses#account-id).
122122

123-
This function tries to resolve constant values in [compile-time](/ref/api-comptime) whenever possible.
123+
This function tries to resolve constant values in [compile-time](/ref/core-comptime) whenever possible.
124124

125125
Usage example:
126126

pages/ref/core-math.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ fun pow(base: Int, exp: Int): Int;
120120

121121
Computes and returns the [exponentiation](https://en.wikipedia.org/wiki/Exponentiation) involving two numbers: the `base` and the exponent (or _power_) `exp`. Exponent `exp` must be non-negative, otherwise an error with [exit code 5](/book/exit-codes#5) will be thrown: `Integer out of expected range`.
122122

123-
Note, that this function works both at run-time and at [compile-time](/ref/api-comptime).
123+
Note, that this function works both at run-time and at [compile-time](/ref/core-comptime).
124124

125125
Usage example:
126126

@@ -147,7 +147,7 @@ contract Example {
147147

148148
<Callout>
149149

150-
List of functions, that only work at compile-time: [API Comptime](/ref/api-comptime).
150+
List of functions, that only work at compile-time: [API Comptime](/ref/core-comptime).
151151

152152
</Callout>
153153

@@ -157,7 +157,7 @@ contract Example {
157157
fun pow2(exp: Int): Int;
158158
```
159159

160-
Similar to [`pow(){:tact}`](#pow), but sets the `base` to $2$. Works both at run-time and at [compile-time](/ref/api-comptime).
160+
Similar to [`pow(){:tact}`](#pow), but sets the `base` to $2$. Works both at run-time and at [compile-time](/ref/core-comptime).
161161

162162
Usage examples:
163163

@@ -184,7 +184,7 @@ contract Example {
184184

185185
<Callout>
186186

187-
List of functions, that only work at compile-time: [API Comptime](/ref/api-comptime).
187+
List of functions, that only work at compile-time: [API Comptime](/ref/core-comptime).
188188

189189
</Callout>
190190

@@ -260,7 +260,7 @@ Computes and returns the [SHA-256](https://en.wikipedia.org/wiki/SHA-2#Hash_stan
260260

261261
In case `data` is a [`String{:tact}`][p] it should have a number of bits divisible by $8$, and in case it's a [`Slice{:tact}`][p] it must **also** have no references (i.e. only up to 1023 bits of data in total).
262262

263-
This function tries to resolve constant string values in [compile-time](/ref/api-comptime) whenever possible.
263+
This function tries to resolve constant string values in [compile-time](/ref/core-comptime) whenever possible.
264264

265265
Usage examples:
266266

pages/ref/core-random.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ let allYourRandomBelongsToUs: Int = randomInt(); // ???, it's random :)
3737

3838
<Callout type="warning" emoji="⚠️">
3939

40-
Advanced functions for working with random numbers are listed on a specialized page: [Advanced APIs](/ref/api-advanced).
40+
Advanced functions for working with random numbers are listed on a specialized page: [Advanced APIs](/ref/core-advanced).
4141

4242
</Callout>
4343

pages/ref/core-strings.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ extends fun toSlice(self: StringBuilder): Slice;
144144

145145
Extension function for the [`StringBuilder{:tact}`][p].
146146

147-
Returns an assembled [`Cell{:tact}`][p] as a [`Slice{:tact}`][p] from a [`StringBuilder{:tact}`][p]. Alias to [`self.toCell().asSlice(){:tact}`](/ref/api-cells#cellasslice).
147+
Returns an assembled [`Cell{:tact}`][p] as a [`Slice{:tact}`][p] from a [`StringBuilder{:tact}`][p]. Alias to [`self.toCell().asSlice(){:tact}`](/ref/core-cells#cellasslice).
148148

149149
Usage example:
150150

0 commit comments

Comments
 (0)