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

Commit 5f41c78

Browse files
Update SmartPy links (#494)
* Update smartpy links * Direct links Co-authored-by: Adrian C. <92168447+windushka@users.noreply.github.com> --------- Co-authored-by: Adrian C. <92168447+windushka@users.noreply.github.com>
1 parent 5b0c737 commit 5f41c78

File tree

19 files changed

+32
-31
lines changed

19 files changed

+32
-31
lines changed

docs/architecture/governance/improvement-process.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ For those familiar with [ERC20](https://eips.ethereum.org/EIPS/eip-20), the FA1.
2626
The FA1.2 specification is described in detail in [TZIP-7](https://gitlab.com/tzip/tzip/blob/master/proposals/tzip-7/tzip-7.md).
2727
For implementations, see these templates:
2828

29-
- For SmartPy templates, see [Tokens](https://smartpy.io/guides/tokens/) in the SmartPy documentation.
29+
- For SmartPy templates, see the SmartPy [FA2 library](https://smartpy.io/manual/libraries/FA2-lib/overview) in the SmartPy documentation.
3030
- For LIGO templates, see the [`@ligo/fa`](https://packages.ligolang.org/package/@ligo/fa) package.
3131
- For Archetype templates, see [Templates](https://archetype-lang.org/docs/templates/overview/) in the Archetype documentation.
3232

docs/architecture/tokens.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ These standards are named with the prefix FA, which stands for _financial applic
120120

121121
You can use templates for smart contracts adhering to these standards, instead of writing your own contract from scratch:
122122

123-
- For SmartPy templates, see [Tokens](https://smartpy.io/guides/tokens/) in the SmartPy documentation.
123+
- For SmartPy templates, see the SmartPy [FA2 library](https://smartpy.io/manual/libraries/FA2-lib/overview) in the SmartPy documentation.
124124
- For LIGO templates, see the [`@ligo/fa`](https://packages.ligolang.org/package/@ligo/fa) package.
125125
- For Archetype templates, see [Templates](https://archetype-lang.org/docs/templates/overview/) in the Archetype documentation.
126126

docs/developing/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ For more information about avoiding flaws in contracts, see [Avoiding flaws](htt
103103
104104
- Michelson: [Mockup mode](https://tezos.gitlab.io/user/mockup.html)
105105
- Archetype: [Completium test scenario](https://completium.com/docs/contract/test-scenario)
106-
- SmartPy: [Tests and scenarios](https://smartpy.io/manual/scenarios/overview)
106+
- SmartPy: [Test scenarios](https://smartpy.io/manual/scenarios/test_scenarios)
107107
- LIGO: [Testing LIGO](https://ligolang.org/docs/next/testing/)
108108
109109
## Next steps

docs/smart-contracts/data-types/complex-data-types.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ For a complete list of data types that are available, see the reference informat
2525
- Michelson: [Types](https://tezos.gitlab.io/michelson-reference/#types)
2626
- LIGO: [Introduction](https://ligolang.org/docs/intro/introduction?lang=jsligo)
2727
- Archetype: [Types](https://archetype-lang.org/docs/reference/types)
28-
- SmartPy: [Overview](https://smartpy.io/manual/syntax/overview)
28+
- SmartPy: [Overview](https://smartpy.io/manual/introduction/overview)
2929

3030
## Pairs {#pairs}
3131

@@ -65,7 +65,7 @@ $$O(\log_2 (size))$$, whereas for a right comb, it's $$O(size)$$.
6565

6666
- Michelson: [Operations on pairs and right combs](https://tezos.gitlab.io/active/michelson.html#operations-on-pairs-and-right-combs)
6767
- LIGO: [Tuples](https://ligolang.org/docs/language-basics/sets-lists-tuples#tuples)
68-
- SmartPy: [Tuples and Records](https://smartpy.io/manual/syntax/tuples-and-records)
68+
- SmartPy: [Tuples](https://smartpy.io/manual/data-types/tuples)
6969
- Archetype: [Composite types](https://archetype-lang.org/docs/language-basics/composite#tuple), [Tuple](https://archetype-lang.org/docs/reference/types#tuple)
7070

7171
## Records {#records}
@@ -115,7 +115,7 @@ type person: record
115115

116116
- Archetype: [Record](https://archetype-lang.org/docs/language-basics/composite#record)
117117
- LIGO: [Records](https://ligolang.org/docs/language-basics/maps-records#records)
118-
- SmartPy: [Tuples and Records](https://smartpy.io/manual/syntax/tuples-and-records)
118+
- SmartPy: [Records](https://smartpy.io/manual/data-types/records)
119119

120120
## Options {#options}
121121

@@ -166,7 +166,7 @@ Alternatively (but harder to understand without comments), you can use the speci
166166

167167
- Michelson: [Operations on optional values](https://tezos.gitlab.io/active/michelson.html#operations-on-optional-values)
168168
- LIGO: [Optional values](https://ligolang.org/docs/language-basics/unit-option-pattern-matching#optional-values)
169-
- SmartPy: [Options](https://smartpy.io/docs/types/options/)
169+
- SmartPy: [Options and variants](https://smartpy.io/manual/data-types/options-and-variants)
170170
- Archetype: [Options](https://archetype-lang.org/docs/reference/types#option%3CT%3E)
171171

172172
## Big-maps and maps {#big-maps}
@@ -285,7 +285,7 @@ Here is a table representing an example of a contract that uses two big-maps:
285285
- Michelson: [Operations on big-maps](https://tezos.gitlab.io/active/michelson.html#operations-on-big-maps)
286286
- Archetype: [Assets](https://archetype-lang.org/docs/reference/instructions/asset), [Map](https://archetype-lang.org/docs/language-basics/container#map)
287287
- LIGO: [Maps](https://ligolang.org/docs/language-basics/maps-records#maps), [Big-maps](https://ligolang.org/docs/language-basics/maps-records#big-maps)
288-
- SmartPy: [Maps and big-maps](https://smartpy.io/manual/syntax/lists-sets-and-maps#maps)
288+
- SmartPy: [Maps](https://smartpy.io/manual/data-types/lists-sets-and-maps#maps)
289289

290290
## Lists {#lists}
291291

@@ -311,7 +311,7 @@ In general, use big-maps to store large amounts of data.
311311
### Implementation details
312312

313313
- Michelson: [Operations on lists](https://tezos.gitlab.io/active/michelson.html#operations-on-lists)
314-
- SmartPy: [Lists](https://smartpy.io/manual/syntax/lists-sets-and-maps#lists)
314+
- SmartPy: [List](https://smartpy.io/manual/data-types/lists-sets-and-maps#lists)
315315
- Archetype: [List](https://archetype-lang.org/docs/language-basics/container#list)
316316
- LIGO: [List](https://ligolang.org/docs/reference/list-reference)
317317

@@ -333,7 +333,7 @@ The main operations available on sets are:
333333

334334
- Michelson: [Operations on sets](https://tezos.gitlab.io/active/michelson.html#operations-on-sets)
335335
- Archetype: [Set](https://archetype-lang.org/docs/language-basics/container#set)
336-
- SmartPy: [Sets](https://smartpy.io/manual/syntax/lists-sets-and-maps#sets)
336+
- SmartPy: [Set](https://smartpy.io/manual/data-types/lists-sets-and-maps#sets)
337337
- LIGO: [Set](https://ligolang.org/docs/reference/set-reference)
338338

339339
## Variants and Unions {#variants}
@@ -349,7 +349,7 @@ For example, a variant can hold either an `int` or a `string`.
349349

350350
- Michelson: [Operations on unions](https://tezos.gitlab.io/active/michelson.html#operations-on-unions)
351351
- LIGO: [Variant types](https://ligolang.org/docs/language-basics/unit-option-pattern-matching#variant-types)
352-
- SmartPy: [Variants](https://smartpy.io/manual/syntax/options-and-variants#variants)
352+
- SmartPy: [Options and variants](https://smartpy.io/manual/data-types/options-and-variants)
353353
- Archetype: [Enum](https://archetype-lang.org/docs/language-basics/composite#enum)
354354

355355
## Lambdas {#lambdas}
@@ -464,7 +464,7 @@ Contracts can run these operations on tickets:
464464
- Michelson: [Operations on tickets](https://tezos.gitlab.io/active/michelson.html#operations-on-tickets)
465465
- LIGO: [Tickets](https://ligolang.org/docs/reference/current-reference#tickets)
466466
- Archetype: [create_ticket and related](https://archetype-lang.org/docs/reference/expressions/builtins/#create_ticket%28s%20:%20T,%20n%20:%20nat%29)
467-
- SmartPy: [Tickets](https://smartpy.io/manual/syntax/tickets)
467+
- SmartPy: [Tickets](https://smartpy.io/manual/data-types/tickets)
468468

469469
## Unit {#unit}
470470

@@ -489,4 +489,4 @@ Unit is a concept that Tezos inherits from OCaml; see [Side-Effects and the unit
489489

490490
- LIGO: [Unit](https://ligolang.org/docs/next/data-types/variants#unit)
491491
- Archetype: [Unit](https://archetype-lang.org/docs/reference/types/#unit)
492-
- SmartPy: [Unit](https://smartpy.io/manual/syntax/unit)
492+
- SmartPy: [Unit](https://smartpy.io/manual/data-types/unit)

docs/smart-contracts/data-types/crypto-data-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ It can also be used for identity-based cryptography, single-round multi-party ke
3434
- Michelson: [Cryptographic primitives](https://tezos.gitlab.io/active/michelson.html#cryptographic-primitives), [BLS12-381 primitives](https://tezos.gitlab.io/active/michelson.html#bls12-381-primitives)
3535
- LIGO: [Crypto](https://ligolang.org/docs/reference/crypto-reference)
3636
- Archetype: [Blake2b and related](https://archetype-lang.org/docs/reference/expressions/builtins#blake2b%28b%20:%20bytes%29), [Elliptic curves](https://archetype-lang.org/docs/language-basics/crypto#elliptic-curves)
37-
- SmartPy: [Cryptography](https://smartpy.io/manual/scenarios/cryptography#cryptography)
37+
- SmartPy: [BLS12-381 ](https://smartpy.io/manual/data-types/bls12-381)
3838
- Taquito: [Signing data](https://tezostaquito.io/docs/signing/)
3939

4040
## Time-locks

docs/smart-contracts/data-types/primitive-data-types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ For a complete list of data types that are available, see the reference informat
2222
- Michelson: [Types](https://tezos.gitlab.io/michelson-reference/#types)
2323
- LIGO: [Introduction](https://ligolang.org/docs/intro/introduction?lang=jsligo)
2424
- Archetype: [Types](https://archetype-lang.org/docs/reference/types)
25-
- SmartPy: [Overview](https://smartpy.io/manual/syntax/overview)
25+
- SmartPy: [Overview](https://smartpy.io/manual/introduction/overview)
2626

2727
## Numeric data types: `int` and `nat` {#numeric}
2828

@@ -187,5 +187,5 @@ See these links for technical information about how different languages handle d
187187

188188
- Michelson: [int and nat](https://tezos.gitlab.io/active/michelson.html#operations-on-integers-and-natural-numbers), [booleans](https://tezos.gitlab.io/active/michelson.html#operations-on-booleans), [strings](https://tezos.gitlab.io/active/michelson.html#operations-on-strings), [timestamps](https://tezos.gitlab.io/active/michelson.html#operations-on-timestamps), [mutez](https://tezos.gitlab.io/active/michelson.html#operations-on-mutez).
189189
- Archetype: [Types basics](https://archetype-lang.org/docs/language-basics/types), [Types](https://archetype-lang.org/docs/reference/types), [Arithmetic operators](https://archetype-lang.org/docs/reference/expressions/operators/arithmetic)
190-
- SmartPy: [Integers and mutez](https://smartpy.io/manual/syntax/integers-and-mutez), [Booleans](https://smartpy.io/manual/syntax/booleans), [Strings and Bytes](https://smartpy.io/manual/syntax/strings-and-bytes), [Timestamps](https://smartpy.io/manual/syntax/timestamps)
190+
- SmartPy: [Integers and mutez](https://smartpy.io/manual/data-types/integers-and-mutez), [Booleans](https://smartpy.io/manual/data-types/booleans), [Strings and Bytes](https://smartpy.io/manual/data-types/strings-and-bytes), [Timestamps](https://smartpy.io/manual/data-types/timestamps)
191191
- LIGO: [numbers and tez](https://ligolang.org/docs/language-basics/math-numbers-tez), [strings & bytes](https://ligolang.org/docs/language-basics/strings-bytes), [booleans](https://ligolang.org/docs/language-basics/boolean-if-else)

docs/smart-contracts/delegation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ In practice, both the voting power of a contract and the total voting power of a
2020

2121
- Michelson: [Operations on contracts](https://tezos.gitlab.io/active/michelson.html#operations-on-contracts)
2222
- Archetype: [Total voting power](https://archetype-lang.org/docs/reference/expressions/constants#total_voting_power), [Voting power](https://archetype-lang.org/docs/reference/expressions/builtins#voting_power%28k%20:%20key_hash%29), [set_delegate](https://archetype-lang.org/docs/reference/expressions/builtins#set_delegate%28opkh%20:%20option%3Ckey_hash%3E%29)
23-
- SmartPy: [Operations](https://smartpy.io/manual/syntax/operations)
23+
- SmartPy: [Operations](https://smartpy.io/manual/data-types/operations)

docs/smart-contracts/entrypoints.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,5 @@ For information about coding entrypoints in specific languages, see these links:
8888

8989
- Michelson: [Entrypoint](https://tezos.gitlab.io/active/michelson.html#entrypoints)
9090
- Archetype: [Entrypoint](https://archetype-lang.org/docs/reference/declarations/entrypoint)
91-
- SmartPy: [Contracts](https://smartpy.io/manual/syntax/overview?#contracts)
91+
- SmartPy: [Contracts](https://smartpy.io/manual/syntax/contracts)
9292
- LIGO: [Main function and Entrypoints](https://ligolang.org/docs/advanced/entrypoints-contracts)

docs/smart-contracts/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,6 @@ For example, to see the operation in the previous example, look up the operation
173173

174174
- Michelson: [Contract events](https://tezos.gitlab.io/alpha/event.html)
175175
- LIGO: [Events](https://ligolang.org/docs/contract/events)
176-
- SmartPy: [`sp.emit`](https://smartpy.io/manual/syntax/operations#sp.emit)
176+
- SmartPy: [`sp.emit`](https://smartpy.io/manual/syntax/operations)
177177
- Archetype: [Events](https://archetype-lang.org/blog/events/#event)
178178
- Taquito: [Contract Events](https://tezostaquito.io/docs/subscribe_event)

docs/smart-contracts/languages/smartpy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ last_update:
77

88
SmartPy is a comprehensive solution for developing, testing, and deploying smart contracts on Tezos. With its easy-to-use Python syntax, developers can create contracts in a familiar and intuitive way, while SmartPy's type inference provides added safety.
99

10-
To get started with SmartPy, see the tutorial [Deploy a smart contract with SmartPy](/tutorials/smart-contract/smartpy), the [tutorial](https://smartpy.io/guides/tutorial) on smartpy.io, or [Smart contract development with SmartPy](https://opentezos.com/smartpy/write-contract-smartpy/) on opentezos.com.
10+
To get started with SmartPy, see the tutorial [Deploy a smart contract with SmartPy](/tutorials/smart-contract/smartpy), the [tutorial](https://smartpy.io/tutorial) on smartpy.io, or [Smart contract development with SmartPy](https://opentezos.com/smartpy/write-contract-smartpy/) on opentezos.com.
1111

1212
## Test scenarios
1313

1414
SmartPy allows you test contracts in simulated scenarios, including complex cases with multiple interacting contracts. Then SmartPy compiles the contracts to Michelson for deployment. SmartPy can also automatically upload metadata and other files to IPFS directly from the test scenario.
1515

1616
## FA2 library
1717

18-
SmartPy provides a library of classes that you can extend to create FA2 token contracts. The library provides basic functionality for NFTs, fungible tokens, and single-asset token contracts and mixins that change how the tokens work. For more information, see [FA2lib](https://smartpy.io/guides/FA2-lib/overview) in the SmartPy documentation.
18+
SmartPy provides a library of classes that you can extend to create FA2 token contracts. The library provides basic functionality for NFTs, fungible tokens, and single-asset token contracts and mixins that change how the tokens work. For more information, see [FA2lib](https://smartpy.io/manual/libraries/FA2-lib/overview) in the SmartPy documentation.
1919

2020
## Online IDE
2121

@@ -71,6 +71,6 @@ def test():
7171

7272
## Further reading
7373

74-
- [SmartPy documentation](https://smartpy.io/manual/)
74+
- [SmartPy documentation](https://smartpy.io/manual/introduction/overview)
7575
- [Online IDE](https://smartpy.dev/ide)
7676
- [OpenTezos](https://opentezos.com/smartpy)

0 commit comments

Comments
 (0)