45 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
  "uri": "file:///amount-schema.json",
 | 
						|
  "title": "Amount",
 | 
						|
  "description": "Specify xrp in drops and tokens as objects.",
 | 
						|
  "schema": {
 | 
						|
    "anyOf": [
 | 
						|
      {
 | 
						|
        "type": ["number", "string"],
 | 
						|
        "exclusiveMinimum": 0,
 | 
						|
        "maximum": "100000000000000000"
 | 
						|
      },
 | 
						|
      {
 | 
						|
        "type": "object",
 | 
						|
        "properties": {
 | 
						|
          "currency": {
 | 
						|
            "description": "Arbitrary currency code for the token. Cannot be XRP."
 | 
						|
          },
 | 
						|
          "value": {
 | 
						|
            "type": ["string", "number"],
 | 
						|
            "description": "Quoted decimal representation of the amount of the token."
 | 
						|
          },
 | 
						|
          "issuer": {
 | 
						|
            "type": "string",
 | 
						|
            "description": "Generally, the account that issues this token. In special cases, this can refer to the account that holds the token instead."
 | 
						|
          }
 | 
						|
        }
 | 
						|
      }
 | 
						|
    ],
 | 
						|
    "defaultSnippets": [
 | 
						|
      {
 | 
						|
        "label": "Xrp",
 | 
						|
        "body": "1000000"
 | 
						|
      },
 | 
						|
      {
 | 
						|
        "label": "Token",
 | 
						|
        "body": {
 | 
						|
          "currency": "${1:USD}",
 | 
						|
          "value": "${2:100}",
 | 
						|
          "issuer": "${3:rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpns}"
 | 
						|
        }
 | 
						|
      }
 | 
						|
    ]
 | 
						|
  }
 | 
						|
}
 |