@concordium/common-sdk
Advanced tools
Comparing version
@@ -18,1 +18,6 @@ import { Buffer } from 'buffer/'; | ||
export declare function getUpdateContractParameterSchema(moduleSchema: Buffer, contractName: string, receiveFunctionName: string, schemaVersion?: SchemaVersion): Buffer; | ||
/** | ||
* @param rawSchema the schema for the type | ||
* @returns JSON template of the schema | ||
*/ | ||
export declare function displayTypeSchemaTemplate(rawSchema: Buffer): string; |
@@ -26,3 +26,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getUpdateContractParameterSchema = exports.getInitContractParameterSchema = void 0; | ||
exports.displayTypeSchemaTemplate = exports.getUpdateContractParameterSchema = exports.getInitContractParameterSchema = void 0; | ||
const buffer_1 = require("buffer/"); | ||
@@ -53,1 +53,9 @@ const wasm = __importStar(require("@concordium/rust-bindings")); | ||
exports.getUpdateContractParameterSchema = getUpdateContractParameterSchema; | ||
/** | ||
* @param rawSchema the schema for the type | ||
* @returns JSON template of the schema | ||
*/ | ||
function displayTypeSchemaTemplate(rawSchema) { | ||
return wasm.displayTypeSchemaTemplate(rawSchema.toString('hex')); | ||
} | ||
exports.displayTypeSchemaTemplate = displayTypeSchemaTemplate; |
@@ -1138,3 +1138,3 @@ /** | ||
EncryptedAmountTransferWithMemo = 23, | ||
TransferWithScheduleWithMemo = 24, | ||
TransferWithScheduleAndMemo = 24, | ||
ConfigureBaker = 25, | ||
@@ -1141,0 +1141,0 @@ ConfigureDelegation = 26 |
@@ -200,3 +200,3 @@ "use strict"; | ||
AccountTransactionType[AccountTransactionType["EncryptedAmountTransferWithMemo"] = 23] = "EncryptedAmountTransferWithMemo"; | ||
AccountTransactionType[AccountTransactionType["TransferWithScheduleWithMemo"] = 24] = "TransferWithScheduleWithMemo"; | ||
AccountTransactionType[AccountTransactionType["TransferWithScheduleAndMemo"] = 24] = "TransferWithScheduleAndMemo"; | ||
AccountTransactionType[AccountTransactionType["ConfigureBaker"] = 25] = "ConfigureBaker"; | ||
@@ -203,0 +203,0 @@ AccountTransactionType[AccountTransactionType["ConfigureDelegation"] = 26] = "ConfigureDelegation"; |
import { AccountTransferredEvent, AmountAddedByDecryptionEvent, BakerAddedEvent, BakerEvent, BakerKeysUpdatedEvent, BakerRemovedEvent, BakerSetRestakeEarningsEvent, BakerStakeChangedEvent, ContractInitializedEvent, ContractTraceEvent, CredentialKeysUpdatedEvent, CredentialsUpdatedEvent, DataRegisteredEvent, DelegationEvent, EncryptedAmountsRemovedEvent, EncryptedSelfAmountAddedEvent, MemoEvent, ModuleDeployedEvent, NewEncryptedAmountEvent, TransferredWithScheduleEvent } from './transactionEvent'; | ||
import { UpdateInstructionPayload } from './chainUpdate'; | ||
import { HexString, TransactionSummaryType, TransactionStatusEnum, ContractAddress, Base58String } from '../types'; | ||
import { HexString, TransactionSummaryType, TransactionStatusEnum, ContractAddress, Base58String, AccountTransactionType } from '../types'; | ||
import { RejectReason } from './rejectReason'; | ||
@@ -43,2 +43,6 @@ export interface BaseBlockItemSummary { | ||
} | ||
/** | ||
* Given an AccountTransactionType number value, return the corresponding TransactionKindString value | ||
*/ | ||
export declare function getTransactionKindString(type: AccountTransactionType): TransactionKindString; | ||
export interface TransferSummary { | ||
@@ -45,0 +49,0 @@ transactionType: TransactionKindString.Transfer; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getSummaryContractUpdateLogs = exports.affectedAccounts = exports.affectedContracts = exports.getReceiverAccount = exports.getTransactionRejectReason = exports.isSuccessTransaction = exports.isRejectTransaction = exports.isTransferLikeSummary = exports.isUpdateContractSummary = exports.isInitContractSummary = exports.TransactionKindString = void 0; | ||
exports.getSummaryContractUpdateLogs = exports.affectedAccounts = exports.affectedContracts = exports.getReceiverAccount = exports.getTransactionRejectReason = exports.isSuccessTransaction = exports.isRejectTransaction = exports.isTransferLikeSummary = exports.isUpdateContractSummary = exports.isInitContractSummary = exports.getTransactionKindString = exports.TransactionKindString = void 0; | ||
const transactionEvent_1 = require("./transactionEvent"); | ||
@@ -38,2 +38,9 @@ const types_1 = require("../types"); | ||
/** | ||
* Given an AccountTransactionType number value, return the corresponding TransactionKindString value | ||
*/ | ||
function getTransactionKindString(type) { | ||
return TransactionKindString[types_1.AccountTransactionType[type]]; | ||
} | ||
exports.getTransactionKindString = getTransactionKindString; | ||
/** | ||
* Type predicate for {@link InitContractSummary}. | ||
@@ -40,0 +47,0 @@ * |
{ | ||
"name": "@concordium/common-sdk", | ||
"version": "8.0.0", | ||
"version": "9.0.0", | ||
"license": "Apache-2.0", | ||
@@ -54,3 +54,3 @@ "engines": { | ||
"dependencies": { | ||
"@concordium/rust-bindings": "1.0.0", | ||
"@concordium/rust-bindings": "1.1.0", | ||
"@grpc/grpc-js": "^1.3.4", | ||
@@ -57,0 +57,0 @@ "@noble/ed25519": "^1.7.1", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1272344
0.08%29477
0.08%0
-100%+ Added
- Removed