This repository was archived by the owner on Feb 8, 2025. It is now read-only.
Commit 422de4f 1 parent 24bf632 commit 422de4f Copy full SHA for 422de4f
File tree 8 files changed +176
-171
lines changed
8 files changed +176
-171
lines changed Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ configure instance set query_work_mem := <cfg::memory>"8MiB";
12
12
configure instance set shared_buffers := < cfg::memory > "2GiB";
13
13
14
14
# Total memory available to the database for caching - 75%
15
- configure instance set effective_cache_size := < cfg::memory > "3GiB ";
15
+ configure instance set effective_cache_size := < cfg::memory > "6GiB ";
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -215,9 +215,9 @@ export namespace $default {
215
215
"proposal" ?: Transaction | null ;
216
216
"initState" : boolean ;
217
217
"isActive" : boolean ;
218
- "isDraft" : boolean ;
219
218
"latest" ?: PolicyState | null ;
220
219
"isLatest" : boolean ;
220
+ "isDraft" : boolean ;
221
221
}
222
222
export interface Policy extends PolicyState {
223
223
"approvers" : Approver [ ] ;
Original file line number Diff line number Diff line change
1
+ CREATE MIGRATION m1ob6arfwyamzcpgk2hgzhby3iwv3moewthqacorsw2mtyjkopdoaq
2
+ ONTO m13qxppnkqofigih7dxkipm2lh6k3ahrqerachqhdzihw76nb6i3aa
3
+ {
4
+ ALTER TYPE default :: PolicyState {
5
+ ALTER PROPERTY isDraft {
6
+ USING ((__source__ ?= .draft));
7
+ };
8
+ };
9
+ };
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ module default {
19
19
required initState := .activationBlock ?= 0 ;
20
20
required hasBeenActive := exists .activationBlock;
21
21
required isActive := .isLatest and .hasBeenActive;
22
- required isDraft := exists .draft;
22
+ required isDraft := ( __source__ ?= .draft) ;
23
23
latest := (__source__ if .isLatest else latestPolicy (.account, .key));
24
24
draft := assert_single ((
25
25
with account := __source__ .account, key := __source__ .key
@@ -94,9 +94,9 @@ module default {
94
94
}
95
95
96
96
type TransfersConfig {
97
- multi limits: TransferLimit { constraint exclusive ; }
98
97
required defaultAllow: bool { default := true ; };
99
98
required budget: uint32;
99
+ multi limits: TransferLimit { constraint exclusive ; }
100
100
}
101
101
102
102
type TransferLimit {
Original file line number Diff line number Diff line change 1
1
[edgedb ]
2
- server-version = " 5.4 "
2
+ server-version = " 5.6 "
Original file line number Diff line number Diff line change 1
1
// GENERATED by @edgedb /generate v0.5.3
2
2
3
- import type { Executor } from ' edgedb' ;
3
+ import type { Executor } from " edgedb" ;
4
4
5
5
export type DeleteTransactionArgs = {
6
- readonly transaction : string ;
6
+ readonly " transaction" : string ;
7
7
} ;
8
8
9
9
export type DeleteTransactionReturns = {
10
- transaction : {
11
- id : string ;
12
- account : {
13
- address : string ;
10
+ " transaction" : {
11
+ "id" : string ;
12
+ " account" : {
13
+ " address" : string ;
14
14
} ;
15
15
} | null ;
16
- deletedPolicies : Array < {
17
- id : string ;
16
+ " deletedPolicies" : Array < {
17
+ "id" : string ;
18
18
} > ;
19
- deletedTransaction : {
20
- id : string ;
19
+ " deletedTransaction" : {
20
+ "id" : string ;
21
21
} | null ;
22
22
} ;
23
23
24
- export function deleteTransaction (
25
- client : Executor ,
26
- args : DeleteTransactionArgs ,
27
- ) : Promise < DeleteTransactionReturns > {
28
- return client . queryRequiredSingle (
29
- `\
24
+ export function deleteTransaction ( client : Executor , args : DeleteTransactionArgs ) : Promise < DeleteTransactionReturns > {
25
+ return client . queryRequiredSingle ( `\
30
26
with t := (select Transaction filter .id = <uuid>$transaction)
31
27
select {
32
28
transaction := (
@@ -35,9 +31,9 @@ select {
35
31
account: { address }
36
32
}
37
33
),
34
+ # Delete policies the proposal was going to activate
38
35
deletedPolicies := (delete t.<proposal[is PolicyState]),
39
36
deletedTransaction := (delete t)
40
- };` ,
41
- args ,
42
- ) ;
37
+ };` , args ) ;
38
+
43
39
}
You can’t perform that action at this time.
0 commit comments