PHP SDK to interact with the Casper Network nodes via RPC

Overview

casper-php-sdk

PHP SDK to interact with Casper Network nodes via RPC

Install

composer require make-software/casper-php-sdk

Examples

RPC Client:

$nodeUrl = 'http://127.0.0.1:7777';
$client = new \Casper\Rpc\RpcClient($nodeUrl);

$peers = $client->getPeers();
$latestBlock = $client->getLatestBlock();
$auctionState = $client->getAuctionState();
...

Keys:

$key = new \Casper\Util\Crypto\Ed25519Key();
// or
$key = new \Casper\Util\Crypto\Secp256K1Key();
// Export public and private keys into pem string
$publicKey = $key->exportPublicKeyInPem();
$privateKey = $key->exportPrivateKeyInPem();

// Sign the message
$message = 'Hello';
$signature = $key->sign($message);

// Verify signature
$verified = $key->verify($signature, $message);

Roadmap

  • Create an RPC client that returns array responses
  • Implement all GET requests
  • Add Ed25519 key support
  • Add CLType primitives
  • Add domain-specific entities
  • Add deploy creation related services
  • Add Secp256k1 key support
  • Add extensive validations
  • Add automated tests
  • Add documentation
Comments
  • No CI, code analysis or linting action on pull requests

    No CI, code analysis or linting action on pull requests

    What happened? No CI actions on PR

    What did you expect to happen? A minimal CI action on PR

    Are you willing to submit a pull request to fix this bug? ~

    opened by mrkara 2
  • Added ci.yml to github workflows

    Added ci.yml to github workflows

    Signed-off-by: Roman Bylbas [email protected]

    • Resolves: #

    Summary

    TODO

    • [ ] ...

    Checklist

    • [ ] Code is properly formatted
    • [ ] All commits are signed
    • [ ] Tests included/updated or not needed
    • [ ] Documentation (manuals or wiki) has been updated or is not required
    opened by RomanovSci 0
  • Create CODE_OF_CONDUCT.md

    Create CODE_OF_CONDUCT.md

    • Resolves: #

    Summary

    TODO

    Checklist

    • [x] Code is properly formatted
    • [x] All commits are signed
    • [x] Tests included/updated or not needed
    • [x] Documentation (manuals or wiki) has been updated or is not required
    opened by mrkara 0
  • Checksum

    Checksum

    • Resolves: #

    Summary

    Implemented checksum functionality

    TODO

    • [x] Implement CEP57Checksum util which contains encode and decode methods

    Checklist

    • [x] Code is properly formatted
    • [x] All commits are signed
    • [x] Tests included/updated or not needed
    • [x] Documentation (manuals or wiki) has been updated or is not required
    opened by RomanovSci 0
  • Functional tests

    Functional tests

    • Resolves: #

    Summary

    TODO

    • [x] Cover Ed25519Key.php
    • [x] Cover Secp256K1Key.php
    • [x] Cover DeployService.php

    Checklist

    • [x] Code is properly formatted
    • [x] All commits are signed
    • [x] Tests included/updated or not needed
    • [x] Documentation (manuals or wiki) has been updated or is not required
    opened by RomanovSci 0
  • Created DeployService API documentation and added to API section in R…

    Created DeployService API documentation and added to API section in R…

    …EADME.md

    • Resolves: #

    Summary

    Created DeployService API documentation

    TODO

    • [x] Create documentation for DeployService API

    Checklist

    • [x] Code is properly formatted
    • [x] All commits are signed
    • [x] Tests included/updated or not needed
    • [x] Documentation (manuals or wiki) has been updated or is not required
    opened by RomanovSci 0
  • Added tests for Ed25519Key and Secp256K1Key

    Added tests for Ed25519Key and Secp256K1Key

    • Resolves: #

    Summary

    Covered Ed25519Key and Secp256K1Key classes by functional tests

    TODO

    • [x] Cover Ed25519Key.php
    • [x] Cover Secp256K1Key.php

    Checklist

    • [x] Code is properly formatted
    • [x] All commits are signed
    • [x] Tests included/updated or not needed
    • [x] Documentation (manuals or wiki) has been updated or is not required
    opened by RomanovSci 0
  • Add security policy

    Add security policy

    • Resolves: #

    Summary

    Checklist

    • [x] Code is properly formatted
    • [x] All commits are signed
    • [x] Tests included/updated or not needed
    • [x] Documentation (manuals or wiki) has been updated or is not required
    opened by mrkara 0
  • Added query_global_state rpc call

    Added query_global_state rpc call

    Signed-off-by: Roman Bylbas [email protected]

    Checklist

    • [x] Code is properly formatted
    • [x] All commits are signed
    • [x] Tests included/updated or not needed
    • [x] Documentation (manuals or wiki) has been updated or is not required
    opened by RomanovSci 0
  • Update PHP Client SDK Library as per updated Casper SDK Spec

    Update PHP Client SDK Library as per updated Casper SDK Spec

    We have recently updated the Casper SDK Specification. You can find the updated documentation here: https://docs.casperlabs.io/dapp-dev-guide/sdkspec/introduction/.

    Refer to the updated Casper SDK Specification and please make necessary updates/changes to the PHP Client SDK Libraries.

    Should you have any questions or feedback regarding the updated SDK Specification, please do not hesitate to revert on this issue.

    opened by devendran-m 0
  • Implemented event steam

    Implemented event steam

    Signed-off-by: Roman Bylbas [email protected]

    Summary

    Implemented event steam

    Checklist

    • [x] Code is properly formatted
    • [x] All commits are signed
    • [x] Tests included/updated or not needed
    • [x] Documentation (manuals or wiki) has been updated or is not required
    opened by RomanovSci 0
Owner
MAKE Technology LLC
MAKE Technology LLC
Shopware PHP SDK is a simple SDK implementation of Shopware 6 APIs

Shopware PHP SDK is a simple SDK implementation of Shopware 6 APIs. It helps to access the API in an object-oriented way.

Thuong Le 77 Dec 19, 2022
Zoho CRM API SDK is a wrapper to Zoho CRM APIs. By using this sdk, user can build the application with ease

Archival Notice: This SDK is archived. You can continue to use it, but no new features or support requests will be accepted. For the new version, refe

null 81 Nov 4, 2022
The 1Password Connect PHP SDK provides your PHP applications access to the 1Password Connect API hosted on your infrastructure and leverage the power of 1Password Secrets Automation

1Password Connect PHP SDK The 1Password Connect PHP SDK provides your PHP applications access to the 1Password Connect API hosted on your infrastructu

Michelangelo van Dam 12 Dec 26, 2022
Facebook SDK for PHP (v6) - allows you to access the Facebook Platform from your PHP app

Facebook SDK for PHP (v6) This repository contains the open source PHP SDK that allows you to access the Facebook Platform from your PHP app. Installa

null 0 Aug 10, 2022
Unofficial Firebase Admin SDK for PHP

Firebase Admin PHP SDK Table of Contents Overview Installation Documentation Support License Overview Firebase provides the tools and infrastructure y

kreait 1.9k Jan 3, 2023
Notion PHP SDK

Notion PHP SDK This is an unofficial PHP SDK for the new public Notion API. It's work in progress as we didn't get the change to be included to the pr

Codecycler 43 Nov 29, 2022
爱发电非官方简易 PHP SDK

afdian-php-sdk 爱发电非官方简易 PHP SDK by Akkariin 这是一个简单的 SDK,可以用于查询爱发电的订单和赞助者信息 Installation 将项目 clone 到本地即可 git clone https://github.com/ZeroDream-CN/afdi

ZeroDream-CN 17 Nov 7, 2022
AWS Cognito package using the AWS SDK for PHP/Laravel

Laravel Package to manage Web and API authentication with AWS Cognito AWS Cognito package using the AWS SDK for PHP This package provides a simple way

EllaiSys 74 Nov 15, 2022
A Laravel 5+ (and 4) service provider for the AWS SDK for PHP

AWS Service Provider for Laravel 5/6/7/8 This is a simple Laravel service provider for making it easy to include the official AWS SDK for PHP in your

Amazon Web Services 1.5k Dec 28, 2022
A complete Notion SDK for PHP developers.

notion-sdk-php A complete Notion SDK for PHP developers. Installation composer require mariosimao/notion-php Getting started A Notion token will be n

Mario Simão 77 Nov 29, 2022
SDK of the LINE Login API for PHP

LINE Login for PHP SDK of the LINE Login API for PHP Documentation See the official API documentation for more information. Installation Use the packa

null 4 Sep 15, 2022
PHP SDK - Flexie CRM fiskalizimi solution

PHP SDK - Flexie CRM fiskalizimi solution Fiskalizimi PHP SDK allows you to talk and generate your e-invoices programmatically from your own solution

Flexie CRM 3 Dec 30, 2021
PHP Digital Green Certificate SDK

Digital Green Certificate SDK PHP Indice Contesto Installazione Uso Licenza Dettaglio licenza Contesto Attenzione, questo repository è derivato dalle

null 13 Jun 20, 2022
Esse SDK em PHP foi desenvolvido no intuito de tornar mais prático a integração com nossa API.

Sobre Beedoo SDK Acessar documentação completa da Beedoo API. A API é organizada seguindo a arquitetura REST, boas práticas, convenções e padrões como

Beedoo Edtech 5 Dec 2, 2021
A PHP SDK for accessing the OpenAI GPT-3 API

OpenAI GPT-3 Api Client in PHP Installation You can install the package via composer: composer require orhanerday/open-ai Usage use Orhanerday\OpenAi\

Orhan erday 462 Jan 2, 2023
The Facebook SDK for PHP provides a native interface to the Graph API and Facebook Login

Facebook SDK for PHP (v5) This repository contains the open source PHP SDK that allows you to access the Facebook Platform from your PHP app. Installa

Meta Archive 3.1k Dec 30, 2022
PHP SDK for the Sellix Developers API (developers.sellix.io)

PHP SDK for the Sellix Developers API (developers.sellix.io). Quickly get started and create products, payments and more using PHP.

Sellix 7 Nov 23, 2022
Alibaba Cloud SDK for PHP

English | 简体中文 Alibaba Cloud SDK for PHP Alibaba Cloud SDK for PHP is a development kit that supports quick access to products, dependency on Alibaba

Alibaba Cloud 493 Dec 16, 2022
Aliyun OSS SDK for PHP

Alibaba Cloud OSS SDK for PHP README of Chinese Overview Alibaba Cloud Object Storage Service (OSS) is a cloud storage service provided by Alibaba Clo

Alibaba Cloud 939 Dec 29, 2022