Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 1 addition & 7 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,5 @@
"project": "./tsconfig.json"
},
"extends": ["standard", "semistandard", "plugin:@typescript-eslint/recommended", "prettier"],
"ignorePatterns": [
"src/polkadot/",
"src/middleware/types.ts",
"src/middleware/typesV6.ts",
"docs/*",
"src/sandbox.ts"
]
"ignorePatterns": ["src/polkadot/", "src/middleware/types.ts", "docs/*", "src/sandbox.ts"]
}
29 changes: 11 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,15 @@

## \@polymeshassociation/polymesh-sdk

<!--- This section is autogenerated, do not modify --->

## Polymesh version

This release is compatible with Polymesh v6.3 and v7.0

<!--- End of section --->
This release is compatible with Polymesh v7

## Getting Started

### Purpose

The Polymesh SDK's main goal is to provide external developers with a set of tools that will allow them to build powerful applications that interact with the Polymesh protocol. It focuses on abstracting away all the complexities of the Polymesh blockchain and expose a simple but complete interface. The result is a feature-rich, user-friendly node.js library.
The Polymesh SDK's main goal is to provide external developers with a set of tools that will allow them to build powerful applications that interact with the Polymesh protocol. It focuses on abstracting away all the complexities of the Polymesh blockchain and expose a simple but complete interface. The result is a feature-rich, user-friendly JS library.

### Technical Pre-requisites

Expand Down Expand Up @@ -133,18 +129,15 @@ Approving and rejecting existing proposals are an exception and should be submit
MultiSig signers, then the procedure's `multiSig` param can be checked to ensure the correct method is called.

```typescript
const createAssetProc = await polyClient.assets.createAsset(
args,
{
signingAccount: multiSigSigner
}
)
createAssetProc.multiSig // indicates the acting MultiSig. If set `runAsProposal` must be used
const proposal = await createAssetProc.runAsProposal()

const rejectProc = await proposal.reject({ signingAccount: multiSigSigner })
rejectProc.multiSig // returns `null`. Rejecting a proposal does not get wrapped
await rejectProc.run()
const createAssetProc = await polyClient.assets.createAsset(args, {
signingAccount: multiSigSigner,
});
createAssetProc.multiSig; // indicates the acting MultiSig. If set `runAsProposal` must be used
const proposal = await createAssetProc.runAsProposal();

const rejectProc = await proposal.reject({ signingAccount: multiSigSigner });
rejectProc.multiSig; // returns `null`. Rejecting a proposal does not get wrapped
await rejectProc.run();
```

#### Reading Data
Expand Down
Loading
Loading