Update Global Unit Value

{
  "name": "update_global_unit_value",
  "desc": "Update D-ASA nominal unit value globally",
  "readonly": false,
  "args": [
    {
      "type": "uint64",
      "name": "unit_value",
      "desc": "D-ASA nominal unit value, expressed in denomination asset"
    }
  ],
  "returns": {
    "type": "uint64",
    "desc": "Timestamp of the update"
  },
  "errors": [
    {
      "code": "UNAUTHORIZED",
      "message": "Not authorized"
    },
    {
      "code": "DEFAULTED",
      "message": "Defaulted"
    },
    {
      "code": "SUSPENDED",
      "message": "Asset operations are suspended"
    },
    {
      "code": "PENDING_COUPON_PAYMENT",
      "message": "Pending due coupon payment"
    }
  ]
}

The call MUST fail with the UNAUTHORIZED error code if not called by an authorized caller.

The call MUST fail with the DEFAULTED error code if the asset is defaulted.

The call MAY fail with the SUSPENDED error code if the asset is suspended.

The call MUST fail with the PENDING_COUPON_PAYMENT error code if there is any due coupon still to be paid.