-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update for Paseo support #187
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -176,6 +176,7 @@ pub struct Config { | |
pub enum Environment { | ||
Mainnet, | ||
Rococo, | ||
TestnetPaseo, | ||
Dev(Config), | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"sdkMaxUsersGraphSize": 10000, | ||
"sdkMaxStaleFriendshipDays": 90, | ||
"maxGraphPageSizeBytes": 1024, | ||
"maxPageId": 16, | ||
"maxKeyPageSizeBytes": 65536, | ||
"graphPublicKeySchemaId": 7, | ||
"schemaMap": [ | ||
[ | ||
8, | ||
[ | ||
"1.0", | ||
{ | ||
"connectionType": "follow", | ||
"privacyType": "public" | ||
} | ||
] | ||
], | ||
[ | ||
9, | ||
[ | ||
"1.0", | ||
{ | ||
"connectionType": "follow", | ||
"privacyType": "private" | ||
} | ||
] | ||
], | ||
[ | ||
10, | ||
[ | ||
"1.0", | ||
{ | ||
"connectionType": "friendship", | ||
"privacyType": "private" | ||
} | ||
] | ||
] | ||
], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the paseo schema 10 does not have any settings , expecting signature required setting on it ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same with schema 9 it has setting set to 0 , I think private schemas require signatures enforcement There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. schema 8 is good it's Avro Paginated and setting=0 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think schema 7 has setting = 3 not sure if it corresponds to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are the same settings as appear on mainnet. So if they are wrong, so is mainnet 😟 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I think they are wrong "in spirit" meaning most stateful operations everywhere is only calling "upsert_page" extrinsic and it does not check for schema permission but extrinsics with "...._with_signature" might be misleading There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think its, fine but any application that enforces signature permission on schemas should know, not to use the ones in this config, |
||
"dsnpVersions": ["1.0"] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wanted to make sure that these schema id's are the same as what we registered on paseo for each
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are. Here's the output of the deploy script: