1.1.32 • Published 6 months ago

godprotocol v1.1.32

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

God Protocol

A data mediator

Installation

npm install godprotocol --save

Brief Description

This package is developing a framework for the Web 4.0 It is to help provide multiple compute instances for servers and also data flexibility and transactions.

You can get overall comprehension in just 4 method calls.

Create an Account

Accounts comes with their own VM, thereby providing concurrency on processes being executed.

import start from "godprotocol";

// Create an initial account
let initiator = start(`name`, { private: true || false });
// if private is set to `true`, communication to the account instance must be validated by sigining with the private key.
// N.B your keypairs are generated offline.
ParametersTypeDescription
namestringAccount names can be any valid variable string. Such as a Public Key
privateobject:booleandefault false, if set to true, then any payloads sent to the account must be signed using the private key belonging to the account name

Load Instructions

The load method is the second in the pipeline, It is used to set your programs into the network web, where its data can continue to be accessed, and subsequent calls can be made on the loaded program.

Usage

initiator.load(
  {
    instructions: ["link Account/initiator/Datatypes/Number", "write 7", "pop"],
    account: `public_key`,
  },
  cb
);

Type method

ParametersTypeDestructureDescription
programobjectinstructionsAn array of opcode-operands generated by the Loader Sequence
accountAccount instance to load and execute the program in.
cbfunctionA function that is called with the blocks mined during the execution.

Run Program

The run is technically the second in the pipeline.

Usage

initiator.run(
  {
    physical_address: "Account/initiator/Datatypes/Number", // This points to a chain
    query: { blocks: 0 }, // Basically saying, index 0 block in physical_address chain, run again its instructions.
    account: `public_key`,
  },
  cb
);
// N.B If query is missing, then VM starts execution from the block-index-0

Type method

ParametersTypeDestructureDescription
payloadobjectphysical_addressPhysical Addresses are logical namespace locations of tokens. They are derived from the high-level representation of the program's instructions.
objectqueryA valid blockweb explorer query, you can read the explorer documentation here
stringaccountAccount instance to execute the instructions in.
cbfunctionA function that is called with the blocks mined during the execution.

Parse Result

The parse is technically the third of the pipeline. It takes like parameters as the run method.

Usage

It is used to retrieve blocks and chains, and also extract their properties.

initiator.parse(
  {
    physical_address: "Account/initiator/Datatypes/Number", // This points to a chain
    query: { blocks: 0 }, // Basically saying, index 0 block in physical_address chain, retrieve it.
    account: `public_key`,
  },
  cb
);
// N.B If query isn't provided, then you parse the chain.

Type method

ParametersTypeDestructureDescription
payloadobjectphysical_addressPhysical Addresses are logical namespace locations of tokens. They are derived from the high-level representation of the program's instructions.
objectqueryA valid blockweb explorer query, you can read the explorer documentation here
stringaccountAccount instance to execute the instructions in.
cbfunctionA function that is called with the blocks mined during the execution.

See the package source for more details.

References

The main website for communicating updates and tutorials about the platform. https://godprotocol-web.vercel.app Physical Address - Token logical address from an High-level construct. Find everything else to know about it in the links below. https://godprotocol-web.vercel.app/physical_address Explorer - Every blockchain technology has an explorer, learn more about ours. https://godprotocol-web.vercel.app/explorer Loader Sequence - Instruction bits, the lowest granular layer where a user can outline the execution flow. https://godprotocol-web.vercel.app/loader_sequence

1.1.32

6 months ago

1.1.31

6 months ago

1.1.1

8 months ago

1.1.3

6 months ago

1.1.2

8 months ago

1.1.0

9 months ago

1.0.842

11 months ago

1.0.841

11 months ago

1.0.840

11 months ago

1.0.839

11 months ago

1.0.838

11 months ago

1.0.837

11 months ago

1.0.836

12 months ago

1.0.835

12 months ago

1.0.834

12 months ago

1.0.833

12 months ago

1.0.831

12 months ago

1.0.83

12 months ago

1.0.82

12 months ago

1.0.81

12 months ago

1.0.7991

12 months ago

1.0.799

12 months ago

1.0.798

12 months ago

1.0.797

12 months ago

1.0.796

12 months ago

1.0.795

12 months ago

1.0.794

12 months ago

1.0.793

12 months ago

1.0.792

12 months ago

1.0.791

12 months ago

1.0.79

12 months ago

1.0.789

12 months ago

1.0.788

12 months ago

1.0.785

12 months ago

1.0.783

12 months ago

1.0.781

12 months ago

1.0.78

12 months ago

1.0.771

1 year ago

1.0.77

1 year ago

1.0.762

1 year ago

1.0.761

1 year ago

1.0.76

1 year ago

1.0.754

1 year ago

1.0.753

1 year ago

1.0.752

1 year ago

1.0.751

1 year ago

1.0.75

1 year ago

1.0.74

1 year ago

1.0.73

1 year ago

1.0.72

1 year ago

1.0.71

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago