Skip to content

Commit

Permalink
Bump deps (ChainSafe#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaut authored Jul 4, 2023
1 parent f29eacd commit 23bd8f5
Show file tree
Hide file tree
Showing 9 changed files with 10,760 additions and 1,406 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,8 @@
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.8.8"
},
"resolutions": {
"graphql": "^16.0.0"
}
}
26 changes: 13 additions & 13 deletions packages/squid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@
"lint:fix": "eslint 'src/**/*.{js,ts,tsx}' --fix"
},
"dependencies": {
"@polkadot/util-crypto": "^11.1.3",
"@subsquid/archive-registry": "2.1.10",
"@subsquid/graphql-server": "^3.3.2",
"@polkadot/util-crypto": "^12.3.2",
"@subsquid/archive-registry": "3.1.0",
"@subsquid/graphql-server": "^4.2.0",
"@subsquid/ss58": "^0.1.4",
"@subsquid/substrate-processor": "^2.4.1",
"@subsquid/typeorm-migration": "^0.1.6",
"@subsquid/typeorm-migration": "^1.2.0",
"@subsquid/typeorm-store": "^0.2.2",
"dotenv": "^16.0.3",
"pg": "8.10.0",
"typeorm": "0.3.14",
"typescript": "5.0.4"
"dotenv": "^16.3.1",
"pg": "8.11.1",
"typeorm": "0.3.17",
"typescript": "5.1.6"
},
"devDependencies": {
"@subsquid/substrate-metadata-explorer": "1.1.2",
"@subsquid/substrate-typegen": "2.2.1",
"@subsquid/typeorm-codegen": "0.3.3",
"@types/node": "18.15.11",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.59.0",
"eslint": "^8.38.0",
"@subsquid/typeorm-codegen": "1.2.0",
"@types/node": "20.3.3",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0"
}
}
123 changes: 123 additions & 0 deletions packages/squid/src/types/calls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import * as v9321 from './v9321'
import * as v9370 from './v9370'
import * as v9380 from './v9380'
import * as v9390 from './v9390'
import * as v9420 from './v9420'

export class BalancesTransferKeepAliveCall {
private readonly _chain: Chain
Expand Down Expand Up @@ -770,6 +771,97 @@ export class MultisigAsMultiCall {
assert(this.isV9390)
return this._chain.decodeCall(this.call)
}

/**
* Register approval for a dispatch to be made from a deterministic composite account if
* approved by a total of `threshold - 1` of `other_signatories`.
*
* If there are enough, then dispatch the call.
*
* Payment: `DepositBase` will be reserved if this is the first approval, plus
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
* is cancelled.
*
* The dispatch origin for this call must be _Signed_.
*
* - `threshold`: The total number of approvals for this dispatch before it is executed.
* - `other_signatories`: The accounts (other than the sender) who can approve this
* dispatch. May not be empty.
* - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is
* not the first approval, then it must be `Some`, with the timepoint (block number and
* transaction index) of the first approval transaction.
* - `call`: The call to be executed.
*
* NOTE: Unless this is the final approval, you will generally want to use
* `approve_as_multi` instead, since it only requires a hash of the call.
*
* Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
* on success, result is `Ok` and the result from the interior call, if it was executed,
* may be found in the deposited `MultisigExecuted` event.
*
* ## Complexity
* - `O(S + Z + Call)`.
* - Up to one balance-reserve or unreserve operation.
* - One passthrough operation, one insert, both `O(S)` where `S` is the number of
* signatories. `S` is capped by `MaxSignatories`, with weight being proportional.
* - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len.
* - One encode & hash, both of complexity `O(S)`.
* - Up to one binary search and insert (`O(logS + S)`).
* - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove.
* - One event.
* - The weight of the `call`.
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
*/
get isV9420(): boolean {
return this._chain.getCallHash('Multisig.as_multi') === '5acf12806200f8996ded2dcbfab5bc1b34d2d775fc575040888f506e5bb72377'
}

/**
* Register approval for a dispatch to be made from a deterministic composite account if
* approved by a total of `threshold - 1` of `other_signatories`.
*
* If there are enough, then dispatch the call.
*
* Payment: `DepositBase` will be reserved if this is the first approval, plus
* `threshold` times `DepositFactor`. It is returned once this dispatch happens or
* is cancelled.
*
* The dispatch origin for this call must be _Signed_.
*
* - `threshold`: The total number of approvals for this dispatch before it is executed.
* - `other_signatories`: The accounts (other than the sender) who can approve this
* dispatch. May not be empty.
* - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is
* not the first approval, then it must be `Some`, with the timepoint (block number and
* transaction index) of the first approval transaction.
* - `call`: The call to be executed.
*
* NOTE: Unless this is the final approval, you will generally want to use
* `approve_as_multi` instead, since it only requires a hash of the call.
*
* Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
* on success, result is `Ok` and the result from the interior call, if it was executed,
* may be found in the deposited `MultisigExecuted` event.
*
* ## Complexity
* - `O(S + Z + Call)`.
* - Up to one balance-reserve or unreserve operation.
* - One passthrough operation, one insert, both `O(S)` where `S` is the number of
* signatories. `S` is capped by `MaxSignatories`, with weight being proportional.
* - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len.
* - One encode & hash, both of complexity `O(S)`.
* - Up to one binary search and insert (`O(logS + S)`).
* - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove.
* - One event.
* - The weight of the `call`.
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
*/
get asV9420(): {threshold: number, otherSignatories: Uint8Array[], maybeTimepoint: (v9420.Timepoint | undefined), call: v9420.Call, maxWeight: v9420.Weight} {
assert(this.isV9420)
return this._chain.decodeCall(this.call)
}
}

export class ProxyProxyCall {
Expand Down Expand Up @@ -1115,6 +1207,37 @@ export class ProxyProxyCall {
assert(this.isV9390)
return this._chain.decodeCall(this.call)
}

/**
* Dispatch the given `call` from an account that the sender is authorised for through
* `add_proxy`.
*
* The dispatch origin for this call must be _Signed_.
*
* Parameters:
* - `real`: The account that the proxy will make a call on behalf of.
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
* - `call`: The call to be made by the `real` account.
*/
get isV9420(): boolean {
return this._chain.getCallHash('Proxy.proxy') === 'a524555efb69472bd9a5cba2831cb3ec81a90539d0387c3e4be2c3ca1c579afe'
}

/**
* Dispatch the given `call` from an account that the sender is authorised for through
* `add_proxy`.
*
* The dispatch origin for this call must be _Signed_.
*
* Parameters:
* - `real`: The account that the proxy will make a call on behalf of.
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
* - `call`: The call to be made by the `real` account.
*/
get asV9420(): {real: v9420.MultiAddress, forceProxyType: (v9420.ProxyType | undefined), call: v9420.Call} {
assert(this.isV9420)
return this._chain.decodeCall(this.call)
}
}

export class SystemRemarkCall {
Expand Down
Loading

0 comments on commit 23bd8f5

Please sign in to comment.