Browse Source

fix: incorrect casings of language names

fix/testnet-redirects
kyranjamie 4 years ago
committed by kyranjamie
parent
commit
83ce1d3ed8
  1. 2
      src/pages/authentication/overview.md
  2. 6
      src/pages/data-storage/collection-type.md
  3. 4
      src/pages/ecosystem/overview.md
  4. 2
      src/pages/references/deploy-tips.md
  5. 4
      src/pages/understand-stacks/transactions.md
  6. 2
      src/pages/write-smart-contracts/signing-transactions.md

2
src/pages/authentication/overview.md

@ -131,7 +131,7 @@ and
[Ruby](https://github.com/blockstack/ruby-jwt-blockstack/tree/ruby-jwt-blockstack)
JWT libraries with support for this signing algorithm.
-> The Stacks JWT implementation is different from other implementations because of the underlying cryptography we employ. There are libraries in [Javascript](https://github.com/blockstack/jsontokens-js) and [Ruby](https://github.com/blockstack/ruby-jwt-blockstack) available on the Blockstack Github to allow you to work with these tokens.
-> The Stacks JWT implementation is different from other implementations because of the underlying cryptography we employ. There are libraries in [JavaScript](https://github.com/blockstack/jsontokens-js) and [Ruby](https://github.com/blockstack/ruby-jwt-blockstack) available on the Blockstack Github to allow you to work with these tokens.
### Example: authRequest payload schema

6
src/pages/data-storage/collection-type.md

@ -18,11 +18,11 @@ npm install -g blockstack-collections
You should also familiarize yourself with the [Collection](https://github.com/blockstack/blockstack-collections/blob/master/src/types/collection.ts) class and review [the existing Collection types](https://github.com/blockstack/blockstack-collections/tree/master/src/types). Keep in mind, someone else may have already added a custom type similar to what you want to add.
Collection types can be written in `.js` Javascript or `.ts` (Typescript) files. Typescript is a typed superset of Javascript, you can [read the language documentation](https://www.typescriptlang.org/) to learn more.
Collection types can be written in `.js` JavaScript or `.ts` (TypeScript) files. TypeScript is a typed superset of JavaScript, you can [read the language documentation](https://www.typescriptlang.org/) to learn more.
## Essential steps for creating a Collection type
This section demonstrates how to create a new collection type using Typescript. While this is written in Typescript, the steps in Javascript are the same. Follow these steps to create a new collection type:
This section demonstrates how to create a new collection type using TypeScript. While this is written in TypeScript, the steps in JavaScript are the same. Follow these steps to create a new collection type:
1. Create a new `.ts` file and open it for editing.
2. Import the `Collection` class.
@ -85,7 +85,7 @@ This section demonstrates how to create a new collection type using Typescript.
```jsx
static fromObject(object: object) {
// Create from plain Javascript object
// Create from plain JavaScript object
return new Contact(object)
}
static fromData(data: string) {

4
src/pages/ecosystem/overview.md

@ -23,9 +23,9 @@ scalable. Second, provide simple, familiar development interfaces to blockchain
technology. The result of this effort is a technology platform that allows
developers to:
- Build a blockchain application in any Javascript framework. The platform does not require learning a new programming language or extending an existing application stack.
- Build a blockchain application in any JavaScript framework. The platform does not require learning a new programming language or extending an existing application stack.
- Use well-defined REST endpoints that simplify and encapsulate the blockchain backend. The Stacks Javascript API reduces blockchain-backed applications to familiar `GET` and `PUT` operations.
- Use well-defined REST endpoints that simplify and encapsulate the blockchain backend. The Stacks JavaScript API reduces blockchain-backed applications to familiar `GET` and `PUT` operations.
- Access the Blockstack’s Naming System (BNS). The system has over 70K users that can immediately start using your application.

2
src/pages/references/deploy-tips.md

@ -28,7 +28,7 @@ If you first populated your application with the Stacks application generator, y
| public/manifest.json | A JSON file that describes your web application to the browser. |
| cors | Contains example deployment files for cross-origin request configuration. |
If you use the generator to build Javascript or Vue scaffolding, your project configuration files will be different.
If you use the generator to build JavasScript or Vue scaffolding, your project configuration files will be different.
Regardless of which scaffolding you use, you must customize and extend this basic scaffolding as needed by your application. For example, you may want to add more properties to the `manifest.json` file. Since every application is different, Stacks Auth cannot give you specific instructions on how to do this. The steps you take are specific to your application.

4
src/pages/understand-stacks/transactions.md

@ -183,7 +183,7 @@ Building transactions that call functions in deployed clarity contracts requires
| ASCII String | `(define-data-var my-str (string-ascii 11) "hello world")` | String value encoded in ASCII |
| UTF-8 String | `(define-data-var my-str (string-utf8 7) u"hello \u{1234}")` | String value encoded in UTF-8 |
The Stacks Transactions JS library contains Typescript types and classes that map to the Clarity types, in order to make it easy to construct well-typed Clarity values in Javascript. These types all extend the abstract class `ClarityValue`.
The Stacks Transactions JS library contains TypeScript types and classes that map to the Clarity types, in order to make it easy to construct well-typed Clarity values in JavaScript. These types all extend the abstract class `ClarityValue`.
Here are samples for Clarity value constructions using this library:
@ -225,7 +225,7 @@ const tupCV = tupleCV({
const l = listCV([trueCV(), falseCV()]);
```
If you develop in Typescript, the type checker can help prevent you from creating wrongly-typed Clarity values. For example, the following code won't compile since in Clarity lists are homogeneous, meaning they can only contain values of a single type. It is important to include the type variable `BooleanCV` in this example, otherwise the typescript type checker won't know which type the list is of and won't enforce homogeneity.
If you develop in TypeScript, the type checker can help prevent you from creating wrongly-typed Clarity values. For example, the following code won't compile since in Clarity lists are homogeneous, meaning they can only contain values of a single type. It is important to include the type variable `BooleanCV` in this example, otherwise the typescript type checker won't know which type the list is of and won't enforce homogeneity.
```js
const l = listCV < BooleanCV > [trueCV(), intCV(1)];

2
src/pages/write-smart-contracts/signing-transactions.md

@ -118,7 +118,7 @@ const functionArguments = [
];
```
If you're using Typescript, these Clarity types can be imported as `ContractCallArgumentType` from `@blockstack/connect`.
If you're using TypeScript, these Clarity types can be imported as `ContractCallArgumentType` from `@blockstack/connect`.
## Stacks (STX) Token Transfers

Loading…
Cancel
Save