Catalog npm
Back to packageRELEASE DETAILS

2.1.11

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-fLMak+yVquaIplg0xybCQb8YuloUi2FXrj98CkwYoX6xcfcYrn9IJ5vx7PQVWZZ8LiIuQHAN/WzkIvXkmU4E7A==",
  "shasum": "8cd533e7a31719ce82b96e20bff80848e9aa01bd",
  "tarball": "https://registry.npmjs.org/0xkarl-everscale-standalone-client/-/0xkarl-everscale-standalone-client-2.1.11.tgz",
  "fileCount": 41,
  "unpackedSize": 184518,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIAQKMOwU0Lw6EPDyfUmXVpv9ScqEmipVe/GGDtH2dWJcAiBUubSHFFV0OFojennSFYfhzriV+p9/Gl24XlGOzraYXw=="
    }
  ],
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjg4EsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqBlg/+ND7NeQazLHwpbBox4Tzj6MAE+GmEzXTa7D+jUfxGpZv5xOIj\r\nfLlPw9CezPg9KMx1HrwmDpsEvcYzQIdi/Bh9P4ysoBAJbTRrNMPlaMYGuEql\r\n8MmTxYGqMvd+LX+iX3X+kKzNbtCR8FEw6/F2ORE1xcHwhhEW0veInZRPIF90\r\nSI2fkEKA9awSwRbc7Z83eMIgb3t7G9MyxhjDZz2l/xwfauO7ILqWYzr3YSr4\r\nFC6QBUTV9r0ybRTVGrGQtFmzi5FAQC/iI56OiJxfXFpcp16vdDMXCVdEpsaE\r\nyO8W3ybJllfyIRRorZ2sUbu3XMbL+T0mVeRQASKsQVjbn3IlyI8zuVvNInY4\r\nVTY05laGawC2KveuhrbjiAXqr45x7jPbk4pOxC827uh4yX5F9BuhZeT1L6II\r\nxboBLLVZTqppJ6vrIAPrc8YN3KyzqPTLK/j7psgkuS+Z8chDypBrKU3yavLu\r\nCXnocn2Kn/XrGVzbLGcdUL265SiDoG6CmhZ1ImMl0HBM4gWLK1OcXBevb5Wr\r\nyt+rotmUnnf/0wOGdciNhKkQS73DvSb75PtJsldJGozCKphHdK/HN7tlnrzu\r\nlTM2b/BFYFTUq6+k3Y9rDSXpU+WzqkLjA5XVrIYoR3DlJwJmW06mbTVIvG+H\r\nioXkxJSpYXGhMH7feeBYiocIxwW18vGkvN4=\r\n=nRzC\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:cbc3466df79b72ecbdd35dcc46cb5c0ff320e2549df6865407b19e0700daab64

Other collected versions

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