Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small fixes #2

Merged
merged 2 commits into from
Dec 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.