Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
ual-coinpirates-angular
Advanced tools
scatter-core
scatterjs-plugin-eosjs
eosjs@20.0.0
@waxio/waxjs@0.0.11
anchor-link@2.0.1
npm i --save @cryptolions/ulm-eosio
// put the code below in patch.js in root of your project and (node patch.js)
const fs = require('fs');
const f = 'node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/browser.js';
fs.readFile(f, 'utf8', function (err,data) {
if (err) {
return console.log(err);
}
var result = data.replace(/node: false/g, 'node: {crypto: true, stream: true}');
fs.writeFile(f, result, 'utf8', function (err) {
if (err) return console.log(err);
});
});
import { LoginEOSModule } from '@cryptolions/ulm-eosio';
...
// @NgModule config example
LoginEOSModule.forRoot({
appName: 'your_app_name',
httpEndpoint: 'https://bp.cryptolions.io',
chain: 'aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906',
verbose: false,
blockchain: 'eos',
host: 'bp.cryptolions.io',
port: 443,
protocol: 'https',
expireInSeconds: 5
}),
...
<app-login-eos></app-login-eos>
import { Component, OnInit } from '@angular/core';
import { LoginEOSService } from '@cryptolions/ulm-eosio';
@Component({
selector: 'login',
templateUrl: './login.component.html'
})
export class LoginComponent {
constructor(public loginEOSService: LoginEOSService){}
}
// example of login/logout button
<a class="" (click)="loginEOSService.openPopup()" *ngIf="!loginEOSService.connected">Login</a>
<a class="" (click)="loginEOSService.logout()" *ngIf="loginEOSService.connected">Logout</a>
// you can subscribe for loggedin events
this.loginEOSService.loggedIn.subscribe(res => {
// do something
});
this.loginEOSService.eos.transaction({
actions: [{ 'your actions' }]
}, {
blocksBehind: 'your blocksBehind',
expireSeconds: 'your expireSeconds',
}).then((result: any) => {
// do something
}).catch(err => {
this.loginEOSService.contractError(err);
});
this.loginEOSService.rpc.get_table_rows({
'your data'
}).then((result: any) => {
// do something
}).catch(err => {
this.loginEOSService.contractError(err);
});
this.loginEOSService.contractError(err);
this.loginEOSService.showMessage('your message text');
- ledger only works on sites that use https
- in order to use WAX Cloud Wallet, WAX (uppercase!) must be present in the appName
- in order to use MYKEY, EOS (uppercase!) must be present in the appName
- in order to use Proton Wallet, XPR (uppercase!) must be present in the appName
// add to localstorage
account: '${your_name}'
privateKey: '${your_private_key}'
walletConnected: 'connected'
FAQs
## Module dependencies
The npm package ual-coinpirates-angular receives a total of 0 weekly downloads. As such, ual-coinpirates-angular popularity was classified as not popular.
We found that ual-coinpirates-angular demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.