Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@magic-ext/algorand

Package Overview
Dependencies
Maintainers
8
Versions
709
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@magic-ext/algorand - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0-beta

1

dist/cjs/index.d.ts

@@ -12,2 +12,3 @@ import { Extension } from 'magic-sdk';

signGroupTransaction(txns: any[]): Promise<any>;
signGroupTransactionV2(txns: any): Promise<any>;
}

@@ -96,2 +96,9 @@ "use strict";

};
AlgorandExtension.prototype.signGroupTransactionV2 = function (txns) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
return [2 /*return*/, this.request(this.utils.createJsonRpcRequestPayload(types_1.AlgorandPayloadMethod.AlgorandSignGroupTransactionV2, txns))];
});
});
};
return AlgorandExtension;

@@ -98,0 +105,0 @@ }(magic_sdk_1.Extension.Internal));

3

dist/cjs/types.d.ts

@@ -12,3 +12,4 @@ export interface AlgorandConfig {

AlgorandGetWallet = "algod_getWallet",
AlgorandSignGroupTransaction = "algod_signGroupTransaction"
AlgorandSignGroupTransaction = "algod_signGroupTransaction",
AlgorandSignGroupTransactionV2 = "algod_signGroupTransactionV2"
}

@@ -10,3 +10,4 @@ "use strict";

AlgorandPayloadMethod["AlgorandSignGroupTransaction"] = "algod_signGroupTransaction";
AlgorandPayloadMethod["AlgorandSignGroupTransactionV2"] = "algod_signGroupTransactionV2";
})(AlgorandPayloadMethod = exports.AlgorandPayloadMethod || (exports.AlgorandPayloadMethod = {}));
//# sourceMappingURL=types.js.map

@@ -12,2 +12,3 @@ import { Extension } from 'magic-sdk';

signGroupTransaction(txns: any[]): Promise<any>;
signGroupTransactionV2(txns: any): Promise<any>;
}

@@ -93,2 +93,9 @@ var __extends = (this && this.__extends) || (function () {

};
AlgorandExtension.prototype.signGroupTransactionV2 = function (txns) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
return [2 /*return*/, this.request(this.utils.createJsonRpcRequestPayload(AlgorandPayloadMethod.AlgorandSignGroupTransactionV2, txns))];
});
});
};
return AlgorandExtension;

@@ -95,0 +102,0 @@ }(Extension.Internal));

@@ -12,3 +12,4 @@ export interface AlgorandConfig {

AlgorandGetWallet = "algod_getWallet",
AlgorandSignGroupTransaction = "algod_signGroupTransaction"
AlgorandSignGroupTransaction = "algod_signGroupTransaction",
AlgorandSignGroupTransactionV2 = "algod_signGroupTransactionV2"
}

@@ -7,3 +7,4 @@ export var AlgorandPayloadMethod;

AlgorandPayloadMethod["AlgorandSignGroupTransaction"] = "algod_signGroupTransaction";
AlgorandPayloadMethod["AlgorandSignGroupTransactionV2"] = "algod_signGroupTransactionV2";
})(AlgorandPayloadMethod || (AlgorandPayloadMethod = {}));
//# sourceMappingURL=types.js.map

@@ -1,1 +0,1 @@

var MagicAlgorandExtension=function(r){var t;return function(r){r.AlgorandSignTransaction="algod_signTransaction",r.AlgorandSignBid="algod_signBid",r.AlgorandGetWallet="algod_getWallet",r.AlgorandSignGroupTransaction="algod_signGroupTransaction"}(t||(t={})),function(r){var n,e;function o(t){var n;return(n=r.call(this)||this).algorandConfig=t,n.name="algod",n.config={},n.config={rpcUrl:t.rpcUrl,chainType:"ALOGD"},n}e=r,(n=o).prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e;var a=o.prototype;return a.signTransaction=function(r){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(t.AlgorandSignTransaction,r)))}catch(r){return Promise.reject(r)}},a.signBid=function(r){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(t.AlgorandSignBid,r)))}catch(r){return Promise.reject(r)}},a.getWallet=function(){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(t.AlgorandGetWallet,[])))}catch(r){return Promise.reject(r)}},a.signGroupTransaction=function(r){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(t.AlgorandSignGroupTransaction,r)))}catch(r){return Promise.reject(r)}},o}(r.Extension.Internal)}(Magic);
var MagicAlgorandExtension=function(r){var t;return function(r){r.AlgorandSignTransaction="algod_signTransaction",r.AlgorandSignBid="algod_signBid",r.AlgorandGetWallet="algod_getWallet",r.AlgorandSignGroupTransaction="algod_signGroupTransaction",r.AlgorandSignGroupTransactionV2="algod_signGroupTransactionV2"}(t||(t={})),function(r){var n,e;function o(t){var n;return(n=r.call(this)||this).algorandConfig=t,n.name="algod",n.config={},n.config={rpcUrl:t.rpcUrl,chainType:"ALOGD"},n}e=r,(n=o).prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e;var a=o.prototype;return a.signTransaction=function(r){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(t.AlgorandSignTransaction,r)))}catch(r){return Promise.reject(r)}},a.signBid=function(r){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(t.AlgorandSignBid,r)))}catch(r){return Promise.reject(r)}},a.getWallet=function(){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(t.AlgorandGetWallet,[])))}catch(r){return Promise.reject(r)}},a.signGroupTransaction=function(r){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(t.AlgorandSignGroupTransaction,r)))}catch(r){return Promise.reject(r)}},a.signGroupTransactionV2=function(r){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(t.AlgorandSignGroupTransactionV2,r)))}catch(r){return Promise.reject(r)}},o}(r.Extension.Internal)}(Magic);
{
"name": "@magic-ext/algorand",
"version": "0.2.0",
"version": "0.3.0-beta",
"description": "magic algorand extension",

@@ -19,2 +19,3 @@ "author": "Magic <hello@magic.link> (https://magic.link/)",

"umd:main": "dist/extension.js",
"jsdelivr": "dist/extension.js",
"module": "dist/es/index.js",

@@ -21,0 +22,0 @@ "types": "dist/cjs/index.d.ts",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc