@subql/common-algorand
Advanced tools
Comparing version 3.5.1-0 to 3.5.1-1
@@ -35,3 +35,5 @@ "use strict"; | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
const _ = Object.assign({}, p); | ||
const _ = { | ||
...p, | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -21,2 +21,4 @@ "use strict"; | ||
class BlockFilter { | ||
modulo; | ||
timestamp; | ||
} | ||
@@ -35,2 +37,11 @@ __decorate([ | ||
class TransactionFilter { | ||
txType; | ||
sender; | ||
receiver; | ||
nonParticipant; | ||
assetId; | ||
newFreezeStatus; | ||
address; | ||
applicationId; | ||
applicationArgs; | ||
} | ||
@@ -98,2 +109,5 @@ __decorate([ | ||
class BlockHandler { | ||
kind; | ||
handler; | ||
filter; | ||
} | ||
@@ -116,2 +130,5 @@ __decorate([ | ||
class TransactionHandler { | ||
filter; | ||
kind; | ||
handler; | ||
} | ||
@@ -134,2 +151,5 @@ __decorate([ | ||
class CustomHandler { | ||
kind; | ||
handler; | ||
filter; | ||
} | ||
@@ -151,2 +171,4 @@ __decorate([ | ||
class RuntimeMapping { | ||
handlers; | ||
file; | ||
} | ||
@@ -177,2 +199,4 @@ __decorate([ | ||
class CustomMapping { | ||
handlers; | ||
file; | ||
} | ||
@@ -191,2 +215,4 @@ __decorate([ | ||
class RuntimeDataSourceBase extends common_1.BaseDataSource { | ||
kind; | ||
mapping; | ||
} | ||
@@ -204,2 +230,3 @@ __decorate([ | ||
class FileReferenceImpl { | ||
file; | ||
} | ||
@@ -212,2 +239,6 @@ __decorate([ | ||
class CustomDataSourceBase extends common_1.BaseDataSource { | ||
kind; | ||
mapping; | ||
assets; | ||
processor; | ||
} | ||
@@ -214,0 +245,0 @@ __decorate([ |
@@ -16,2 +16,3 @@ "use strict"; | ||
class AlgorandProjectManifestVersioned { | ||
_impl; | ||
constructor(projectManifest) { | ||
@@ -18,0 +19,0 @@ const klass = ALGORAND_SUPPORTED_VERSIONS[projectManifest.specVersion]; |
@@ -26,2 +26,4 @@ "use strict"; | ||
class AlgorandRunnerNodeImpl { | ||
name; | ||
version = ALGORAND_NODE_NAME; | ||
} | ||
@@ -39,2 +41,4 @@ __decorate([ | ||
class AlgorandRunnerSpecsImpl { | ||
node; | ||
query; | ||
} | ||
@@ -55,2 +59,4 @@ __decorate([ | ||
class ProjectNetworkDeploymentV1_0_0 { | ||
chainId; | ||
bypassBlocks; | ||
} | ||
@@ -68,2 +74,3 @@ __decorate([ | ||
class ProjectNetworkV1_0_0 extends common_1.CommonProjectNetworkV1_0_0 { | ||
apiKey; | ||
} | ||
@@ -89,2 +96,3 @@ __decorate([ | ||
class RuntimeDataSourceTemplateImpl extends AlgorandRuntimeDataSourceV1_0_0Impl { | ||
name; | ||
} | ||
@@ -97,2 +105,3 @@ __decorate([ | ||
class CustomDataSourceTemplateImpl extends AlgorandCustomDataSourceV1_0_0Impl { | ||
name; | ||
} | ||
@@ -105,2 +114,6 @@ __decorate([ | ||
class DeploymentV1_0_0 extends common_1.BaseDeploymentV1_0_0 { | ||
network; | ||
runner; | ||
dataSources; | ||
templates; | ||
} | ||
@@ -154,2 +167,11 @@ __decorate([ | ||
} | ||
specVersion = '1.0.0'; | ||
name; | ||
version; | ||
network; | ||
schema; | ||
dataSources; | ||
templates; | ||
runner; | ||
parent; | ||
toDeployment() { | ||
@@ -163,3 +185,3 @@ return js_yaml_1.default.dump(this._deployment, { | ||
const errors = (0, class_validator_1.validateSync)(this.deployment, { whitelist: true, forbidNonWhitelisted: true }); | ||
if (errors === null || errors === void 0 ? void 0 : errors.length) { | ||
if (errors?.length) { | ||
// TODO: print error details | ||
@@ -173,3 +195,3 @@ const errorMsgs = errors.map((e) => e.toString()).join('\n'); | ||
(0, class_validator_1.Equals)('1.0.0'), | ||
__metadata("design:type", String) | ||
__metadata("design:type", Object) | ||
], ProjectManifestV1_0_0Impl.prototype, "specVersion", void 0); | ||
@@ -176,0 +198,0 @@ __decorate([ |
{ | ||
"name": "@subql/common-algorand", | ||
"version": "3.5.1-0", | ||
"version": "3.5.1-1", | ||
"description": "", | ||
@@ -32,3 +32,3 @@ "scripts": { | ||
}, | ||
"stableVersion": "3.5.0" | ||
"stableVersion": "3.5.1-0" | ||
} |
@@ -23,13 +23,3 @@ // Copyright 2020-2024 SubQuery Pte Ltd authors & contributors | ||
import {plainToInstance, Transform, Type} from 'class-transformer'; | ||
import { | ||
Equals, | ||
IsArray, | ||
IsNotEmpty, | ||
IsObject, | ||
IsOptional, | ||
IsString, | ||
Validate, | ||
ValidateNested, | ||
validateSync, | ||
} from 'class-validator'; | ||
import {Equals, IsArray, IsObject, IsOptional, IsString, Validate, ValidateNested, validateSync} from 'class-validator'; | ||
import yaml from 'js-yaml'; | ||
@@ -47,3 +37,3 @@ import {CustomDataSourceBase, RuntimeDataSourceBase} from '../../models'; | ||
@Validate(SemverVersionValidator) | ||
version: string; | ||
version: string = ALGORAND_NODE_NAME; | ||
} | ||
@@ -158,3 +148,3 @@ | ||
@Equals('1.0.0') | ||
specVersion: string; | ||
specVersion = '1.0.0'; | ||
@@ -161,0 +151,0 @@ @IsString() |
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
238805
1407