Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: Typedocs #1208

Merged
merged 118 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
e95c8e7
feat: add typedoc + change tsconfig.base
few-sw Nov 2, 2023
439a28d
feat: add typedoc action
few-sw Nov 2, 2023
ffbeeae
feat: temporary disable release action
few-sw Nov 2, 2023
32b4c9f
Merge pull request #1 from few-sw/typedoc-configuration
few-sw Nov 2, 2023
596c49d
feat: update typedoc generator action
few-sw Nov 2, 2023
e0da8a6
Merge pull request #2 from few-sw/typedoc-configuration
few-sw Nov 2, 2023
38fab7a
feat: update typedoc generator action to support pnpm
few-sw Nov 5, 2023
4dc1ff4
feat: update action logic for testing purposes
few-sw Nov 5, 2023
4723bc0
feat: configure pnpm back to version 7
few-sw Nov 5, 2023
544c896
feat: update action configuration
few-sw Nov 5, 2023
2ac196b
feat: change action configuration
few-sw Nov 5, 2023
7fa30bf
feat: update build documentation action
few-sw Nov 5, 2023
ca92831
feat: minor changes
few-sw Nov 5, 2023
8cd41d3
feat: update tsconfig.base.json
few-sw Nov 6, 2023
efd6b4d
feat: update typedoc action
few-sw Nov 7, 2023
8b70319
feat: add readme option
few-sw Nov 7, 2023
24d98ec
feat: update entryPoints
few-sw Nov 7, 2023
2363c12
feat: update entryPoints
few-sw Nov 7, 2023
2b012e3
feat: change entryPoints to near-api-js
few-sw Nov 7, 2023
ba45b2b
feat: add package entrypointstrategy
few-sw Nov 9, 2023
30f45be
feat: fix adding modules content on typedoc generated documentation
few-sw Nov 10, 2023
1def07a
feat: update tsconfig.base.json
few-sw Nov 10, 2023
afccbf3
feat: update tsconfig
few-sw Nov 10, 2023
d5b1873
feat: update tsconfig files for each package
few-sw Nov 13, 2023
0fd56f0
feat: add custom-theme
few-sw Nov 14, 2023
8f071de
feat: add custom-theme
few-sw Nov 14, 2023
01af72c
feat: testing configuration
few-sw Nov 14, 2023
3c860c1
feat: add externalSymbolLinkMappings
few-sw Nov 14, 2023
50e1706
feat: add typedoc-theme
few-sw Nov 14, 2023
94290ab
feat: update readme files links
few-sw Nov 14, 2023
4452a21
feat: update typedoc options
few-sw Nov 14, 2023
58cc2cb
feat: update tsconfig
few-sw Nov 14, 2023
253d9d0
feat: update out folder
few-sw Nov 14, 2023
80899a0
feat: update typedoc-generator
few-sw Nov 15, 2023
79ff805
feat: add target-folder option to typedoc-generator action
few-sw Nov 15, 2023
ffff8ee
feat: update typedoc docs generator to allow linking README files to …
few-sw Nov 15, 2023
f566ae0
feat: minor changes
few-sw Nov 15, 2023
ef25522
feat: update typedoc action
few-sw Nov 15, 2023
90c6df7
feat: elete tsconfig.json
few-sw Nov 15, 2023
04bb156
feat: make changes to the step Update gh-pages Branch
few-sw Nov 15, 2023
6f5ce94
feat: update typedoc-generator steps
few-sw Nov 15, 2023
583ff30
feat: update action
few-sw Nov 15, 2023
92020fa
feat: add user/email
few-sw Nov 15, 2023
8bacdba
feat: add tsconfig.json.local
few-sw Nov 15, 2023
8b5a619
feat: add write permissions
few-sw Nov 15, 2023
135891d
feat: github action small change
few-sw Nov 15, 2023
668ba69
feat: fix divergent changes on action
few-sw Nov 15, 2023
45d0a18
feat: small changes
few-sw Nov 15, 2023
0a5ab1c
feat: add action that syncs branches
few-sw Nov 15, 2023
2f5dec0
feat: fix permission issues
few-sw Nov 15, 2023
7b5e4a7
feat: created generated-documentation folder
few-sw Nov 15, 2023
ab95ff9
feat: add folder
few-sw Nov 15, 2023
3957a04
feat: clean code
few-sw Nov 15, 2023
0317f92
feat: change action configuration
few-sw Nov 15, 2023
896e11f
feat: change out folder to build
few-sw Nov 15, 2023
a13666d
feat: enable target-folder
few-sw Nov 15, 2023
6549c26
feat: update build destination folder
few-sw Nov 16, 2023
83869d5
feat: change action logic
few-sw Nov 16, 2023
cdbbf38
feat: update action
few-sw Nov 16, 2023
5d88e75
feat: disable pull-request action
few-sw Nov 16, 2023
7f567ae
feat: clean docs folder
few-sw Nov 16, 2023
020df34
feat: remove lfs: true
few-sw Nov 16, 2023
178fb80
feat: update action
few-sw Nov 16, 2023
e292c89
feat: add concurrency handler
few-sw Nov 16, 2023
e38c0de
feat: remove clean option
few-sw Nov 16, 2023
64da29e
feat: revert to gh-pages root
few-sw Nov 16, 2023
85fba90
feat: enable pull-request.action
few-sw Nov 16, 2023
2a1c272
feat: add near-api-js package to docs job
few-sw Nov 16, 2023
9327416
feat: disable jekyll
few-sw Nov 16, 2023
624b2dd
feat: update links on README_TYPEDOC.md
few-sw Nov 16, 2023
b16fe0e
feat: migrate typedoc.json to javascript to handle github full path
few-sw Nov 16, 2023
7b4b1a2
feat: delete typedoc.json
few-sw Nov 16, 2023
3be1584
feat: fix @link on account.ts
few-sw Nov 16, 2023
4d5e87e
feat: update near-api-js tsconfig
few-sw Nov 16, 2023
49b0235
feat: tsconfig test for near-api-js
few-sw Nov 16, 2023
4904c5a
feat: add lib and text to exclude option
few-sw Nov 17, 2023
22facba
feat: remove @link tag on unresolved link RequestSignTransactionsOptions
few-sw Nov 17, 2023
ff96529
Merge branch 'typedoc-configuration' into theme-plugin
few-sw Nov 17, 2023
532aa9a
feat: add typedoc-plugin-merge-modules
few-sw Nov 17, 2023
22fbf88
feat: update tsconfig.base
few-sw Nov 17, 2023
fb228da
feat: update pnpm-lock
few-sw Nov 17, 2023
d2c9910
feat: delete tsconfig.json
few-sw Nov 17, 2023
309229a
feat: remove plugin typedoc-plugin-merge-modules
few-sw Nov 17, 2023
2031e25
feat: disable old docs-generator action
few-sw Nov 17, 2023
d2319c7
feat: update near-api-js tsconfig
few-sw Nov 17, 2023
f51d52b
feat: updtae tsconfig.base
few-sw Nov 17, 2023
d49d952
feat: update action
few-sw Nov 17, 2023
b0f3b26
feat: update action
few-sw Nov 17, 2023
4ebc1de
feat: fix failed to resolve link warning
few-sw Nov 17, 2023
ff7af85
feat: fix not included in the documentation warning
few-sw Nov 17, 2023
344148c
feat: delete typedoc.json file
few-sw Nov 17, 2023
9065f27
feat: typedoc update
few-sw Nov 17, 2023
37fdb88
feat: test @link tag
few-sw Nov 17, 2023
d272604
feat: @link wip
few-sw Nov 17, 2023
c220118
feat: @link change
few-sw Nov 17, 2023
b85c5f9
feat: fix @link near.ts
few-sw Nov 17, 2023
537c0fb
feat: near.ts @link
few-sw Nov 17, 2023
c1a7998
feat: change near.ts
few-sw Nov 17, 2023
278e912
feat: update @link
few-sw Nov 17, 2023
6cd2c9f
feat: update @link tag
few-sw Nov 17, 2023
d1e3af8
feat: readme.md file update
few-sw Nov 17, 2023
78a7a92
feat: enable release action
few-sw Nov 17, 2023
f4c9e61
feat: update githubpages option
few-sw Nov 17, 2023
8a448b1
refactor: update typedoc-generator
few-sw Nov 17, 2023
95fe151
Merge pull request #7 from few-sw/typedoc-configuration
few-sw Nov 17, 2023
f48ae86
Merge branch 'typedocs' into master
gagdiez Nov 22, 2023
f30c994
fix: fixed all links in docs
gagdiez Nov 22, 2023
5e547c3
Merge pull request #1 from gagdiez/typedocs
gagdiez Nov 22, 2023
22d9e21
fix: updated action
gagdiez Nov 23, 2023
5fd6b6d
Merge pull request #2 from gagdiez/typedocs
gagdiez Nov 23, 2023
475f394
fix: docs
gagdiez Nov 23, 2023
b9d4eec
Merge pull request #3 from gagdiez/typedocs
gagdiez Nov 23, 2023
8a16cc1
feat: added near-api-js to typedocs
gagdiez Nov 23, 2023
88de659
fix: output dir for typedocs
gagdiez Nov 23, 2023
6484c14
Merge pull request #4 from gagdiez/typedocs
gagdiez Nov 23, 2023
a0fd580
fix: non-overlapping name for action
gagdiez Nov 23, 2023
d873b8c
Merge pull request #5 from gagdiez/typedocs
gagdiez Nov 23, 2023
86acba1
Merge branch 'master' into master
gagdiez Nov 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions .github/workflows/docs-generator-trigger.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/typedoc-generator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy TypeDoc on GitHub pages

on:
push:
branches:
master

env:
NODE_VERSION: 18.x
ENTRY_FILE: 'packages'
CONFIG_PATH: 'tsconfig.base.json'
USES_PNPM: 'true'
DESTINATION_FOLDER: "docs"

jobs:
deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}

- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 7

- name: Install dependencies
run: pnpm install

- name: Build project
run: pnpm build

- name: Build documentation
run: pnpm docs:generate

- name: Deploy to GitHub pages
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: ${{ env.DESTINATION_FOLDER }}
clean: true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ lib/
test-keys/

.turbo

typedoc-docs/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NEAR JavaScript API

[![Build Status](https://travis-ci.com/near/near-api-js.svg?branch=master)](https://travis-ci.com/near/near-api-js)
[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fnear%2Fnear-api-js%2Fbadge&style=flat&label=Build)](https://actions-badge.atrox.dev/near/near-api-js/goto)
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/near/near-api-js)

NEAR JavaScript API is a complete library to interact with the NEAR blockchain. You can use it in the browser, or in Node.js runtime.
Expand Down
10 changes: 0 additions & 10 deletions docs/README.md

This file was deleted.

25 changes: 12 additions & 13 deletions docs/README_TYPEDOC.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"autoclave": "rimraf packages/**/dist && rimraf packages/**/lib && rimraf packages/**/node_modules && rimraf packages/**/coverage && rimraf packages/**/.turbo && rm -rf node_modules",
"test": "turbo run test",
"release": "changeset publish",
"prepare": "husky install"
"prepare": "husky install",
"docs:generate": "typedoc"
},
"devDependencies": {
"@changesets/changelog-github": "^0.4.6",
Expand All @@ -28,6 +29,7 @@
"husky": "^7.0.4",
"rimraf": "^3.0.2",
"turbo": "^1.4.5",
"typedoc": "^0.25.3",
"typescript": "^4.9.4"
}
}
16 changes: 8 additions & 8 deletions packages/accounts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ A collection of classes, functions, and types for interacting with accounts and

## Modules

- [Account](src/account.ts) a class with methods to transfer NEAR, manage account keys, sign transactions, etc.
- [AccountMultisig](src/account_multisig.ts) a [multisig](https://github.com/near/core-contracts/tree/master/multisig) deployed `Account` requiring multiple keys to sign transactions
- [Account2FA](src/account_2fa.ts) extension of `AccountMultisig` used in conjunction with 2FA provided by [near-contract-helper](https://github.com/near/near-contract-helper)
- [AccountCreator](src/account_creator.ts) classes for creating NEAR accounts
- [Contract](src/contract.ts) represents a deployed smart contract with view and/or change methods
- [Connection](src/connection.ts) a record containing the information required to connect to NEAR RPC
- [Constants](src/constants.ts) account-specific constants
- [Types](src/types.ts) account-specific types
- [Account](https://github.com/near/near-api-js/blob/master/packages/accounts/src/account.ts) a class with methods to transfer NEAR, manage account keys, sign transactions, etc.
- [AccountMultisig](https://github.com/near/near-api-js/blob/master/packages/accounts/src/account_multisig.ts) a [multisig](https://github.com/near/core-contracts/tree/master/multisig) deployed `Account` requiring multiple keys to sign transactions
- [Account2FA](https://github.com/near/near-api-js/blob/master/packages/accounts/src/account_2fa.ts) extension of `AccountMultisig` used in conjunction with 2FA provided by [near-contract-helper](https://github.com/near/near-contract-helper)
- [AccountCreator](https://github.com/near/near-api-js/blob/master/packages/accounts/src/account_creator.ts) classes for creating NEAR accounts
- [Contract](https://github.com/near/near-api-js/blob/master/packages/accounts/src/contract.ts) represents a deployed smart contract with view and/or change methods
- [Connection](https://github.com/near/near-api-js/blob/master/packages/accounts/src/connection.ts) a record containing the information required to connect to NEAR RPC
- [Constants](https://github.com/near/near-api-js/blob/master/packages/accounts/src/constants.ts) account-specific constants
- [Types](https://github.com/near/near-api-js/blob/master/packages/accounts/src/types.ts) account-specific types

# License

Expand Down
62 changes: 29 additions & 33 deletions packages/accounts/src/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,20 @@ export interface SignAndSendTransactionOptions {
actions: Action[];
/**
* Metadata to send the NEAR Wallet if using it to sign transactions.
* @see {@link RequestSignTransactionsOptions}
* @see RequestSignTransactionsOptions
*/
walletMeta?: string;
/**
* Callback url to send the NEAR Wallet if using it to sign transactions.
* @see {@link RequestSignTransactionsOptions}
* @see RequestSignTransactionsOptions
*/
walletCallbackUrl?: string;
returnError?: boolean;
}

/**
* Options used to initiate a function call (especially a change function call)
* @see {@link account!Account#viewFunction} to initiate a view function call
* @see {@link Account#viewFunction | viewFunction} to initiate a view function call
*/
export interface FunctionCallOptions {
/** The NEAR account id where the contract is deployed */
Expand Down Expand Up @@ -122,18 +122,18 @@ export interface FunctionCallOptions {
export interface ChangeFunctionCallOptions extends FunctionCallOptions {
/**
* Metadata to send the NEAR Wallet if using it to sign transactions.
* @see {@link RequestSignTransactionsOptions}
* @see RequestSignTransactionsOptions
*/
walletMeta?: string;
/**
* Callback url to send the NEAR Wallet if using it to sign transactions.
* @see {@link RequestSignTransactionsOptions}
* @see RequestSignTransactionsOptions
*/
walletCallbackUrl?: string;
}
export interface ViewFunctionCallOptions extends FunctionCallOptions {
parse?: (response: Uint8Array) => any;
blockQuery?: BlockReference;
export interface ViewFunctionCallOptions extends FunctionCallOptions {
parse?: (response: Uint8Array) => any;
blockQuery?: BlockReference;
}

interface StakedBalance {
Expand Down Expand Up @@ -163,11 +163,7 @@ function bytesJsonStringify(input: any): Buffer {
}

/**
* This class provides common account related RPC calls including signing transactions with a {@link utils/key_pair!KeyPair}.
*
* @hint Use {@link walletAccount!WalletConnection} in the browser to redirect to [NEAR Wallet](https://wallet.near.org/) for Account/key management using the {@link key_stores/browser_local_storage_key_store!BrowserLocalStorageKeyStore}.
* @see [https://docs.near.org/docs/develop/front-end/naj-quick-reference#account](https://docs.near.org/tools/near-api-js/quick-reference#account)
* @see [Account Spec](https://nomicon.io/DataStructures/Account.html)
* This class provides common account related RPC calls including signing transactions with a {@link "@near-js/crypto".key_pair.KeyPair | KeyPair}.
*/
export class Account {
readonly connection: Connection;
Expand All @@ -194,7 +190,7 @@ export class Account {
* Create a signed transaction which can be broadcast to the network
* @param receiverId NEAR account receiving the transaction
* @param actions list of actions to perform as part of the transaction
* @see {@link providers/json-rpc-provider!JsonRpcProvider#sendTransaction | JsonRpcProvider.sendTransaction}
* @see {@link "@near-js/providers".json-rpc-provider.JsonRpcProvider.sendTransaction | JsonRpcProvider.sendTransaction}
*/
protected async signTransaction(receiverId: string, actions: Action[]): Promise<[Uint8Array, SignedTransaction]> {
const accessKeyInfo = await this.findAccessKey(receiverId, actions);
Expand All @@ -214,7 +210,7 @@ export class Account {

/**
* Sign a transaction to preform a list of actions and broadcast it using the RPC API.
* @see {@link providers/json-rpc-provider!JsonRpcProvider#sendTransaction | JsonRpcProvider.sendTransaction}
* @see {@link "@near-js/providers".json-rpc-provider.JsonRpcProvider | JsonRpcProvider }
*/
async signAndSendTransaction({ receiverId, actions, returnError }: SignAndSendTransactionOptions): Promise<FinalExecutionOutcome> {
let txHash, signedTx;
Expand Down Expand Up @@ -248,7 +244,7 @@ export class Account {
printTxOutcomeLogsAndFailures({ contractId: signedTx.transaction.receiverId, outcome: result });

// Should be falsy if result.status.Failure is null
if (!returnError && typeof result.status === 'object' && typeof result.status.Failure === 'object' && result.status.Failure !== null) {
if (!returnError && typeof result.status === 'object' && typeof result.status.Failure === 'object' && result.status.Failure !== null) {
// if error data has error_message and error_type properties, we consider that node returned an error in the old format
if (result.status.Failure.error_message && result.status.Failure.error_type) {
throw new TypedError(
Expand All @@ -266,7 +262,7 @@ export class Account {
accessKeyByPublicKeyCache: { [key: string]: AccessKeyView } = {};

/**
* Finds the {@link providers/provider!AccessKeyView} associated with the accounts {@link utils/key_pair!PublicKey} stored in the {@link key_stores/keystore!KeyStore}.
* Finds the {@link AccessKeyView} associated with the accounts {@link PublicKey} stored in the {@link "@near-js/keystores".keystore.KeyStore | Keystore}.
*
* @todo Find matching access key based on transaction (i.e. receiverId and actions)
*
Expand Down Expand Up @@ -396,16 +392,16 @@ export class Account {
this.validateArgs(args);
let functionCallArgs;

if(jsContract){
const encodedArgs = this.encodeJSContractArgs( contractId, methodName, JSON.stringify(args) );
functionCallArgs = ['call_js_contract', encodedArgs, gas, attachedDeposit, null, true ];
} else{
if (jsContract) {
const encodedArgs = this.encodeJSContractArgs(contractId, methodName, JSON.stringify(args));
functionCallArgs = ['call_js_contract', encodedArgs, gas, attachedDeposit, null, true];
} else {
const stringifyArg = stringify === undefined ? stringifyJsonOrBytes : stringify;
functionCallArgs = [methodName, args, gas, attachedDeposit, stringifyArg, false];
}

return this.signAndSendTransaction({
receiverId: jsContract ? this.connection.jsvmAccountId: contractId,
receiverId: jsContract ? this.connection.jsvmAccountId : contractId,
// eslint-disable-next-line prefer-spread
actions: [functionCall.apply(void 0, functionCallArgs)],
walletMeta,
Expand Down Expand Up @@ -543,20 +539,20 @@ export class Account {
blockQuery = { finality: 'optimistic' }
}: ViewFunctionCallOptions): Promise<any> {
let encodedArgs;

this.validateArgs(args);
if(jsContract){
encodedArgs = this.encodeJSContractArgs(contractId, methodName, Object.keys(args).length > 0 ? JSON.stringify(args): '');
} else{
encodedArgs = stringify(args);

if (jsContract) {
encodedArgs = this.encodeJSContractArgs(contractId, methodName, Object.keys(args).length > 0 ? JSON.stringify(args) : '');
} else {
encodedArgs = stringify(args);
}

const result = await this.connection.provider.query<CodeResult>({
request_type: 'call_function',
...blockQuery,
account_id: jsContract ? this.connection.jsvmAccountId : contractId,
method_name: jsContract ? 'view_js_contract' : methodName,
method_name: jsContract ? 'view_js_contract' : methodName,
args_base64: encodedArgs.toString('base64')
});

Expand All @@ -575,7 +571,7 @@ export class Account {
* @param prefix allows to filter which keys should be returned. Empty prefix means all keys. String prefix is utf-8 encoded.
* @param blockQuery specifies which block to query state at. By default returns last "optimistic" block (i.e. not necessarily finalized).
*/
async viewState(prefix: string | Uint8Array, blockQuery: BlockReference = { finality: 'optimistic' } ): Promise<Array<{ key: Buffer; value: Buffer}>> {
async viewState(prefix: string | Uint8Array, blockQuery: BlockReference = { finality: 'optimistic' }): Promise<Array<{ key: Buffer; value: Buffer }>> {
const { values } = await this.connection.provider.query<ViewStateResult>({
request_type: 'view_state',
...blockQuery,
Expand Down Expand Up @@ -651,12 +647,12 @@ export class Account {
* NOTE: If the tokens are delegated to a staking pool that is currently on pause or does not have enough tokens to participate in validation, they won't be accounted for.
* @returns {Promise<ActiveDelegatedStakeBalance>}
*/
async getActiveDelegatedStakeBalance(): Promise<ActiveDelegatedStakeBalance> {
async getActiveDelegatedStakeBalance(): Promise<ActiveDelegatedStakeBalance> {
const block = await this.connection.provider.block({ finality: 'final' });
const blockHash = block.header.hash;
const epochId = block.header.epoch_id;
const { current_validators, next_validators, current_proposals } = await this.connection.provider.validators(epochId);
const pools:Set<string> = new Set();
const pools: Set<string> = new Set();
[...current_validators, ...next_validators, ...current_proposals]
.forEach((validator) => pools.add(validator.account_id));

Expand Down Expand Up @@ -704,7 +700,7 @@ export class Account {
}
return result;
},
{ stakedValidators: [], failedValidators: [], total: new BN(0) });
{ stakedValidators: [], failedValidators: [], total: new BN(0) });

return {
...summary,
Expand Down
2 changes: 1 addition & 1 deletion packages/accounts/src/account_2fa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class Account2FA extends AccountMultisig {

/**
* Sign a transaction to preform a list of actions and broadcast it using the RPC API.
* @see {@link providers/json-rpc-provider!JsonRpcProvider#sendTransaction | JsonRpcProvider.sendTransaction}
* @see {@link "@near-js/providers".json-rpc-provider.JsonRpcProvider.sendTransaction | JsonRpcProvider.sendTransaction}
*/
async signAndSendTransaction({ receiverId, actions }: SignAndSendTransactionOptions): Promise<FinalExecutionOutcome> {
await super.signAndSendTransaction({ receiverId, actions });
Expand Down
4 changes: 2 additions & 2 deletions packages/accounts/src/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ export interface ContractMethods {
/**
* Methods that change state. These methods cost gas and require a signed transaction.
*
* @see {@link account!Account.functionCall}
* @see {@link Account#functionCall}
*/
changeMethods: string[];

/**
* View methods do not require a signed transaction.
*
* @see {@link account!Account#viewFunction}
* @see {@link Account#viewFunction}
*/
viewMethods: string[];

Expand Down
Loading
Loading