Skip to content

Commit

Permalink
Merge pull request #180 from getbraincloud/release/4.13.0
Browse files Browse the repository at this point in the history
Release/4.13.0
  • Loading branch information
francobithead authored Oct 31, 2022
2 parents fea90fe + 313e871 commit 9d12658
Show file tree
Hide file tree
Showing 7 changed files with 694 additions and 520 deletions.
2 changes: 1 addition & 1 deletion deploy/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "braincloud",
"version": "4.12.1",
"version": "4.13.0",
"description": " brainCloud client for NodeJS",
"main": "index.js",
"react-native": "react-native.js",
Expand Down
45 changes: 45 additions & 0 deletions src/brainCloudClient-blockchain.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@

function BCBlockchain(){
var bc = this;

bc.blockchain = {};

bc.SERVICE_BLOCKCHAIN = "blockchain";

bc.blockchain.OPERATION_GET_BLOCKCHAIN_ITEMS = "GET_BLOCKCHAIN_ITEMS";
bc.blockchain.OPERATION_GET_UNIQS = "GET_UNIQS";

/**
* Retrieves the blockchain items owned by the caller.
*/
bc.blockchain.getBlockchainItems = function(integrationId, contextJson, callback) {
var message = {
integrationId : integrationId,
contextJson : contextJson
};

bc.brainCloudManager.sendRequest({
service : bc.SERVICE_BLOCKCHAIN,
operation : bc.blockchain.OPERATION_GET_BLOCKCHAIN_ITEMS,
data : message,
callback : callback
});
};

/**
* Retrieves the uniqs owned by the caller.
*/
bc.blockchain.getUniqs = function(integrationId, contextJson, callback){
var message = {
integrationId : integrationId,
contextJson : contextJson
};

bc.brainCloudManager.sendRequest({
service : bc.SERVICE_BLOCKCHAIN,
operation : bc.blockchain.OPERATION_GET_UNIQS,
data : message,
callback : callback
});
};
}
Loading

0 comments on commit 9d12658

Please sign in to comment.