Skip to content

Instantly share code, notes, and snippets.

@vieyang
Last active May 14, 2021 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vieyang/552a925151eae5ac0c58424abeb514a5 to your computer and use it in GitHub Desktop.
Save vieyang/552a925151eae5ac0c58424abeb514a5 to your computer and use it in GitHub Desktop.
{
    "pairs":[
        {
            "asset_a":{
                "name":"A"
            },
            "asset_b":{
                "name":"B"
            },
            "a2b_fee":"0.1"
        },
        {
            "asset_a":{	
                "name":"A"
            },
            "asset_c":{	
                "name":"C"
            },
            "a2c_fee":"0.01"
        }
    ]
}
message Asset {
    string name = 1;
    string amount = 2;
}

message Pair {
    Asset asset_a = 1 [json_name = "asset_a"];
    Asset asset_b = 2 [json_name = "asset_b"];
    string a2b_fee = 3 [json_name = "a2b_fee"];
    string a2b_min = 4 [json_name = "a2b_min"];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment