Skip to content

Commit

Permalink
Changed sails-js to be a top menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
wentelteefje committed Sep 23, 2024
1 parent 042ef0b commit 3315f2e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"label": "Sails-JS",
"position": 1
"position": 7
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ console.log(result);

### Message Methods

Message methods are used to send messages to the program. These methods accept the required arguments for sending the message and return a [Transaction Builder](../README.md#transaction-builder), which contains methods for building and sending the transaction.
Message methods are used to send messages to the program. These methods accept the required arguments for sending the message and return a [Transaction Builder](transaction-builder.md), which contains methods for building and sending the transaction.

```javascript
const transaction = program.serviceName.functionName(arg1, arg2);
Expand Down Expand Up @@ -138,7 +138,7 @@ console.log(result);

### Constructor Methods

Constructor methods, postfixed with `CtorFromCode` and `CtorFromCodeId` in the `Program` class, are used to deploy the program on the chain. These methods accept either the Wasm code bytes or the code ID and return a [Transaction Builder](../README.md#transaction-builder) just like message methods.
Constructor methods, postfixed with `CtorFromCode` and `CtorFromCodeId` in the `Program` class, are used to deploy the program on the chain. These methods accept either the Wasm code bytes or the code ID and return a [Transaction Builder](transaction-builder.md) just like message methods.

```javascript
const code = fs.readFileSync('path/to/program.wasm');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The `sails-js` library workflow begins by creating a `Sails` object through pars
- Queries
- Events

The library also offers methods for decoding information from payloads and encoding data to be sent to a program via transactions. The `TransactionBuilder` class facilitates the building and sending of these transactions to the blockchain. For further details, refer to the [Transaction Builder](#transaction-builder) section.
The library also offers methods for decoding information from payloads and encoding data to be sent to a program via transactions. The `TransactionBuilder` class facilitates the building and sending of these transactions to the blockchain. For further details, refer to the [Transaction Builder](transaction-builder.md) section.

## Parsing an IDL Description

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 3315f2e

Please sign in to comment.