Skip to content

Commit

Permalink
Merge pull request #2 from dzhelezov/main
Browse files Browse the repository at this point in the history
  • Loading branch information
vikiival committed Dec 10, 2021
2 parents bc7b595 + 7664d65 commit 13d58a2
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 22 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ RUN npm run build

FROM node:14 AS processor
WORKDIR /hydra-project
COPY --from=builder /hydra-build/package.json .
COPY --from=builder /hydra-build/package-lock.json .
RUN npm ci --production
ADD package.json .
ADD package-lock.json .
RUN npm ci # TODO: --production
COPY --from=builder /hydra-build/lib lib
ADD db db
ADD manifest.yml .
ADD schema.graphql .
ADD .env .
CMD ["npm", "run", "processor:start"]

Expand Down
2 changes: 1 addition & 1 deletion manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ typegen:
source: wss://kusama-rpc.polkadot.io/
outDir: src/types
calls:
- utility.batchAll
- utility.batch_all
- utility.batch
- system.remark

Expand Down
27 changes: 27 additions & 0 deletions src/types/Utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,33 @@ export namespace Utility {
this._extrinsic = extrinsic
}

get calls(): Vec<Call> {
return create('Vec<Call>', this._extrinsic.args[0].value)
}
}
/**
* Send a batch of dispatch calls and atomically execute them.
* The whole transaction will rollback and fail if any of the calls failed.
*
* May be called from any origin.
*
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
* exceed the constant: `batched_calls_limit` (available in constant metadata).
*
* If origin is root then call are dispatch without checking origin filter. (This includes
* bypassing `frame_system::Config::BaseCallFilter`).
*
* # <weight>
* - Complexity: O(C) where C is the number of calls to be batched.
* # </weight>
*/
export class Batch_allCall {
private _extrinsic: SubstrateExtrinsic

constructor(extrinsic: SubstrateExtrinsic) {
this._extrinsic = extrinsic
}

get calls(): Vec<Call> {
return create('Vec<Call>', this._extrinsic.args[0].value)
}
Expand Down
18 changes: 0 additions & 18 deletions src/types/balances.ts

This file was deleted.

0 comments on commit 13d58a2

Please sign in to comment.