Giter Club home page Giter Club logo

auto-transfer's Introduction

near-hello-world-as

هذا المشروع هو مثال بسيط لعقد ذكي smart contract تم تنفيذه على منصة نيــر.NEAR Protocol

يمكنك استخدام هذا المشروع كنقطة بداية لتطبيقات البلوك تشين على شبكة نير.

يحتوي ملف الكود الرئيسي على دالة واحدة فنكشن sayHello و التي تقوم - عند استدعائها - بإرجاع جملة "Hello from the blockchain world!"

يمكنك مشاهدة فيديو عملي للخطوات التالية هنا:

IMAGE ALT TEXT HEREا

طريقة الاستخدام

  1. انسخ هذا المشروع clone على جهازك الشخصي فى أى مكان
  2. فى شاشة الأوامر terminal / command line interface افتح المجلد و قم بكتابة الأمر yarn لتثبيت المكتبات التي يحتاجها المشروع للتشغيل
  3. اكتب الأمر yarn build:release لبناء و استخراج ملف wasm من الكود استعداداً لرفعه. ستجد بعد تنفيذ هذا الأمر ملف helloworld.wasm تم انشاءه فى هذا المسار build\release
  4. قم بكتابة الأمر near dev-deploy .\build\release\helloworld.wasm لرفع الملف السابق على البلوك تشين
  5. من المفروض بعد تنفيذ الأمر السابق أن تجد رسالة تحتوى على الحساب الذي تم انشاؤه و وضع الكود عليه - مثل dev-XXXXXX-XXXXXXX
  6. هذا مثال لناتج تنفيذ الأمر السابق

Transaction Id EtdLuXkhT5eex1ubT1pRKhETZNv8AoAMzadHiJMdGH9z To see the transaction in the transaction explorer, please open this url in your browser https://explorer.testnet.near.org/transactions/EtdLuXkhT5eex1ubT1pRKhETZNv8AoAMzadHiJMdGH9z Done deploying to dev-1643380555927-18139425398700

  1. قم بكتابة هذا الأمر لاستدعاء الدالة near call dev-1643380555927-18139425398700 sayHello '{}' --accountId=EXAMPLE.testnet
  2. يمكنك استخدام هذا الأمر أيضا near view dev-1643380555927-18139425398700 sayHello
  3. ستجد ناتج الرسالة ظهر على شاشة الأوامر بناتج العلية

ملحوطة: يمكنك رفع ملف الwasm على حساب مخصص. تجد الخطوات فى هذا الرابظ : https://www.youtube.com/watch?v=Yuid1QH_NWg&list=PLYH8jWLZAVt62bVY0aEnMquZn-jpTZPhQ&index=11

auto-transfer

auto-transfer's People

Contributors

azmasamy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.