Skip to content

Conversation

@niodamian
Copy link
Contributor

i believe i have all the codes it needs for juris to be listed

@llamabutler
Copy link

The adapter at projects/jurisprotocol exports TVL:

terra-borrowed            0
terra-staking             0
terra                     0
borrowed                  0
staking                   0

total                    0 

Error saving cache: Error: ENOENT: no such file or directory, open '/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@defillama/sdk/build/util/local_cache/zlib-1.0/BlockCache.json'

@llamabutler
Copy link

The adapter at projects/jurisprotocol exports TVL:

terra-borrowed            0
terra-staking             0
terra                     0
borrowed                  0
staking                   0

total                    0 

Error saving cache: Error: ENOENT: no such file or directory, open '/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@defillama/sdk/build/util/local_cache/zlib-1.0/BlockCache.json'

@llamabutler
Copy link

The adapter at projects/jurisprotocol exports TVL:

terra-staking             0
terra                     0
staking                   0

total                    0 

Error saving cache: Error: ENOENT: no such file or directory, open '/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@defillama/sdk/build/util/local_cache/zlib-1.0/BlockCache.json'

@llamabutler
Copy link

Error while running adapter at projects/jurisprotocol:

Error: 
    Invalid chain names: TOKENS
    Chain names should only contain lowercase letters, numbers and underscores
    
Error saving cache: Error: ENOENT: no such file or directory, open '/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@defillama/sdk/build/util/local_cache/zlib-1.0/BlockCache.json'

@llamabutler
Copy link

Error while running adapter at projects/jurisprotocol:

Error: 
    Invalid chain names: TOKENS
    Chain names should only contain lowercase letters, numbers and underscores
    
Error saving cache: Error: ENOENT: no such file or directory, open '/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@defillama/sdk/build/util/local_cache/zlib-1.0/BlockCache.json'

@llamabutler
Copy link

The adapter at projects/jurisprotocol exports TVL:

terra-staking             0
terra                     0
staking                   0

total                    0 

Error saving cache: Error: ENOENT: no such file or directory, open '/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@defillama/sdk/build/util/local_cache/zlib-1.0/BlockCache.json'

@llamabutler
Copy link

Error while running adapter at projects/jurisprotocol:

Error: Cannot find module './helper'
Require stack:
- /home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/projects/jurisprotocol/index.js
- /home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/test.js
Truncated error stack:

    at Object.<anonymous> (/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/projects/jurisprotocol/index.js:5:5)
Error saving cache: Error: ENOENT: no such file or directory, open '/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@defillama/sdk/build/util/local_cache/zlib-1.0/BlockCache.json'

@llamabutler
Copy link

The adapter at projects/jurisprotocol exports TVL:

terra-staking             0
terra                     0
staking                   0

total                    0 

@llamabutler
Copy link

Error while running adapter at projects/jurisprotocol:

Error: Protocol doesn't have total tvl, make sure to export a tvl key either on the main object or in one of the chains
Truncated error stack:

    at /home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/test.js:227:11

@llamabutler
Copy link

Error while running adapter at projects/jurisprotocol:

Error: Protocol doesn't have total tvl, make sure to export a tvl key either on the main object or in one of the chains
Truncated error stack:

    at /home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/test.js:227:11

@llamabutler
Copy link

The adapter at projects/jurisprotocol exports TVL:

terra-staking             0
terra                     0
staking                   0

total                    0 

1 similar comment
@llamabutler
Copy link

The adapter at projects/jurisprotocol exports TVL:

terra-staking             0
terra                     0
staking                   0

total                    0 

@llamabutler
Copy link

The adapter at projects/jurisprotocol exports TVL:

terra                     0
terra-staking             0
staking                   0

total                    0 

@niodamian
Copy link
Contributor Author

In order to fetch the tvl ... I ll need my code to be merged for juris token I added as well the native coins I believe that's why tvl is 0 I ll run some locally test as well

},
terra: {
'uluna': { coingeckoId: 'terra-luna-classic', decimals: 6 },
'uusd': { coingeckoId: 'terraclassicusd', decimals: 6 },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uluna and uusd mappings arent needed

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding support for juris here DefiLlama/defillama-server@0d0f536


// fetch bank balances once per owner
let bank = [];
try { bank = await bankBalances(owner); } catch (e) { log('bankBalances failed', owner, e?.message ?? e); bank = []; }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please no try/catch

/**
* bankBalances via LCD (native tokens)
*/
async function bankBalances(address) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems to be some code duplication here with other places in the repo - could we consolidate it please?

@waynebruce0x
Copy link
Collaborator

Please complete the PR description with the metadata requested in https://github.com/DefiLlama/DefiLlama-Adapters/blob/main/pull_request_template.md

@waynebruce0x
Copy link
Collaborator

any juris token TVL should be exported as staking as it is your own token

@waynebruce0x waynebruce0x self-assigned this Oct 27, 2025
@llamabutler
Copy link

The adapter at projects/jurisprotocol exports TVL:

terra-staking             0
terra-vesting             0
terra                     0
staking                   0
vesting                   0

total                    0 

@llamabutler
Copy link

The adapter at projects/jurisprotocol exports TVL:

terra-vesting             0
terra                     0
terra-staking             0
vesting                   0
staking                   0

total                    0 

@niodamian
Copy link
Contributor Author

any juris token TVL should be exported as staking as it is your own token

can you check now ?

i updated tokenmapping .

now i excluded juris from all contracts * since its owned by juris

i stilll see no tvl price ? needs from your side to add juris ?

also i believe this will detect other native coins right ? uluna /ustc

@niodamian
Copy link
Contributor Author

niodamian commented Oct 27, 2025

{
id: "jurisprotocol",
name: "Juris Protocol",
address: "terra1vhgq25vwuhdhn9xjll0rhl2s67jzw78a4g2t78y5kz89q9lsdskq2pxcj2",
symbol: "JURIS",
url: "https://www.jurisprotocol.com",
description: "A comprehensive DeFi protocol on Terra Classic offering staking and lending services with a focus on LUNC ecosystem development",
chain: "Terra",
logo: "https://raw.githubusercontent.com/JurisProtocol/assets/main/jurislogo.png",
audits: "2",
audit_note: null,
audit_links: [
"https://app.solidproof.io/projects/juris-protocol?audit=963e1452-fcff-4a08-9618-72cf949c9419"
],
gecko_id: "juris-protocol",
cmcId: null,
category: "Lending",
categories: [
"Lending",
"Staking",
"Yield",
"Moneymarket"
],
chains: ["Terra"],
oracles: ["Terra Classic Oracle"],
forkedFrom: [],
module: "jurisprotocol/index.js",
twitter: "JurisProtocol",
language: "Rust",
github: ["jurisprotocol"],
treasury: "jurisprotocol/index.js"
}

making now as well treasury.js

@niodamian
Copy link
Contributor Author

@niodamian
Copy link
Contributor Author

any juris token TVL should be exported as staking as it is your own token

is it fine if i added on juris protocol folder or needs to be on treasury/jurisprotocol.js ?

@niodamian
Copy link
Contributor Author

except if its also possible not to add treasury yet and do it later

// '0x83048f0bf34feed8ced419455a4320a735a92e9d': { coingeckoId: "ozonechain", decimals: 18 }, // was mapped to wrong chain
},
terra: {
'terra1vhgq25vwuhdhn9xjll0rhl2s67jzw78a4g2t78y5kz89q9lsdskq2pxcj2': {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this mapping isnt required, we already price it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok i removed it

@waynebruce0x
Copy link
Collaborator

any juris token TVL should be exported as staking as it is your own token

is it fine if i added on juris protocol folder or needs to be on treasury/jurisprotocol.js ?

it should be in the same adapter file

@llamabutler
Copy link

The adapter at projects/jurisprotocol exports TVL:

terra-staking             3.31 M
staking                   3.31 M
terra-vesting             0
terra                     0
vesting                   0

total                    0 

@niodamian
Copy link
Contributor Author

any juris token TVL should be exported as staking as it is your own token

is it fine if i added on juris protocol folder or needs to be on treasury/jurisprotocol.js ?

it should be in the same adapter file

ok i believe those are fixed now can you verify ? since treasury currently is blank wont fetch it

@waynebruce0x
Copy link
Collaborator

Your terraExport.tvl has no values in api._balances._balances which is why it is returning 0

@llamabutler
Copy link

Error while running adapter at projects/jurisprotocol:

SyntaxError: /home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/projects/jurisprotocol/abi.json: Unexpected token ']', ...",    
    ],
    "re"... is not valid JSON
Truncated error stack:

    at parse (<anonymous>)
    at Object.<anonymous> (/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/projects/jurisprotocol/index.js:1:13)
Error saving cache: Error: ENOENT: no such file or directory, open '/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@defillama/sdk/build/util/local_cache/zlib-1.0/BlockCache.json'

@llamabutler
Copy link

The adapter at projects/jurisprotocol exports TVL:

terra-staking             3.31 M
staking                   3.31 M
terra-vesting             1.55 M
vesting                   1.55 M
terra                     0

total                    0 

@niodamian
Copy link
Contributor Author

Your terraExport.tvl has no values in api._balances._balances which is why it is returning 0

yeah - i excluded JURIS token from vesting and staking to not count as a tvl - i dont have lunc or ustc yet on the contracts so i believe this is correct

@waynebruce0x waynebruce0x merged commit 272011f into DefiLlama:main Oct 28, 2025
1 check passed
wyf-ACCEPT pushed a commit to wyf-ACCEPT/DefiLlama-Adapters that referenced this pull request Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants