Skip to content
by Unity Nodes
Learning Products

[Report Week 4] Near peer to peer (P2P) DaPP NEAR-DEx

1 posts325 views6 likesLast activity Jan 2022

  1. DeveloperOP 6

    In reference to our proposal, mentioned here:

    NEAR-Dex It’s all about to create a Peer to Peer (P2P) DAPP to allow change your’s NEAR tokens in a easy, secure and fast way. A Decentralized Wallet that will provide P2P like Binance or Airtm where you can change your available Crypto’s in local money, fiat, other cryptos. Using your services online that are available already. The idea is similiar to our friend @FritzWorm NearWalletDapp. Issue & Solution thinking At the moment people ask where they can change their NEAR and do not get …

    The progress of the week, starting on Monday 03/22:

    Facilitators
    Alan Estrada - @cloudmex-alan
    Cristian Zambrano - @Cristian

    Project members
    Andrés Dominguez @andresdom
    Maria Eugenia Arevalo @Developer
    Gabriel Pérez @Gperez

    Frontend: We worked on showing the smart contracts on the frontend, integrating with near-api-js and the user data interface was started to finish the registration cycle on the platform.

    Backend: We work with functions such as merchants, payment methods, shopping list, sales list, search function, generate to filter options in the offers, for example, by payment method, or amount.

    This is the list of the created functions and the parameters they require

    ofertas de venta

    -get_offers_sell ‘{“campo”: “”, “valor”: “”}’
    -set_offers_sell ‘{“owner_id”: “”, “asset”: “”, “exchange_rate”: “”, “amount”: “”, “min_limit”: “”, “max_limit”: “”, “payment_method”: , “status”: }’

    ofertas de compra

    -get_offers_buy ‘{“campo”: “”, “valor”: “”}’
    -set_offers_buy ‘{“owner_id”: “”, “asset”: “”, “exchange_rate”: “”, “amount”: “”, “min_limit”: “”, “max_limit”: “”, “payment_method”: , “status”: }’

    comerciantes

    -get_merchant
    -set_merchant ‘{“user_id”: “”, “total_orders”: “”, “orders_completed”: “”, “badge”: “”}’
    -put_merchant ‘{“user_id”: “”, “total_orders”: “”, “orders_completed”: “”, “badge”: “”}’
    -delete_merchant ‘{“user_id”: “”}’

    metodos de pago

    -get_payment_method
    -set_payment_method ‘{“payment_method”: “”, “input1”: “”, “input2”: “”, “input3”: “”, “input4”: “”, “input5”: “”}’
    -put_payment_method ‘{“id”: , “payment_method”: “”, “input1”: “”, “input2”: “”, “input3”: “”, “input4”: “”, “input5”: “”}’
    -delete_payment_method ‘{“id”: }’

    It is pending to encrypt the payment method data and to attach the user data such as name, surname, email.

    Chat

    We work on the integration of point-to-point chat sessions and generation of conversations in firebase.

    Points were reviewed such as the creation of a query via console to build the Jason that will be saved in the contract Optimization of the source code for the creation of the warning message in the chat room