Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Victor118

Pages: [1]
1
General Discussion / Simple UIA Wallet as PWA
« on: April 20, 2020, 08:50:02 pm »
First sorry for my english
I'm working on a simple UIA wallet as a Progressive WebApp.
Motivation : I wanted to suggest a concept for a free wallet to all UIA issuers without development skills
This wallet is very simple, very simple (bad) design
You can :
- send/receive an UIA
- create account from seed (using configured faucet)
-import account from seed or import wallet from active private key.

Private keys are stored and crypted by the password on the wallet (browser's local storage)

Anybody who create an UIA, can clone the project, edit the file config.ts, putting in the array "walletSymbols" all assets he wants to be able to transfer with its wallet

Code: [Select]
let _blockchains = {
    BTS: {
        walletSymbols: ['BTS','BADCOIN','HONEST.USD','HONEST.CNY','POCKET','USD','OPEN.ETH'],
        coreSymbol: 'BTS',
        name: 'BitShares',
        chainId: '4018d7844c78f6a6c41c6a552b898022310fc5dec06da467ee7905a8dad512c8',
        faucet: {
                url: "https://faucet.bitshares.eu/onboarding", // 2017-12-infrastructure worker proposal
                show: true,
                editable: false,
                referrer: "onboarding.bitshares.foundation"
           
        }
...

Then the project have to be built and host it on a https server
It's juste a proof of concept, and at the moment I have no time to continue working on it.
It's not very well tested, and nobody made a code review (and it's obviously needed)
A Progressive Webapp is an application that will be installed on the desktop phone just going to the url of the webapp, no need to deploy it on the store, and working on Android and IOS.

https://github.com/Victor118/SimpleUIAWallet

I deployed an example for free on Firebase, but it's connected to the main chain, so be very careful if you want to try it, use it with a test account and very little amount
https://simpleuiawallet.web.app/


2
General Discussion / BTC MPA backed by gateway.BTC
« on: February 19, 2019, 02:13:13 pm »
I was reading this BSIP discussion :
https://github.com/bitshares/bsips/issues/100
If someday it will be possible to create a MPA backed by multiple UIA, may be it will be possible to join all BTC in one MPA ?
On bitshares there is a lot of different BTC (open.BTC, bridge.BTC, rudex.BTC ...)
By cumulating all these BTC the liquidity of BTC would become very interesting on bitshares.
But today there's no link between all those gateway's BTC
It may be stupid and may not be feasible, but what about a BTC MPA backed by as much BTC as possible.
This MPA would be backed by 1 open.BTC or 1 bridge.BTC ...,
Holding 1 MPA BTC is equivalent to holding any type of gateway. BTC, at any time you can settle those BTC and retrieve diverse gateway.BTC
For example I want to deposit some BTC on open.ledger, today openLedger send me open.BTC in exchange, it will be necessary that open.ledger creates MPA.BTC by "borrowing" mpa.BTC by putting open.btc in collateral and send me the MPA.BTC thus created.
I can trade with those MPA.BTC, and then withdraw by settle my BTC and withdraw my gateway's BTC (UI could be better by putting settlement implicit when withdraw MPA.BTC)
On the other hand, it would be necessary to find an incentive for the gateways to use this MPA and to create and supply them to their client rather than their own UIA.

I guess it raises a lot of problems, but is it feasible with bitshares's features?


3
Technical Support / Bitshares JS market trade history
« on: December 17, 2018, 09:13:17 am »
Hi,
I would like to retrieve market history.
I'm trying with  :

Code: [Select]
Apis.instance().db_api().exec( "get_trade_history", [ base,quote,dateStart,dateEnd, 100 ] );
But i got an error :
Quote
basic_string::at: __n (which is 0) >= this->size() (which is 0): basic_string::at: __n (which is 0) >= this->size() (which is 0): unable to convert ISO-formatted string to fc::time_point_sec


Here is dateStart and dateEnd format :

Quote
2018-11-17 10:02:43
 2018-12-17 10:02:43

Someone can help me please ?

 Is there a better way to get history price for a chart, may be an OHLC format ?

4
Technical Support / Understand the Bitshares-core code
« on: March 27, 2018, 03:48:36 pm »
Hello, I am a Java / Javascript developer.
I would like to understand the code of Bitshares core.
Is there any documentation?
When I look at the code I do not understand, obviously I have to learn C ++ (it's in progress).

I would like to understand where is the code that determines the code to execute according to the type of transaction?

For example:
 what is the called method sequence when a limit order creation transaction is transferred to the blockchain?
What code is executed when a witness add new price feed for a smart asset and the margin call logic ?
...etc
Sorry for my bad English and these noob questions !!

5
Français (French) / Bitshares moyen de paiement
« on: November 14, 2017, 01:56:35 pm »
Bonjour à tous,
Bitshares à 2 gros avantages pour etre utiliser comme moyen de paiement.
1- Bitshares est rapide (1,5 secondes pour valider une transaction)
2-Les Smart Coin qui sont des actifs stable, tel que BitUsd, BitEUR qui permettent des paiement sans risque de change comme avec la plus part des crypto monnaie.

C'est quand meme assez génial de pouvoir s'envoyer des EUR sur une blockchain en quelques secondes !!

Mais, a moins que je me trompe, il me semble qu'il n'y a pas de solution simple permettant a un site de proposer un paiement en ligne automatique décentralisé.
L'idée c'est d'eviter un intermediaire qui vérifie que le paiement d'un client a bien été effectué.
Prenons un exemple simple.
Vous souhaitez valider un panier sur Amazon, vous cliqué sur "payer" il faudrait pouvoir instancier un Smart Contract de type "escrow" sur lequel le client va envoyer le montant.
Ce smart contract doit faire des validations simple du style:
-Le montant envoyé doit etre égale au montant demandé, sinon les fonds sont renvoyé au client.
-Si la sommes reçu du client est supérieur au montant demandé le surplus est renvoyé au client.

Une fois que tout est validé le smart contract envoie les fonds sur le compte d'Amazon et notifie que tout s'est bien passé, ainsi Amazon peut lancer la commande.

Sur Ethereum c'est parfaitement réalisable en implémentant un smart contract de type escrow, sur Bitshares j'ai beau reflechir avec les fonctionnalités que je connais je ne vois pas comment faire.
J'ai imaginé un User Issued Asset  avec un total supply de 1 sans décimal, un prix fixe et "white listé" avec le client en question, du coup le client sera le seul à pouvoir s'acheter l'asset, mais ça fait "bidouille" et puis la création d'un asset coute bien trop cher pour gérer une simple transaction.

Vous avez une solution pour ce genre de truc ? est-ce possible ?
Si ce n'est pas le cas, je trouve dommage de ne pas profiter des point fort de bitshares pour proposer un moyen de paiement fiable et efficace




6
Français (French) / Bitshares et la communauté FR
« on: November 11, 2017, 11:07:01 pm »
Bonjour,
J'ai découvert Bitshares il y a quelques semaines et meme si c'est pas forcement facile de tout comprendre tout de suite j'ai quand meme très vite accroché.
Malheureusement mon anglais est loin d'etre parfait du coup je fais des efforts pour lire et comprendre les echanges et les propositions faites sur le forum mais c'est pas toujours simple.
Du coup j'espere que la communauté FR n'est pas aux abonnées absent et qu'on va pouvoir échanger dans cette partie réservé au francais et faire avancer les choses comme on peut.

Je suis developpeur de metier, j'ai aussi un peu d'experience sur le Forex du coup le principe des MPA m'est accessible meme si au début c'est pas immédiat.
Quoi qu'il en soit l'idée de pouvoir envoyer des euros (bitEur) sur une blockchain ultra rapide comme celle de Bitshares je trouve ça génial.
Bitshares pourrait remplacer une banque dans beaucoup de domaine.
J'ai vu passer un projet de CB (OCash), mais je ne réussi pas trouver des informations concernant l'etat d'avancement du projet ?






Pages: [1]