open-index/open-npm huggingface dataset:
npm package: @sensio/api
Description: Sensio API module
Author: Daniel Maricic
Latest version: 0.4.8-alpha.4

# @sensio/api

## Type generation and augmentation

Please check this post on [Polkadot-js/api documentation](https://polkadot.js.org/api/examples/promise/90_typegen/).

In order to generate the types and augmentations please run `yarn build:types` from root of this package or from the root of this repo.

Maintaining the types is done in the corresponding folder under `interfaces/palletName/definitions.ts`, then it must be imported in the `interfaces/definitions.ts` file. After that run the gen script.

**NOTE** - Chain must be available on the local address, http://localhost:9933

## Introduction

Along with [methods supported by Polkadot](https://polkadot.js.org/api/start/basics.html#metadata) this module internally uses custom pallets in the following format `api.pallets.<pallet_name>` and exposes functions for **creating proofs, rules and operations** . Note that any library specific code will not be included in order to retain the possibility to develop library specific packages eg . `@sensio/react`.

## Usage

Install the module:

`yarn add @sensio/api`

> This module is built using Typescript so there is no need to install additional types. :fire:

```ts
import { api } from '@sensio/api'
;(async () => {
  // Connect to Sensio Network API
  const connection = await api()
})()
```

#### Available pallets:

- `api.pallets.operations`
- `api.pallets.rules`
- `api.pallets.poe`

#### Adding child operations :warning:

Current api design challenge that we are facing is **adding child operations**. Suppose you created a _rule_ and you added two operations as direct children:

```
Rule ->
    Operation 1
    Operation 2
```

How would API need to be designed in order to allow adding child operation to the `Operation 1` to achieve this structure:

```
Rule ->
    Operation 1 ->
        Operation 1a
    Operation 2
```

**Proposal #1: Chainig**

```ts
api.pallets.rules
  .create()
  .addOperation({ ...operation })
  .addChildOperation({ ...operation })
```

**Proposal #2: Functional**

```ts
const { create, addOperation, addChildOperation } = api.pallets.rule
const rule = {} // actuall rule object
addOperation(rule, op)
```

## Roadmap :pushpin:

### Rules

- [ ] create rule
- [ ] add operation
- [ ] add child operation
- [ ] save rule to the network

### Operations

- [ ] create operation

### Proofs

- [ ] create proof
npm package: @sensio/op-sn-cid
Description: Blockchain Version **bafy2bzacebvd3b7upai2av3w33dwrwqkh7w7qvbon6obi6q4evw6pqe744npu**
Author: daniel@woss.io
Latest version: 0.4.8-alpha.4

# @sensio/op-sn-cid

Blockchain Version **bafy2bzacebvd3b7upai2av3w33dwrwqkh7w7qvbon6obi6q4evw6pqe744npu**

## Description

Generic CID, defaults to base32 and dag-cbor for Any kind of data.

## Links and Repo

- npm: https://www.npmjs.com/package/@sensio/op-sn-cid
- repo: [repo folder](https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snCid)
- support: [Discord server #public-support channel](https://discord.gg/RQ9g29y)

## Install

```sh
# install latest version
yarn add @sensio/op-sn-cid

# or specific version
yarn add @sensio/op-sn-cid@0.3.1
```

## Usage

```ts
import { stringToU8a } from '@polkadot/util'
import snCid from '@sensio/op-sn-cid'

await snCid([
  {
    data: stringToU8a('demo'),
    decode: () => Buffer.from('demo')
  }
])
```

## Contributing

PRs accepted.

## License

Longer version is in LICENSE file

Apache-2.0 © [Sensio Group](https://sensio.group)
npm package: @sensio/op-sn-create-ownership-claims
Description: Blockchain Version **bafy2bzacebr4fj6rnexne25v6zcuomsfnbfxrv22cwzrrqexeo3ggotd3u3zu**
Author: daniel@woss.io
Latest version: 0.4.8-alpha.4


  # @sensio/op-sn-create-ownership-claims

  Blockchain Version **bafy2bzacebr4fj6rnexne25v6zcuomsfnbfxrv22cwzrrqexeo3ggotd3u3zu**
  

  ## Description 
  
  Create the Ownership Claims from the existing PoE from the Sensio Network.
  
  ##  Links and Repo

  * npm: https://www.npmjs.com/package/@sensio/op-sn-create-ownership-claims
  * repo: [repo folder](https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snCreateOwnershipClaims)
  * support: [Discord server #public-support channel](https://discord.gg/RQ9g29y) 

  ## Install
  
  ```sh
  # install latest version
  yarn add @sensio/op-sn-create-ownership-claims

  # or specific version
  yarn add @sensio/op-sn-create-ownership-claims@0.1.0
  ```
  
  ## Usage
  
  ```ts
  import snCreateOwnershipClaims from '@sensio/op-sn-create-ownership-claims'

  const dataAsUintArray = new U8intArray(7)
  const dataAsBuffer = Buffer.from(7)
  await snCreateOwnershipClaims([{data: dataAsUintArray, decode: ()=> dataAsBuffer}])
  ```
  
  ## Contributing
  
  PRs accepted.
  
  ## License
  
  Longer version is in LICENSE file
  
  Apache-2.0 © [Sensio Group](https://sensio.group)
npm package: @sensio/op-sn-create-qrcode
Description: Blockchain Version **bafy2bzacecnosczzvuuibkajhvporgd4e5rrye4wcorvm7zmloinm6ofngdeq**
Author: daniel@woss.io
Latest version: 0.4.8-alpha.4

# @sensio/op-sn-create-qrcode

Blockchain Version **bafy2bzacecnosczzvuuibkajhvporgd4e5rrye4wcorvm7zmloinm6ofngdeq**

## Description

Create QR Code

For more info on the QrCodes check the [QrCode npm package](https://www.npmjs.com/package/qrcode)

## Links and Repo

- npm: https://www.npmjs.com/package/@sensio/op-sn-create-qrcode
- repo: [repo folder](https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snCreateQrcode)
- support: [Discord server #public-support channel](https://discord.gg/RQ9g29y)

## Install

```sh
# install latest version
yarn add @sensio/op-sn-create-qrcode

# or specific version
yarn add @sensio/op-sn-create-qrcode@0.1.0
```

## Usage

```ts
import snCreateQrcode from '@sensio/op-sn-create-qrcode'

const dataAsUintArray = new U8intArray(7)
const dataAsBuffer = '7'
const myQrCode = await snCreateQrcode([
  { data: dataAsUintArray, decode: () => dataAsBuffer }
])
```

This above will create following QRCode

![7 as QRCode](./7-as-qrcode.png)

## Contributing

PRs accepted.

## License

Longer version is in LICENSE file

Apache-2.0 © [Sensio Group](https://sensio.group)
npm package: @sensio/op-sn-enc-hex
Description: Blockchain Version **bafy2bzaceanqw2xwjawh4zdrn6lct7pi63fndib5jhcx7hfe5y7g6iwwrwqka**
Author: daniel@woss.io
Latest version: 0.4.8-alpha.4

# @sensio/op-sn-enc-hex

Blockchain Version **bafy2bzaceanqw2xwjawh4zdrn6lct7pi63fndib5jhcx7hfe5y7g6iwwrwqka**

## Description

Encode arbitrary data to HEX with 0x prefix

## Links and Repo

- npm: https://www.npmjs.com/package/@sensio/op-sn-enc-hex
- repo: [repo folder](https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snEncHex)
- support: [Discord server #public-support channel](https://discord.gg/RQ9g29y)

## Install

```sh
# install latest version
yarn add @sensio/op-sn-enc-hex

# or specific version
yarn add @sensio/op-sn-enc-hex@0.3.1
```

## Usage

```ts
import snEncHex from '@sensio/op-sn-enc-hex'

const data = new U8intArray(7)
await snEncHex(data)
```

## Contributing

PRs accepted.

## License

Longer version is in LICENSE file

Apache-2.0 © [Sensio Group](https://sensio.group)
npm package: @sensio/op-sn-file
Description: Blockchain Version **bafy2bzaced67meyosnnt6dmvsp4sjro5mo5ufu3ntoqamouttsa4tlqo6ta2m**
Author: daniel@woss.io
Latest version: 0.4.8-alpha.4

# @sensio/op-sn-file

Blockchain Version **bafy2bzaced67meyosnnt6dmvsp4sjro5mo5ufu3ntoqamouttsa4tlqo6ta2m**

## Description

Reads the file from given path (data) and returns the buffer. RAW file buffer for other ops to use.

## Links and Repo

- npm: https://www.npmjs.com/package/@sensio/op-sn-file
- repo: [repo folder](https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snFile)
- support: [Discord server #public-support channel](https://discord.gg/RQ9g29y)

## Install

```sh
# install latest version
yarn add @sensio/op-sn-file

# or specific version
yarn add @sensio/op-sn-file@0.1.0
```

## Usage

```ts
import snFile from '@sensio/op-sn-file'

const dataAsUintArray = new U8intArray(7)
const dataAsBuffer = Buffer.from(7)
await snFile([{ data: dataAsUintArray, decode: () => dataAsBuffer }])
```

## Contributing

PRs accepted.

## License

Longer version is in LICENSE file

Apache-2.0 © [Sensio Group](https://sensio.group)
npm package: @sensio/op-sn-identity
Description: Blockchain Version **bafy2bzacecc2mmjx3nltb7pkdbtvjf64pjoswimxrcowguwi5jxn34blzb44s**
Author: daniel@woss.io
Latest version: 0.4.8-alpha.4

# @sensio/op-sn-identity

Blockchain Version **bafy2bzacecc2mmjx3nltb7pkdbtvjf64pjoswimxrcowguwi5jxn34blzb44s**

## Description

What comes in that comes out, identity function, must be a parent of the USER operation. Only one child is accepted.

## Links and Repo

- npm: https://www.npmjs.com/package/@sensio/op-sn-identity
- repo: [repo folder](https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snIdentity)
- support: [Discord server #public-support channel](https://discord.gg/RQ9g29y)

## Install

```sh
# install latest version
yarn add @sensio/op-sn-identity

# or specific version
yarn add @sensio/op-sn-identity@0.3.1
```

## Usage

```ts
import snIdentity from '@sensio/op-sn-identity'

const data = new U8intArray(7)
await snIdentity(data)
```

## Contributing

PRs accepted.

## License

Longer version is in LICENSE file

Apache-2.0 © [Sensio Group](https://sensio.group)
npm package: @sensio/op-sn-image-metadata
Description: Blockchain Version **bafy2bzacedk46pihe5gr44l6liofvga6umxyhy27hwp4treiq32y6cdywsxzm**
Author: daniel@woss.io
Latest version: 0.4.8-alpha.4

# @sensio/op-sn-image-metadata

Blockchain Version **bafy2bzacedk46pihe5gr44l6liofvga6umxyhy27hwp4treiq32y6cdywsxzm**

## Description

Extract All Image Metadata

## Links and Repo

- npm: https://www.npmjs.com/package/@sensio/op-sn-image-metadata
- repo: [repo folder](https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snImageMetadata)
- support: [Discord server #public-support channel](https://discord.gg/RQ9g29y)

## Install

```sh
# install latest version
yarn add @sensio/op-sn-image-metadata

# or specific version
yarn add @sensio/op-sn-image-metadata@0.1.0
```

## Usage

```ts
import snImageMetadata from '@sensio/op-sn-image-metadata'

const dataAsUintArray = new U8intArray(7)
const dataAsBuffer = Buffer.from(7)
await snImageMetadata([{ data: dataAsUintArray, decode: () => dataAsBuffer }])
```

## Contributing

PRs accepted.

## License

Longer version is in LICENSE file

Apache-2.0 © [Sensio Group](https://sensio.group)
npm package: @sensio/op-sn-image-metadata-hash
Description: Blockchain Version **bafy2bzaceczzm4kzeqfqnk4onhpnipiskfqcxtssm7t54dmrzso5un6eaukya**
Author: daniel@woss.io
Latest version: 0.4.8-alpha.4

# @sensio/op-sn-image-metadata-hash

Blockchain Version **bafy2bzaceczzm4kzeqfqnk4onhpnipiskfqcxtssm7t54dmrzso5un6eaukya**

## Description

Hash of full unchanged metadata buffer (or similar). Without raw pixels. The hashing is done via multihash using the hashing key to create a hash. Figure out how to do it with the ops that are not children, like use snCid

## Links and Repo

- npm: https://www.npmjs.com/package/@sensio/op-sn-image-metadata-hash
- repo: [repo folder](https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snImageMetadataHash)
- support: [Discord server #public-support channel](https://discord.gg/RQ9g29y)

## Install

```sh
# install latest version
yarn add @sensio/op-sn-image-metadata-hash

# or specific version
yarn add @sensio/op-sn-image-metadata-hash@0.1.0
```

## Usage

```ts
import snImageMetadataHash from '@sensio/op-sn-image-metadata-hash'

const dataAsUintArray = new U8intArray(7)
const dataAsBuffer = Buffer.from(7)
await snImageMetadataHash([
  { data: dataAsUintArray, decode: () => dataAsBuffer }
])
```

## Contributing

PRs accepted.

## License

Longer version is in LICENSE file

Apache-2.0 © [Sensio Group](https://sensio.group)
npm package: @sensio/op-sn-image-phash
Description: Blockchain Version **bafy2bzaceafhfdbh4r6fmmnudwqehqedhf632dbafl7fnmbkbpjnv2miacdza**
Author: daniel@woss.io
Latest version: 0.4.8-alpha.4

# @sensio/op-sn-image-phash

Blockchain Version **bafy2bzaceafhfdbh4r6fmmnudwqehqedhf632dbafl7fnmbkbpjnv2miacdza**

## Description

Perceptual hash calculation, currently implementing http://blockhash.io/

## Links and Repo

- npm: https://www.npmjs.com/package/@sensio/op-sn-image-phash
- repo: [repo folder](https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snImagePhash)
- support: [Discord server #public-support channel](https://discord.gg/RQ9g29y)

## Install

```sh
# install latest version
yarn add @sensio/op-sn-image-phash

# or specific version
yarn add @sensio/op-sn-image-phash@0.1.0
```

## Usage

```ts
import snImagePhash from '@sensio/op-sn-image-phash'

const dataAsUintArray = new U8intArray(7)
const dataAsBuffer = Buffer.from(7)
await snImagePhash([{ data: dataAsUintArray, decode: () => dataAsBuffer }])
```

## Contributing

PRs accepted.

## License

Longer version is in LICENSE file

Apache-2.0 © [Sensio Group](https://sensio.group)
npm package: @sensio/op-sn-image-raw-pixels
Description: Blockchain Version **bafy2bzacecjrerw6cnuyj3ta7ntsvleq43vxgt4otgdvf2wjjpdg5almrzd4y**
Author: daniel@woss.io
Latest version: 0.4.8-alpha.4

# @sensio/op-sn-image-raw-pixels

Blockchain Version **bafy2bzacecjrerw6cnuyj3ta7ntsvleq43vxgt4otgdvf2wjjpdg5almrzd4y**

## Description

Extract Only Raw pixels from the image

## Links and Repo

- npm: https://www.npmjs.com/package/@sensio/op-sn-image-raw-pixels
- repo: [repo folder](https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snImageRawPixels)
- support: [Discord server #public-support channel](https://discord.gg/RQ9g29y)

## Install

```sh
# install latest version
yarn add @sensio/op-sn-image-raw-pixels

# or specific version
yarn add @sensio/op-sn-image-raw-pixels@0.1.0
```

## Usage

```ts
import snImageRawPixels from '@sensio/op-sn-image-raw-pixels'

const dataAsUintArray = new U8intArray(7)
const dataAsBuffer = Buffer.from(7)
await snImageRawPixels([{ data: dataAsUintArray, decode: () => dataAsBuffer }])
```

## Contributing

PRs accepted.

## License

Longer version is in LICENSE file

Apache-2.0 © [Sensio Group](https://sensio.group)
npm package: @sensio/op-sn-image-raw-pixels-hash
Description: Blockchain Version **bafy2bzacecgmp4enyoywse6enuoqgfpffojhrn7kovryv775xa7mhv6f34qju**
Author: daniel@woss.io
Latest version: 0.4.8-alpha.4

# @sensio/op-sn-image-raw-pixels-hash

Blockchain Version **bafy2bzacecgmp4enyoywse6enuoqgfpffojhrn7kovryv775xa7mhv6f34qju**

## Description

Calculate content id of the raw pixels

## Links and Repo

- npm: https://www.npmjs.com/package/@sensio/op-sn-image-raw-pixels-hash
- repo: [repo folder](https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snImageRawPixelsHash)
- support: [Discord server #public-support channel](https://discord.gg/RQ9g29y)

## Install

```sh
# install latest version
yarn add @sensio/op-sn-image-raw-pixels-hash

# or specific version
yarn add @sensio/op-sn-image-raw-pixels-hash@0.1.0
```

## Usage

```ts
import snImageRawPixelsHash from '@sensio/op-sn-image-raw-pixels-hash'

const dataAsUintArray = new U8intArray(7)
const dataAsBuffer = Buffer.from(7)
await snImageRawPixelsHash([
  { data: dataAsUintArray, decode: () => dataAsBuffer }
])
```

## Contributing

PRs accepted.

## License

Longer version is in LICENSE file

Apache-2.0 © [Sensio Group](https://sensio.group)
npm package: @sensio/op-sn-json-dec
Description: Blockchain Version **bafy2bzaced7rpfi7k4atlkdaz5x6dmztvzm2jwz7on6lcykdswuf5s2jn4yo4**
Author: daniel@woss.io
Latest version: 0.4.8-alpha.4

# @sensio/op-sn-json-dec

Blockchain Version **bafy2bzaced7rpfi7k4atlkdaz5x6dmztvzm2jwz7on6lcykdswuf5s2jn4yo4**

## Description

Wrapper of JSON.parse()

## Links and Repo

- npm: https://www.npmjs.com/package/@sensio/op-sn-json-dec
- repo: [repo folder](https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snJsonDec)
- support: [Discord server #public-support channel](https://discord.gg/RQ9g29y)

## Install

```sh
# install latest version
yarn add @sensio/op-sn-json-dec

# or specific version
yarn add @sensio/op-sn-json-dec@0.3.1
```

## Usage

```ts
import snJsonDec from '@sensio/op-sn-json-dec'

const data = new U8intArray(7)
await snJsonDec(data)
```

## Contributing

PRs accepted.

## License

Longer version is in LICENSE file

Apache-2.0 © [Sensio Group](https://sensio.group)
npm package: @sensio/op-sn-json-enc
Description: Blockchain Version **bafy2bzacebc64bhgsj24ad53pkgxb7xi3zdedshiozl33nqplv7t5y27tii2u**
Author: daniel@woss.io
Latest version: 0.4.8-alpha.4

# @sensio/op-sn-json-enc

Blockchain Version **bafy2bzacebc64bhgsj24ad53pkgxb7xi3zdedshiozl33nqplv7t5y27tii2u**

## Description

Wrapper of JSON.stringify().

## Links and Repo

- npm: https://www.npmjs.com/package/@sensio/op-sn-json-enc
- repo: [repo folder](https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snJsonEnc)
- support: [Discord server #public-support channel](https://discord.gg/RQ9g29y)

## Install

```sh
# install latest version
yarn add @sensio/op-sn-json-enc

# or specific version
yarn add @sensio/op-sn-json-enc@0.3.1
```

## Usage

```ts
import snJsonEnc from '@sensio/op-sn-json-enc'

const data = new U8intArray(7)
await snJsonEnc(data)
```

## Contributing

PRs accepted.

## License

Longer version is in LICENSE file

Apache-2.0 © [Sensio Group](https://sensio.group)
npm package: @sensio/op-sn-match-all
Description: Blockchain Version **bafy2bzacecxvve6bdbjvokspk2ocvk6m2yvrykcguzluf6q2criwnwzz4hnnw**
Author: daniel@woss.io
Latest version: 0.4.8-alpha.4

# @sensio/op-sn-match-all

Blockchain Version **bafy2bzacecxvve6bdbjvokspk2ocvk6m2yvrykcguzluf6q2criwnwzz4hnnw**

## Description

This operation must have children ops. **ALL** the outputs of children ops must be the same in order to proceed.

## Links and Repo

- npm: https://www.npmjs.com/package/@sensio/op-sn-match-all
- repo: [repo folder](https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snMatchAll)
- support: [Discord server #public-support channel](https://discord.gg/RQ9g29y)

## Install

```sh
# install latest version
yarn add @sensio/op-sn-match-all

# or specific version
yarn add @sensio/op-sn-match-all@0.3.1
```

## Usage

```ts
import snMatchAll from '@sensio/op-sn-match-all'

const data = new U8intArray(7)
await snMatchAll(data)
```

## Contributing

PRs accepted.

## License

Longer version is in LICENSE file

Apache-2.0 © [Sensio Group](https://sensio.group)
npm package: @sensio/op-sn-match-none
Description: Blockchain Version **bafy2bzaceav6aryxb4qisakn64r4irptupvljhiv5l3xxiamlxiglrh2wyq2e**
Author: daniel@woss.io
Latest version: 0.4.8-alpha.4

# @sensio/op-sn-match-none

Blockchain Version **bafy2bzaceav6aryxb4qisakn64r4irptupvljhiv5l3xxiamlxiglrh2wyq2e**

## Description

This operation must have children ops. **NONE** the outputs of children ops must be the same in order to proceed.

## Links and Repo

- npm: https://www.npmjs.com/package/@sensio/op-sn-match-none
- repo: [repo folder](https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snMatchNone)
- support: [Discord server #public-support channel](https://discord.gg/RQ9g29y)

## Install

```sh
# install latest version
yarn add @sensio/op-sn-match-none

# or specific version
yarn add @sensio/op-sn-match-none@0.3.1
```

## Usage

```ts
import snMatchNone from '@sensio/op-sn-match-none'

const data = new U8intArray(7)
await snMatchNone(data)
```

## Contributing

PRs accepted.

## License

Longer version is in LICENSE file

Apache-2.0 © [Sensio Group](https://sensio.group)
npm package: @sensio/op-sn-multihash
Description: Blockchain Version **bafy2bzacea24txwqzwanzte5laqhsy3umk4wq43h3llvlvkebp7gv73kzuzsi**
Author: daniel@woss.io
Latest version: 0.4.8-alpha.4

# @sensio/op-sn-multihash

Blockchain Version **bafy2bzacea24txwqzwanzte5laqhsy3umk4wq43h3llvlvkebp7gv73kzuzsi**

## Description

Generic blake2b-256 multihash operation.

## Links and Repo

- npm: https://www.npmjs.com/package/@sensio/op-sn-multihash
- repo: [repo folder](https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snMultihash)
- support: [Discord server #public-support channel](https://discord.gg/RQ9g29y)

## Install

```sh
# install latest version
yarn add @sensio/op-sn-multihash

# or specific version
yarn add @sensio/op-sn-multihash@0.3.1
```

## Usage

```ts
import snMultihash from '@sensio/op-sn-multihash'

const data = new U8intArray(7)
await snMultihash(data)
```

## Contributing

PRs accepted.

## License

Longer version is in LICENSE file

Apache-2.0 © [Sensio Group](https://sensio.group)
npm package: @sensio/op-sn-save-statements
Description: Save the given statements to the Sensio Network. This operation waits until the records are in finalized state. Accepts the list of claims with the list of signatures for each claim. Mapping is done with the index of the list so `param1[0]` and `param2[0]
Author: daniel@woss.io
Latest version: 0.4.8-alpha.4


  # @sensio/op-sn-save-statements

  Blockchain Version **bafy2bzacecmqyut2oozadzigqsggrhkqxd2fxovubcy4djibfyci6iq6t4s4u**
  

  ## Description 
  
  Save the given statements to the Sensio Network. This operation waits until the records are in finalized state. Accepts the list of claims with the list of signatures for each claim. Mapping is done with the index of the list so `param1[0]` and `param2[0]`. If there are mismatches in the either of the params this operation will fail. Meaning that `param1.length === param2.length`
  
  ##  Links and Repo

  * npm: https://www.npmjs.com/package/@sensio/op-sn-save-statements
  * repo: [repo folder](https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snSaveStatements)
  * support: [Discord server #public-support channel](https://discord.gg/RQ9g29y) 

  ## Install
  
  ```sh
  # install latest version
  yarn add @sensio/op-sn-save-statements

  # or specific version
  yarn add @sensio/op-sn-save-statements@0.1.0
  ```
  
  ## Usage
  
  ```ts
  import snSaveStatements from '@sensio/op-sn-save-statements'

  const dataAsUintArray = new U8intArray(7)
  const dataAsBuffer = Buffer.from(7)
  await snSaveStatements([{data: dataAsUintArray, decode: ()=> dataAsBuffer}])
  ```
  
  ## Contributing
  
  PRs accepted.
  
  ## License
  
  Longer version is in LICENSE file
  
  Apache-2.0 © [Sensio Group](https://sensio.group)
npm package: @sensio/op-sn-split
Description: Blockchain Version **bafy2bzacealjmcwnfurdmn2tndsv35d5cdbaempopwdq5pr5zr56yrfhuc2zk**
Author: daniel@woss.io
Latest version: 0.4.8-alpha.4

# @sensio/op-sn-split

Blockchain Version **bafy2bzacealjmcwnfurdmn2tndsv35d5cdbaempopwdq5pr5zr56yrfhuc2zk**

## Description

Takes in the operation name and its outputs, then splits in to N copies of the same operation with output values.

## Links and Repo

- npm: https://www.npmjs.com/package/@sensio/op-sn-split
- repo: [repo folder](https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snSplit)
- support: [Discord server #public-support channel](https://discord.gg/RQ9g29y)

## Install

```sh
# install latest version
yarn add @sensio/op-sn-split

# or specific version
yarn add @sensio/op-sn-split@0.3.1
```

## Usage

```ts
import snSplit from '@sensio/op-sn-split'

const data = new U8intArray(7)
await snSplit(data)
```

## Contributing

PRs accepted.

## License

Longer version is in LICENSE file

Apache-2.0 © [Sensio Group](https://sensio.group)
npm package: @sensio/op-sn-take-photo-and-upload-qrcode
Description: Take the photo of the QRCode and do the verification of equality. If the verification is a successes the coperation will continue, if not user will be asked to resubmit the image.
Author: daniel@woss.io
Latest version: 0.4.8-alpha.4


  # @sensio/op-sn-take-photo-and-upload-qrcode

  Blockchain Version **bafy2bzacedtcdvuykc4jencdnm5zymadzutm7yzvpughbgjotxmgpyglzhqpc**
  

  ## Description 
  
  Take the photo of the QRCode and do the verification of equality. If the verification is a successes the coperation will continue, if not user will be asked to resubmit the image. The photo taken MUST NOT BE MODIFIED, RESIZED AND MUST BE IN JPG OR JPEG. Medium or low size is better than large 10MB files. You can choose that in the camera settings
  
  ##  Links and Repo

  * npm: https://www.npmjs.com/package/@sensio/op-sn-take-photo-and-upload-qrcode
  * repo: [repo folder](https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snTakePhotoAndUploadQrcode)
  * support: [Discord server #public-support channel](https://discord.gg/RQ9g29y) 

  ## Install
  
  ```sh
  # install latest version
  yarn add @sensio/op-sn-take-photo-and-upload-qrcode

  # or specific version
  yarn add @sensio/op-sn-take-photo-and-upload-qrcode@0.1.0
  ```
  
  ## Usage
  
  ```ts
  import snTakePhotoAndUploadQrcode from '@sensio/op-sn-take-photo-and-upload-qrcode'

  const dataAsUintArray = new U8intArray(7)
  const dataAsBuffer = Buffer.from(7)
  await snTakePhotoAndUploadQrcode([{data: dataAsUintArray, decode: ()=> dataAsBuffer}])
  ```
  
  ## Contributing
  
  PRs accepted.
  
  ## License
  
  Longer version is in LICENSE file
  
  Apache-2.0 © [Sensio Group](https://sensio.group)
npm package: @sensio/op-sn-user-sign-claims
Description: Sign the claims and return the tuple of claims and their signatures
Author: daniel@woss.io
Latest version: 0.4.8-alpha.4

# @sensio/op-sn-user-sign-claims

Blockchain Version **bafy2bzacebtqlbme62wogt4a7447lxsebvu5fncnht3eedmyvjle7t32ue46c**

## Description

Sign the claims and return the tuple of claims and their signatures

## Links and Repo

- npm: https://www.npmjs.com/package/@sensio/op-sn-user-sign-claims
- repo: [repo folder](https://gitlab.com/sensio_group/network-js-sdk/-/tree/master/operations/snUserSignClaims)
- support: [Discord server #public-support channel](https://discord.gg/RQ9g29y)

## Install

```sh
# install latest version
yarn add @sensio/op-sn-user-sign-claims

# or specific version
yarn add @sensio/op-sn-user-sign-claims@0.1.0
```

## Usage

For the usage look at the test [index.spec.ts](./src/index.spec.ts)

## Contributing

PRs accepted.

## License

Longer version is in LICENSE file

Apache-2.0 © [Sensio Group](https://sensio.group)
npm package: @sensio/types
Description: Sensio Custom and Auto-generated types and interfaces
Author: daniel@woss.io
Latest version: 0.4.8-alpha.3

# All Sensio Network custom types and interfaces

This module cantinas ALL custom types for interaction with the Sensio Network and the Sensio Network API.

## Generation

This module is built on excellent `polkadot-types-from-defs` and `polkadot-types-from-chain` plus some of our magic for mapping the Generic Types into the Javascript friendly interfaces.

Full list of `Sensio*` Generic Types to -> Javascript native types can be found in `sensio-type-mappings.ts` file.

To generate new types and api augmentations you must have Sensio Network chain running. Check how to do that HERE.

```sh
yarn gen:types
```

This will connect to the chain and generate:

- create interfaces and augmentations for the standard substrate chain
- create constants, types and augmentations for the Sensio [Pallets](https://gitlab.com/sensio_group/network-js/-/tree/6-create-operations-package-and-move-existing-ops-from-the-explorer/sdk/api/src/pallets)
- create `NetworkCustomTypes.json` which can be pasted into the PolkadotJs app
- save the chain metadata in the `sensio-network.json` file

**At the moment you have to go to all pallets `types.ts` file and change the `./` into `../`. There is a unresolved issue with the path. **

## Structure

All pallet definitions are located in the `interfaces/PALLET_NAME/` directory.

The interface structure looks like this:

```sh
#./src/interfaces

├── 123-pallet
│   ├── definitions.ts
│   └── interfaces.ts
├── augment-api-consts.ts
├── augment-api-query.ts
├── augment-api.ts
├── augment-api-tx.ts
├── augment-types.ts
├── definitions.ts
├── index.ts
├── operations
│   ├── definitions.ts
│   ├── index.ts
│   ├── interfaces.ts
│   └── types.ts
├── poe
│   ├── definitions.ts
│   ├── index.ts
│   ├── interfaces.ts
│   └── types.ts
├── rules
│   ├── definitions.ts
│   ├── index.ts
│   ├── interfaces.ts
│   └── types.ts
├── sensio
│   ├── definitions.ts
│   ├── index.ts
│   ├── interfaces.ts
│   └── types.ts
├── sensio-type-mappings.ts
├── statements
│   ├── definitions.ts
│   ├── index.ts
│   ├── interfaces.ts
│   └── types.ts
├── types.ts
└── utils
    ├── buffersEqual.ts
    └── slug.ts

```

We need to maintain 2 files for each pallet, `definitions.ts` and `interfaces.ts`, both of which are in the pallets directory. `definitions.ts` are the custom types that are used for communication with the chain and the `interfaces.ts` for building and creating instances of objects and processing.