Catalog npm
Back to packageRELEASE DETAILS

2.1.6

npm

0xkarl-everscale-standalone-client

<p align="center"> <h3 align="center">Everscale standalone client</h3> <p align="center">Standalone client to the Everscale blockchain to use with <a href="https://github.com/broxus/everscale-inpage-provider"><code>everscale-inpage-provider</code>

Published27 Nov 2022
Direct dependencies14
Transitive dependenciesNot calculated

README

Current package documentation

Everscale standalone client

Standalone client to the Everscale blockchain to use with everscale-inpage-provider

GitHub npm

Documentation

How to install

npm install --save everscale-inpage-provider everscale-standalone-client

Example

import { Address, ProviderRpcClient, TvmException } from 'everscale-inpage-provider';

// For browser environment:
import { EverscaleStandaloneClient } from 'everscale-standalone-client';
// Or for nodejs environment:
// import { EverscaleStandaloneClient } from 'everscale-standalone-client/nodejs';

const ever = new ProviderRpcClient({
  fallback: () =>
    EverscaleStandaloneClient.create({
      connection: {
        id: 2, // network id
        type: 'graphql',
        data: {
          // create your own project at https://dashboard.evercloud.dev
          endpoints: ['https://devnet-sandbox.evercloud.dev/graphql'],
        },
      },
    }),
});

async function myApp() {
  await ever.ensureInitialized();

  await ever.requestPermissions({
    permissions: ['basic'],
  });

  const dePoolAddress = new Address('0:2e0ea1716eb93db16077d30e51d092b075ce7f0eb1c08ca5bea67ef48a79368e');

  const dePool = new ever.Contract(DePoolAbi, dePoolAddress);

  try {
    const output = await dePool.methods.getDePoolInfo({}).call();
    console.log(output);
  } catch (e) {
    if (e instanceof TvmException) {
      console.error(e.code);
    }
  }
}

const DePoolAbi = {
  'ABI version': 2,
  header: ['time', 'expire'],
  functions: [
    {
      name: 'getDePoolInfo',
      inputs: [],
      outputs: [
        { name: 'poolClosed', type: 'bool' },
        { name: 'minStake', type: 'uint64' },
        { name: 'validatorAssurance', type: 'uint64' },
        { name: 'participantRewardFraction', type: 'uint8' },
        { name: 'validatorRewardFraction', type: 'uint8' },
        { name: 'balanceThreshold', type: 'uint64' },
        { name: 'validatorWallet', type: 'address' },
        { name: 'proxies', type: 'address[]' },
        { name: 'stakeFee', type: 'uint64' },
        { name: 'retOrReinvFee', type: 'uint64' },
        { name: 'proxyFee', type: 'uint64' },
      ],
    },
  ],
  data: [],
  events: [],
} as const; // NOTE: `as const` is very important here

myApp().catch(console.error);

Build with Vite

Using Vite you will stuck with issue. As workaround you may initialize provider like in the example below.

import { Address, ProviderRpcClient } from 'everscale-inpage-provider';
import { EverscaleStandaloneClient } from 'everscale-standalone-client';

const client = new ProviderRpcClient({
  forceUseFallback: true,
  fallback: () =>
    EverscaleStandaloneClient.create({
      connection: {
        /*...*/
      },
      initInput: '../../node_modules/nekoton-wasm/nekoton_wasm_bg.wasm',
    }),
});

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 14

Native requirements
14 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@broxus/await-semaphore
Environment
{
  "local_name": "@broxus/await-semaphore",
  "alias": false,
  "peer_metadata": null
}
^0.1.5runtime
bignumber.js
Environment
{
  "local_name": "bignumber.js",
  "alias": false,
  "peer_metadata": null
}
^9.1.0runtime
events
Environment
{
  "local_name": "events",
  "alias": false,
  "peer_metadata": null
}
^3.3.0runtime
everscale-inpage-provider
Environment
{
  "local_name": "everscale-inpage-provider",
  "alias": false,
  "peer_metadata": null
}
^0.3.45runtime
fast-safe-stringify
Environment
{
  "local_name": "fast-safe-stringify",
  "alias": false,
  "peer_metadata": null
}
^2.1.1runtime
nekoton-wasm
Environment
{
  "local_name": "nekoton-wasm",
  "alias": false,
  "peer_metadata": null
}
^1.0.5runtime
node-fetch
Environment
{
  "local_name": "node-fetch",
  "alias": false,
  "peer_metadata": null
}
^2.6.7runtime
@types/events
Environment
{
  "local_name": "@types/events",
  "alias": false,
  "peer_metadata": null
}
^3.0.0development
@typescript-eslint/eslint-plugin
Environment
{
  "local_name": "@typescript-eslint/eslint-plugin",
  "alias": false,
  "peer_metadata": null
}
^5.31.0development
@typescript-eslint/parser
Environment
{
  "local_name": "@typescript-eslint/parser",
  "alias": false,
  "peer_metadata": null
}
^5.31.0development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^8.21.0development
eslint-config-prettier
Environment
{
  "local_name": "eslint-config-prettier",
  "alias": false,
  "peer_metadata": null
}
^8.5.0development
eslint-plugin-prettier
Environment
{
  "local_name": "eslint-plugin-prettier",
  "alias": false,
  "peer_metadata": null
}
^4.2.1development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.7.4development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-n+9PKcnhxYZBzbjNxpSzimogupTWLGb0qXLgvlUhAu+orTjGJ63I7lC7fPwuR+aUsdsm9+MopGHYMexloFyXTA==",
  "shasum": "239367de84458f0e9f9a8097eae6f58680423bf1",
  "tarball": "https://registry.npmjs.org/0xkarl-everscale-standalone-client/-/0xkarl-everscale-standalone-client-2.1.6.tgz",
  "fileCount": 27,
  "unpackedSize": 165341,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIGqVI0hnOw289eniqV+sZrgWGqXNjzYm9POgReIj2mQzAiEAs0f5tylQPhXxibaFoUyvJt/q101ppnTyDjhdwCSnzZA="
    }
  ],
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjg38QACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmok+BAAnfa5oJXbJvCQeCrdv9PKs96ie1yMwjnwZsGTYccBiOR1zqUv\r\n0jZj7Z/X2uXIRx+dvh+If/TJJjcxGqYMXRZmqCjWQKJo07nOYIXX2GaEbqr9\r\nz499QZ30vyIpce9a0ujS/dBTPtReBjwqBnjKJ7qlkPyTD66whnvtrPxYYntP\r\nTn+AcBkE6+unhuidnoV9SeH6D39lZi6oLAP7cC9FncO2aMXEoOLhABys6sUL\r\ns+mOoiiB801g/ATap1gsBjWKG0Lzp/CeQGIqN7fenZUyc5/EiHSvNZ4iDaeA\r\njEs3PlBEFRRVZfS3LVW1o6PiLDq2AaQPsQIHfK8fHbVyfZfgms6aIZ245+d8\r\nqUdjlnX5Qe2rneV7h2jbpZHko6uryPfq+xup0rQc8fUtfVu8nd0ZFBUMLhB7\r\nijZaV2fQq1/Xc8bOsQ7CZrCmSJB5CWVrHZMTzSYNSccvK9vdJmAqPlJ9UMNY\r\n74y8gYFguYI/N60DX0F9gRr6dzusdRVRi8MVs0yKuw8mXLKvuMafyf9P/qac\r\nAqlEhxQjJBi/jFDu3riAN07rwucBFBhhKp02JLY4UbhP2Op8AQqe6Uto7jXh\r\nURgeIC1FrABGWViRkgUsaxinxffcsXPEIUIhDfxICSedRX5lROijqjnLrydT\r\npPTNxzhb8qD5v2OV7bK2yoXLOpRlJOohRWU=\r\n=oV7g\r\n-----END PGP SIGNATURE-----\r\n"
}

Repository

PENDING
broxus/everscale-standalone-client

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:51 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:5ad226f3ae6d97dbb747bb805d5cb942e9153305f7cc5efeb4f3957439a4df64

Other collected versions

2.1.1227 Nov2.1.1127 Nov2.1.1027 Nov2.1.927 Nov2.1.827 Nov2.1.727 NovView all collected versions →