@dialectlabs/blockchain-sdk-aptos
Advanced tools
Comparing version 1.0.0-beta.2 to 1.0.0-beta.3
@@ -7,3 +7,4 @@ "use strict"; | ||
const aptos_public_key_1 = require("../aptos-public-key"); | ||
exports.APTOS_ED25519_PAYLOAD_TOKEN_SIGNER_ALG = 'aptos-ed25519-payload'; | ||
const sdk_1 = require("../../sdk/sdk"); | ||
exports.APTOS_ED25519_PAYLOAD_TOKEN_SIGNER_ALG = `${sdk_1.BLOCKCHAIN_SDK_TYPE_APTOS}-ed25519-payload`; | ||
class AptosEd25519PayloadTokenSigner { | ||
@@ -10,0 +11,0 @@ constructor() { |
@@ -7,3 +7,4 @@ "use strict"; | ||
const aptos_public_key_1 = require("../aptos-public-key"); | ||
exports.APTOS_ED25519_TOKEN_SIGNER_ALG = 'aptos-ed25519'; | ||
const sdk_1 = require("../../sdk/sdk"); | ||
exports.APTOS_ED25519_TOKEN_SIGNER_ALG = `${sdk_1.BLOCKCHAIN_SDK_TYPE_APTOS}-ed25519`; | ||
class AptosEd25519TokenSigner { | ||
@@ -10,0 +11,0 @@ constructor() { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AptosSdkFactory = void 0; | ||
exports.AptosSdkFactory = exports.BLOCKCHAIN_SDK_TYPE_APTOS = void 0; | ||
const sdk_1 = require("@dialectlabs/sdk"); | ||
@@ -11,2 +11,3 @@ const dialect_aptos_wallet_adapter_wrapper_1 = require("../wallet-adapter/dialect-aptos-wallet-adapter-wrapper"); | ||
const aptos_ed25519_payload_token_signer_1 = require("../auth/ed25519-payload/aptos-ed25519-payload-token-signer"); | ||
exports.BLOCKCHAIN_SDK_TYPE_APTOS = 'aptos'; | ||
class AptosSdkFactory { | ||
@@ -36,3 +37,3 @@ constructor(aptosConfigProps) { | ||
return { | ||
type: 'aptos', | ||
type: exports.BLOCKCHAIN_SDK_TYPE_APTOS, | ||
encryptionKeysProvider, | ||
@@ -39,0 +40,0 @@ authenticationFacade, |
import { HexString } from 'aptos'; | ||
import { AptosPubKey } from '../aptos-public-key'; | ||
export const APTOS_ED25519_PAYLOAD_TOKEN_SIGNER_ALG = 'aptos-ed25519-payload'; | ||
import { BLOCKCHAIN_SDK_TYPE_APTOS } from '../../sdk/sdk'; | ||
export const APTOS_ED25519_PAYLOAD_TOKEN_SIGNER_ALG = `${BLOCKCHAIN_SDK_TYPE_APTOS}-ed25519-payload`; | ||
export class AptosEd25519PayloadTokenSigner { | ||
@@ -5,0 +6,0 @@ constructor() { |
import { HexString } from 'aptos'; | ||
import { AptosPubKey } from '../aptos-public-key'; | ||
export const APTOS_ED25519_TOKEN_SIGNER_ALG = 'aptos-ed25519'; | ||
import { BLOCKCHAIN_SDK_TYPE_APTOS } from '../../sdk/sdk'; | ||
export const APTOS_ED25519_TOKEN_SIGNER_ALG = `${BLOCKCHAIN_SDK_TYPE_APTOS}-ed25519`; | ||
export class AptosEd25519TokenSigner { | ||
@@ -5,0 +6,0 @@ constructor() { |
@@ -8,2 +8,3 @@ import { EncryptionKeysProvider, IllegalArgumentError } from '@dialectlabs/sdk'; | ||
import { DialectWalletAdapterAptosEd25519PayloadTokenSigner } from '../auth/ed25519-payload/aptos-ed25519-payload-token-signer'; | ||
export const BLOCKCHAIN_SDK_TYPE_APTOS = 'aptos'; | ||
export class AptosSdkFactory { | ||
@@ -33,3 +34,3 @@ constructor(aptosConfigProps) { | ||
return { | ||
type: 'aptos', | ||
type: BLOCKCHAIN_SDK_TYPE_APTOS, | ||
encryptionKeysProvider, | ||
@@ -36,0 +37,0 @@ authenticationFacade, |
@@ -1,7 +0,6 @@ | ||
import type { AccountAddress } from '@dialectlabs/sdk'; | ||
import type { PublicKey, TokenSigner, TokenSignerResult } from '@dialectlabs/sdk'; | ||
import type { AccountAddress, PublicKey, TokenSigner, TokenSignerResult } from '@dialectlabs/sdk'; | ||
import type { DialectAptosWalletAdapterWrapper } from '../../wallet-adapter/dialect-aptos-wallet-adapter-wrapper'; | ||
export declare const APTOS_ED25519_PAYLOAD_TOKEN_SIGNER_ALG = "aptos-ed25519-payload"; | ||
export declare const APTOS_ED25519_PAYLOAD_TOKEN_SIGNER_ALG: string; | ||
export declare abstract class AptosEd25519PayloadTokenSigner implements TokenSigner { | ||
readonly alg = "aptos-ed25519-payload"; | ||
readonly alg: string; | ||
abstract subject: AccountAddress; | ||
@@ -8,0 +7,0 @@ abstract subjectPublicKey: PublicKey; |
@@ -1,7 +0,6 @@ | ||
import type { AccountAddress } from '@dialectlabs/sdk'; | ||
import type { PublicKey, TokenSigner, TokenSignerResult } from '@dialectlabs/sdk'; | ||
import type { AccountAddress, PublicKey, TokenSigner, TokenSignerResult } from '@dialectlabs/sdk'; | ||
import type { DialectAptosWalletAdapterWrapper } from '../../wallet-adapter/dialect-aptos-wallet-adapter-wrapper'; | ||
export declare const APTOS_ED25519_TOKEN_SIGNER_ALG = "aptos-ed25519"; | ||
export declare const APTOS_ED25519_TOKEN_SIGNER_ALG: string; | ||
export declare abstract class AptosEd25519TokenSigner implements TokenSigner { | ||
readonly alg = "aptos-ed25519"; | ||
readonly alg: string; | ||
abstract subject: AccountAddress; | ||
@@ -8,0 +7,0 @@ abstract subjectPublicKey: PublicKey; |
import type { BlockchainSdk, BlockchainSdkFactory, Config } from '@dialectlabs/sdk'; | ||
import type { DialectAptosWalletAdapter } from '../wallet-adapter/dialect-aptos-wallet-adapter.interface'; | ||
import { DialectAptosWalletAdapterWrapper } from '../wallet-adapter/dialect-aptos-wallet-adapter-wrapper'; | ||
export declare const BLOCKCHAIN_SDK_TYPE_APTOS = "aptos"; | ||
export interface AptosConfigProps { | ||
@@ -5,0 +6,0 @@ wallet: DialectAptosWalletAdapter; |
{ | ||
"name": "@dialectlabs/blockchain-sdk-aptos", | ||
"version": "1.0.0-beta.2", | ||
"version": "1.0.0-beta.3", | ||
"repository": "git@github.com:dialectlabs/sdk.git", | ||
@@ -32,4 +32,5 @@ "author": "dialectlabs", | ||
"devDependencies": { | ||
"aptos": "1.3.12" | ||
"aptos": "1.3.12", | ||
"@dialectlabs/sdk": "^1.0.0-beta.2" | ||
} | ||
} |
@@ -1,3 +0,3 @@ | ||
import type { AccountAddress } from '@dialectlabs/sdk'; | ||
import type { | ||
AccountAddress, | ||
PublicKey, | ||
@@ -11,4 +11,5 @@ TokenSigner, | ||
import { AptosPubKey } from '../aptos-public-key'; | ||
import { BLOCKCHAIN_SDK_TYPE_APTOS } from '../../sdk/sdk'; | ||
export const APTOS_ED25519_PAYLOAD_TOKEN_SIGNER_ALG = 'aptos-ed25519-payload'; | ||
export const APTOS_ED25519_PAYLOAD_TOKEN_SIGNER_ALG = `${BLOCKCHAIN_SDK_TYPE_APTOS}-ed25519-payload`; | ||
@@ -15,0 +16,0 @@ export abstract class AptosEd25519PayloadTokenSigner implements TokenSigner { |
@@ -1,3 +0,3 @@ | ||
import type { AccountAddress } from '@dialectlabs/sdk'; | ||
import type { | ||
AccountAddress, | ||
PublicKey, | ||
@@ -11,4 +11,5 @@ TokenSigner, | ||
import { AptosPubKey } from '../aptos-public-key'; | ||
import { BLOCKCHAIN_SDK_TYPE_APTOS } from '../../sdk/sdk'; | ||
export const APTOS_ED25519_TOKEN_SIGNER_ALG = 'aptos-ed25519'; | ||
export const APTOS_ED25519_TOKEN_SIGNER_ALG = `${BLOCKCHAIN_SDK_TYPE_APTOS}-ed25519`; | ||
@@ -15,0 +16,0 @@ export abstract class AptosEd25519TokenSigner implements TokenSigner { |
@@ -16,2 +16,4 @@ import type { | ||
export const BLOCKCHAIN_SDK_TYPE_APTOS = 'aptos'; | ||
export interface AptosConfigProps { | ||
@@ -63,3 +65,3 @@ wallet: DialectAptosWalletAdapter; | ||
return { | ||
type: 'aptos', | ||
type: BLOCKCHAIN_SDK_TYPE_APTOS, | ||
encryptionKeysProvider, | ||
@@ -66,0 +68,0 @@ authenticationFacade, |
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
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
Sorry, the diff of this file is not supported yet
172292
126
2164
2