@magic-ext/algorand
Advanced tools
Comparing version 0.1.0 to 0.1.1
import { Extension } from 'magic-sdk'; | ||
import { AlgorandConfig } from './types'; | ||
export declare class AlgorandExtension extends Extension.Internal<'algorand', any> { | ||
export declare class AlgorandExtension extends Extension.Internal<'algod', any> { | ||
algorandConfig: AlgorandConfig; | ||
name: "algorand"; | ||
name: "algod"; | ||
config: any; | ||
@@ -7,0 +7,0 @@ constructor(algorandConfig: AlgorandConfig); |
@@ -60,3 +60,3 @@ "use strict"; | ||
_this.algorandConfig = algorandConfig; | ||
_this.name = 'algorand'; | ||
_this.name = 'algod'; | ||
_this.config = {}; | ||
@@ -63,0 +63,0 @@ _this.config = { |
@@ -1,1 +0,1 @@ | ||
var MagicAlgorandExtension=function(t){var r;return function(t){t.AlgorandSignTransaction="algod_signTransaction",t.AlgorandSignBid="algod_signBid",t.AlgorandGetWallet="algod_getWallet"}(r||(r={})),function(t){var e,n;function o(r){var e;return(e=t.call(this)||this).algorandConfig=r,e.name="algorand",e.config={},e.config={rpcUrl:r.rpcUrl,chainType:"ALOGD"},e}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=o.prototype;return a.signTransaction=function(t){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(r.AlgorandSignTransaction,t)))}catch(t){return Promise.reject(t)}},a.signBid=function(t){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(r.AlgorandSignBid,t)))}catch(t){return Promise.reject(t)}},a.getWallet=function(){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(r.AlgorandGetWallet,[])))}catch(t){return Promise.reject(t)}},o}(t.Extension.Internal)}(Magic); | ||
var MagicAlgorandExtension=function(t){var r;return function(t){t.AlgorandSignTransaction="algod_signTransaction",t.AlgorandSignBid="algod_signBid",t.AlgorandGetWallet="algod_getWallet"}(r||(r={})),function(t){var e,n;function o(r){var e;return(e=t.call(this)||this).algorandConfig=r,e.name="algod",e.config={},e.config={rpcUrl:r.rpcUrl,chainType:"ALOGD"},e}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=o.prototype;return a.signTransaction=function(t){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(r.AlgorandSignTransaction,t)))}catch(t){return Promise.reject(t)}},a.signBid=function(t){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(r.AlgorandSignBid,t)))}catch(t){return Promise.reject(t)}},a.getWallet=function(){try{return Promise.resolve(this.request(this.utils.createJsonRpcRequestPayload(r.AlgorandGetWallet,[])))}catch(t){return Promise.reject(t)}},o}(t.Extension.Internal)}(Magic); |
import { Extension } from 'magic-sdk'; | ||
import { AlgorandConfig } from './types'; | ||
export declare class AlgorandExtension extends Extension.Internal<'algorand', any> { | ||
export declare class AlgorandExtension extends Extension.Internal<'algod', any> { | ||
algorandConfig: AlgorandConfig; | ||
name: "algorand"; | ||
name: "algod"; | ||
config: any; | ||
@@ -7,0 +7,0 @@ constructor(algorandConfig: AlgorandConfig); |
@@ -57,3 +57,3 @@ var __extends = (this && this.__extends) || (function () { | ||
_this.algorandConfig = algorandConfig; | ||
_this.name = 'algorand'; | ||
_this.name = 'algod'; | ||
_this.config = {}; | ||
@@ -60,0 +60,0 @@ _this.config = { |
{ | ||
"name": "@magic-ext/algorand", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "magic algorand extension", | ||
@@ -5,0 +5,0 @@ "author": "Magic <hello@magic.link> (https://magic.link/)", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19783