-
Notifications
You must be signed in to change notification settings - Fork 2
Release/v0.1.0 #46
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
Merged
Merged
Release/v0.1.0 #46
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
506ac6a
chore: modify README
mtabasco 6100015
chore: add forge docs, reorganize folders
mtabasco 7f2e070
docs: slashing & withdrawal mechanics
mtabasco 7ab4f27
chore: optimizations
mtabasco ea59077
chore: stage deployment
mtabasco f462573
chore: add deployment params to script output
mtabasco 3dfca65
doc: update guides naming
mtabasco f540a72
chore: deploy hoodi prod
mtabasco 96778dd
doc: generations guide
mtabasco f3ae784
docs: update README
mtabasco File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| { | ||
| "addresses": { | ||
| "BAppsModule": "0xCf9894B93C34E9Af8E912EcE7089DCE879740141", | ||
| "ProtocolModule": "0xA11022BB79cE25F9bAdfDB426746A4a47a1FD768", | ||
| "SSVBasedAppsImpl": "0xe5a75122b158D405518C6752aEE5D40b8FB1C364", | ||
| "SSVBasedAppsProxy": "0xc7fCFeEc5FB9962bDC2234A7a25dCec739e27f9f", | ||
| "StrategyModule": "0x0B81DcaF34f4455221A7d446eA41A70B8Baf91FF" | ||
| }, | ||
| "chainInfo": { | ||
| "chainId": 560048, | ||
| "deploymentBlock": 260728 | ||
| }, | ||
| "parameters": { | ||
| "disabledFeatures": 0, | ||
| "feeExpireTime": 3600, | ||
| "feeTimelockPeriod": 86400, | ||
| "maxFeeIncrement": 500, | ||
| "maxShares": 100000000000000000000000000000000000000000000000000, | ||
| "obligationExpireTime": 86400, | ||
| "obligationTimelockPeriod": 172800, | ||
| "tokenUpdateTimelockPeriod": 3600, | ||
| "withdrawalExpireTime": 86400, | ||
| "withdrawalTimelockPeriod": 172800 | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,25 @@ | ||
| { | ||
| "addresses": { | ||
| "BAppsModule": "0xF2b0c91b5256aD75585438C2722d5E7119666288", | ||
| "ProtocolModule": "0x5C08fb73Ba1E8Fd2894e0A3706C1e4CfBEA3F833", | ||
| "SSVBasedAppsImpl": "0x7E438E9264B431Fb62fbE2BFa350b9860cf7E8AA", | ||
| "SSVBasedAppsProxy": "0x1F3d4e4aEeA5406e3A7119d8daa31C67Ed3B13de", | ||
| "StrategyModule": "0x4b4638B067946c395C32CD0DFE5399E0899C7542" | ||
| "BAppsModule": "0xdC97f7935Ed6FDcA407dDdE95EB26f7807E52Dc9", | ||
| "ProtocolModule": "0x7AadaE0f159eECCe6a4Faad78FFF94e1eab4C540", | ||
| "SSVBasedAppsImpl": "0xfCD7243D8fBb441497fEd67e19B7681C27BB20aD", | ||
| "SSVBasedAppsProxy": "0x40d959B95e7c56962D6d388d87921c03734b9C2C", | ||
| "StrategyModule": "0x7cF08Af55c6939BB748D4c4D2d219791EDe9dBC1" | ||
| }, | ||
| "chainInfo": { | ||
| "chainId": 560048, | ||
| "deploymentBlock": 253405 | ||
| "deploymentBlock": 259312 | ||
| }, | ||
| "parameters": { | ||
| "disabledFeatures": 0, | ||
| "feeExpireTime": 3600, | ||
| "feeTimelockPeriod": 300, | ||
| "maxFeeIncrement": 500, | ||
| "maxShares": 100000000000000000000000000000000000000000000000000, | ||
| "obligationExpireTime": 3600, | ||
| "obligationTimelockPeriod": 300, | ||
| "tokenUpdateTimelockPeriod": 300, | ||
| "withdrawalExpireTime": 3600, | ||
| "withdrawalTimelockPeriod": 300 | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| book/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| table { | ||
| margin: 0 auto; | ||
| border-collapse: collapse; | ||
| width: 100%; | ||
| } | ||
|
|
||
| table td:first-child { | ||
| width: 15%; | ||
| } | ||
|
|
||
| table td:nth-child(2) { | ||
| width: 25%; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| [book] | ||
| src = "src" | ||
| title = "" | ||
|
|
||
| [output.html] | ||
| no-section-label = true | ||
| additional-js = ["solidity.min.js"] | ||
| additional-css = ["book.css"] | ||
| mathjax-support = true | ||
| git-repository-url = "https://github.com/ssvlabs/based-applications" | ||
|
|
||
| [output.html.fold] | ||
| enable = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| hljs.registerLanguage("solidity",(()=>{"use strict";function e(){try{return!0 | ||
| }catch(e){return!1}} | ||
| var a=/-?(\b0[xX]([a-fA-F0-9]_?)*[a-fA-F0-9]|(\b[1-9](_?\d)*(\.((\d_?)*\d)?)?|\.\d(_?\d)*)([eE][-+]?\d(_?\d)*)?|\b0)(?!\w|\$)/ | ||
| ;e()&&(a=a.source.replace(/\\b/g,"(?<!\\$)\\b"));var s={className:"number", | ||
| begin:a,relevance:0},n={ | ||
| keyword:"assembly let function if switch case default for leave break continue u256 jump jumpi stop return revert selfdestruct invalid", | ||
| built_in:"add sub mul div sdiv mod smod exp not lt gt slt sgt eq iszero and or xor byte shl shr sar addmod mulmod signextend keccak256 pc pop dup1 dup2 dup3 dup4 dup5 dup6 dup7 dup8 dup9 dup10 dup11 dup12 dup13 dup14 dup15 dup16 swap1 swap2 swap3 swap4 swap5 swap6 swap7 swap8 swap9 swap10 swap11 swap12 swap13 swap14 swap15 swap16 mload mstore mstore8 sload sstore msize gas address balance selfbalance caller callvalue calldataload calldatasize calldatacopy codesize codecopy extcodesize extcodecopy returndatasize returndatacopy extcodehash create create2 call callcode delegatecall staticcall log0 log1 log2 log3 log4 chainid origin gasprice basefee blockhash coinbase timestamp number difficulty gaslimit", | ||
| literal:"true false"},i={className:"string", | ||
| begin:/\bhex'(([0-9a-fA-F]{2}_?)*[0-9a-fA-F]{2})?'/},t={className:"string", | ||
| begin:/\bhex"(([0-9a-fA-F]{2}_?)*[0-9a-fA-F]{2})?"/};function r(e){ | ||
| return e.inherit(e.APOS_STRING_MODE,{begin:/(\bunicode)?'/})}function l(e){ | ||
| return e.inherit(e.QUOTE_STRING_MODE,{begin:/(\bunicode)?"/})}var o={ | ||
| SOL_ASSEMBLY_KEYWORDS:n,baseAssembly:e=>{ | ||
| var a=r(e),o=l(e),c=/[A-Za-z_$][A-Za-z_$0-9.]*/,d=e.inherit(e.TITLE_MODE,{ | ||
| begin:/[A-Za-z$_][0-9A-Za-z$_]*/,lexemes:c,keywords:n}),u={className:"params", | ||
| begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,lexemes:c,keywords:n, | ||
| contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,o,s]},_={ | ||
| className:"operator",begin:/:=|->/};return{keywords:n,lexemes:c, | ||
| contains:[a,o,i,t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,_,{ | ||
| className:"function",lexemes:c,beginKeywords:"function",end:"{",excludeEnd:!0, | ||
| contains:[d,u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,_]}]}}, | ||
| solAposStringMode:r,solQuoteStringMode:l,HEX_APOS_STRING_MODE:i, | ||
| HEX_QUOTE_STRING_MODE:t,SOL_NUMBER:s,isNegativeLookbehindAvailable:e} | ||
| ;const{baseAssembly:c,solAposStringMode:d,solQuoteStringMode:u,HEX_APOS_STRING_MODE:_,HEX_QUOTE_STRING_MODE:m,SOL_NUMBER:b,isNegativeLookbehindAvailable:E}=o | ||
| ;return e=>{for(var a=d(e),s=u(e),n=[],i=0;i<32;i++)n[i]=i+1 | ||
| ;var t=n.map((e=>8*e)),r=[];for(i=0;i<=80;i++)r[i]=i | ||
| ;var l=n.map((e=>"bytes"+e)).join(" ")+" ",o=t.map((e=>"uint"+e)).join(" ")+" ",g=t.map((e=>"int"+e)).join(" ")+" ",M=[].concat.apply([],t.map((e=>r.map((a=>e+"x"+a))))),p={ | ||
| keyword:"var bool string int uint "+g+o+"byte bytes "+l+"fixed ufixed "+M.map((e=>"fixed"+e)).join(" ")+" "+M.map((e=>"ufixed"+e)).join(" ")+" enum struct mapping address new delete if else for while continue break return throw emit try catch revert unchecked _ function modifier event constructor fallback receive error virtual override constant immutable anonymous indexed storage memory calldata external public internal payable pure view private returns import from as using pragma contract interface library is abstract type assembly", | ||
| literal:"true false wei gwei szabo finney ether seconds minutes hours days weeks years", | ||
| built_in:"self this super selfdestruct suicide now msg block tx abi blockhash gasleft assert require Error Panic sha3 sha256 keccak256 ripemd160 ecrecover addmod mulmod log0 log1 log2 log3 log4" | ||
| },O={className:"operator",begin:/[+\-!~*\/%<>&^|=]/ | ||
| },C=/[A-Za-z_$][A-Za-z_$0-9]*/,N={className:"params",begin:/\(/,end:/\)/, | ||
| excludeBegin:!0,excludeEnd:!0,lexemes:C,keywords:p, | ||
| contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,s,b,"self"]},f={ | ||
| begin:/\.\s*/,end:/[^A-Za-z0-9$_\.]/,excludeBegin:!0,excludeEnd:!0,keywords:{ | ||
| built_in:"gas value selector address length push pop send transfer call callcode delegatecall staticcall balance code codehash wrap unwrap name creationCode runtimeCode interfaceId min max" | ||
| },relevance:2},y=e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/, | ||
| lexemes:C,keywords:p}),w={className:"built_in", | ||
| begin:(E()?"(?<!\\$)\\b":"\\b")+"(gas|value|salt)(?=:)"};function x(e,a){return{ | ||
| begin:(E()?"(?<!\\$)\\b":"\\b")+e+"\\.\\s*",end:/[^A-Za-z0-9$_\.]/, | ||
| excludeBegin:!1,excludeEnd:!0,lexemes:C,keywords:{built_in:e+" "+a}, | ||
| contains:[f],relevance:10}}var h=c(e),v=e.inherit(h,{ | ||
| contains:h.contains.concat([{begin:/\./,end:/[^A-Za-z0-9$.]/,excludeBegin:!0, | ||
| excludeEnd:!0,keywords:{built_in:"slot offset length address selector"}, | ||
| relevance:2},{begin:/_/,end:/[^A-Za-z0-9$.]/,excludeBegin:!0,excludeEnd:!0, | ||
| keywords:{built_in:"slot offset"},relevance:2}])});return{aliases:["sol"], | ||
| keywords:p,lexemes:C, | ||
| contains:[a,s,_,m,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,b,w,O,{ | ||
| className:"function",lexemes:C, | ||
| beginKeywords:"function modifier event constructor fallback receive error", | ||
| end:/[{;]/,excludeEnd:!0, | ||
| contains:[y,N,w,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:/%/ | ||
| },x("msg","gas value data sender sig"),x("block","blockhash coinbase difficulty gaslimit basefee number timestamp chainid"),x("tx","gasprice origin"),x("abi","decode encode encodePacked encodeWithSelector encodeWithSignature encodeCall"),x("bytes","concat"),f,{ | ||
| className:"class",lexemes:C,beginKeywords:"contract interface library",end:"{", | ||
| excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"is",lexemes:C | ||
| },y,N,w,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{lexemes:C, | ||
| beginKeywords:"struct enum",end:"{",excludeEnd:!0,illegal:/[:"\[\]]/, | ||
| contains:[y,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{ | ||
| beginKeywords:"import",end:";",lexemes:C,keywords:"import from as", | ||
| contains:[y,a,s,_,m,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,O]},{ | ||
| beginKeywords:"using",end:";",lexemes:C,keywords:"using for", | ||
| contains:[y,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,O]},{className:"meta", | ||
| beginKeywords:"pragma",end:";",lexemes:C,keywords:{ | ||
| keyword:"pragma solidity experimental abicoder", | ||
| built_in:"ABIEncoderV2 SMTChecker v1 v2"}, | ||
| contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(a,{ | ||
| className:"meta-string"}),e.inherit(s,{className:"meta-string"})]},{ | ||
| beginKeywords:"assembly",end:/\b\B/, | ||
| contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(v,{begin:"{", | ||
| end:"}",endsParent:!0,contains:v.contains.concat([e.inherit(v,{begin:"{", | ||
| end:"}",contains:v.contains.concat(["self"])})])})]}],illegal:/#/}}})()); | ||
|
|
||
| // Ugly hack to reload HLJS | ||
| hljs.initHighlightingOnLoad(); |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Here we will update the entry with the addresses of the deployed contracts on stage and prod