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
Initialize service metadata with the revised JSON structure #328
Comments
anandrgitnirman
changed the title
publish a service with new JSON and launch daemon
Initialize service metadata with the revised JSON structure
Jul 26, 2019
{
"version": 1,
"display_name": "PRICING MODEL",
"encoding": "proto",
"service_type": "grpc",
"model_ipfs_hash": "Qmdiq8Hu6dYiwp712GtnbBxagyfYyvUY1HYqkH7iN76UCc",
"mpe_address": "0x7E6366Fbe3bdfCE3C906667911FC5237Cc96BD08",
"groups": [
{
"endpoints": ["http://34.344.33.1:2379","http://34.344.33.1:2389"],
"group_id": "88ybRIg2wAx55mqVsA6sB4S7WxPQHNKqa4BPu/bhj+U=",
"group_name": "default_group",
"pricing": [
{
"price_model": "fixed_price",
"price_in_cogs": 2
},
{
"package_name": "example_service",
"price_model": "fixed_price_per_method",
"default":true,
"details": [
{
"service_name": "Calculator",
"method_pricing": [
{
"method_name": "add",
"price_in_cogs": 2
},
{
"method_name": "sub",
"price_in_cogs": 1
},
{
"method_name": "div",
"price_in_cogs": 2
},
{
"method_name": "mul",
"price_in_cogs": 3
}
]
},
{
"service_name": "Calculator2",
"method_pricing": [
{
"method_name": "add",
"price_in_cogs": 2
},
{
"method_name": "sub",
"price_in_cogs": 1
},
{
"method_name": "div",
"price_in_cogs": 3
},
{
"method_name": "mul",
"price_in_cogs": 2
}
]
}
]
}]
},
{
"endpoints": ["http://97.344.33.1:2379","http://67.344.33.1:2389"],
"group_id": "99ybRIg2wAx55mqVsA6sB4S7WxPQHNKqa4BPu/bhj+U=",
"group_name": "default_group2",
"pricing": [
{
"package_name": "example_service",
"price_model": "fixed_price_per_method",
"details": [
{
"service_name": "Calculator",
"method_pricing": [
{
"method_name": "add",
"price_in_cogs": 2
},
{
"method_name": "sub",
"price_in_cogs": 1
},
{
"method_name": "div",
"price_in_cogs": 2
},
{
"method_name": "mul",
"price_in_cogs": 3
}
]
},
{
"service_name": "Calculator2",
"method_pricing": [
{
"method_name": "add",
"price_in_cogs": 2
},
{
"method_name": "sub",
"price_in_cogs": 1
},
{
"method_name": "div",
"price_in_cogs": 3
},
{
"method_name": "mul",
"price_in_cogs": 2
}
]
}
]
}]
}
]
} |
anandrgitnirman
pushed a commit
to anandrgitnirman/snet-daemon
that referenced
this issue
Jul 26, 2019
singnet#334 Initialize service metadata with the revised JSON structure
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: