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

Fix hydra indexer #536

Merged
merged 2 commits into from
Apr 26, 2024
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
77 changes: 77 additions & 0 deletions squid/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions squid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"@typescript-eslint/parser": "^7.4.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"prettier": "3.2.5"
}
}
5 changes: 3 additions & 2 deletions squid/squid-manifests/large-squid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ deploy:
# cmd: ['sqd', 'start-pendulum']
# - name: amplitude-processor
# cmd: ['sqd', 'start-amplitude']
# api:
# env:
# SQD_DEBUG: sqd:graphql-server
api:
env:
# SQD_DEBUG: sqd:graphql-server
cmd:
[
'npx',
Expand Down
1 change: 1 addition & 0 deletions squid/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ export * as v9381 from './v9381'
export * as v9430 from './v9430'
export * as v1000000 from './v1000000'
export * as v1001000 from './v1001000'
export * as v1002000 from './v1002000'
export * as events from './events'
export * as calls from './calls'
24 changes: 24 additions & 0 deletions squid/src/types/multisig/calls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import * as v9420 from '../v9420'
import * as v9430 from '../v9430'
import * as v1000000 from '../v1000000'
import * as v1001000 from '../v1001000'
import * as v1002000 from '../v1002000'

export const asMulti = {
name: 'Multisig.as_multi',
Expand Down Expand Up @@ -703,6 +704,19 @@ export const asMulti = {
maxWeight: v1001000.Weight,
})
),
/**
* See [`Pallet::as_multi`].
*/
v1002000: new CallType(
'Multisig.as_multi',
sts.struct({
threshold: sts.number(),
otherSignatories: sts.array(() => v1002000.AccountId32),
maybeTimepoint: sts.option(() => v1002000.Timepoint),
call: v1002000.Call,
maxWeight: v1002000.Weight,
})
),
}

export const approveAsMulti = {
Expand Down Expand Up @@ -1916,4 +1930,14 @@ export const asMultiThreshold1 = {
call: v1001000.Call,
})
),
/**
* See [`Pallet::as_multi_threshold_1`].
*/
v1002000: new CallType(
'Multisig.as_multi_threshold_1',
sts.struct({
otherSignatories: sts.array(() => v1002000.AccountId32),
call: v1002000.Call,
})
),
}
12 changes: 12 additions & 0 deletions squid/src/types/proxy/calls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import * as v9420 from '../v9420'
import * as v9430 from '../v9430'
import * as v1000000 from '../v1000000'
import * as v1001000 from '../v1001000'
import * as v1002000 from '../v1002000'

export const proxy = {
name: 'Proxy.proxy',
Expand Down Expand Up @@ -1034,6 +1035,17 @@ export const proxy = {
call: v1001000.Call,
})
),
/**
* See [`Pallet::proxy`].
*/
v1002000: new CallType(
'Proxy.proxy',
sts.struct({
real: v1002000.MultiAddress,
forceProxyType: sts.option(() => v1002000.ProxyType),
call: v1002000.Call,
})
),
}

export const removeProxies = {
Expand Down
Loading
Loading