Add boilerplate liquidtestnet examples

Also adjust logic to show them. Doing this prevents
compilation errors and will allow for endpoints to
be reviewed as they are modified.
This commit is contained in:
hunicus
2022-01-11 21:59:22 -05:00
parent 04ffa6d7bb
commit c232f6a11d
2 changed files with 463 additions and 3 deletions

View File

@@ -237,9 +237,12 @@ yarn add @mempool/liquid.js`;
if (this.network === 'signet') {
return this.replaceCurlPlaceholder(code.codeTemplate.curl, code.codeSampleSignet);
}
if (this.network === 'liquid' || this.network === 'liquidtestnet') {
if (this.network === 'liquid') {
return this.replaceCurlPlaceholder(code.codeTemplate.curl, code.codeSampleLiquid);
}
if (this.network === 'liquidtestnet') {
return this.replaceCurlPlaceholder(code.codeTemplate.curl, code.codeSampleLiquidTestnet);
}
if (this.network === 'bisq') {
return this.replaceCurlPlaceholder(code.codeTemplate.curl, code.codeSampleBisq);
}
@@ -259,9 +262,12 @@ yarn add @mempool/liquid.js`;
if (this.network === 'signet') {
return code.codeSampleSignet.response;
}
if (this.network === 'liquid' || this.network === 'liquidtestnet') {
if (this.network === 'liquid') {
return code.codeSampleLiquid.response;
}
if (this.network === 'liquidtestnet') {
return code.codeSampleLiquidTestnet.response;
}
if (this.network === 'bisq') {
return code.codeSampleBisq.response;
}