Skip to content

Commit

Permalink
chore!: update to Ogmios v5.5.0 cardano-db-sync 13.0.0
Browse files Browse the repository at this point in the history
- minimum compatibility with cardano-db-sync 13
- [email protected]
- `ShelleyProtocolParams.coinsPerUtxoWord` -> `ShelleyProtocolParams.coinsPerUtxoSize`
- updates Docker volume mount in compose file to conform with upstream changes.
- Updates metadata client test to use updated record
cardano-foundation/cardano-token-registry@1ed4c6b
  • Loading branch information
rhyslbw committed Jul 1, 2022
1 parent f600d31 commit b821f21
Show file tree
Hide file tree
Showing 22 changed files with 51 additions and 49 deletions.
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "ogmios"]
path = ogmios
url = https://github.com/CardanoSolutions/ogmios.git
[submodule "config"]
path = config
url = https://github.com/input-output-hk/cardano-configurations.git
[submodule "ogmios"]
path = ogmios
url = https://github.com/CardanoSolutions/ogmios.git
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ Get the most recent weekly snapshot link [here](https://update-cardano-mainnet.i
export NETWORK=mainnet &&\
docker pull inputoutput/cardano-graphql:6.2.0-${NETWORK} &&\
docker pull inputoutput/cardano-graphql-hasura:6.2.0 &&\
docker pull cardanosolutions/cardano-node-ogmios:v5.1.0-${NETWORK} &&\
RESTORE_SNAPSHOT=https://update-cardano-mainnet.iohk.io/cardano-db-sync/12/db-sync-snapshot-schema-12-block-6764999-x86_64.tgz \
docker pull cardanosolutions/cardano-node-ogmios:v5.5.0-${NETWORK} &&\
RESTORE_SNAPSHOT=https://update-cardano-mainnet.iohk.io/cardano-db-sync/13/db-sync-snapshot-schema-13-block-6849999-x86_64.tgz \
docker-compose up -d &&\
docker-compose logs -f
```
Expand All @@ -115,8 +115,8 @@ Get the most recent weekly snapshot link [here](https://updates-cardano-testnet.
export NETWORK=testnet &&\
docker pull inputoutput/cardano-graphql:6.2.0-${NETWORK} &&\
docker pull inputoutput/cardano-graphql-hasura:6.2.0 &&\
docker pull cardanosolutions/cardano-node-ogmios:v5.1.0-${NETWORK} &&\
RESTORE_SNAPSHOT=https://updates-cardano-testnet.s3.amazonaws.com/cardano-db-sync/12/db-sync-snapshot-schema-12-block-3185999-x86_64.tgz \
docker pull cardanosolutions/cardano-node-ogmios:v5.5.0-${NETWORK} &&\
RESTORE_SNAPSHOT=https://updates-cardano-testnet.s3.amazonaws.com/cardano-db-sync/13/db-sync-snapshot-schema-13-block-3654385-x86_64.tgz \
API_PORT=3101 \
HASURA_PORT=8091 \
OGMIOS_PORT=1338 \
Expand Down
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ services:
options:
max-size: "200k"
max-file: "10"

cardano-node-ogmios:
build:
args:
- NETWORK=${NETWORK:-mainnet}
cache_from: [ cardanosolutions/cardano-node-ogmios:latest ]
context: ./ogmios
image: cardanosolutions/cardano-node-ogmios:${CARDANO_NODE_OGMIOS_VERSION:-v5.1.0}-${NETWORK:-mainnet}
image: cardanosolutions/cardano-node-ogmios:${CARDANO_NODE_OGMIOS_VERSION:-v5.5.0}-${NETWORK:-mainnet}
logging:
driver: "json-file"
options:
Expand All @@ -42,9 +42,9 @@ services:
volumes:
- node-db:/db
- node-ipc:/ipc

cardano-db-sync-extended:
image: inputoutput/cardano-db-sync:${CARDANO_DB_SYNC_VERSION:-12.0.0}
image: inputoutput/cardano-db-sync:${CARDANO_DB_SYNC_VERSION:-13.0.0}
command: [
"--config", "/config/cardano-db-sync/config.json",
"--socket-path", "/node-ipc/node.socket"
Expand All @@ -64,15 +64,15 @@ services:
- postgres_db
volumes:
- ./config/network/${NETWORK:-mainnet}:/config
- db-sync-data:/var/lib/cdbsync
- db-sync-data:/var/lib/cexplorer
- node-ipc:/node-ipc
restart: on-failure
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"

hasura:
build:
context: ./packages/api-cardano-db-hasura/hasura
Expand Down
2 changes: 1 addition & 1 deletion ogmios
Submodule ogmios updated 1407 files
Binary file removed packages-cache/@cardano-ogmios-client-5.1.0.tgz
Binary file not shown.
Binary file added packages-cache/@cardano-ogmios-client-5.5.0.tgz
Binary file not shown.
Binary file removed packages-cache/@cardano-ogmios-schema-5.1.0.tgz
Binary file not shown.
Binary file added packages-cache/@cardano-ogmios-schema-5.5.0.tgz
Binary file not shown.
Binary file not shown.
Binary file removed packages-cache/parse-json-4.0.0.tgz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@
permission:
columns:
- a0
- coinsPerUtxoWord
- coinsPerUtxoSize
- collateralPercent
- costModels
- decentralisationParam
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@ FROM epoch
CREATE VIEW "ShelleyEpochProtocolParams" AS
SELECT
epoch_param.influence AS "a0",
epoch_param.coins_per_utxo_word AS "coinsPerUtxoWord",
epoch_param.coins_per_utxo_size AS "coinsPerUtxoSize",
epoch_param.collateral_percent AS "collateralPercent",
cost_model.costs AS "costModels",
epoch_param.decentralisation AS "decentralisationParam",
epoch_param.max_collateral_inputs AS "maxCollateralInputs",
epoch_param.max_epoch AS "eMax",
epoch_param.epoch_no AS "epoch_no",
epoch_param.entropy AS "extraEntropy",
epoch_param.extra_entropy AS "extraEntropy",
epoch_param.key_deposit AS "keyDeposit",
epoch_param.max_block_size AS "maxBlockBodySize",
epoch_param.max_block_ex_mem AS "maxBlockExMem",
Expand Down Expand Up @@ -209,15 +209,17 @@ FROM pool_update AS pool
INNER JOIN tx ON pool.registered_tx_id = tx.id
INNER JOIN latest_block_times ON latest_block_times.hash_id = pool.hash_id
INNER JOIN block ON tx.block_id = block.id AND latest_block_times.blockTime = block.time
JOIN stake_address on pool.reward_addr = stake_address.hash_raw
JOIN stake_address on pool.reward_addr_id = stake_address.id
JOIN pool_hash on pool_hash.id = pool.hash_id;

CREATE VIEW "StakePoolOwner" AS
SELECT
stake_address.hash_raw as "hash",
pool_owner.pool_hash_id as "pool_hash_id"
pool_hash.id as "pool_hash_id"
FROM pool_owner
LEFT JOIN stake_address ON pool_owner.addr_id = stake_address.id;
LEFT JOIN stake_address ON pool_owner.addr_id = stake_address.id
LEFT JOIN pool_update ON pool_owner.pool_update_id = pool_update.id
LEFT JOIN pool_hash ON pool_update.hash_id = pool_hash.id;

CREATE VIEW "StakePoolRetirement" AS
SELECT
Expand Down
2 changes: 1 addition & 1 deletion packages/api-cardano-db-hasura/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
],
"dependencies": {
"@cardano-graphql/util": "6.2.0",
"@cardano-ogmios/client": "^5.1.0",
"@cardano-ogmios/client": "^5.5.0",
"@cardanosolutions/json-bigint": "^1.0.0",
"@emurgo/cardano-serialization-lib-nodejs": "^6.0.0",
"@emurgo/cip14-js": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/api-cardano-db-hasura/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ type ShelleyGenesisStaking {

type ShelleyProtocolParams {
a0: Float!
coinsPerUtxoWord: Int
coinsPerUtxoSize: Int
collateralPercent: Int
costModels: JSONObject
decentralisationParam: Float!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ query epochProtocolParams (
epochs( where: $where ) {
protocolParams {
a0
coinsPerUtxoWord
coinsPerUtxoSize
collateralPercent
costModels
decentralisationParam
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ query plutusScripts (
){
scripts(
limit: $limit
where: { type: { _eq: "plutus" }}
where: { type: { _eq: "plutusV1" }}
) {
hash
serialisedSize
Expand Down
12 changes: 6 additions & 6 deletions packages/api-cardano-db-hasura/test/MetadataClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ describe('MetadataClient', () => {
expect.assertions(1)
client = new MetadataClient('https://tokens.cardano.org')
try {
await client.fetch(['e694218542123b5def28de396199f1c5d32bdd54f031a8dd85e4aa2141474958'])
await client.fetch(['f43a62fdc3965df486de8a0d32fe800963589c41b38946602a0dc53541474958'])
} catch (error) {
await expect(error.name).toBe('ModuleIsNotInitialized')
}
})
it('can return all metadata by assetId', async () => {
client = new MetadataClient('https://tokens.cardano.org')
await client.initialize()
const response = await client.fetch(['e694218542123b5def28de396199f1c5d32bdd54f031a8dd85e4aa2141474958'])
const response = await client.fetch(['f43a62fdc3965df486de8a0d32fe800963589c41b38946602a0dc53541474958'])
expect(response).toBeDefined()
expect(response[0].decimals.value).toBe(8)
expect(response[0].description.value).toBe('Decentralized Marketplace for Artificial Intelligence')
expect(response[0].logo.value).toBe('iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsSAAALEgHS3X78AAATv0lEQVR4nO3dfWhXV57H8eN0aWZgom3p04y1LlIdfKQVumasxj82KTRNYbdxKqaFal2YqKUpC2qsutsdnxV2N1JrlsWaQk2pNDIwaYSps7DqDEqHWamrgk4Lusq2FMqqM9DoH10+V38ltXm49/zuPffce96v/4ax5nd/5nzuOd/zNGZS7dyvDYAgfY9/diBcBAAQMAIACBgBAASMAAACRgAAASMAgIARAEDACAAgYAQAEDACAAgYAQAEjAAAAkYAAAEjAICAEQBAwAgAIGAEABAwAgAIGAEABIwAAAJGAAABIwCAgBEAQMAIACBgBAAQMAIACBgBAASMAAACRgAAASMAgIARAEDACAAgYAQAEDACAAgYAQAEjAAAAvYX/OOXy0MP/8i0v7bMjH/4QfNh31Gz7833qno+/X1TZ00202ZONr37+82li/8b+ldcKmMm1c79OvQvoQzGjvuh2bD9VfNs61PfeppNHbuqCoGe/jfMnHmPffO/D/YcMp1b9hIEJcEQoASWrlhkjpzu/U7jl7Qbqn7Gf/73+2Zn1/oodFBsBECBTZs12fT99m2zftsrpnbs0I3xckZvagWBQkfhg+IiAAqqfe0y86tj3WbqzEeGfYBrV/9kznx8vqoH1Lh/OAodhY+GCaoVoHjuuLtmwuv8uxWH3vr7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xl9gBICHkoSAtgyrEboOgUrjH63oR+P3G0MAT+lWYQ0H6upnjzq2vu+Be8z9D97rbFqNxl8e9AA8pp6AGlCc2QFtG97ZtT7zh4nb+G9W+2n8viMAPKcG1Dx3SazzBLMOgbiNX+v7NdVH4/cfQ4AC0DqBvt7DUTd/tLv19P9r6KAhRJriNn6t8NMSX+14hP8IgIJQg9IYXz0BTf+NVBfQNGKaIaB5fk31jXRpqYYp2tbb9c/vFPQbDhMBUDBaK9D3/m+iRjnS9uC0QkA/p6f/jRGn+irjfe7zKx5qAAWko7PU4Npa145YIExyGu9w2tcuG7Hx79r6lml+4kWO8yooAqDANCSon94SNcKs1A6zvkBv/WfmLTGdWznKq8gIgIJTgVCNcMGMhdGx2mm7/Y5+9Tgqb32q/MU3ZlLt3K9D/xLKRHUBdf3PnDpvzn58PpWuuYYButhTNQUd3kl3vzwIACBgDAGAgBEAQMAIACBgBAAQMAIACBgBAASMAAACRgAAASMAgIARAEDACAAgYAQAEDACAAgYAQAEjAAAAkYAAAEjAICAEQBAwAgAIGAEABAwAgAIGAEABIwAAAJGAAABIwCAgBEAQMAIACBgBAAQMAIACBgBAASMAAACRgAAASMAgIARAEDACAAgYAQAEDACAAiVMeb/AXYQatd1VISBAAAAAElFTkSuQmCC')
expect(response[0].name.value).toBe('SingularityNET Token')
expect(response[0].description.value).toBe('SingularityNET lets anyone - create, share, and monetize AI services at scale. SingularityNET is the world\'s first decentralized AI network')
expect(response[0].logo.value).toBe('iVBORw0KGgoAAAANSUhEUgAAAKsAAACrCAYAAAAZ6GwZAAAACXBIWXMAAAsSAAALEgHS3X78AAAPWUlEQVR4nO2dXWxUxxXHj0uFX2I+KlVNAeOKBlfghhak1JaDXT9ApBrzUlIq3Eh85AFTkM0LiQFTaDGxMVJUWwY7D2AjlY2C4iZSFlcJrlQMRViRCgoCS1BF2gTUUCQUYyLV9KX6X+/SxezeO3P3zu7Mmfm9IIWb3Vn2v2fOnHPmnKIlJdWHiOggORx6c+Fb7gtymI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FWHHowPAzEVr2bdMilIXt/1iApcfpX/RzccCaO1i4UCgyvBdbbldfW8HTsLHh44Hb//ZNrVb1D7DqwqDo8F4kCg4c3Z2XNWXiWH9bYLEKfni29buaNb+4tI6I6jRYS15AgUdp2YLAKSb4+8mJb+japzfyuj6EqZr3bvN9BgeqgRP6z+6KmIR1YiUJwdauqfQOMJ/fSuRlXRBqV5+/n4qd4XCIaYMMsFOsJCHYn6+totGRMbp/74HS9eDk3z3we99nIFTRuDFDElY3ucAXH+TD4pATG+5VmjBA9CHo5N/e2mOzUD2stawpYGGLqMj3El5x8WyqqllF8aERmpp6HOn7430HP3jb9+SPw1Ts1IeRvq+B2G1ZUyCo3tS417dKC6dzhJOiDGnBR42d680qVKxn/eotRo3sVIkTaxJY2IbqLb4tIqMUbNBhCuvAemxrOOeHE2saCLA3vLzZCw1lIwrBotzPT6ioZcA6bGwY7IcTawbgFmD7zXbxEILNZeBGNv8Y9QuN63bR4TetDE0F4sSaBWy/jfW7vMONaE2sKJlqUz1rWr3Z2oFsIjixBoDDDUQE10D0mkwQCJelfgDp1pRzlX8UFC0pqT5ERAfN/yjqgZ+K7R9tJKMQFmK3zi8V5sK3DVmoFnjj0yPcpp1Q5XBugMMYnFgdxuDE6jAGJ1aHMTixOowB0YBBIvqb+8ocWkP09f8A8Pgg3mIzh2MAAAAASUVORK5CYII=')
expect(response[0].name.value).toBe('SingularityNet AGIX Token')
expect(response[0].ticker.value).toBe('AGIX')
expect(response[0].url.value).toBe('https://singularitynet.io')
expect(response[0].url.value).toBe('https://singularitynet.io/')
})
})
})
Loading

0 comments on commit b821f21

Please sign in to comment.