I hereby claim:
- I am jafri on github.
- I am syedjafri (https://keybase.io/syedjafri) on keybase.
- I have a public key ASANryrEEngvl0EHAyCCJvixdeiyR3pzw_lo_xarIFNCmQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import * as net from 'net'; | |
import * as os from 'os'; | |
/** export constANTS */ | |
export const DEFAULT_WALLET_NAME = "default" | |
export const sockCall = async ({ | |
endpoint, | |
body = '', | |
wallet_url = `/${os.homedir()}/eosio-wallet/keosd.sock` |
// MIT License Syed Jafri Copyright 2020 | |
#include <test/test.hpp> | |
namespace eosio_test { | |
std::vector<std::string> split(std::string str, std::string token){ | |
std::vector<std::string> result; | |
while (str.size()) { | |
int index = str.find(token); |
[ 4%] Performing build step for 'toolchain-tester' | |
[ 4%] Performing build step for 'EosioClang' | |
[ 6%] No install step for 'toolchain-tester' | |
[ 8%] No test step for 'toolchain-tester' | |
[ 11%] Completed 'toolchain-tester' | |
[ 22%] Built target toolchain-tester | |
[ 0%] Built target LLVMDemangle | |
[ 0%] Built target LLVMHello_exports | |
[ 0%] Built target LLVMEosioSoftfloat_exports | |
[ 0%] Built target LLVMEosioApply_exports |
{ | |
"code": 500, | |
"message": "Internal Service Error", | |
"error": { | |
"code": 3010010, | |
"name": "packed_transaction_type_exception", | |
"what": "Invalid packed transaction", | |
"details": [ | |
{ | |
"message": "Invalid packed transaction", |
const DEFAULT_ENDPOINTS = [ | |
'https://eos.greymass.com', | |
'https://api.eosrio.io', | |
'https://eos.eoscafeblock.com' | |
] | |
const ACTIONS_ENDPOINTS = [ | |
'https://eos.greymass.com', | |
'https://api.eossweden.org', | |
'https://api.eosrio.io' |
{ | |
name: 'ITAM Games', | |
description: 'ITAM STORE is a blockchain game store made by ITAM GAMES where players can earn digital assets (ITAM NFT) by playing games. Players can trade their hard earned NFTs to other players and record their game scores as well. ITAM GAMES ultilizes blockchain technology integrated with traditional games by providing the ITAM SDK. Through our SDK we allow existing, traditional games to utilize true ownership abilities on digital assets, which we believe gives players a better gaming experience.', | |
shortDescription: 'ITAM STORE is a blockchain game store where players can earn digital assets by playing games.', | |
symbol: 'ITAM', | |
partner: true, | |
statistics: true, | |
accounts: [ | |
'itamgamemain', | |
'itamstoreapp', |
import Foundation | |
import EosioSwift | |
import EosioSwiftVault | |
/// Signature provider implementation for EOSIO SDK for Swift using Keychain and/or Secure Enclave. | |
@objc(EosioKey) | |
public final class EosioKey: NSObject { | |
private let vault: EosioVault |
calculateVoteWeight () { | |
let decayWeeks = 13 | |
let timestamp_epoch = 946684800000 | |
let dates = (Date.now() / 1000) - (timestamp_epoch / 1000) | |
let weight = Math.floor(dates / (86400 * 7)) / decayWeeks | |
return Math.pow(2, weight) | |
} | |
async calculateVoteDecayPercentage (staked, last_vote_weight) { | |
let stake = staked / Math.pow(10, 8) |
[[eosio::action]] void modifypkg2(uint64_t id, package newpackage) { | |
require_auth(newpackage.provider); | |
packages_t packages(_self, _self.value); | |
auto idxKey = package::_by_package_service_provider( | |
newpackage.package_id, newpackage.service, newpackage.provider); | |
auto cidx = packages.get_index<"bypkg"_n>(); | |
auto existing = cidx.find(idxKey); | |
eosio::check(existing != cidx.end(), "does not exist"); |